本文整理匯總了PHP中ExportToWord函數的典型用法代碼示例。如果您正苦於以下問題:PHP ExportToWord函數的具體用法?PHP ExportToWord怎麽用?PHP ExportToWord使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了ExportToWord函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: db_query
$rs = db_query($strSQL, $conn);
db_pageseek($rs, $nPageSize, $mypage);
} else {
$rs = db_query($strSQL, $conn);
}
if (!ini_get("safe_mode")) {
set_time_limit(300);
}
if (substr(@$_REQUEST["type"], 0, 5) == "excel") {
// remove grouping
$locale_info["LOCALE_SGROUPING"] = "0";
$locale_info["LOCALE_SMONGROUPING"] = "0";
ExportToExcel();
} else {
if (@$_REQUEST["type"] == "word") {
ExportToWord();
} else {
if (@$_REQUEST["type"] == "xml") {
ExportToXML();
} else {
if (@$_REQUEST["type"] == "csv") {
$locale_info["LOCALE_SGROUPING"] = "0";
$locale_info["LOCALE_SDECIMAL"] = ".";
$locale_info["LOCALE_SMONGROUPING"] = "0";
$locale_info["LOCALE_SMONDECIMALSEP"] = ".";
ExportToCSV();
}
}
}
}
db_close($conn);
示例2: set_time_limit
}
if (!ini_get("safe_mode")) {
set_time_limit(300);
}
if (substr(@$_REQUEST["type"], 0, 5) == "excel") {
// remove grouping
$locale_info["LOCALE_SGROUPING"] = "0";
$locale_info["LOCALE_SMONGROUPING"] = "0";
if ($phpVersion > 4) {
ExportToExcel($cipherer, $pageObject);
} else {
ExportToExcel_old($cipherer);
}
} else {
if (@$_REQUEST["type"] == "word") {
ExportToWord($cipherer);
} else {
if (@$_REQUEST["type"] == "xml") {
ExportToXML($cipherer);
} else {
if (@$_REQUEST["type"] == "csv") {
$locale_info["LOCALE_SGROUPING"] = "0";
$locale_info["LOCALE_SDECIMAL"] = ".";
$locale_info["LOCALE_SMONGROUPING"] = "0";
$locale_info["LOCALE_SMONDECIMALSEP"] = ".";
ExportToCSV($cipherer);
}
}
}
}
db_close($conn);
示例3: if
if(!ini_get("safe_mode"))
set_time_limit(300);
if(substr(@$_REQUEST["type"],0,5)=="excel")
{
// remove grouping
$locale_info["LOCALE_SGROUPING"]="0";
$locale_info["LOCALE_SMONGROUPING"]="0";
if($phpVersion > 4)
ExportToExcel($rs, $nPageSize, $eventObj, $cipherer, $pageObject);
else
ExportToExcel_old($rs, $nPageSize, $strTableName, $eventObj, $cipherer, $pageObject);
}
else if(@$_REQUEST["type"]=="word")
{
ExportToWord($rs, $nPageSize, $strTableName, $eventObj, $cipherer, $pageObject);
}
else if(@$_REQUEST["type"]=="xml")
{
ExportToXML($rs, $nPageSize, $strTableName, $eventObj, $cipherer, $pageObject);
}
else if(@$_REQUEST["type"]=="csv")
{
$locale_info["LOCALE_SGROUPING"]="0";
$locale_info["LOCALE_SDECIMAL"]=".";
$locale_info["LOCALE_SMONGROUPING"]="0";
$locale_info["LOCALE_SMONDECIMALSEP"]=".";
ExportToCSV($rs, $nPageSize, $strTableName, $eventObj, $cipherer, $pageObject);
}
db_close($conn);
return;