<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/md5.asp"-->
<%
chk_log()
chk_newpwr 1,8,1
diytpe=1
''''''''''''''''''''''''''''''''
If SafeRequest("knme")<>"" Then
	knme=SafeRequest("knme")
End If

If knme=""Then
 call errorpage(-2,"错误参数!")
end if
	conn.open constr
query="select * from pdttpe where pt_tag='dsn'"
rs.open query,conn,1,1
if not rs.eof then
ptnme=trim(rs("pt_nme"))
end  if 
rs.close 
if session("sysclass")>=5 then
query="select * from v_dsnlst   where k_nme ='"&knme&"'"
elseif session("sysclass")>=4 then
query="select * from v_dsnlst  where k_nme ='"&knme&"'  and  ((("&session("sysarestr")&" or u_myare=0) and u_rotnme='') or u_rotnme='"&session("usrname")&"')"
else
query="select * from v_dsnlst  where k_unme='"&session("usrname")&"' and k_nme ='"&knme&"'"
end if
rs.open query,conn,1,1
	  if rs.recordcount<=0 then
      call errorpage(-2,"对不起，该记录不存在！")
      end if
 
%>
<!--#include virtual="/incs/top.asp"-->
<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><b><%=ptnme%></b><a class=commonface  href="index.asp"><font color="#FF0000">（查询）</font></a></td>
          <td valign=bottom noWrap align=right 
                        width="75%"><a class=commonface   href="dsn_lst.asp?querytype=8">今天新申请</a> 
            | <a class=commonface   href="dsn_lst.asp?querytype=9">本周新申请</a> | 
            <a class=commonface   href="dsn_lst.asp?querytype=10">本周到期</a> | <a class=commonface   href="dsn_lst.asp?querytype=11">本月到期</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>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="28" align="center"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td height=8></td>
        </tr>
        <tr> 
          <td> 
            <!--#include virtual="/master/pdtmng/dsn_mng/menu.asp" -->
            <br>
          </td>
        </tr>
      </table>
      <table cellspacing=0 cellpadding=0 width=100% border=0 align="center" class=datalist>
        <tr> 
          <th class=datalistheader  width="30%" height="22" align="center"> 
            <p style="margin-left: 6">管理名称:</p>
          </th>
          <th class=datalistheader  > 
            <p style="margin-left: 6" align="left"><b><%= rs("k_nme") %></b> 
          </th>
        </tr>
        <tr> 
          <td  class=datalistgrida width="30%" height="22" align="center"> 
            <p style="margin-left: 6">产品型号:</p>
          </td>
          <td class=datalistgrida > 
            <p style="margin-left: 6"> 
              <%
						query="select * from pdtlst where g_prd='"&trim(rs("k_prd"))&"'"
						rs1.open query,conn,1,1
						if not rs1.eof then
						g_nme=trim(rs1("g_nme"))
						end if
						rs1.close
						response.write g_nme %>
          </td>
        </tr>
        <tr> 
          <td class=datalistgrida   height="22" width="30%" align="center"> 
            <p style="margin-left: 6">网站名称:</p>
          </td>
          <td class=datalistgrida  > 
            <p style="margin-left: 6"><%=trim(Rs("k_stenme"))%> 
          </td>
        </tr>
        <tr> 
          <td class=datalistgrida   height="22" width="30%" align="center"> 
            <p style="margin-left: 6">网站地址:</p>
          </td>
          <td class=datalistgrida  > 
            <p style="margin-left: 6"><%=trim(Rs("k_dme"))%> 
          </td>
        </tr>
        <tr> 
          <td class=datalistgrida  height="22" align="center" > 
            <p style="margin-left: 6">补充说明:</p>
          </td>
          <td  class=datalistgrida height="22" > 
            <p style="margin-left: 6"><%=html_encode(trim(rs("k_cnt"))) %> &nbsp;
          </td>
        </tr>
        <tr> 
          <td class=datalistgrida height="22" align="center"> 
            <p style="margin-left: 6">相关操作:</p>
          </td>
          <td class=datalistgrida  > 
            <p style="margin-left: 6"> 
              <script>
function deleteit(proid)
{
if (confirm("确认删除此订单吗？"))
{location.href="/master/pdtmng/dsn_mng/dsn_del.asp?knme="+proid;
}
}
</script>
              <input type="button" name="Submit22" value="订单删除" class=btxx onclick="javascript:return deleteit('<%=rs("k_nme")%>');">
              <% if rs("k_regstt")=0 then %>
              <input type="button" name="Submit23" value="购买" class=btxx onclick="javascript:showurl('/master/pdtbuy/dsn_buy/dsn_pay.asp?knme=<%=rs("k_nme")%>');">
              <% end if %>
          </td>
        </tr>
        <tr> 
          <td  class=datalistgrida width="30%" height="22" align="center"> 
            <p style="margin-left: 6">注册期限:</p>
          </td>
          <td class=datalistgrida > 
            <%
					  query="select * from prclst where p_prd='"&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> 
          <td class=datalistgrida  width="30%" height="22" align="center"> 
            <p style="margin-left: 6">注册日期:</p>
          </td>
          <td class=datalistgrida > 
            <p style="margin-left: 6"><%= rs("k_addtme") %> 
          </td>
        </tr>
        <%if timetype<>2 then %>
        <tr> 
          <td class=datalistgrida height="22" align="center" > 
            <p style="margin-left: 6">到期日期:</p>
          </td>
          <td  class=datalistgrida height="22"> 
            <p style="margin-left: 6"><%= rs("k_exptme") %> 
          </td>
        </tr>
        <% end if %>
        <% if session("sysclass")>=4 then %>
        <tr> 
          <td class=datalistgrida  height="22" > 
            <div align="center">所属会员:</div>
          </td>
          <td class=datalistgrida   >&nbsp;<a class=commonface href="javascript:showurl('/master/memmng/mem_dtl.asp?unme=<%=rs("k_unme")%>');"><b><%=rs("k_unme")%></b></a> 
          </td>
        </tr>
        <% end if %>
        <tr > 
          <td class=datalistgrida  height="22" > 
            <div align="center">是否为套餐：</div>
          </td>
          <td class=datalistgrida   > 
            <% if isnull(rs("setnme"))=false and rs("setnme")<>""  then %>
            <a href="javascript:showurl('/master/pdtmng/set_mng/set_idx.asp?snme=<%=rs("setnme")%>');" class=commonface><u>查看套餐订单</u></a> 
            <%else %>
            不属于套餐购买 
            <% end if %>
          </td>
        </tr>
        <% if isnull(rs("pstrotprd"))=false and rs("pstrotprd")<>"" then %>
        <tr > 
          <td class=datalistgrida  height="22" > 
            <div align="center">是否为赠送品：</div>
          </td>
          <td class=datalistgrida  colspan="2"> <a href="javascript:showurl('/master/turn.asp?gid=<%=trim(rs("pstrotprd"))%>&pid=<%=rs("pstrotnme")%>');" class=commonface><u>本品为赠送品,点击查看获得赠送的产品</u></a></td>
          <% end if %>
        </tr>
        <tr> 
          <th  class=datalistheader colspan="2"  align="center"> 联系信息</th>
        </tr>
        <tr> 
          <td class=datalistgrida align="center" > 
            <p style="margin-left: 6">注册单位: 
              <input type="button" name="Submit5" value="生成会员" class=btxx
			  onClick="javascript:showurl('/master/memmng/mem_add.asp?u_nme=<%=trim(rs("k_nme"))%>&u_pss=<%=pss_mak(8)%>&u_copnme_cn=<%=rs("k_copnme_cn")%>&u_ctt_cn=<%=rs("k_ctt_cn")%>&u_prv_cn=<%=rs("k_prv_cn")%>&u_adr_cn=<%=rs("k_adr_cn")%>&u_cde=<%=rs("k_cde")%>&u_eml=<%=rs("k_eml")%>&u_tel=<%=rs("k_tel")%>&u_fax=<%=rs("k_fax")%>&g_prd=<%=rs("k_prd")%>&g_pnme=<%=rs("k_nme")%>&oldunme=<%=rs("k_unme")%>');">
            </p>
          </td>
          <td class=datalistgrida  height="22"> 
            <p style="margin-left: 6"><%= rs("k_copnme_cn") %> 
          </td>
        </tr>
        <tr> 
          <td class=datalistgrida align="center" > 
            <p style="margin-left: 6">联系人:</p>
          </td>
          <td class=datalistgrida  height="22"> 
            <p style="margin-left: 6"><%= rs("k_ctt_cn") %> 
          </td>
        </tr>
        <tr> 
          <td class=datalistgrida align="center" > 
            <p style="margin-left: 6">邮件:</p>
          </td>
          <td class=datalistgrida  height="22"> 
            <p style="margin-left: 6"><%= rs("k_eml") %> 
          </td>
        </tr>
        <tr> 
          <td class=datalistgrida align="center" > 
            <p style="margin-left: 6">省份:</p>
          </td>
          <td  class=datalistgrida height="22"> 
            <p style="margin-left: 6"><%= rs("k_prv_cn") %> 
          </td>
        </tr>
        <tr> 
          <td class=datalistgrida align="center" > 
            <p style="margin-left: 6">地址:</p>
          </td>
          <td  class=datalistgrida height="22"> 
            <p style="margin-left: 6"><%= rs("k_adr_cn") %> 
          </td>
        </tr>
        <tr> 
          <td class=datalistgrida align="center" > 
            <p style="margin-left: 6">邮编:</p>
          </td>
          <td  class=datalistgrida height="22"> 
            <p style="margin-left: 6"><%= rs("k_cde") %> 
          </td>
        </tr>
        <tr> 
          <td class=datalistgrida align="center" > 
            <p style="margin-left: 6">电话:</p>
          </td>
          <td class=datalistgrida  height="22"> 
            <p style="margin-left: 6"><%=rs("k_tel")%> 
          </td>
        </tr>
        <tr> 
          <td class=datalistgrida align="center" > 
            <p style="margin-left: 6">传真:</p>
          </td>
          <td class=datalistgrida  height="22"> 
            <p style="margin-left: 6"><%=rs("k_fax")%> 
          </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>
<!--#include virtual="/incs/bottom.asp"-->






