<!--
<?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" language="javascript" src="{$adminHttpJsPath}img.js"></script>
<script type="text/javascript" language="javascript">
function makeText(value)
{
  var patter =/^[0-9]+$/;
  if(!patter.test(value) || 10 < value)
  {
    alert('首页配置数步合法，请重新填写');
    return false;
  }
  for(var i = 1; i <= 10; i++)
  {
    document.getElementById('divParameterId'+i).style.display = "none";
  }
  for(var i = 1; i <= value; i++)
  {
    document.getElementById('divParameterId'+i).style.display = "block";
  }
  return true;
}

function checkIndexPage()
{
  var value = document.myform.kuWebsiteIndexNumber.value;
  for(var i = 1; i <= value; i++)
  {
    var stringName = 'kuWebsiteIndexPageTitle'+i+'Id';
    if('' == document.getElementById(stringName).value)
    {
      alert("参数不能为空，请重新填写");
      return false;
    }
  }
  return true;
}
</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;{$labelSystemIndexPageWebsiteSettings}</span></td>
            <td width="40%" align="right"><a href="left.php?lang=<?php echo $kuWebsiteEditVersionLanguage; ?>&tab=block" target="menu">{$labelSystemIndexPageParameter}&nbsp;&nbsp;</a></td>
          </tr>
        </table>
        <form name='myform' enctype="multipart/form-data" action="index.php?lang={$kuWebsiteEditVersionLanguage}&path=system&menu=system_action&action=block&operate=saveparameter" method="post">
         <table width="100%" bgcolor="#F4FAFB" class="tableList" cellpadding="1" cellspacing="1">
          <tr> 
            <td width="30%" align="right">{$labelSystemIndexPageParameter}</td>
            <td width="70%"> 
                <input name="kuWebsiteIndexNumber" type="text"  size="5" maxlength="200" value="{$kuWebsiteIndexNumber}" onchange="return makeText(this.value)"> <font color="#FF0000">*</font>{$labelSystemIndexPageParameterDesc}
            </td>
          </tr>
          <tr>
            <td colspan="2">
              <div id="divParameterId1" style="{$divParameterDisplay[1]}">
                <table  width="100%" height="100%" bgcolor="#FFFFFF" cellpadding="1" cellspacing="1" > 
                  <tr> 
                   <td width="30%" align="right">{$labelSystemIndexPageParameter1}</td>
                   <td width="70%"> 
                    <input id="kuWebsiteIndexPageTitle1Id" name="kuWebsiteIndexPageTitle1" type="text"  size="15" maxlength="200" value="{$kuWebsiteIndexPageTitle1}"> 
                    <font color="#FF0000">*</font>
                   </td>        
                  </tr>
                </table>
              </div>
            </td>
          </tr>
          <tr>
            <td colspan="2">
              <div id="divParameterId2" style="{$divParameterDisplay[2]}">
                <table  width="100%" height="100%" bgcolor="#FFFFFF" cellpadding="1" cellspacing="1" > 
                  <tr> 
                   <td width="30%" align="right">{$labelSystemIndexPageParameter2}</td>
                   <td width="70%"> 
                    <input id="kuWebsiteIndexPageTitle2Id" name="kuWebsiteIndexPageTitle2" type="text"  size="15" maxlength="200" value="{$kuWebsiteIndexPageTitle2}"> 
                    <font color="#FF0000">*</font>
                   </td>        
                  </tr>
                </table>
              </div>
            </td>
          </tr>
          <tr>
            <td colspan="2">
              <div id="divParameterId3" style="{$divParameterDisplay[3]}">
                <table  width="100%" height="100%" bgcolor="#FFFFFF" cellpadding="1" cellspacing="1" > 
                  <tr> 
                   <td width="30%" align="right">{$labelSystemIndexPageParameter3}</td>
                   <td width="70%"> 
                    <input id="kuWebsiteIndexPageTitle3Id" name="kuWebsiteIndexPageTitle3" type="text"  size="15" maxlength="200" value="{$kuWebsiteIndexPageTitle3}"> 
                    <font color="#FF0000">*</font>
                   </td>        
                  </tr>
                </table>
              </div>
            </td>
          </tr>
          <tr>
            <td colspan="2">
              <div id="divParameterId4" style="{$divParameterDisplay[4]}">
                <table  width="100%" height="100%" bgcolor="#FFFFFF" cellpadding="1" cellspacing="1" > 
                  <tr> 
                   <td width="30%" align="right">{$labelSystemIndexPageParameter4}</td>
                   <td width="70%"> 
                    <input id="kuWebsiteIndexPageTitle4Id" name="kuWebsiteIndexPageTitle4" type="text"  size="15" maxlength="200" value="{$kuWebsiteIndexPageTitle4}"> 
                    <font color="#FF0000">*</font>
                   </td>        
                  </tr>
                </table>
              </div>
            </td>
          </tr> 
          <tr>
            <td colspan="2">
              <div id="divParameterId5" style="{$divParameterDisplay[5]}">
                <table  width="100%" height="100%" bgcolor="#FFFFFF" cellpadding="1" cellspacing="1" > 
                  <tr> 
                   <td width="30%" align="right">{$labelSystemIndexPageParameter5}</td>
                   <td width="70%"> 
                    <input id="kuWebsiteIndexPageTitle5Id" name="kuWebsiteIndexPageTitle5" type="text"  size="15" maxlength="200" value="{$kuWebsiteIndexPageTitle5}"> 
                    <font color="#FF0000">*</font>
                   </td>        
                  </tr>
                </table>
              </div>
            </td>
          </tr>  
          <tr>
            <td colspan="2">
              <div id="divParameterId6" style="{$divParameterDisplay[6]}">
                <table  width="100%" height="100%" bgcolor="#FFFFFF" cellpadding="1" cellspacing="1" > 
                  <tr> 
                   <td width="30%" align="right">{$labelSystemIndexPageParameter6}</td>
                   <td width="70%"> 
                    <input id="kuWebsiteIndexPageTitle6Id" name="kuWebsiteIndexPageTitle6" type="text"  size="15" maxlength="200" value="{$kuWebsiteIndexPageTitle6}"> 
                    <font color="#FF0000">*</font>
                   </td>        
                  </tr>
                </table>
              </div>
            </td>
          </tr>  
          <tr>
            <td colspan="2">
              <div id="divParameterId7" style="{$divParameterDisplay[7]}">
                <table  width="100%" height="100%" bgcolor="#FFFFFF" cellpadding="1" cellspacing="1" > 
                  <tr> 
                   <td width="30%" align="right">{$labelSystemIndexPageParameter7}</td>
                   <td width="70%"> 
                    <input id="kuWebsiteIndexPageTitle7Id" name="kuWebsiteIndexPageTitle7" type="text"  size="15" maxlength="200" value="{$kuWebsiteIndexPageTitle7}"> 
                    <font color="#FF0000">*</font>
                   </td>        
                  </tr>
                </table>
              </div>
            </td>
          </tr>  
          <tr>
            <td colspan="2">
              <div id="divParameterId8" style="{$divParameterDisplay[8]}">
                <table  width="100%" height="100%" bgcolor="#FFFFFF" cellpadding="1" cellspacing="1" > 
                  <tr> 
                   <td width="30%" align="right">{$labelSystemIndexPageParameter8}</td>
                   <td width="70%"> 
                    <input id="kuWebsiteIndexPageTitle8Id" name="kuWebsiteIndexPageTitle8" type="text"  size="15" maxlength="200" value="{$kuWebsiteIndexPageTitle8}"> 
                    <font color="#FF0000">*</font>
                   </td>        
                  </tr>
                </table>
              </div>
            </td>
          </tr>  
          <tr>
            <td colspan="2">
              <div id="divParameterId9" style="{$divParameterDisplay[9]}">
                <table  width="100%" height="100%" bgcolor="#FFFFFF" cellpadding="1" cellspacing="1" > 
                  <tr> 
                   <td width="30%" align="right">{$labelSystemIndexPageParameter9}</td>
                   <td width="70%"> 
                    <input id="kuWebsiteIndexPageTitle9Id" name="kuWebsiteIndexPageTitle9" type="text"  size="15" maxlength="200" value="{$kuWebsiteIndexPageTitle9}"> 
                    <font color="#FF0000">*</font>
                   </td>        
                  </tr>
                </table>
              </div>
            </td>
          </tr>  
          <tr>
            <td colspan="2">
              <div id="divParameterId10" style="{$divParameterDisplay[10]}">
                <table  width="100%" height="100%" bgcolor="#FFFFFF" cellpadding="1" cellspacing="1" > 
                  <tr> 
                   <td width="30%" align="right">{$labelSystemIndexPageParameter10}</td>
                   <td width="70%"> 
                    <input id="kuWebsiteIndexPageTitle10Id" name="kuWebsiteIndexPageTitle10" type="text"  size="15" maxlength="200" value="{$kuWebsiteIndexPageTitle10}"> 
                    <font color="#FF0000">*</font>
                   </td>        
                  </tr>
                </table>
              </div>
            </td>
          </tr>  
          <tr> 
            <td height="30" colspan="2" align="center" > 
              <input class="button" type="submit" name="Submit" value="{$labelCommonSubmit}" onclick="return checkIndexPage()">&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;
?>
-->