<?php require_once 'head.html';?>
        <div class="span9">
		  <div class="row-fluid">
			<div class="page-header">
				<h1>留言列表 <small>Message List</small></h1>
			</div>
			<table class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th>头像</th>
						<th>留言内容</th>
						<th>发表者</th>
						<th>邮箱</th>
						<th>时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>

				<?php $i=1;foreach ($msg as $Msgs){?>
				<tr class="list-roles">
					<td width="100px;"><img src="<?php echo $Msgs['primg'];?>" style="width: 100px; height: 100px;"></td>
					<td><a href="?c=opi&xp=edit&id=<?php echo $names['pid'];?>"><?php echo $Msgs['content'];?></a></td>
					<td><?php echo $Msgs['names'];?></td>
					<td><?php echo $Msgs['email'];?></td>
					<td><?php echo date('Y-m-d h:i:s', $Msgs['times']);?></td>
					<td>
						<div class="btn-group">
							<a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">操作 <span class="caret"></span></a>
							<ul class="dropdown-menu pull-right">
								<li><a href="?c=msg&ip=reply&id=<?php echo $Msgs['id'];?>"><i class="icon-pencil"></i> 回复</a></li>
								
								<li><a onclick='if (confirm("确定删除？") == true){location.href="?c=msg&ip=del&id=<?php echo $Msgs['id'];?>";}'><i class="icon-trash"></i> 删除</a></li>
							</ul>
						</div>
					</td>
				</tr>
				<?php $i++;}?>
				
				</tbody>
			</table>
			<div class="pagination">
				<ul>
					<?php if($p !== 1){?><li><a href="?c=msg&p=<?php echo $break;?>">上页</a></li><?php }?>
		             <?php MsgPage($pageCount, $p, 7);?>
					<?php if($p !== $pageCount){?><li><a href="?c=msg&p=<?php echo $next;?>">下页</a></li><?php }?>
				</ul>
			</div>
			
		  </div>
        </div>
      </div>

      <hr>

       <?php require_once 'foot.html';?>

    </div>

      <script src="Delivery/js/jquery.js"></script>
	<script src="Delivery/js/bootstrap.min.js"></script>
	<script>
	$(document).ready(function() {
		$('.dropdown-menu li a').hover(
		function() {
			$(this).children('i').addClass('icon-white');
		},
		function() {
			$(this).children('i').removeClass('icon-white');
		});
	});
	</script>
  </body>
</html>
