{js:my97date}
<div class="breadcrumbs" id="breadcrumbs">
	<ul class="breadcrumb">
		<li>
			<i class="home-icon fa fa-home"></i>
			<a href="#">会员</a>
		</li>
		<li>
			<a href="{url:/comment/comment_list}">评价管理</a>
		</li>
		<li class="active">评价管理</li>
	</ul>
</div>

<div class="content">
	<table class="table list-table">
		<colgroup>
			<col width="35px" />
			<col width="100px" />
			<col />
			<col width="200px" />
			<col width="100px" />
			<col width="100px" />
		</colgroup>
		<caption>
            <a class="btn btn-default" onclick="selectAll('check[]')">
                <i class="fa fa-check"></i>全选
            </a>

            <a class="btn btn-default" onclick="delModel({'form':'comment_list',msg:'确定要删除选中的记录吗？'})">
                <i class="fa fa-close"></i>批量删除
            </a>

			<form class="form-inline pull-right" action="{url:/}" method="get">
			<input type='hidden' name='controller' value='comment' />
			<input type='hidden' name='action' value='comment_list' />

				<select name="search[like]" class="form-control">
					<option value="u.username">评价人</option>
					<option value="goods.name">评价商品</option>
					<option value="c.order_no">订单号</option>
				</select>

				<input class="form-control" name="search[likeValue]" type="text"/>

                <select class="form-control" name="search[c.recomment_time]">
                	<option value="">回复状态</option>
                    <option value="">不限</option>
                    <option value="=0">未回复</option>
                    <option value=">0">已回复</option>
                 </select>

                <div class="input-group">
                    <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                    <input class="form-control" name="search[c.time>=]"  type="text" value="" onfocus="WdatePicker()" placeholder="起始时间" />
                </div>

                <div class="input-group">
                    <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                    <input class="form-control" name="search[c.time<=]"  type="text" value="" onfocus="WdatePicker()" placeholder="结束时间" />
                </div>

				<button class="btn btn-default" type="submit">
				    <i class="fa fa-search"></i>搜索
                </button>
			</form>
		</caption>

		<thead>
			<tr>
				<th></th>
				<th>评价人</th>
				<th>评价商品</th>
				<th>评价时间</th>
				<th>是否回复</th>
				<th>操作</th>
			</tr>
		</thead>

        <form action="{url:/comment/comment_del}" method="post" name="comment_list" onsubmit="return checkboxCheck('check[]','尚未选中任何记录！')">
		<tbody>
            {foreach:items=$this->query->find()}
			<tr>
				<td><input name="check[]" type="checkbox" value="{$item['id']}" /></td>
				<td><a href="{url:/member/member_edit/uid/$item[userid]}">{$item['username']}</a></td>
				<td><a href="{url:/site/products/id/$item['goods_id']}" target="_blank">{$item['goods_name']}</a></td>
				<td>{$item['comment_time']}</td>
				<td>{if:$item['recomment_time']>0}已回复{else:}未回复{/if}</td>
				<td>
					<a href="{url:/comment/comment_edit/cid/$item['id']}"><i class='operator fa fa-eye'></i></a>
					<a href="javascript:delModel({link:'{url:/comment/comment_del/check/$item['id']}'})"><i class='operator fa fa-close'></i></a>
				</td>
			</tr>
			{/foreach}
		</tbody>
		</form>

	</table>
</div>
{$this->query->getPageBar()}

<script type="text/javascript">
$(function()
{
	var searchData = {echo:JSON::encode(IReq::get('search'))};
	for(var index in searchData)
	{
		$('[name="search['+index+']"]').val(searchData[index]);
	}
})
</script>
