Пример #1
0
 public static function add()
 {
     $params['type'] = $_POST['type'];
     $params['studentName'] = $_POST['studentName'];
     $params['num'] = $_POST['num'];
     $rs = mod_thanks::add($params);
     self::index();
 }
Пример #2
0
 public static function index()
 {
     $navId = $_GET['navId'];
     $snavId = $_GET['snavId'];
     $type = empty($_GET['type']) ? 0 : $_GET['type'];
     //腾科战报
     if ($snavId == "11") {
         $rs = mod_thanks::getStudentNewsList($type);
         render_template("student_news.php", array("navId" => $navId, "snavId" => $snavId, "content" => $rs));
     }
     //学生感言
     if ($snavId == "12") {
         $rs = mod_thanks::getStudentReportList($type);
         render_template("student_report.php", array("navId" => $navId, "snavId" => $snavId, "content" => $rs));
     }
 }