<div style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px; width: 100%; text-align: center;"> <img src="images/noscript.gif" alt='抱歉,请开启脚本支持!' /> </div> </noscript> <div data-options="region:'north'" style="height:50px;margin-bottom:5px;"> <form id="search_form" method="post" action="analysis.php?act=score_trend" style="margin-top:10px;"> <table width="100%" cellspacing="1" cellpadding="0" border="0" class="form_table"> <tr> <td style="text-align: right; width:80px;">考试科目:</td> <td style="text-align: left; width:124px;"> <select id="search_subject" name="search_subject" style="width:120px;"> <option value="">所有...</option> <?php $exam = get_exam_subjects(); foreach ($exam as $k => $v) { ?> <option value="<?php echo $v["subject"]; ?> "><?php echo $v["subject"]; ?> </option> <?php } ?> </select> </td>
function set_params() { global $smarty, $_SESSION; //查询条件加载 //班级所有学生 $students = get_students($_SESSION["class_code"]); $smarty->assign("students", $students); //考试名称 $prjs = get_exam_prjs($_SESSION["class_code"]); $smarty->assign("prjs", $prjs); //考试科目 $subjects = get_exam_subjects(); $smarty->assign("exam_subjects", $subjects); }