Viewing file: v_showCourseSendGradeRow.php (5.58 KB) -rw-r--r-- 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" 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 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>
|