Viewing file: v_rpt_smo_club.php (2.5 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="javascript">
function report_print() {
document.getElementById("type").value = "print";
document.getElementById("myform_search").action = "smo_club";
document.getElementById("myform_search").submit();
document.getElementById("type").value = "";
}
</script>
<table width="100%" border="0">
<thead>
<tr>
<td align='center'><h3>รายงานสรุปจำนวนสมาชิกในชมรม</h3></td>
</tr>
<tr>
<td>
<?php
$attributes = array('id' => 'myform_search', 'name' => 'myform_search');
echo form_open("esa/report/smo_club", $attributes);
?>
<table class='szone2' width="100%" border="0">
<tr class='szone'>
<td width="20%" align="right">ปีงบประมาณ</td>
<td>
<?=form_dropdown('year', $qu_ib ,set_value('year', $year)); ?>
<font color='red'> *</font>
<?php echo isset($mssyear)? $mssyear : ''; ?>
</td>
</tr>
<tr class='szone'>
<td width="20%" align="right">ภาคการศึกษา</td>
<td>
<?=form_dropdown('tm', $qu_tm ,set_value('tm', $tm)); ?>
<font color='red'> *</font>
<?php echo isset($msstm)? $msstm : ''; ?>
</td>
</tr>
<tr class='szone2'>
<td height="30" colspan="4" align="center">
<input type="hidden" id="type" name="type" value=""/>
<input type="submit" id="btnSearch" name="btnSearch" value="ค้นหา" />
</td>
</tr>
</table>
<?php
echo form_close();
?>
</td>
</tr>
</table>
<br>
<div align='right'><?=img($this->config->item('sa_image_print'));?></div>
<br>
<table class="tb_1" width="80%" border="1">
<tr align="center" >
<th width="5%" >ลำดับที่</th>
<th width="30%" >ชื่อชมรม</th>
<th width="15%" >จำนวนเต็ม</th>
<th width="20%" >จำนวนสมาชิก</th>
<th width="20%" >เหลือ</th>
</tr>
<?php
if ($rs_club->num_rows() > 0) {
$index=1;
foreach ($rs_club->result() as $row) {
?>
<tr >
<td align="center"><?php echo $index;?></td>
<td align="left"><?php echo $row->sc_name;?></td>
<td align="center"><?php echo $row->sc_max_member;?></td>
<td align="center"><?php echo $row->num_rt;?></td>
<td align="center"><?php echo $row->num;?></td>
</tr>
<?php
$index++;
}
} else {
?>
<tr class='notfound'>
<td colspan="5" align="center"><?php echo $this->config->item('sa_not_found');?></td>
</tr>
<?php
}
?>
</table>
|