//列表页 if (is_file(ROOT_PATH . "{$tpldb['list']}")) { $list_tpl_file = ROOT_PATH . "{$tpldb['list']}"; $list_tpl = read_file($list_tpl_file); } else { $list_tpl = ''; } $Temp_list = ''; $array = unserialize($rsdb[config]); $i = 0; foreach ($array[field_db] as $key => $rs) { $i++; $styleclass = $i % 2 == 0 ? ' b2' : ' b1'; $tpl_p .= make_post_table($rs, $member_post_tpl); $admin_post_tpl .= make_post_table($rs, $post_tpl); $tpl_s .= make_show_table($rs, $styleclass, $show_tpl); if ($array[search_db][$key]) { if ($rs[form_type] == "select" || $rs[form_type] == "radio" || $rs[form_type] == "checkbox") { $show = make_search_table($rs); $tpl_sarch2 .= "<tr><td align='left'>{$rs[title]}:</td><td align='left'>{$show}</td></tr>"; } else { $tpl_sarch1 .= make_search_table($rs); } } if ($array[IfListShow][$key]) { $Temp_list .= "<span class='b'>{$rs[title]}</span> "; $Temp_list .= "<span class='a'>{\$rs[{$key}]}</span> "; } } /* $admin_post_tpl="<table width='100%' cellspacing='1' cellpadding='3' class='module_table'>
$autojump = "autopost();"; $page = intval($page); $rsdb = $db->get_one("SELECT * FROM {$_pre}module LIMIT {$page},1 "); $id = $rsdb[id]; if (!$id) { jump("模板生成完毕", "{$admin_path}&job=list", 3); } $page++; } else { $rsdb = $db->get_one("SELECT * FROM {$_pre}module WHERE id='{$id}' "); } $array = unserialize($rsdb[config]); $tpl_L1 = $tpl_L2 = $tpl_sarch2 = $tpl_sarch1 = ''; foreach ($array[field_db] as $key => $rs) { $tpl_p .= make_post_table($rs); $tpl_s .= make_show_table($rs); if ($array[search_db][$key]) { if ($rs[form_type] == "select" || $rs[form_type] == "radio" || $rs[form_type] == "checkbox") { $show = make_search_table($rs); $tpl_sarch2 .= "<tr><td>{$rs[title]}:</td><td>{$show}</td></tr>"; } else { $tpl_sarch1 .= make_search_table($rs); } } if ($array[listshow_db][$key]) { $tpl_L1 .= "<td align='center'>{$rs[title]}</td>"; $tpl_L2 .= "<td align='center'>\$rs[{$rs[field_name]}] {$rs[form_units]}</td>"; } } //前台列表页模板 if (is_file(Adminpath . "template/form_module/tpl/list_{$id}.htm")) {