?> </p> <!-- end #leftinfo --></div> <div id="rightinfo" class="fltlft" style="padding:20px 20px 20px 20px;" > <input type="button" value="点击申报" onclick=" location.href='stud_addapp.php'"/> <br /> <br /> <table> <tr> <td width="100">总计申报学分:</td> <td width="80"> <?php $citem = $tongji->countAllCreditByStudId($_SESSION['studno']); echo $citem == '' ? 0 : $citem; ?> </td> <td width="100">有效申报学分:</td> <td width="80"><?php $citem = $tongji->countVerifyValidCreditByStudId($_SESSION['studno']); echo $citem == '' ? 0 : $citem; ?> </td> <td width="100"> </td> </td> </tr> <?php
<?php include_once 'include/mysqldao.class.php'; require_once 'control/tongji.include.php'; $tongji = new Tongji(); echo '总学分:', $tongji->countAllCreditByStudId('200741903108'); echo '总项目数:', $tongji->countItemByStudId('200741903108'); echo '有限学分:', $tongji->countValidCreditByStudId('200741903108'); echo '已获得有效学分:', $tongji->countVerifyValidCreditByStudId('200741903108'); $tongji->getBYSTable();