{template_user 'head.html'}

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

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


<div class="user-content">


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



<form name="listform" id="listform"  action="<?php echo uri();?>" method="post">
<!-- <div style="height:40px; line-height:40px;">获取邀请码 <input name="ctname" type="hidden" id="ctname" value="<?php echo $user['username'];?>"> <input name="num" type="hidden" id="num" value="1"> <input id="btn_add" type="button" value="获取"></div> -->
<table class="table table-striped table-hover">
      <thead>
        <tr class="th">
          <th align="center"><!--id-->{lang('aid')}</th>
          <th align="center"><!--name-->{lang('invitation-code')}</th>
          <th align="center">{lang('operator')}</th>
          <th align="center"><!--url-->{lang('generation-time')}</th>
          <th align="center"><!--url-->{lang('registered-person')}</th>
          <th align="center"><!--url-->{lang('registration-time')}</th>
          <th align="center"><!--url-->{lang('whether-to-use')}</th>
          <th align="center">{lang('operation')}</th>
        </tr>

</thead>
<tbody>
{loop $data $d}
<tr class="s_out" onmouseover="m_over(this)" onmouseout="m_out(this)" lang="0">

<td align="center" >{$d['inviteid']}</td>
<td align="center">{$d['invitecode']}</td>
<td align="center">{$d['ctname']}</td>
<td align="center">{$d['cttime']}</td>
<td align="center">{$d['regname']}</td>
<td align="center">{$d['regtime']}</td>
<td align="center"><?php echo $d['isuse']?'<i class="glyphicon glyphicon-ok"></i>':'<i class="glyphicon glyphicon glyphicon-ban-circle"></i>';?></td>
<td align="center"><span class="hotspot" onmouseover="tooltip.show('{lang('are_you_sure_you_want_to_delete_it')}');" onmouseout="tooltip.hide();"><a onclick="javascript: return confirm('{lang('are_you_sure_you_want_to_delete_it')}');" href="<?php echo url('invite/del/id/'.$d['inviteid']);?>" class="a_del" title="{lang('delete')}"><i class="glyphicon glyphicon-trash"></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 class="blank30"></div>

</div>
</div>
</div>
</div>
<div class="blank30"></div>
{template_user 'foot.html'}