<!--
<?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}menu.js"></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;{$labelSystemMenuModifyNavigation}</span></td>
      <td width="40%" align="right"><a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=menu&menu=menu">{$labelSystemMenuBackNavigationManage}</a>&nbsp;&nbsp;</td>
    </tr>
  </table>

<form name='formSort' enctype="multipart/form-data" action="index.php?lang={$kuWebsiteEditVersionLanguage}&path=menu&menu=menu_action&action=modify" method="post">
<!--
EOT;
if(empty($selectModelName))
{
echo <<<EOT
-->
<input type="text" name="kuWebsitModel" style="display:none" value="{$module}" />
<!--
EOT;
}
echo <<<EOT
-->
<input type="text" name="menuid" value="{$menuid}" style="display:none" />
<input type="radio" name="kuMenuLang" value="cn" {$kuWebsiteEditVersionLanguageFlag[cn]} style="display:none" />
<input type="radio" name="kuMenuLang" value="en" {$kuWebsiteEditVersionLanguageFlag[en]} style="display:none" />
<table width="100%" bgcolor="#FFFFFF" class="tableList" cellpadding="1" cellspacing="1" >
  <tr>
    <td width="30%" align="right">{$labelSystemMenuFatherNavigationName}</td>
    <td width="70%" align="left"><input type="text" name="kuMenuFather" value="{$strFatherName}" size="40" readonly="readonly" disabled="disabled"/></td>
  </tr>
  <tr>
    <td align="right">{$labelSystemMenuAddNavigationName}</td>
    <td align="left"><input type="text" name="kuMenuContent" value="{$row['menutitle']}" size="40" /> <span style="color:#FF0000">*</span></td>
  </tr>
  <tr>
    <td align="right">{$labelSystemMenuAddNavigationDirName}</td>
    <td align="left"><input type="text" name="kuMenuDirName" value="{$row['menuhtmlname']}" size="40" {$menuDirDisable} />
    &nbsp;{$labelSystemMenuAddNavigationDirNameDesc}</td>
  </tr>
  <tr>
    <td align="right">{$labelSystemMenuAddNavigationSort}</td>
    <td align="left"><input type="text" name="kuMenuSortNum" value="{$row['sortnum']}" size="10" />{$labelSystemMenuAddNavigationSortDesc}</td>
  </tr>
  <tr>
    <td align="right">{$labelSystemMenuAddMainNavigationDisplay}</td>
    <td align="left">
      <input type="radio" name="kuWebsitNavShow" value="1" {$arrNavShow[1]}/>{$labelSystemMenuNavigationNotDisplay}
      <input type="radio" name="kuWebsitNavShow" value="2" {$arrNavShow[2]}/>{$labelSystemMenuMainNavigationDisplay}
      <input type="radio" name="kuWebsitNavShow" value="3" {$arrNavShow[3]}/>{$labelSystemMenuFooterNavigationDisplay}
      <input type="radio" name="kuWebsitNavShow" value="4" {$arrNavShow[4]}/>{$labelSystemMenuNavigationAllDisplay}  
    </td>
  </tr>
  <tr>
    <td align="right">{$labelSystemMenuAddNewWindowOpen}</td>
    <td align="left"><input type="checkbox" name="kuWebsitBlankWindow" value="1" size="40" {$strBlankWindow}/>{$labelSystemMenuAddNewWindowOpenDesc}</td>
  </tr>
  <tr>
    <td align="right">{$labelSystemMenuAddNavigationAttribute}</td>
    <td align="left">
      <input name="kuWebsitModelType" type="radio" value="1" onclick="displayDiv('systemModel','outLink')" {$arrType[1]}>{$labelSystemMenuInsideNavigation} &nbsp;
      <input name="kuWebsitModelType" type="radio" value="2" onclick="displayDiv('outLink','systemModel')" {$arrType[2]}>{$labelSystemMenuOutsideLink}
    </td>
  </tr>
  <tr>
    <td colspan="2" align="right">
      <div id="systemModel" style=" width:100%; padding:1px 1px; display:block">
        <table width="100%" height="100%" bgcolor="#FFFFFF" cellpadding="1" cellspacing="1"> 
         <tr> 
              <td width="30%" align="right">{$labelSystemMenuAddNavigationBelongModel}</td>
              <td width="70%" align="left">
                <select {$selectModelName} {$moduleDisable}>
                  <option value="1" {$arrModule[1]}>{$labelSystemMenuBindAboutsModel}</option>
                  <option value="2" {$arrModule[2]}>{$labelSystemMenuBindNewsModel}</option>
                  <option value="3" {$arrModule[3]}>{$labelSystemMenuBindProductModel}</option>
                  <option value="4" {$arrModule[4]}>{$labelSystemMenuBindImgModel}</option>
                  <option value="5" {$arrModule[5]}>{$labelSystemMenuBindDownloadModel}</option>
                  <option value="6" {$arrModule[6]}>{$labelSystemMenuBindJobModel}</option>
                  <option value="7" {$arrModule[7]}>{$labelSystemMenuBindMessageModel}</option>
                  <option value="8" {$arrModule[8]}>{$labelSystemMenuBindFaqModel}</option>
                </select>&nbsp<font color="#FF0000">*</font>
              </td>
            </tr> 
             <tr> 
              <td align="right" height="25"><b>{$labelSystemMenuAddSEOSetting}</b></td>
              <td>&nbsp;</td>
            </tr>
            <tr> 
              <td align="right">{$labelSystemMenuAddKeyWord}</td>
              <td><input name="kuWebsitKeyWords" type="text" value="{$row['menukeywords']}"  size="40" maxlength="200">&nbsp;{$labelSystemMenuAddKeyWordDesc}</td>
            </tr>
             <tr> 
              <td align="right">{$labelSystemMenuAddSimpleDesc}</td>
              <td><textarea name="kuWebsitDescription" cols="50" rows="4">{$row['menudesc']}</textarea></td>
            </tr>
        </table> 
      </div>
      <div id="outLink" style="width:100%; display:none;">
        <table  width="100%" bgcolor="#FFFFFF"  cellpadding="1" cellspacing="1">
          <tr> 
            <td width="30%" align="right">{$labelSystemMenuAddLinkAddress}</td>
            <td width="70%"> <input name="kuWebsitOutLink" type="text"  size="40" value="{$row['otherurl']}" maxlength="200">&nbsp<font color="#FF0000">*</font>{$labelSystemMenuAddLinkAddressDesc}</td>
          </tr> 
        </table> 
      </div>
EOT;
if(2 == $row['menutype'])
{
  echo "<script>document.getElementById('outLink').style.display='block';document.getElementById('systemModel').style.display='none';</script>";
}
echo <<<EOT
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center" valign="middle">
      <input type="submit" value="{$labelCommonEdit}" class="button" onclick="return checkMenu()"/>
      <input type="reset" value="{$labelCommonReset}" class="button" />
    </td>
  </tr>
</table>
</form>

  <table width="100%" bgcolor="#F4FAFB">
    <tr height="40" style="padding:3px 10px;">
      <td align="center" valign="middle">
        <font style="color:#9DACAF">
EOT;
include_once($adminTemplatePath.'/footer.html');
echo <<<EOT
        </font>
      </td>
    </tr>
  </table>

</td>
<td width="1%">
</td>
</tr>
<tr><td colspan="3" height="10">&nbsp;</td></tr>
</table>


</body>
</html>

<!--
EOT;
?>
-->