public static StringBuilder GetMain() { StringBuilder _str = new StringBuilder(); _str.AppendLine("<div class='paddingTop10'>"); _str.AppendLine(" <div class='ui form blue inverted segment'>"); _str.AppendLine(" <div class='ui left floated header'>"); _str.AppendLine(" <span class='lang lang-th f9 font-th regular white'>ค้นหา</span>"); _str.AppendLine(" <span class='lang lang-en f9 font-en regular white'>Search</span>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='ui right floated header'>"); _str.AppendFormat(" <i class='minus square icon link btnshrink font-th regular white' alt='{0}'></i>", _idContent); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='ui header'></div>"); _str.AppendLine(" <div class='paddingTop5 panel-bodys'>"); _str.AppendLine(" <div class='ui inverted dividing header'></div>"); _str.AppendLine(" <div class='panel-body'>"); _str.AppendLine(" <div class='two fields'>"); _str.AppendLine(" <div class='eight wide field'>"); _str.AppendLine(" <label>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular white'>คณะ</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular white'>Faculty</span>"); _str.AppendLine(" </label>"); _str.AppendLine(SCHUI.DDLFaculty(_idContent + "-faculty").ToString()); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='eight wide field'>"); _str.AppendLine(" <label>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular white'>หลักสูตร</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular white'>Program</span>"); _str.AppendLine(" </label>"); _str.AppendFormat(" <div id='{0}-program-dropdown'>{1}</div>", _idContent, SCHUI.DDLProgram((_idContent + "-program"), "", "")); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='two fields'>"); _str.AppendLine(" <div class='eight wide field'>"); _str.AppendLine(" <label>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular white'>ปีที่เข้าศึกษา</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular white'>Entries Year</span>"); _str.AppendLine(" </label>"); _str.AppendLine(SCHUI.DDLYearEntry(_idContent + "-yearentry").ToString()); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='eight wide field hide'>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='field'>"); _str.AppendFormat(" <div class='ui fluid button inverted blue' id='{0}-btnsearch'>", _idContent); _str.AppendLine(" <i class='search icon font-th regular white'></i>"); _str.AppendLine(" <span class='lang lang-th f9 font-th regular white'>ค้นหา</span>"); _str.AppendLine(" <span class='lang lang-en f9 font-en regular white'>Search</span>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine("</div>"); return(_str); }
public static StringBuilder GetMain() { StringBuilder _str = new StringBuilder(); _str.AppendFormat("<div id='{0}'>", _idContent); _str.AppendFormat(" <input type='hidden' id='{0}-saveresult' value=''>", _idContent); _str.AppendLine(" <div class='view' >"); _str.AppendLine(" <div class='iform' >"); _str.AppendLine(" <div class='iform-row'>"); _str.AppendLine(" <div class='col1 iform-col label-col left aligned'>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular black'>บันทึกสมัครรับทุนจำนวน</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular black'>Save Total of</span>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='col2 iform-col input-col left aligned paddingLeft10'>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular blue'><span class='total'></span> รายการ</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular blue'><span class='total'></span> items</span>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='iform-row'>"); _str.AppendLine(" <div class='col1 iform-col label-col left aligned'>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular black'>บันทึกสมัครรับทุนสำเร็จจำนวน</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular black'>Save Complete Total of</span>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='col2 iform-col input-col left aligned paddingLeft10'>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular blue'><span class='totalcomplete'></span> <span class='totalunit'>รายการ</span></span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular blue'><span class='totalcomplete'></span> <span class='totalunit'>items</span></span>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='iform-row'>"); _str.AppendLine(" <div class='col1 iform-col label-col left aligned'>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular black'>บันทึกสมัครรับทุนไม่สำเร็จจำนวน</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular black'>Save Incomplete Total of</span>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='col2 iform-col input-col left aligned paddingLeft10'>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular blue'><span class='totalincomplete'></span> <span class='totalunit'>รายการ</span></span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular blue'><span class='totalincomplete'></span> <span class='totalunit'>items</span></span>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='ui form'>"); _str.AppendLine(" <div class='ui dividing header'></div>"); _str.AppendLine(" <div class='three fields'>"); _str.AppendLine(" <div class='five wide field'>"); _str.AppendLine(" <label>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular black'>ปีที่สมัครรับทุน</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular black'>Scholarship Year</span>"); _str.AppendLine(" </label>"); _str.AppendLine(SCHUI.DDLYearEntry(_idContent + "-scholarshipsyear").ToString()); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='five wide field'>"); _str.AppendLine(" <label>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular black'>ภาคเรียนที่</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular black'>Semester</span>"); _str.AppendLine(" </label>"); _str.AppendLine(SCHUI.DDLSemester(_idContent + "-semester").ToString()); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='six wide field'>"); _str.AppendLine(" <label>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular black'>วันที่สมัครรับทุน</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular black'>Register Date</span>"); _str.AppendLine(" </label>"); _str.AppendFormat(" <div class='ui calendar' id='{0}-registerdate'>", _idContent); _str.AppendLine(" <div class='ui input right icon'>"); _str.AppendLine(" <i class='calendar icon'></i>"); _str.AppendLine(" <input class='inputcalendar' type='text' placeholder='' placeholderth='' placeholderen='' value='' />"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='fields'>"); _str.AppendLine(" <div class='sixteen wide field'>"); _str.AppendLine(" <label>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular black'>สมัครรับทุน</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular black'>Scholarship</span>"); _str.AppendLine(" </label>"); _str.AppendLine(SCHUI.DDLScholarships(_idContent + "-scholarships").ToString()); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='fields'>"); _str.AppendLine(" <div class='sixteen wide field'>"); _str.AppendLine(" <label>"); _str.AppendLine(" <span class='lang lang-th f10 font-th regular black'>หน่วยงานที่รับผิดขอบ</span>"); _str.AppendLine(" <span class='lang lang-en f10 font-en regular black'>Responsible Agency</span>"); _str.AppendLine(" </label>"); _str.AppendFormat(" <input id='{0}-responsibleagency' type='text' maxlength='255' placeholder='' placeholderth='' placeholderen='' value='' />", _idContent); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" <div class='field'>"); _str.AppendFormat(" <div class='ui fluid button inverted blue' id='{0}-btnsave' alt='{1}'>", _idContent, SCHUtil.PAGE_REGISTERSCHOLARSHIP_ADDUPDATE); _str.AppendLine(" <i class='save icon font-th regular black'></i>"); _str.AppendLine(" <span class='lang lang-th f9 font-th regular black'>บันทึก</span>"); _str.AppendLine(" <span class='lang lang-en f9 font-en regular black'>Save</span>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); _str.AppendLine(" </div>"); return(_str); }