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=window.opener.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.parentNode;
  17.         }
  18.     return oElement;
  19.     }
  20.    
  21. function doWindowFocus()
  22.     {
  23.     window.opener.oUtil.onSelectionChanged=new Function("realTime()");
  24.     }
  25.    
  26. function bodyOnLoad()
  27.     {  
  28.     window.onfocus=doWindowFocus;  
  29.     window.opener.oUtil.onSelectionChanged=new Function("realTime()");
  30.    
  31.     realTime()
  32.     }  
  33.    
  34. function realTime()
  35.     {
  36.     var oEditor=window.opener.oUtil.oEditor;
  37.     var oSel=oEditor.getSelection();
  38.     var oEl = window.opener.getSelectedElement(oSel);
  39.     oEl = GetElement(oEl,"INPUT");
  40.  
  41.     var btnInsert = document.getElementById("btnInsert");
  42.     var btnApply = document.getElementById("btnApply");
  43.     var btnOk = document.getElementById("btnOk");
  44.  
  45.     var inpName = document.getElementById("inpName");
  46.     var inpValue = document.getElementById("inpValue");
  47.     var inpState = document.getElementById("inpState");
  48.  
  49.     if (oEl)
  50.         {
  51.         if(oEl.type=="checkbox")
  52.             {
  53.             btnInsert.style.display="none";
  54.             btnApply.style.display="block";
  55.             btnOk.style.display="block";
  56.  
  57.             if(oEl.name)inpName.value=oEl.name;
  58.             if(oEl.value) inpValue.value=oEl.value;
  59.            
  60.             if(oEl.checked) inpState.value="checked";  
  61.             else inpState.value="unchecked";    
  62.             }
  63.         }
  64.     else
  65.         {
  66.         btnInsert.style.display="block";
  67.         btnApply.style.display="none";
  68.         btnOk.style.display="none";
  69.  
  70.         inpName.value="checkbox1";  
  71.         inpValue.value="";
  72.         inpState.value="unchecked";
  73.         }          
  74.     }
  75.  
  76. function doApply()
  77.     {
  78.     var oEditor=window.opener.oUtil.oEditor;
  79.     var oSel=oEditor.getSelection();
  80.     var oEl = window.opener.getSelectedElement(oSel);
  81.     oEl = GetElement(oEl,"INPUT");
  82.  
  83.     window.opener.oUtil.obj.saveForUndo();
  84.  
  85.     var btnInsert = document.getElementById("btnInsert");
  86.     var btnApply = document.getElementById("btnApply");
  87.     var btnOk = document.getElementById("btnOk");
  88.  
  89.     var inpName = document.getElementById("inpName");
  90.     var inpValue = document.getElementById("inpValue");
  91.     var inpState = document.getElementById("inpState");    
  92.  
  93.     if (oEl)
  94.         {
  95.         if(oEl.type=="checkbox")
  96.             {
  97.             if(inpName.value!="") oEl.name=inpName.value;        
  98.             if(inpValue.value!="") oEl.value=inpValue.value;
  99.             //if(inpState.value=="checked") oEl.checked=true; else oEl.checked=false;
  100.             if(inpState.value=="checked") oEl.setAttribute("checked","checked"); else oEl.removeAttribute("checked");
  101.             }
  102.         }
  103.     else
  104.         {
  105.         var elm = oEditor.document.createElement("INPUT");
  106.         elm.type = "checkbox";
  107.         elm.name = inpName.value;
  108.         elm.value = inpValue.value;
  109.         //if(inpState.value=="checked") elm.checked=true; else elm.checked=false;    
  110.         if(inpState.value=="checked") elm.setAttribute("checked", "checked");
  111.  
  112.         oSel = oEditor.getSelection();
  113.         range = oSel.getRangeAt(0);
  114.         range.collapse(true);
  115.         range.insertNode(elm);
  116.         range = oEditor.document.createRange();
  117.         range.selectNodeContents(elm);
  118.         oSel = oEditor.getSelection();
  119.         oSel.removeAllRanges();
  120.         oSel.addRange(range);
  121.         }
  122.  
  123.     realTime();
  124.     window.opener.realTime(window.opener.oUtil.obj);
  125.     window.opener.oUtil.obj.selectElement(0);
  126.     window.setTimeout("window.focus()", 10);
  127.     }              
  128. </script>
  129. </head>
  130. <body onload="loadTxt();bodyOnLoad()" style="overflow:hidden;">
  131.  
  132. <table width=100% height=100% align=center cellpadding=0 cellspacing=0>
  133. <tr>
  134. <td valign=top style="padding:5;height:100%">
  135.     <table width=100%>
  136.     <tr>
  137.         <td nowrap><span id=txtLang name=txtLang>Name</span>:&nbsp;&nbsp;</td>
  138.         <td width=100%><INPUT type="text" ID="inpName" NAME="inpName" style="width:100%;padding-left:2" value="checkbox1" class="inpTxt"></td>
  139.     </tr>
  140.     <tr>
  141.         <td nowrap><span id=txtLang name=txtLang>Value</span>:&nbsp;&nbsp;</td>
  142.         <td><INPUT type="text" ID="inpValue" NAME="inpValue" style="width:100%;padding-left:2" class="inpTxt"></td>
  143.     </tr>
  144.     <tr>
  145.         <td nowrap><span id=txtLang name=txtLang>Default</span>:&nbsp;&nbsp;</td>
  146.         <td>
  147.         <select ID="inpState" NAME="inpState" style="width:100%" class="inpSel">
  148.             <option value="checked" id="optLang" name="optLang">Checked</option>
  149.             <option value="unchecked" id="optLang" name="optLang" selected>Unchecked</option>
  150.         </select></td>
  151.     </tr>  
  152.     </table>
  153. </td>
  154. </tr>
  155. <tr>
  156. <td class="dialogFooter" style="padding:6;" align="right">
  157.     <table cellpadding=1 cellspacing=0>
  158.     <td>
  159.     <input type=button name=btnCancel id=btnCancel value="cancel" onclick="self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  160.     </td>
  161.     <td>
  162.     <input type=button name=btnInsert id=btnInsert value="insert" onclick="doApply();self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  163.     </td>
  164.     <td>
  165.     <input type=button name=btnApply id=btnApply value="apply" style="display:none" onclick="doApply()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  166.     </td>
  167.     <td>
  168.     <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'">
  169.     </td>
  170.     </table>
  171. </td>
  172. </tr>
  173. </table>
  174. </body>
  175. </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