<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/top.asp" -->
<!--#include virtual="/incs/present.asp" -->
<%
chk_log()
chk_newpwr 4,6,5
	dnme=SafeRequest("dnme")
	If dnme="" Then
	call errorpage(-2,"对不起，参数错误！")
	End If
if session("sysclass")>=5 then
query="select * from v_dmtlst   where d_dme ='"&dnme&"'"
elseif session("sysclass")>=4 then
query="select * from v_dmtlst  where d_dme ='"&dnme&"'  and  ((("&session("sysarestr")&" or u_myare=0) and u_rotnme='') or u_rotnme='"&session("usrname")&"')"
end if
	conn.open constr
	rs.open query,conn,1,1
	
    if rs.recordcount<>1 then
	rs.close
	conn.close
	call errorpage(-2,"对不起，该通用网址不存在或者您无权操作！")
	end if

%>
<%
			    proid=trim(rs("d_prd"))
d_dme=rs("d_dme")
		%>
<script language=javascript>
		function expl()
		{
		if (identity.style.display=="none")
		identity.style.display="block";
		else
		identity.style.display="none";
		}
		</script>
<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>通用网址列表</b><a href="index.asp" class=commonface><font color="#FF0000">（查询）</font></a> 
          </td>
          <td valign=bottom noWrap align=right 
                        width="75%"><a href="dmt_lst.asp?querytype=8" class=commonface>今日新注册</a> 
            | <a href="dmt_lst.asp?querytype=9" class=commonface>本周新注册</a> | <a href="dmt_lst.asp?querytype=10" class=commonface>本周到期</a> 
            | <a href="dmt_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>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="middle" height="28"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td height=8></td>
        </tr>
        <tr> 
          <td style="font-size:12px"> 
            <div align="center"> 
              <!--#include virtual="/master/pdtmng/dmt_mng/menu.asp" -->
              <br>
              通用网址: <font style="FONT-FAMILY: Tahoma,verdana,arial;"><b><%= rs("d_dme") %></b></font> 
              <br>
              <br>
            </div>
          </td>
        </tr>
      </table>
      <table cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse" width="100%" align="center" border="0">
        <tr> 
          <td height="4" width="99%" valign="top"  > 
            <table cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse" width="100%" height="118" border="0">
              <tr> 
                <td  valign="top"> 
                  <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"  class=datalist>
                    <tr > 
                      <th class=datalistheader colspan="3" > 
                        <div align="center"><b>通用网址超级管理</b> </div>
                      </th>
                    </tr>
                    <form action="dmt_adm_rez.asp"  method="post">
                      <tr> 
                        <td class=datalistgrida  height="22" width="25%"> 
                          <div align="center">通用网址型号：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <select name="d_prd" style="font-size: 9pt" size="1" >
                            <option value="<%=rs("g_prd")%>" ><%=rs("g_nme")%></option>
                            <% query="select * from v_pdtlst  where pt_tag='dme'"
						  rs1.open query,conn,1,1
						  while not rs1.eof 
						  response.write "<option value='"&rs1("g_prd")&"' >"&rs1("g_nme")&"</option>"
					  rs1.movenext
					  wend
					  rs1.close
					  %>
                          </select>
                          <script>
function deleteit(proid)
{
if (confirm("确认删除此通用网址吗？"))
{location.href="/master/pdtmng/dmt_mng/dmt_del.asp?dnme="+proid;
}
}
</script>
                          <input type="button" name="Submit22" value="订单删除" class=btxx onclick="javascript:return deleteit('<%=rs("d_dme")%>');">
                        </td>
                        <td class=datalistgrida width="20%"  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida  height="22" width="25%"> 
                          <div align="center">通用网址：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="text" size=28  name="d_dme" value="<%=trim(rs("d_dme"))%>">
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida  height="22" width="25%"> 
                          <div align="center">通用网址类型：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <select name="d_tpe">
                            <option value="1" <% if rs("d_tpe")="1" then
							response.write " selected "
							end if %>>普通通用网址</option>
                            <option value="2" <% if rs("d_tpe")="2" then
							response.write " selected "
							end if %>>准通用词</option>
                            <option value="3" <% if rs("d_tpe")="3" then
							response.write " selected "
							end if %>>普通通用词</option>
                            <option value="4" <% if rs("d_tpe")="4" then
							response.write " selected "
							end if %>>白金通用词</option>
                          </select>
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida   height="22" width="25%"> 
                          <div align="center">申请类型：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <select name=d_regtpe>
                            <option  value="1" <%if rs("d_regtpe")=1 then 
									  response.write " selected"
									  end if %>> 正式购买</option>
                            <option  value="5" <%if rs("d_regtpe")=5 then 
									  response.write " selected"
									  end if %>> 赠送</option>
                          </select>
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida   height="22" width="25%"> 
                          <div align="center">通用网址状态：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <select name=d_regstt>
                            <option value="0"  <%if rs("d_regstt")=0 then 
									  response.write " selected"
									  end if %>> 未开通</option>
                            <option  value="1" <%if rs("d_regstt")=1 then 
									  response.write " selected"
									  end if %>> 已开通 </option>
                            <option  value="3" <%if rs("d_regstt")=3 then 
									  response.write " selected"
									  end if %>> 处理中 </option>
                            <option   value="5" <%if rs("d_regstt")=5 then 
									  response.write " selected"
									  end if %>> 被停止 </option>
                            <option value="6" <%if rs("d_regstt")=6 then 
									  response.write " selected"
									  end if %>> 待开通 </option>
                          </select>
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida   height="22"> 
                          <div align="center">注册参数：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <select name="d_cpr" style="font-size: 9pt" size="1"  >
                            <% 
					  query="select * from pltdns where pl_stt=1 and (pl_tpe<=8 and pl_tpe<>3) order by pl_tpe"
					  rs2.open query,conn,1,1
					  while not rs2.eof 
					  if cint(rs2("pl_tpe"))=cint(rs("d_cpr")) then
					  response.write "<option value='"&rs2("pl_tpe")&"' selected>"&rs2("pl_nme")&"</option>"
					  else
					  response.write "<option value='"&rs2("pl_tpe")&"'>"&rs2("pl_nme")&"</option>"
					  end if
					  rs2.movenext
					  wend
					  rs2.close
					  %>
                          </select>
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida   height="22"> 
                          <div align="center">申请总价格：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input   style="font-size: 9pt"  type="text" name="years" maxlength=32 size=8 value="<%=rs("years")%>" >
                          X 
                          <%
						  prcstrname="d_prcstr"
						  prcstr=rs(prcstrname)
						  %>
                          <select name="<%=prcstrname%>" style="font-size: 9pt" size="1" >
                            <%
							query="select * from memlst where u_nme='"&rs("d_unme")&"'"
							rs2.open query,conn,1,1
							if not rs2.eof then
							u_prc=rs2("u_prc")
							canlist=true
							end if
							rs2.close 
							if canlist then
							 query="select * from v_prclst where p_prd='"&proid&"' and p_cls="&u_prc&" order by p_tmetpe,p_yar"
					  rs2.open query,conn,1,1
					  while not rs2.eof 
					  response.write "<option "
					  if  prcstr=trim(rs2("p_prcstr")) then
					  response.write " selected "
					  end if
					  p_yar=rs2("p_yar")
					  if p_yar="1" then
					  p_yar=""
					  end if
					  response.write " value="&rs2("p_prcstr")&">"&rs2("p_prc")&"元/"&p_yar&tmenmes(rs2("p_tmetpe"))&"</option>"
					  rs2.movenext
					  wend
					  rs2.close
					  end if
					  %>
                          </select>
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida   height="22" > 
                          <div align="center">申请总期限：</div>
                        </td>
                        <td class=datalistgrida   > 
                          <input type="text" size=28  name="d_yarcnt" value="<%=mynum(rs("d_yarcnt"))%>">
                          年 </td>
                        <td class=datalistgrida   >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida   height="22" > 
                          <div align="center">注册时间：</div>
                        </td>
                        <td class=datalistgrida   > 
                          <input type="text" size=28  name="d_addtme" value="<%=trim(rs("d_addtme"))%>">
                        </td>
                        <td class=datalistgrida   >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida   height="22" > 
                          <div align="center">到期时间：</div>
                        </td>
                        <td class=datalistgrida   > 
                          <input type="text" size=28  name="d_exptme" value="<%=trim(rs("d_exptme"))%>">
                        </td>
                        <td class=datalistgrida   >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida   height="22"> 
                          <div align="center">注册商名称：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="text" size=28  name="d_cprnme" value="<%=trim(rs("d_cprnme"))%>">
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida   height="22" > 
                          <div align="center">是否付款：</div>
                        </td>
                        <td class=datalistgrida   > 
                          <input type="radio" name="d_ifpay" value="0"  <%if rs("d_ifpay")=0 then 
									  response.write " checked"
									  end if %>>
                          未付款 
                          <input type="radio" name="d_ifpay" value="1" <%if rs("d_ifpay")=1 then 
									  response.write " checked"
									  end if %>>
                          已付款 </td>
                        <td class=datalistgrida   >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida   height="22"> 
                          <div align="center">补充说明：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <textarea cols="48" name="content" rows="3"><%=trim(rs("content"))%></textarea>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="submit" name="Submit23" value="更 改" class=btxx >
                          <input type="reset" name="Submit33" value="复 原" class=btxx >
                          <input type=hidden name=dnme value="<%=dnme%>">
                          <input type=hidden name=module value="dmt_edta">
                        </td>
                      </tr>
                    </form>
                  </table>
                </td>
              </tr>
              <tr> 
                <td> 
                  <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"  class=datalist>
                    <form action="dmt_adm_rez.asp" method=post>
                      <tr> 
                        <th  class=datalistheader  colspan="3"> 
                          <div align="center"><b>通用网址超级管理二</b></div>
                        </th>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" width="25%"> 
                          <div align="center">赠送品一产品编号：</div>
                        </td>
                        <td class=datalistgrida > 
                          <select name="pstprd1">
                            <option value="" <%if trim(rs("pstprd1"))="" then
					  response.write " selected "
					  end if %>>没有赠送品</option>
                            <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
						if trim(rs1("g_prd"))=trim(rs("pstprd1")) then
						response.write " selected "
						end if
						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                          </select>
                        </td>
                        <td class=datalistgrida width="20%" >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">赠送品一：</div>
                        </td>
                        <td  class=datalistgrida  > 
                          <input type="text" size=28  name="pstnme1"  value="<%=trim(rs("pstnme1"))%>">
                          填：域名/主机名/FTP名/数据库名...</td>
                        <td  class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">赠送品二产品编号：</div>
                        </td>
                        <td  class=datalistgrida > 
                          <select name="pstprd2">
                            <option value="" <%if trim(rs("pstprd2"))="" then
					  response.write " selected "
					  end if %>>没有赠送品</option>
                            <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
						if trim(rs1("g_prd"))=trim(rs("pstprd2")) then
						response.write " selected "
						end if
						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                          </select>
                        </td>
                        <td  class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">赠送品二：</div>
                        </td>
                        <td  class=datalistgrida  > 
                          <input type="text" size=28  name="pstnme2" value="<%=trim(rs("pstnme2"))%>">
                          填：域名/主机名/FTP名/数据库名... </td>
                        <td  class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">赠送品三产品编号：</div>
                        </td>
                        <td   class=datalistgrida > 
                          <select name="pstprd3">
                            <option value="" <%if trim(rs("pstprd3"))="" then
					  response.write " selected "
					  end if %>>没有赠送品</option>
                            <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
						if trim(rs1("g_prd"))=trim(rs("pstprd3")) then
						response.write " selected "
						end if
						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                          </select>
                        </td>
                        <td   class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">赠送品三：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="text" size=28  name="pstnme3" value="<%=trim(rs("pstnme3"))%>">
                          填：域名/主机名/FTP名/数据库名... </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">获得此赠送品的产品编号：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <select name="pstrotprd">
                            <option value="" <%if trim(rs("pstrotprd"))="" then
					  response.write " selected "
					  end if %>>非赠送品</option>
                            <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
						if trim(rs1("g_prd"))=trim(rs("pstrotprd")) then
						response.write " selected "
						end if
						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                          </select>
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">获得此赠送品的产品：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="text" size=28  name="pstrotnme" value="<%=trim(rs("pstrotnme"))%>">
                          填：域名/主机名/FTP名/数据库名... </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida  height="22" > 
                          <div align="center">所属套餐编号：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="text" size=28  name="setnme" value="<%=trim(rs("setnme"))%>">
                          无则为空 
                          <input type=hidden name=domainname value="<%=domainname%>">
                          <input type=hidden name=dnme value="<%=dnme%>">
                          <input type=hidden name=module value="dmt_edtb">
                        </td>
                        <td class=datalistgrida  > 
                          <input type="submit" name="Submit222" value="更  改" class=btxx >
                          <input type="reset" name="Submit322" value="复  原" class=btxx >
                        </td>
                      </tr>
                    </form>
                  </table>
                </td>
              </tr>
            </table>
            <%
rs.close
conn.close
%>
          </td>
        </tr>
        <tr> 
          <td height="4" width="99%" valign="top"  >&nbsp;</td>
        </tr>
      </table>
      <br>
      <br>
      <br>
    </td>
  </tr>
  </tbody> 
</table>
<!--#include virtual="/incs/bottom.asp"-->




