
<div class="main-right-box">
<h5>投票列表</h5>
<div class="blank20"></div>
<div class="box">

<div class="alert alert-warning 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>调用方法：</strong> 	[	<span>{</span>ballot(编号)<span>}</span>	]	
</div>



<input class="btn btn-primary" type="button" value=" 添加投票 " onclick="javascript:window.location.href='{$base_url}/index.php?case=table&act=add&table=ballot&admin_dir={get('admin_dir')}&site=default'" />

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


<form name="listform" id="listform"  action="<?php echo uri();?>" method="post">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr class="th">
<th class="s_out"><input title="点击可全选本页的所有项目"  onclick="CheckAll(this.form)" type="checkbox" name="chkall" class="checkbox" /></th>
        <th class="catid" align="center"><!--id-->
          编号</th>
        <th class="catname" align="center"><!--title-->
          标题</th>
        <th class="catid" align="center"><!--content-->
          票数</th>
        <th class="manage" align="center">操作</th>
      </tr>
	  </thead>
<tbody>
    {loop $data $d}
    <tr>
      <td class="s_out" align="center" ><input onclick="c_chang(this)" type="checkbox" value="{$d.$primary_key}" name="select[]" class="checkbox" /></td>
      <td class="catid" align="center">{cut($d['id'])}</td>
      <td class="catname" align="left">{cut($d['title'])}</td>
      <td class="catid" align="center">{cut($d['num'])}</td>
      <td class="manage" align="center">
      <a target="_blank" href="<?php echo url("ballot/show/id/$d[$primary_key]",false);?>" title="查看"><i class="glyphicon glyphicon-eye-open"></i></a>
	  <a href="<?php echo modify("act/list/table/option/bid/$d[$primary_key]");?>" title="编辑项"><i class="glyphicon glyphicon-pencil"></i></a>
	  <a href="<?php echo modify("act/edit/table/$table/id/$d[$primary_key]");?>" title="编辑"><i class="glyphicon glyphicon-edit"></i></a>
	  <a onclick="javascript: return confirm('确实要删除吗?');" href="<?php echo modify("/act/delete/table/$table/id/$d[$primary_key]/token/$token");?>" title="删除"><i class="glyphicon glyphicon-trash"></i></a>
	   <a href="<?php echo modify("act/result/table/ballot/bid/$d[$primary_key]");?>" title="结果"><i class="glyphicon glyphicon-list-alt"></i></a>
	  </td>
    </tr>
    {/loop}
    </tbody>
  </table>
</div>

  <div class="page">
  <?php if(get('table')!='type' && front::get('case')!='field') echo pagination::html($record_count); ?>
</div>

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

  <input type="hidden" name="batch" value="" />
  <input class="btn btn-primary" type="button" value=" 删除 " name="delete" onclick="if(getSelect(this.form) && confirm('确实要删除ID为('+getSelect(this.form)+')的记录吗?')){this.form.action='<?php echo modify("/act/delete/table/$table/id/$d[$primary_key]/token/$token");?>'; this.form.batch.value='delete'; this.form.submit();}"/>
</form>


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

