<include file="public@header"/> </head> <body> <div class="wrap js-check-wrap"> <ul class="nav nav-tabs"> <li class="active"><a href="{:url('cooperation/index')}">所有合作伙伴</a></li> <li><a href="{:url('cooperation/add')}">添加合作伙伴</a></li> </ul> <form method="post" class="js-ajax-form margin-top-20"> <div class="table-actions"> <!--<button class="btn btn-sm btn-primary js-ajax-submit" type="submit">{:lang('SORT')}</button>--> <button class="btn btn-sm btn-success js-ajax-submit" type="submit" data-action="{:url('cooperation/toggle',array('display'=>1))}" data-subcheck="true">{:lang('DISPLAY')} </button> <button class="btn btn-sm btn-danger js-ajax-submit" type="submit" data-action="{:url('cooperation/toggle',array('hide'=>1))}" data-subcheck="true">{:lang('HIDE')} </button> </div> <php>$status=array("1"=>lang('DISPLAY'),"0"=>lang('HIDDEN'));</php> <table class="table table-hover table-bordered table-list"> <thead> <tr> <th width="50"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th> <!--<th width="50">{:lang('SORT')}</th>--> <th width="100">ID</th> <th width="200">名称</th> <th width="200">图片</th> <th width="100">{:lang('STATUS')}</th> <th width="200">权重</th> <th width="120">{:lang('ACTIONS')}</th> </tr> </thead> <tbody> <foreach name="cooperation" item="vo"> <tr> <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td> <td>{$vo.id}</td> <td>{$vo.name}</td> <td> <notempty name="vo.image"> <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.image)}');"> <i class="fa fa-photo fa-fw"></i> </a> <else/> <i class="fa fa-close fa-fw"></i> </notempty> </td> <td> <empty name="vo.status"> <span class="label label-default"> {$status[$vo['status']]} </span> <else/> <span class="label label-success"> {$status[$vo['status']]} </span> </empty> </td> <td>{$vo.weigh}</td> <td> <a class="btn btn-xs btn-primary" href="{:url('cooperation/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a> <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('cooperation/delete',array('id'=>$vo['id']))}" class="js-ajax-delete"> {:lang('DELETE')} </a> </td> </tr> </foreach> </tbody> <!--<tfoot>--> <!--<tr>--> <!--<th width="16">--> <!--<label>--> <!--<input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">--> <!--</label>--> <!--</th>--> <!--<th width="50">{:lang('SORT')}</th>--> <!--<th width="50">ID</th>--> <!--<th>{:lang('NAME')}</th>--> <!--<th>链接地址</th>--> <!--<th width="50">{:lang('STATUS')}</th>--> <!--<th width="120">{:lang('ACTIONS')}</th>--> <!--</tr>--> <!--</tfoot>--> </table> <!--<div class="table-actions">--> <!--<button class="btn btn-sm btn-primary js-ajax-submit" type="submit">{:lang('SORT')}</button>--> <!--<button class="btn btn-sm btn-success js-ajax-submit" type="submit"--> <!--data-action="{:url('link/toggle',array('display'=>1))}" data-subcheck="true">{:lang('DISPLAY')}--> <!--</button>--> <!--<button class="btn btn-sm btn-danger js-ajax-submit" type="submit"--> <!--data-action="{:url('link/toggle',array('hide'=>1))}" data-subcheck="true">{:lang('HIDE')}--> <!--</button>--> <!--</div>--> </form> </div> <script src="__STATIC__/js/admin.js"></script> </body> </html>