⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 remote_control.jsp

📁 电信的网厅的整站代码
💻 JSP
字号:
<%@page contentType="text/html;charset=GBK"%>

<%@ include file="verify.jsp"%>
<%@ page import="com.doone.fj1w.fjmgr.order.newphone.FlowsEngie"%>
<%@ page import="com.doone.fj1w.fjmgr.order.newphone.ExtraBssParameter"%>

<html>
<%if (request.getProtocol().compareTo("HTTP/1.0") == 0)
		response.setHeader("Pragma", "no-cache");
  else if (request.getProtocol().compareTo("HTTP/1.1") == 0)
		response.setHeader("Cache-Control", "no-cache");
  response.setDateHeader("Expires", 0);		
%> 
<%
  //author: predan
  request.setCharacterEncoding("GBK");
  
  FlowsEngie _flowEngie  = (FlowsEngie)session.getAttribute("TF_BSSENTITY");
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>程控信息</title>
</head>
<link href="../../../common/style/main.css" rel="stylesheet" type="text/css" />
<link href="../../../common/style/Sty01.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../../../common/mainTool.js"></script>
<script>
  
  function fuc_init(){
     init_rc.src="remote_control_trans.jsp?init=init";
  }
  
</script>
<script>
  
  function fuc_event_toone(){
    if(remotecon_id.selectedIndex != -1){
       var selectvalue = remotecon_id.options(remotecon_id.selectedIndex).value;
       var selecttext  = remotecon_id.options(remotecon_id.selectedIndex).text;
       remotecon_id.remove(remotecon_id.selectedIndex);
	    // Insert two rows.
	   var oRow = toresult_tbl.insertRow(toresult_tbl.rows.length);
	   // Retrieve the rows collection for the table.
	   var aRows = toresult_tbl.rows;
	   // Retrieve the cells collection for the first row.
	   var aCells= oRow.cells;
	   
	   // Insert two cells into the first row.
	   var oCell1_1 = aRows(oRow.rowIndex).insertCell(aCells.length);
	   var oCell1_2 = aRows(oRow.rowIndex).insertCell(aCells.length);
	   var oCell1_3 = aRows(oRow.rowIndex).insertCell(aCells.length);
	   var oCell1_4 = aRows(oRow.rowIndex).insertCell(aCells.length);
	
	   // Add regular HTML values to the 4 new cells. 
	   oCell1_1.innerHTML="<input type='checkbox' title='还原' name='return_ckx' />"
	           +selecttext+"<input type='hidden' name='remotevalue_hdn' value='"
	           +selectvalue+"' /><input type='hidden' name='remotetext_hdn' value='"
	           +selecttext+"' />";
	   oCell1_2.innerHTML="<input type='password' name='remotepass_psd' value='' style='width:100px' maxlength='4' />";
	   oCell1_3.innerHTML="<input type='text' name='money_text' style='width:100px' />";
	   oCell1_4.innerHTML="<input type='text' name='vfax_text' style='width:120px' />";
    }
  }
  
  function fuc_event_frommore(){
    
    for (i = 1; i < toresult_tbl.rows.length; i++) {
        
         var inputcell = toresult_tbl.rows(i).cells;
         var j = 0;
         for (; j < inputcell.length; j++) {
             var td_result = inputcell[j].all;
              
             for(h = 0; h < td_result.length; h++){
                 
	             if(td_result[h].type == "checkbox" && td_result[h].checked){
	                
	                var value_s = td_result[1].value;
	                var text_s  = td_result[2].value;
	                  
	                tpt = new Option();  
			        tpt.text = text_s;
			        tpt.value = value_s;
			        document.all.remotecon_id.options.add(tpt); 
	                toresult_tbl.deleteRow(i);
	                h = td_result.length;
	                j = inputcell.length;
	                i = 0;
	             }
             }
         }
     }
     
  }
  
  function fuc_event_enter(){
    
     var querystring = "?";
     var value = "";
     var name="";
     var pass="";
     for (i = 1; i < toresult_tbl.rows.length; i++) {
         var inputcell = toresult_tbl.rows(i).cells;
      
         var td_result = inputcell[0].all;
         var value_s = td_result[1].value;
         var text_s  = td_result[2].value;
         value += value_s+"~";  
         name  += text_s+"~";
     
         td_result  = inputcell[1].all;   
         var pass_s = td_result[0].value;
         if(pass_s == "")
            pass_s = "一";
         pass  += pass_s+"~";
         
     }
    
    var url = "remote_control_trans.jsp?name="+name+"&value="+value+"&pass="+pass;
    commit_rc.src = url;
  }
  
</script>
<script>

  function fuc_event_privious_page(){
    window.location.href="special_mess.jsp";
  }
  
  function fuc_event_next_page(){
    window.location.href="select_device.jsp";
  }
  
  function fuc_window_close(){
     
  }
  
</script>  

<body onLoad="fuc_init()">
<script id="init_rc" src=""></script>
<script id="commit_rc" src=""></script>

<table width="100%" border="0" cellpadding="2" cellspacing="1" class="InnerTable" id ="basic" >
  <!--DWLayoutTable-->
      <tr class="OuterHead" >
        <td  ><strong>程控业务</strong></td>
      </tr>
      <tr>
        <td valign="top" class="InnerMain">
	    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="InnerTable">
		    <tr> 
		      <td width="150" class="InnerHead"><div align="left">可选业务:</div></td>
		      <td width="27" class="InnerHead">&nbsp;</td>
		      <td width="590" class="InnerHead"><div align="left">已选业务:</div></td>
	        </tr>
		    <tr> 
		      <td class="InnerMain"><div align="center">
		        <select name="remotecon_id" id="remotecon_id" size="10" style="width:150px">
	            </select>
		      </div></td>
		      <td valign="top" class="InnerMain">
			    <p><br>
			      <input type="button" name="toone_id" id="toone_id" value=" > " onClick="fuc_event_toone()">
			    </p>
			    <p>			     
		          <input type="button" name="fromone_id" id="fromone_id" onClick="fuc_event_frommore()" value=" < ">
		          <br>
	            </p></td>
		      <td valign="top" class="InnerMain">
		      <DIV style="padding: 3px; height: 100%;">
			  <table id="toresult_tbl" 
			         width="100%" 
			         border="0"
			         cellpadding="2" 
			         cellspacing="1" 
			         class="InnerTable">
                <tr>
                  <td width="29%" class="InnerHead" nowrap>程控功能名称</td>
                  <td width="21%" class="InnerHead" nowrap>密码</td>
                  <td width="23%" class="InnerHead" nowrap>押金(元)</td>
                  <td width="27%" class="InnerHead" nowrap>虚拟传真号码</td>
                </tr>
              </table>
              </DIV>
			  </td>
		    </tr>
		  </table>
		</td>
  </tr>
		  <tr>
            <td valign="top"  class="InnerMain">
			<table width="100%" border="0" cellpadding="2" cellspacing="1" >
			<tr >
			  <td align="right">
                <input type="button" 
                       name="cancel" 
                       class="button" 
                       style="width:80px" 
                       value="上一步"
                       onclick="fuc_event_privious_page();">
	              &nbsp;&nbsp; 
               <%
			    if(_flowEngie.getStepSN() == ExtraBssParameter.STEP_14){
			     %>
                   <input type="button" 
                     name="Submit" 
                     class="button" 
                     style="width:80px"
                     onclick="return fuc_event_next_page();" 
                     value="下一步"> 
                  <%
			    }else{%>
	            <input type="button" 
	                 name="Submit" 
	                 class="button" 
	                 style="width:80px" 
	                 value="下一步"
	                 onclick="fuc_event_enter()">
	               <%}%>
	          </td>
			</tr>
			</table>
			</td>
          </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -