function register(){ if($this->input->post('searchid')!=""){ $this->data['Subjectdetail'] = $this->frontend->getdbwhere('tblsubject',array('SubjectCode like'=>$this->input->post('searchid')."%")); } $this->tp->assign($this->data); $this->tp->display('frontend/register.html'); } function addsessionregister(){ $my_session=$this->session->userdata; $this->data['Subjectdetail'] = $this->frontend->getdbwhere('tblsubject',array('SubjectCode'=>$this->input->post('UserCountSubject'))); $this->session->set_userdata('UserCountSubject').$a++; redirect('fontend/register.html'); }
{section name=i loop=$Subjectdetail} <tr bgcolor="#EEEEEE"> <td width="80" align="center">{$Subjectdetail[i]->SubjectCode}</td> <td width="250" align="">{$Subjectdetail[i]->SubjectName}</td> <td width="30" align="center">{$Subjectdetail[i]->SubjectCredit}</td> <td width="30" align="center"></td> <td width="100" align="center"></td> <td width="10" align="center"><a href="{site_url()}home/addsessionregister/{$Subjectdetail[i]->SubjectCode}">เพิ่ม</a></td> </tr> {/section} </table> <div style ="clear:both;"></div> <!--end table--> </div> <div id="bigRight"> <center><font size="3">รายวิชาที่ที่เลือกไว้</font></center> <br/> <table width="700" border="0" align="" cellpadding="3" cellspacing="2"> <tr bgcolor="#458B00" > <td width="80" align="center" ><font color= #FFFFFF>รหัสวิชา</font></td> <td width="250" align="center"><font color= #FFFFFF>ชื่อรายวิชา</td> <td width="30" align="center"><font color= #FFFFFF>หน่วยกิต</td> <td width="30" align="center"><font color= #FFFFFF>กล่ม</td> <td width="100" align="center"><font color= #FFFFFF>เวลา</td> <td width="10" align="center"><font color= #FFFFFF></td> </tr> <div style="clear:both;"></div> {$a=0} {section name=i loop=$my_session['UserCountSubject']} <tr bgcolor="#EEEEEE"> <td width="80" align="center">{$my_session["SubjectCode{$a}"]}</td> <td width="250" align="">{$my_session["SubjectName{$a}"]}</td> <td width="30" align="center"></td> <td width="30" align="center"></td> <td width="100" align="center"></td> <td width="10" align="center"><a href="{site_url()}home/deletesessionregister/{$a}">ลบ</a></td> </tr> {$a=$a+1} {/section} </table><br/>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง