You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
4.3 KiB
HTML
125 lines
4.3 KiB
HTML
<extend name="Public/base"/>
|
|
|
|
<block name="body">
|
|
<!-- 标题栏 -->
|
|
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
{:W('Index/navigation',array('value'=>'PointType/lists'))}
|
|
<h3 class="page_title">积分商城</h3>
|
|
<p class="description_text"></p>
|
|
</div>
|
|
|
|
<div class="cf top_nav_list">
|
|
<empty name="model.extend">
|
|
<div class="fl button_list">
|
|
<div class="tools">
|
|
<a class=" " href="{:U('add?model='.$model['id'])}"><span class="button_icon button_icon1"></span>新增</a>
|
|
<a class=" ajax-post confirm " target-form="ids" url="{:U('delete')}"><span class="button_icon button_icon2"></span>删除</a>
|
|
</div>
|
|
</div>
|
|
</empty>
|
|
<!-- 高级搜索 -->
|
|
<div class="jssearch fr cf search_list" style="margin-bottom:-15px;">
|
|
<!--显示状态搜索-->
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 数据列表 -->
|
|
<div class="data_list">
|
|
<div class="">
|
|
<table>
|
|
<!-- 表头 -->
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<input class="check-all" type="checkbox">
|
|
</th>
|
|
<th >商品名称</th>
|
|
<th >商品价格</th>
|
|
<th >商品类型</th>
|
|
<th >商品数量</th>
|
|
<th >状态</th>
|
|
<th >操作</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<!-- 列表 -->
|
|
<tbody>
|
|
<empty name="data" >
|
|
<tr>
|
|
<td colspan="7" class="text-center">aOh! 暂时还没有内容!</td>
|
|
</tr>
|
|
<else />
|
|
<volist name="data" id="vo">
|
|
<tr>
|
|
<td><input class="ids" type="checkbox" value="{$vo['id']}" name="ids[]"></td>
|
|
<td>{$vo.good_name}</td>
|
|
<td>{$vo.price}</td>
|
|
<td>{:get_info_status($vo['good_type'],27)}</td>
|
|
<td>{$vo.number}</td>
|
|
<td>{:get_info_status($vo['status'],26)}</td>
|
|
<td>
|
|
<a href="{:U('edit',array('id'=>$vo['id']))}">编辑</a>
|
|
<a class="ajax-get confirm" href="{:U('delete',array('ids'=>$vo['id']))}">删除</a>
|
|
</td>
|
|
</tr>
|
|
</volist>
|
|
</empty>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="page">
|
|
{$_page|default=''}
|
|
</div>
|
|
|
|
<div class="common_settings">
|
|
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
|
<form class="addShortcutIcon">
|
|
<input type="hidden" name="title" value="{$m_title}">
|
|
<input type="hidden" name="url" value="PointType/lists">
|
|
</form>
|
|
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
|
|
</div>
|
|
|
|
</block>
|
|
|
|
<block name="script">
|
|
<script src="__STATIC__/layer/layer.js"></script>
|
|
<script type="text/javascript">
|
|
//导航高亮
|
|
highlight_subnav("{:U('PointType/lists')}");
|
|
$(function(){
|
|
Think.setValue('status_show',"{:I('status_show')}");
|
|
Think.setValue('row',"{:I('row',10)}");
|
|
//搜索功能
|
|
$("#search").click(function(){
|
|
var url = $(this).attr('url');
|
|
var query = $('.jssearch').find('input').serialize();
|
|
query += "&"+$('.jssearch').find('select').serialize();
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
|
query = query.replace(/^&/g,'');
|
|
if( url.indexOf('?')>0 ){
|
|
url += '&' + query;
|
|
}else{
|
|
url += '?' + query;
|
|
}
|
|
window.location.href = url;
|
|
});
|
|
|
|
//回车自动提交
|
|
$('.jssearch').find('input').keyup(function(event){
|
|
if(event.keyCode===13){
|
|
$("#search").click();
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
</script>
|
|
</block>
|