smsreply.aspx

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

ASPX
689
字号
 if( day < 10 && day.toString().length == 1) day = "0" +day;
  value += tiannetDateSplit + day;
 if( m_bolShowHour ){
  var hour = tiannetHour;
  if( hour < 10 && hour.toString().length == 1 ) hour = "0" + hour;
  value += tiannetDateTimeSplit + hour;
 }
 if( m_bolShowMinute ){
  var minute = tiannetMinute;
  if( minute < 10 && minute.toString().length == 1 ) minute = "0" + minute;
  value += tiannetTimeSplit + minute;
 }
 tiannetOutObject.value = value;
 //document.all.divTiannetDate.style.display = "none";
 if( bolHideControl ) {
  tiannetHideControl();
 }
}
//是否显示时间
function showTime(){
 if( !m_bolShowHour && m_bolShowMinute){
  alert("如果要选择分钟,则必须可以选择小时!");
  return;
 }
 hideElementsById(new Array("tiannetHourHead","selTianHour","tiannetMinuteHead","selTianMinute"),true);
 if( m_bolShowHour ){
  //显示小时
  hideElementsById(new Array("tiannetHourHead"),false);
 }
 if( m_bolShowMinute ){
  //显示分钟
  hideElementsById(new Array("tiannetMinuteHead"),false);
 }
}
//弹出显示日历选择控件,以让用户选择
function tiannetPopCalendar(){
 //隐藏下拉框,显示相对应的head
 hideElementsById(new Array("selTianYear","selTianMonth","selTianHour","selTianMinute"),true);
 hideElementsById(new Array("tiannetYearHead","tiannetMonthHead","tiannetHourHead","tiannetMinuteHead"),false);
 tiannetSetDay(tiannetYear,tiannetMonth);
 tiannetWriteHead();
 showTime();
 var dads  = document.all.divTiannetDate.style;
 var iX, iY;
  
 var h = document.all.divTiannetDate.offsetHeight;
 var w = document.all.divTiannetDate.offsetWidth;
 //计算left
 if (window.event.x + h > document.body.offsetWidth - 1)
  iX = window.event.x - h - 1 ;
 else
  iX = window.event.x + 1;  
 if (iX <0)  
  iX=0;
 //计算top
 iY = window.event.y;
 if (window.event.y + w > document.body.offsetHeight - 1  )
  iY = document.body.scrollTop + document.body.offsetHeight - w - 1 ;
 else
  iY = document.body.scrollTop +window.event.y + 1;  
 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);tiannet none
  
  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: 390px;">
        <table style="width: 768px; background-color: #f3f8ff">
            <tr>
                <td style="width: 768px; height: 24px; background-color: #9ac4e0">
                    <span style="font-size: 10pt">&nbsp;<asp:Label ID="Label2" runat="server" Width="395px" style="left: 2px; position: relative; top: 5px" Height="24px">位置: &nbsp; 系统管理  &nbsp;> &nbsp; 短信回复查询</asp:Label></span></td>
            </tr>
            <tr>
            </tr>
            <tr>
                <td style="font-size: small;background-color: #4289c2 ;width: 768px; height: 14px" valign="top">
                    
                    开始日期
                     <input id="dttext" type="text"  runat="server"    style="width: 107px"  onClick="setDay(this);">
                     结束日期  <input id="enddate" type="text"  runat="server"    style="width: 107px"  onClick="setDay(this);">
                    <asp:Button
                        ID="Button1" runat="server" OnClick="searchmobileClick" Text="查询" /></td>
            </tr>
            <tr>
                <td style="font-size: small; width: 768px; height: 10px" valign="top">
                <asp:Label ID="Label1" runat="server" Height="22px" Text='&#13;&#10;            <table class="table1" style="width: 770px; height: 11px; background-color: #DBEAF5; font-size: 10pt">&#13;&#10;                                    <tr style="height: 12px;" align="center">&#13;&#10;                                        <th scope="col" style="border-style: solid; border: 1px; border-bottom: 0px; border-left: 0px;&#13;&#10;                                            border-top: 0px; border-right-color: White; height:11px">&#13;&#10;                                            选择</th>&#13;&#10;                                        <th scope="col" style="border-style: solid; border: 1px; border-bottom: 0px; border-left: 0px;&#13;&#10;                                            border-top: 0px;height:11px">&#13;&#10;                                            编号</th>&#13;&#10;                                        <th scope="col" style="border-style: solid; border: 1px; border-bottom: 0px; border-left: 0px;&#13;&#10;                                            border-top: 0px;height:11px">&#13;&#10;                                            手机号</th>&#13;&#10;                                        <th scope="col" style="border-style: solid; border: 1px; border-bottom: 0px; border-left: 0px;&#13;&#10;                                            border-right: 0px; border-top: 0px;height:11px">&#13;&#10;                                            回复内容</th>&#13;&#10;                                         <th scope="col" style="border-style: solid; border: 1px; border-bottom: 0px; border-left: 0px;&#13;&#10;                                            border-top: 0px;height:11px">&#13;&#10;                                            回复时间</th>&#13;&#10;                                           </tr>&#13;&#10;                                    &#13;&#10;                                </table>&#13;&#10;                 '
                            Width="521px"></asp:Label>
                    
                        <asp:GridView ID="gridView" runat="server" AllowPaging="True" OnPageIndexChanging="gridView_PageIndexChanging" AutoGenerateColumns="False" Width="741px" HorizontalAlign="Left" OnSelectedIndexChanged="gridView_SelectedIndexChanged" DataMember="DeliverID"  >
                        <FooterStyle ForeColor="Black" Font-Size="Larger" />
                        <Columns>
                        
                        <asp:TemplateField HeaderText="选择"><ItemTemplate><asp:CheckBox ID="chk" runat="server" AutoPostBack="false" Checked="false" /></ItemTemplate>
                             <ControlStyle Height="5px" Width="5px" />
                                        </asp:TemplateField>
                            <asp:BoundField DataField="DeliverID" HeaderText="编号" />
                            <asp:BoundField DataField="ID" HeaderText="短信编号"/>
                            <asp:BoundField DataField="Mobile" HeaderText="手机号码" />
                            <asp:BoundField DataField="MsCentent" HeaderText="短信内容"/>
                        
                            <asp:BoundField DataField="DeliverTime" HeaderText="回复时间" />
                        </Columns>
                        
                        <EmptyDataTemplate>
                                <table style="width: 750px; height: 11px; background-color: #DBEAF5; font-size: 10pt">
                                    <tr align="center" style="height: 12px;">
                                        <th scope="col" style="border-style: solid; border: 1px; border-bottom: 0px; border-left: 0px;
                                            border-top: 0px; border-right-color: White; 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>
                                             <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>
                            <PagerSettings PageButtonCount="5" />
                           
                    </asp:GridView>
                   
                    </td>
                    </tr>
                    <tr>
                    <td align ="center">
                     <asp:Label ID="lbBZ" runat="server" Width="243px"></asp:Label><br />
                         <asp:Button ID="Button" runat="server" OnClick="chakan" Text="查看" Width="43px"  />
                   <%--短信发送总条数:<asp:Label ID="lblCountSMS" runat="server" Text="Label" Width="49px"></asp:Label>--%></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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