
<table width="550" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td> &nbsp;&nbsp;<img src="image/download.gif" width="16" height="16"> 程序总数：<font color="#FF0000"> 
      <?=$total_item?>
      </font></td>
  </tr>
</table>
<table width="550" border="0" cellspacing="1" cellpadding="0" bgcolor="#dedede" align="center">
  <tr>
    <td bgcolor="#FFFFFF"><?PageShow($pagenum,$page,"?action=list");?></td>
  </tr>
</table>
<table width="550" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="443" valign="top" height="81"> 
      <!--   item start ---->
      <?php
	  for($i=$pagestart;$i>=max($pageend,0);$i--){
	  list($name,$date,$link,$brief,$pid)=explode("|%|",$mainarr[$i]);
	  $brief=GetString($brief,100);
	  $hit=$hitarr[$i];
	  $rating=$ratingarr[$i];
	  $rating=ceil($rating);
	  $sort_id=$sortarr[$i];
	?>
      <table bgcolor=#006699 border=0 cellpadding=3 cellspacing=1 
        width="100%">
        <tbody> 
        <tr bgcolor=#dddddd> 
          <td background="../image/catbg.jpg" 
          colspan=2 height="16"><b> <a href="../index.php?action=info&id=<?=$i?>&pid=<?=$pid?>" target="_blank"> 
            <?=$name?>
            </a> </b></td>
          <td align=right 
          background="../image/catbg.jpg" height="16" width="29%"> 
            <?=${sort.$sort_id}?>
            | 
            <?php
			if(trim($link)==""){
			  echo"<font color=#cdcdcd>演示 </font>";
			}
			else{
			  $_addr=explode("|",$link);
			  for($j=0;$j<sizeof($_addr);$j++){
			     echo"&nbsp;&nbsp;<a href=$_addr[$j]>演示</a>";
			  }
			}
			?>
          </td>
          <td align=right 
          background="../image/catbg.jpg" height="16" width="23%"> 
            <div align="left"> 
              <?php echo"<a href=?action=list_del&id=$i&pid=$pid>删除</a>";?>
              | 
              <?php echo"<a href=?action=list_edit&id=$i&pid=$pid>修改</a>";?>
            </div>
          </td>
        </tr>
        <tr> 
          <td align=middle bgcolor=#efefef width="17%">更新日期</td>
          <td bgcolor=white width="31%"> 
            <?=$date?>
          </td>
          <td align=middle bgcolor=#efefef width="29%">评价程度</td>
          <td bgcolor=white width="23%"><img src="../image/<?=$rating?>stars.gif"> 
            <?=$hit?>
          </td>
        </tr>
        <tr bgcolor="white"> 
          <td colspan=4 
          style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all"> 
            <p 
            style="LINE-HEIGHT: 130%"> 
              <?=$brief?>
            </p>
          </td>
        </tr>
        </tbody> 
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td>&nbsp;</td>
        </tr>
      </table>
      <?php
	  }
	  ?>
      <!------------ item end ---------->
    </td>
    <td width="10" height="81">&nbsp;</td>
    <td width="107" valign="top" height="81">&nbsp; </td>
  </tr>
</table>
