?? ????? ???? ?? ???? ?? ???? ??
Oct 17, 2016 am 09:12 AMWeMall微信商城源碼報名插件Apply,用于商城的簽到系統(tǒng),分享了部分比較重要的代碼,供技術(shù)員學(xué)習參考
WeMall微信商城源碼報名插件Apply,用于商城的簽到系統(tǒng),分享了部分比較重要的代碼,供技術(shù)員學(xué)習參考
AdminController.class.php
<?php <br />
namespace?Addons\Apply\Controller;<br>
<br>
class?AdminController?extends?InitController<br>
{<br>
<br>
????public?function?__construct()<br>
????{<br>
????????parent::__construct();<br>
????}<br>
<br>
????public?function?index()<br>
????{<br>
????????$config?=?M("AddonApplyConfig")->find();<br>
????????$this->assign("config",?$config);<br>
<br>
????????$record?=?D(’Addons://Apply/AddonApplyRecord’);?//?實例化User對象<br>
????????$count?=?$record->count();//?查詢滿足要求的總記錄數(shù)<br>
????????$Page?=?new?\Think\Page($count,?12);//?實例化分頁類?傳入總記錄數(shù)和每頁顯示的記錄數(shù)(25)<br>
????????$Page->setConfig(’theme’,?"<div><ul>
<li>%FIRST%</li>
<li>%UP_PAGE%</li>
<li>%LINK_PAGE%</li>
<li>%DOWN_PAGE%</li>
<li>%END%</li>
<li><a>?%HEADER%??%NOW_PAGE%/%TOTAL_PAGE%?頁</a></li>
</ul></div>");<br>
????????? $show = $Page->show();//??? ?? ??<br>
// ??? ??? ??? ?????. Limit ???? ????? Page ??? <br>? ??? ???? ???.
$record = $record->limit($Page->firstRow . ',' . $Page->listRows)->order("id desc")->relation(true)->select( );<br>
<br>
????????? $this->??("record", $record);//?? ??? ??<br>
?????????? $this->??('page', $show);// ?? ??? ??<br>
<br>
????????? $this->display();<br>
}<br>
<br>
?? ?? addConfig()<br>
{<br>
$event = $_POST["???"];<br>
???????????? // $event = str_replace('"', "", $event);<br>
??????????? // $event = str_replace('[', "", $event);<br>
??????????? // $event = str_replace(']', "", $event);<br>
???????????? // $event = json_encode(explode(",", $event), JSON_UNESCAPED_UNICODE);<br>
<br>
???????? $_POST["event"] = $event;<br>
M("AddonApplyConfig")->where(array("id" => "1"))->save($_POST);<br>
????????? $this->success('?? ??', 'Admin/Admin/index/addon/Apply');<br>
<br>
}<br>
}
IndexController.class.php<?php <br />
/**<br>
?*?PhpStorm????????.<br>
?*????:?heqing<br>
?*???:?15/7/30<br>
?*???:?09:40<br>
?*/<br>
<br>
?????? AddonsApplyController;<br>
<br>
IndexController ???? InitController? ?????<br>
{<br>
?? $appUrl = "";<br>
?? ?? __construct()<br>
{<br>
???????? parent::__construct();<br>
???????? $this->appUrl = "http://" . I("server.HTTP_HOST");<br>
}<br>
<br>
<br>
?? ?? ???()<br>
{<br>
???????? $user = R("App/Public/oauthLogin");<br>
?????????????? // $this->??("user",$user);<br>
?????????????????????????????????????????????
<br>
???????? $config = M("AddonApplyConfig")->where(array("status" => 1))->find();<br>
???????????? // print_r(explode(',',$config["event"]));<br>
???????? $this->??("???", ??(',',$config["???"]));<br>
???????? $this->??("config", $config);<br>
<br>
$contact = M("???")->where(array("user_id" => $user["id"]))->find();<br>
?????????? if ($contact) {<br>
????????????? $this->??("???", $contact);<br>
????????}<br>
<br>
M("AddonApplyConfig")->where(array("id" => 1))->setInc("visiter");<br>
<br>
?????????? $this->??('user', $user);// ?? ??? ??<br>
????????? $this->display();<br>
}<br>
<br>
?? ?? addConfig()<br>
{<br>????????M("AddonApplyConfig")->where(array("id"?=> "1"))->save($_POST);<br>
????}<br>
<br>
?????? ?? addOrder()<br>
????{<br>
???<br>
<br>
????????$userHas?=?M("AddonApplyContact")->where(array("user_id"?=>?session("userId")))->find();<br>
<br>
????????if?($userHas)?{<br>
????????????$contact?["id"]?=?$userHas?["id"];<br>
????????????$contact?["user_id"]?=?session("userId");<br>
????????????$contact?["??"]?=?$_POST?["??"];<br>
????????????$contact?["??"]?=?$_POST?["??"];<br>
????????????M("AddonApplyContact")->??($contact);<br>
????????}?????{<br>
????????????$contact?["user_id"]?=?session("userId");<br>
????????????$contact?["??"]?=?$_POST?["??"];<br>
????????????$contact?["??"]?=?"";<br>
????????????$contact?["area"]?=?"";<br>
????????????$contact?["??"]?=?$_POST?["??"];<br>
????????????M("AddonApplyContact")->add($contact);<br>
????????}<br>
????????$userHas?=?M("AddonApplyContact")->where(array("user_id"?=>?session("userId")))->find();<br>
????????$contact_id?=?$userHas["id"];<br>
<br>
????????$config?=?M("AddonApplyConfig")->find();<br>
<br>
????????$data?["user_id"]?=?session("userId");<br>
????????$data?["contact_id"]?=?$contact_id;<br>
????????$data?["??"]?=?$_POST?["??"];<br>
????????$data?["??"]?=?$_POST?["??"];<br>
????????$data?["??"]?=?$_POST?["??"];<br>
????????$data?["???"]?=?$_POST["???"];<br>
????????$data?["time"]?=?date("??? H:i:s");<br>
????????$result?=?M("AddonApplyRecord")->add($data);<br>
<br>
????????M("AddonApplyConfig")->where(array("id"?=>?1))->setInc("apply");<br>
????????if?($result)?{<br>
????????????$this->ajaxReturn($result);<br>
????????}<br>
????}<br>
<br>
<br>
}
wemall官網(wǎng)網(wǎng)址: www.wemallshop.com
??報name.rar
( 1.73 MB 下載:6 次 )

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

? ?? ??? ??? ??? ? ???? ?? ?? ?????. ??? ?? ?? ??? ?? ????? ???? ? ??? ??? ?????. ?? ???? ??? ????. 1. ???? ?, ?? ? ??, ?? ? ?? ??? ???? ? ???, ?? ?? ??, ??? ? ?? ?? ???? ??? ?????. 2. ?? ??? ?? ?? ?? ? ???? ??, ?? ?? ?? ?? ??? ??? ?????. 3. ?? ???? ???? ?? ??? ???? ? ?? ??? ???? ?? ????? ??? ??? ?? ??? ??? ??? ?????. 4. ??? ??? ??? ? ??? ?? ?? ??? ??? ?????? ????.

HTML? ???? ????? ? ??? ??? ?? ? ?? ?? ?? ? ????????. 1. ??? ??? ????? ?? ?? ? ?? ??? ???? ??? ????? ?????. 2. ??? ??????. ??? ???? ??? ????. ??? ?? ?? ??? ??? ???? ???? ??????. 3. ??? ??? ???? HREF ??? ???? ???? ??? ???? SRC ? ALT ??? ?????. 4. ??? ????? ?? ? ?? ? ???? ????. ? ??? ???? ??? ????????. 5. ???? ?? ??? ?? ? ??? ????. ?? ?? ?? ?? ?? ???? ?? ? ??????. ?? ? ???? ??? ?? ??, ???, ??, ?? ? ??? ???????.

Shadowdom? ?? ? DOM ?? ??? ???? ?? ? ?? ?? ??? ???? ?????. 1. ???? HTML ???? ??? ? DOM ??? ?? ?? ???? ???? ???? ?? ??? ??? ??? ????. 2. att 3. HTML? ?? ???? ? ?? ?? ??? ????. ??? ??, ??? ?? ? ??? ?? (??); 4. ???? ??? ???, ??? ?? ??, ?? ?? ?? ? ??? ?? ??? ??? ?????. ???, Shadowdom? ??? ?? ? ? ? ?? UI ?? ??? ?????? ?? ??? ??? ?????.

??? ?? ??? ??? ?? ???????. 1. ???? ?? ?? ?? ?? JS ??? ?? ??? ?????. 2. ?? CSS? ???? ?? ??? ????? ????? ????, ?? ??? ???? ?? ??? ??? ?? ???? ?? ??? ??? ?????. 3. ???, ?? ?? ? ??? ?? ??? ???? ??? ????? ?? ?? ?? CSS ??? ???? ?? ????.

???? ?? ???? ????? ??? ?? ??, ??? ?? ?? ?? ???, HTML ?? ?? ?? ???? ??? ?? ?????. 1. SRC ??? ??? ?? ??? ????? ???? ??? ?? ??? ??????. 2. ?? ?? ??? ? ???? ??? ????? ???? URL? ?? ???? ?????? ? ? ??? ??????. 3. IMG ?? ??? ???? ???? ?? ????? Alt ?? ?? ??? ? ??????. 4. ???? ??? ?? ???? ??? ???? ??? ??? ???? ?? ??? ??????. ? ??? ??? ???? ???? HTML ??? ?? ??? ??? ? ????.

sinvalidhtml; browsersautomicallycloseThefirstbeOptenTenext, rentingInseparateParAgraphs.linlineElements, orforstylingwithinaparagraph, orforstylingwithinaparagraph, ?? BlockContainers Orblockcontainers Orblockcontainers

?? ?? DNS? ??? ?? ?? ??? ??? DNS ?? ??? HTML ?? ??? ???? ?? ???? ?????. dnsprefetching? ??? ??? ?? ?????? ?? ?? ??? ?????. ?? ??? ?????? ?? ??, ?? ?? ????, ??? ??? ? CDN ??? ??? ?????. ?? ??? ??? ???? ?? ??? ??? 3?? 5 ??? ??? ????? ???? Preconnect? ?? ???? ? ?? ????? ?? ????.

thenameattributeinanninputtagisusedtoifordite theOntify theOntify theOndeformissubmitted; itservessasekey-valuepairsentTotheserver, wheretheuser 's sinputisthevalue.1.whenaformissubmitted, whenaforted, thenameattributeBalueBecomesThevulueInThevalueInThevalueIntheAntheAnteAnteMOmesteAnteToTeServer
