<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/web_top.asp" -->
      <%
chk_log_usr()
''''''''''''''''''''''''''''''''
If SafeRequest("snme")<>"" Then
	snme=SafeRequest("snme")
End If
If snme="" Then
 call errorpage(-2,"错误的订单名称!")
end if
	query="select * from v_ot1lst where s_unme='"&session("usrname")&"'  and s_nme = '"&snme&"'"
	rs.open query,conn,1,1
	  if rs.recordcount<=0 then
      call errorpage(-2,"对不起，该订单不存在！")
      end if
	domainname=trim(rs("s_nme"))
	proid=rs("s_prd")
	pstprd1=trim(rs("pstprd1"))
	pstprd2=trim(rs("pstprd2"))
	pstprd3=trim(rs("pstprd3"))
	pstnme1=trim(rs("pstnme1"))
	pstnme2=trim(rs("pstnme2"))
	pstnme3=trim(rs("pstnme3"))
	setnme=trim(rs("setnme"))
	pstrotprd=trim(rs("pstrotprd"))
	pstrotnme=trim(rs("pstrotnme"))
	query="select * from pdttpe where pt_tag='ot1'"
rs1.open query,conn,1,1
if not rs1.eof then
ptnme=trim(rs1("pt_nme"))
end if
rs1.close

%>
      <table cellspacing=0 cellpadding=0 width="100%" border=0>
        <tbody> 
        <tr> 
          <td colspan=2><img height=3 
            src="/imgs/spacer.gif" width=3></td>
        </tr>
        <tr> 
          <td width=438 
          background=/imgs/bg_inside_pages_link.jpg 
          height=30><img height=11 
            src="/imgs/aword_square.gif" width=11 
            align=absMiddle> <a href="/">首 页</a> <strong>&gt;</strong> <a href="/control/">管理中心</a> 
            <b>&gt;</b> <a href="/control/ot1_mng"><%=ptnme%>管理</a></td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td colspan=2><img height=10 
            src="/imgs/shadow_inside_pages.jpg" 
        width=438></td>
        </tr>
        </tbody> 
      </table>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY> 
        <TR> 
          <TD vAlign=top width=180 bgColor=#f3f3f3> 
            <!--#include virtual="/incs/control_left.asp"-->
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
          </TD>
          <TD vAlign=top width=10 
          background=/imgs/bg_inside_pages_block.jpg><IMG 
            height=1 src="/imgs/bg_inside_pages_block.jpg" 
            width=10></TD>
          <TD vAlign=top> 
            <table cellspacing=2 cellpadding=0 width="100%" border=0>
              <tbody> 
              <tr> 
                <td  colspan=2 valign="middle"> 
                  <table class=line cellspacing=0 cellpadding=0 width="98%" 
                  border=0 align="center">
                    <tbody> 
                    <tr> 
                      <td valign=bottom width="25%" height=20><font color="#000000" class=ddropshadow><b><span class=enbold><strong><%=ptnme%><font color="#000000"><a href="index.asp"><font color="#FF0000">（查询）</font></a></font></strong></span></b></font></td>
                      <td valign=bottom noWrap align=right 
                        width="75%"><a href="ot1_lst.asp?querytype=8"><font color="#000000">今天新申请</font></a> 
                        <font color="#000000">|</font> <a href="ot1_lst.asp?querytype=9"><font color="#000000">本周新申请</font></a> 
                        <font color="#000000">|</font> <a href="ot1_lst.asp?querytype=10"><font color="#000000">本周到期</font></a> 
                        <font color="#000000">| </font><a href="ot1_lst.asp?querytype=11"><font color="#000000">本月到期</font></a></td>
                    </tr>
                    <tr> 
                      <td align=middle width="100%" colspan=2 height=5></td>
                    </tr>
                    <tr> 
                      <td align=middle width="100%" colspan=2 height=2 bgcolor="#5F5F5F"></td>
                    </tr>
                    </tbody> 
                  </table>
                  <br>
                </td>
              </tr>
              <tr> 
                <td  colspan=2 valign="middle" height="28"> 
                  <!--#include file="menu.asp"-->
                  <table   bordercolor="#5785B2" cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse" width="98%" align="center">
                    <tr> 
                      <td  bgcolor="#FFFFFF" align=center> 
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                          <tr> 
                            <td height="5" style="font-size:3px;">&nbsp; </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr> 
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <table cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse" width="100%" border="0" align="center">
                          <tr> 
                            <td height="14" width="100%" valign="top"> 
                              <% if (pstprd1="" or isnull(pstprd1)) and (pstprd2="" or isnull(pstprd2)) and (pstprd3="" or isnull(pstprd3)) then %>
                              <table  cellpadding="0" cellspacing="0" >
                                <tr> 
                                  <td  valign="top">&nbsp;</td>
                                </tr>
                              </table>
                              <table align="center" border="0" cellpadding="4" cellspacing="1" width="100%" bordercolordark="#FFFFFF" bgcolor="#666666">
                                <tr align="middle" > 
                                  <td bgcolor="#8b8b8b" > 
                                    <div align="center"><b><font color="#FFFFFF">获取赠送产品</font></b> 
                                    </div>
                                  </td>
                                </tr>
                                <tr > 
                                  <td height="80" bgcolor="#FFFFFF" > 
                                    <div align="center">对不起，该产品没有赠送品！</div>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <% end if %>
                          <% if pstprd1<>"" and isnull(pstprd1)=false then  %>
                          <tr> 
                            <td  valign="top">&nbsp;</td>
                          </tr>
                          <tr> 
                            <td  valign="top"> 
                              <table align="center" border="0" cellpadding="4" cellspacing="1" width="100%" bordercolordark="#FFFFFF" bgcolor="#666666">
                                <tr align="middle" bgcolor="#8b8b8b" > 
                                  <td colspan="2" > 
                                    <div align="center"><b><font color="#FFFFFF">赠送品</font></b></div>
                                  </td>
                                </tr>
                                <%
			query="select * from v_pdtlst where g_prd='"&pstprd1&"'"
			rs1.open query,conn,1,1
			if rs1.eof then
			rs1.close
			call errorpage(-2,"对不起，系统错误！")
			end if
			g_cnt=trim(rs1("g_cnt"))
			g_nme=trim(rs1("g_nme"))
			rs1.close
			  %>
                                <tr bgcolor="#FFFFFF"> 
                                  <td    height="25" align="center" width="25%"> 
                                    赠送品名：</td>
                                  <td ><%=g_nme%> </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td  align="center" height="25">产品介绍：</td>
                                  <td  style="line-height:150%"><br>
                                    <%=html_encode(g_cnt)%><br>
                                    <br>
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td    height="25" align="center" width="25%"> 
                                    赠送价值：</td>
                                  <td ><%=find_prc(pstprd1)%> </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td    height="25" align="center">现在申请：</td>
                                  <td  height="22"> 
                                    <% if pstnme1<>"" and pstnme1<>"0" and isnull(pstnme1)=false then %>
                                    <a href="javascript:showurl('/control/turn.asp?gid=<%=pstprd1%>&pid=<%=pstnme1%>');" class=commonface>该赠送品已经开通，点击查看该赠品！</a> 
                                    <% else %>
                                    <input type="button" class=btxx name="Submit2" value="申 请" onClick="javascript:showurl('/control/turn.asp?gid=<%=pstprd1%>&pstrotprd=<%=proid%>&pstrotnme=<%=domainname%>&pstcolumn=pstprd1');">
                                    <% end if %>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <% end if %>
                          <% if pstprd2<>"" and isnull(pstprd2)=false then  %>
                          <tr> 
                            <td  valign="top">&nbsp;</td>
                          </tr>
                          <tr> 
                            <td  valign="top"> 
                              <table align="center" border="0" cellpadding="4" cellspacing="1" width="100%" bordercolordark="#FFFFFF" bgcolor="#666666">
                                <tr align="middle" bgcolor="#8b8b8b" > 
                                  <th colspan="2" > 
                                    <div align="center"><b><font color="#FFFFFF">赠送品</font></b></div>
                                  </th>
                                </tr>
                                <%
			query="select * from v_pdtlst where g_prd='"&pstprd2&"'"
			rs1.open query,conn,1,1
			if rs1.eof then
			rs1.close
			call errorpage(-2,"对不起，系统错误！")
			end if
			g_cnt=trim(rs1("g_cnt"))
			g_nme=trim(rs1("g_nme"))
			rs1.close
			  %>
                                <tr bgcolor="#FFFFFF"> 
                                  <td    height="25" align="center" width="25%"> 
                                    赠送品名：</td>
                                  <td ><%=g_nme%> </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td  align="center" height="25">产品介绍：</td>
                                  <td  style="line-height:150%"><br>
                                    <%=html_encode(g_cnt)%><br>
                                    <br>
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td    height="25" align="center" width="25%"> 
                                    赠送价值：</td>
                                  <td ><%=find_prc(pstprd2)%> </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td    height="25" align="center">现在申请：</td>
                                  <td  height="22"> 
                                    <% if pstnme2<>"" and pstnme2<>"0" and isnull(pstnme2)=false then %>
                                    <a href="javascript:showurl('/control/turn.asp?gid=<%=pstprd2%>&pid=<%=pstnme2%>');" class=commonface>该赠送品已经开通，点击查看该赠品！</a> 
                                    <% else %>
                                    <input type="button" class=btxx name="Submit" value="申 请" onclick="javascript:showurl('/control/turn.asp?gid=<%=pstprd2%>&pstrotprd=<%=proid%>&pstrotnme=<%=domainname%>&pstcolumn=pstprd2');">
                                    <% end if %>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <% end if %>
                          <% if pstprd3<>"" and isnull(pstprd3)=false then  %>
                          <tr> 
                            <td  valign="top">&nbsp;</td>
                          </tr>
                          <tr> 
                            <td  valign="top"> 
                              <table align="center" border="0" cellpadding="4" cellspacing="1" width="100%" bordercolordark="#FFFFFF" bgcolor="#666666">
                                <tr align="middle" bgcolor="#8b8b8b" > 
                                  <th colspan="2" > 
                                    <div align="center"><b><font color="#FFFFFF">赠送品</font></b></div>
                                  </th>
                                </tr>
                                <%
			query="select * from v_pdtlst where g_prd='"&pstprd3&"'"
			rs1.open query,conn,1,1
			if rs1.eof then
			rs1.close
			call errorpage(-2,"对不起，系统错误！")
			end if
			g_cnt=trim(rs1("g_cnt"))
			g_nme=trim(rs1("g_nme"))
			rs1.close
			  %>
                                <tr bgcolor="#FFFFFF"> 
                                  <td    height="25" align="center" width="25%"> 
                                    赠送品名：</td>
                                  <td ><%=g_nme%> </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td  align="center" height="25">产品介绍：</td>
                                  <td  style="line-height:150%"><br>
                                    <%=html_encode(g_cnt)%><br>
                                    <br>
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td    height="25" align="center" width="25%"> 
                                    赠送价值：</td>
                                  <td ><%=find_prc(pstprd3)%> </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td    height="25" align="center">现在申请：</td>
                                  <td  height="22"> 
                                    <% if pstnme3<>"" and pstnme3<>"0" and isnull(pstnme3)=false then %>
                                    <a href="javascript:showurl('/control/turn.asp?gid=<%=pstprd3%>&pid=<%=pstnme3%>');" class=commonface>该赠送品已经开通，点击查看该赠品！</a> 
                                    <% else %>
                                    <input type="button" class=btxx name="Submit3" value="申 请" onClick="javascript:showurl('/control/turn.asp?gid=<%=pstprd3%>&pstrotprd=<%=proid%>&pstrotnme=<%=domainname%>&pstcolumn=pstprd3');">
                                    <% end if %>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <% end if %>
                        </table>
                        <%
rs.close
%>
                        <br>
                      </td>
                    </tr>
                    <tr> 
                      <td>&nbsp; </td>
                    </tr>
                  </table>
                  <br>
                  <br>
                </td>
              </tr>
              </tbody> 
            </table>
          </TD>
        </TR>
        </TBODY> 
      </TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY> 
        <TR> 
          <TD bgColor=#cccccc><IMG height=1 
            src="/imgs/spacer.gif" 
      width=1></TD>
        </TR>
        </TBODY> 
      </TABLE>
      <!--#include virtual="/incs/web_bottom.asp"-->

