Viewing file: v_countCrsByCoRdTt.php (2.8 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// create : by sitthichai
// date : 2014-12-02
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><fieldset>
<legend align="center"><span class="h" style="color:<?php echo $font_color_err;?>">รายงานการจัดการเรียนการสอน</span></legend>
<div align="center"><br><table class="szone">
<?php //$frow = $rs->row(); ?>
<tr>
<td >
<?php echo form_open($this->config->item("rg_folder")."popup/countCrsByCoRdTt", array("name" => "myform", "id" => "myform"));?>
<table class="szone">
<tr><th>ปีการศึกษา</th><td><?php echo form_dropdown('acy', $acy_arr );//echo $frow->coAcY;?></td>
<th >ภาคการศึกษาที่ </th><td><?php echo form_dropdown('tm', $tm_arr );//echo $frow->coTmId;?></td>
<th ><input type="submit" name="btnSubmit" value="ค้นหา" /> </th>
</tr>
</table ></td>
</tr>
<tr>
<td colspan="2">
<table class="tb_1">
<tr>
<th rowspan="2">ชั้นปีที่</td>
<th colspan="3"><span>จำนวนรายวิชาที่</span></td>
</tr>
<tr>
<th ><span>เปิดสอน</span></td>
<th ><span>ลงทะเบียน</span></td>
<th ><span>จัดตารางสอน</span></td>
</tr>
<?php $scrs = 0;$srd = 0;$stt = 0;
foreach($rs_cur->result() as $row_cur){ ?>
<tr bgColor="#D8D8D8"><td colspan="4"><?php echo $row_cur->curName;?></td></tr>
<?php
foreach ($rs[$row_cur->curId]->result() as $row) {
echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
$scrs += $row->numCrs;
$srd += $row->numRdCrs;
$stt += $row->numTtCrs;
?>
<td align="center"><span><?php echo $row->coSyId;?></span></td>
<td align="center">
<span class="hand" onClick="sendPost('stdSstId',{sy:'<?php echo $row->coSyId;?>', cur:'<?php echo $row_cur->curId;?>', acy:'<?php echo $row->coAcY;?>', tm:'<?php echo $row->coTmId;?>'} ,
'<?php echo site_url($this->config->item('rg_folder').'popup/countCrsByCoRdTt2');?>', {width:800,height:500})" /><font size="2"><?php echo $row->numCrs;?></font></span>
</td>
<td align="center"><font size="2"><?php echo $row->numRdCrs;?></font>
</td>
<td align="center"><font size="2"><?php echo $row->numTtCrs;?></font>
</td>
<?php echo "</tr>"; } ?>
<?php } ?>
<tr><th >รวม</th>
<th ><?php echo $scrs; ?></th>
<th ><?php echo $srd; ?></th>
<th ><?php echo $stt; ?></th></tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
|