原创 完整的thinphp+phpexcel實現excel報表的輸出(有圖有效果)

轉自:http://blog.csdn.net/jimlong/article/details/8606005 準備工作:1.下載phpexcel1.7.6類包;2.解壓至TP框架的ThinkPHP\Vendor目錄下,改類包文件夾名爲P

原创 thinkphp+js記錄讀取用戶名功能

先把用戶名寫到cookie裏 if($_POST['tousernamea']==1){cookie('tousernamea',$_POST['username'],60*60*24*365);}<span style="font-fa

原创 jquery控制加載更多效果

轉自論壇的一位大手,wzhiyuan 詳情出自這裏:http://bbs.csdn.net/topics/390767447 <!DOCTYPE html> <html xmlns="http://www.w3.org/199

原创 windeows平臺下搭建svn步驟

首先下載服務端:推薦visualSVN,好處是已經集成了apache,權限管理等功能,不用在使用命令行一步一步的操作,很方便,地址是: https://www.visualsvn.com/downloads/ 選擇第三個,主要是32位還是

原创 PHP RSA加解密示例

轉自:http://orangeholic.iteye.com/blog/2161771 參考:http://blog.csdn.net/clh604/article/details/20224735 1.生成密鑰和公鑰

原创 php獲取某天所在周的第一天和最後一天時間的方法

轉自:http://www.7zhang.com/html/84880.html <html> <head> <title>計算一週開始結束日期</title> </head> <body> <form method="post" act

原创 php取當天的0點和23點59分59秒的時間戳方法

$year = date("Y");$month = date("m");$day = date("d");$start = mktime(0,0,0,$month,$day,$year);//當天開始時間戳$end= mktime(23

原创 微信支付成功後自動跳轉

轉自:http://blog.sina.com.cn/s/blog_6f145be10102ve5h.html 微信支付分爲四步: 1、獲取code 2、獲取openid 3、獲取相應數據得到商品訂單數組 4、支付返回(js 判斷) i

原创 判斷二維數組是否存在變量

$exist = 1; foreach($chongfu as $value){ if(in_array($ooinfo[$i]['orders']['orderid'],$value)){ $exist =

原创 js最新手機號碼、身份證正則表達式

轉自:http://caibaojian.com/regexp-example.html 正則表達式(regular expression)是一個描述字符模式的對象。使用正則表達式可以進行強大的模式匹配和文本檢索與替換功能。 身份證

原创 js 判斷所選時間(或者當前時間)是否在某一時間段

轉自:http://www.cnblogs.com/vincent_ds/archive/2012/09/13/2683755.html var time_range = function (beginTime, endTime, now

原创 做新項目的幾點注意事項

1.一定要先問好側重點在哪,不能憑自己的想象弄(比如最需要的功能什麼的)。 2.多在腦中過濾細節,結合實際(對接方面,數據格式統一)。 3.對工作量的評估儘量長。 4.每一個細節儘量做好,沒做好一定要留下記號。 5.不要在沒有需求的地方因

原创 js驗證碼

轉自:http://espace.iteye.com/blog/202418<pre name="code" class="html"><pre name="code" class="js"><!DOCTYPE html PUBLIC "

原创 利用微信jssdk 分享給朋友代碼(一通百通)

先下載jssdk的demo php的<?php require_once "jssdk.php"; $jssdk = new JSSDK("appid", "appsecret"); $signPackage = $jssdk->GetS

原创 設置html頁面不讓瀏覽器緩存的方法

<span style="color: rgb(85, 85, 85); font-family: 宋體, 'Arial Narrow', arial, serif; font-size: 14px; line-height: 28px;