Viewing file: v_showCourseSendGradeRow.php (5.31 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $row_cfg = isset($qu_cfg) ? $qu_cfg->row() : NULL; ?> <table class="headCol"> <tr> <th><span class="fontT">ลำดับ</span></td> <th><span class="fontT">รหัสวิชา</span></td> <th><span class="fontT">ชื่อวิชา</span></td> <th><span class="fontT">กลุ่ม</span></td> <th><span class="fontT">จำนวน<br>นักศึกษา</span></td> <th><span class="fontT">หน่วยกิต</span></td> <th colspan="2"><span class="fontT">สถานะ<br>การส่งเกรด</span></td> <th><span class="fontT">พิมพ์</span></td> <?php if ($tc) { ?> <th>ใบกรอก<br>เกรด</th> <?php } ?> </tr> <?php $num_rows = count($rs); if ($num_rows) { $i=0; foreach ($rs as $key => $val) { $row_crs = $rs[$key]['crs']->row(); $row_co = $rs[$key]['co']->row(); $i=$i+1; echo "<tr onmouseover=\"bgColor='".setValue('cfgBgClSwapTr',$row_cfg)."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; ?> <td class="indent"><?php echo $i;?></td> <td class="indent"><?php echo $row_crs->crsCode;?></td> <td class="indent"><?php echo explodeSquare($row_crs->crsName);?><br /> <font color="<?php echo getval('cfgFnClErrSpec', $row_cfg);?>">[<?php echo isset($rs[$key]['pgNames']) ? $rs[$key]['pgNames'] : '';?>]</font></td> <td align="center"><?php echo ($rs[$key]['view'] == 's') ? '-' : $row_co->coSection;?></td> <td align="center"><?php echo ($rs[$key]['view'] == 's') ? $rs[$key]['sumEnrollSeat'] : $row_co->coNumSeatReg;?></td> <td align="center"><?php echo $row_crs->crsUnit;?></td> <td align="center"> <?php if (($rs[$key]['view'] == 's' && $rs[$key]['flagAllSend']) || ($rs[$key]['view'] <> 's' && $row_co->coSendGradeStatus == 'Y')) { ?> <img src="<?php echo base_url().$this->config->item('rg_stamp');?>" width="19" height="19" align="absmiddle" border="0" />
<?php } else if ($rs[$key]['view'] == 's' && $rs[$key]['flagSomeSend']) { ?> <img src="<?php echo base_url().$this->config->item('rg_listmenu');?>" width="19" height="19" align="absmiddle" border="0" title="ยังไม่ส่งเกรดบางกลุ่ม" /> <?php } else { if ($flagSendGr) { ?> <img src="<?php echo base_url().$this->config->item('rg_listmenu');?>" width="19" height="19" align="absmiddle" border="0" class="hand" onClick="sendPost('hidform_add', {'coId':<?php echo $row_co->coId;?>,'clIdStr':'<?php echo $rs[$key]['clIdStr'];?>','view':'<?php echo $rs[$key]['view'];?>','tc':'<?php echo $tc;?>'}, '<?php echo site_url($this->config->item('rg_folder').'grade/addSendGrade');?>')" /> <?php } else { ?> <img src="<?php echo base_url().$this->config->item('rg_listmenu');?>" width="19" height="19" align="absmiddle" border="0" title="ยังไม่ส่งเกรดบางกลุ่ม" /> <?php } } ?> </td> <td align="center"> <?php if (($rs[$key]['view'] == 's' && $rs[$key]['flagAllSend']) || ($rs[$key]['view'] <> 's' && $row_co->coSendGradeStatus == 'Y')) { ?> <img src="<?php echo base_url().$this->config->item('rg_stamp');?>" width="19" height="19" align="absmiddle" border="0" /> <?php } else if ($rs[$key]['view'] == 's' && $rs[$key]['flagSomeSend']) { ?> <img src="<?php echo base_url().$this->config->item('rg_ico_excel');?>" width="19" height="19" align="absmiddle" border="0" title="ยังไม่ส่งเกรดบางกลุ่ม" /> <?php } else { if ($flagSendGr) { ?> <img src="<?php echo base_url().$this->config->item('rg_ico_excel');?>" width="19" height="19" align="absmiddle" border="0" class="hand" onClick="sendPost('hidform_1', {'coId':<?php echo $row_co->coId;?>,'clIdStr':'<?php echo $rs[$key]['clIdStr'];?>','view':'<?php echo $rs[$key]['view'];?>','tc':'<?php echo $tc;?>'}, '<?php echo site_url($this->config->item('rg_folder').'grade/addGradeTextarea');?>')" /> <?php } else { ?> <img src="<?php echo base_url().$this->config->item('rg_ico_excel');?>" width="19" height="19" align="absmiddle" border="0" title="ยังไม่ส่งเกรดบางกลุ่ม" /> <?php } } ?> </td> <td class="hand" align="center"><img src="<?php echo base_url().$this->config->item('rg_print');?>" align="absmiddle" border="0" onClick="sendPost('hidform', {'coId':<?php echo $row_co->coId;?>,'clIdStr':'<?php echo $rs[$key]['clIdStr'];?>','view':'<?php echo $rs[$key]['view'];?>'}, '<?php echo site_url($this->config->item('rg_folder').'grade/printSendGradePDF');?>', {})" /></td> <?php if ($tc) { ?> <td align="center"> <?php if (((($rs[$key]['view'] == 's') && !$rs[$key]['flagAllSend']) || (($rs[$key]['view'] <> 's') && ($row_co->coSendGradeStatus == 'N'))) && !$flagSendGr) { ?> <span class="hand" onClick="sendPost('hidform', {'coId':<?php echo $row_co->coId;?>}, '<?php echo site_url($this->config->item('rg_folder').'rpt_regis/rptRis110');?>')"><img src="<?php echo base_url().$this->config->item('rg_excel_exp');?>" align="absmiddle" border="0" /></span> <?php } else { echo '-'; } ?> </td> <?php } ?> </tr> <?php } } else { ?> <tr> <td colspan="9" align="center"><span class="error">** ไม่ปรากฏรายการดังกล่าวในฐานข้อมูล **</span></td> </tr> <?php } ?> </table> <table width="100%"> <td align="right">รวม <?php echo $num_rows;?> รายการ</td> </table>
|