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

📄 renewemail.aspx

📁 实现了在线订单的提交
💻 ASPX
字号:
<%@ Page Language="c#" ContentType="text/html" ResponseEncoding="gb2312" %>
<%@ Import Namespace="com.todayisp.NowClient" %>

<script language="c#" runat="server" >
 string  msg=null,code=null,wrongMsg=null;
 bool isSuccess;
 string responseXML=null,sendXML=null;
 Hashtable resdataHash=new Hashtable();
 public void Page_Load(object sender,EventArgs E)
 {
   try
   {
	  Email email = new Email();
	  Hashtable rndata = new Hashtable();
	  rndata["id"] = Request.Form["id"];
	  rndata["domain"] = Request.Form["domain"];
	  rndata["product"] = Request.Form["prod"];
	  rndata["dtexpired"] = Request.Form["expdate"];
	  rndata["period"] = Request.Form["period"];
	  email.renewEmail(rndata);
	  sendXML = email.getsendXML();
	  
	  ReceiveXML receivexml=new ReceiveXML(email.getresponseXML());
	  
	  msg=receivexml.getMsg();
	  code=receivexml.getCode();
	  isSuccess=receivexml.isSuccess();
	  responseXML=receivexml.getXML(email.getresponseXML());
	  resdataHash=receivexml.getResData();
	  
   }
   catch(Exception e)
   {
     wrongMsg=e.Message;
   }
 }
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>邮局续费</title>
<link href="../../images/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-bottom: 0px;
	background-color: #CCCCCC;
}
-->
</style>
</head>
<body>
  <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th scope="row"><img src="../../images/top1.jpg" width="760" height="21"></th>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" background="../../images/top2.gif">
  <tr>
    <td width="278" height="25" scope="row"> </td>
    <td width="482" scope="row">时代互联接口模式演示程序 Ver1.5</td> 
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="76" background="../../images/top3.jpg" scope="row"><EMBED src="../../images/banner_2.swf" quality=high WIDTH="375" HEIGHT="76" wmode="transparent" menu="false"></embed><EMBED src="../../images/banner_2.swf" quality=high WIDTH="375" HEIGHT="76" wmode="transparent" menu="false"></embed></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" background="../../images/top4.gif">
  <tr>
    <td width="267" height="30" scope="row"> </td>
    <td width="493" scope="row"> <a href="../../index.htm">演示首页</a> - 邮局续费信息</td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" background="../../images/middle.gif">
  <tr>
    <td width="202" height="100%" valign="top" scope="row"><table width="95%" height="100%"  border="0" align="center" cellpadding="0" cellspacing="0" background="../../images/drg.gif">
        <tr> 
          <td height="35" background="../../images/bback01.jpg" scope="row">  <a href="../../index.htm" class="top">返回演示首页</a></td>
        </tr>
        <tr> 
          <td height="25" align="left" background="../../images/bback02.gif" scope="row">  
             <STRONG>邮局注册</STRONG></td>
        </tr>
        <tr> 
          <td height="30" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><a href="createEmail.htm">创建邮局</a></td>
        </tr>
        <tr> 
          <td height="30" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><a href="renewEmail.htm">邮局续费</a> 
          </td>
        </tr>
        <tr> 
          <td height="30" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><a href="emailInfo.htm">查询邮局信息</a></td>
        </tr>
        <tr> 
          <td height="100%" scope="row"> </td>
        </tr>
      </table></td>
    <td width="558" valign="top" scope="row"><br>
      <table width="98%"  border="1" align="center" cellpadding="1" cellspacing="0" bordercolorlight="#FFFFFF" bordercolor="#F5EEE8">
      <tr>
        <td scope="row"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
                <th height="20" bgcolor="#f7f7f7" scope="row"> = 接口模式演示程序使用说明 
                  - 邮局续费 返回结果=</th>
          </tr>
        </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
                <th width="13%" scope="row"><img src="../../images/mail.jpg" width="66" height="66" hspace="10" vspace="10"></th>
                <td width="87%">1、状态:<%=code%><br>
                  2、信息:<%=msg%> <br>
                  3、是否成功: <%=isSuccess%><br>
					<%try{
						  if(resdataHash.Count!=0){
								Response.Write("<br> = 返回续费信息 = <br>");		
								Response.Write("此次扣费:"+resdataHash["pay"]+"元<br>");
								Response.Write("邮局ID:"+resdataHash["id"]+"<br>");
								Response.Write("邮局产品:"+resdataHash["productid"]+"<br>");
								Response.Write("邮局服务器:"+resdataHash["mailserver"]+"<br>");
								Response.Write("绑定域名:"+resdataHash["domain"]+"<br>");
								Response.Write("邮局密码:"+resdataHash["pwd"]+"<br>");
								Response.Write("容量大小:"+resdataHash["space"]+"M<br>");
								Response.Write("创建时间:"+resdataHash["datecreate"]+"<br>");
								Response.Write("过期时间:"+resdataHash["dateexpired"]+"<br>");
								Response.Write("邮局状态:"+resdataHash["active"]+"(0.未开通 1.开通 2.试用 3.停用 4.过期停用)");
								
						  }
					}
					catch(Exception ex){
						Response.Write("错误信息:"+ex.Message +"<br>");
						Response.Write(ex.StackTrace);
					}
				  %></td>
            </tr>
          </table>
			
			<table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
                <td height="20" align="left" bgcolor="#f7f7f7" scope="row">A、返回的XML信息如下:</td>
          </tr>
        </table>
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <th scope="row"><textarea name="textarea" cols="85%" rows="15" class="formstyle">
				<% try { %>
					<%=responseXML.Replace("<","\r\n<")%>
				<% } catch (Exception ex) { Response.Write("Is Empty Content !!"); }%>
				</textarea></th>
              </tr>
            </table>
			
			<table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
                <td height="20" align="left" bgcolor="#f7f7f7" scope="row">B、发送的XML信息如下:</td>
          </tr>
        </table>
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <th scope="row"><textarea name="textarea" cols="85%" rows="15" class="formstyle"><%=sendXML%></textarea></th>
              </tr>
            </table>
          </td>
		  
      </tr>
    </table>
	</td>
		  
      </tr>
    </table>
      
<table width="760" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F5EEE8">
  <tr>
    <td valign="top" scope="row"><img src="../../images/down.gif" width="760" height="50"></td>
  </tr>
  <tr>
    <td align="center" scope="row"><br>
      时代互联 版权所有<br> 
     </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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