<%@ page language="C#" autoeventwireup="true" inherits="admin_sysconfig, App_Web_tqrintju" %>

<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">

<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
 <title>safehost</title>
  <link type="text/css" href="../css/common.css" rel="Stylesheet" />
</head>

<body>

<script type="text/javascript">
  function exchange_App()
 {
 function exchange_MSSQL()
 {
  if (document.form1.MSSQL_MENU.value =='0')
  {
   document.all.MSIP.style.display ="none";
   document.all.MSPORT.style.display ="none";
   document.all.MSSN.style.display ="none";
  }
  if(document.form1.MSSQL_MENU.value =='1')
  {
   document.all.MSIP.style.display =""; 
   document.all.MSPORT.style.display ="";
   document.all.MSSN.style.display =""; 
   }
 }
  function exchange_MYSQL()
 {
  if (document.form1.MYSQL_MENU.value =='0')
  {
   document.all.MYIP.style.display ="none";
   document.all.MYPORT.style.display ="none";
  }
  if(document.form1.MYSQL_MENU.value =='1')
  {
   document.all.MYIP.style.display =""; 
   document.all.MYPORT.style.display =""; 
   }
 }
 }
 function sqlchange(){
    if(form1.runsql.value=="启用")
    {
        ms.style.display= "";
        msp.style.display = "";
    }
    else
    {  
        ms.style.display= "none";
        msp.style.display = "none";
    }
 }
 function mysqlchange(){
    if(form1.runmysql.value=="启用")
    {
        mpath.style.display = "";
        myp.style.display = "";
        my.style.display = "";
    }
    else
    {
         mpath.style.display = "none";
        myp.style.display = "none";
        my.style.display = "none";
    }
 }
 </script>
 
<div id="tt">
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="site_bg_site">
        <tbody>
        <tr class="tr3 s3" style="height:30px;">
            <td><h4><b>主机系统参数设置</b></h4></td>
        </tr>
        </tbody>
    </table> 

<table class=site_bg_site border=0 cellSpacing=1 cellPadding=0 width="100%">
 
  <form id="form1" runat="server" name="form1" >
  <Tbody>
  <tr id="tr" class="tr3 s3">
    <td scope=col>&nbsp;&nbsp;赠送二级域名：</td>
    <td scope=col>
    <input id=hostdomain runat="server" class=input_to_to value=idc.server-safe.cn maxLength=255 size=30 name=hostdomain> 
    &nbsp;*<StrONG class=syt_1>必填</StrONG> 如：www.server-safe.cn ( 赠送域名必须支持泛解析 )</td></tr>
  
  <tr class="tr3 s3" style="height:30px;">
    <td class="site_bg_bs" height=22 scope=col>&nbsp;&nbsp;默认文档：</td>
    <td class="site_bg_bs" height=22 scope=col>
    <input  id=doc runat="server" class=input_to_to 
      value="Default.htm,Default.html,Default.asp,Default.aspx,Default.php,Index.htm,Index.html,Index.asp,Index.aspx,Index.php"
      maxLength=255 size=55 name=doc> &nbsp;* 用","分隔</td></tr>
 
  <tr class="tr3 s3" style="height:30px;">
    <td class="site_bg_bs" height=22 scope=col>&nbsp;&nbsp;主机开设欢迎页：</td>
    <td class="site_bg_bs" height=22 scope=col>
    <select id=webpage runat="server" class=input_to_to name=webpage> <option 
        value="">不使用主机开设欢迎页面</option> <option selected 
        value=web01>主机开设欢迎页面01(白色)</option><option 
        value=web03>主机开设欢迎页面02(黑色)</option></select></td></tr>
    
    <tr class="tr3 s3" style="height:30px;">
        <td class="site_bg_bs" height=22 scope=col>&nbsp;&nbsp;是否启用MSSQL数据库：</td>
        <td class="site_bg_bs" height=22 scope=col>
    <select id=runsql runat="server" class=input_to_to name=runsql onchange="sqlchange()"> <option 
        value="启用" selected >启用</option> <option
        value="不启用">不启用</option></select></td>
        </tr>
        
  <tr id="ms" runat="server" class="tr3 s3" style="height:30px;">
    <td class="site_bg_bs" height=22 scope=col>&nbsp;&nbsp;MSSQL 管理员账号：</td>
    <td class="site_bg_bs" height=22 scope=col>
    <input id=mssqlsa runat="server" class=input_to_to name=mssqlsa value="sa">
     &nbsp;默认账号为sa&nbsp;&nbsp;&nbsp;请确认本机已装了MSSQL</td></tr>
     
  <tr id="msp" runat="server" class="tr3 s3" style="height:30px;">
    <td class="site_bg_bs" height=22 scope=col>&nbsp;&nbsp;MSSQL 管理员密码：</td>
    <td class="site_bg_bs" height=22 scope=col>
    <input id=mssqlpass runat="server" class=input_to_to 
      onfocus="if(this.value=='*******')this.value='';" 
      value=************ type=password 
      name=mssqlpass>
      
       &nbsp;不更改密码请保持为空&nbsp;&nbsp;<asp:Button ID="btnms" 
            runat="server" Text="测试连接" onclick="btnms_Click" />
      <asp:Label ID="lblms" runat="server" Text=""></asp:Label> </td></tr>
      
       <tr class="tr3 s3" style="height:30px;">
        <td class="site_bg_bs" height=22 scope=col>&nbsp;&nbsp;是否启用MYSQL数据库：</td>
        <td class="site_bg_bs" height=22 scope=col>
    <select id=runmysql runat="server" class=input_to_to name=runmysql onchange="mysqlchange()"> <option 
        value="启用" selected >启用</option> <option 
        value="不启用">不启用</option></select></td></tr>
      
  <tr class="tr3 s3" id="mpath" runat="server" style="height:30px;">
    <td  class="site_bg_bs" height=22 scope=col>&nbsp;&nbsp;MYSQL 数据存放路径：</td>
    <td class="site_bg_bs" height=22 scope=col><input id=mysqldatepath  runat="server" class=input_to_to 
      value="" size=39 name=mysqldatepath> 
      &nbsp;如：C:\mysql\data&nbsp;&nbsp;注：路径不可包含空格，否则将出错。</td></tr>
      
  <tr id="my" runat="server" class="tr3 s3" style="height:30px;">
    <td class="site_bg_bs" height=22 scope=col>&nbsp;&nbsp;MYSQL 管理员账号：</td>
    <td class="site_bg_bs" height=22 scope=col><input id=mysqlroot runat="server" class=input_to_to value=root name=mysqlroot> 
      &nbsp;默认账号为:root&nbsp;&nbsp;&nbsp;请确认本机已装了MYSQL</td></tr>
      
  <tr id="myp" runat="server" class="tr3 s3" style="height:30px;">
    <td class="site_bg_bs" height=22 scope=col>&nbsp;&nbsp;MYSQL 管理员密码：</td>
    <td class="site_bg_bs" height=22 scope=col><input id=mysqlpass runat="server" class=input_to_to 
      onfocus="if(this.value=='************')this.value='';" 
      value=************ type=password 
      name=mysqlpass> &nbsp;不更改密码请保持为空&nbsp;&nbsp;<asp:Button ID="btnmysql" 
            runat="server" Text="测试连接" onclick="btnmysql_Click" />
            
      <asp:Label ID="lblmysql" runat="server" Text=""></asp:Label> </td></tr>
  <tr class="tr3 s3" style="height:30px;">
      
    <td height=28 colspan=2 align=middle>
    <asp:ImageButton ID="btnYes" runat="server" 
            ImageUrl="~/images/host/update.gif" onclick="btnYes_Click" />
            
</td></tr></tbody></table>
</form>
</div>
</body>
</html>


