<?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>
<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><a href="member/index.php?mod=yp&file=yp&action=product">产品管理</a></li>
	<li class="active"><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="news">
<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"><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"><strong>开始日期</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px"><?php echo $form->datetime('start');?></td>
	</tr>
	<tr>
		<td width="25%" align="right"><strong>截止日期</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px"><?php echo $form->datetime('end');?></td>
	</tr>
	<tr>
		<td width="25%" align="right"><strong>信息来源</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px">
		<input type="text" size="24" value="<?php echo $ypinfo['name'];?>" datatype="max" max="80"  name="info[copyfrom]" />
		</td>
	</tr>
	<tr>
		<td width="25%" align="right"><strong>原价</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px">
		<input type="text" size="10" datatype="number"  name="info[price]" /> 元
		</td>
	</tr>
	<tr>
		<td width="25%" align="right"><strong>折扣价</strong>：</td>
		<td align="left" valign="top" style="padding-left:10px">
		<input type="text" size="10" datatype="number"  name="info[discountprice]" /> 元
		</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" 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;" width="70" height="25" 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>
