<?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=gbk" />
<title>会员中心 - Powered by DirCMS</title>
<base href="<?php echo $DIRCMS['site_url'];?>" />
<script src="images/js/jquery.min.js"></script>
<script src="images/js/check.func.js"></script>
<script language="javascript" type="text/javascript">
	$(document).ready(function(){
		checkForm(1);
	});
</script>
<script language="javascript" type="text/javascript" src="images/js/dialog.js"></script>
<script language="javascript" type="text/javascript" src="images/js/prompt.js"></script>
<link href="member/template/images/style.css" rel="stylesheet" type="text/css" />
<link href="images/css/dialog.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="product">
<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" />
</form>
</div>
</div>
<div class="display">
<?php if(!$ypinfo){?>

		<span style="color:#ff0000">您尚未开通企业店铺, 不能进行此操作, 请先开通!</span>

<?php }else {?>
<form action="member/index.php?" method="post" name="myform">
<input type="hidden" name="do_submit" value="1" />
<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;?>">
<table width="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td width="25%" align="right"><strong>产品分类</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px">
		<select name="info[typeid]">
			<option value="0">不限分类</option>
			<?php 
			$r=$yp->producttype($ypid,0);
			foreach($r as $_r)
			{
			?>
			<option value="<?php echo $_r['id'];?>"><?php echo $_r['name'];?></option>
			<?php
				$r=$yp->producttype($ypid,$_r['id']);
				foreach($r as $_r)
				{
			?>
			<option value="<?php echo $_r['id'];?>">|-<?php echo $_r['name'];?></option>
			<?php	
				}
			}
			?>
		</select>
		<a href="javascript:void(0);" onclick="javascript:openDialog('管理产品分类','/member/index.php?mod=yp&file=yp&action=product_type',325,150);">管理产品分类</a>
		</td>
	</tr>
	<tr>
		<td width="25%" align="right"><strong>产品名称</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px"><input type="text" datatype="limit" min="1" max="255" name="info[title]" size="45" /></td>
	</tr>
	<tr>
		<td width="25%" align="right"><strong>关键字</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px"><input type="text" datatype="limit" min="1" max="255" name="info[keywords]" size="45" /></td>
	</tr>
	<tr>
		<td width="25%" align="right"><strong>缩略图</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px"><?php echo $form->image('thumb');?></td>
	</tr>
	<tr>
		<td width="25%" align="right" valign="top"><strong>产品概述</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px">
		<textarea cols="80" name="info[description]" datatype="limit" min="0" max="255" cols="55" rows="5"></textarea>
		</td>
	</tr>
	<tr>
		<td width="25%" align="right"><strong>市场价格</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px"><input type="text" datatype="number" name="info[market_price]" size="10" /> 元</td>
	</tr>
	<tr>
		<td width="25%" align="right"><strong>本站价格</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px"><input type="text" datatype="number" min="1" max="255" name="info[price]" size="10" /> 元</td>
	</tr>
	<tr>
		<td width="25%" align="right"><strong>计量单位</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px">
		<select name="info[unit]">
		<option value="包" >包</option>
		<option value="本" >本</option>
		<option value="部" >部</option>
		<option value="打" >打</option>
		<option value="袋" >袋</option>
		<option value="单" >单</option>
		<option value="刀" >刀</option>
		<option value="吊" >吊</option>
		<option value="顶" >顶</option>
		<option value="对" >对</option>
		<option value="吨" >吨</option>
		<option value="幅" >幅</option>
		<option value="个" >个</option>
		<option value="根" >根</option>
		<option value="公斤" >公斤</option>
		<option value="公升" >公升</option>
		<option value="罐" >罐</option>
		<option value="毫米" >毫米</option>
		<option value="毫升" >毫升</option>
		<option value="盒" >盒</option>
		<option value="架" >架</option>
		<option value="件" >件</option>
		<option value="节" >节</option>
		<option value="具" >具</option>
		<option value="卷" >卷</option>
		<option value="卡" >卡</option>
		<option value="棵" >棵</option>
		<option value="颗" >颗</option>
		<option value="克" >克</option>
		<option value="块" >块</option>
		<option value="款" >款</option>
		<option value="厘米" >厘米</option>
		<option value="立方" >立方</option>
		<option value="立方根" >立方根</option>
		<option value="粒" >粒</option>
		<option value="辆" >辆</option>
		<option value="码" >码</option>
		<option value="枚" >枚</option>
		<option value="米" >米</option>
		<option value="面" >面</option>
		<option value="盆" >盆</option>
		<option value="片" >片</option>
		<option value="票" >票</option>
		<option value="平方厘米" >平方厘米</option>
		<option value="平方米" >平方米</option>
		<option value="平方英尺" >平方英尺</option>
		<option value="瓶" >瓶</option>
		<option value="千克" >千克</option>
		<option value="升" >升</option>
		<option value="束" >束</option>
		<option value="双" >双</option>
		<option value="台" >台</option>
		<option value="套" >套</option>
		<option value="条" >条</option>
		<option value="桶" >桶</option>
		<option value="头" >头</option>
		<option value="箱" >箱</option>
		<option value="英寸" >英寸</option>
		<option value="盏" >盏</option>
		<option value="张" >张</option>
		<option value="支" >支</option>
		<option value="只" >只</option>
		<option value="株" >株</option>
		<option value="组" >组</option>
		<option value="尊" >尊</option>
		<option value="座" >座</option>
		</select>
		</td>
	</tr>
	<tr>
		<td width="25%" align="right" valign="top"><strong>详细介绍</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px">
		<?php echo $form->fckeditor('content');?>
		</td>
	</tr>
	<tr>
		<td width="25%" align="right" valign="top"><strong>验 证 码</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px">
			 <input type="text" name="inputcheckcode" datatype="checkcode" size="6" /> &nbsp;<img src='<?php echo DIRCMS_PATH;?>api/imcode/checkcode.php' onClick="this.src='<?php echo DIRCMS_PATH;?>api/imcode/checkcode.php?M'+Math.random()*5;" title="看不清楚?点击更换验证码!" style="cursor:pointer" align="middle"></img> 
		</td>
	</tr>

<tr><td align="center" colspan="2"><input type="button" value="添 加" name="dosubmit" onClick="doSubmit(this);" class="input_sub" />
		&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="取 消" name="doreset" class="input_sub" /></td></tr>&nbsp;&nbsp;&nbsp;&nbsp;
</table>
</form>
<?php }?>
</div>
</div>


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