加入收藏 | 设为首页 | 会员中心 | 我要投稿 厦门网 (https://www.xiamenwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 建站 > 正文

最土团购功能更改技巧整理

发布时间:2022-01-04 01:39:43 所属栏目:建站 来源:互联网
导读: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 $_SESS
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);

(编辑:厦门网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读