<?php
	!defined('MEMBER_CENTER') && exit('Access Denied!');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>会员中心 - Powered by DirCMS</title>
<base href="<?php echo $DIRCMS['site_url'];?>" />
<script src="images/js/jquery.min.js"></script>
<link href="member/template/images/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="warp">
<?php include member_tlp('header');?>
<div class="container clearfix">
<?php include member_tlp('sidebar');?>

<div id="content">
<div id="here">
<h2 class="title">信息管理</h2>
</div>
<div class="tabs_header">
<ul class="tabs clearfix">
	<li><a href="member/index.php?mod=yp&file=yp&action=news">新闻管理</a></li>
	<li class="active"><a href="member/index.php?mod=yp&file=yp&action=product">产品管理</a></li>
	<li><a href="member/index.php?mod=yp&file=yp&action=discount">优惠管理</a></li>
</ul>
<div id="search_user">
<form action="member/index.php?" method="get" name="search">
<input type="hidden" name="mod" value="<?php echo $mod;?>"> 
<input type="hidden" name="file" value="<?php echo $file;?>"> 
<input type="hidden" name="action" value="<?php echo $action;?>">
<input name="k" type="text" value="<?php echo isset($k)?htmlspecialchars(stripslashes($k)):'';?>" class="input_text" />
<input type="submit" name="Submit2" value="搜 索" class="input_sub" />
<input type="button" name="Submit3" value="发 布" onclick="window.location.href='<?php echo $DIRCMS['site_url'];?>member/index.php?mod=yp&file=yp&action=product_add'" class="input_sub" />
</form>
</div>
</div>
<div class="display">
<div class="infolist">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td width="5%" align="center">ID</td>
	<td width="27%" align="center">产品名称</td>
	<td width="21%" align="center">产品价格</td>
	<td width="16%" align="center">发布时间</td>
	<td width="13%" align="center">点击率</td>
	<td width="18%" align="center">操作</td>
</tr>
<?php if(is_array($result))foreach($result as $val){?>
<tr>
	<td width="5%" align="center"><?php echo $val['id'];?></td>
	<td width="27%" align="center"><a href="yp/web/showproduct.php?id=<?php echo $val['id'];?>" target="_blank"><?php echo $val['title'];?></a></td>
	<td width="21%" align="center"><?php echo $val['price'];?>元/<?php echo $val['unit'];?></td>
	<td width="16%" align="center"><?php echo date('Y-m-d',$val['inputtime']);?></td>
	<td width="13%" align="center"><?php echo $val['clicks'];?></td>
	<td width="18%" align="center"><a href="member/index.php?mod=yp&file=yp&action=product_edit&id=<?php echo $val['id'];?>">编辑</a> | <a href="member/index.php?mod=yp&file=yp&action=product_delete&id=<?php echo $val['id'];?>" onclick="if(!confirm('确实要删除该信息？'))return false;">删除</a></td>
</tr>
<?php }?>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_title">
<tr>
<td><?php echo $yp->pagestring;?></td>
</tr>
</table>
</div>
</div>
</div>

</div>
<?php include member_tlp('footer');?>
</div>
</body>
</html>
