 
<table width="550" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="494" valign="top" height="245"> 
      <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#A3B9CD">
        <tr> 
          <td bgcolor="#6e92b1"><img src="image/new.gif" width="16" height="16"> 
            <font color="#FFFFFF"> 
            <?=$lang2?>
            </font></td>
        </tr>
        <?php
	     for($i=0;$i<$total_cate;$i++){
		 $newsortarr=explode("|",$catearr[$i]);
	  ?>
        <tr> 
          <td bgcolor="#edf3fa"><img src="image/sort.gif" width="16" height="16"> 
            <a href="?action=cata&cata=<?=$i?>&cata_id=<?=$newsortarr[0]?>"> 
            <?=${sort.$newsortarr[0]}?>
            </a> </td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF"> 
            <?php
			$total_s=sizeof($newsortarr);
			$line=ceil($total_s/5);
		    for($j=1;$j<=$line;$j++){
			$linestart=($j-1)*5+1;
			$lineend=5*$j;
			  for($k=$linestart;$k<=min($lineend,$total_s);$k++){
			   echo"<a href=?action=sort&cata=$i&cata_id=$newsortarr[0]&sort_id=$newsortarr[$k]>${sort.$newsortarr[$k]}</a>";
			   echo"&nbsp;&nbsp;";
			   }
			 echo"<br>";
			}
		  ?>
          </td>
        </tr>
        <?php
		}
		?>
        <tr> 
          <td bgcolor="#6e92b1"><img src="image/new.gif" width="16" height="16"> 
            <font color="#FFFFFF"> 
            <?=$lang3?>
            </font></td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF" height="38"> <a href="?action=list"> 
            <?=$lang9?>
            </a>:<font color="#FF0000"> 
            <?=$total_item?>
            </font><br>
            <?=$lang10?>
            :<font color="#FF0000"> 
            <?=$total_hit?>
            </font><br>
            <?=$lang11?>
            :<font color="#FF0000"> 
            <?=$day_hit?>
            </font><br>
            <?=$lang12?>
            :<font color="#FF0000"> 
            <?=$total_online?>
            </font><br>
            <?=$lang13?>
            :<font color="#FF0000"> 
            <?=$total_ip?>
            </font></td>
        </tr>
        <tr> 
          <td bgcolor="#6e92b1" height="14"><img src="image/news.gif" width="13" height="11"> 
            <font color="#FFFFFF"> 
            <?=$lang4?>
            </font></td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF" height="2">&nbsp; 
            <?=$title?>
          </td>
        </tr>
        <tr> 
          <td bgcolor="#6e92b1" height="2"><img src="image/search.gif" width="16" height="16"> 
            <font color="#FFFFFF"> 
            <?=$lang5?>
            </font></td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF" height="3" align="left"> 
            <form name="form1" method="post" action="?action=search">
              <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
                <tr> 
                  <td width="15%" height="2"> 
                    <?=$lang14?>
                  </td>
                  <td width="25%" height="2"> 
                    <input type="checkbox" name="select" value="1"><?=$lang43?>
                  </td>
                  <td width="27%" height="2"> 
                    <input type="text" name="keyword" size="15">
                  </td>
                  <td width="33%" height="2"> 
                    <input type="submit" name="Submit" value="<?=$lang15?>" class=border>
                    <input type="reset" name="Submit2" value="<?=$lang16?>" class=border>
                  </td>
                </tr>
              </table>
            </form>
          </td>
        </tr>
      </table>
    </td>
    <td width="13" valign="top" height="245">&nbsp;</td>
    <td width="243" valign="top" height="245"> 
      <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#A3B9CD">
        <tr> 
          <td bgcolor="#6e92b1"><img src="image/top.gif" width="16" height="16"> 
            <font color="#FFFFFF"> 
            <?=$lang6?>
            </font></td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF"> 
            <?php 
		  for($i=$total_item-1;$i>=max(0,$total_item-$adminlist);$i--){
		  list($name,,,,$pid)=explode("|%|",$mainarr[$i]);
		  echo" &nbsp;<img src=\"image/list.gif\"> <a href=\"?action=info&id=$i&pid=$pid\">[${sort.$sortarr[$i]}]$name(<font color=\"red\" size=\"1\">$bk_hitarr[$i]</font>)</a><br>";
		  }
		  ?>
          </td>
        </tr>
        <tr> 
          <td bgcolor="#6e92b1"><img src="image/top.gif" width="16" height="16"><font color="#FFFFFF"> 
            <?=$lang7?>
            </font></td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF"> 
            <?php 
		  for($i=0;$i<min($adminlist,$total_item);$i++){
		  $key=$keys[$i];
		  list($name,,,,$pid)=explode("|%|",$mainarr[$key]);
		  echo" &nbsp;<img src=\"image/list.gif\"> <a href=\"?action=info&id=$key&pid=$pid\">[${sort.$sortarr[$key]}]$name(<font color=\"red\" size=\"1\">$bk_hitarr[$key]</font>)</a><br>";
		  }  
		  ?>
          </td>
        </tr>
        <tr> 
          <td bgcolor="#6e92b1"><img src="image/top.gif" width="16" height="16"><font color="#FFFFFF"> 
            <?=$lang8?>
            </font></td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF"> 
            <?php 
		  for($i=0;$i<min($adminlist,$total_item);$i++){
		  $key=$keys1[$i];
		  list($name,,,,$pid)=explode("|%|",$mainarr[$key]);
		  echo" &nbsp;<img src=\"image/list.gif\"> <a href=\"?action=info&id=$key&pid=$pid\">[${sort.$sortarr[$key]}]$name(<font color=\"red\" size=\"1\">$bk_ratingarr[$key]</font>)</a><br>";
		  }  
		  ?>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
