Toggle main menu visibility
新聞
下載
教材
影音
討論
其他選單
好站連結
行事曆
電子相簿
常見問題
萬用表單
即時留言簿
友站消息
社大學員
:::
登入
登入
帳號
密碼
登入
重整畫面
:::
所有書籍
「[1002] PHP入門班」目錄
MarkDown
15-4 上課範例:index.php
1. PHP入門
2. 使用者輸入介面設計
2-1 上課範例:index.php
2-2 上課範例:save.php
3. PHP變數與常數
3-1 上課範例:a1.php
4. PHP資料類型與建立資料表
4-1 上課範例:add_class.php
5. 連線資料庫及運算元
5-1 上課範例:save_class.php
5-1 上課範例:add_class.php
6. 讀取資料庫及PHP陣列
6-1 上課範例:add_class.php
6-2 上課範例:save_class.php
6-3 上課範例:index.php
7. 編輯與刪除功能
7-1 上課範例:index.php
7-2 上課範例:add_class.php
7-3 上課範例:save_class.php
8. 函數與小強佈景
8-1 上課範例:index.php
8-2 上課範例:add_class.php
8-3 上課範例:save_class.php
9. 流程控制與迴圈
9-1 上課範例:add_class.php
9-2 上課範例:theme.html 樣板檔
9-3 上課範例:save_class.php
9-4 上課範例:index.php
9-5 上課範例:header.php
9-6 上課範例:function.php
10. 練習練習再練習!
10-1 上課範例:index.php
10-2 上課範例:add_class.php
10-3 上課範例:save_class.php
10-4 上課範例:index.php(整合版)
10-5 上課範例:header.php(整合版)
11. 建立學習收藏的發布頁
11-1 上課範例:class.php
11-2 上課範例:header.php
11-3 上課範例:tad0616.sql
11-4 上課範例:blank.php 空白樣板
11-5 上課範例:index.php
12. 兩個資料表的結合
12-1 index.php
13. 資料檢查
13-1 上課範例:index.php
13-2 上課範例:header.php
13-3 上課範例:function.php
13-4 上課範例:class.php
14. 請完成基本功能囉~
14-1 上課範例:index.php(完成版)
15. 認證與session
15-1 上課範例:class.php
15-2 上課範例:config.php
15-3 上課範例:header.php
15-4 上課範例:index.php
16. 分頁與編輯器
16-1 上課範例:index.php
16-2 上課範例:header.php
17. 用PHP上傳檔案
17-1 上課範例:index.php
18. 資料搜尋
18-1 上課範例:index.php
18-2 上課範例:theme.html
16-1 上課範例:index.php
\[1002\] PHP入門班 =============== [](http://www.tad0616.net/uploads/tad_book3/file/1002/16.zip) ### 一、 分頁物件用法 1. 引入該物件:require\_once "pagebar.php"; 2. 將以下語法,插入到 $sql 與 mysql\_query() 之間。 ``` //PageBar(資料數, 每頁顯示幾筆資料, 最多顯示幾個頁數選項); mysql_query($sql); $total=mysql_affected_rows(); $navbar = new PageBar($total, 20, 10); $mybar = $navbar->makeBar(); $bar= "
{$mybar['left']}{$mybar['center']}{$mybar['right']}
"; $sql.=$mybar['sql']; ``` 4. 「$bar」即分頁工具,將之擺至適當位置即可。 ### 二、 所見即所得編輯器 CKEditor 用法([http://ckeditor.com/](http://ckeditor.com)) 1. 方法一: ```
``` 3. 方法二: ```
請輸入內容
``` 5. 自行定義工具列:[http://docs.cksource.com/CKEditor\_3.x/Developers\_Guide/Toolbar](http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Toolbar) 6. 例如(config,js): ``` CKEDITOR.editorConfig = function( config ) { config.toolbar = 'MyToolbar'; config.toolbar_MyToolbar = [ { name: 'clipboard', items : [ 'Undo','Redo' ] }, { name: 'insert', items : [ 'Image' , 'Flash' , 'Table' , 'HorizontalRule' , 'Smiley' , 'PageBreak' ] }, { name: 'basicstyles', items : [ 'Bold' , 'Italic' , 'Strike' , 'RemoveFormat' ] }, { name: 'paragraph', items : [ 'NumberedList' , 'BulletedList' , 'Outdent' , 'Indent'] }, { name: 'links', items : [ 'Link' , 'Unlink' ] }, { name: 'styles', items : [ 'Styles' , 'Format' ] }, { name: 'tools', items : [ 'Font' , 'FontSize' ] } ]; }; ```
:::
搜尋
search
進階搜尋
QR Code 區塊
快速登入
所有討論區
「PHP全端開發」線上課程討論區
XOOPS使用討論區
一般研習學員
社大學員專用
路過哈啦區
XOOPS佈景設計
XOOPS模組開發
Tad書籍區
即時留言簿
書籍目錄
展開
|
闔起
線上使用者
47
人線上 (
13
人在瀏覽
線上書籍
)
會員: 0
訪客: 47
更多…