示例#1
0
文件: chengji.php 项目: QPG/djzs
	
<?php 
$openid = $_GET["openid"];
require_once dirname(__FILE__) . '/common/config.php';
connect();
$sql = "select * from users where openid='{$openid}'";
$res = mysql_query($sql);
$result = mysql_fetch_assoc($res);
if (!$result) {
    echo '非法进入,如有疑问请发送邮件至"*****@*****.**"';
    exit;
} else {
    if (isset($_POST["submit"])) {
        require_once dirname(__FILE__) . '/modules/jwzx/jwzx.class.php';
        $aa = new jwzx($openid);
        echo $aa->getChengjiByTerm($_POST["year"], $_POST["term"]);
        exit;
    }
    echo '
<form action="chengji.php?openid=' . $openid . '" method="post">
<div>请选择学期查看成绩</div>
<table cellpadding="0" cellspacing="0" >
<tr>
<th colspan="2" class="login_title"></th>
</tr>
<tr>
<th >学年</th>
<td >
<select name="year">  
   <option value="">全部</option>
   <option value="34">2014</option>