Example #1
0
						</span>
						<input type="hidden" name="photo" class="form-upload" data-more="0" value="<?php 
echo set_value('photo');
?>
">
						<input type="hidden" name="thumb" class="form-upload-thumb" value="<?php 
echo set_value('thumb');
?>
">
					</div>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="status"> 设计风格:</label>
				<?php 
$list_type = list_coltypes(4, 20);
if (!empty($list_type)) {
    array_unshift($list_type, array('id' => 0, 'fid' => 0, 'title' => "请选择设计风格"));
}
?>
				<div class="controls">
					<?php 
echo ui_btn_select('ctype', set_value("ctype"), $list_type);
?>
					<span class="help-inline"></span>
				</div>
			</div>
			<!-- 弹出 -->
			<div id="seo-modal" class="modal hide fade">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
Example #2
0
 /**
  * 类别列表按钮
  * @param  integer $cid     cid
  * @param  boolean $field   类别字段
  * @param  boolean $baseurl 基本地址
  * @return string           按钮组
  */
 function ui_btns_coltypes($cid = 0, $field = false, $baseurl = false)
 {
     $tmp = '<div class="btn-group">';
     $active = false;
     if (isset($_GET[$field])) {
         $active = $_GET[$field];
     }
     if (!$active) {
         $tmp .= '<a href="' . $baseurl . '" class="btn btn-primary">所有</a>';
     } else {
         $tmp .= '<a href="' . $baseurl . '" class="btn">所有</a>';
     }
     $CI =& get_instance();
     $arr = list_coltypes($cid, 'typea');
     foreach ($arr as $k => $v) {
         $tmp .= '<a href="' . $baseurl . '&' . $field . '=' . $v['id'] . '" class="btn';
         if ($v['id'] == $active) {
             $tmp .= " btn-primary";
         }
         $tmp .= '">' . $v['title'] . '</a>';
     }
     $tmp .= "</div>";
     return $tmp;
 }
Example #3
0
				<div class="controls">
					<div class="input-append date timepicker">
						<input type="text" value="<?php 
echo date("Y-m-d H:i:s", set_value('timeline', now()));
?>
" id="timeline" name="timeline" data-date-format="yyyy-mm-dd hh:ii:ss">
						<span class="add-on"><i class="icon-th"></i></span>
					</div>
				</div>
			</div>



			<!-- ctype -->
<!-- 			<?php 
if ($ctype = list_coltypes($this->cid)) {
    ?>
			<div class="control-group">
				<label class="control-label" for="status"> 所属分类:</label>
				<div class="controls">
					<?php 
    echo ui_btn_select('ctype', set_value("ctype"), $ctype);
    ?>
					<span class="help-inline"></span>
				</div>
			</div>
			<?php 
}
?>
 -->
Example #4
0
<!-- 检索分类 -->
<?php 
if ($ctype = list_coltypes($this->cid, 0, 'ctype')) {
    ?>
<form class="form-inline" action="<?php 
    echo site_urlc($this->class . '/search/' . $this->cid);
    ?>
" method="GET">
<?php 
    if (isset($_GET['ctype']) and is_numeric($_GET['ctype']) and $_GET['ctype']) {
        echo ui_btn_select('ctype', set_value("ctype", $_GET['ctype']), $ctype);
    } else {
        echo ui_btn_select('ctype', set_value("ctype"), $ctype);
    }
    ?>
<input class="btn" type="submit" value="检索">
<a href="<?php 
    echo site_urlc('coltypes/index/') . '&field=ctype&rc=' . $this->class;
    ?>
" class="btn">分类管理</a>
</form>
<p></p>
<?php 
}