<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/top.asp" -->
<%
chk_log()
chk_newpwr 1,1,1
conn.open constr
	mnme=SafeRequest("mnme")
	If mnme="" Then
	call errorpage(-2,"对不起，参数错误！")
	End If
if session("sysclass")>=5 then
query="select * from v_emllst   where m_dme ='"&mnme&"'"
elseif session("sysclass")>=4 then
query="select * from v_emllst  where m_dme ='"&mnme&"'  and  ((("&session("sysarestr")&" or u_myare=0) and u_rotnme='') or u_rotnme='"&session("usrname")&"')"
else
query="select * from v_emllst   where m_dme ='"&mnme&"' m_unme='"&session("usrname")&"'"
end if
	rs.open query,conn,1,1
    if rs.recordcount<>1 then
	rs.close
	conn.close
	call errorpage(-2,"对不起，该订单不存在或者不属于您的会员号，管理员请先切换到该订单会员！")
	response.end
	end if
	mailname=trim(rs("m_dme"))
	m_regtpe=cint(rs("m_regtpe"))
	m_svrip=trim(rs("m_svrip"))
				pstprd1=trim(rs("pstprd1"))
				pstprd2=trim(rs("pstprd2"))
				pstprd3=trim(rs("pstprd3"))
				pstnme1=rs("pstnme1")
				pstnme2=rs("pstnme2")
				pstnme3=rs("pstnme3")
					g_sst=rs("m_sst")
u_nme=trim(rs("m_unme"))
proid=trim(rs("m_prd"))
owneruser=trim(rs("m_unme"))
rs.close
%>
<table cellspacing=2 cellpadding=0 width="100%" border=0>
  <tbody> 
  <tr> 
    <td  colspan=2 valign="middle"> 
      <table class=line cellspacing=0 cellpadding=0 width="100%" 
                  border=0 align="center">
        <tbody> 
        <tr> 
          <td valign=bottom width="25%" height=20><font color="#000000" class=ddropshadow><b><span class=enbold><strong>邮局<font color="#000000">列表</font></strong></span></b><span class=enbold><font color="#000000"><a class=commonface  href="index.asp"><font color="#FF0000">（查询）</font></a></font></span></font></td>
          <td valign=bottom noWrap align=right 
                        width="75%"><a href="eml_lst.asp?querytype=8" class=commonface >今天新开通</a> 
            | <a href="eml_lst.asp?querytype=9" class=commonface >本周新开通</a> | 
            <a href="eml_lst.asp?querytype=10" class=commonface >本周到期</a> | <a href="eml_lst.asp?querytype=11" class=commonface >本月到期</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 class=menuline></td>
        </tr>
        </tbody> 
      </table>
      <br>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="middle" height="28"> 
      <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"> 
            <table  cellpadding="0" cellspacing="0" >
              <tr> 
                <td height=1></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr> 
                <td> 
                  <!--#include file="menu.asp"-->
                </td>
              </tr>
            </table>
            <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class=datalist >
              <% if (pstprd1="" or isnull(pstprd1)) and (pstprd2="" or isnull(pstprd2)) and (pstprd3="" or isnull(pstprd3)) then %>
              <tr> 
                <td  valign="top">&nbsp;</td>
              </tr>
              <tr align="middle" > 
                <th class=datalistheader > 
                  <div align="center"><b>获取赠送产品</b> </div>
                </th>
              </tr>
              <tr > 
                <td height="80" class=datalistgrida> 
                  <div align="center">对不起，该产品没有赠送品！</div>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <% end if %>
        <% if pstprd1<>"" and isnull(pstprd1)=false then  %>
        <tr> 
          <td  valign="top"> </td>
        </tr>
        <tr> 
          <td  valign="top">&nbsp;</td>
        </tr>
        <tr> 
          <td  valign="top"> 
            <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"  class=datalist>
              <tr align="middle" > 
                <th colspan="2" class=datalistheader> 
                  <div align="center"><b>赠送品</b></div>
                </th>
              </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> 
                  <td class=datalistgrida   height="25" align="center" width="25%"> 
                    赠送品名：</td>
                  <td class=datalistgrida><%=g_nme%> </td>
                </tr>
              <tr> 
                <td class=datalistgrida align="center" height="25">产品介绍：</td>
                <td class=datalistgrida style="line-height:150%"><br>
                  <%=html_encode(g_cnt)%><br>
                  <br>
                </td>
              </tr>
              <tr> 
                <td class=datalistgrida   height="25" align="center" width="25%"> 
                  赠送价值：</td>
                <td class=datalistgrida><%=find_prc(pstprd1)%> </td>
              </tr>
			  			         <%if trim(owneruser)<>trim(entryuser) then %>
                  <tr > 
                    
                <td height="28" class=datalistgrida  align=center>注意事项: </td>
                        <td height="28" class=datalistgrida colspan=2>该产品所属会员为：<b><%=owneruser%></b>，获取赠送品也将归属会员 
                          <b><%=owneruser%></b> ！ </td>
                  </tr>
                  <%end if %>

              <tr> 
                <td class=datalistgrida   height="25" align="center">现在申请：</td>
                <td class=datalistgrida height="22"> 
                  <% if pstnme1<>"" and isnull(pstnme1)=false then %>
                  <a href="javascript:showurl('/master/turn.asp?gid=<%=pstprd1%>&pid=<%=pstnme1%>');" class=commonface>该赠送品已经开通，点击查看该赠品！</a> 
                  <% else %>
                  <input type="button" class=btxx name="Submit2" value="申 请" onClick="javascript:showurl('/master/turn.asp?gid=<%=pstprd1%>&pstrotprd=<%=proid%>&pstrotnme=<%=mailname%>&pstcolumn=pstprd1&unme=<%=owneruser%>');">
                  <% 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="0" cellspacing="0" width="100%"  class=datalist>
              <tr align="middle" > 
                <th colspan="2" class=datalistheader> 
                  <div align="center"><b>赠送品</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> 
                  <td class=datalistgrida   height="25" align="center" width="25%"> 
                    赠送品名：</td>
                  <td class=datalistgrida><%=g_nme%> </td>
              <tr> 
                <td class=datalistgrida align="center" height="25">产品介绍：</td>
                <td class=datalistgrida style="line-height:150%"><br>
                  <%=html_encode(g_cnt)%><br>
                  <br>
                </td>
              </tr>
              <tr> 
                <td class=datalistgrida   height="25" align="center" width="25%"> 
                  赠送价值：</td>
                <td class=datalistgrida><%=find_prc(pstprd2)%> </td>
              </tr>
			  			         <%if trim(owneruser)<>trim(entryuser) then %>
                  <tr > 
                    
                <td height="28" class=datalistgrida  align=center>注意事项: </td>
                        <td height="28" class=datalistgrida colspan=2>该产品所属会员为：<b><%=owneruser%></b>，获取赠送品也将归属会员 
                          <b><%=owneruser%></b> ！ </td>
                  </tr>
                  <%end if %>

              <tr> 
                <td class=datalistgrida   height="25" align="center">现在申请：</td>
                <td class=datalistgrida height="22"> 
                  <% if pstnme2<>""   and isnull(pstnme2)=false then %>
                  <a href="javascript:showurl('/master/turn.asp?gid=<%=pstprd2%>&pid=<%=pstnme2%>');" class=commonface>该赠送品已经开通，点击查看该赠品！</a> 
                  <% else %>
                  <input type="button" class=btxx name="Submit" value="申 请" onclick="javascript:showurl('/master/turn.asp?gid=<%=pstprd2%>&pstrotprd=<%=proid%>&pstrotnme=<%=mailname%>&pstcolumn=pstprd2&unme=<%=owneruser%>');">
                  <% 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="0" cellspacing="0" width="100%"  class=datalist>
              <tr align="middle" > 
                <th colspan="2" class=datalistheader> 
                  <div align="center"><b>赠送品</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> 
                  <td class=datalistgrida   height="25" align="center" width="25%"> 
                    赠送品名：</td>
                  <td class=datalistgrida><%=g_nme%> </td>
                </tr>
              <tr> 
                <td class=datalistgrida align="center" height="25">产品介绍：</td>
                <td class=datalistgrida style="line-height:150%"><br>
                  <%=html_encode(g_cnt)%><br>
                  <br>
                </td>
              </tr>
              <tr> 
                <td class=datalistgrida   height="25" align="center" width="25%"> 
                  赠送价值：</td>
                <td class=datalistgrida><%=find_prc(pstprd3)%> </td>
              </tr>
			  			         <%if trim(owneruser)<>trim(entryuser) then %>
                  <tr > 
                    
                <td height="28" class=datalistgrida  align=center>注意事项: </td>
                        <td height="28" class=datalistgrida colspan=2>该产品所属会员为：<b><%=owneruser%></b>，获取赠送品也将归属会员 
                          <b><%=owneruser%></b> ！ </td>
                  </tr>
                  <%end if %>

              <tr> 
                <td class=datalistgrida   height="25" align="center">现在申请：</td>
                <td class=datalistgrida height="22"> 
                  <% if pstnme3<>""    and isnull(pstnme3)=false then %>
                  <a href="javascript:showurl('/master/turn.asp?gid=<%=pstprd3%>&pid=<%=pstnme3%>');" class=commonface>该赠送品已经开通，点击查看该赠品！</a> 
                  <% else %>
                  <input type="button" class=btxx name="Submit3" value="申 请" onClick="javascript:showurl('/master/turn.asp?gid=<%=pstprd3%>&pstrotprd=<%=proid%>&pstrotnme=<%=mailname%>&pstcolumn=pstprd3&unme=<%=owneruser%>');">
                  <% end if %>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <% end if %>
      </table>
      <%
conn.close
%>
      <br>
      <br>
      <br>
    </td>
  </tr>
  </tbody> 
</table>
<!--#include virtual="/incs/bottom.asp"-->

