<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. 
require_once template('head');
echo <<<EOT
-->
<script language="javascript">
function displaylang(valid)
{ 
document.getElementById(valid).checked=false;
}
function displaylangok()
{ 
 if(document.myform.langok.checked==true){
<!--
EOT;
foreach($met_langok as $key=>$val){
echo <<<EOT
-->
   document.myform.langok_$val[mark].checked=false;
<!--
EOT;
}
echo <<<EOT
-->
 }else{
<!--
EOT;
foreach($met_langok as $key=>$val){
echo <<<EOT
-->
   document.myform.langok_$val[mark].checked=true;
<!--
EOT;
}
echo <<<EOT
-->
}
}

function displayadminop()
{ 
 if(document.myform.admin_op0.checked==true){
     document.myform.admin_op1.checked=false;
	 document.myform.admin_op2.checked=false;
	 document.myform.admin_op3.checked=false;
 }else{
     document.myform.admin_op1.checked=true;
	 document.myform.admin_op2.checked=true;
	 document.myform.admin_op3.checked=true;
}
}
function displayadminpop()
{ 
 if(document.myform.admin_pop.checked==true){
     document.myform.admin_pop1001.checked=false;
	 document.myform.admin_pop1002.checked=false;
	 document.myform.admin_pop1003.checked=false;
     document.myform.admin_pop1004.checked=false;
	 document.myform.admin_pop1005.checked=false;
	 document.myform.admin_pop1006.checked=false;
	 document.myform.admin_pop1007.checked=false;
	 document.myform.admin_pop1101.checked=false;
	 document.myform.admin_pop1102.checked=false;
	 document.myform.admin_pop1103.checked=false;
     document.myform.admin_pop1104.checked=false;
	 document.myform.admin_pop1105.checked=false;
	 document.myform.admin_pop1201.checked=false;
	 document.myform.admin_pop1202.checked=false;
	 document.myform.admin_pop1203.checked=false;
     document.myform.admin_pop1204.checked=false;
	 document.myform.admin_pop1205.checked=false;
	 document.myform.admin_pop1301.checked=false;

<!--
EOT;
foreach($met_classindex as $key=>$val){
 foreach($val as $key=>$val1){
  if($val1[module]<7){
echo <<<EOT
-->
   document.myform.admin_pop$val1[id].checked=false;
<!--
EOT;
}}}
echo <<<EOT
-->
	 document.myform.admin_pop1401.checked=false;
	 document.myform.admin_pop1402.checked=false;
	 document.myform.admin_pop1403.checked=false;
     document.myform.admin_pop1404.checked=false;
	 document.myform.admin_pop{$met_module[7][0][id]}.checked=false;
	 document.myform.admin_pop{$met_module[8][0][id]}.checked=false;
	 document.myform.admin_pop1601.checked=false;
	 document.myform.admin_pop1602.checked=false;
	 document.myform.admin_pop1603.checked=false;
 }else{
  document.myform.admin_pop1001.checked=true;
	 document.myform.admin_pop1002.checked=true;
	 document.myform.admin_pop1003.checked=true;
     document.myform.admin_pop1004.checked=true;
	 document.myform.admin_pop1005.checked=true;
	 document.myform.admin_pop1006.checked=true;
	 document.myform.admin_pop1007.checked=true;
	 document.myform.admin_pop1101.checked=true;
	 document.myform.admin_pop1102.checked=true;
	 document.myform.admin_pop1103.checked=true;
     document.myform.admin_pop1104.checked=true;
	 document.myform.admin_pop1105.checked=true;
	 document.myform.admin_pop1201.checked=true;
	 document.myform.admin_pop1202.checked=true;
	 document.myform.admin_pop1203.checked=true;
     document.myform.admin_pop1204.checked=true;
	 document.myform.admin_pop1205.checked=true;
	 document.myform.admin_pop1301.checked=true;

<!--
EOT;
foreach($met_classindex as $key=>$val){
 foreach($val as $key=>$val1){
  if($val1[module]<7){
echo <<<EOT
-->
   document.myform.admin_pop$val1[id].checked=true;
<!--
EOT;
}}}
echo <<<EOT
-->
	 document.myform.admin_pop1401.checked=true;
	 document.myform.admin_pop1402.checked=true;
	 document.myform.admin_pop1403.checked=true;
     document.myform.admin_pop1404.checked=true;
	 document.myform.admin_pop{$met_module[7][0][id]}.checked=true;
	 document.myform.admin_pop{$met_module[8][0][id]}.checked=true;
	 document.myform.admin_pop1601.checked=true;
	 document.myform.admin_pop1602.checked=true;
	 document.myform.admin_pop1603.checked=true;
}
}

</script>
<title>{$lang_add}{$lang_metadmin}</title>
</head>
<body>
<form method="POST" name="myform" onSubmit="return CheckForm();" action="save.php?action=add&lang=$lang" target="_self">
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="table_list1">
          <tr> 
            <td colspan="3" align="center" class="list1_title">{$lang_add}{$lang_metadmin}</td>
          </tr>
          <tr> 
            <td class="list1_text"><font color="#FF0000">*</font>{$lang_adminusername}</td>
            <td colspan="2" class="list1_input"> <input id="useid" name="useid" type="text" class="input" size="20" ><input name="" type="button" class="btn2" value="{$lang_adminCheckID}" onClick="Usercheck('useid')" /><span id="div_name"></span></td>
          </tr> 
		  <tr> 
            <td class="list1_text"><font color="#FF0000">*</font>{$lang_adminpassword}</td>
            <td colspan="2" class="list1_input"> <input name="pass1" type="password" class="input" size="20" ></td>
          </tr> 
		   <tr> 
            <td class="list1_text"><font color="#FF0000">*</font>{$lang_adminpassword1}</td>
            <td colspan="2" class="list1_input"> <input name="pass2" type="password" class="input" size="20" ></td>
          </tr> 
		  <tr> 
            <td class="list1_text">{$lang_adminname}</td>
            <td colspan="2" class="list1_input"> <input name="name" type="text" class="input" size="20" ></td>
          </tr> 
		  <tr> 
            <td class="list1_text">{$lang_adminSex}</td>
            <td colspan="2" class="list1_input"><input name="sex" type="radio" value="0" checked="checked">{$lang_adminMan} &nbsp;<input name="sex" type="radio" value="1">{$lang_adminWoman}</td>
          </tr> 
		  <tr> 
            <td class="list1_text">{$lang_admintel}</td>
            <td colspan="2" class="list1_input"> <input name="tel" type="text" class="input" size="20" ></td>
          </tr> 
		  <tr> 
            <td class="list1_text">{$lang_adminmobile}</td>
            <td colspan="2" class="list1_input"> <input name="mobile" type="text" class="input" size="20" ></td>
          </tr> 
		  <tr> 
            <td class="list1_text"><font color="#FF0000">*</font>email</td>
            <td colspan="2" class="list1_input"> <input name="email" type="text" class="input" size="20" >{$lang_adminTip1}</td>
          </tr> 
		  <tr> 
            <td class="list1_text">QQ</td>
            <td colspan="2" class="list1_input"> <input name="qq" type="text" class="input" size="20" ></td>
          </tr> 
		  <tr> 
            <td class="list1_text">MSN</td>
            <td colspan="2" class="list1_input"> <input name="msn" type="text" class="input" size="20" ></td>
          </tr> 
		  <tr> 
            <td class="list1_text">{$lang_adminTaoBao}</td>
            <td colspan="2" class="list1_input"> <input name="taobao" type="text" class="input" size="20" ></td>
          </tr> 
          <tr> 
          <td class="list1_text" valign="middle">{$lang_adminIntro}</td>
          <td colspan="2" class="list1_input" valign="top"> <textarea name="admin_introduction" cols="60" rows="5" ></textarea></td>
          </tr>
<!--
EOT;
if(count($met_langok)>1){
echo <<<EOT
-->
		  <tr> 
          <td class="list1_text" valign="middle"><font color="#FF0000">*</font>{$lang_adminlangok}</td>
          <td colspan="2" class="list1_input" valign="top">
		  <input name="langok" type="checkbox" value="metinfo" id="langok" checked="checked" onMouseDown="displaylangok()">{$lang_adminlang}
<!--
EOT;
foreach($met_langok as $key=>$val){
echo <<<EOT
-->
<input name="langok_$val[mark]" type="checkbox" value="$val[mark]" checked="checked" onMouseDown="displaylang('langok')">{$val[name]}
<!--
EOT;
}
echo <<<EOT
-->
		  
		  </td>
          </tr>
<!--
EOT;
}
echo <<<EOT
-->
		  <tr> 
          <td class="list1_text" valign="middle"><font color="#FF0000">*</font>{$lang_adminPower}</td>
          <td colspan="2" class="list1_input" valign="top"><input name="admin_issue" type="checkbox" value="yes">{$lang_adminTip2}</td>
          </tr>
		  <tr> 
          <td class="list1_text" valign="middle"><font color="#FF0000">*</font>{$lang_adminOperate}</td>
          <td colspan="2" class="list1_input" valign="top"><font color="#FF0000"><input name="admin_op0" id="admin_op0" type="checkbox" value="metinfo" checked="checked" onMouseDown="displayadminop()">{$lang_adminOperate1}</font>&nbsp;&nbsp;<input name="admin_op1" type="checkbox" value="add" checked="checked" onMouseDown="displaylang('admin_op0')">{$lang_adminOperate2}&nbsp;&nbsp;<input name="admin_op2" type="checkbox" value="editor" checked="checked" onMouseDown="displaylang('admin_op0')">{$lang_adminOperate3}&nbsp;&nbsp;<input name="admin_op3" type="checkbox" value="del" checked="checked" onMouseDown="displaylang('admin_op0')">{$lang_adminOperate4}</td>
          </tr>
		   <tr> 
          <td class="list1_text" valign="middle"><font color="#FF0000">*</font>{$lang_adminColumn}</td>
          <td colspan="2" class="list1_input" valign="top"><font color="#FF0000">
<input name="admin_pop" id="admin_pop" type="checkbox" value="yes" checked="checked" onMouseDown="displayadminpop()">{$lang_adminSelectAll}</font><br>
<b>{$lang_indexbasic}:</b>
<input name="admin_pop1001" type="checkbox" value="1001" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexbasicinfo}&nbsp;
<input name="admin_pop1002" type="checkbox" value="1002" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexlang}&nbsp;
<input name="admin_pop1003" type="checkbox" value="1003" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexfoot}&nbsp;
<input name="admin_pop1004" type="checkbox" value="1004" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexotherinfo}&nbsp;
<input name="admin_pop1005" type="checkbox" value="1005" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexdataback}&nbsp;
<input name="admin_pop1006" type="checkbox" value="1006" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexsafe}&nbsp;
<input name="admin_pop1007" type="checkbox" value="1007" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexupload}<br>

<b>{$lang_indexskin}:</b>
<input name="admin_pop1101" type="checkbox" value="1101" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexskin}&nbsp;
<input name="admin_pop1102" type="checkbox" value="1102" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexpic}&nbsp;
<input name="admin_pop1103" type="checkbox" value="1103" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexhomeset}&nbsp;
<input name="admin_pop1104" type="checkbox" value="1104" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexflash}&nbsp;
<input name="admin_pop1105" type="checkbox" value="1105" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexonline}<br>

<b>{$lang_indexcolumn}:</b>
<input name="admin_pop1201" type="checkbox" value="1201" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexcolumn}&nbsp;
<input name="admin_pop1202" type="checkbox" value="1202" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_mod3}{$lang_mod}{$lang_parameter}&nbsp;
<input name="admin_pop1203" type="checkbox" value="1203" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_mod4}{$lang_mod}{$lang_parameter}&nbsp;
<input name="admin_pop1204" type="checkbox" value="1204" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_mod5}{$lang_mod}{$lang_parameter}&nbsp;
<input name="admin_pop1205" type="checkbox" value="1205" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexcv}<br>

<b>{$lang_indexcontent}:</b>
<input name="admin_pop1301" type="checkbox" value="1301" checked="checked" onMouseDown="displaylang('admin_pop')">{$lang_indexsetcontent}&nbsp;

<!--
EOT;
foreach($met_classindex as $key=>$val){
 foreach($val as $key=>$val1){
 if($val1[module]<7){
echo <<<EOT
-->
<input name="admin_pop$val1[id]" type="checkbox" value="$val1[id]" checked="checked" onMouseDown="displaylang('admin_pop')">$val1[name]&nbsp;
<!--
EOT;
}}}
echo <<<EOT
-->
<br>
<b>{$lang_indexseo}:</b>
<input name="admin_pop1401" type="checkbox" value="1401" checked="checked"  onMouseDown="displaylang('admin_pop')">{$lang_indexhtmset}&nbsp;
<input name="admin_pop1402" type="checkbox" value="1402" checked="checked"  onMouseDown="displaylang('admin_pop')">{$lang_indexseoset}&nbsp;
<input name="admin_pop1403" type="checkbox" value="1403" checked="checked"  onMouseDown="displaylang('admin_pop')">{$lang_indexhot}&nbsp;
<input name="admin_pop1404" type="checkbox" value="1404" checked="checked"  onMouseDown="displaylang('admin_pop')">{$lang_indexlink}<br>

<b>{$lang_indexfeedback}:</b>

<input name="admin_pop{$met_module[7][0][id]}" type="checkbox" value="{$met_module[7][0][id]}" checked="checked"  onMouseDown="displaylang('admin_pop')">{$met_module[7][0][name]}&nbsp;
<input name="admin_pop{$met_module[8][0][id]}" type="checkbox" value="{$met_module[8][0][id]}" checked="checked"  onMouseDown="displaylang('admin_pop')">{$met_module[8][0][name]}&nbsp;
<br>
<b>{$lang_indexuser}:</b>
<input name="admin_pop1601" type="checkbox" value="1601" checked="checked"  onMouseDown="displaylang('admin_pop')">{$lang_indexadminname}&nbsp;
<input name="admin_pop1602" type="checkbox" value="1602" checked="checked"  onMouseDown="displaylang('admin_pop')">{$lang_memberset}&nbsp;
<input name="admin_pop1603" type="checkbox" value="1603" checked="checked"  onMouseDown="displaylang('admin_pop')">{$lang_memberManage}<br><br>
 </td>
          </tr>
		  <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.
?>-->