BVB Source Codes

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

Return Download Pcook CMS bubble guest v3.0 SDCMS version: download form_hidden.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_hidden.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.        
  33. function realTime()
  34.         {
  35.         if(!dialogArguments.oUtil.obj.checkFocus()){return;}//Focus stuff
  36.         var oEditor=dialogArguments.oUtil.oEditor;
  37.         var oSel=oEditor.document.selection.createRange();
  38.  
  39.         if (oSel.parentElement) oEl=GetElement(oSel.parentElement(),"INPUT");
  40.         else oEl=GetElement(oSel.item(0),"INPUT");
  41.  
  42.         if (oEl)
  43.                 {
  44.                 if(oEl.type=="hidden")
  45.                         {
  46.                         btnInsert.style.display="none";
  47.                         btnApply.style.display="block";
  48.                         btnOk.style.display="block";
  49.  
  50.                         if(oEl.NAME)inpName.value=oEl.NAME;    
  51.                         if(oEl.name)inpName.value=oEl.name;    
  52.                         if(oEl.value) inpValue.value=oEl.value;
  53.                         }
  54.                 }
  55.         else
  56.                 {
  57.                 btnInsert.style.display="block";
  58.                 btnApply.style.display="none";
  59.                 btnOk.style.display="none";
  60.  
  61.                 inpName.value="hidden1";       
  62.                 inpValue.value="";
  63.                 }                      
  64.         }
  65.  
  66. function doApply()
  67.         {
  68.         if(!dialogArguments.oUtil.obj.checkFocus()){return;}//Focus stuff
  69.         var oEditor=dialogArguments.oUtil.oEditor;
  70.         var oSel=oEditor.document.selection.createRange();
  71.  
  72.         dialogArguments.oUtil.obj.saveForUndo();
  73.  
  74.         if (oSel.parentElement) oEl=GetElement(oSel.parentElement(),"INPUT");
  75.         else oEl=GetElement(oSel.item(0),"INPUT");
  76.  
  77.         if (oEl)
  78.                 {
  79.                 if(oEl.type=="hidden")
  80.                         {
  81.                         if(oEl.NAME) oEl.NAME=inpName.value;           
  82.                         else if(oEl.name) //else if(oEl.name) oEl.name=inpName.value;  
  83.                                 {
  84.                                 oEl.removeAttribute("name",0);
  85.                                 oEl.NAME=inpName.value;
  86.                                 }      
  87.                         else oEl.NAME=inpName.value;
  88.  
  89.                         if(inpValue.value!="") oEl.value=inpValue.value;
  90.                         }
  91.                 }
  92.         else
  93.                 {
  94.                 oSel.execCommand("InsertInputHidden");
  95.                 oSel = oEditor.document.selection.createRange()
  96.                 oEl=GetElement(oSel.item(0),"INPUT");
  97.                
  98.                 if(oEl.NAME) oEl.NAME=inpName.value;           
  99.                 else if(oEl.name) //else if(oEl.name) oEl.name=inpName.value;  
  100.                         {
  101.                         oEl.removeAttribute("name",0);
  102.                         oEl.NAME=inpName.value;
  103.                         }      
  104.                 else oEl.NAME=inpName.value;
  105.                        
  106.                 if(inpValue.value!="") oEl.value=inpValue.value;
  107.                 }
  108.  
  109.         realTime();
  110.        
  111.         dialogArguments.realTime(dialogArguments.oUtil.oName);
  112.         dialogArguments.oUtil.obj.selectElement(0);
  113.         }                              
  114. </script>
  115. </head>
  116. <body onload="loadTxt();bodyOnLoad()" style="overflow:hidden;">
  117.  
  118. <table width=100% height=100% align=center cellpadding=0 cellspacing=0>
  119. <tr>
  120. <td valign=top style="padding:5;height:100%">
  121.         <table width=100%>
  122.         <tr>
  123.                 <td nowrap><span id=txtLang name=txtLang>Name</span>:&nbsp;&nbsp;</td>
  124.                 <td width=100%><INPUT type="text" ID="inpName" NAME="inpName" style="width:100%;padding-left:2" value="hidden1" class="inpTxt"></td>
  125.         </tr>
  126.         <tr>
  127.                 <td nowrap><span id=txtLang name=txtLang>Value</span>:&nbsp;&nbsp;</td>
  128.                 <td><INPUT type="text" ID="inpValue" NAME="inpValue" style="width:100%;padding-left:2" class="inpTxt"></td>
  129.         </tr>
  130.         </table>
  131. </td>
  132. </tr>
  133. <tr>
  134. <td class="dialogFooter" style="padding:6;" align="right">
  135.         <table cellpadding=1 cellspacing=0>
  136.         <td>
  137.         <input type=button name=btnCancel id=btnCancel value="cancel" onclick="self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  138.         </td>
  139.         <td>
  140.         <input type=button name=btnInsert id=btnInsert value="insert" onclick="doApply();self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  141.         </td>
  142.         <td>
  143.         <input type=button name=btnApply id=btnApply value="apply" style="display:none" onclick="doApply()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  144.         </td>
  145.         <td>
  146.         <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'">
  147.         </td>
  148.         </table>
  149. </td>
  150. </tr>
  151. </table>
  152.  
  153. </body>
  154. </html>
downloadform_hidden.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