Viewing file: v_showCourseSendGrade.php (3.41 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="JavaScript1.2">
function changeCur(seed){
var acY,tmId,view,tc;
acY = document.getElementById("acY").value;
tmId = document.getElementById("tmId").value;
view = document.getElementById("view").value;
tc = document.getElementById("tc").value;
var url = "<?php echo site_url($this->config->item('rg_folder'));?>"+"/grade/"+tc+"showCrs/"+acY+"/"+tmId+"/"+view+"/"+seed;
xmlhttp = newXmlHttp();
xmlhttp.open("GET", url, false);
xmlhttp.send(null);
if(xmlhttp.readyState==4 && xmlhttp.status==200){
var ret_text = xmlhttp.responseText;
//alert(ret_text);
document.getElementById('showCrs').innerHTML= ret_text;
}
}
function changeView(v) {
$("#view").val(v);
if (v == 's') {
$("#s").css({"display":"inline",'color':'#FF0000'});//font color is red
$("#g").css({"display":"inline",'color':'#0000FF'});//font color is blue
} else {
$("#s").css({"display":"inline",'color':'#0000FF'});//font color is blue
$("#g").css({"display":"inline",'color':'#FF0000'});//font color is red
}
changeCur(<?php echo mt_rand();?>);
}
</script>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0">
<tr>
<td colspan="12" align="center"><span class="h error"><b>ส่งเกรด</b></span></td>
<td></td>
</tr>
<?php
if (isset($err_msg)) {
?>
<tr>
<td colspan="8" align="center"><font size="2"><?php echo $err_msg;?></font></td>
</tr>
<?php
}
?>
<tr>
<td height="22" colspan="8"></td>
</tr>
<tr>
<td height="22" colspan="8" width=""><font size="2"><b>ปีการศึกษา</b>
<?php
$js1 = 'id="acY" onChange="changeCur('.mt_rand().')"';
echo form_dropdown('acY', $rs_tmc, $acY, $js1);
?>
<b>ภาคการศึกษา</b>
<?php
$js2 = 'id="tmId" onChange="changeCur('.mt_rand().')"';
echo form_dropdown('tmId', $rs_tm, $tmId, $js2);
?>
<b>ดูตาม >></b>
<span id="s" class="hand" onClick="changeView('s')">รายวิชา</span>
|
<span id="g" class="hand" onClick="changeView('g')">รายกลุ่ม</span>
<input type="hidden" id="view" name="view" value="<?php echo $view;?>" />
<input type="hidden" id="tc" name="tc" value="<?php echo $tc;?>" /></font></td>
</tr>
</table>
<div id='showCrs'></div>
<br></td>
</tr>
<tr>
<td><table class="mark">
<tr>
<td class="coltd_mark"><span class="error"><b>หมายเหตุ : </b></span></td>
<td><img src="<?php echo base_url().$this->config->item('rg_listmenu');?>" width="19" height="19" align="absmiddle" border="0"><span class="error"> ยังไม่ส่งเกรด (แบบ List/Menu)</span></td>
</tr>
<tr>
<td class="coltd_mark"></td>
<td><img src="<?php echo base_url().$this->config->item('rg_ico_excel');?>" width="19" height="19" align="absmiddle" border="0"><span class="error"> ยังไม่ส่งเกรด (แบบ Textarea)</span></td>
</tr>
<tr>
<td class="coltd_mark"></td>
<td><img src="<?php echo base_url().$this->config->item('rg_stamp');?>" width="19" height="19" align="absmiddle" border="0"><span class="error"> ส่งเกรดแล้ว</span></td>
</tr>
</table></td>
</tr>
</table>
<script language="JavaScript">
changeCur('<?php echo mt_rand();?>');
</script>
|