<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
require_once template('head');
$colspan=8;
if(!$met_member_use)$colspan=$colspan-1;
$colspanj=$colspan-1;
echo <<<EOT
-->
</head>
<body>
<!--
EOT;
if($module==6){
$title="<a href='../../content/job/index.php?anyid={$anyid}&lang={$lang}&class1={$class1}'>{$met_class[$class1][name]}</a>";
}
if($module==8){
$title="<a href='../../content/feedback/index.php?anyid={$anyid}&lang={$lang}&class1={$class1}'>{$met_class[$class1][name]}</a>";
}
if($module==3){
$title=$class1?"<a href='../../content/product/index.php?anyid={$anyid}&lang={$lang}&class1={$class1}'>{$met_class[$class1][name]}</a>":"<a href='../../content/product/index.php?anyid={$anyid}&lang={$lang}'>{$lang_modulemanagement3}</a>";
}
if($module==4){
$title=$class1?"<a href='../../content/download/index.php?anyid={$anyid}&lang={$lang}&class1={$class1}'>{$met_class[$class1][name]}</a>":"<a href='../../content/download/index.php?anyid={$anyid}&lang={$lang}'>{$lang_modulemanagement4}</a>";
}
if($module==5){
$title=$class1?"<a href='../../content/img/index.php?anyid={$anyid}&lang={$lang}&class1={$class1}'>{$met_class[$class1][name]}</a>":"<a href='../../content/img/index.php?anyid={$anyid}&lang={$lang}'>{$lang_modulemanagement4}</a>";
}
if($module==10){
$title="{$lang_memberInformation}";
}
$class1=$class1?$class1:($id?$id:0);
$title=title($class1,$anyid,$lang)?title($class1,$anyid,$lang):$title;
require_once template('metlangs');
echo <<<EOT
-->
<!--
EOT;
if($module==3){
$listclass='';
$listclass[2]='class="now"';
require_once template('content/product/top');
}
if($module==4){
$listclass='';
$listclass[2]='class="now"';
require_once template('content/download/top');
}
if($module==5){
$listclass='';
$listclass[2]='class="now"';
require_once template('content/img/top');
}
if($module==10){
$listclass='';
$listclass[3]='class="now"';
require_once template('member/top');
}
echo <<<EOT
-->
<!--
EOT;
if($module==6){
$listclass='';
$listclass[3]='class="now"';
require_once template('content/job/top');
}
echo <<<EOT
-->
<!--
EOT;
if($module==7){
$listclass[2]='class="now"';
require_once template('content/message/top');
}
if($module==8){
$listclass[2]='class="now"';
require_once template('content/feedback/top');
}
echo <<<EOT
-->
<div class="v52fmbx_tbmax">
<div class="v52fmbx_tbbox">
<table cellpadding="0" cellspacing="0" class="table">
<!--
EOT;
if($module!=6 && $module!=8 && $module!=10 && $module!=7){
echo <<<EOT
-->
		<tr>
			<td colspan="2" class="centle" style="font-weight:normal; color:#999;">
				&nbsp;&nbsp;{$lang_columnexplain3}
			</td>
		</tr>
<!--
EOT;
}
echo <<<EOT
-->
<!--
EOT;
if($module==10||$module==7){
echo <<<EOT
-->
		<!--<tr>
			<td colspan="2" class="centle" style="font-weight:normal; color:#999;height:0px !important">
				&nbsp;{$lang_noorderinfo}
			</td>
		</tr>-->
<!--
EOT;
}
/*$lang_Name=$db->get_one("SELECT * FROM $met_language WHERE name='paraname' and lang='$lang'");*/
echo <<<EOT
-->
		<tr>
		<td colspan="2" style="padding:0px!important;border:0px">
			<form method="POST" name="myform" action="parameter.php?anyid={$anyid}&lang={$lang}&class1={$class1}&module={$module}&cs={$cs}" target="_self">
			<table cellpadding="0" cellspacing="1" class="table neitable">
				<tr id="list-top"> 
			<td class="list" width="30">{$lang_selected}</td>
            <td width="30" class="list">{$lang_sort}</td>
            <td class="list">{$lang_paraname}</td>
<!--
EOT;
if($module==6||$module==8||$module==10||$module==7){
echo <<<EOT
-->
			<td class="list">{$lang_description}</td>		
<!--
EOT;
}
if($module<6){
echo <<<EOT
-->
			<td class="list v52fmbx_skined">
			<select name="category" onchange='javascript:window.location.href=this.options[this.selectedIndex].value'>
			<option value="parameter.php?anyid={$anyid}&lang=$lang&module=$module&cs={$cs}" selected="selected">{$lang_category}</option>
<!--
EOT;
foreach($met_classindex[$module] as $key=>$val1){
	if($class1==$val1[id])$gclass1="selected='selected'";
echo <<<EOT
-->
			  <option value="parameter.php?anyid={$anyid}&lang=$lang&module=$module&class1=$val1[id]&&class2=0&&class3=0&cs={$cs}" $gclass1 class='c1'>=={$val1[name]}==</option>
<!--
EOT;
	foreach($met_class2[$val1['id']] as $key=>$val2){
		if($class2==$val2[id])$gclass2="selected='selected'";
echo <<<EOT
-->
			  <option value="parameter.php?anyid={$anyid}&lang=$lang&module=$module&class1=$val1[id]&&class2=$val2[id]&&class3=0&cs={$cs}" $gclass2 class='c2'>{$val2[name]}</option>
<!--
EOT;
		foreach($met_class3[$val2['id']] as $key=>$val3){
			if($class3==$val3[id])$gclass3="selected='selected'";
echo <<<EOT
-->
			  <option value="parameter.php?anyid={$anyid}&lang=$lang&module=$module&class1=$val1[id]&&class2=$val2[id]&&class3=$val3[id]&cs={$cs}" $gclass3 class='c3'>+{$val3[name]}</option>
<!--
EOT;
			$gclass3="";
		}
		$gclass2="";
	}
$gclass1="";
}
echo <<<EOT
-->
            </select>
			</td>
<!--
EOT;
}
if($met_member_use){
echo <<<EOT
-->
			<td width="60" class="list">{$lang_webaccess}</td>
<!--
EOT;
}
/*$lang_parazce=$db->get_one("SELECT * FROM $met_language WHERE name='parazce' and lang='$lang'");*/
echo <<<EOT
-->
			<td width="60" class="list">{$lang_parametertype}</td>
			<td width="60" class="list">{$lang_parameterMust}</td>
<!--
EOT;
if($module==10){  
echo <<<EOT
-->				
			<td width="60" class="list">{$lang_parazce}</td>
<!--
EOT;
} 
echo <<<EOT
-->	
            <td class="list list_left">{$lang_operate}</td>
			
          </tr>
<!--
EOT;
foreach($list as $key=>$val){
$val['name']=str_replace('"', '&#34;', str_replace("'", '&#39;',$val['name']));
echo <<<EOT
-->		   
			<tr class="mouse"> 
              <td class="list-text"><input name='id' type='checkbox' id="id" value='$val[id]' /></td>
			<td class="list-text">
<input name='access_$val[id]' type="hidden" value="$val[access]">
			<input name='no_order_$val[id]' type="text" class="text no_order" value="$val[no_order]"></td>
            <td class="list-text" style="padding-left:15px; text-align:left;"><input name='name_{$val[id]}' type="text" class="text" value="{$val[name]}" ></td>
<!--
EOT;
if($module==6||$module==8||$module==10||$module==7){
$val['description']=str_replace('"', '&#34;', str_replace("'", '&#39;',$val['description']));
echo <<<EOT
-->
			<td class="list-text" style="padding-left:15px; text-align:left;"><input name='description_{$val[id]}' type="text" class="text" value="{$val['description']} "></td>
<!--
EOT;
}
if($module<6){
echo <<<EOT
-->				
			<td class="list-text v52fmbx_skined">
			<select name="class1_$val[id]" >
			<option value="0">{$lang_allcategory}</option>
<!--
EOT;
foreach($met_classindex[$module] as $key=>$val1){
	if($val[class1]==$val1[id]&&!$val[class2]&&!$val[class3])$gclass1="selected='selected'";
echo <<<EOT
-->
			  <option value="$val1[id]|0|0" $gclass1 class='c1'>=={$val1[name]}==</option>
<!--
EOT;
	foreach($met_class2[$val1['id']] as $key=>$val2){
		if($val[class2]==$val2[id]&&!$val[class3])$gclass2="selected='selected'";
echo <<<EOT
-->
			  <option value="$val1[id]|$val2[id]|0" $gclass2 class='c2'>{$val2[name]}</option>
<!--
EOT;
		foreach($met_class3[$val2['id']] as $key=>$val3){
			if($val[class3]==$val3[id])$gclass3="selected='selected'";
echo <<<EOT
-->
			  <option value="$val1[id]|$val2[id]|$val3[id]" $gclass3 class='c3'>+{$val3[name]}</option>
<!--
EOT;
			$gclass3="";
		}
		$gclass2="";
	}  
$gclass1="";
}
echo <<<EOT
-->
            </select></td>
<!--
EOT;
}
if($met_member_use){
echo <<<EOT
-->
			<td class="list-text"><select name="access_$val[id]" id="access" >
              $val[level]
            </select></td>
<!--
EOT;
}
echo <<<EOT
-->
			<td class="list-text"><select name="type_$val[id]" id="access" >
			  <option value="1" $val[type1]>{$lang_parameter1}</option>
              <option value="2" $val[type2]>{$lang_parameter2}</option>
              <option value="3" $val[type3]>{$lang_parameter3}</option>
			  <option value="4" $val[type4]>{$lang_parameter4}</option>
			  <option value="5" $val[type5]>{$lang_parameter5}</option>
			  <option value="6" $val[type6]>{$lang_parameter6}</option>
            </select></td>
            <td class="list-text"><input type="checkbox" name=wr_ok_$val[id] value=1 class="xz" $val[wr_ok]/></td>
<!--
EOT;
if($module==10){  
echo <<<EOT
-->			
			<td class="list-text"><input type="checkbox" name=wr_oks_$val[id] value=1 class="xz" $val[wr_oks]/></td>
<!--
EOT;
} 
echo <<<EOT
-->	
			<td class="list-text list_left">
<!--
EOT;
if($val[type]==2 or $val[type]==4 or $val[type]==6){  
echo <<<EOT
-->
			<a href="list.php?anyid={$anyid}&bigid=$val[id]&lang=$lang&class1={$class1}">{$lang_listTitle}</a>&nbsp;&nbsp;
<!--
EOT;
}
echo <<<EOT
-->
			<a href="parameter.php?anyid={$anyid}&id=$val[id]&action=del&bigid=$val[id]&lang=$lang&type=$val[type]&module=$module&class1=$class1&cs={$cs}" onClick="return linkSmit($(this),1);">{$lang_delete}</a></td>
		  </tr>
<!--
EOT;
}
$colspanj=$colspanj+1;

echo <<<EOT
-->  
		<tr id="bottom-id"> 
			<td class="list-text" style="border-bottom:0px!important;"></td>
			<td class="list-text" colspan="$colspanj" style="text-align:left;border-bottom:0px!important;">&nbsp;&nbsp;<a href="parameter.php?anyid={$anyid}&lang=$lang&action=addsave&module=$module" onclick="return addsave($(this),0);">+{$lang_parameteradd}</a></td>
        </tr>
		</table>
				<input name="action" type="hidden" value="delete" />
				<input name="allid" type="hidden" id="allid" value="" />
			</form>
		</td>
		</tr>
          <tr> 
			<td class="all" width="53"><input name="chkAll" type="checkbox" id="chkAll" onclick="CheckAllx($(this),'myform')" value="checkbox" /></td>
			<td class="all-submit" style="padding:5px 10px;">
				<input name="submit" type='submit' value='{$lang_Submit}' class="submit li-submit" onclick="return met_modify($(this),'myform','editor');" />
				<input name="submit" type='submit' value='{$lang_deleteselected}' class="submit li-submit" onclick="return met_modify($(this),'myform','delete');" />
<!--
EOT;
if($module==10){ 
echo <<<EOT
-->
				<span class="tips">{$lang_parazce_explain}</span>
<!--
EOT;
}
echo <<<EOT
-->
			</td>
          </tr>
    <tr>
		  <td class="footer" colspan="2">$foot</td>
	  </tr>
</table>
</div>
</div>
</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.
?>-->