<? $dlyt_Arr=array(3,5); $syqlx_Arr=array(1,2); $qdfs_Arr=array(1,2); $fwyqlr_lb_Arr=array("中央单位","本市单位","宗教","其他"); $tzfs_Arr=array(1,2);
function list_Arr($array,$name){ $list_Str.="$name." id=".$name.">"; foreach($array as $value){ $list_Str.="$value.">".$value.""; } $list_Str.=""; return $list_Str; }
///////////////////////----------------->
$html_src = $util->read_html("templates/*******.html"); $html_src = str_replace("",list_Arr($dlyt_Arr,"dlyt"),$html_src); $html_src = str_replace("",list_Arr($syqlx_Arr,"syqlx"),$html_src); $html_src = str_replace("",list_Arr($qdfs_Arr,"qdfs"),$html_src); $html_src = str_replace("",list_Arr($fwyqlr_lb_Arr,"fwyqlr_lb"),$html_src); $html_src = str_replace("",list_Arr($tzfs_Arr,"tzfs"),$html_src); echo $html_src; ?>
|