viewsmsinfo.aspx

来自「该服务平台解决了计算机网络与移动网络之间信息交换问题」· ASPX 代码 · 共 750 行 · 第 1/3 页

ASPX
750
字号
 if (window.event.y + w > document.body.offsetHeight - 10   )
  iY = document.body.scrollTop + document.body.offsetHeight - w - 5 ;
 else
  iY = document.body.scrollTop +window.event.y + 5;  
 if (iY <0)  
  iY=0;
 dads.left = iX;
 dads.top = iY;
 tiannetShowControl();
 selectObject();
}
//隐藏日历控件(同时显示被强制隐藏的标签)
function tiannetHideControl(){
 document.all.divTiannetDate.style.display = "none";
 tiannetShowObject();
 arrTiannetHide = new Array();//将被隐藏的标签对象清空
}
//显示日历控件(同时隐藏会遮挡的标签)
function tiannetShowControl(){
 document.all.divTiannetDate.style.display = "";
 tiannetHideObject("SELECT");
 tiannetHideObject("OBJECT");
}
//根据标签名称隐藏标签。如会遮住控件的select,object
function tiannetHideObject(strTagName) {
 
 x = document.all.divTiannetDate.offsetLeft;
 y = document.all.divTiannetDate.offsetTop;
 h = document.all.divTiannetDate.offsetHeight;
 w = document.all.divTiannetDate.offsetWidth;
 
 for (var i = 0; i < document.all.tags(strTagName).length; i++)
 {
  
  var obj = document.all.tags(strTagName)[i];
  if (! obj || ! obj.offsetParent)
   continue;
  // 获取元素对于BODY标记的相对坐标
  var objLeft   = obj.offsetLeft;
  var objTop    = obj.offsetTop;
  var objHeight = obj.offsetHeight;
  var objWidth = obj.offsetWidth;
  var objParent = obj.offsetParent;
  
  while (objParent.tagName.toUpperCase() != "BODY"){
   objLeft  += objParent.offsetLeft;
   objTop   += objParent.offsetTop;
   objParent = objParent.offsetParent;
  }
  //alert("控件左端:" + x + "select左端" + (objLeft + objWidth) + "控件底部:" + (y+h) + "select高:" + objTop);
  
  var bolHide = true;
  if( obj.style.display == "none" || obj.style.visibility == "hidden" || obj.getAttribute("Author") == "tiannet" ){
   //如果标签本身就是隐藏的,则不需要再隐藏。如果是控件中的下拉框,也不用隐藏。
   bolHide = false;
  }
  if(  ( (objLeft + objWidth) > x && (y + h + 20) > objTop && (objTop+objHeight) >  y && objLeft < (x+w) ) && bolHide ){
   //arrTiannetHide.push(obj);//记录被隐藏的标签对象
   arrTiannetHide[arrTiannetHide.length] = obj;
   obj.style.visibility = "hidden";
  }
  
  
 }
}
//显示被隐藏的标签
function tiannetShowObject(){
 for(var i = 0;i < arrTiannetHide.length;i ++){
  //alert(arrTiannetHide[i]);
  arrTiannetHide[i].style.visibility = "";
 }
}
//初始化日期。
function tiannetInitDate(strDate){
 var arr = strDate.split(tiannetDateSplit);
 tiannetYear = arr[0];
 tiannetMonth = arr[1];
 tiannetDay = arr[2];
}
//清空
function tiannetClear(){
 tiannetOutObject.value = "";
 tiannetHideControl();
}
 //任意点击时关闭该控件
function document.onclick(){ 
  with(window.event.srcElement){ 
 if (tagName != "INPUT" && getAttribute("Author") != "tiannet")
    tiannetHideControl();
  }
}
//按ESC键关闭该控件
function document.onkeypress(){
 if( event.keyCode == 27 ){
  tiannetHideControl();
 }
}
</script>
    <form id="form1" runat="server">
     <div style=" width :741px; border-style :solid ; border-bottom:1px;  border-left:1px; border-right:1px; border-top:1px; border-color:#8AC5DB; height: 389px;">
        <table style="width: 774px; height: 20px; background-color: #f3f8ff">
            <tr>
                <td style="width: 770px; height: 25px; background-color: #9ac4e0">
                    <span style="font-size: 10pt">&nbsp;<span style="font-size: small">位置: &nbsp;  短信管理 &nbsp;&gt;
                        &nbsp;查看并修改短信</span></span></td>
            </tr>
            </table>
           <div>
          <table style ="width :774px; height :122px">
           <tr>
            <td style=" width :137px; height :74px; font-size :10pt; " align ="right" ><asp:Label ID="lbsms" runat ="server" Width ="102px" text ="请编辑短信内容"></asp:Label>
            </td>
            <td style=" width :760px; height :74px;font-size :10pt"><asp:TextBox id="tbSMS" runat ="server" TextMode="MultiLine" Height="62px" Width="547px"></asp:TextBox></td>
           </tr>
           <tr>
            <td style="width: 137px"></td> <td style="width: 760px"><asp:Label ID="lbtext" runat ="server" Width ="383px"  Font-Size ="10pt" Text ="注:电信小灵通短信字数为45字/条,移动、联通短信字数为69字/条!"></asp:Label>
            <asp:Label  ID="word" runat="server" Font-Size="10pt"  Width="98px">您已输入:<asp:TextBox ID="tbWordCount" runat="server" Enabled="False" Width="20px"></asp:TextBox>字</asp:Label>
                <asp:Button ID="btSave" runat="server" Height="19px" Font-Size ="10pt" Text="保存" Width="54px" OnClick="btSave_Click" /></td>
            </tr>
            
           <tr>
            <td style=" width :137px; height :153px;font-size :10pt" align ="right" ><asp:Label ID="Label2" runat ="server" Width ="95px" text ="请选择接收人"></asp:Label>
            </td>
            <td style=" width :760px; height :153px;font-size :10pt; border-bottom-width:1px; border-color :#F3F8FA">
            <table style=" width :550px; height :153px;font-size :10pt; border-style :solid ; border-bottom:1px;  border-left:1px; border-right:1px; border-top:1px; border-color:#8AC5DB">
            <tr><td style="width: 567px">
           
             <asp:Panel ID="Panel1" runat="server" Height="150px" ScrollBars="Vertical" Width="125px">
                        <asp:GridView ID="GridView1" runat="server" DataKeyNames="UserID" AutoGenerateColumns="False" PageSize="10"  Width="538px" Height="165px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                            <Columns>
                                <asp:BoundField DataField="UserDefineID" HeaderText="编号" />                                
                                <asp:BoundField DataField="TypeName" HeaderText="用户组名"></asp:BoundField>
                                <asp:BoundField DataField="Name" HeaderText="姓名" SortExpression="Name"></asp:BoundField>
                                <asp:BoundField DataField="Mobile" HeaderText="手机号" />
                            </Columns>
                            <EmptyDataTemplate>
                                    <table style="width: 300px; height: 11px; background-color: #DBEAF5; font-size: 10pt">
                                        <tr style="height: 12px;" align="center">
                                            
                                            <th scope="col" style="border-style: solid; border: 1px; border-bottom: 0px; border-left: 0px;
                                                border-top: 0px; height: 11px">
                                                编号</th>
                                            <th scope="col" style="border-style: solid; border: 1px; border-bottom: 0px; border-left: 0px;
                                                border-top: 0px; height: 11px">
                                                用户组名</th>
                                            
                                            <th scope="col" style="border-style: solid; border: 1px; border-bottom: 0px; border-left: 0px;
                                                border-right: 0px; border-top: 0px; height: 11px">
                                                姓名</th>
                                                
                                           
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                        </asp:GridView>
                        </asp:Panel>
                        </td>
                        </tr>
               </table>
            </td>
           </tr>
            <tr><td style="width: 137px; height: 18px; font-size :10pt"></td><td style=" left :300px; width: 760px; height: 18px;font-size :10pt" >
               总人数为:<asp:Label ID="lbcountperson" runat ="server"  ></asp:Label>
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                <asp:Button id="btChoice" runat ="server" Text ="选择接收人" OnClick="btChoice_Click" Width="81px"/>
               
            </td></tr>
                   
         </table>
         <div style="width :770px; height: 40px;">
               <table style="width :770px; height :45px; font-size :10pt">
               <tr>
               <td style=" width :116px; height :62px;font-size:10pt " align ="right" >
               <asp:Label ID="Label3" runat ="server" Width ="101px" text ="请选择提交方式"></asp:Label>
               </td>          
              <td valign ="bottom"  style="width: 87px; height: 62px;border-style :solid ; border-left :0px; border-right :0px; border-top :0px; border-bottom:0px; border-color:#8AC5DB">
              <asp:RadioButtonList ID="RBList1" runat ="server" OnSelectedIndexChanged="RBList1_SelectedIndexChanged" Height="49px">
             <asp:ListItem Selected ="True" Value ="0">立即提交</asp:ListItem>
             <asp:ListItem Value ="1">定时提交:</asp:ListItem>
             </asp:RadioButtonList></td>
             <td  valign="bottom"   style=" font-size :10pt; width: 149px; height: 62px;border-style :solid ; border-left :0px; border-right :0px; border-top :0px; border-bottom:0px; border-color:#8AC5DB">
                <input id="dttext" type="text"  runat="server"    style="width: 107px"  onClick="setDayHM(this);">
               
                日期</td>
               <%-- <td valign="bottom"  style=" font-size :10pt;height: 62px; width: 59px;border-style :solid ; border-left :0px; border-right :0px; border-top :1px; border-bottom:0px; border-color:#8AC5DB">
                <asp:DropDownList ID="hour" runat="server">
                 <asp:ListItem>00</asp:ListItem>
                  <asp:ListItem>01</asp:ListItem>
                   <asp:ListItem>02</asp:ListItem>
                    <asp:ListItem>03</asp:ListItem> <asp:ListItem>04</asp:ListItem> <asp:ListItem>05</asp:ListItem>
                     <asp:ListItem>06</asp:ListItem>
                      <asp:ListItem>07</asp:ListItem>
                       <asp:ListItem>08</asp:ListItem>
                        <asp:ListItem>09</asp:ListItem> <asp:ListItem>10</asp:ListItem> <asp:ListItem>11</asp:ListItem> <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem> <asp:ListItem>14</asp:ListItem><asp:ListItem>15</asp:ListItem><asp:ListItem>16</asp:ListItem> <asp:ListItem>17</asp:ListItem>
                     <asp:ListItem>18</asp:ListItem> <asp:ListItem>19</asp:ListItem> <asp:ListItem>20</asp:ListItem>
                      <asp:ListItem>21</asp:ListItem> <asp:ListItem>22</asp:ListItem> <asp:ListItem>23</asp:ListItem>
                       
                </asp:DropDownList>
                点</td>--%>
                <td valign="bottom" style=" font-size :10pt; height: 62px;border-style :solid ; border-left :0px; border-right :0px; border-top :0px; border-bottom:0px; border-color:#8AC5DB">
                 <asp:Label id="l" runat ="server" Width="318px" Height="14px"></asp:Label>
               <%-- <asp:DropDownList ID="second" runat="server">
                 <asp:ListItem>00</asp:ListItem>
                 <asp:ListItem>10</asp:ListItem>
                      <asp:ListItem>20</asp:ListItem>
                       <asp:ListItem>30</asp:ListItem>
                        <asp:ListItem>40</asp:ListItem>
                  <asp:ListItem>50</asp:ListItem>
                </asp:DropDownList>分--%></td>
                
             </tr>
             </table>           
         </div>
         <div>
           <table style ="width :774px; height :20px">
             <tr>
              <td align ="center">
       
        <asp:Label ID ="text" runat ="server" Width ="178px" Height ="25px"></asp:Label>
                  <asp:Label ID="lbBZ" runat="server"  Width="380px"></asp:Label>
                  </td>
             </tr>
           </table>
         
         </div>    
          <div>
           <table style ="width :774px; height :25px">
             <tr>
            
              <td  valign ="bottom" align ="center" style ="border-style :solid ; border-left :0px; border-right :0px; border-top :1px; border-bottom:0px; border-color:#8AC5DB">
                  <asp:Button ID="btnUpdate" runat="server" Text="提交" Height="23px" Width="40px" OnClick="btnUpdate_Click" />&nbsp;&nbsp;
                    <asp:Button ID ="btnSub" runat="server" Text ="发送" Height="23px" Width="40px" OnClick="btnSub_Click" />&nbsp;&nbsp;
                    <asp:Button ID="btnrest" runat="server" Text="返回" Height="23px" Width="40px" OnClick="btnrest_Click" /></td>
                     
             </tr>
           </table>
          </div>
                      
         </div>
        </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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