1、最土团购 购买页 用户称呼也需要填写(必填项)的实现方法 \include\template\team_buy.html
复制代码 代码如下:
<div class=”field username”>
<label>真实姓名</label>
<input type=”text” size=”15″ name=”realname” id=”settings-realname” class=”f-input” <!–{if $_SESSION[‘ali_add’]}–>value=”{$_SESSION[‘ali_add’][‘fullname’]}” <!–{else}–>value=”{$login_user[‘realname’]}”<!–{/if}–> require=”true” datatype=”require” /><span class=”inputtip”>请输入姓名或称呼(例:张先生)</span>
</div>
<div class=”field username”>
<label>手机号码</label>
<input type=”text” size=”30″ name=”mobile” id=”settings-mobile” class=”number” value=”{$login_user[‘mobile’]}” require=”true” datatype=”mobile” maxLength=”11″ /><span class=”inputtip”>请填写正确的手机号码(可为朋友代买)</span>
2、商家后台实现跟管理员差不多的信息,例如 用户名与联系电话 \include\template\biz_coupon.html
复制代码 代码如下:
<td nowrap>{$users[$one[‘user_id’]][’email’]}<br/>{$orders[$one[‘order_id’]][‘realname’]}({$users[$one[‘user_id’]][‘username’]})
TEL:{$users[$one[‘user_id’]][‘mobile’]}</td>
\biz\coupon.php
复制代码 代码如下:
$user_ids = Utility::GetColumn($coupons, ‘user_id’);
$users = Table::Fetch(‘user’, $user_ids);
$order_ids = Utility::GetColumn($coupons, ‘order_id’);
$orders = Table::Fetch(‘order’, $order_ids);
Hi, this is a comment. To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard. Commenter avatars come from Gravatar.