{template 'header.html'}

<div class="index-bg">
	<div class="container">
		<div class="section2">

		<div class="index-title">
				<h4>{lang('my-comment')}</h4>	
			</div>


<div class="user-content">


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



<div class="table-responsive">


<table class="table table-striped table-hover">
<thead>
<tr class="th">
<!-- <th><input title="点击可全选本页的所有项目"  onclick="CheckAll(this.form)" type="checkbox" name="chkall"> </th> -->
<th align="center"><!--id-->{lang('id')}</th>
<th align="center"><!--content-->{lang('title')}</th>
<th align="center"><!--content-->{lang('content')}</th>
<!-- <th align="center"> --><!--username--><!-- 用户名</th> -->
<th align="center">{lang('tatus')}</th>
<th align="center">{lang('dosomething')}</th>
</tr>
</thead>
<tbody>
{loop $data $d}
<tr>
<!-- <td align="center" >
<input onclick="c_chang(this)" type="checkbox" value="{$d.$primary_key}" name="select[]" class="checkbox" />
</td> -->

<td align="center">{cut($d['id'])}</td>
<td align="left" style="padding-left:10px;"><a href="{$d[aurl]}" target="_blank">{$d['title']}</a></td>
<td align="left" style="padding-left:10px;">{cut($d['content'])}</td>
<td align="center">{if $d['state']}<i class="glyphicon glyphicon-ok"></i>{else}<i class="glyphicon glyphicon glyphicon-ban-circle"></i>{/if}</td>

<td align="center">
<a onclick="javascript: return confirm('{lang('are_you_sure_you_want_to_delete_it')}');" href="<?php echo url('comment/del/id/'.$d['id']);?>" class="a_del" title="{lang('delete')}"><i class="glyphicon glyphicon-remove"></i></a>
</td>
</tr>
{/loop}

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

    <input type="hidden" name="batch" value="">


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

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

<div class="blank30"></div>
<script>
$(function(){
	$('#btn_add').click(function(e) {
        $('#listform').attr('action','<?php echo url('invite/add',true);?>');
		$('#listform').submit();
    });
});
</script>
</div>
</div>
</div>
</div>
<div class="blank30"></div>
{template 'footer.html'}