<!--#include file="QvodCms_Conn.asp"-->
<%
Dim action,oid
Call OpenConn()
sql="":S1="":S2="":S3=""
action=Trim(Request.QueryString("action"))
oid=QvodCms_Clng(Request.QueryString("oid"))

Sub ostar()'发货状态
   if rs("ostar")=1 then
    'Response.Write("<a href='?action=ostar&sx=0&oid="&rs("oid")&"' title=""修改发货状态""><font color='red'>已发货</font></a>")
	Response.Write("<font color='red'><b>已发货√</b></font>")
   Else
    Response.Write "<u>未发货×</u>"
   End if		
End Sub

if oid<=0 or action<>"orderinfo" then
   Call QvodCms_Err("必要参数不能为空！")
   Response.End
End if
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<TITLE>兑换管理页面</TITLE>
<link href="skins/css/JaJa_main.css" rel="stylesheet" type="text/css" />
<script language = "javaScript" src = "QvodCms_All.js" type="text/javascript"></script>
</head>
<body>


<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
<th colspan=2 style="text-align:center;"><table width="100%" border="0">
    <tr>
      <td align="center"><b>查看奖品兑换详细状态</b></td>
      </tr>
  </table>
<!-- --></th>
</tr>

<%
Set rs = Server.CreateObject("adodb.recordset")
sql = "Select top 1 * from qvodcms_order,qvodcms_user where oid>0 "&sql&" and ouid=uid and oid="&oid&""
rs.Open sql, Conn, 1, 1
If not(rs.bof And rs.eof) Then
%>
<tr bgcolor="#FFFFFF" onMouseOver="javascript:this.bgColor='#E3E1D7'" onMouseOut="javascript:this.bgColor='#FFFFFF'" style="text-align:center;">
  <td width="156" >用户编号：</td>
  <td width="819"  align="left"><%=rs("uname")%></td>
  </tr>
  <tr bgcolor="#FFFFFF" onMouseOver="javascript:this.bgColor='#E3E1D7'" onMouseOut="javascript:this.bgColor='#FFFFFF'" style="text-align:center;">
  <td width="156" >奖品名称：</td>
  <td width="819"  align="left"><font color="#FF0000"><%=rs("oname")%></font></td>
  </tr>
  <tr bgcolor="#FFFFFF" onMouseOver="javascript:this.bgColor='#E3E1D7'" onMouseOut="javascript:this.bgColor='#FFFFFF'" style="text-align:center;">
  <td width="156" >兑换数量：</td>
  <td width="819"  align="left"><font color="#FF0000"><b><%=rs("ohow")%></b>件</font></td>
  </tr>
  <tr bgcolor="#FFFFFF" onMouseOver="javascript:this.bgColor='#E3E1D7'" onMouseOut="javascript:this.bgColor='#FFFFFF'" style="text-align:center;">
  <td width="156" >收件地址：</td>
  <td width="819"  align="left"><%=rs("oadd")%></td>
  </tr>
  <tr bgcolor="#FFFFFF" onMouseOver="javascript:this.bgColor='#E3E1D7'" onMouseOut="javascript:this.bgColor='#FFFFFF'" style="text-align:center;">
  <td width="156" >联系方式：</td>
  <td width="819"  align="left"><%=rs("otel")%></td>
  </tr>
  <tr bgcolor="#FFFFFF" onMouseOver="javascript:this.bgColor='#E3E1D7'" onMouseOut="javascript:this.bgColor='#FFFFFF'" style="text-align:center;">
  <td width="156" >联系 Q Q：</td>
  <td width="819"  align="left"><%=rs("oqq")%></td>
  </tr>
  <tr bgcolor="#FFFFFF" onMouseOver="javascript:this.bgColor='#E3E1D7'" onMouseOut="javascript:this.bgColor='#FFFFFF'" style="text-align:center;">
  <td width="156" >兑换时间：</td>
  <td width="819"  align="left"><%=rs("otime")%></td>
  </tr>
   <tr bgcolor="#FFFFFF" onMouseOver="javascript:this.bgColor='#E3E1D7'" onMouseOut="javascript:this.bgColor='#FFFFFF'" style="text-align:center;">
  <td width="156" >处理状态：</td>
  <td width="819"  align="left"><font color="#FF0000"><%Call ostar()%></font></td>
  </tr>
  <tr bgcolor="#FFFFFF" onMouseOver="javascript:this.bgColor='#E3E1D7'" onMouseOut="javascript:this.bgColor='#FFFFFF'" style="text-align:center;">
  <td width="156" >发货时间：</td>
  <td width="819"  align="left"><font color="#FF0000"><b><%=rs("oktime")%></b></font></td>
  </tr>
<tr >
  <td colspan="2" class="td2" style="text-align:left; height:30px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><input name='submit1' type='submit' value='关闭窗口' onClick="javascript:window.close(); return false;">&nbsp;</td>
    </tr>
</table></td>
  </tr>


</table>
<%
Else
    Call QvodCms_Err("暂无奖品兑换数据！")
End If
rs.Close:Set rs=nothing:Call CloseConn()
%>
<div style="text-align:center; margin-top:5px; color: #FF0000">页面执行时间：<%=GetRunTime()%>秒</div>
</body>
</html>