Viewing file: v_showRegisKeepStStatus.php (5.47 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language=JavaScript type="text/JavaScript">
function checkFormat() {
var acY = document.myform1.elements['acY'].value;
var tm = document.myform1.elements['tmId'].value;
var sy = document.myform1.elements['syCode'].value;
var chk = confirm("คุณต้องการรักษาสภาพการเป็นนักศึกษาชั้นปี "+sy+" ภาคการศึกษา "+tm+" ปีการศึกษา "+acY+" แน่นอนใช่หรือไม่");
if(chk)
return true;
else
return false;
}
</script>
<?php
$row_std = isset($qu_std) ? $qu_std->row() : NULL;
$row_tm = isset($qu_tm) ? $qu_tm->row() : NULL;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<div align="center"><br>
<table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">
<tr><?php echo form_open($this->config->item("rg_folder")."regis/showRegisKeepStStatus", array("name" => "myform", "id" => "myform"));?>
<td><font size="2"><b>รหัสนักศึกษา</b></font>
<input type="text" name="stdCode" id="stdCode" value="<?php echo getval('stdCode', $row_std);?>" size="15" maxlength="15" class="required-int" />
<input type="submit" name="search" id="search" value="ค้นหา" />
<span class="error" style="display:inline;"></span></td>
<?php echo form_close();?>
</tr>
<tr>
<td><br /></td>
</tr>
<?php
if (isset($stdCode)) {
if ($stdCode) {
?>
<?php echo form_open($this->config->item("rg_folder")."regis/processRegisKeepStStatus", array("name" => "myform1", "id" => "myform1"));?>
<tr>
<td><table class="szone">
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">รหัสนักศึกษา</td>
<td><font size="2"><?php echo $stdCode;?></font>
<input type="hidden" name="stdId" id="stdId" value="<?php echo getval('stdId', $row_std);?>" /></td>
<td class="coltd_szone">ชื่อ-นามสกุล</td>
<td><?php echo getval('prefixName', $row_std).getval('stdName', $row_std).' '.getval('stdSurname', $row_std);?></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">หลักสูตร</td>
<td><?php echo getval('curName', $row_std);?></font>
<input type="hidden" name="curId" name="curId" value="<?php echo getval('curId', $row_std);?>" /></td>
<td class="coltd_szone">ชั้นปี</td>
<td><input type="text" name="syCode" id="sycode" value="<?php echo getval('syCode', $row_std);?>" class="input2" />
<input type="hidden" name="syId" id="syId" value="<?php echo getval('syId', $row_std);?>" /></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">ปีการศึกษา</td>
<td><?php echo $acY;?>
<input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>" /></td>
<td class="coltd_szone">ภาคการศึกษา</td>
<td><input type="text" name="tmCode" id="tmCode" value="<?php echo getval('tmCode', $row_tm);?>" class="input2" />
<input type="hidden" name="tmId" id="tmId" value="<?php echo $tmId;?>" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table class="headCol">
<tr>
<th class="stdCodeCol">รหัสรายวิชา</th>
<th>ชื่อรายวิชา</th>
<th class="amtCol">หน่วยกิต</th>
<th class="seqCol">กลุ่ม</th>
</tr>
<?php
$i = 0;
foreach ($rs_rd->result() as $row_rd) {
echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
<td class="indent"><?php echo $row_rd->crsCode;?></td>
<td class="indent"><?php echo explodeSquare($row_rd->crsName);?></td>
<td align="center"><?php echo $row_rd->crsUnit;?></td>
<td align="center"><?php echo $row_rd->coSection;?></td>
</tr>
<?php
$i++;
}
if (isset($kssFlag)) {
?>
<tr>
<td colspan="5" align="center"><span class="error"><?php echo $kssFlag;?></span></td>
</tr>
<?php
}
?>
<tr bgcolor="<?php echo $this->config->item("rg_head_tb_headCol");?>">
<td height="22" colspan="2" align="right"><b>รวมหน่วยกิต</b></td>
<td align="center"><span class="fontT"><?php echo number_format($sumCrAt);?></span></td>
<td colspan="2"></td>
</tr>
</table></td>
</tr>
<?php
if (!isset($kssFlag)) {
?>
<tr>
<td align="center"><br><input type="submit" name="add" id="add" value="รักษาสภาพการเป็นนักศึกษา" onClick="return checkFormat()" /></td>
</tr>
<?php
}
} else {
if (!isset($err_msg)) {
?>
<tr>
<td align="center"><span class="error"><?php echo getval('prefixName', $row_std).getval('stdName', $row_std).' '.getval('stdSurname', $row_std).' '.getval('sstName', $row_std);?></span></td>
</tr>
<?php
} else {
?>
<tr>
<td align="center"><span class="span"><?php echo $err_msg;?></span></td>
</tr>
<?php
} // end if
} // end SearchByStCodeAndStudying
} // end if isset(stdCode)
?>
<?php echo form_close();?></table></div>
<br></td>
</tr>
</table>
|