<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. ed.
require_once template('head');
echo <<<EOT
-->
<title>{$lang_editinfo}</title>
</head>
<body>
<form  method="POST" name="myform" onSubmit="return Checkimg();" action="save.php?action=$action" target="_self">
		<input name="class1" type="hidden" value="$class1">
		<input name="id" type="hidden" value="$id">
		<input name="lang" type="hidden"   value="$lang">
		<input name="filenameold" type="hidden"  value="$img_list[filename]">
		<input name="updatetimeold" type="hidden"  value="$img_list[updatetime]">
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="table_list1">
          <tr> 
            <td colspan="3" align="center" class="list1_title">{$lang_editinfo}</td>
          </tr>		  
		  <tr> 
            <td class="list1_text"><font color="#FF0000">*</font><b>{$lang_columnname}</b></td>
            <td colspan="2" class="list1_input">
<!--
EOT;
if(count($met_class22[$class1])){
echo <<<EOT
-->	
<select name="class2" onChange="changelocation(document.myform.class2.options[document.myform.class2.selectedIndex].value)" size="1">
<option value=0 $class2[0]>{$lang_modClass2}</option>
<!--
EOT;
foreach($met_class22[$class1] as $key=>$val2){
$k=$val2[id];
echo <<<EOT
-->			
<option  value="$val2[id]" $class2[$k]>$val2[name]</option>
<!--
EOT;
}
echo <<<EOT
-->
              </select>
			<select name="class3" onChange="changelocation2(document.myform.class3.options[document.myform.class3.selectedIndex].value)"> 
			<option value=0 $class3[0]>{$lang_modClass3}</option>
<!--
EOT;
foreach($met_class3[$img_list[class2]] as $key=>$val3){
$k=$val3[id];
echo <<<EOT
-->			
<option  value="$val3[id]" $class3[$k]>$val3[name]</option>
<!--
EOT;
}
echo <<<EOT
-->			
             </select>
<!--
EOT;
}else{
echo <<<EOT
-->		 
		 <font color="#FF0000">{$met_class[$class1][name]}</font>
<!--
EOT;
}
echo <<<EOT
-->
		 </td>
          </tr>
<!--
EOT;
if($met_member_use){
echo <<<EOT
-->		  

		  <tr> 
            <td class="list1_text"><b>{$lang_webaccess}</b></td>
            <td class="list1_input" colspan="2" ><select name="access" id="access" >
             $level
            </select></td>
          </tr>
<!--
EOT;
}
echo <<<EOT
-->	
		  <tr> 
            <td class="list1_text"><b>{$lang_top}</b></td>
            <td colspan="2" class="list1_input"><input name="top_ok" type="checkbox" value="1" $top_ok>{$lang_modtopinfo}</td>
          </tr>  
		  <tr> 
            <td class="list1_text"><b>{$lang_modimgurl}</b><br><font color='red' $styletip>{$lang_modimgauto}</span></td>
            <td colspan="2" class="list1_input"> <input name="imgurl" type="text" class="input" size="30"  value="$img_list[imgurl]"> 
			<iframe style="padding-top:0px;"ID="UploadFiles" src="../include/upload_photo.php?returnid=big&create_samll=$met_autothumb_ok&lang=$lang" frameborder=0 scrolling=no width="320" height="25"></iframe></td>
          </tr> 
		  <tr> 
            <td class="list1_text"><b>{$lang_modimgurls}</b></td>
            <td colspan="2" class="list1_input"> <input name="imgurls" type="text" class="input" size="30"  value="$img_list[imgurls]"><iframe style="padding-top:0px;"ID="UploadFiles" src="../include/upload_photo.php?returnid=small&lang=$lang" frameborder=0 scrolling=no width="320" height="25"></iframe></td>
          </tr>
<!--
EOT;
if($metadmin[imgnew]){
echo <<<EOT
-->
		  <tr> 
            <td class="list1_text"><b>{$lang_new}</b></td>
            <td colspan="2" class="list1_input"><input name="new_ok" type="checkbox" value="1"  $new_ok>{$lang_modcontentnew}</td>
          </tr> 
<!--
EOT;
}
if($metadmin[imgcom]){
echo <<<EOT
-->	
		 <tr> 
            <td class="list1_text"><b>{$lang_recom}</b></td>
            <td colspan="2" class="list1_input"><input name="com_ok" type="checkbox" value="1" $com_ok>{$lang_modcontentcom}</td>
          </tr> 
<!--
EOT;
}
echo <<<EOT
-->	
		  <tr> 
            <td class="list1_text"><b>{$lang_modpublish}</b></td>
            <td colspan="2" class="list1_input"><input name="issue" type="text" class="input" size="10"  value="$img_list[issue]"></td>
          </tr>
		  <tr> 
            <td class="list1_text"><b>{$lang_hits}</b></td>
            <td colspan="2" class="list1_input"><input name="hits" type="text" class="input" size="10"  value="$img_list[hits]"> {$lang_modhits}</td>
          </tr>
		  <tr> 
            <td class="list1_text"><b>{$lang_addtime}</b></td>
            <td colspan="2" class="list1_input"><input name="addtime" type="text" class="input" size="20"  value="$img_list[addtime]">{$lang_modtimenow}$m_now_date {$lang_modtimenow1}</td>
          </tr>
		  <tr> 
            <td class="list1_text"><b>{$lang_updatetime}</b></td>
            <td colspan="2" class="list1_input"><input name="updatetime" type="text" class="input" size="20"  value="$m_now_date">{$lang_modtimenow}$m_now_date {$lang_modtimenow1}</td>
          </tr>
		   <tr> 
            <td class="list1_text"><b>{$lang_hits}</b></td>
            <td colspan="2" class="list1_input">{$lang_modorderinfo}</td>
          </tr>
		  <tr> 
				<td colspan="3" align="center" class="list1_title"><b>{$lang_content}</b></td>
		  </tr>
		  <tr> 
            <td class="list1_text"><font color="#FF0000">*</font><b>{$lang_title}</b></td>
            <td colspan="2" class="list1_input"> <input name="title" type="text" class="input" size="50"  value="$img_list[title]"></td>
          </tr>
<!--
EOT;
		 
foreach($para_list as $key=>$val){
if($val[wr_ok])$wrok="<font color='#FF0000'>*</font>";
$para="para".$val[id];
switch($val[type]){
case 1:
echo <<<EOT
-->
         <tr> 
            <td class="list1_text">$wrok<b>$val[name]</b></td>
			 <td colspan="2" class="list1_input"><input name="para$val[id]" type="text" class="input" size="50" value="$img_list[$para]"></td>
        </tr>
<!--
EOT;
break;
case 2:
$tmp="<select name='para$val[id]'>";
$tmp=$tmp."<option value=''>$lang_modnull</option>";
foreach($paravalue[$val[id]] as $key=>$val1){
$selected='';
if($img_list[$para]==$val1['info']) $selected="selected=selected";
$tmp=$tmp."<option value='$val1[info]' $selected >$val1[info]</option>";
}
$tmp=$tmp."</select>";
echo <<<EOT
-->
         <tr> 
            <td class="list1_text">$wrok<b>$val[name]</b></td>
            <td colspan="2" class="list1_input">$tmp</td>
          </tr>
<!--
EOT;
break;
case 3:
echo <<<EOT
-->
         <tr> 
            <td class="list1_text">$wrok<b>$val[name]</b></td>
            <td colspan="2" class="list1_input"><textarea name="para$val[id]" cols="60" rows="5">$img_list[$para]</textarea></td>
          </tr>
<!--
EOT;
break;
case 4:
$tmp1="";
$i=0;
$nowinfo="-".$img_list["$para"]."-";
foreach($paravalue[$val[id]] as $key=>$val1){
$checked='';
$i++;
if(strstr($nowinfo, "-".$val1[info]."-")) $checked="checked='checked'";
$tmp1=$tmp1."<input name='para$val[id]_$i' type='checkbox' value='$val1[info]' $checked>$val1[info]  ";
}
echo <<<EOT
-->
         <tr> 
            <td class="list1_text">$wrok<b>$val[name]</b></td>
            <td colspan="2" class="list1_input">$tmp1</td>
          </tr>

<!--
EOT;
break;
case 5:
$paraname=$para."name";
echo <<<EOT
-->
         <tr> 
            <td class="list1_text">$wrok<b>$val[name]</b></td>
            <td colspan="2" class="list1_input">
			<input name="para{$val[id]}name" type="text" class="input" size="30"  value="$img_list[$paraname]">{$lang_imagename} <br>
			<input name="para$val[id]" type="text" class="input" size="30"  value="$img_list[$para]">
			<iframe style="padding-top:0px;"ID="UploadFiles" src="../include/upload_photo.php?returnid=para$val[id]&flash=flash&met_arrayimg=1&lang=$lang" frameborder=0 scrolling=no width="340" height="25"></iframe>
			
			</td>
          </tr>
<!--
EOT;
break;
case 6:
$tmp2="";
$i=0;
foreach($paravalue[$val[id]] as $key=>$val2){
$checked='';
$i++;
if($action=="add" && $i==1)$checked="checked='checked'";
if($img_list["$para"]==$val2['info']) $checked="checked='checked'";
$tmp2=$tmp2."<input name='para$val[id]' type='radio' value='$val2[info]' $checked>$val2[info]  ";
}
echo <<<EOT
-->
         <tr> 
            <td class="list1_text">$wrok<b>$val[name]</b></td>
            <td colspan="2" class="list1_input">$tmp2</td>
          </tr>
<!--
EOT;
break;
}
$wrok="";
}
echo <<<EOT
-->
<!--
EOT;
if($metadmin[pagename]){
echo <<<EOT
-->	
		  <tr> 
            <td class="list1_text"><b>{$lang_columnhtmlname}</b></td>
            <td colspan="2" class="list1_input"><input name="filename" type="text" class="input" size="40"  value="$img_list[filename]">{$lang_contenthtml}</td>
          </tr>
<!--
EOT;
}
echo <<<EOT
-->	
		  <tr> 
            <td class="list1_text"><b>{$lang_keywords}</b></td>
            <td colspan="2" class="list1_input"><input name="keywords" type="text" class="input" size="40"  value="$img_list[keywords]">{$lang_descriptioninfo},{$lang_keywordsinfo}</td>
          </tr>
		  <tr> 
            <td class="list1_text"><b>{$lang_description}</b><br>{$lang_descriptioninfo}
			</td>
            <td class="list1_input" colspan="2"><textarea name="description" cols="60" rows="5" >$img_list[description]</textarea></td>
			</tr> 
			 <tr> 
            <td class="list1_text"><b>
<!--
EOT;
if($metadmin[imgother]){
echo <<<EOT
-->			
			<input name="contentinfo" type="text" class="input" size="20"  value="{$img_list[contentinfo]}">
<!--
EOT;
}else{
echo <<<EOT
-->			
        {$lang_contentdetail}
<!--
EOT;
}
echo <<<EOT
-->	
			</b></td>
            <td class="list1_input" colspan="2">
<!--
EOT;
echo "-->";
$oFCKeditor = new FCKeditor('content'); 
$oFCKeditor->BasePath = '../../fckeditor/';
$oFCKeditor->Config['AutoDetectLanguage']	= false ;
$oFCKeditor->Config['DefaultLanguage']		= $langusenow ;
$oFCKeditor->Value = $img_list[content];
$oFCKeditor->Width = '100%';   
$oFCKeditor->Height = '300';
$oFCKeditor->Create();
echo <<<EOT
</td></tr>
<!--
EOT;
if($metadmin[imgother]){
for($i=1;$i<=$metadmin[imgother];$i++){
$othertitle='contentinfo'.$i;
$othermark='content'.$i;
echo <<<EOT
-->	   
			 <tr> 
            <td class="list1_text"><b><input name="{$othertitle}" type="text" class="input" size="20"  value="{$img_list[$othertitle]}"></b></td>
            <td class="list1_input" colspan="2">
<!--
EOT;
echo "-->";
$oFCKeditor = new FCKeditor($othermark); 
$oFCKeditor->BasePath = '../../fckeditor/';
$oFCKeditor->Config['AutoDetectLanguage']	= false ;
$oFCKeditor->Config['DefaultLanguage']		= $langusenow ;
$oFCKeditor->Value = $img_list[$othermark];
$oFCKeditor->Width = '100%';   
$oFCKeditor->Height = '300';
$oFCKeditor->Create();
echo <<<EOT
</td></tr>
<!--
EOT;
}}
echo <<<EOT
-->		   

		  <tr> 
            <td class="list1_text"></td>
	      <td class="list1_submit"><input type="submit" name="Submit" value="{$lang_Submit}" class="tj" style="*padding-top:2px; *height:22px;"><input type="reset" name="Submit" value="{$lang_Reset}" class="tj" style="*padding-top:2px; *height:22px;"> </td>
          </tr>
        </form>
		<tr>
		  <td class="list1_footer" colspan="2" align="center">$foot</td>
	  </tr>
</table>
</body>
</html>
<!--
EOT;
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>-->