日常更新
This commit is contained in:
79
view/admin/ad/add.html
Normal file
79
view/admin/ad/add.html
Normal file
@@ -0,0 +1,79 @@
|
||||
{extend name="admin/base"/}
|
||||
{block name="body"}
|
||||
<div class="box box-primary">
|
||||
<header class="box-header with-border">
|
||||
<h3 class="box-title">{$meta_title|default='新功能'}</h3>
|
||||
<div class="pull-right">
|
||||
</div>
|
||||
</header>
|
||||
<div class="box-body">
|
||||
<form method="post" class="form form-horizontal" role="ajax">
|
||||
<input type="hidden" name="id" value="{$info['id']|default=''}">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">广告位名称</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" style="width:400px;" name="title" value="{$info['title']|default=''}">
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">广告位标识</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" style="width:400px;" name="name" value="{$info['name']|default=''}">
|
||||
<span class="help-block">前端使用{ :ad('标识调用')},":"前的空格去掉</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">广告类型</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" style="width: auto;" name="show_type">
|
||||
<option value="">—请选择—</option>
|
||||
{volist name="show_type" id="item"}
|
||||
<option value="{$key}" {if isset($info['show_type']) && $info['show_type'] == $key}selected{/if}>{$item}</option>
|
||||
{/volist}
|
||||
</select>
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">显示条数</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="number" class="form-control" name="show_num" value="{$info['show_num']|default=''}">
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">状态</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" style="width: auto;" name="status">
|
||||
<option value="">—请选择—</option>
|
||||
<option value="0" {if isset($info['status']) && $info['status'] == 0}selected{/if}>禁用</option>
|
||||
<option value="1" {if isset($info['status']) && $info['status'] == 1}selected{/if}>启用</option>
|
||||
</select>
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">显示时间</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control select-time" id="startTime" name="start_time" value="{$info['start_time']|default=''}">
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">显示时间</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="form-control select-time" id="endTime" name="end_time" value="{$info['end_time']|default=''}">
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" style="display: none;">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button class="btn btn-success submit-btn ajax-post" type="submit" target-form="form-horizontal">确 定</button>
|
||||
<button class="btn btn-danger btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
53
view/admin/ad/addad.html
Normal file
53
view/admin/ad/addad.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{extend name="admin/base"/}
|
||||
{block name="body"}
|
||||
<div class="box box-primary">
|
||||
<header class="box-header with-border">
|
||||
<h3 class="box-title">{$meta_title|default='新功能'}</h3>
|
||||
<div class="pull-right">
|
||||
</div>
|
||||
</header>
|
||||
<div class="box-body">
|
||||
<form method="post" class="form form-horizontal" role="ajax">
|
||||
<input type="hidden" name="id" value="{$info['id']|default=''}">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">客户端名称</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" style="width:400px;" name="title" value="{$info['title']|default=''}">
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">广告链接</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" style="width:400px;" name="url" value="{$info['url']|default=''}">
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">内容</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" name="content">{$info['content']|default=''}</textarea>
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">状态</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" style="width: auto;" name="status">
|
||||
<option value="">—请选择—</option>
|
||||
<option value="0" {if isset($info['status']) && $info['status'] == 0}selected{/if}>禁用</option>
|
||||
<option value="1" {if isset($info['status']) && $info['status'] == 1}selected{/if}>启用</option>
|
||||
</select>
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" style="display: none;">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button class="btn btn-success submit-btn ajax-post" type="submit" target-form="form-horizontal">确 定</button>
|
||||
<button class="btn btn-danger btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
@@ -45,6 +45,7 @@ $(function(){
|
||||
createUrl: "/admin/ad/add",
|
||||
updateUrl: "/admin/ad/edit/id/{id}",
|
||||
removeUrl: "/admin/ad/del",
|
||||
uniqueId: "id",
|
||||
sortName: "id",
|
||||
sortOrder: "desc",
|
||||
modalName: "广告位",
|
||||
@@ -57,18 +58,31 @@ $(function(){
|
||||
title: '广告位名称'
|
||||
},
|
||||
{
|
||||
field: 'appid',
|
||||
title: 'APPID'
|
||||
field: 'name',
|
||||
title: '广告位标识'
|
||||
},
|
||||
{
|
||||
field: 'appsecret',
|
||||
title: 'APP秘钥'
|
||||
field: 'show_type_text',
|
||||
title: '广告类型'
|
||||
},
|
||||
{
|
||||
field: 'create_time',
|
||||
title: '创建时间',
|
||||
field: 'show_num',
|
||||
title: '显示条数'
|
||||
},
|
||||
{
|
||||
field: 'start_time',
|
||||
title: '开始时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field: 'end_time',
|
||||
title: '结束时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field: 'status_text',
|
||||
title: '状态'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
|
||||
@@ -45,6 +45,7 @@ $(function(){
|
||||
createUrl: "/admin/ad/addad",
|
||||
updateUrl: "/admin/ad/editad/id/{id}",
|
||||
removeUrl: "/admin/ad/delad",
|
||||
uniqueId: "id",
|
||||
sortName: "id",
|
||||
sortOrder: "desc",
|
||||
modalName: "广告",
|
||||
@@ -52,23 +53,30 @@ $(function(){
|
||||
{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
title: '图片',
|
||||
formatter: function(value, row, index) {
|
||||
return $.table.imageView(row.cover);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'title',
|
||||
title: '广告位名称'
|
||||
},
|
||||
{
|
||||
field: 'appid',
|
||||
title: 'APPID'
|
||||
},
|
||||
{
|
||||
field: 'appsecret',
|
||||
title: 'APP秘钥'
|
||||
},
|
||||
{
|
||||
field: 'create_time',
|
||||
title: '创建时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field: 'update_time',
|
||||
title: '更新时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field: 'status_text',
|
||||
title: '状态'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
|
||||
Reference in New Issue
Block a user