BVB Source Codes

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

Return Download Pcook CMS bubble guest v3.0 SDCMS version: download form_file.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_file.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.    
  39.     var selEl = window.opener.getSelectedElement(oSel);
  40.     oEl = GetElement(selEl, "INPUT");
  41.  
  42.     var btnInsert = document.getElementById("btnInsert");
  43.     var btnApply = document.getElementById("btnApply");
  44.     var btnOk = document.getElementById("btnOk");
  45.    
  46.     var inpName = document.getElementById("inpName");
  47.  
  48.     if (oEl)
  49.         {
  50.         if(oEl.type=="file")
  51.             {
  52.             btnInsert.style.display="none";
  53.             btnApply.style.display="block";
  54.             btnOk.style.display="block";
  55.  
  56.             if(oEl.name)inpName.value=oEl.name;
  57.             }
  58.         }
  59.     else
  60.         {
  61.         btnInsert.style.display="block";
  62.         btnApply.style.display="none";
  63.         btnOk.style.display="none";
  64.  
  65.         inpName.value="file1";  
  66.         }          
  67.     }
  68.  
  69. function doApply()
  70.     {
  71.     var oEditor=window.opener.oUtil.oEditor;
  72.     var oSel=oEditor.getSelection();
  73.    
  74.     var selEl = window.opener.getSelectedElement(oSel);
  75.     oEl = GetElement(selEl, "INPUT");
  76.  
  77.     var inpName = document.getElementById("inpName");
  78.  
  79.     window.opener.oUtil.obj.saveForUndo();
  80.  
  81.     if (oEl)
  82.         {
  83.         if(oEl.type=="file")
  84.             {
  85.             if(oEl.name) oEl.name=inpName.value;        
  86.             }
  87.         }
  88.     else
  89.         {
  90.         elm = oEditor.document.createElement("INPUT");
  91.         elm.type = "file";
  92.         elm.name = inpName.value;
  93.        
  94.         oSel = oEditor.getSelection();
  95.         range = oSel.getRangeAt(0);
  96.         range.collapse(true);
  97.         range.insertNode(elm);
  98.         range = oEditor.document.createRange();
  99.         range.selectNodeContents(elm);
  100.         oSel = oEditor.getSelection();
  101.         oSel.removeAllRanges();
  102.         oSel.addRange(range);
  103.         }
  104.  
  105.     realTime();
  106.     window.opener.realTime(window.opener.oUtil.obj);
  107.     window.opener.oUtil.obj.selectElement(0);
  108.     window.setTimeout("window.focus()", 10);
  109.     }
  110.    
  111. </script>
  112. </head>
  113. <body onload="loadTxt();bodyOnLoad()" style="overflow:hidden;">
  114.  
  115. <table width=100% height=100% align=center cellpadding=0 cellspacing=0>
  116. <tr>
  117. <td valign=top style="padding:5px;height:100%">
  118.     <table width=100%>
  119.     <tr>
  120.         <td nowrap><span id=txtLang name="txtLang">Name</span>:&nbsp;&nbsp;</td>
  121.         <td width=100%><INPUT type="text" ID="inpName" NAME="inpName" style="width:100%" value="file1" class="inpTxt"></td>
  122.     </tr>
  123.     </table>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td class="dialogFooter" style="padding:6px;" align="right">
  128.     <table cellpadding=1 cellspacing=0>
  129.     <td>
  130.     <input type=button name=btnCancel id=btnCancel value="cancel" onclick="self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  131.     </td>
  132.     <td>
  133.     <input type=button name=btnInsert id=btnInsert value="insert" onclick="doApply();self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  134.     </td>
  135.     <td>
  136.     <input type=button name=btnApply id=btnApply value="apply" style="display:none" onclick="doApply()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  137.     </td>
  138.     <td>
  139.     <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'">
  140.     </td>
  141.     </table>
  142. </td>
  143. </tr>
  144. </table>
  145.  
  146. </body>
  147. </html>
downloadform_file.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