Beispiel #1
0
$strPage = $objWebInit->makeInfoListPage($arrData['COUNT_ROWS'], $strLink);
unset($arrData['COUNT_ROWS']);
// 取类别标题
if (is_array($arrMType) && !empty($arrMType)) {
    foreach ($arrData as $k => $data) {
        foreach ($arrMType as $k1 => $type) {
            if ($data['type_id'] == $k1) {
                $arrData[$k]['type_title'] = $type;
            }
        }
    }
} else {
    $arrType = $objWebInit->getTypeList();
    foreach ($arrData as $k => $data) {
        foreach ($arrType as $k1 => $type) {
            if ($data['type_id'] == $type['type_id']) {
                $arrData[$k]['type_title'] = $type['type_title'];
            }
        }
    }
    // 企业黄页类别
    $arrMType = $objWebInit->formatTypeList(0, $arrType);
}
// 输出到模板
$arrMOutput["smarty_assign"]['get'] = $_GET;
$arrMOutput["smarty_assign"]['FileCallPath'] = $arrGPic['FileCallPath'];
$arrMOutput["smarty_assign"]['arrData'] = $arrData;
$arrMOutput["smarty_assign"]['strPage'] = $strPage;
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['adminu_main_dir'] . 'index.htm';
$objWebInit->output($arrMOutput);