<?php

include template("manage_header");
?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="partner">
	<div class="dashboard" id="dashboard">
		<ul><?php 
echo mcurrent_partner(null);
?>
</ul>
	</div>
	<div id="content" class="clr mainwide">
        <div class="clr box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>Edit Partners</h2><b style="margin-left:20px;font-size:16px;">(<?php 
echo $partner['title'];
?>
)</b></div>
                <div class="sect">
                    <form id="login-user-form" method="post" action="/manage/partner/edit.php?id=<?php 
echo $partner['id'];
?>
">
					<input type="hidden" name="id" value="<?php 
echo $partner['id'];
?>
" />
<?php

include template("manage_header");
?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul><?php 
echo mcurrent_partner('index');
?>
</ul>
	</div>
    <div id="content" class="coupons-box clr mainwide">
		<div class="box clr">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>Partner</h2>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr><th width="350">Name</th><th width="120">Contacts</th><th width="130">Contact Number</th><th width="100">Date</th><th width="80">Operation</th></tr>
					<?php 
if (is_array($partners)) {
    foreach ($partners as $index => $one) {
        ?>
					<tr <?php 
        echo $index % 2 ? '' : 'class="alt"';
        ?>
<?php include template("manage_header");?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul><?php echo mcurrent_partner('index'); ?></ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>(<?php echo $team['product']; ?>)本次共消费<?php echo $c_count; ?>单,结算<?php echo $money; ?>元</h2>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
						<tr><th width="100" nowrap>编号</th><th width="450">项目名称</th><th width="160">购买者</th><th width="60" nowrap>密码</th><th width="100" nowrap>有效日期</th><th width="160">状态</th></tr>
					<?php if(is_array($coupons)){foreach($coupons AS $index=>$one) { ?>
						<tr <?php echo $index%2?'':'class="alt"'; ?>>
							<td><?php echo $one['id']; ?></td>
							<td><?php echo $one['team_id']; ?>&nbsp;(<a class="deal-title" href="/team.php?id=<?php echo $one['team_id']; ?>" target="_blank"><?php echo $teams[$one['team_id']]['title']; ?></a>)</td>
							<td nowrap><?php echo $users[$one['user_id']]['email']; ?><br/><?php echo $users[$one['user_id']]['username']; ?></td>
							<td><?php echo $one['secret']; ?></td>
							<td nowrap><?php echo date('Y-m-d', $one['expire_time']); ?></td>
							<td nowrap><?php if($one['consume']=='Y'){?>已消费<br/><?php echo date('Y-m-d H:i:s', $one['consume_time']); ?><?php } else if($one['expire_time']<time()) { ?>已过期<?php } else { ?>有效<?php }?></td>
						</tr>
					<?php }}?>
						<tr><td colspan="6"><?php echo $pagestring; ?></td></tr>
                    </table>
				</div>
Example #4
0
  function checknum(){
   var v =document.getElementById('div2');
   if(v.style.display=='none'){
     v.style.display='block';
   }else{
      v.style.display='none';
   }
   
  }
  </script>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="partner">
	<div class="dashboard" id="dashboard">
		<ul><?php echo mcurrent_partner('create'); ?></ul>
	</div>
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>新建商户</h2></div>
                <div class="sect">
                    <form id="login-user-form" method="post" action="/manage/partner/create.php" enctype="multipart/form-data" class="validator" name="myform">
						<div class="wholetip clear"><h3>1、登录信息</h3></div>
                        <div class="field">
                            <label>用户名</label>
                            <input type="text" size="30" name="username" id="partner-create-username" class="f-input f-hint" value="<?php echo $partner['username']; ?>" require="true" datatype="require" />
                        </div>
                        <div class="field password">
                            <label>登录密码</label>
Example #5
0
   }
   
  }
  </script>
  <script>
function cop(){
 var str=document.getElementById("settings-password").value;
 document.getElementById("partner-create-pass").value = str;
}
</script>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="partner">
	<div class="dashboard" id="dashboard">
		<ul><?php echo mcurrent_partner(null); ?></ul>
	</div>
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>编辑商户</h2><b style="margin-left:20px;font-size:16px;">(<?php echo $partner['title']; ?>)</b></div>
                <div class="sect">
    


                    <form id="login-user-form" method="post" action="/manage/partner/edit.php?id=<?php echo $partner['id']; ?>" enctype="multipart/form-data" class="validator"  name="myform">
					<input type="hidden" name="id" value="<?php echo $partner['id']; ?>" />
						<div class="wholetip clear"><h3>1、登录信息</h3></div>
                        <div class="field">
                            <label>用户名</label>
<?php

include template("manage_header");
?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="partner">
	<div class="dashboard" id="dashboard">
		<ul><?php 
echo mcurrent_partner('create');
?>
</ul>
	</div>
	<div id="content" class="clr mainwide">
        <div class="clr box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>Create New Partner</h2></div>
                <div class="sect">
                    <form id="login-user-form" method="post" action="/manage/partner/create.php">
						<div class="wholetip clr"><h3>1. Login Info</h3></div>
                        <div class="field">
                            <label>Username</label>
                            <input type="text" size="30" name="username" id="partner-create-username" class="f-input" value="<?php 
echo $partner['username'];
?>
" require="true" datatype="require" />
                        </div>
                        <div class="field password">
                            <label>Password</label>
<?php include template("manage_header");?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul><?php echo mcurrent_partner('readycalculate'); ?></ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>商户</h2>
					<ul class="filter"><li><form method="get">商户名称:<input type="text" name="ptitle" class="h-input" value="<?php echo htmlspecialchars($ptitle); ?>" >&nbsp;<select name="open" class="h-input"><?php echo Utility::Option($option_open, $open, '展示'); ?></select>&nbsp;<select name="city_id" class="h-input"><?php echo Utility::Option(option_category('city'), $city_id, '全部城市'); ?></select>&nbsp;<select name="group_id" class="h-input"><?php echo Utility::Option(option_category('partner'), $group_id, '全部分类'); ?></select>&nbsp;<input type="submit" value="筛选" class="formbutton"  style="padding:1px 6px;"/><form></li></ul>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr><th width="40">ID</th><th width="320">名称</th><th width="60">分类</th><th width="120">联系人</th><th width="130">电话号码</th><th width="60">展示</th><th width="40">排序</th><th width="100">操作</th></tr>
					<?php if(is_array($partners)){foreach($partners AS $index=>$one) { ?>
					<tr <?php echo $index%2?'':'class="alt"'; ?> id="team-list-id-<?php echo $one['id']; ?>">
						<td><?php echo $one['id']; ?></td>
						<td style="text-align:left;"><a class="deal-title" href="/manage/partner/edit.php?id=<?php echo $one['id']; ?>"><?php echo $one['title']; ?></a></td>
						<td nowrap><?php echo $groups[$one['group_id']]; ?><br/><?php echo $cities[$one['city_id']]; ?></td>
						<td nowrap><?php echo $one['contact']; ?></td>
						<td nowrap><?php echo $one['phone']; ?><br/><?php echo $one['mobile']; ?></td>
						<td nowrap><?php echo $one['open']; ?></td>
						<td nowrap><?php echo $one['head']; ?></td>
						<td class="op" nowrap><a href="/manage/partner/edit.php?id=<?php echo $one['id']; ?>">编辑</a>|<a href="/ajax/manage.php?action=partnerremove&id=<?php echo $one['id']; ?>" class="ajaxlink" ask="确定删除本商户?">删除</a><br /><a href="/manage/store/index.php?partner_id=<?php echo $one['id']; ?>" style="color:#f30;">查看门店</a><br /><a href="/manage/partner/calculate.php?partner_id=<?php echo $one['id']; ?>">结算<?php if($one['state']){?><cite style="color:#f30;">(待)</cite><?php }?></a></td>
					</tr>
					<?php }}?>