else { $color_row = "odd"; } $post = "mt_id:'{$row1->mt_id}', cms_id:'{$row1->cms_id}', flag:'add' "; //$post = "mt_id:'" . $row1->mt_id ."', cms_id:'" . $row1->cms_id ."'"; $agdt_add = ""; if(!empty($qu_add[$i]) && ($qu_add[$i] > 0)){ $agdt_add = "<span style=\"color:red;\"> (วาระเพิ่มเติม ". $qu_add[$i] ." รายการ) </span>"; //$agdt_add = "<font color=\"red\"> (มีวาระเพิ่มเติม) </font>"; } echo "<tr>"; echo "<td align='center' class='".$color_row."' nowrap=\"nowrap\">" . $a++ . "</td>"; echo "<td class='".$color_row."'><a href=\"javascript:void(0);\" onclick=\"sendPost('myForm',{{$post}},'{$urlView}','','');\" title=\"\">" . $row1->cms_name ."". $agdt_add . "</a></td>"; echo "<td align='center' class='".$color_row."' nowrap=\"nowrap\">" . $row1->mt_no . " / " . $row1->mt_year . "</td>"; echo "<td align='center' class='".$color_row."' nowrap=\"nowrap\">" . abbreDate2($row1->mt_date_start) . " - " . abbreDate2($row1->mt_date_stop) . "</td>"; $mt_start_time = $row1->mt_start_time; $tmp = explode(":", $mt_start_time); $mt_start_time = $tmp[0] . "." . $tmp[1]; $mt_end_time = $row1->mt_end_time; $tmp = explode(":", $mt_end_time); $mt_end_time = $tmp[0] . "." . $tmp[1]; echo "<td align='center' class='".$color_row."' nowrap=\"nowrap\">" . $mt_start_time . " น. - " . $mt_end_time . " น.</td>"; echo "<td style=\"text-align:center;\" class='".$color_row."'>"; $show_btn="0"; if(isset($rs_sent) && $rs_sent->num_rows() > 0) { foreach($rs_sent->result() as $row_sent){ if($row1->mt_id==$row_sent->emt_id){
} $post = "mt_id:'{$row_nt["mt_id"]}', cms_id:'{$row_nt["cms_id"]}', flag:'apprv' "; echo "<tr>"; echo "<td align='center' class='".$color_row."' nowrap=\"nowrap\">" . $a++ . "</td>"; echo "<td class='".$color_row."'><a href=\"javascript:void(0);\" onclick=\"sendPost('myForm',{{$post}},'{$urlView}','','');\" title=\"\">" . $row_nt["cms_name"] . "</a></td>"; echo "<td align='center' class='".$color_row."' nowrap=\"nowrap\">" . $row_nt["mt_no"] . " / " . $row_nt["mt_year"] ."</td>"; $mt_start_time = $row_nt["mt_start_time"]; $tmp = explode(":", $mt_start_time); $mt_start_time = $tmp[0] . "." . $tmp[1]; $mt_end_time = $row_nt["mt_end_time"]; $tmp = explode(":", $mt_end_time); $mt_end_time = $tmp[0] . "." . $tmp[1]; echo "<td align='center' class='".$color_row."' nowrap=\"nowrap\">" . abbreDate2($row_nt["mt_date_start"]) . " - " . abbreDate2($row_nt["mt_date_stop"]). "<br/>" . $mt_start_time . " น. - " . $mt_end_time . " น.</td>"; echo "<td align='center' class='".$color_row."' nowrap=\"nowrap\">".abbreDate2($row_nt["mt_eapprv_date"])."</td>"; echo "</tr>"; } } else { echo "<tr >"; echo "<td colspan=\"8\" align=\"center\" class=\"red\" >"; echo "<div align=\"center\"> {$this->config->item("emt_not_found")} </div>"; echo "</td>"; echo "</tr>"; } ?>