<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/top.asp" -->
<%
chk_log()
chk_newpwr 1,2,1

	sqnme=SafeRequest("sqnme")
	If sqnme="" Then
	call errorpage(-2,"对不起，参数错误！")
	End If
if session("sysclass")>=5 then
query="select * from v_sqllst   where sq_nme ='"&sqnme&"'"
elseif session("sysclass")>=4 then
query="select * from v_sqllst  where sq_nme ='"&sqnme&"'  and  ((("&session("sysarestr")&" or u_myare=0) and u_rotnme='') or u_rotnme='"&session("usrname")&"')"
else
query="select * from v_sqllst   where sq_nme ='"&sqnme&"' sq_unme='"&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,"对不起，该数据库不存在或者您无权操作！")
	response.end
	end if
u_nme=trim(rs("sq_unme"))

%>
<%          dbname=trim(rs("sq_nme"))
			    proid=trim(rs("sq_prd"))
 g_sst=rs("sq_sst")
		%>
<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 class=commonface href="index.asp"><font color="#FF0000">（查询）</font></a></td>
          <td valign=bottom noWrap align=right 
                        width="75%"><a class=commonface  href="sql_lst.asp?querytype=8">今天新开通</a> 
            | <a  class=commonface href="sql_lst.asp?querytype=9">本周新开通</a> | 
            <a class=commonface  href="sql_lst.asp?querytype=10">本周到期</a> | <a  class=commonface href="sql_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>
      <br>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="middle" height="28"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td> 
            <!--#include file="menu.asp"-->
          </td>
        </tr>
      </table>
      <br>
      <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 height="14" width="100%" valign="top"> 
                  <table align="center" border="0" cellpadding="0" cellspacing="0" class=datalist width="100%" >
                    <tr align="middle" > 
                      <th class=datalistheader colspan=3 height="22"> 
                        <div align="center"><b>运行状态</b> </div>
                      </th>
                    </tr>
                    <tr > 
                      <td class=datalistgrida height="22"  width="25%"> 
                        <div align="center">产品名称：</div>
                      </td>
                      <td class=datalistgrida colspan="2"> 
                        <%
								  query="select top 1 g_nme from pdtlst where g_prd='"&trim(rs("sq_prd"))&"'"
								  rs1.open query,conn,1,1
								  if not rs1.eof then
								  response.write trim(rs1("g_nme"))
								  end if
								  rs1.close
								  %>
                      </td>
                    </tr>
                    <tr > 
                      <td class=datalistgrida height="22" > 
                        <div align="center">数据库空间：</div>
                      </td>
                      <td class=datalistgrida colspan="2"> <font color=#ff0000><b><%
					  if clng(rs("sq_dskqta"))= 0 then
					  response.write 1
					  else
					  response.write clng(rs("sq_dskqta"))
					  end if %></b></font> / <%=clng(rs("sq_sze"))%> 
                        M </td>
                    </tr>
                    <% if session("sysclass")<4 then %>
                    <form action="sql_mng.asp" method =post name= webcontrol>
                      <tr > 
                        <td class=datalistgrida height="22" > 
                          <div align="center">数据库状态：</div>
                        </td>
                        <td class=datalistgrida colspan="2"> 
                          <%
if rs("sq_regstt")=1 then
statestring="启动"
startstr="disabled=1"
stopstr=" "
elseif rs("sq_regstt")=2 then
statestring="暂停"
startstr=" "
stopstr=" disabled=1"
elseif rs("sq_regstt")=5 then
statestring="被停止"
startstr="disabled=1"
stopstr=" disabled=1"
elseif rs("sq_regstt")=4 then
statestring="被删除"
startstr="disabled=1"
stopstr=" disabled=1"
else
statestring="未开设"
startstr="disabled=1"
stopstr=" disabled=1"

end if 
%>
                          <input type="button" name="Submit" value="启 动" class=btxx  onClick="javascript:document.webcontrol.sq_regstt.value=1;document.webcontrol.submit();"   <%=startstr%>  style="cursor:hand;">
                          <input type="button" name="Submit2" value="暂 停" class=btxx onClick="javascript:document.webcontrol.sq_regstt.value=2;document.webcontrol.submit();"  <%=stopstr%>  style="cursor:hand;">
                          （当前数据库已经 <font color=#ff0000><%=statestring%></font>） 
                          <input type=hidden name="dbname" value="<%=dbname%>" >
                          <input type=hidden name="sq_regstt" value="" >
                          <input type=hidden name="oldstatus" value="<%=RS("sq_regstt")%>" >
                          <input type=hidden name=module value="sql_regstt">
                        </td>
                      </tr>
                    </form>
  <% if g_sst=1 then %>
                    <%
if rs("sq_ftpstt")=1 then
statestring="启动"
startstr="disabled=1"
stopstr=" "
elseif rs("sq_ftpstt")=0 then
statestring="暂停"
startstr=" "
stopstr=" disabled=1"
elseif rs("sq_ftpstt")=2 then
statestring="被停止"
startstr="disabled=1"
stopstr=" disabled=1"
end if 
%>
                    <form action="sql_mng.asp" method =post name= ftpcontrol>
                      <tr > 
                        <td class=datalistgrida height="22" > 
                          <div align="center">FTP 状态：</div>
                        </td>
                        <td class=datalistgrida colspan="2"> 
                          <input type="button" name="Submit4" value="启 动" class=btxx  onClick="javascript:document.ftpcontrol.sq_ftpstt.value=1;document.ftpcontrol.submit();"   <%=startstr%>  style="cursor:hand;">
                          <input type="button" name="Submit22" value="暂 停" class=btxx onClick="javascript:document.ftpcontrol.sq_ftpstt.value=0;document.ftpcontrol.submit();"  <%=stopstr%>  style="cursor:hand;">
                          （当前FTP 已经 <font color=#ff0000><%=statestring%></font>） 
                          <input type=hidden name="dbname" value="<%=dbname%>" >
                          <input type=hidden name="sq_ftpstt" value="" >
                          <input type=hidden name=module value="sql_ftpstt">
                        </td>
                      </tr>
                    </form>
                    <% end if %>
                    <% end if %>
                    <% if session("sysclass")>=4 then %>
                    <form action="sql_mng.asp" method =post name= sql_regstt_frm>
                      <tr > 
                        <td class=datalistgrida height="22" > 
                          <div align="center">数据库状态：</div>
                        </td>
                        <td class=datalistgrida><font color="#000000"> 
                          <%
							Call  SHOWSELECT(RS("sq_regstt"),RS("sq_regtpe"))
					%>
                          </font></td>
                        <td class=datalistgrida width="25%"> 
                          <input type=hidden name="dbname" value="<%=dbname%>" >
                          <input type=hidden name="oldstatus" value="<%=RS("sq_regstt")%>" >
                          <input type=hidden name=module value="sql_regstt">
                          <input name="Cdrfd" type="submit" value="修 改"  class=btxx onclick="javascript:return sql_regstt_cfm();">
                        </td>
                      </tr>
                    </form>
					<% if g_sst=1 then %>
                    <form action="sql_mng.asp" method =post name= form1>
                      <tr > 
                        <td class=datalistgrida height="22" > 
                          <div align="center">FTP状态：</div>
                        </td>
                        <td class=datalistgrida><font color="#000000"> 
                          <%
							Call  SHOWSELECT_ftp(RS("sq_ftpstt"))
					%>
                          </font></td>
                        <td class=datalistgrida> 
                          <input type=hidden name="dbname" value="<%=dbname%>" >
                          <input type=hidden name="oldstatus" value="<%=RS("sq_ftpstt")%>" >
                          <input type=hidden name=module value="sql_ftpstt">
                          <input name="Cdrfd2" type="submit" value="修 改"  class=btxx onClick="javascript:return sql_ftpstt_cfm();">
                        </td>
                      </tr>
                    </form>
                    <% end if %>
                    <% end if %>
										        <tr> 
                      <td class=datalistgrida height="22" align="center"> 
                        <p style="margin-left: 6">相关操作:</p>
          </td>
          <td class=datalistgrida colspan=2> 
            <p style="margin-left: 6"> 
			<script>
function deleteit(proid)
{
if (confirm("确认删除此数据库吗？"))
{location.href="/master/pdtmng/sqL_mng/sql_del.asp?dbname="+proid;
}
}
</script>
              <input type="button" name="Submit22" value="订单删除" class=btxx onclick="javascript:return deleteit('<%=rs("sq_nme")%>');">
			  <% if rs("sq_regstt")=0 then %>
              <input type="button" name="Submit23" value="购买" class=btxx onclick="javascript:showurl('/master/pdtbuy/sql_buy/sql_pay.asp?sqnme=<%=rs("sq_nme")%>');">
			  <% end if %>
            
          </td>
        </tr>

                    <tr > 
                      <td class=datalistgrida height="22" > 
                        <div align="center">购买日期：</div>
                      </td>
                      <td class=datalistgrida colspan="2"> <%= rs("sq_addtme") %></td>
                    </tr>
                    <tr > 
                      <td class=datalistgrida height="22" > 
                        <div align="center">到期日期：</div>
                      </td>
                      <td class=datalistgrida colspan="2"> 
                        <%
						If RS("sq_regtpe")=1 and rs("sq_regstt")<>0 Then
							Response.Write 	""& rs("sq_exptme") &""
						  else
							Response.Write "下定单申请状态或试用状态,尚未正式购买"
						End If
				  %>
                      </td>
                    </tr>
                    <% if session("sysclass")>=4 then %>
                    <tr > 
                      <td class=datalistgrida height="22" > 
                        <div align="center">所属会员：</div>
                      </td>
                      <td class=datalistgrida colspan="2"><a href="/master/memmng/mem_dtl.asp?unme=<%=u_nme%>"><b><%=u_nme%></b></a> 
                      </td>
                    </tr>
                    
                    <% end if %>
                    <tr > 
                      <td class=datalistgrida  height="22" > 
                        <div align="center">是否为套餐：</div>
                      </td>
                      <td class=datalistgrida  colspan="2"> 
                        <% 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>
                    </tr>
                    <% end if %>
                  </table>
                </td>
              </tr>
              <tr> 
                <td > 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0"  id=identity>
                    <tr> 
                      <td >&nbsp;</td>
                    </tr>
                    <tr> 
                      <td > 
                        <table align="center" width="100%"  cellpadding="0" class=datalist cellspacing="0" border="0">
                          <tr align="middle" > 
                            <th class=datalistheader colspan="3" height="22"> 
                              <div align="center"><b>订单信息</b></div>
                            </th>
                          </tr>
                          <tr > 
                            <td class=datalistgrida height="22" width="25%"> 
                              <div align="center" style="display:block;">单位名称： 
                                <input type="button" name="Submit5" value="生成会员" class=btxx
			  onClick="javascript:showurl('/master/memmng/mem_add.asp?u_nme=<%=trim(rs("sq_nme"))%>&u_pss=<%=pss_mak(8)%>&u_copnme_cn=<%=rs("sq_copnme_cn")%>&u_ctt_cn=<%=rs("sq_ctt_cn")%>&u_prv_cn=<%=rs("sq_prv_cn")%>&u_adr_cn=<%=rs("sq_adr_cn")%>&u_cde=<%=rs("sq_cde")%>&u_eml=<%=rs("sq_eml")%>&u_tel=<%=rs("sq_tel")%>&u_fax=<%=rs("sq_fax")%>&g_prd=<%=rs("sq_prd")%>&g_pnme=<%=rs("sq_nme")%>&oldunme=<%=rs("sq_unme")%>');">
                              </div>
                            </td>
                            <td class=datalistgrida colspan="2"><%=rs("sq_copnme_cn")%></td>
                          </tr>
                          <tr > 
                            <td class=datalistgrida height="22"> 
                              <div align="center">联系人：</div>
                            </td>
                            <td class=datalistgrida colspan="2"><%=rs("sq_ctt_cn")%></td>
                          </tr>
                          <tr > 
                            <td class=datalistgrida height="22"> 
                              <div align="center">省份：</div>
                            </td>
                            <td class=datalistgrida colspan="2"><%=rs("sq_prv_cn")%></td>
                          </tr>
                          <tr > 
                            <td class=datalistgrida height="22"> 
                              <div align="center">联系地址：</div>
                            </td>
                            <td class=datalistgrida colspan="2"><%=rs("sq_adr_cn")%></td>
                          </tr>
                          <tr > 
                            <td class=datalistgrida height="22"> 
                              <div align="center">邮政编码：</div>
                            </td>
                            <td class=datalistgrida colspan="2"><%=rs("sq_cde")%></td>
                          </tr>
                          <tr > 
                            <td class=datalistgrida height="22"> 
                              <div align="center">联系电话：</div>
                            </td>
                            <td class=datalistgrida colspan="2"><%=rs("sq_tel")%></td>
                          </tr>
                          <tr > 
                            <td class=datalistgrida height="22"> 
                              <div align="center">传真：</div>
                            </td>
                            <td class=datalistgrida colspan="2"><%=rs("sq_fax")%></td>
                          </tr>
                          <tr > 
                            <td class=datalistgrida height="22"> 
                              <div align="center">电子邮件：</div>
                            </td>
                            <td class=datalistgrida colspan="2"><%=rs("sq_eml")%></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td  height="163"  valign="top"> <br>
                  <table align="center" border="0" cellpadding="0" cellspacing="0" class=datalist width="100%" >
                    <tr align="middle" > 
                      <th class=datalistheader colspan="3" height="22"> 
                        <div align="center"><b>数据库信息</b></div>
                      </th>
                    </tr>
                    <tr align="middle" > 
                      <td class=datalistgrida height="22"  align=center width="25%">数据库地址：</td>
                      <td class=datalistgrida height="22" ><%=rs("sq_svrip")%></td>
                      <td class=datalistgrida height="22" width="25%">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td class=datalistgrida  height="22"> 
                        <div align="center">数据库名称：</div>
                      </td>
                      <td class=datalistgrida  height="22"><%=rs("sq_ftpusr")%></td>
                      <td class=datalistgrida >&nbsp;</td>
                    </tr>
                    <tr> 
                      <td class=datalistgrida  height="22"> 
                        <div align="center">数据库用户名：</div>
                      </td>
                      <td class=datalistgrida  height="22"><%=rs("sq_ftpusr")%></td>
                      <td class=datalistgrida >&nbsp;</td>
                    </tr>
                    <form action="sql_mng.asp" method=post>
                      <tr> 
                        <td class=datalistgrida  height="22" align="center"> 数据库密&nbsp; 
                          码： </td>
                        <td class=datalistgrida  height="22"> 
 <%
			 
wstr=getpassoutcode(rs("sq_pss"))
						  %>                         <input class="input" name="sq_pss" size="30" value="<%=wstr%>" maxlength="17">
                        </td>
                        <td class=datalistgrida > 
                          <input name="Cdrfd2" type="submit" value="修 改"  class=btxx onClick="javascript:return sql_pss_cfm();">
                          <input type=hidden name="dbname" value="<%=dbname%>" >
                          <input type=hidden name=module value="sql_pss">
                        </td>
                      </tr>
                    </form>
                    <tr> 
                      <td class=datalistgrida  height="22">&nbsp;</td>
                      <td class=datalistgrida  colspan="2" height="22">修改数据库密码后,新密码立即生效,请妥善保管您的密码,切勿告诉他人。</td>
                    </tr>
                  </table>
                </td>
              </tr>
			  			  <% if g_sst=1 then %>

              <tr> 
                <td    valign="top"> 
                  <table align="center" border="0" cellpadding="0" cellspacing="0" class=datalist width="100%" >
                    <tr align="middle" > 
                      <th class=datalistheader colspan="3" height="22"> 
                        <div align="center"><b>FTP帐号</b></div>
                      </th>
                    </tr>
                    <tr align="middle" > 
                      <td class=datalistgrida height="22"  align=center width="25%">FTP服务器：</td>
                      <td class=datalistgrida height="22" ><%=rs("sq_svrip")%></td>
                      <td class=datalistgrida height="22" width="25%">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td class=datalistgrida  height="22"> 
                        <div align="center">FTP用户名：</div>
                      </td>
                      <td class=datalistgrida  height="22"><%=rs("sq_ftpusr")%></td>
                      <td class=datalistgrida >&nbsp;</td>
                    </tr>
                    <form action="sql_mng.asp" method=post>
                      <tr> 
                        <td class=datalistgrida  height="22" align="center"> FTP密&nbsp; 
                          码： </td>
                        <td class=datalistgrida  height="22"> 
						<%
 
wstr=getpassoutcode(rs("sq_ftppss"))
						  %>             
                          <input class="input" name="sq_ftppss" size="30" value="<%=wstr%>" maxlength="17">
                        </td>
                        <td class=datalistgrida > 
                          <input name="Cdrfd2" type="submit" value="修 改"  class=btxx onClick="javascript:return sql_ftppss_cfm();">
                          <input type=hidden name="dbname" value="<%=dbname%>" >
                          <input type=hidden name=module value=sql_ftppss>
                        </td>
                      </tr>
                    </form>
                    <tr> 
                      <td class=datalistgrida  height="22">&nbsp;</td>
                      <td class=datalistgrida  colspan="2" height="22">修改FTP密码后,新密码立即生效,请妥善保管您的密码,切勿告诉他人。</td>
                    </tr>
                    <tr> 
                      <td class=datalistgrida  height="22">&nbsp;</td>
                      <td class=datalistgrida  colspan="2" height="22">该FTP用户仅用于下载数据库备份文件之用。</td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td    valign="top"><br>
                  <table align="center" border="0" cellpadding="0" cellspacing="0" class=datalist width="100%" >
                    <tr align="middle" > 
                      <th class=datalistheader colspan="4" height="22"> <b>数据库备份</b> 
                      </th>
                    </tr>
                    <tr align="middle" b> 
                      <td class=datalistgrida height="22"  align=center>序号</td>
                      <td class=datalistgrida height="22" align="center" > 备份操作</td>
                      <td class=datalistgrida height="22" align="center"> 恢复操作</td>
                      <td class=datalistgrida height="22" align="center" width="25%">备份时间</td>
                    </tr>
                    <tr align="middle" > 
                      <td class=datalistgrida height="22"  align=center width="25%">备份一</td>
                      <form name=bkp1 method=post action="sql_mng.asp">
                        <td class=datalistgrida height="22" align="center" > 
                          <input name="Clear2" type="submit" value="备 份"  class=btxx onclick="javascript:return sql_bkp_cfm();">
                          <input type=hidden name="module" value="sql_bkp">
                          <input type=hidden name="dbname" value="<%=dbname%>">
                          <input type=hidden name="sq_bkpnum" value="1">
                        </td>
                      </form>
                      <form name=rst1 method=post action="sql_mng.asp">
                        <td class=datalistgrida height="22" align="center" > 
                          <input name="Clear2" type="submit" value="恢 复"  class=btxx onclick="javascript:return sql_rst_cfm();">
                          <input type=hidden name="module" value="sql_rst">
                          <input type=hidden name="dbname" value="<%=dbname%>">
                          <input type=hidden name="sq_bkpnum" value="1">
                        </td>
                      </form>
                      <td class=datalistgrida height="22"  align="center">&nbsp;<%=rs("sq_bkptme1")%></td>
                    </tr>
                    <tr> 
                      <td class=datalistgrida  height="22"> 
                        <div align="center">备份二</div>
                      </td>
                      <form name=bkp2 method=post action="sql_mng.asp">
                        <td class=datalistgrida  height="22" align="center"> 
                          <input name="Clear2" type="submit" value="备 份"  class=btxx onclick="javascript:return sql_bkp_cfm();">
                          <input type=hidden name="module" value="sql_bkp">
                          <input type=hidden name="dbname" value="<%=dbname%>">
                          <input type=hidden name="sq_bkpnum" value="2">
                        </td>
                      </form>
                      <form name=rst2 method=post action="sql_mng.asp">
                        <td class=datalistgrida height="22" align="center"  > 
                          <input name="Clear2" type="submit" value="恢 复"  class=btxx onclick="javascript:return sql_rst_cfm();">
                          <input type=hidden name="module" value="sql_rst">
                          <input type=hidden name="dbname" value="<%=dbname%>">
                          <input type=hidden name="sq_bkpnum" value="2">
                        </td>
                      </form>
                      <td class=datalistgrida  align="center">&nbsp;<%=rs("sq_bkptme2")%></td>
                    </tr>
                    <tr> 
                      <td class=datalistgrida  height="22" align="center"> 备份三</td>
                      <form name=bkp3 method=post action="sql_mng.asp">
                        <td class=datalistgrida  height="22" align="center"> 
                          <input name="Clear2" type="submit" value="备 份"  class=btxx onclick="javascript:return sql_bkp_cfm();">
                          <input type=hidden name="module" value="sql_bkp">
                          <input type=hidden name="dbname" value="<%=dbname%>">
                          <input type=hidden name="sq_bkpnum" value="3">
                        </td>
                      </form>
                      <form name=rst3 method=post action="sql_mng.asp">
                        <td class=datalistgrida height="22" align="center"  > 
                          <input name="Clear2" type="submit" value="恢 复"  class=btxx onclick="javascript:return sql_rst_cfm();">
                          <input type=hidden name="module" value="sql_rst">
                          <input type=hidden name="dbname" value="<%=dbname%>">
                          <input type=hidden name="sq_bkpnum" value="3">
                        </td>
                      </form>
                      <td class=datalistgrida  align="center">&nbsp;<%=rs("sq_bkptme3")%></td>
                    </tr>
                    <tr> 
                      <td class=datalistgrida  height="22" align="center">备份四</td>
                      <form name=bkp4 method=post action="sql_mng.asp">
                        <td class=datalistgrida  align="center" height="22"> 
                          <input name="Clear2" type="submit" value="备 份"  class=btxx onclick="javascript:return sql_bkp_cfm();">
                          <input type=hidden name="module" value="sql_bkp">
                          <input type=hidden name="dbname" value="<%=dbname%>">
                          <input type=hidden name="sq_bkpnum" value="4">
                        </td>
                      </form>
                      <form name=rst4 method=post action="sql_mng.asp">
                        <td class=datalistgrida height="22" align="center"  > 
                          <input name="Clear2" type="submit" value="恢 复"  class=btxx onclick="javascript:return sql_rst_cfm();">
                          <input type=hidden name="module" value="sql_rst">
                          <input type=hidden name="dbname" value="<%=dbname%>">
                          <input type=hidden name="sq_bkpnum" value="4">
                        </td>
                      </form>
                      <td class=datalistgrida  align="center" height="22">&nbsp;<%=rs("sq_bkptme4")%></td>
                    </tr>
                    <tr> 
                      <td class=datalistgrida  height="22" align="center">备份五</td>
                      <form name=bkp5 method=post action="sql_mng.asp">
                        <td class=datalistgrida  align="center" height="22"> 
                          <input name="Clear2" type="submit" value="备 份"  class=btxx onclick="javascript:return sql_bkp_cfm();">
                          <input type=hidden name="module" value="sql_bkp">
                          <input type=hidden name="dbname" value="<%=dbname%>">
                          <input type=hidden name="sq_bkpnum" value="5">
                        </td>
                      </form>
                      <form name=rst5 method=post action="sql_mng.asp">
                        <td class=datalistgrida height="22" align="center"  > 
                          <input name="Clear2" type="submit" value="恢 复"  class=btxx onclick="javascript:return sql_rst_cfm();">
                          <input type=hidden name="module" value="sql_rst">
                          <input type=hidden name="dbname" value="<%=dbname%>">
                          <input type=hidden name="sq_bkpnum" value="5">
                        </td>
                      </form>
                      <td class=datalistgrida  align="center" height="22">&nbsp;<%=rs("sq_bkptme5")%></td>
                    </tr>
				
                    <tr> 
                      <td class=datalistgrida  height="22" align="center">说明：</td>
                      <td class=datalistgrida  colspan="3" height="22">恢复备份时应该先停止数据库使用才可执行成功！</td>
                    </tr>
                  </table>
                </td>
              </tr>
			  <% end if%>
            </table>
            <br>
            <% 
rs.close
conn.close
%>
          </td>
        </tr>
        <tr> 
          <td height="4" width="99%" valign="top"  >&nbsp;</td>
        </tr>
      </table>
      <br>
      <br>
      <%
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)
gifstr=regtpe_str&regstt_str&".gif"
showstatus="<img src=/icons/"&gifstr&">"   

End Function
%>
      <%
Sub SHOWSELECT(regstt,regtpe)
if  regtpe=0 then
stt_str="(试用)"
elseif regtpe=5 then
stt_str="(赠送)"
else
stt_str="(正式)"
end if
%>
      <select name=sq_regstt>
        <option <%If regstt=1 Then Response.Write " selected value=x" %> value=1 >运行中<%=stt_str%></option>
        <option <%If regstt=2 Then Response.Write " selected value=x" %> value=2 >暂停中<%=stt_str%></option>
        <option <%If regstt=5 Then Response.Write " selected value=x" %> value=5>管理员停止<%=stt_str%></option>
        <option <%If regstt=0 Then Response.Write " selected value=x" %> value=0>未开设<%=stt_str%></option>
        <option <%If regstt=4 Then Response.Write " selected value=x" %> value=4>已经删除<%=stt_str%></option>
        <option <%If regstt=3 Then Response.Write " selected value=x" %> value=3>处理中<%=stt_str%></option>
      </select>
      <%

End sub
%>
      <%
Sub SHOWSELECT_ftp(ftpstt)

%>
      <select name=sq_ftpstt>
        <option <%If ftpstt=1 Then Response.Write " selected value=x" %> value=1 >运行中</option>
        <option <%If ftpstt=2 Then Response.Write " selected value=x" %> value=2 >暂停中</option>
        <option <%If ftpstt=5 Then Response.Write " selected value=x" %> value=5>管理员停止</option>
        <option <%If ftpstt=0 Then Response.Write " selected value=x" %> value=0>未开设</option>
      </select>
      <%

End sub
%>
      <br>
    </td>
  </tr>
  </tbody> 
</table>
<script>
	  function sql_regstt_cfm()
	  {
	  if(confirm("是否确认更改数据库状态！"))
      return true;
      else	  
	  return false;
	  }
	   function sql_pss_cfm()
	  {
	  if(confirm("是否确认更改数据库密码！"))
      return true;
      else	  
	  return false;
	  }
	   function sql_ftpstt_cfm()
	  {
	  if(confirm("是否确认更改FTP状态！"))
      return true;
      else	  
	  return false;
	  }
	  function sql_ftppss_cfm()
	  {
	  if(confirm("是否确认更改FTP密码！"))
      return true;
      else	  
	  return false;
	  }
	   function sql_bkp_cfm()
	  {
	  if(confirm("是否确认执行数据库备份！"))
      return true;
      else	  
	  return false;
	  }
	  function sql_rst_cfm()
	  {
	  if(confirm("是否确认执行数据库恢复！"))
      return true;
      else	  
	  return false;
	  }
	  </script>
<!--#include virtual="/incs/bottom.asp"-->


