<!--
<?php
echo <<<EOT
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$kuWebsiteTitle}</title>
<link href="{$adminHttpCssPath}admin.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="javascript" src="{$adminHttpJsPath}common.js"></script>
<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="./ckeditor/ckfinder/ckfinder.js"></script>
<script type="text/javascript" language="javascript">
function createXHR() 
{
  var request;
  var browser = navigator.appName;
  //使用IE，则使用XMLHttp对象
  if(browser == "Microsoft Internet Explorer") 
  {
    var arrVersions = ["Microsoft.XMLHttp", "MSXML2.XMLHttp.4.0", "MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp","MSXML2.XMLHttp.5.0"];
    for (var i=0; i < arrVersions.length; i++) 
    {
      try 
      {
        //从中找到一个支持的版本并建立XMLHttp对象
        request = new ActiveXObject(arrVersions[i]); 
        return request;
      } 
      catch(exception)
      {
         //忽略，继续
      }
    }
  }
  else
  {
    //否则返回一个XMLHttpRequest对象
    request = new XMLHttpRequest(); 
    if(request.overrideMimeType)
    {
  　　  request.overrideMimeType('text/xml;charset=utf-8');
  　}
    return request;
  }   
}

var Request = createXHR();//实例化

function checkName(x)
{
   if('' == x)
   {
     alert('用户名不能为空，请重新填写');
     return false;
   }
   var URL = "index.php?lang={$kuWebsiteEditVersionLanguage}&path=admin&menu=ajax&value=" + x;     
   //alert(URL);
   Request.open("GET",URL,true);
    
   Request.onreadystatechange = showCheckNameMessage;
  
   Request.send(null);
}

function showCheckNameMessage()
{
   if(Request.readyState == 4 && Request.status == 200) 
   {  
      document.getElementById("showMessageId").style.display = 'block'; 
      document.getElementById('showMessageId').innerHTML = Request.responseText;
   }
}
</script>
</head>

<body>
  <table width="100%" border="0" background="#EEEEEE">
    <tr>
      <td colspan="3" height="10">&nbsp;</td>
    </tr>
    <tr>
      <td width="1%"></td>
      <td width="98%"><table width="100%" bgcolor="#F4FAFB" style="border:1px solid #99d3fb">
        <tr height="30" style="padding:3px 10px;">
          <td width="40%" align="left" height="40"><span style="font-size:16px; font-weight:bold">&nbsp;&nbsp;{$labelAdminAddAdmin}</span></td>
          <td width="40%" align="right"><a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=admin&menu=admin_action">{$labelAdminBackBrowseAdmin}</a></td>
        </tr>
      </table>
        <form name='myform' enctype="multipart/form-data" action="index.php?lang={$kuWebsiteEditVersionLanguage}&path=admin&menu=admin_action&action=add" method="post">
         <table width="100%" bgcolor="#F4FAFB" class="tableList" cellpadding="1" cellspacing="1">
          <tr> 
            <td width="30%" align="right">{$labelAdminUserName}</td>
            <td width="70%"> 
              <div style="float:left; margin-right:10px">
                <input name="adminuser" type="text" size="40" maxlength="40">
                <input type="button" value="{$labelAdminCheckUserNameRepeat}" onClick="checkName(myform.adminuser.value)" />
                 <font color="#FF0000">*</font>{$labelAdminUserNameDesc}
              </div>
              <div id="showMessageId" style="display:none; float:left; line-height:16px; margin-top:5px;"></div>
            </td>
          </tr> 
          <tr> 
            <td align="right">{$labelAdminLoginPassword}</td>
            <td> <input name="adminpassword" type="password" size="40" maxlength="40"> 
              <font color="#FF0000">*</font>{$labelAdminLoginPasswordDesc}</td>
          </tr> 
          <tr> 
            <td align="right">{$labelAdminLoginCheckPassword}</td>
            <td> <input name="adminpasswordcheck" type="password" size="40" maxlength="40"> <font color="#FF0000">*</font> {$labelAdminLoginCheckPasswordDesc}</td>
          </tr> 
          <tr> 
            <td align="right">{$labelAdminLoginNickname}</td>
            <td> <input name="nickname" type="text" size="40" maxlength="40"></td>
          </tr> 
          <tr> 
            <td align="right">{$labelAdminLoginSex}</td>
            <td>
              <input name="adminsex" type="radio" value="1" checked="checked">{$labelAdminLoginSexMan} &nbsp;
              <input name="adminsex" type="radio" value="2">{$labelAdminLoginSexWomen}
            </td>
          </tr> 
          <tr> 
            <td align="right">{$labelAdminLoginTelephone}</td>
            <td> <input name="admintel" type="text" size="40" maxlength="40"></td>
          </tr>
          <tr> 
            <td align="right">{$labelAdminLoginEmail}</td>
            <td> <input name="adminemail" type="text" size="40" maxlength="40"> <font color="#FF0000">*</font>{$labelAdminLoginEmailDesc}</td>
          </tr> 
          <tr> 
            <td align="right">{$labelAdminLoginMSN}</td>
            <td> <input name="adminmsn" type="text" size="40" maxlength="40"></td>
          </tr> 
          <tr> 
            <td align="right">{$labelAdminLoginAli}</td>
            <td> <input name="adminali" type="text" size="40" maxlength="40"></td>
          </tr> 
          <tr> 
            <td align="right">{$labelAdminLoginCompanyName}</td>
            <td> <input name="admincompany" type="text" size="40" maxlength="40"></td>
          </tr> 
          <tr> 
            <td align="right">{$labelAdminLoginCompanyAddress}</td>
            <td> <input name="admincompanyaddress" type="text" size="40" maxlength="40"></td>
          </tr> 
          <tr> 
            <td align="right">{$labelAdminLoginCompanyFax}</td>
            <td> <input name="admincompanyfax" type="text" size="40" maxlength="40"></td>
          </tr>
          <tr> 
            <td align="right">{$labelAdminLoginCompanyCode}</td>
            <td> <input name="admincompanycode" type="text" size="40" maxlength="40"></td>
          </tr>
          <tr> 
            <td align="right">{$labelAdminLoginCompanyUrl}</td>
            <td> <input name="admincompanywebsite" type="text" size="40" maxlength="40"></td>
          </tr>
          <tr> 
            <td align="right">{$labelAdminLoginCompanyRemark}</td>
            <td><textarea name="remark" cols="38" rows="2"></textarea></td>
          </tr>
          <tr> 
            <td height="30" align="center" colspan="2"> 
              <input class="button" type="submit" name="Submit" value="{$labelCommonSubmit}" >&nbsp;&nbsp;&nbsp;&nbsp;  
              <input class="button" type="reset" name="Submit" value="{$labelCommonReset}" > 
            </td>
          </tr>
        </table>
      </form>
  
EOT;
include_once($adminTemplatePath.'/footer.html');
echo <<<EOT
  
  </td>
      <td width="1%"></td>
    </tr>
  <tr><td colspan="3" height="10">&nbsp;</td></tr>
  </table>
</body>
</html>

<!--
EOT;
?>
-->  