Beispiel #1
0
<!-- $Id: goods_search.htm 14216 2008-03-10 02:27:21Z testyang $ -->

<div class="form-div">
  <form action="javascript:searchUrls()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    <select name="classid">
      <option value="0">所有分类</option>
      <?php 
echo cate_list($classid);
?>
    </select>
    关键字
    <input type="text" name="keyword" size="15" />
    <input type="submit" value=" 搜索 " class="button" />
  </form>
</div>
<script language="JavaScript">
    function searchUrls()
    {
		listTable.filter['classid'] = Utils.trim(document.forms['searchForm'].elements['classid'].value);
        listTable.filter['keyword'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
        listTable.filter['page'] = 1;
        listTable.loadList();
    }
</script>
Beispiel #2
0
function cate_list($parent, $arr)
{
    if (isset($arr['p' . $parent])) {
        echo "<div id=\"catagory\"><p class=\"left\"><span class=\"exp\"></span><input type=\"checkbox\" style=\"\" name=\"sel[]\"/><span class=\"cata\">{$arr['p' . $parent]['cate_name']}</span></p><p class=\"right\"><span class=\"caozuo\"><a href=\"?action=child&parent=11\">增加下级栏目</a>|<a href=\"\">本栏目内容</a>|<a href=\"\">修改</a>|<a href=\"\">移动栏目</a>|<a href=\"\">删除</a></span><input style=\"width:20px;\" name=\"order\" value=\"11\"/></p><div style=\"clear:both\"></div></div>";
        cate_list($arr['p' . $parent]['id'], $arr);
    }
}