国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

WeMall微信商城源碼活動(dòng)報(bào)名插件代碼詳情

php中文網(wǎng)
發(fā)布: 2016-10-09 08:32:16
原創(chuàng)
1434人瀏覽過

WeMall微信商城源碼插件活動(dòng)報(bào)名代碼是用于商業(yè)推廣的比較有效的方式,分享了部分比較重要的代碼,供技術(shù)員學(xué)習(xí)參考,商家可自由設(shè)置報(bào)名項(xiàng)目,活動(dòng)時(shí)間,報(bào)名內(nèi)容

WeMall微信商城源碼插件活動(dòng)報(bào)名代碼是用于商業(yè)推廣的比較有效的方式,分享了部分比較重要的代碼,供技術(shù)員學(xué)習(xí)參考,商家可自由設(shè)置報(bào)名項(xiàng)目,活動(dòng)時(shí)間,報(bào)名內(nèi)容

代碼詳情地址:http://addon.wemallshop.com/Product/addonList/menu_id/1 或 www.wemallshop.com


AdminController.class
namespace?Addons\Apply\Controller;

class?AdminController?extends?InitController
{

????public?function?__construct()
????{
????????parent::__construct();
????}

????public?function?index()
????{
????????$config?=?M("AddonApplyConfig")->find();
????????$this->assign("config",?$config);

????????$record?=?D('Addons://Apply/AddonApplyRecord');?//?實(shí)例化User對(duì)象
????????$count?=?$record->count();//?查詢滿足要求的總記錄數(shù)
????????$Page?=?new?\Think\Page($count,?12);//?實(shí)例化分頁類?傳入總記錄數(shù)和每頁顯示的記錄數(shù)(25)
????????$Page->setConfig('theme',?"

");
????????$show?=?$Page->show();//?分頁顯示輸出
????????//?進(jìn)行分頁數(shù)據(jù)查詢?注意limit方法的參數(shù)要使用Page類的屬性
????????$record?=?$record->limit($Page->firstRow?.?','?.?$Page->listRows)->order("id?desc")->relation(true)->select();

????????$this->assign("record",?$record);//?賦值數(shù)據(jù)集
????????$this->assign('page',?$show);//?賦值分頁輸出

????????$this->display();
????}

????public?function?addConfig()
????{
????????$event?=?$_POST["event"];
????????//?$event?=?str_replace('"',?"",?$event);
????????//?$event?=?str_replace('[',?"",?$event);
????????//?$event?=?str_replace(']',?"",?$event);
????????//?$event?=?json_encode(explode(",",?$event),?JSON_UNESCAPED_UNICODE);

????????$_POST["event"]?=?$event;
????????M("AddonApplyConfig")->where(array("id"?=>?"1"))->save($_POST);
????????$this->success('修改成功',?'Admin/Admin/index/addon/Apply');

????}
}
IndexController.class

namespace?Addons\Apply\Controller;

class?IndexController?extends?InitController
{
????public?$appUrl?=?"";
????public?function?__construct()
????{
????????parent::__construct();
????????$this->appUrl?=?"http://"?.?I("server.HTTP_HOST");
????}


????public?function?index()
????{
????????$user?=?R("App/Public/oauthLogin");
????????//?$this->assign("user",$user);
????????

????????$config?=?M("AddonApplyConfig")->where(array("status"?=>?1))->find();
????????//?print_r(explode(',',$config["event"]));
????????$this->assign("event",?explode(',',$config["event"]));
????????$this->assign("config",?$config);

????????$contact?=?M("Contact")->where(array("user_id"?=>?$user["id"]))->find();
????????if?($contact)?{
????????????$this->assign("contact",?$contact);
????????}

????????M("AddonApplyConfig")->where(array("id"?=>?1))->setInc("visiter");

????????$this->assign('user',?$user);//?賦值分頁輸出
????????$this->display();
????}

????public?function?addConfig()
????{
????????M("AddonApplyConfig")->where(array("id"?=>?"1"))->save($_POST);
????}

????public?function?addOrder()
????{
???

????????$userHas?=?M("AddonApplyContact")->where(array("user_id"?=>?session("userId")))->find();

????????if?($userHas)?{
????????????$contact?["id"]?=?$userHas?["id"];
????????????$contact?["user_id"]?=?session("userId");
????????????$contact?["name"]?=?$_POST?["name"];
????????????$contact?["address"]?=?$_POST?["address"];
????????????M("AddonApplyContact")->save($contact);
????????}?else?{
????????????$contact?["user_id"]?=?session("userId");
????????????$contact?["name"]?=?$_POST?["name"];
????????????$contact?["city"]?=?"";
????????????$contact?["area"]?=?"";
????????????$contact?["address"]?=?$_POST?["address"];
????????????M("AddonApplyContact")->add($contact);
????????}
????????$userHas?=?M("AddonApplyContact")->where(array("user_id"?=>?session("userId")))->find();
????????$contact_id?=?$userHas["id"];

????????$config?=?M("AddonApplyConfig")->find();

????????$data?["user_id"]?=?session("userId");
????????$data?["contact_id"]?=?$contact_id;
????????$data?["name"]?=?$_POST?["name"];
????????$data?["phone"]?=?$_POST?["phone"];
????????$data?["note"]?=?$_POST?["note"];
????????$data?["event"]?=?$_POST["event"];
????????$data?["time"]?=?date("Y-m-d?H:i:s");
????????$result?=?M("AddonApplyRecord")->add($data);

????????M("AddonApplyConfig")->where(array("id"?=>?1))->setInc("apply");
????????if?($result)?{
????????????$this->ajaxReturn($result);
????????}
????}


}Index_indexnbsp;html>


????
????
????
????{$config.name}
????
????
????
????
????
????
????
????
????
????

????<script></script>
????<script></script>

????



????

????????

????????????

????????????????
WeMall微信商城源碼活動(dòng)報(bào)名插件代碼詳情

????????????????

????????????????????{$user.username}
????????????????????會(huì)員ID:?{$user.id}
????????????????

????????????

????????????

???????????????? ???????????????????href="">累計(jì)報(bào)名{$config.apply}
???????????????? ???????????????????href="">訪問量{$config.visiter}
????????????

????????

????

????

????????

????????????

    ????????????????

  • ????????????????????

    ????????????????????????

    ????????????????????????????
    項(xiàng)目:
    {$config.event}
    ????????????????????????

    ????????????????????

    ????????????????

  • ????????????????

  • ????????????????????

    ????????????????????????

    ????????????????????????????
    時(shí)間:
    {$config.time_range}
    ????????????????????????

    ????????????????????

    ????????????????

  • ????????????????

  • ????????????????????

    ????????????????????????

    ????????????????????????????
    項(xiàng)目介紹:
    {$config.introduce}
    ????????????????????????

    ????????????????????

    ????????????????

  • ????????????

????????

????

????

????
WeMall微信商城源碼活動(dòng)報(bào)名插件代碼詳情


????

????
?????????style="left:?0px;?bottom:?0px;?z-index:?3000;?position:?fixed;?display:?none;width:?100%;">
????????

????????????

????????????????
WeMall微信商城源碼活動(dòng)報(bào)名插件代碼詳情

????????????

????????????

????????????????

    ????????????????????

  • ????????????????????????
    姓名

    ????????????????????????

    ????????????????????????????
    ????????????????????????

    ????????????????????

  • ????????????????????

  • ????????????????????????
    手機(jī)

    ????????????????????????

    ????????????????????????????
    ????????????????????????

    ????????????????????

  • ????????????????????

  • ????????????????????????
    地址

    ????????????????????????

    ????????????????????????????
    ????????????????????????

    ????????????????????

  • ????????????????????

  • ????????????????????????
    項(xiàng)目

    ????????????????????????

    ????????????????????????????
    ????????????????????????????
    ????????????????????????

    ????????????????????

  • ????????????????????

  • ????????????????????????
    備注

    ????????????????????????

    ????????????????????????????
    ????????????????????????

    ????????????????????

  • ????????????????

????????????


????????????

???????????????? ???????????????????style="display:?none;">

????????????????

???????????????????? ???????????????????????????style="display:?none;?width:?100%;">
???????????????????? ???????????????????????onclick="submitOrder()">提交
????????????????

????????????


????????

????


<script><br /> function submitApply(){<br /> $(&#039;#cover2&#039;).show();<br /> $(&#039;#join_box&#039;).show();<br /> }<br /> function hidePop(){<br /> $("#join_box").hide();<br /> $("#cover2").hide();<br /> }<br /> var submitFlag = true;<br /> function submitOrder(){<br /> if (submitFlag == false) {<br /> alert("請(qǐng)不要重復(fù)操作!");<br /> return;<br /> };<br /> var name = $(&#039;#name&#039;).val();<br /> var phone = $(&#039;#phone&#039;).val();<br /> var event = $(&#039;#event&#039;).val();<br /> var note = $(&#039;#note&#039;).val();<br /> var address = $(&#039;#address&#039;).val();<br /> <br /> <br /> if (name.length == 0 || phone.length == 0) {<br /> alert("請(qǐng)核對(duì)輸入的信息!");<br /> return;<br /> };<br /> submitFlag = false;<br /> <br /> $.ajax({<br /> type: "post",<br /> url: "{:u_addons(&#039;Apply://Index/addOrder&#039;)}",<br /> data: {<br /> name: name,<br /> phone: phone,<br /> event: event,<br /> note: note,<br /> address: address<br /> },<br /> success: function (data) {<br /> if(data){<br /> hidePop();<br /> alert("報(bào)名成功!");<br /> location.reload();<br /> }<br /> },<br /> beforeSend: function () {<br /> $(&#039;#page_tag_load&#039;).show();<br /> },<br /> complete: function () {<br /> $(&#039;#page_tag_load&#039;).hide();<br /> submitFlag = true;<br /> }<br /> <br /> });<br /> }<br /> </script>

KoaHub.js -- 基于 Koa.js 平臺(tái)的 Node.js web 快速開發(fā)框架
官網(wǎng):http://js.koahub.com
WeMall微信商城源碼活動(dòng)報(bào)名插件代碼詳情

微信app下載
微信app下載

微信是一款手機(jī)通信軟件,支持通過手機(jī)網(wǎng)絡(luò)發(fā)送語音短信、視頻、圖片和文字。微信可以單聊及群聊,還能根據(jù)地理位置找到附近的人,帶給大家全新的移動(dòng)溝通體驗(yàn),有需要的小伙伴快來保存下載體驗(yàn)吧!

下載
來源:php中文網(wǎng)
本文內(nèi)容由網(wǎng)友自發(fā)貢獻(xiàn),版權(quán)歸原作者所有,本站不承擔(dān)相應(yīng)法律責(zé)任。如您發(fā)現(xiàn)有涉嫌抄襲侵權(quán)的內(nèi)容,請(qǐng)聯(lián)系admin@php.cn
最新問題
開源免費(fèi)商場(chǎng)系統(tǒng)廣告
最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板
關(guān)于我們 免責(zé)申明 意見反饋 講師合作 廣告合作 最新更新
php中文網(wǎng):公益在線php培訓(xùn),幫助PHP學(xué)習(xí)者快速成長(zhǎng)!
關(guān)注服務(wù)號(hào) 技術(shù)交流群
PHP中文網(wǎng)訂閱號(hào)
每天精選資源文章推送
PHP中文網(wǎng)APP
隨時(shí)隨地碎片化學(xué)習(xí)
PHP中文網(wǎng)抖音號(hào)
發(fā)現(xiàn)有趣的

Copyright 2014-2025 http://www.miracleart.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號(hào)