{dede:config.pagesize value='20' /}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>廣告管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css">
</head>
<body background="images/allbg.gif" leftmargin="8" topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
  <tr>
   <td height="28" background="images/tbg.gif" colspan="7" style="padding-left:10px;">
     <b>廣告管理</b>&nbsp;[<a href="ad_add.php"><u>增加一個新廣告</u></a>]
	</td>
</tr>
  <tr align="center"  bgcolor="#FBFCE2"" height="24"> 
      <td width="8%">編號</td>
      <td width="20%">廣告名稱</td>
      <td width="12%">投放範圍</td>
      <td width="11%">是否限時</td>
      <td width="11%">結束時間</td>
      <td width="20%">廣告代碼</td>
      <td width="18%">管理</td>
   </tr>
   {dede:datalist}
    <tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> 
        <td>{dede:field.aid /}</td>
        <td>{dede:field.adname /}</td>
        <td>{dede:field.typename function='TestType(@me)'/}</td>
        <td>{dede:field.timeset function='TimeSetValue(@me)'/}</td>
        <td>{dede:field.endtime function='GetDateMk(@me)'/}</td>
        <td><?php echo '{'; ?>dede:myad name='{dede:field.tagname /}'/<?php echo '}'; ?></td>
        <td>
         <a href='ad_edit.php?aid={dede:field.aid /}&dopost=getjs'>[JS]</a>
         <a href='ad_edit.php?aid={dede:field.aid /}&dopost=edit'>[更改]</a>
		     <a href='ad_edit.php?aid={dede:field.aid /}&dopost=delete'>[刪除]</a>
		    </td>
     </tr>
		{/dede:datalist}
     <tr align="center" bgcolor="#F9FCEF" height="24"> 
      <td colspan="7">
      	{dede:pagelist listsize=5/}
      </td>
     </tr>
   </table>
   </td>
</tr>
</table>
</body>
</html>