简单的就这么点,无限分类的,还要等待
        <select name="catid" id="catid">
          <!--$list as $rs-->
           <optgroup label="{rs['classname']}" title="{rs['content']}">
         <!-- <option value="{rs['id']}">{rs['classname']}</option>-->
          <!-- $rs['a'] AS $rs -->
          <option value="{rs['id']}">{rs['classname']}</option>
           <!-- end-->
         <!-- end-->
        </select>


  <!-- $list AS $text -->
  <tr>
    <td align="center" bgcolor="#AEDDF7">{text['id']}</td>
    <td bgcolor="#AEDDF7">{text['classname']}</td>
    <td bgcolor="#AEDDF7">{text['content']}</td>
    <td align="right" valign="middle" bgcolor="#AEDDF7">{text['list']}</td>
    <td align="center" bgcolor="#AEDDF7"><!--if($text['view'])-->
        <img src="images/yes.gif" width="20" height="20" border="0" />
        <!--else-->
        <img src="images/block.gif" width="20" height="20" border="0" />
        <!--END--></td>
    <td align="center" bgcolor="#AEDDF7"><a href="?act=newscat&amp;id={text['id']}"><img src="images/edit.gif" width="20" height="20" border="0" /></a>&nbsp;&nbsp;<a href="javascript:del('{text['id']}')"><img src="images/del.gif" width="16" height="16" border="0" /></a></td>
  </tr>
   <!-- $text['a'] AS $text -->
  <tr>
    <td align="center" bgcolor="#CCEAFA">{text['id']}</td>
    <td bgcolor="#CCEAFA">{text['classname']}</td>
    <td bgcolor="#CCEAFA">{text['content']}</td>
    <td align="right" valign="middle" bgcolor="#CCEAFA">{text['list']}</td>
<td align="center" bgcolor="#CCEAFA"><!--if($text['view'])-->
      <img src="images/yes.gif" width="20" height="20" border="0" />
    <!--else-->
      <img src="images/block.gif" width="20" height="20" border="0" />
  <!--END--></td>
    <td align="center" bgcolor="#CCEAFA"><a href="?act=newscat&amp;id={text['id']}"><img src="images/edit.gif" width="20" height="20" border="0" /></a>&nbsp;&nbsp;<a href="javascript:del('{text['id']}')"><img src="images/del.gif" width="16" height="16" border="0" /></a></td>
  </tr> <!--END-->
  
  <!--END-->
  


作者:Else 's Blog
地址:http://www.aixq.com/post/889/
版权所有。转载时必须链接形式注明作者和原始出处及本声明!
最后编辑: Else 编辑于2007/12/18 03:16
代码 程序 编程 | 评论(0) | 引用(0) | 阅读(830)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]