<%@ Import Namespace="System.Data.SqlClient"%>
<%@ Import Namespace="System.Data"%>
<%@ Page CodeBehind="003.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="yn165._003" %>
<HTML>
	<HEAD>
		<TITLE>创库网络(昆明)</TITLE>
		<META content="text/html; charset=gb2312" http-equiv="Content-Type">
		<META content="no-cache" http-equiv="Pragma">
		<STYLE type="text/css">INPUT {
	FONT-FAMILY: "宋体"; FONT-SIZE: 9pt
; text-decoration: none}
A:hover {
	COLOR: #ff6666; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A {
	FONT-FAMILY: "宋体"; TEXT-DECORATION: none}
TD {
	FONT-FAMILY: "宋体", "Arial", "Times New Roman"; FONT-SIZE: 9pt
; text-decoration: none}
.unnamed1 {  font-size: 7pt; text-decoration: none}
</STYLE>
		<!--web design:zheng guiwen E-mail:guiwen@zheng.com.cn -->
		<META content="MSHTML 5.00.2614.3500" name="GENERATOR">
<script language="JavaScript">
<!--
function delete_confirm(e){
	event.returnValue=confirm("确认删除?");
}

function goback(e){
	history.back();
}
function alertMessage(e){
	event.returnValue=confirm("您确定要清空购物车吗?");
}
function judge(e){
	alert("对不起，本站不单独出售域名！");
	event.returnValue=false;
}

function KBAddFavorite(theTit) {
// Copyright (c) 1998 by Kevin Bartz. All rights reserved. This site has been enhanced by one of Kevin Bartz's behaviours! Mail him at kevinbartz@geocities.com! This line must remain in the script.
IE4=(document.all)? 1 : 0
if (IE4) {
theSite=window.location
window.external.AddFavorite(theSite,theTit)
}
}
//-->
</script>


	</HEAD>
	<BODY aLink="#000000" bgColor="#FFFFFF" link="#000000" text="#000000" vLink="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="">
		<span class="big2"></span>
		<div align="center" class="big">
  <table cellspacing="0" cellpadding="0" width="760" border="0">
    <tr> 
      <td valign="bottom" align="left" width="79"><img src="new/top1.gif" width="79" height="65"></td>
      <td valign="bottom" align="left" width="192"><img src="new/top2.gif" width="192" height="65"></td>
      <td valign="bottom" align="left" width="96"><img src="new/top3.gif" width="96" height="65"></td>
      <td valign="bottom" align="left" width="107"><img src="new/top4.gif" width="107" height="65" usemap="#Map" border="0"><map name="Map"><area shape="rect" coords="11,17,104,53" href="vip01d.aspx"></map></td>
      <td valign="bottom" align="left" width="89"><img src="new/top5.gif" width="89" height="65" usemap="#Map3" border="0"><map name="Map3"><area shape="rect" coords="5,20,88,53" href="003.aspx"></map></td>
      <td valign="bottom" align="left" width="58"><img src="new/top6.gif" width="86" height="65" usemap="#Map4" border="0"><map name="Map4"><area shape="rect" coords="3,18,84,53" href="004.aspx"></map></td>
      <td valign="bottom" align="left" width="139"><img src="new/top7.gif" width="111" height="65" usemap="#Map5" border="0"><map name="Map5"><area shape="rect" coords="2,19,99,53" href="8.aspx?class=%D0%E9%C4%E2%D6%F7%BB%FA%B3%A3%CA%B6"></map></td>
    </tr>
  </table>
  <table width="757" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td><img src="new/bai.gif" width="4" height="1"></td>
    </tr>
  </table>
  <table width="760" border="0" cellspacing="1" cellpadding="0" bgcolor="#0079DE">
				<tr align="center" valign="middle">
					<td><a href="index.aspx"><font color="#FFFFFF">返回首页</font></a></td>
					<td width="2"><img src="img/l0.gif" width="1" height="21"></td>
					<td><a href="0.aspx"><font color="#FFFFFF">域名注册</font></a></td>
					<td width="2"><img src="img/l0.gif" width="1" height="21"></td>
					<td><a href="1.htm"><font color="#FFFFFF">虚拟主机</font></a></td>
					<td width="2"><img src="img/l0.gif" width="1" height="21"></td>
					<td><a href="2.htm"><font color="#FFFFFF">网页设计</font></a></td>
					<td width="2"><img src="img/l0.gif" width="1" height="21"></td>
					<td><a href="3.htm"><font color="#FFFFFF">应用开发</font></a></td>
					<td width="2"><img src="img/l0.gif" width="1" height="21"></td>
					<td><a href="4.htm"><font color="#FFFFFF">企业邮局</font></a></td>
					<td width="2"><img src="img/l0.gif" width="1" height="21"></td>
					<td><a href="5.htm"><font color="#FFFFFF">维护推广</font></a></td>
					<td width="2"><img src="img/l0.gif" width="1" height="21"></td>
					<td><a href="6.htm"><font color="#FFFFFF">网站策划</font></a></td>
					<td width="2"><img src="img/l0.gif" width="1" height="21"></td>
					<td><a href="7.aspx"><font color="#FFFFFF">代理专区</font></a></td>
					<td width="2"><img src="img/l0.gif" width="1" height="21"></td>
					<td><a href="8.aspx?class=域名常见问题"><font color="#FFFFFF">客户服务</font></a></td>
					<td width="2"><img src="img/l0.gif" width="1" height="21"></td>
					<td><a href="9.htm"><font color="#FFFFFF">关于我们</font></a></td>
				</tr>
			</table>
			<table width="760" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td><img src="img/00.gif" width="760" height="1"></td>
				</tr>
			</table>
			<table width="760" border="0" cellspacing="0" cellpadding="0" background="img/3di.gif">
				<tr>
					<td width="10" align="left" valign="top">&nbsp;</td>
					<td width="212" align="left" valign="top">
						<table width="100%" border="0" cellspacing="3" cellpadding="3">
							<tr>
								<td>什么是购物车？</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table border="0" cellpadding="5" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td align="center" valign="middle" width="60" height="71"><img src="img/domaina.gif" width="60" height="60"></td>
									<td height="71">
										<p><a href="0.aspx">国际域名</a><br>
											只需75元/年
											<br>
											如：yn165.com<br>
											免费保留3天，<br>
											付款24小时后即生效
										</p>
									</td>
								</tr>
							</tbody>
						</table>
						<font color="#0099CC">-------------------------------</font><br>
						<table border="0" cellpadding="5" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td align="center" valign="middle" width="60"><img src="img/hosting.gif" width="60" height="60"></td>
									<td>
										<p><a href="1.htm">虚拟主机</a><font color="#ff0000"><br>
											</font>Win2000系统<br>
											100M网站空间<br>
											100M邮箱空间<br>
											双CPU DELL服务器<br>
											支持.net、ASP、ACCESS<br>
											只需380元/年
										</p>
									</td>
								</tr>
							</tbody>
						</table>
						<font color="#0099CC">-------------------------------</font><br>
						<table border="0" cellpadding="5" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td align="center" valign="middle" width="60"><img src="img/design.gif" width="60" height="60"></td>
									<td>
										<p><a href="2.htm">网页制作</a><font color="#ff0000"><br>
											</font>根据您的需要<br>
											结合我们的设计思想<br>
											定制您的网页<br>
											希望接近您的要求<br>
											因为<br>
											<font color="#FFFFFF">追求无止境，创意无极限…</font>…</p>
									</td>
								</tr>
							</tbody>
						</table>
					</td>
					<td width="538" align="left" valign="top">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><img src="img/4topa.gif" width="542" height="27"></td>
							</tr>
						</table>
						<table width="100%" border="0" cellspacing="3" cellpadding="3">
							<tr>
								<td width="4%">&nbsp;</td>
								<td width="96%">
									<table width="517" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td height="18" width="517">
												<table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td width="104" align="right">&nbsp;</td>
														<td width="413" class="big"><img src="img/che.gif" width="262" height="37"></td>
													</tr>
												</table>
												<table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td>
															<form method="post" action="003.aspx">
<%
SqlConnection conn = new SqlConnection("server=211.155.254.117;database=yn165;uid=yn165;pwd=159753");
SqlCommand cmd;
conn.Open();
SqlDataReader reader;
%>

																<table border="0" cellspacing="1" bordercolor="#000000" height="142" width="499" cellpadding="4" bgcolor="#999999" align="left">
																	<tr align="center" bgcolor="#F6F6F6">
																		
                                <td height="2" width="64">订购商品 </td>
																		
                                <td height="2" width="129">说明 </td>
																		
                                <td height="2" width="31">单价 </td>
																		
                                <td height="2" width="32"> 
                                  <div align="center">
																				<center>
																					单位
																				</center>
																			</div>
																		</td>
																		
                                <td height="2" width="42"> 
                                  <div align="center">
																				<center>
																					数量
																				</center>
																			</div>
																		</td>
																		
                                <td height="2" width="42">总价 </td>
																		
                                <td height="2" width="77">操作 </td>
																	</tr>
																	<% string productID="",sql;
																	  int i=1,k,totalprice=0;
																	  k=Convert.ToInt16(Session["total"]);
																	  for (i=1;i<=k;i++){
																		productID=Convert.ToString(Session["id"+Convert.ToString(i)]);
																		sql="select * from shangping where sp_code='" + productID + "'";
																		
																		cmd = new SqlCommand(sql,conn);
																		reader = cmd.ExecuteReader();
																	    if (reader.Read()){
																	
																	%>
																	<tr align="center">
																		
                                <td height="2" width="64" bgcolor="#FFFFFF"><%=reader.GetValue(2)%> 
                                </td>
																		
                                <td align="left" height="2" width="129" bgcolor="#FFFFFF"><%=reader.GetValue(3)%></td>
																		
                                <td height="2" width="31" bgcolor="#FFFFFF"><%=reader.GetValue(4)%></td>
																		
                                <td height="2" width="32" bgcolor="#FFFFFF"><%=reader.GetValue(5)%></td>
																		
                                <td height="2" width="42" bgcolor="#FFFFFF"> 
                                  <input type="Text" name="txt<%=Convert.ToString(i)%>" value="<%=Session["num"+Convert.ToString(i)].ToString()%>" size="3">
																		</td>
																		
                                <td height="2" width="42" bgcolor="#FFFFFF"> <% int sprice=0,num=0,sum=0;
																			sprice=Convert.ToInt16(reader.GetValue(4));
																			num=Convert.ToInt16(Session["num"+Convert.ToString(i)]);
																			sum=sprice*num;
																			totalprice=totalprice+sum;
																			Response.Write(sum);
																			
																		%> </td>
						
                                <td height="2" width="77" bgcolor="#FFFFFF"> <a href="delitem.aspx?id=<%=Convert.ToString(i)%>" ><img src="img/del.gif" onClick="
                                (this)" width="62" height="23" border="0"></a></td>
																	</tr>
																	<% }
																        cmd.Dispose();
																		reader.Close();
																	}
																		%>
																	<tr bgcolor="#F5F5F5">
																		<td align="right" colspan="7" height="22"><font color="#FF3300">您订购的商品总价值为:
																		<% if (totalprice!=0){
																			Response.Write(Convert.ToString(totalprice));
																		 }
																		 else
																		 { 
																			Response.Redirect("nosp.aspx");
																		 }
																	
																		%>元</font></td>
																	</tr>
																	<tr>
																		<td align="left" colspan="5" height="2" bgcolor="#FFFFFF">1.您可以取消某项商品,或更改其数量,再点击&quot;修改确认&quot;按钮.</td>
																		
                                <td align="right" colspan="2" height="2" bgcolor="#FFFFFF"> 
                                  <font color="#ff6600">
                                  <input type="image" height="25" width="80" src="img/del1.gif" border="0" name="imageField42" >
                                  </font> </td>
																	</tr>
																	<tr>
																		<td align="left" colspan="7" height="16" bgcolor="#FFFFFF">2.完成后请您去收银台验证您的购买信息.您订购的商品清单将提交给我们...
																		</td>
																	</tr>
																	<tr bgcolor="#FFFFFF">
																		<td align="left" colspan="7" height="35">
																		<a href=# ><img src="img/del3.gif" onClick="goback(this)" border=0 width="80" height="25"></a>
																		<a href="clearCart.aspx" ><img src="img/del4.gif" onClick="alertMessage(this)" border=0 width="80" height="25"></a>
																		<a href="004.aspx" 
																		
																		><img src="img/del5.gif" border=0 width="85" height="25"></a></td>
																	</tr>
																</table>
															</form>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			
  <table cellspacing="1" cellpadding="0" width="760" bgcolor="#0079de" border="0">
    <tr valign="center" align="center"> 
      <td height="20"><a href="001.aspx"><font color="#FFFFFF">个性订购</font></a> 
        <font color="#FFFFFF">|</font> <a href="006b.htm"><font color="#FFFFFF">售后服务</font></a> 
        <font color="#FFFFFF">|</font> <a href="rmb.htm"><font color="#FFFFFF">付款说明</font></a> 
        <font color="#FFFFFF">| </font><a href="006g.htm"><font color="#FFFFFF">法律申明</font></a> 
        <font color="#FFFFFF">|</font> <font color="#FFFFFF">隐私政策</font> <font color="#FFFFFF">|</font> 
        <a href="9.htm"><font color="#FFFFFF">关于我们</font></a> <font color="#FFFFFF">|</font> 
        <a href="7.aspx"><font color="#FFFFFF">代理合作</font></a> <font color="#FFFFFF">|</font> 
        <a href="#" onClick="KBAddFavorite('创库网络')"><font color="#FFFFFF">自动访问本网站</font></a></td>
    </tr>
  </table>
  <table width="760" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td><img src="new/hui.gif" width="760" height="3"></td>
    </tr>
  </table>
  <table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="FAFAFA">
    <tr align="center"> 
      <td height="57"> 
        <table width="422" border="0" cellspacing="0" cellpadding="0">
          <tr align="center" valign="middle"> 
            <td height="22">服务热线：<font face="Arial, Helvetica, sans-serif">86-871-5326265 
              5326078 转分机 802、803、808</font></td>
          </tr>
          <tr align="center" valign="middle" bgcolor="#E0E0E0"> 
            <td height="22">中国云南.昆明创库网络科技有限公司<font face="Verdana, Arial, Helvetica, sans-serif">&reg; 
              </font>版权所有</td>
          </tr>
          <tr align="center" valign="middle"> 
            <td height="22"><font face="Arial, Helvetica, sans-serif" class="unnamed1">Copyright 
              &copy; 2002 Kunming Cacool Network Technical Co.LTD, All rights 
              reserved</font></td>
          </tr>
          <tr align="center" valign="middle"> 
            <td height="2"><img src="new/xia.gif" width="420" height="6"></td>
          </tr>
          <tr align="center" valign="middle"> 
            <td height="2"><img src="new/utf-8.gif" width="359" height="17"></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr align="center"> 
      <td height="57"><img src="new/315.gif" width="761" height="60" usemap="#Map2Map" border="0"><map name="Map2Map"><area shape="rect" coords="333,1,429,60" href="315.htm" alt="验证企业营业执照" title="验证企业营业执照"></map></td>
    </tr>
  </table>
</div>
</body>
</html>