BVB Source Codes

Pcook CMS bubble guest v3.0 SDCMS version Show form_check.htm Source code

Return Download Pcook CMS bubble guest v3.0 SDCMS version: download form_check.htm Source code - Download Pcook CMS bubble guest v3.0 SDCMS version Source code - Type:.htm
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4. <link href="style/editor.css" rel="stylesheet" type="text/css">
  5. <script>
  6.         var sLangDir=dialogArguments.oUtil.langDir;
  7.         document.write("<scr"+"ipt src='language/"+sLangDir+"/form_check.js'></scr"+"ipt>");
  8. </script>
  9. <script>writeTitle()</script>
  10. <script>
  11. function GetElement(oElement,sMatchTag)
  12.         {
  13.         while (oElement!=null&&oElement.tagName!=sMatchTag)
  14.                 {
  15.                 if(oElement.tagName=="BODY")return null;
  16.                 oElement=oElement.parentElement;
  17.                 }
  18.         return oElement;
  19.         }
  20.        
  21. function doWindowFocus()
  22.         {
  23.         dialogArguments.oUtil.onSelectionChanged=new Function("realTime()");
  24.         }
  25. function bodyOnLoad()
  26.         {      
  27.         window.onfocus=doWindowFocus;  
  28.         dialogArguments.oUtil.onSelectionChanged=new Function("realTime()");
  29.        
  30.         realTime()
  31.         }      
  32. function realTime()
  33.         {
  34.         if(!dialogArguments.oUtil.obj.checkFocus()){return;}//Focus stuff
  35.         var oEditor=dialogArguments.oUtil.oEditor;
  36.         var oSel=oEditor.document.selection.createRange();
  37.  
  38.         if (oSel.parentElement) oEl=GetElement(oSel.parentElement(),"INPUT");
  39.         else oEl=GetElement(oSel.item(0),"INPUT");
  40.  
  41.         if (oEl)
  42.                 {
  43.                 if(oEl.type=="checkbox")
  44.                         {
  45.                         btnInsert.style.display="none";
  46.                         btnApply.style.display="block";
  47.                         btnOk.style.display="block";
  48.  
  49.                         if(oEl.NAME)inpName.value=oEl.NAME;    
  50.                         if(oEl.name)inpName.value=oEl.name;    
  51.                         if(oEl.value) inpValue.value=oEl.value;
  52.                        
  53.                         if(oEl.checked) inpState.value="checked";      
  54.                         else inpState.value="unchecked";       
  55.                         }
  56.                 }
  57.         else
  58.                 {
  59.                 btnInsert.style.display="block";
  60.                 btnApply.style.display="none";
  61.                 btnOk.style.display="none";
  62.  
  63.                 inpName.value="checkbox1";     
  64.                 inpValue.value="";
  65.                 inpState.value="unchecked";
  66.                 }                      
  67.         }
  68.  
  69. function doApply()
  70.         {
  71.         if(!dialogArguments.oUtil.obj.checkFocus()){return;}//Focus stuff
  72.         var oEditor=dialogArguments.oUtil.oEditor;
  73.         var oSel=oEditor.document.selection.createRange();
  74.  
  75.         dialogArguments.oUtil.obj.saveForUndo();
  76.  
  77.         if (oSel.parentElement) oEl=GetElement(oSel.parentElement(),"INPUT");
  78.         else oEl=GetElement(oSel.item(0),"INPUT");
  79.  
  80.         if (oEl)
  81.                 {
  82.                 if(oEl.type=="checkbox")
  83.                         {
  84.                         if(oEl.NAME) oEl.NAME=inpName.value;           
  85.                         else if(oEl.name) //else if(oEl.name) oEl.name=inpName.value;  
  86.                                 {
  87.                                 oEl.removeAttribute("name",0);
  88.                                 oEl.NAME=inpName.value;
  89.                                 }
  90.                         else oEl.NAME=inpName.value;
  91.  
  92.                         if(inpValue.value!="") oEl.value=inpValue.value;
  93.                         if(inpState.value=="checked") oEl.checked=true;
  94.                         else oEl.checked=false;
  95.                         }
  96.                 }
  97.         else
  98.                 {
  99.                 oSel.execCommand("InsertInputCheckbox");
  100.                 oSel = oEditor.document.selection.createRange()
  101.                 oEl=GetElement(oSel.item(0),"INPUT");
  102.                
  103.                 if (oEl)
  104.                         {
  105.                         if(oEl.NAME) oEl.NAME=inpName.value;           
  106.                         else if(oEl.name) //else if(oEl.name) oEl.name=inpName.value;  
  107.                                 {
  108.                                 oEl.removeAttribute("name",0);
  109.                                 oEl.NAME=inpName.value;
  110.                                 }      
  111.                         else oEl.NAME=inpName.value;
  112.                                
  113.                         if(inpValue.value!="") oEl.value=inpValue.value;
  114.                         if(inpState.value=="checked") oEl.checked=true;        
  115.                         }
  116.                 }
  117.  
  118.         realTime();
  119.         dialogArguments.realTime(dialogArguments.oUtil.oName);
  120.         dialogArguments.oUtil.obj.selectElement(0);
  121.         }                              
  122. </script>
  123. </head>
  124. <body onload="loadTxt();bodyOnLoad()" style="overflow:hidden;">
  125.  
  126. <table width=100% height=100% align=center cellpadding=0 cellspacing=0>
  127. <tr>
  128. <td valign=top style="padding:5;height:100%">
  129.         <table width=100%>
  130.         <tr>
  131.                 <td nowrap><span id=txtLang name=txtLang>Name</span>:&nbsp;&nbsp;</td>
  132.                 <td width=100%><INPUT type="text" ID="inpName" NAME="inpName" style="width:100%;padding-left:2" value="checkbox1" class="inpTxt"></td>
  133.         </tr>
  134.         <tr>
  135.                 <td nowrap><span id=txtLang name=txtLang>Value</span>:&nbsp;&nbsp;</td>
  136.                 <td><INPUT type="text" ID="inpValue" NAME="inpValue" style="width:100%;padding-left:2" class="inpTxt"></td>
  137.         </tr>
  138.         <tr>
  139.                 <td nowrap><span id=txtLang name=txtLang>Default</span>:&nbsp;&nbsp;</td>
  140.                 <td>
  141.                 <select ID="inpState" NAME="inpState" style="width:100%" class="inpSel">
  142.                         <option value="checked" id="optLang" name="optLang">Checked</option>
  143.                         <option value="unchecked" id="optLang" name="optLang" selected>Unchecked</option>
  144.                 </select></td>
  145.         </tr>  
  146.         </table>
  147. </td>
  148. </tr>
  149. <tr>
  150. <td class="dialogFooter" style="padding:6;" align="right">
  151.         <table cellpadding=1 cellspacing=0>
  152.         <td>
  153.         <input type=button name=btnCancel id=btnCancel value="cancel" onclick="self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  154.         </td>
  155.         <td>
  156.         <input type=button name=btnInsert id=btnInsert value="insert" onclick="doApply();self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  157.         </td>
  158.         <td>
  159.         <input type=button name=btnApply id=btnApply value="apply" style="display:none" onclick="doApply()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  160.         </td>
  161.         <td>
  162.         <input type=button name=btnOk id=btnOk value=" ok " style="display:none;" onclick="doApply();self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  163.         </td>
  164.         </table>
  165. </td>
  166. </tr>
  167. </table>
  168. </body>
  169. </html>
downloadform_check.htm Source code - Download Pcook CMS bubble guest v3.0 SDCMS version Source code
Related Source Codes/Software:
Oo 126 CMS movie site system - This procedure ASP + ACC/ASP + SQL, using new kern... 2016-09-21
IDC sales web site - Beautiful IDC sales web site source code 2016-09-21
NPOINT virtual host v1.7.0 formal version management system - The system main function is introduced 2016-09-21
Classified information network business in suzhou - Overall module: classification of supply and deman... 2016-09-21
Jie Yang v0.6.3 article system - System functions: 1, the system settings A confi... 2016-09-21
Age design website information management system SDCMS v1.1 SP1 - SDCMS is designed to build the information managem... 2016-09-21
Age design website information management system SDCMS v1.1 SP1 - SDCMS is designed to build the information managem... 2016-09-21
C9 v2.1.1 static post system - Program USES ASP + ACC structure design and develo... 2016-09-21
Imitation green download station perfect version - Before increased | software home page, on the basi... 2016-09-21
Subdomain hosting edition v1.9 s taobao, pat - The background site admin 2016-09-21
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top