极限软件 >> 极限网上商店系统 >> 在线手册 >> 模板设计手册 >> 示例代码 >> 商品相关

商品高级查询表单示例

示例说明:

本示例表单通常用于“商品高级查询表单页(?t=ProductQueryAdv)”模板页。以下代码中绿色的表单项名称是定义的标准,请参照进行设计。

示例代码:

<form method="post" action="{gs_file}?t=productquerylist">
<table>
<tr>
  <td>请输入查询关键字:</td>
  <td><input type=text name="name"></td>
</tr>
<tr>
  <td>商品价格:</td>
  <td>最低价格:<input type=text size=4 name="fromprice">
      最高价格:<input type=text size=4 name="endprice"></td>
</tr>

<!-- Begin:ProductClassOption(cid:{id}) -->
<tr>
  <td>请选择商品分类:</td>
  <td>
    <select size=1 name="classid" onchange="document.location.href='?t=productqueryadv&classid=' + this.options[this.selectedIndex].value">
    <option value="">所有...</option>
    {pc_option}
    </select>
    <br>
    <!-- Begin:ProductClassAttach(col:0;cid:{id}) -->
    <br>{pca_name}{pca_value} <br>
    <!-- End:ProductClassAttach -->
  </td>
</tr>
<!-- End:ProductClassOption -->

<tr>
  <td colspan=2><input type="submit" value="进行高级搜索"></td>
</tr>
</form>