function getAllKebiao($openid) { require_once dirname(__FILE__) . '/modules/jwzx/jwzx.class.php'; $aa = new jwzx($openid); $shuzu = $aa->getKebiao(); return $shuzu; }
$d = date("w", time() + 86400); $xingqi = $weekarray[$d]; $tuwen[0]['Title'] = "第{$zhou}教学周周{$xingqi}"; $tuwen[1]['Title'] = '【上午1、 2节】' . "\n" . $shuzu[$d][1]; $tuwen[2]['Title'] = '【上午3、 4节】' . "\n" . $shuzu[$d][2]; $tuwen[3]['Title'] = '【下午5、 6节】' . "\n" . $shuzu[$d][3]; $tuwen[4]['Title'] = '【下午7、 8节】' . "\n" . $shuzu[$d][4]; $tuwen[5]['Title'] = '【晚上9、10节】' . "\n" . $shuzu[$d][5]; $tuwen[6]['Title'] = '点击查看全部课表'; $tuwen[6]['Url'] = 'http://djzs.sinaapp.com/kebiao.php?openid=' . $obj->FromUserName; $obj->replyNews($tuwen); } //查考试安排 if ($obj->Content == '考试安排' || $obj->Content == '考试' || $obj->EventKey == 'kaoshi' || $obj->Content == '6') { require_once dirname(__FILE__) . '/modules/jwzx/jwzx.class.php'; $aa = new jwzx($obj->FromUserName); $exam = $aa->getKaoshi(); if (!is_array($exam)) { $obj->replyText($exam); } for ($i = 2; $i < count($exam) - 1; $i++) { $kaoshianpai .= "课程:" . $exam[$i][1] . "\n" . '时间:' . $exam[$i][2] . "\n地点:" . $exam[$i][3] . "\n\n"; } if ($kaoshianpai == "") { $kaoshianpai = "暂无考试安排\n"; } $obj->replyText($kaoshianpai . "大交助手祝您考试顺利!"); } //学籍管理相关 if ($obj->Content == '学籍管理' || $obj->Content == '学籍' || $obj->Content == '7') { $obj->replyText('<a href="http://mp.weixin.qq.com/s?__biz=MjM5MjI1MTcwMQ==&mid=200023729&idx=2&sn=56b1e8b1b217bc6ef83bb5ad289acdc8#rd">点击查看学籍管理</a>');
<?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>