<!--
<?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 ShowThirdMenuNav(x)
{
   var URL = "index.php?lang={$kuWebsiteEditVersionLanguage}&path=include&menu=ajax&value=" + x;     
   //alert(URL);
   Request.open("GET",URL,true);
    
   Request.onreadystatechange = ShowThirdMenuNavDiv;
  
   Request.send(null);
}

function ShowThirdMenuNavDiv()
{
   if(Request.readyState == 4 && Request.status == 200) 
   {  
      document.getElementById("thirdMenuNavDiv").style.display = 'block'; 
      document.getElementById('thirdMenuNavDiv').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;{$labelImgEditImg}</span></td>
            <td width="40%" align="right"><a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=img&menu=img_action&menuid={$menuid}">{$labelImgBackBrowseImg}</a></td>
          </tr>
        </table>
        <form name='myform' enctype="multipart/form-data" action="index.php?lang={$kuWebsiteEditVersionLanguage}&path=img&menu=img_action&action=modify" method="post">
        <input type="text" name="menuid" value="{$menuid}" style="display:none" />
        <input type="text" value="{$id}" name="id" style="display:none" />
        <input type="radio" name="lang" value="cn" {$langFlagArr['cn']} style="display:none;" />
        <input type="radio" name="lang" value="en" {$langFlagArr['en']} style="display:none;" />
         <table width="100%" bgcolor="#F4FAFB" class="tableList" cellpadding="1" cellspacing="1">
          <tr id="imgurl"> 
            <td align="right" height="20">{$labelModelCommonUploadAddress}</td>
            <td height="20"> 
              <input name="imgurl" type="text"  size="45" maxlength="200" readonly="readonly" value="{$imgRow['imgurl']}"><font color="#FF0000">*</font> 
              <iframe style=" padding:0; margin:0;" src="include/uploadphoto.php?returnid=big&createsamll=1&phototype=img" frameborder=0 scrolling=no width="350" height="25"></iframe>
            </td>
          </tr> 
          <tr id="imgurls" height="20"> 
            <td align="right">{$labelModelCommonThumbPictureAddress}</td>
            <td> 
              <input name="imgurlpre" type="text"  size="45" maxlength="200" readonly="readonly" value="{$imgRow['imgurlpre']}">
              <iframe style="padding:0; margin:0;" src="include/uploadphoto.php?returnid=small" frameborder=0 scrolling=no width="350" height="25" ></iframe>
           <font color="#FF0000">*</font>&nbsp;&nbsp;<a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=system&menu=img">{$labelSystemImgUploadThumbManagement}</a></td>
          </tr>
          <tr id="imgurls" height="20"> 
            <td align="right">{$labelImgPreview}</td>
            <td>
              <img name="imgurlprebrowse" src="{$imgRow['imgurlpre']}" border="0" style="margin:10px 10px;"/>
            </td>
          </tr>
          <tr> 
            <td width="10%" align="right">{$labelImgTitle}</td>
            <td width="90%"> <input name="imgtitle" type="text" size="50" maxlength="200" value="{$imgRow['imgtitle']}">&nbsp;<font color="#FF0000">*</font>{$labelModelCommonTitleDesc}</td>
          </tr> 
          <tr> 
            <td align="right">{$labelModelCommonBelongToNavigation}</td>
            <td>
              <div id="secondMenuNavDiv" style="float:left;">
                <select name="secondMenuNav" onchange="ShowThirdMenuNav(this.value)">
                  <option value=0>{$labelModelCommonBelongToSecondNavigation}</option>  
<!--              
EOT;
foreach($secondMenuNav as $key=>$secondNavValue)
{
$selectedFlag = '';
if($type2 == $secondNavValue['id']){$selectedFlag = "selected='selected'";}
echo <<<EOT
-->
<option value="{$secondNavValue['id']}" {$selectedFlag}>{$secondNavValue['menutitle']}</option>
<!--
EOT;
}
echo <<<EOT
-->
             </select>
              </div>
              <div id="thirdMenuNavDiv" style="float:left; display:block; width:200px;">
                <select name="thirdMenuNav">
                  <option value=0>{$labelModelCommonBelongToThirdNavigation}</option>  
<!--              
EOT;
foreach($thirdMenuNav as $key=>$thirdNavValue)
{
$selectedFlag = '';
if($type3 == $thirdNavValue['id']){$selectedFlag = "selected='selected'";}
echo <<<EOT
-->
<option value="{$thirdNavValue['id']}" {$selectedFlag}>{$thirdNavValue['menutitle']}</option>
<!--
EOT;
}
echo <<<EOT
-->                </select>
              </div>
             </td>
          </tr>
<!--
EOT;
foreach($arrPara as $key => $paraValue)
{
$endNum = substr($paraValue["id"], strlen($paraValue["id"])-1, strlen($paraValue["id"])) + 1;
echo <<<EOT
-->
<tr> 
<td align="right">{$paraValue['paraname']}：</td>
<td><input name="para{$paraValue['id']}" type="text"  size="50" maxlength="200" value='{$imgRow["para$endNum"]}'></td>
</tr>
<!--
EOT;
}
echo <<<EOT
-->       
           <tr> 
            <td align="right">{$labelModelCommonContentKeyWords}</td>
            <td><input name="imgkeywords" type="text" size="50" maxlength="200" value="{$imgRow['imgkeywords']}">{$labelModelCommonContentKeyWordsDesc}</td>
          </tr>
          <tr> 
            <td>{$labelModelCommonContentShortDesc}</td>
            <td><textarea name="imgdesc" cols="60" rows="5">{$imgRow['imgdesc']}</textarea></td>
          </tr> 
          <tr> 
            <td align="right">{$labelImgCommendImg}</td>
            <td><input name="isrecommend" type="checkbox" value="1" {$isRecommendFlag}>{$labelImgCommendImgDesc}</td>
          </tr> 
          <tr> 
            <td align="right">{$labelModelCommonState}</td>
            <td>
              <input name="status" type="radio" value="1" {$statusFlagArr[1]}>{$labelModelCommonStateRelease}
              <input name="status" type="radio" value="2" {$statusFlagArr[2]}>{$labelModelCommonStateDraft}
            </td>
          </tr>
          <tr> 
            <td align="right">{$labelModelCommonDisplay}</td>
            <td>
              <input type="checkbox" name="showindex" value="1" {$showSettingFlagArr['showindex']}/>{$labelModelCommonShowIndex}&nbsp;&nbsp;&nbsp;&nbsp;
              <input type="checkbox" name="showsub" value="1"  {$showSettingFlagArr['showsub']}/>{$labelModelCommonShowSubPage}
            </td>
          </tr>
          <tr> 
            <td align="right">{$labelModelCommonClickNum}</td>
            <td><input name="clicknum" type="text"  size="10" maxlength="200" value="{$imgRow['clicknum']}"> <font color="#FF0000">*</font>{$labelModelCommonClickNumDesc}</td>
          </tr>
          <tr> 
            <td align="right">{$labelModelCommonReleaseTime}</td>
            <td><input name="addtime" type="text"  size="20" maxlength="200" value="{$imgRow['addtime']}"> <font color="#FF0000">*</font>{$labelModelCommonDateFormatDesc}{$nowTime}</td>
          </tr>
          <tr> 
            <td align="right">{$labelModelCommonUpdateTime}</td>
            <td><input name="updatetime" type="text"  size="20" maxlength="200" value="{$nowTime}"> <font color="#FF0000">*</font>{$labelModelCommonDateFormatDesc}{$nowTime}</td>
          </tr>
          <tr>
            <td align="right">{$labelCommonPageBanner}</td>
            <td align="left">
              <input type="text" name="banner" value="{$imgRow['banner']}" size="40" readonly="readonly" />
              &nbsp;<iframe style=" padding:0; margin:0;" src="include/uploadfile.php?uploadtype=flash&returnid=banner" frameborder=0 scrolling=no width="350" height="25"></iframe>&nbsp;&nbsp;{$labelCommonPageBannerDesc}
            </td>
          </tr>
          <tr>
            <td align="right">{$labelSystemSkinPageTemplates} </td>
            <td align="left">
            <select name="skin">
<!--
EOT;
foreach($skinList as $key=>$value)
{
$select = '';
if('' == $imgRow['skin'])$imgRow['skin'] = $kuWebsiteTemplateSelected;
if($imgRow['skin'] == $value['skinfolder'])
{
  $select = 'selected';
} 
echo <<<EOT
-->
     <option value="{$value['skinfolder']}" {$select}>{$value['skinname']}</option>
<!--
EOT;
}
echo <<<EOT
-->
    </select>
    &nbsp;&nbsp;{$labelSystemSkinPageTemplatesDescription}&nbsp;&nbsp;<a href="index.php?lang={$kuWebsiteEditVersionLanguage}&path=system&menu=skin_add">{$labelSystemSkinManageOperateAdd}</a></td>
          </tr>
          <tr>
            <td align="right">{$labelAboutSortNum}</td>
            <td align="left"><input type="text" name="sortnum" value="{$imgRow['sortnum']}" size="10" /> 
            &nbsp;&nbsp;{$labelAboutSortNumDesc}</td>
          </tr>
          <tr> 
            <td  align="right">{$labelModelCommonDetailedContent}</td>
            <td>
              <textarea class="ckeditor" cols="80" id="imgcontent" name="imgcontent" rows="10">{$imgRow['imgcontent']}</textarea><font color="#FF0000">*</font>&nbsp;&nbsp;
<script type="text/javascript">
CKEDITOR.replace( 'imgcontent',
{
filebrowserBrowseUrl : 'ckeditor/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'ckeditor/ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : 'ckeditor/ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : 'ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
</script>
            </td>
          </tr>           
          <tr> 
            <td align="right">{$labelModelCommonSortPrinciple}</td>
            <td>{$labelImgSortPrincipleDesc}</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;
?>
-->