<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/md5.asp"-->
<!--#include virtual="/incs/web_top.asp"-->
      <%
chk_log_usr()
''''''''''''''''''''''''''''''''
If SafeRequest("snme")<>"" Then
	snme=SafeRequest("snme")
End If
diytpe=3
If snme="" Then
 call errorpage(-2,"错误的订单名称!")
end if
	query="select * from v_ot3lst 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
query="select * from pdttpe where pt_tag='ot3'"
rs1.open query,conn,1,1
if not rs1.eof then
ptnme=trim(rs1("pt_nme"))
end if
rs1.close
query="select * from othcfg  where o_tpe="&diytpe
rs2.open query,conn,1,1
%>
      <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/ot3_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="ot3_lst.asp?querytype=8"><font color="#000000">今天新申请</font></a> 
                        <font color="#000000">|</font> <a href="ot3_lst.asp?querytype=9"><font color="#000000">本周新申请</font></a> 
                        <font color="#000000">|</font> <a href="ot3_lst.asp?querytype=10"><font color="#000000">本周到期</font></a> 
                        <font color="#000000">| </font><a href="ot3_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="top" height="28"> 
                  <!--#include file="menu.asp"-->
                  <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr> 
                      <td height=8></td>
                    </tr>
                  </table>
                  <table cellspacing=1 class=datalist cellpadding=0 width=95% border=0 align="center" bgcolor="#666666">
                    <tr > 
                      <td  colspan="2" align=center bgcolor="#8b8b8b" height="25"> 
                        <font color="#FFFFFF">基本情况</font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td    width="30%" height="22"> 
                        <p style="margin-left: 6"><%=trim(rs2("o_o0"))%>:</p>
                      </td>
                      <td    > 
                        <p style="margin-left: 6" align="left"><b><%= rs("s_nme") %></b> 
                      </td>
                    </tr>
                    <% for i=1 to 5
				if trim(rs2("o_o"&i))<>""then
				 %>
                    <tr bgcolor="#FFFFFF"> 
                      <td width="30%" class=datalistgrida height="22" > 
                        <p style="margin-left: 6"><%=trim(rs2("o_o"&i))%>:</p>
                      </td>
                      <td class=datalistgrida > 
                        <p style="margin-left: 6"><%=trim(rs("s_o"&i))%>&nbsp; 
                      </td>
                    </tr>
                    <%
				end if
				 next %>
                    <% for i=6 to 8
				if trim(rs2("o_o"&i))<>""then
				 %>
                    <tr bgcolor="#FFFFFF"> 
                      <td width="30%" class=datalistgrida height="22" > 
                        <p style="margin-left: 6"><%=trim(rs2("o_o"&i))%>:</p>
                      </td>
                      <td class=datalistgrida > 
                        <p style="margin-left: 6"><%=html_encode(trim(rs("s_o"&i)))%>&nbsp; 
                      </td>
                    </tr>
                    <%
				end if
				 next %>
                    <tr bgcolor="#FFFFFF"> 
                      <td  class=datalistgrida  height="25" width="30%"> 
                        <p style="margin-left: 6">服务类型:</p>
                      </td>
                      <td  class=datalistgrida > 
                        <p style="margin-left: 6"><%=rs("s_prd")%> 
                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td class=datalistgrida   height="25" width="30%"> 
                        <p style="margin-left: 6">当前状态:</p>
                      </td>
                      <td class=datalistgrida  > 
                        <p style="margin-left: 6"><%=showstatus(rs("s_regstt"),rs("s_regtpe") , left(replace( rs("s_exptme")," ","   "),10) )%> 
                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td  class=datalistgrida  height="25" width="30%"> 
                        <p style="margin-left: 6">注册期限:</p>
                      </td>
                      <td class=datalistgrida  > 
                                         <%
					  query="select * from prclst where p_prcstr='"&trim(rs("s_prcstr"))&"'"
					  rs1.open query,conn,1,1
					  if not rs1.eof then
					  timetype=trim(rs1("p_tmetpe"))
					  else
					  timetype=5
					  end if
					  rs1.close
					  %>
                        <p style="margin-left: 6"><%= rs("s_yarcnt")&tmenmes(timetype)%> 

                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td  class=datalistgrida  height="25" width="30%"> 
                        <p style="margin-left: 6">注册日期:</p>
                      </td>
                      <td class=datalistgrida  > 
                        <p style="margin-left: 6"><%= rs("s_addtme") %> 
                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td class=datalistgrida  height="25" > 
                        <p style="margin-left: 6">到期日期:</p>
                      </td>
                      <td  class=datalistgrida height="22" > 
                        <p style="margin-left: 6"><%= rs("s_exptme") %> 
                      </td>
                    </tr>
                    <tr > 
                      <td   colspan="2"  align="center" bgcolor="#8b8b8b" height="25"> 
                        <font color="#FFFFFF">联系信息</font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td  class=datalistgrida height="25"  > 
                        <p style="margin-left: 6">注册单位: </p>
                      </td>
                      <td  class=datalistgrida height="22" > 
                        <p style="margin-left: 6"><%= rs("s_copnme_cn") %> 
                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td  class=datalistgrida height="25"  > 
                        <p style="margin-left: 6">联系人:</p>
                      </td>
                      <td height="22" class=datalistgrida  > 
                        <p style="margin-left: 6"><%= rs("s_ctt_cn") %> 
                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td  class=datalistgrida height="25"  > 
                        <p style="margin-left: 6">邮件:</p>
                      </td>
                      <td height="22"  class=datalistgrida > 
                        <p style="margin-left: 6"><%= rs("s_eml") %> 
                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td  class=datalistgrida height="25"  > 
                        <p style="margin-left: 6">地址:</p>
                      </td>
                      <td class=datalistgrida  height="22" > 
                        <p style="margin-left: 6"><%= rs("s_adr_cn") %> 
                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td  class=datalistgrida height="25"  > 
                        <p style="margin-left: 6">邮编:</p>
                      </td>
                      <td class=datalistgrida  height="22" > 
                        <p style="margin-left: 6"><%= rs("s_cde") %> 
                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td  class=datalistgrida height="25"  > 
                        <p style="margin-left: 6">传真:</p>
                      </td>
                      <td class=datalistgrida  height="22" > 
                        <p style="margin-left: 6"><%=rs("s_fax")%> 
                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td  class=datalistgrida height="25" > 
                        <p style="margin-left: 6">电话:</p>
                      </td>
                      <td  class=datalistgrida height="22" > 
                        <p style="margin-left: 6"><%=rs("s_tel")%> 
                      </td>
                    </tr>
                  </table>
                  <%
Function showstatus(regstt,regtpe,exptme)
if cdate(exptme)-date()<0 then
regstt=20
elseif cdate(exptme)-date()<7 and regtpe<>0 then
regstt=19
elseif cdate(exptme)-date()<30 and regtpe<>0 then
regstt=18
end if
regtpe_str=right("000"&cstr(regtpe),2)
regstt_str=right("000"&cstr(regstt),2)
regtitle=showtitle(regtpe_str,regstt_str)
gifstr=regtpe_str&regstt_str&".gif"
showstatus="<img src=/icons/"&gifstr&" title="&regtitle&" style='cursor:hand;'>"   

End Function
function showtitle(regtpe_str,regstt_str)
tpestr=""
sttstr=""
select case  regtpe_str
case  "00"
tpestr="购买方式为试用"
case  "01"
tpestr="购买方式为正式购买"
case "05"
tpestr="购买方式为赠送"
case else
tpestr="购买方式为未知"
end select
select case  regstt_str
case  "00"
sttstr="运行状态为未开通"
case  "01"
sttstr="运行状态为运行中"
case  "02"
sttstr="运行状态为暂停中"
case  "03"
sttstr="运行状态为处理中"
case  "04"
sttstr="运行状态为已完全删除"
case  "05"
sttstr="运行状态为禁用中"
case  "06"
sttstr="运行状态为待开通"
case  "17"
sttstr="运行状态为WEB被删除/FTP保留"
case  "18"
sttstr="运行状态为30天后过期"
case  "19"
sttstr="运行状态为7天后过期"
case  "20"
sttstr="运行状态为已过期"
case  else
sttstr="运行状态为未知"
end select
showtitle=tpestr&","&sttstr
end function
%>
                  <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"-->





