#Foreign key $kind_arr = array( "slider_home" => array("title" => "輪播"), "about" => array("title" => "關於我們"), "contact" => array("title" => "聯絡我們"), ); ``` 3. 複製「run\_system\_about()」=> 「run\_system\_contact()」,替換變數名稱 4. 把「creative\_contact.html」嵌入至函數 5. 修改 op\_form() ``` #---- 檢查資料夾 mk_dir(XOOPS_ROOT_PATH . "/uploads/{$DIRNAME}/fck"); mk_dir(XOOPS_ROOT_PATH . "/uploads/{$DIRNAME}/fck/image"); mk_dir(XOOPS_ROOT_PATH . "/uploads/{$DIRNAME}/fck/flash"); ``` ``` $dir_name = $DIRNAME . "/system/{$DBV['kind']}/fck"; $dir_name = $DIRNAME . "/fck"; ``` 6. fck網頁編輯器使用時,xoops的除錯要關,且第5點的資料夾要先建立 7. 請測試一下fck的圖片上傳是否正常 四、產生樣板 1. theme.html => 「<{includeq file="$theme\_name/tpl/creative\_contact.html"}>」修改 2. 「<{includeq file="$xoops\_rootpath/uploads/ugm\_creative/tpl/creative\_contact.html"}>」 3. 在後台變更變數測試
#---- 檢查資料夾 mk_dir(XOOPS_ROOT_PATH . "/uploads/{$DIRNAME}/fck"); mk_dir(XOOPS_ROOT_PATH . "/uploads/{$DIRNAME}/fck/image"); mk_dir(XOOPS_ROOT_PATH . "/uploads/{$DIRNAME}/fck/flash"); ``` ``` $dir_name = $DIRNAME . "/system/{$DBV['kind']}/fck"; $dir_name = $DIRNAME . "/fck"; ``` 6. fck網頁編輯器使用時,xoops的除錯要關,且第5點的資料夾要先建立 7. 請測試一下fck的圖片上傳是否正常 四、產生樣板 1. theme.html => 「<{includeq file="$theme\_name/tpl/creative\_contact.html"}>」修改 2. 「<{includeq file="$xoops\_rootpath/uploads/ugm\_creative/tpl/creative\_contact.html"}>」 3. 在後台變更變數測試
$dir_name = $DIRNAME . "/system/{$DBV['kind']}/fck"; $dir_name = $DIRNAME . "/fck"; ``` 6. fck網頁編輯器使用時,xoops的除錯要關,且第5點的資料夾要先建立 7. 請測試一下fck的圖片上傳是否正常 四、產生樣板 1. theme.html => 「<{includeq file="$theme\_name/tpl/creative\_contact.html"}>」修改 2. 「<{includeq file="$xoops\_rootpath/uploads/ugm\_creative/tpl/creative\_contact.html"}>」 3. 在後台變更變數測試