<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
<link href="images/style.css" rel=stylesheet type=text/css>
<link rel="stylesheet" rev="stylesheet" href="../include/calendar/calendar.css" type="text/css" media="all" />
<script type="text/javascript" src="../include/calendar.php"></script>
<script language=javascript>
function chkform(){
	if(document.form.comname.value==""){
		alert('请输入企业名称！');
		document.form.comname.focus();
		return false;
	}
	if(document.form.areaid.value==""){
		alert('请选择地区！');
		document.form.areaid.focus();
		return false;
	}
}
</script>
</head>
<body>
<h3><span><a href="<?=$_SERVER[PHP_SELF]?>">返回</a></span></h3>
<table width=100% border=0 align=center cellpadding=3 cellspacing=1 class=tableborder>
<form method=post onSubmit="return chkform();" name="form" action="">

<tr>
  <td align="right">店铺名称：</td>
  <td><input name=comname id=comname value="<?=$comname?>" size=60 maxLength=80></td>
</tr>
<tr>
  <td align="right">所在地区：</td>
  <td>
    <select name=areaid id="areaid">
      <option value=0>请选择地区</option>
      <?php
		echo $info_area;
	  ?>
    </select>
    </td>
</tr>
<tr>
  <td align="right">营业时间：</td>
  <td><?=$hours?>
    <input type="hidden" name="hours" id="hours" value="<?=$hours?>" ></td>
</tr>

<tr>
  <td align="right">电话：</td>
  <td><input name=phone type=text id=phone value="<?=$phone?>" maxLength=20></td>
</tr>
<tr>
  <td align="right">地址：</td>
  <td><input name=address type=text id=address value="<?=$address?>" size=60 maxLength=80></td>
</tr>
<tr>
  <td align="right">商家介绍：</td>
  <td><label for="content"></label>
    <textarea name="content" id="content" cols="45" rows="5"><?=$introduce?></textarea></td>
</tr>
<tr>
  <td align="right">消费提示：</td>
  <td><label for="textfield"></label>
    <input type="text" name="shoptip" id="shoptip" value="<?=$shoptip?>" size=80></td>
</tr>
<tr>
  <td align="right">平台分成比：</td>
  <td><input name=fc type=text id=fc value="<?=$com_cfg?>" size="3">% <span class="f99">按商家销售额的百分比收取平台服务费</span></td>
</tr>
<tr>
  <td align="right">短信剩余：</td>
  <td><span class="fe43 fb"><?=$sms_num?></span> <a href="com.php?act=add&type=sms&comid=<?=$comid?>" class="bor1">增减</a></td>
</tr>
<tr>
  <td align="right">积分剩余：</td>
  <td><span class="fe43 fb"><?=$jf_num?></span> <a href="com.php?act=add&type=credit&comid=<?=$comid?>" class="bor1">增减</a></td>
</tr>
<tr>
  <td align="right">店铺余额：</td>
  <td><span class="fe43 fb">￥<?=$userinfo[gold]?></span> <a href="com.php?act=com_tx&comid=<?=$comid?>" class="bor1">提现记录</a></td>
</tr>
<tr>  
  <td></td>
</tr>
<tr>
  <td align="right">销售总额：</td>
  <td><span class="fe43 fb">￥<?=$countnum['allmoneys']?></span></td>
</tr>
<tr>
  <td align="right">实收总额：</td>
  <td><span class="fe43 fb">￥<?=$countnum['sisomoneys']?></span> <span class="f99">实收总额=销售总额*优惠折扣比例</span></td>
</tr>
<tr>
  <td align="right">平台分成总额：</td>
  <td><span class="fe43 fb">￥<?=$countnum['sermoneys']?></span> <span class="f99">平台分成＝实收总额*平台分成比</span></td>
</tr>
<tr>
  <td align="right">商家实收入：</td>
  <td><span class="fe43 fb">￥<?=$countnum['sorumoneys']?></span> <span class="f99">商家实收入＝实收金额－平台分成总额</span></td>
</tr>
<tr>
  <td align="right">归属会员ID：</td>
  <td><input name=userid type=text id=userid value="<?=$userid?>" size=5></td>
</tr>
<tr>
  <td align="right">审核：</td>
  <td>
  <select name="is_check" id="is_check" >
	  <option value="1">审核通过</option>
	  <option value="0">取消审核</option>
  </select>
  </td>
</tr>
<tr>
  <td colspan="2" align="right">
  <div align="center">
    <input name=refer type=hidden id="refer" value=<?=$refer?>>
    <input type=hidden name=id value=<?=$id?>>
    <input type=hidden name=act value=update>
    <input type=submit name=submit value= 提交 >
  </div>  </td>
  </tr>
</form>
</table>
</body>
</html>