Exemple #1
0
        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='fields'>");
            _str.AppendLine("                   <div class='sixteen 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'>Type Scholarship</span>");
            _str.AppendLine("                       </label>");
            _str.AppendLine(SCHUI.DDLScholarshipsType(_idContent + "-scholarshipstype").ToString());
            _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);
        }
Exemple #2
0
        public static StringBuilder GetMain(string _page, string _id)
        {
            StringBuilder _str = new StringBuilder();
            Dictionary <string, object> _valueDataRecorded = SCHUtil.SetValueDataRecorded(_page, _id, null);
            string _titleTH    = String.Empty;
            string _titleEN    = String.Empty;
            string _background = String.Empty;

            if (_page.Equals(SCHUtil.PAGE_SCHOLARSHIP_ADD))
            {
                _titleTH    = "เพิ่ม";
                _titleEN    = "Add";
                _background = "green";
            }

            if (_page.Equals(SCHUtil.PAGE_SCHOLARSHIP_UPDATE))
            {
                _titleTH    = "แก้ไข";
                _titleEN    = "Edit";
                _background = "orange";
            }

            _str.AppendLine("<div class='paddingTop10'>");
            _str.AppendLine(GetValue(_valueDataRecorded).ToString());
            _str.AppendFormat(" <div class='ui form {0} inverted segment'>", _background);
            _str.AppendLine("       <div class='ui left floated header'>");
            _str.AppendFormat("         <span class='lang lang-th f9 font-th regular white'>{0}ทุน</span>", _titleTH);
            _str.AppendFormat("         <span class='lang lang-en f9 font-en regular white'>{0} Scholarship</span>", _titleEN);
            _str.AppendLine("       </div>");
            _str.AppendLine("       <div class='ui right floated header'>");
            _str.AppendLine("           <i class='close icon link font-th regular white btnclose'></i>");
            _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='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'>Scholarship Thai Name</span>");
            _str.AppendLine("                       </label>");
            _str.AppendFormat("                     <input id='{0}-scholarshipsnameth' type='text' placeholder='' placeholderth='' placeholderen='' value='' />", _idContent);
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='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'>Scholarship English Name</span>");
            _str.AppendLine("                       </label>");
            _str.AppendFormat("                     <input id='{0}-scholarshipsnameen' type='text' placeholder='' placeholderth='' placeholderen='' value='' />", _idContent);
            _str.AppendLine("                   </div>");
            _str.AppendLine("               </div>");
            _str.AppendLine("               <div class='two fields'>");
            _str.AppendLine("                   <div class='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'>Type Scholarship</span>");
            _str.AppendLine("                       </label>");
            _str.AppendLine(SCHUI.DDLScholarshipsType(_idContent + "-scholarshipstype").ToString());
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='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'>Scholarship Owner</span>");
            _str.AppendLine("                       </label>");
            _str.AppendFormat("                     <input id='{0}-owner' 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 button fluid inverted {0}' id='{1}-btnsave' data-options='{2}' alt='{3}'>", _background, _idContent, _id, _page);
            _str.AppendFormat("                     <i class='icon save 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'>Save</span>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("               </div>");
            _str.AppendLine("           </div>");
            _str.AppendLine("       </div>");
            _str.AppendLine("   </div>");
            _str.AppendLine("</div>");

            return(_str);
        }