<div class="main-right-box">
<h5>幻灯片</h5>
<div class="blank20"></div>
<div class="box" id="box">


        <div class="alert alert-danger" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
            <span class="glyphicon glyphicon-warning-sign"></span>	<strong><?php echo lang_admin('tips');?>！ </strong>
            新增幻灯后，在可视化编辑中拖入幻灯模块并设置勾选新增幻灯启用！
        </div>

<form name="listform" id="listform"  action="<?php echo uri();?>" method="post" onsubmit="return returnform(this);">

<input class="btn btn-primary" type="button" value=" {lang_admin('add_slide')}"
       onclick="gotourl(this)" data-dataurl="index.php?case=slide&act=add&admin_dir={get('admin_dir',true)}" data-dataurlname="{lang_admin('add_slide')}" />

    <a href="#" onclick="gotourl(this)" data-dataurl="{$base_url}/index.php?case=config&act=system&set=slide&admin_dir={get('admin_dir',true)}&site=default" data-dataurlname="{lang_admin('old_slide')}" class="btn btn-default">
        {lang_admin('old_slide')}
    </a>

<div class="blank30"></div>


<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr class="th">
<th class="s_out"><input title="{lang_admin('click_to_select_all_items_on_this_page')}"  onclick="CheckAll(this.form)" type="checkbox" name="chkall" class="checkbox" /></th>
<th class="catid text-center">{lang_admin('id')}</th>
<th class="catid">{lang_admin('name')}</th>
<th class="catname">{lang_admin('adddate')}</th>
<th class="catname">{lang_admin('dosomething')}</th>
</tr>
</thead>
<tbody>
    {loop $data $d}
    <tr>
      <td class="s_out"><input onclick="c_chang(this)" type="checkbox" value="{$d['id']}" name="select[]" class="checkbox" /></td>
      <td class="catid text-center">{cut($d['id'])}</td>
      <td class="catname">{cut($d['name'])}</td>
      <td class="catname">{cut($d['addtime'])}</td>
      <td class="manage text-center">
        <a href="#" onclick="gotourl(this)"   data-dataurl="<?php echo modify("act/edit/id/".$d['id']);?>" title="{lang_admin('edit_slide')}" class="btn btn-gray" data-dataurlname="{lang_admin('edit_label')}">{lang_admin('edit_slide')}</a>
        <a href="#" onclick="gotourl(this)"   data-dataurl="<?php echo modify("act/editview/id/".$d['id']);?>" title="{lang_admin('edit_slide_pic')}" class="btn btn-gray" data-dataurlname="{lang_admin('edit_slide_pic')}">{lang_admin('edit_slide_pic')}</a>
          <div class="btn-group">
              <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  {lang_admin('more')} <span class="caret"></span>
              </button>
              <ul class="dropdown-menu">
                  <li><a onclick="if(confirm('{lang_admin('are_you_sure_you_want_to_delete_it')}')){gotourl(this);};" href="#" data-dataurl="<?php echo modify("/act/delete/id/".$d['id']."/token/$token");?>" title="{lang_admin('delete')}">{lang_admin('delete')}</a></li>
              </ul>
          </div>
      </td>
    </tr>
    {/loop}
    </tbody>
    
  </table>
</div>
<input type="hidden" name="batch" value="" />
<input class="btn btn-gray" type="button" value=" {lang_admin('delete')} " name="delete"
onclick="if(getSelect(this.form) && confirm('{lang_admin('are_you_sure_you_want_to_delete_it')}')){this.form.action='<?php echo modify('act/batch',true);?>'; this.form.batch.value='delete'; returnform(this.form);}"/>

<div class="blank30"></div>
<div class="line"></div>

<div class="clear page">
  <?php  echo pagination::adminhtml($record_count); ?>
</div>

</form>
    <script>
        $(function () { $("[data-toggle='tooltip']").tooltip(); });
    </script>
<div class="blank30"></div>
</div>
</div>

