<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. 
require_once template('head');
if($show_ok==0 && $show_ok<>""){
   $style1="style='color:#FF0000'";
 }elseif($com_ok==1 && $com_ok<>""){
   $style2="style='color:#FF0000'";
 }elseif($link_type==0 && $link_type<>""){
   $style4="style='color:#FF0000'";
 }
 elseif($link_type==1 && $link_type<>""){
   $style5="style='color:#FF0000'";
 }else{
   $style3="style='color:#FF0000'";
 }
echo <<<EOT
-->
<title>{$lang_indexlink}{$lang_manager}</title>
</head>
<body>
<br>
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="table_list1">
          <tr> 
            <td colspan="9" align="center" class="list1_title">{$lang_indexlink}</td>
          </tr>
       <tr>
	        <td align="left" class="list1_input list9" colspan="9">{$lang_linkType}: 
			<a href="index.php?lang=$lang&show_ok=0" $style1>{$lang_linkType1}</a>&nbsp;|&nbsp;
			<a href="index.php?lang=$lang&com_ok=1" $style2>{$lang_linkType2}</a>&nbsp;|&nbsp;
			<a href="index.php?lang=$lang" $style3>{$lang_linkType3}</a>&nbsp;|&nbsp;
			<a href="index.php?lang=$lang&link_type=0" $style4>{$lang_linkType4}</a>&nbsp;|&nbsp;
			<a href="index.php?lang=$lang&link_type=1" $style5>{$lang_linkType5}</a> 

</td> </tr>
              <tr>
                <td width="5%" class="list1_top" align="center">{$lang_selected}</td>
				<td width="5%" class="list1_top" align="center">ID</td>
                <td width="8%" class="list1_top" align="center">{$lang_linkType}</td>
                <td width="18%" class="list1_top" align="center" >{$lang_linkName}</td>
                <td width="26%" class="list1_top" align="center" >{$lang_linkKeys}</td>
                <td width="6%" class="list1_top" align="center" >{$lang_sort}</td>
				<td width="6%" class="list1_top" align="center" >{$lang_linkCheck}</td>
				<td width="6%" class="list1_top" align="center" >{$lang_recom}</td>
				<td width="10%" class="list1_top" align="center" >{$lang_operate}</td>
              </tr>
			  <form name="del" method="Post" action="delete.php?lang=$lang" onSubmit="return ConfirmDelall();">
<!--
EOT;
foreach ($link_list as $key=>$val){
echo <<<EOT
-->          
              <tr>
              <td class="list1_content_titile" align="center"><input name='id' type='checkbox' onClick="unselectall()" id="id" value='$val[id]' class="xz"></td>
                <td class="list1_content" align="center">$val[id]</td>
				<td align="center" class="list1_content">$val[link_type]</td>
			    <td align="left" class="list1_content">$val[webname]</td>
				<td align="left" class="list1_content">$val[info]</td>
				<td class="list1_content" align="center">$val[orderno]</td>
                <td class="list1_content" align="center">$val[show_ok]</td>
                <td class="list1_content" align="center">$val[com_ok]</td>          
				<td align="center" class="list1_content" style="color:#0066FF;"></a> <a href="content.php?action=editor&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;
}
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="center">{$lang_selectall}</td>
			<td class="input_bottom" align="left" colspan="8"><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 class="input_search" colspan="9" align="left">
			<form method="POST" name="myform"  action="index.php?search=detail_search&lang=$lang" target="_self">
			       <span><b>{$lang_indexlink}{$lang_search}</b></span>
			    <input name="webname" type="text" size="30">
  <input type="submit" name="Submit2" value="{$lang_search}" class="tj" style="*padding-top:2px; *height:22px;">  
	        {$lang_linkTip2}</form></td>
          </tr>
   	   <tr>
   	     <td  align="center" colspan="9" class="list1_input" >$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.
?>-->