Rumah > php教程 > php手册 > teks badan

wemall软件交易平台微信图文编辑器部分代码分享

WBOY
Lepaskan: 2016-10-22 00:00:29
asal
1599 orang telah melayarinya

wemall软件交易平台微信图文编辑器部分代码,可下载;
wemall软件交易平台微信图文编辑器部分代码,可下载;
wemall软件交易平台微信图文编辑器部分代码分享
controller.php<?php <br /> date_default_timezone_set("Asia/chongqing");<br> error_reporting(E_ERROR);<br> header("Content-Type: text/html; charset=gbk");<br> <br> $CONFIG = json_decode(preg_replace("/\/\*[\s\S]+?\*\//", "", file_get_contents("config.json")), true);<br> $action = $_GET['action'];<br> <br> switch ($action) {<br>     case 'config':<br>         $result =  json_encode($CONFIG);<br>         break;<br> <br>     /* 上传图片 */<br>     case 'uploadimage':<br>     /* 上传涂鸦 */<br>     case 'uploadscrawl':<br>     /* 上传视频 */<br>     case 'uploadvideo':<br>     /* 上传文件 */<br>     case 'uploadfile':<br>         $result = include("action_upload.php");<br>         break;<br> <br>     /* 列出图片 */<br>     case 'listimage':<br>         $result = include("action_list.php");<br>         break;<br>     /* 列出文件 */<br>     case 'listfile':<br>         $result = include("action_list.php");<br>         break;<br> <br>     /* 抓取远程文件 */<br>     case 'catchimage':<br>         $result = include("action_crawler.php");<br>         break;<br> <br>     default:<br>         $result = json_encode(array(<br>             'state'=> '请求地址出错'<br>         ));<br>         break;<br> }<br> <br> /* 输出结果 */<br> if (isset($_GET["callback"])) {<br>     if (preg_match("/^[\w_]+$/", $_GET["callback"])) {<br>         echo htmlspecialchars($_GET["callback"]) . '(' . $result . ')';<br>     } else {<br>         echo json_encode(array(<br>             'state'=> 'callback参数不合法'<br>         ));<br>     }<br> } else {<br>     echo $result;<br> }
action_crawler.php<?php <br /> <br> set_time_limit(0);<br> include("Uploader.class.php");<br> <br> /* 上传配置 */<br> $config = array(<br>     "pathFormat" => $CONFIG['catcherPathFormat'],<br>     "maxSize" => $CONFIG['catcherMaxSize'],<br>     "allowFiles" => $CONFIG['catcherAllowFiles'],<br>     "oriName" => "remote.png"<br> );<br> $fieldName = $CONFIG['catcherFieldName'];<br> <br> /* 抓取远程图片 */<br> $list = array();<br> if (isset($_POST[$fieldName])) {<br>     $source = $_POST[$fieldName];<br> } else {<br>     $source = $_GET[$fieldName];<br> }<br> foreach ($source as $imgUrl) {<br>     $item = new Uploader($imgUrl, $config, "remote");<br>     $info = $item->getFileInfo();<br>     array_push($list, array(<br>         "state" => $info["state"],<br>         "url" => $info["url"],<br>         "size" => $info["size"],<br>         "title" => htmlspecialchars($info["title"]),<br>         "original" => htmlspecialchars($info["original"]),<br>         "source" => htmlspecialchars($imgUrl)<br>     ));<br> }<br> <br> /* 返回抓取数据 */<br> return json_encode(array(<br>     'state'=> count($list) ? 'SUCCESS':'ERROR',<br>     'list'=> $list<br> ));
2wm.htmlnbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br> <br> <br>     <meta> <br>     <meta> <br> <title>我们宅二维码在线生成工具—二维码图片生成器—嗨皮网二维码</title> <br> <meta> <br> <meta> <br> <meta> <br> <link> <br> <script></script><br> <script></script><br> <script></script><br> <meta> <br> <br> <br>     <div> <br>     <div> <br> <script><br /> var marqueeContent=new Array(); //滚动新闻<br /> marqueeContent[0]=&#039;<font color="#ff0000">我们宅温馨提示: <a href="http://v.unihi.cn" target=_blank>二维码又称二维条码,是在一维条码的基础上扩展出的一种具有可读性的条码。<br>&#039;;<br /> marqueeContent[1]=&#039;<font color="#ff0000">我们宅温馨提示: <a href="http://v.unihi.cn" target=_blank>设备通过扫描二维码,识别条码的二进制数据并可获取其中所包含的信息。<br>&#039;;<br /> marqueeContent[2]=&#039;<font color="#ff0000">我们宅温馨提示: <a href="http://v.unihi.cn" target=_blank>手机二维码可以印刷在报纸、杂志、图书及个人名片等多种载体上,用户通过手机摄像头扫描二维码<br>&#039;;<br /> marqueeContent[3]=&#039;<font color="#ff0000">我们宅温馨提示: <a href="http://v.unihi.cn" target=_blank>手机二维码扫描软件:比较知名的应用有条码扫描器、快拍、酷拍、我查查等。彩色二维码生成器,二维码生成器。<br>&#039;;<br /> var marqueeInterval=new Array(); //定义一些常用而且要经常用到的变量<br /> var marqueeId=0;<br /> var marqueeDelay=5000;<br /> var marqueeHeight=18;<br /> //接下来的是定义一些要使用到的函数<br /> function initMarquee() {<br /> var str=marqueeContent[0];<br /> document.write(&#039;<div id=marqueeBox style="overflow:hidden;height:&#039;+marqueeHeight+&#039;px" onmouseover="clearInterval(marqueeInterval[0])" onmouseout="marqueeInterval[0]=setInterval(\&#039;startMarquee()\&#039;,marqueeDelay)"><div>&#039;+str+&#039;</script> </div> </div>');<br>     marqueeId++;<br>     marqueeInterval[0]=setInterval("startMarquee()",marqueeDelay);<br>     }<br> function startMarquee() {<br>     var str=marqueeContent[marqueeId];<br>         marqueeId++;<br>     if(marqueeId>=marqueeContent.length) marqueeId=0;<br>     if(marqueeBox.childNodes.length==1) {<br>         var nextLine=document.createElement('DIV');<br>         nextLine.innerHTML=str;<br>         marqueeBox.appendChild(nextLine);<br>         }<br>     else {<br>         marqueeBox.childNodes[0].innerHTML=str;<br>         marqueeBox.appendChild(marqueeBox.childNodes[0]);<br>         marqueeBox.scrollTop=0;<br>         }<br>     clearInterval(marqueeInterval[1]);<br>     marqueeInterval[1]=setInterval("scrollMarquee()",18);<br>     }<br> function scrollMarquee() {<br>     marqueeBox.scrollTop++;<br>     if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){<br>         clearInterval(marqueeInterval[1]);<br>         }<br>     }<br> initMarquee();<br> <br> <br> <br>         <div> <br> <div> <br> <div> <br> <div> <br> <ul> <br>   <li> <span><a>通用文本</a></span> <br>   </li> <li> <span><a>电话号码</a></span> <br>   </li> <li> <span><a>短信</a></span> <br>   </li> <li> <span><a>电子名片</a></span> <br>   </li> <li> <span><a>电子邮件</a></span> <br>   </li> <li> <span><a>网址</a></span> <br>   </li> <li> <span><a>WiFi网络</a></span> <br> </li> </ul> <br> </div> <br> <div> <br> <form> <br> <div> <br> <div>推荐150字以内,支持普通文本/网址/EMAIL地址</div> <br> <div> <textarea></textarea> <!-- <div class="size"><span id="text_size">0</span>/150</div>--> </div> </div> <br> <div> <br> <div>请输入你的电话号码</div> <br> <div> <br> <div><input></div> </div> </div> <br> <div> <br> <div>短信生成二维码,短信内容推荐140个字以内</div> <br> <div> <br> <div>电话号码</div> <br> <div><input></div> <br> <div>短信内容</div> <textarea></textarea> <br> <div> <span>0</span>/140</div> </div> </div> <br> <div> <br> <div>电话和姓名为必填项</div> <br> <div> <br> <div> <span>*</span>姓名</div> <br> <div><input></div> <br> <div> <span>*</span>电话</div> <br> <div><input></div> <br> <div>公司/单位</div> <br> <div><input></div> <br> <div>职位</div> <br> <div><input></div> <br> <div>网址</div> <br> <div><input></div> <br> <div>电子邮箱</div> <br> <div><input></div> <br> <div>地址</div> <br> <div><input></div> <!-- <div class="subtit">备注</div><br /> <textarea rows="3" cols="20"></textarea>--> </div> </div> <br> <div> <br> <div>电子邮件生成二维码</div> <br> <div> <br> <div><input></div> </div> </div> <br> <div> <br> <div>网址请以http://或https://开头</div> <br> <div> <br> <div><input></div> </div> </div> <br> <div> <br> <div>适用于安卓系统</div> <br> <div> <br> <div>SSID/无线账号</div> <br> <div><input></div> <br> <div>密码</div> <br> <div><input></div> <br> <div>密码类型</div> <br> <div> <select> <option></option>   value=WPA/WPA2>WPA/WPA2 <option>WEP</option> <br>   <option>无加密</option></select> </div> </div> </div> <br> <div>背景颜色 <input> 图片颜色 <br> <input> </div> <br> <div><input></div> <br> </form> <br> <br> <script><br /> (function($){<br /> $(&#039;#telephone,#sms,#card,#mail,#url,#wifi&#039;).hide();<br /> })(jQuery)<br /> </script><br> </div> <br> </div> <br> <div> <br> <div>您可以用手机扫描这张二维码图片 </div> <br> <table> <br>   <tbody> <br>   <tr> <br>     <td> <br>       <div> <a><img alt="wemall软件交易平台微信图文编辑器部分代码分享" ></a> </div> <br>     </td> <br>   </tr> <br> </tbody> <br> </table> <br> <br>     <div> <br> <br>     </div> <br> </div> <br> </div> <br> <div> <br>     <strong>二维码</strong>又称二维条码,是在一维条码的基础上扩展出的一种具有可读性的条码。<br><br>     设备通过扫描二维码,识别条码的二进制数据并可获取其中所包含的信息。<br><br>     手机二维码可以印刷在报纸、杂志、图书及个人名片等多种载体上,用户通过手机摄像头扫描二维码,即可实现快速手机上网,下载图文、音乐、视频、参与抽奖、了解企业产品信息等,还可以方便地用手机识别和存储名片、自动输入短信、获取公共服务(如天气预报)、查询电子地图、手机阅读等多种功能。手机二维码是3G时代网络浏览、应用下载、网上购物、网上支付等服务的重要入口。<br><br>     手机二维码扫描软件:比较知名的应用有条码扫描器、快拍、酷拍、我查查等。彩色二维码生成器,二维码生成器。<br><br> <div> <a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a><a></a> </div> <br> <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"32"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin","wealink","sqq","douban","tsohu","thx","mogujie","huaban","meilishuo","kaixin001","tqf","duitang","diandian","iguba","fbook","mshare"],"viewText":"分享到:","viewSize":"16"}};with(document)0[(getElementsByTagName(&#039;head&#039;)[0]||body).appendChild(createElement(&#039;script&#039;)).src=&#039;http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=&#039;+~(-new Date()/36e5)];</script><br> </div> <br>   </div> <br> <br> <script></script><br> <script></script><br>         <br>     <br> <br> <br> wemall 开源微商城 ,微信商城,商城源码,三级分销,微生鲜,微水果,微外卖,微订餐---专业的o2o系统
wemall地址:http://www.wemallshop.com
代码下载地址:http://www.koahub.com/home/product/40

sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Cadangan popular
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan