AI语音机器人开源代码\application\user\view\ad

{extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/libs/bootstrap-editable.css">
{/block}
{block name="body"}
<div class="main-box no-header clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
		<div class="pull-right">
			<a class="btn btn-success" href="{:url('addad?id='.$id)}"><i class="fa fa-plus-circle fa-lg"></i> 新 增</a>
			<a class="btn btn-primary" href="{:url('index')}"><i class="fa fa-list fa-lg"></i> 广告位</a>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<!-- 表格列表 -->
		<div class="table-responsive clearfix">
			<table class="table table-hover">
				<thead>
					<tr>
						<th width="30"><input class="checkbox check-all" type="checkbox"></th>
						<th width="60">ID</th>
						<th width="280">标题</th>
						<th width="280">创建时间</th>
						<th width="280">更新时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="item"}
					<tr>
						<td><input class="ids row-selected" type="checkbox" name="id[]" value="{$item.id}"></td>
						<td>{$item['id']}</td>
						<td>{$item['title']}</td>
						<td>{$item['create_time']|date='Y-m-d H:i',###}</td>
						<td>{$item['update_time']|date='Y-m-d H:i',###}</td>
						<td>
							<a href="{:url('editad?id='.$item['id'])}">编辑</a>
							<a href="{:url('delad?id='.$item['id'])}" class="confirm ajax-get">删除</a>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
		</div>
		<!-- /表格列表 -->
	</div>
</div>
{/block}

extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/libs/bootstrap-editable.css">
{/block}
{block name="body"}
<div class="main-box clearfix">
    <header class="main-box-header clearfix">
        <div class="pull-left">
            <h2>{$meta_title}</h2>
        </div>
        <div class="pull-right">
            <a class="btn btn-primary" href="{:url('add')}">新 增</a>
            <button class="btn btn-danger ajax-post confirm" url="{:url('del')}" target-form="ids">删 除</button>
        </div>
    </header>
    <div class="main-box-body clearfix">
        <div class="table-responsive clearfix">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th width="30"><input class="checkbox check-all" type="checkbox"></th>
                        <th width="60">ID</th>
                        <th width="180">名称</th>
                        <th width="140">标识</th>
                        <th width="180">创建时间</th>
                        <th width="180">更新时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    {volist name="list" id="item"}
                    <tr>
                        <td><input class="ids row-selected" type="checkbox" name="id[]" value="{$item['id']}"></td>
                        <td>{$item['id']}</td>
                        <td>{$item['title']}</td>
                        <td>{$item['name']}</td>
                        <td>{$item['create_time']|date='Y-m-d H:i',###}</td>
                        <td>{$item['update_time']|date='Y-m-d H:i',###}</td>
                        <td>
                            <a title="广告列表" href="{:url('lists?id='.$item['id'])}">广告列表</a>
                            <a title="移动" href="{:url('edit?id='.$item['id'])}">编辑</a>
                            <a title="删除" href="{:url('del?id='.$item['id'])}" class="confirm ajax-get">删除</a>
                        </td>
                    </tr>
                    {/volist}
                </tbody>
            </table>
            {$page}
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__PUBLIC__/js/bootstrap-editable.min.js"></script>
<script type="text/javascript">
$(function() {
    //点击排序
    $('.item_sort').click(function(){
        var url = $(this).attr('url');
        var ids = $('.ids:checked');
        var param = '';
        if(ids.length > 0){
            var str = new Array();
            ids.each(function(){
                str.push($(this).val());
            });
            param = str.join(',');
        }

        if(url != undefined && url != ''){
            window.location.href = url + '/ids/' + param;
        }
    });
    $.fn.editable.defaults.mode = 'popup';
    $.fn.editableform.buttons = '<button type="submit" class="btn btn-success editable-submit btn-mini"><i class="fa fa-check-square-o fa-white"></i></button>' +
    '<button type="button" class="btn editable-cancel btn-mini"><i class="fa fa-times"></i></button>';
    $('.editable').editable();
});
</script>
{/block}

{extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/libs/bootstrap-editable.css">
{/block}
{block name="body"}
<div class="main-box no-header clearfix">
    <header class="main-box-header clearfix">
        <div class="pull-left">
            <h2>{$meta_title}</h2>
        </div>
        <div class="pull-right">
            <a class="btn btn-success" href="{:url('addad?id='.$id)}"><i class="fa fa-plus-circle fa-lg"></i> 新 增</a>
            <a class="btn btn-primary" href="{:url('index')}"><i class="fa fa-list fa-lg"></i> 广告位</a>
        </div>
    </header>
    <div class="main-box-body clearfix">
        <!-- 表格列表 -->
        <div class="table-responsive clearfix">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th width="30"><input class="checkbox check-all" type="checkbox"></th>
                        <th width="60">ID</th>
                        <th width="280">标题</th>
                        <th width="280">创建时间</th>
                        <th width="280">更新时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    {volist name="list" id="item"}
                    <tr>
                        <td><input class="ids row-selected" type="checkbox" name="id[]" value="{$item.id}"></td>
                        <td>{$item['id']}</td>
                        <td>{$item['title']}</td>
                        <td>{$item['create_time']|date='Y-m-d H:i',###}</td>
                        <td>{$item['update_time']|date='Y-m-d H:i',###}</td>
                        <td>
                            <a href="{:url('editad?id='.$item['id'])}">编辑</a>
                            <a href="{:url('delad?id='.$item['id'])}" class="confirm ajax-get">删除</a>
                        </td>
                    </tr>
                    {/volist}
                </tbody>
            </table>
        </div>
        <!-- /表格列表 -->
    </div>
</div>
{/block}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值