本文整理匯總了PHP中Reports::sgetColumntoTotalSelected方法的典型用法代碼示例。如果您正苦於以下問題:PHP Reports::sgetColumntoTotalSelected方法的具體用法?PHP Reports::sgetColumntoTotalSelected怎麽用?PHP Reports::sgetColumntoTotalSelected使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Reports
的用法示例。
在下文中一共展示了Reports::sgetColumntoTotalSelected方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Reports
if (isset($_REQUEST["record"]) && $_REQUEST['record'] != '') {
$recordid = vtlib_purify($_REQUEST["record"]);
$oReport = new Reports($recordid);
$oRep = new Reports();
$secondarymodule = '';
$secondarymodules = array();
if (!empty($oRep->related_modules[$oReport->primodule])) {
foreach ($oRep->related_modules[$oReport->primodule] as $key => $value) {
if (isset($_REQUEST["secondarymodule_" . $value])) {
$secondarymodules[] = vtlib_purify($_REQUEST["secondarymodule_" . $value]);
}
}
}
$secondarymodule = implode(":", $secondarymodules);
$oReport->secmodule = $secondarymodule;
$BLOCK1 = $oReport->sgetColumntoTotalSelected($oReport->primodule, $oReport->secmodule, $recordid);
$report_column_tot->assign("BLOCK1", $BLOCK1);
$report_column_tot->assign("RECORDID", $recordid);
} else {
$primarymodule = vtlib_purify($_REQUEST["primarymodule"]);
$oReport = new Reports();
$secondarymodule = array();
if (!empty($ogReport->related_modules[$primarymodule])) {
foreach ($ogReport->related_modules[$primarymodule] as $key => $value) {
$secondarymodule[] = vtlib_purify($_REQUEST["secondarymodule_" . $value]);
}
}
$BLOCK1 = $oReport->sgetColumntoTotal($primarymodule, $secondarymodule);
$report_column_tot->assign("BLOCK1", $BLOCK1);
}
//added to avoid displaying "No data avaiable to total" when using related modules in report.