<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. 
require_once template('head');
$classjs="<script language = 'JavaScript'>\n";
$classjs.="var classcount;\n";
$classjs.="subclass = new Array();\n";
$i=0;
foreach ($met_class1 as $key=>$val){
foreach ($met_class2[$val[id]] as $key=>$val2){
$classjs.="subclass[".$i."] = new Array('".$val2[id]."','".$val2[bigclass]."','".$val[id]."');\n";
	 $i=$i+1;
foreach($met_class3[$val2[id]] as $key=>$val3){
$classjs.="subclass[".$i."] = new Array('".$val3[id]."','".$val3[bigclass]."','".$val[id]."');\n";
	 $i=$i+1;
}
}
}
$classjs.="classcount=".$i.";\n";
$classjs.="</script>";
echo <<<EOT
-->
<title>{$lang_columnTitle}</title>
</head>
$classjs
<body>
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="table_list1">
          <tr> 
            <td colspan="9" align="center" class="list1_title">{$lang_columnTitle}</td>
          </tr>
          <tr>
            <td class="list1_text_title" colspan="6" align="left">&nbsp;&nbsp;<a href="add.php?lang=$lang">{$lang_add}{$lang_modClass1}</a></td>
			<td colspan="3" class="list1_text_title" align="right"><img src="$img_url/1.gif" />&nbsp;{$lang_modClass1}&nbsp;<img src="$img_url/2.gif" />&nbsp;{$lang_modClass2}&nbsp;<img src="$img_url/3.gif" />&nbsp;{$lang_modClass3}</td>
          </tr>
              <tr> 
				<td width="4%" class="list1_lm" align="center">{$lang_selected}</td>
			    <td width="4%" align="center" class="list1_lm">{$lang_sort}</td>
                <td width="22%" align="center" class="list1_lm">{$lang_columnname}[ID]</td>
                <td width="11%" align="center" class="list1_lm">{$lang_columnnav}</td>
                <td width="7%" align="center" class="list1_lm">{$lang_columnmodule}</td>
				<td width="9%" align="center" class="list1_lm">{$lang_columndocument}</td>
				<td width="4%" align="center" class="list1_lm">{$lang_columnmark1}</td>
<!--
EOT;
if($met_member_use){	
echo <<<EOT
-->	
				<td width="7%"  class="list1_lm" align="center" >{$lang_access}</td>
<!--
EOT;
}	
echo <<<EOT
-->					
				<td width="22%" align="center" class="list1_lm">{$lang_operate}</td>
              </tr>
			   <form name="del" method="Post" action="delete.php?lang=$lang" onSubmit="return ConfirmDelall();">
<!--
EOT;
foreach ($met_class1 as $key=>$val){
$val[nav]=navdisplay($val[nav]);
$val[module1]=$val[module];
$val[module]=module($val[module]);
$classnow[id]=count($met_class2[$val[id]]);
$class1class=$classnow[id]?'list1_lm11':'list1_lm111';
if($classnow[id])$nowjs[$val[id]]="onMouseDown='showclass($val[id],1)'";
echo <<<EOT
--> 
              <tr>
				<td align="center" class="list1_lm1"><input name='id' type='checkbox' onClick="unselectall()" id="id" value='$val[id]' class="xz"></td>
			    <td align="center" class="list1_lm1"><font color="#0000ff"><b>$val[no_order]</b></font></td>
                <td class="$class1class" style="text-align:left;" {$nowjs[$val[id]]}>$val[name][<font color="#FE5502">$val[id]</font>]</td>
                <td class="list1_lm1" align="center">$val[nav]</td>
                <td align="center" class="list1_lm1">$val[module]</td>
				<td class="list1_lm1" align="center" >$val[foldername]</td>
				<td class="list1_lm1" align="center"  >$val[index_num]</td>
<!--
EOT;
if($met_member_use){	
echo <<<EOT
-->	
				<td class="list1_lm1" align="center"  >$val[access1]</td>				
<!--
EOT;
}
if($val[module1]==0 or $val[module1]>5){			
echo <<<EOT
-->  						
				<td align="center" class="list1_lm1" style="color:#000000;"><a href="editor.php?lang=$lang&id=$val[id]" >{$lang_editor}</a> | <a href="delete.php?lang=$lang&id=$val[id]" onClick="return ConfirmDel();" >{$lang_delete}</a></td>
              </tr>
<!--
EOT;
}else{			
echo <<<EOT
-->  						
				<td align="center" class="list1_lm1" style="color:#000000;"><span class="list2"><a href="add.php?lang=$lang&class1=$val[id]">{$lang_add}{$lang_modClass2}</a></span>| <a href="editor.php?lang=$lang&id=$val[id]" >{$lang_editor}</a> | <a href="delete.php?lang=$lang&id=$val[id]" onClick="return ConfirmDel();" >{$lang_delete}</a></td>
              </tr>	
<!--
EOT;
}
foreach ($met_class2[$val[id]] as $key=>$val2){
$val2[nav]=navdisplay($val2[nav]);
$val2[module]=module($val2[module]);
$classnow2[id]=count($met_class3[$val2[id]]);
$class2class=$classnow2[id]?'list1_lm22':'list1_lm222';
if($classnow2[id])$nowjs[$val2[id]]="onMouseDown='showclass($val2[id],2)'";
echo <<<EOT
-->
              <tr id="class_$val2[id]" style="display:none;">
				<td height="22" align="center" class="list1_lm2"><input name='id' type='checkbox' onClick="unselectall()" id="id" value='$val2[id]' class="xz"></td>
			    <td align="center" class="list1_lm2">$val2[no_order]</td>
                <td class="$class2class" id="tr$val2[id]" style="text-align:left;" {$nowjs[$val2[id]]} >$val2[name][<font color="#FF6600">$val2[id]</font>]</td>
                <td class="list1_lm2" align="center">$val2[nav]</td>
                <td align="center" class="list1_lm2">$val2[module]</td>
				<td class="list1_lm2" align="center" >$val2[foldername]</td>
				<td class="list1_lm2" align="center"  >$val2[index_num]</td>
<!--
EOT;
if($met_member_use){	
echo <<<EOT
-->	
				<td class="list1_lm2" align="center"  >$val2[access1]</td>	
<!--
EOT;
}
if($val2[releclass]){			
echo <<<EOT
-->	
				<td align="center" class="list1_lm2" style="color:#000000;"><a href="editor.php?lang=$lang&id=$val2[id]" >{$lang_editor}</a>|<a href="delete.php?lang=$lang&id=$val2[id]" onClick="return ConfirmDel();" >{$lang_delete}</a></td>
<!--
EOT;
}else{			
echo <<<EOT
-->			
				<td align="center" class="list1_lm2" style="color:#000000;"><span class="list8"><a href="add.php?lang=$lang&class2=$val2[id]">{$lang_add}{$lang_modClass3}</a></span>|<a href="editor.php?lang=$lang&id=$val2[id]" >{$lang_editor}</a>|<a href="delete.php?lang=$lang&id=$val2[id]" onClick="return ConfirmDel();" >{$lang_delete}</a></td>
<!--
EOT;
}	
echo <<<EOT
-->		
              </tr>
<!--
EOT;
$k=0;
foreach ($met_class3[$val2[id]] as $key=>$val3){
$val3[nav]=navdisplay($val3[nav]);
$val3[module]=module($val3[module]);
echo <<<EOT
-->
              <tr id="class_$val3[id]"  style="display:none;">
				<td height="22" align="center" class="list1_lm3"><input name='id' type='checkbox' onClick="unselectall()" id="id" value='$val3[id]' class="xz"></td>
			  	<td align="center" class="list1_lm3">$val3[no_order]</td>
                <td class="list1_lm33" style="text-align:left;">$val3[name][<font color="#FF6600">$val3[id]</font>]</td>
                <td class="list1_lm3" align="center">$val3[nav]</td>
                <td align="center" class="list1_lm3">$val3[module]</td>
				<td class="list1_lm3" align="center" >$val3[foldername]</td>
				<td class="list1_lm3" align="center"  >$val3[index_num]</td>
<!--
EOT;
if($met_member_use){	
echo <<<EOT
-->	
				<td class="list1_lm3" align="center"  >$val3[access1]</td>	
<!--
EOT;
}	
echo <<<EOT
-->				
				<td align="center" class="list1_lm3" style="color:#000000;"> <a href="editor.php?lang=$lang&id=$val3[id]" >{$lang_editor}</a> | <a href="delete.php?lang=$lang&id=$val3[id]" onClick="return ConfirmDel();" >{$lang_delete}</a></td>
              </tr>
<!--
EOT;
}}}
echo <<<EOT
-->
        
   	   <tr> 
            <td class="input_bottom" align="center">
			<input name="chkAll" class="xz" type="checkbox" id="chkAll" onclick=CheckAll(this.form) value="checkbox"></td>
			<td class="input_bottom" align="left">{$lang_selectall}</td>
			<td colspan="9" class="input_bottom"><input name="submit" type='submit' value='{$lang_deleteselected}' style="*padding-top:2px; *height:22px;"> 
              <input name="action" type="hidden" id="action" value="del">
			  <input name="allid" type="hidden" id="allid" value=""></form></td>
          </tr>
   	   <tr>
   	     <td colspan="9" align="center" bgcolor="#FFCCCC">$page_list</td>
        </tr>
		<tr>
		  <td class="list1_footer" colspan="9" 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..
?>-->