2016年3月20日 星期日
2014年7月7日 星期一
2014 / 07 / 07
MS SQL 判斷資料庫 是否存在
MySQL 部分 - 參考語法
create database if not exists `dbname`;
DROP TABLE IF EXISTS `tbname`;
CREATE TABLE `tbname`(...)
PHP 物件導向
http://expect7.pixnet.net/blog/post/38682696
PHP全局變數
http://echoright.blog.51cto.com/151903/87695
PHP 變數範圍(GOOD)
http://coyanlee.blogspot.tw/2012/04/php-local-global-static-parameter-scope.html
Mysql Join語法
http://blog.wu-boy.com/2009/01/mysqlleft-right-inner-outer-join-%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95/
MySql Stored procedure
http://ithelp.ithome.com.tw/question/10032363
http://expect7.pixnet.net/blog/post/38682696
PHP全局變數
http://echoright.blog.51cto.com/151903/87695
PHP 變數範圍(GOOD)
http://coyanlee.blogspot.tw/2012/04/php-local-global-static-parameter-scope.html
Mysql Join語法
http://blog.wu-boy.com/2009/01/mysqlleft-right-inner-outer-join-%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95/
MySql Stored procedure
http://ithelp.ithome.com.tw/question/10032363
2014年6月10日 星期二
2014 / 06 / 10 Discuz 有關自訂積分 -> 用戶統計表
表名:pre_common_member_count
UPdate:
UPDATE `pre_common_member_count` SET `uid`=[value-1],`extcredits1`=[value-2],`extcredits2`=[value-3],`extcredits3`=[value-4],`extcredits4`=[value-5],`extcredits5`=[value-6],`extcredits6`=[value-7],`extcredits7`=[value-8],`extcredits8`=[value-9],`friends`=[value-10],`posts`=[value-11],`threads`=[value-12],`digestposts`=[value-13],`doings`=[value-14],`blogs`=[value-15],`albums`=[value-16],`sharings`=[value-17],`attachsize`=[value-18],`views`=[value-19],`oltime`=[value-20],`todayattachs`=[value-21],`todayattachsize`=[value-22],`feeds`=[value-23],`follower`=[value-24],`following`=[value-25],`newfollower`=[value-26],`blacklist`=[value-27] WHERE 1
// LIB
DROP TABLE IF EXISTS pre_common_member_count;
CREATE TABLE pre_common_member_count (
uid mediumint(8) unsigned NOT NULL COMMENT '会员id',
extcredits1 int(10) NOT NULL default '0' COMMENT '声望',
extcredits2 int(10) NOT NULL default '0' COMMENT '金钱',
extcredits3 int(10) NOT NULL default '0' COMMENT '扩展',
extcredits4 int(10) NOT NULL default '0' COMMENT '扩展',
extcredits5 int(10) NOT NULL default '0' COMMENT '扩展',
extcredits6 int(10) NOT NULL default '0' COMMENT '扩展',
extcredits7 int(10) NOT NULL default '0' COMMENT '扩展',
extcredits8 int(10) NOT NULL default '0' COMMENT '扩展',
friends smallint(6) unsigned NOT NULL default '0' COMMENT '好友个数 home',
posts mediumint(8) unsigned NOT NULL default '0' COMMENT '帖子数',
threads mediumint(8) unsigned NOT NULL default '0' COMMENT '主题数',
digestposts smallint(6) unsigned NOT NULL default '0' COMMENT '精华数',
doings smallint(6) unsigned NOT NULL default '0' COMMENT '记录数',
blogs smallint(6) unsigned NOT NULL default '0' COMMENT '日志数',
albums smallint(6) unsigned NOT NULL default '0' COMMENT '相册数',
sharings smallint(6) unsigned NOT NULL default '0' COMMENT '分享数',
attachsize int(10) unsigned NOT NULL default '0' COMMENT '上传附件占用的空间 home',
views mediumint(8) unsigned NOT NULL default '0' COMMENT '空间查看数',
oltime smallint(6) unsigned NOT NULL default '0' COMMENT '在线时间',
todayattachs smallint(6) unsigned NOT NULL default '0' COMMENT '当天上传附件数',
todayattachsize int(10) unsigned NOT NULL default '0' COMMENT '当天上传附件容量',
feeds mediumint(8) unsigned NOT NULL default '0' COMMENT '广播数',
follower mediumint(8) unsigned NOT NULL default '0' COMMENT '听众数量',
following mediumint(8) unsigned NOT NULL default '0' COMMENT '收听数量',
newfollower mediumint(8) unsigned NOT NULL default '0' COMMENT '新增听众数量',
PRIMARY KEY (uid),
KEY posts (posts)
) ENGINE=MyISAM COMMENT='用户统计表';
2014年6月4日 星期三
2014年4月9日 星期三
2014 / 04 / 10 Flash Class - ROLL_OVER(MouseEvent)
上課範例 - AS3_006_RollOver
ftp://nas.takming.edu.tw/songshen/ftp/FlashAS3/A/
步驟
圖層設定與實作
先打開ini檔。
在蝴蝶的圖層的第一個影格按F6複製一份
新增一個圖層紀錄動作(action)
點選蝴蝶圖層的第一個影格→選擇蝴蝶→影片片段改成圖像→循環改成單一影格
在action的最後一個影格,增加一個關鍵影格→F9→stop()
如下圖
ftp://nas.takming.edu.tw/songshen/ftp/FlashAS3/A/
步驟
圖層設定與實作
先打開ini檔。
在蝴蝶的圖層的第一個影格按F6複製一份
新增一個圖層紀錄動作(action)
點選蝴蝶圖層的第一個影格→選擇蝴蝶→影片片段改成圖像→循環改成單一影格
在action的最後一個影格,增加一個關鍵影格→F9→stop()
如下圖
2014年4月7日 星期一
2014 / 04 / 08 (Tue) 課堂筆記 Shell Script
做為shell interpreter所在,做為第一行,一定要寫
#!/bin/bash
執行shell script方法
<1> 直接執行先給予權限 chomd +x *.sh
直接執行 ./*.sh
一、建立一個shell,印出hello World
#!/bin/bashecho -e "Hello \t World \a \n"
二、建立一個shell script,輸入並印出firstname , lastname
#!/bin/bashread -p "Please input your firstname: " firstname
read -p "Pleash input your lastname: " lastname
echo "$firstname $lastname"
三、變數取用範例 - 輸入檔名,建立三個檔案,檔名+日期,共三種。
#!/bin/bash
echo -e "I will use 'touch' command to create 3 files."
read -p "Please input your filename : " filename
date1=$(date --date='2 days ago' +%Y%m%d)
date2=$(date --date='1 days ago' +%Y%m%d)
date3=$(date +%Y%m%d)
file1=${filename}${date1}
file2=${filename}${date2}
file3=${filename}${date3}
touch $file1 $file2 $file3
四、if-then-else條件判斷式
ead -p "Please input (Y/N):" ynif [ "$yn" == "Y" ] || [ "$yn" == "y" ]; then
echo "OK,continue"
elif [ "$yn" == "N" ] || [ "$yn" == "n" ]; then
echo "Oh,interrupt!"
else
echo "I don't know what your choice is"
2014年3月26日 星期三
2014 / 03 / 27 Takming_2D_動畫設計
基礎設定
拉一個矩形在中間,做按鈕功用。
建立以下layer
actions - 紀錄動作(script)
label - 標籤
text - 文字
Mask - 遮罩
animation - 動畫
bg - 背景
border - 外框
結果如下圖=w=
_stand為動畫一開始停頓 [ stop() ]
_in 為作為滑入用動畫
_out為做為滑出用動畫
第一版的code - 可做按鈕的滑進滑出
第二版code - 把上方六行以迴圈方式呈現
以上是針對場景下的物件事件控制。
影片片段也可以有他自己的控制。
『影片片段的事件控制』
2014年2月12日 星期三
2014年2月11日 星期二
2014 / 02 / 11 Discuz 樹狀架構
Discuz X2.5 檔案樹狀結構
/┬── api外部介面
│ ├── connect騰訊互聯
│ ├── db UCenter資料庫備份介面
│ ├── google Google引擎使用
│ ├── javascript資料和廣告的JS調用
│ ├── manyou manyou應用及搜索等相關服務
│ └── trade線上支付介面
├── archiver論壇靜態化
├── config網站設定檔
├── data資料緩存及附件
│ ├── attachment上傳的檔目錄
│ │ ├── album相冊專用
│ │ ├── block DIY專用
│ │ ├── common公共上傳
│ │ ├── forum論壇附件專用
│ │ ├── group群組圖示和頭部圖片專用
│ │ ├── portal門戶上傳檔專用
│ │ ├── profile個人資料專用
│ │ └── temp暫存檔案
│ ├── avatar視頻認證專用
│ ├── backup網站資料備份
│ ├── cache資料緩存
│ ├── diy DIY模組緩存
│ ├── ipdata Discuz!IP庫
│ ├── log網站日誌,前/後臺管理日誌、錯誤日誌等
│ ├── plugindata外掛程式緩存資料
│ ├── template範本緩存目錄
│ └── threadcache帖子緩存
├── install安裝目錄
├── source代碼主目錄
│ ├── admincp幕後程式
│ │ ├── cloud Discuz!雲平臺
│ │ ├── menu功能表
│ │ └── moderate審核功能
│ ├── archiver論壇靜態化功能代碼
│ ├── class類檔目錄
│ │ ├── adv網站廣告功能
│ │ ├── block DIY模組功能檔
│ │ ├── cache緩存類
│ │ ├── db資料庫類
│ │ ├── discuz discuz類
│ │ ├── forum論壇
│ │ ├── helper存放從function_core分離出來的一部分函數
│ │ ├── lib工具類的集合類
│ │ ├── magic道具
│ │ ├── memory記憶體類
│ │ ├── secqaa驗證問答
│ │ ├── table資料表操作類
│ │ └── task網站任務功能
│ ├── function函數檔
│ │ └── cache緩存功能拆分目錄
│ ├── include被包含的檔
│ │ ├── collection淘帖
│ │ ├── cron計畫任務
│ │ ├── misc雜項
│ │ ├── modcp前臺論壇管理
│ │ ├── portalcp前臺門戶管理
│ │ ├── post帖子相關
│ │ ├── search搜索功能
│ │ ├── space家園和個人相關功能
│ │ ├── spacecp個人設定相關
│ │ ├── table編碼轉換資料
│ │ ├── thread查看主題相關
│ │ └── topicadmin前臺主題管理
│ ├── language網站語言包
│ │ ├── adv廣告
│ │ ├── block DIY模組
│ │ ├── forum論壇
│ │ ├── group群組
│ │ ├── home家園
│ │ ├── magic道具
│ │ ├── member登錄註冊頁面語言
│ │ ├── mobile手機訪問功能語言
│ │ ├── portal門戶語言
│ │ ├── ranklist排行榜語言
│ │ ├── search搜索
│ │ ├── secqaa安全問答
│ │ ├── tag標籤
│ │ ├── task任務
│ │ └── userapp manyou應用
│ ├── module功能模組
│ │ ├── connect騰訊互聯
│ │ ├── forum論壇
│ │ ├── group群組
│ │ ├── home家園
│ │ ├── member登錄註冊
│ │ ├── misc雜項
│ │ ├── portal門戶
│ │ ├── search搜索
│ │ └── userapp應用
│ └── plugin外掛程式目錄
│ ├── cloudstat Discuz!雲平臺
│ ├── myapp Manyou應用
│ ├── myrepeats馬甲功能
│ ├── qqconnect騰訊互聯
│ └── soso_smilies騰訊搜搜表情
├── static非PHP檔
│ ├── image介面圖片
│ ├── js網站JS腳本
│ ├── space空間皮膚
│ └── topic門戶皮膚
├── template範本目錄
│ └── default預設風格
├── uc_client UCenter用戶端程式
└── uc_server UCenter服務端程式
2014年2月10日 星期一
2014 / 02 / 11 For Discuz X3 忘記管理員(創始人)密碼
利用工具 Tools管家來解決
我的dz是繁中,這插件是簡中,可以相容~
基本上只是改個SQL 字串中又沒中文 什麼文都不重要
本作法為免安裝作法,源於DZ官方論壇的crx349會員
先打開Tools.php,修改password。
$tpassword = 'XXXxxx123';
大於6的大小寫英文+數字。
然後上傳到/source/plugin/裡
執行 domainname.com/source/plugin/tools/tools.php
就看圖說故事就結束了
2014年2月7日 星期五
2014年2月5日 星期三
2014年2月4日 星期二
2014年1月26日 星期日
2014 / 01 /21 網頁設計參考處
Menu Bar
http://www.psdgraphics.com/html-css/horizontal-html-css-navigation/
LoGin畫面
http://www.psdgraphics.com/psd/blue-login-box-html-and-css-with-psd-template/
Icon
瀑布流
http://www.tellustek.com/web-design/159-web-design-60.html
CSS 背景全景
http://www.minwt.com/css/5629.html
別人整理ㄉ網站
http://blog.wu-boy.com/2009/06/%E7%B6%B2%E7%AB%99-%E5%A5%BD%E7%AB%99%E9%80%A3%E7%B5%90-%E4%B8%89/
網站布局
http://www.digital-web.com/articles/principles_of_design/
DZ X3 資料表
http://faq.comsenz.com/library/database/x3/x3_index.htm
2014年1月16日 星期四
2014年1月15日 星期三
2014年1月14日 星期二
2013 / 12 / 25 fancybox要研究***
bornda 給的fancybox code
<script type="text/javascript">
$(document).ready(function () {
$("a#firmmemberlogin").fancybox({
'width': '3',
'height': '4',
'showCloseButton': true,
'autoScale': false,
'autoDimensions': false,
'scrolling': 'no',
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe'
});
$("a#memberlogin").fancybox({
'width': '3',
'height': '4',
'showCloseButton': true,
'autoScale': false,
'autoDimensions': false,
'scrolling': 'no',
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe'
});
});
</script>
參考書本
旗標 - 接案我最行 ! js & aj 商業範例必殺技
第二章 第六節 P.152 ~ P.161
還滿詳細的!!!
english website - How to use fancybox
http://fancybox.net/howto
<script type="text/javascript">
$(document).ready(function () {
$("a#firmmemberlogin").fancybox({
'width': '3',
'height': '4',
'showCloseButton': true,
'autoScale': false,
'autoDimensions': false,
'scrolling': 'no',
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe'
});
$("a#memberlogin").fancybox({
'width': '3',
'height': '4',
'showCloseButton': true,
'autoScale': false,
'autoDimensions': false,
'scrolling': 'no',
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe'
});
});
</script>
參考書本
旗標 - 接案我最行 ! js & aj 商業範例必殺技
第二章 第六節 P.152 ~ P.161
還滿詳細的!!!
english website - How to use fancybox
http://fancybox.net/howto
訂閱:
文章 (Atom)






