Beispiel #1
0
  			<div class="input-group">
  					<input name="search_keywords" id="search_keywords" type="text" class="form-control">
  					<span class="input-group-btn">
  							<input name="search_btn" id="search_btn" type="submit" class="btn btn-default" value="搜索">
  					</span>
  			</div>
      </form>
		</div>

		<div class="form-group">
			<select name="sort_jump_box" id="sort_jump_box" class="form-control">
      	<option value="0">按分类查看</option>
      <?php 
$sort = new MySort();
$arrayList = $sort->getList();
$arrayList = $sort->getTree($arrayList);
foreach ($arrayList as $key => $row) {
    echo '<option value="' . $row["id"] . '">' . $row["deepTag"] . $row["title"] . '</option>';
}
?>
      </select>
		</div>

		<div class="form-group">
				<select name="att_jump_box" id="att_jump_box" class="form-control">
        	<option value="">按特性查看</option>
        		<option value="<%=attArray(k)%>"><%=attArray(k)%></option>
        </select>
		</div>
	</div>
</div>
Beispiel #2
0
echo $sort->model["id"];
?>
">
<div class="container-fluid">
  <div class="row">
    <!-- left -->    
    <div class="col-xs-8 form-horizontal">

      <div class="form-group">
        <label for="" class="col-sm-2 control-label">上级分类</label>
        <div class="col-sm-10">
          <select name="pid" id="pid" class="form-control" style="width:300px;">
          <option value="0">根目录</option>
          <?php 
$list = $sort->getList();
$arrayList = $sort->getTree($list, 0, 0);
foreach ($arrayList as $key => $row) {
    echo '<option value="' . $row["id"] . '">' . $row["deepTag"] . $row["title"] . '</option>';
}
?>
          </select>
        </div>
      </div>    

      <div class="form-group">
        <label for="" class="col-sm-2 control-label">分类名称</label>
        <div class="col-sm-10">
          <input name="title" type="text" class="form-control require" id="title" value="<?php 
echo $sort->model["title"];
?>
" maxlength="255" />