<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
<link href=images/style.css rel=stylesheet type=text/css>
<script language="JavaScript" src="js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="../include/calendar.php"></script>
<link rel="stylesheet" rev="stylesheet" href="../include/calendar/calendar.css" type="text/css" media="all" />
<body>
<table width=100% border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>
<form method="POST" name="search">
  <tr>
    <td align="center" class="tablerow">
    开始日期：<input name="begindate" type="text" id="begindate" size="12" value="<?=$begindate?>" onClick="return showCalendar('begindate', '%Y-%m-%d', false, false, 'begindate');" />&nbsp;&nbsp;截止日期：<input name="enddate" type="text" id="enddate" size="12" value="<?=$enddate?>" onClick="return showCalendar('enddate', '%Y-%m-%d', false, false, 'enddate');" />&nbsp;&nbsp;
    <input name="payid" type="checkbox" id="payid" value="1" <? if($payid==1){ ?>checked<?}?>>
    <label for="payid">仅限店内直付</label>    
    &nbsp;&nbsp;<input type="submit" name="search" value="查 询"></td>
  </tr>
  </form>
</table>
<h3>商家佣金汇总记录&nbsp;<? if(!empty($begindate) || !empty($enddate)){ ?>(<?=$begindate?> - <?=$enddate?>)<? } ?></h3>
<table width=100% border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>
            <tr class="bgs">
                <td bgcolor="#CED4E8" height=25>商家ID</td>
                <td bgcolor="#CED4E8">商家名称</td>
                <td bgcolor="#CED4E8">实收金额(含佣金)</td>
                <td bgcolor="#CED4E8"><?=$CFG[lejuan]?>金额</td>
                <td bgcolor="#CED4E8">平台佣金比例</td>
                <td bgcolor="#CED4E8">平台佣金</td>
            </tr>
			<?php
			foreach($exchanges AS $row)
			{
			?>
            <tr bgcolor=#FFFFFF align=center>             
            <td><?=$row[comid]?></td>
            <td><?=$row[comname]?></td>
            <td>￥<?=$row[all_value]?></td>
            <td>￥<?=$row[all_lej]?></td>
            <td><?=$row[fc]?>%</td>
            <td>￥<?=$row[all_fc]?></td>
            </tr>
			<?}?>			
          <tr bgcolor=#FFFFFF align=left>
		  <td colspan="16">
		     &nbsp;&nbsp;&nbsp;&nbsp;
		  <? include tpl('page');?></td>
		  </tr>
		</table>
		
</body>
</html>