Viewing file: v_detail_club.php (4.33 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<style>
@media print {
@page { size:A4 portrait; }
}
@media print{
.no-print{ display:none;}
}
</style>
<table width="80%" align="center">
<tr>
<td align="center"><h3>ข้อมูลชมรม</h3></td>
</tr>
<tr>
<th align="center" colspan="2"></th>
</tr>
<tr>
<td>
<input type="hidden" name="sc_id" value="<?php echo set_value('sc_id', $qu_cl->sc_id);?>" />
<input type="hidden" name="cl_code" value="<?php echo getval('sc_id', $qu_cl);?>" />
<table width="100%" class='szone2' border="0">
<tr>
<th>สโมสร</th>
<td><?php echo set_value('sc_name', $qu_cl->parent_name);?></td>
</tr>
<tr>
<th>ชื่อชมรม (ไทย) </th>
<td><?php echo set_value('sc_name', $qu_cl->sc_name);?></td>
</tr>
<tr>
<th>ชื่อชมรม (อังกฤษ)</th>
<td><?php echo set_value('sc_name_eng', $qu_cl->sc_name_eng);?></td>
</tr>
<tr>
<th>วัตถุประสงค์</th>
<td><?php echo set_value('sc_objective', $qu_cl->sc_objective);?></td>
</tr>
<tr>
<th>รายละเอียด</th>
<td><?php echo set_value('sc_detail', $qu_cl->sc_detail);?></td>
</tr>
<tr>
<th>อาจารย์ประจำชมรม <br />(ที่ปรึกษา)</th>
<td>
<?
$id = getval('sc_id', $qu_cl);
if(isset($sc_prs) and $sc_prs->num_rows()>0){
foreach ($sc_prs->result() as $prs_row) {
echo $prs_row->fName." ".$prs_row->lName."<br>";
}
}
?></td>
</tr>
<tr>
<th>วันที่ก่อตั้งชมรม</th>
<td><?php echo set_value('sc_fr_date', $qu_cl->sc_fr_date);?></td>
</tr>
<tr>
<th>จำนวนสมาชิกขั้นต่ำ</th>
<td><?php echo getval('sc_min_member', $qu_cl);?></td>
</tr>
<tr>
<th>จำนวนสมาชิกสูงสุด</th>
<td><?php echo getval('sc_max_member', $qu_cl);?></td>
</tr>
<tr>
<th>ค่าสมาชิกชมรม</th>
<td><?php echo getval('sc_due', $qu_cl);?></td>
</tr>
<tr>
<th valign="top">ประเภทกิจกรรม</th>
<td>
<table class="tb_1" >
<?php
$i = 1;
foreach ($rs_veh->result() as $row_veh) {
?>
<tr class='szone2' ><td align="left">
<input type="checkbox" disabled name="vehicle<?php echo $i?>" value="<?php echo $row_veh->veh_id;?>" <?php echo ($row_veh->vc_veh_id != '')? 'checked' : (set_value('vehicle'.$i) != '')? 'checked' : '';?>/>
<?php echo $row_veh->veh_name;?>
</td></tr>
<?php
$i++;
}
?>
</table>
<input type="hidden" name="vehicle" value="<?php echo $i?>" />
<?php echo isset($ch_vehicle)? $ch_vehicle : '' ;?>
</td>
</tr>
<tr>
<th>แนบไฟล์</th>
<td>
<?
if(isset($sc_file) and $sc_file->num_rows()>0){
foreach ($sc_file->result() as $row_file) {
echo anchor_popup(base_url().$row_file->fup_path,$row_file->fup_file_name);
}
}
?>
</td>
</tr>
</table>
</td>
</tr>
<tr><td align='center'>
<br>
<input type="button" value="พิมพ์หน้านี้" onclick="printWindow()" class="no-print">
<br>
</td></tr>
</table>
<SCRIPT LANGUAGE="Javascript">
function printWindow(){
window.print()
}
</SCRIPT>
|