"; // left等於左邊 center等於中間 right等於右邊 // 最上面之圖片上傳至 $upload_path yeumall/upload/yeumall // $url代表回首頁http://www.8825252.com // 代表回首頁 // 代表留言 // 代表信箱? // ################ 顯示最上面招牌結束 ################################# //echo ""; //if($modules_enable["adv"]) include("modules/adv/".$BoxIconImage."advDisplay.php"); //echo ""; echo ""; // ################ 顯示農明曆 ################################# include("day.html"); echo ""; echo ""; if(isset($lang_file)) include("modules/language/language_".$lang_file.".php"); else include("modules/language/language_tw.php"); // ########################################################### // ################ 主畫面 ################################### // ########################################################### echo ""; if(file_exists("$upload_path/navBgTop.gif")) echo ""; echo ""; // ########################################################### // ################ 左欄 ##################################### // ########################################################### echo ""; // ########################################################### // ################ 中欄 ##################################### // ########################################################### echo ""; echo "
"; else echo "
"; //include("modules/categories/cateListTop.php"); echo "
"; // ################ 顯示線上人數 ################################# //include("modules/onlineuser/".$BoxIconImage."displayBox.php"); // ################ 顯示農明曆 ################################# //include("day.html"); // ############## 離頭旗標五個像素 ######################### # echo "
"; // ################ 顯示會員管理 ################################# if($modules_enable["organization"]) include("modules/organization/".$BoxIconImage."member_right.php"); // ################ 模組管理開始 ################################# include("modules/index.php"); // 模組管理 // ################ 模組管理結束 ################################# if($modules_enable["search"]) include("modules/search/".$BoxIconImage."searchForm.php"); // 檢查是否有子目錄 ############################################## $sql="select * from $table_categories where parent='0' and visible='1'"; $result=mysql_db_query("$dbname",$sql); $num=mysql_num_rows($result); if($num>=1) { if($modules_enable["categories"]) include("modules/categories/".$BoxIconImage."cateListLeft.php"); } // ################ 相關文件1 ################################# if($modules_enable["documents"]) include("$upload_path/documents_config.inc"); if($modules_enable["documents"]) include("modules/documents/".$BoxIconImage."docForm.php"); if($modules_enable["poll"]) include("modules/poll/".$BoxIconImage."pollForm.php"); if($modules_enable["sponsor"]) include("modules/sponsor/".$BoxIconImage."sponsorDisplay.php"); echo "
"; if(isset($sficon)) { include($sficon); } echo ""; echo ""; // ########################################################### // ################ 右欄 ##################################### // ########################################################### echo ""; echo "
"; // ############## 離頭旗標五個像素 ######################### echo "
"; switch($method) { // ##################################################################### case "shippingAdmin": // 運費管理員設定 if($modules_enable["shipping"]) include("modules/shipping/shippingFeeForm.php"); break; case "shippingAdminSave": // 運費管理員儲存 if($modules_enable["shipping"]) include("modules/shipping/shippingFeeFormSave.php"); break; // ##################################################################### case "paymentAdmin": // 付款方式管理員設定 if($modules_enable["payment"]) include("modules/payment/paymentMethodForm.php"); break; case "paymentAdminSave": // 付款方式管理員儲存 if($modules_enable["payment"]) include("modules/payment/paymentMethodFormSave.php"); break; // ##################################################################### case "makecashMemberChoose": // 積點直銷會員兌換選商品 if($modules_enable["makecash"]) include("modules/makecash/makecashMemberChoose.php"); break; case "makecashAdmin": // 積點直銷管理員設定 if($modules_enable["makecash"]) include("modules/makecash/makecashForm.php"); break; // ##################################################################### case "searchFormAdvenced": // 進階搜尋 if($modules_enable["search"]) include("modules/search/searchFormAdvenced.php"); break; // ##################################################################### case "authorityAdmin": // 權限管理 if($modules_enable["authority"]) include("modules/authority/memberList.php"); break; case "authorityForm": // 權限設定表格 #if($modules_enable["authority"]) include("modules/authority/config.inc"); if($modules_enable["authority"]) include("modules/authority/authorityForm.php"); break; case "authoritySave": // 儲存權限 if($modules_enable["authority"]) include("modules/authority/authoritySave.php"); break; // ##################################################################### case "options_add": // 搭售設定 <= 新增 if($modules_enable["options"]) include("modules/options/optionsAdd.php"); break; // ##################################################################### case "doc_sample": // 文件展示 if($modules_enable["documents"]) include("upload/doc_sample.html"); break; // ##################################################################### case "orderAdmin_edit": // 修改購物車數量 if($modules_enable["order"]) include("modules/order/orderAdminDetail.php"); break; case "orderAdmin_detail": // 訂購程序完畢 <= 管理者 if($modules_enable["order"]) include("modules/order/orderAdminDetail.php"); break; case "orderAdmin_close": // 訂購程序完畢 <= 管理者 if($modules_enable["order"]) include("modules/order/orderAdminClose.php"); break; case "orderAdmin_shipping": // 輸入送貨地址和付款 <= 管理者 if($modules_enable["order"]) include("modules/order/orderAdminShipping.php"); break; case "orderAdmin": // 訂單管理瀏覽 <= 管理者 if($modules_enable["order"]) if($admin_login || $modules_permission["order"]=="true") include("modules/order/orderAdmin.php"); break; // ##################################################################### case "advAdmin_upload": // 中間的廣告&贊助建置管理 <= 上傳 if($modules_enable["adv"]) include("modules/adv/config.inc"); if($modules_enable["adv"]) include("modules/adv/advUpload.php"); break; case "advAdmin": // 中間的廣告&贊助建置管理 if($modules_enable["adv"]) include("modules/adv/config.inc"); if($modules_enable["adv"]) if($admin_login || $modules_permission["adv"]=="true") include("modules/adv/uploadForm.php"); break; // ##################################################################### case "sponsorAdmin_upload": // 廣告&贊助建置管理 <= 上傳 if($modules_enable["sponsor"]) include("modules/sponsor/config.inc"); if($modules_enable["sponsor"]) include("modules/sponsor/sponsorUpload.php"); break; case "sponsorAdmin": // 廣告&贊助建置管理 if($modules_enable["sponsor"]) include("modules/sponsor/config.inc"); if($modules_enable["sponsor"]) if($admin_login || $modules_permission["sponsor"]=="true") include("modules/sponsor/uploadForm.php"); break; // ##################################################################### case "doc_display": // 說明文件顯示1 if($modules_enable["documents"]) include("modules/documents/docDisplay.php"); break; case "documentsAdmin_upload": // 說明文件建置管理 <= 上傳 include("$upload_path/documents_config.inc"); // 左欄已經引入 if($modules_enable["documents"]) include("modules/documents/upload.php"); break; case "documentsAdmin": // 說明文件建置管理 include("$upload_path/documents_config.inc"); // 左欄已經引入 if($modules_enable["documents"]) include("modules/documents/uploadForm.php"); break; // ##################################################################### case "styleAdmin_upload": // 版面配色管理 <= 上傳 if($modules_enable["style"]) include("modules/style/config.inc"); if($modules_enable["style"]) include("modules/style/upload.php"); break; case "styleAdmin": // 版面配色管理 if($modules_enable["style"]) include("modules/style/config.inc"); if($modules_enable["style"]) if($admin_login || $modules_permission["style"]=="true") include("modules/style/uploadForm.php"); break; // ##################################################################### case "mycart_detail": // 訂購程序完畢 if($modules_enable["order"]) include("modules/order/mycartDetail.php"); break; case "mycart_close": // 訂購程序完畢 if($modules_enable["order"]) include("modules/order/mycartClose.php"); break; case "mycart_shipping": // 輸入送貨地址和付款 <= 有訂單且已登入會員 if($modules_enable["order"]) include("modules/order/mycartShipping.php"); break; case "mycart_edit": // 修改購物車數量 if($modules_enable["order"]) include("modules/order/mycartDetail.php"); break; case "mycart": // 查看購物車 if($modules_enable["order"]) include("modules/order/mycartCenter.php"); break; case "add_order": // 新增後的儲存目錄 if($modules_enable["order"]) include("modules/order/addOrder.php"); break; // ##################################################################### case "cateSave": // 新增後的儲存目錄 if($modules_enable["categories"]) include("modules/categories/cateSave.php"); break; case "addCate": // 新增目錄 if($modules_enable["categories"]) include("modules/categories/cateForm.php"); break; case "prod_detail": // 詳細的商品介紹 include("modules/categories/cateListCenter.php"); include("modules/categories/prodDetail.php"); break; case "prod_update": // 修改商品的更新 if($admin_login || $modules_permission["categories"]=="true") include("modules/categories/function.php"); if($admin_login || $modules_permission["categories"]=="true") include("modules/categories/prodSave.php"); break; case "addnew": // 增加商品 if($admin_login || $modules_permission["categories"]=="true") include("modules/categories/function.php"); if($admin_login || $modules_permission["categories"]=="true") include("modules/categories/prodSave.php"); break; case "modifyProd": // 填寫修改商品表格 if($admin_login || $modules_permission["categories"]=="true") include("modules/categories/prodForm.php"); break; case "addProd": // 填寫增加商品表格 // 增加商品不需要 $modules_enable["categories"] //if($modules_enable["categories"]) include("modules/categories/prodForm.php"); if($admin_login || $modules_permission["categories"]=="true") include("modules/categories/prodForm.php"); break; case "categoriesAdmin": // 分類目錄 => 管理員使用 if($modules_enable["categories"]) if($admin_login || $modules_permission["categories"]=="true") include("modules/categories/cateListAll.php"); break; // ##################################################################### case "organization": // 會員特區 if($modules_enable["organization"]) include("modules/organization/member.php"); break; case "organizationAdmin": // 會員列表 => 管理員使用 if($modules_enable["organization"]) include("modules/organization/memberList.php"); break; case "memberEditAdminForm": // 修改會員表單 => 管理員使用 if($modules_enable["organization"]) include("modules/organization/member_form_ForAdmin.php"); break; case "member_updateAdmin": // 儲存修改會員資料 => 管理員使用 if($modules_enable["organization"]) include("modules/organization/member_registerAdmin.php"); break; case "memberAddNewAdminForm": // 新增會員表單 => 管理員使用 if($modules_enable["organization"]) include("modules/organization/member_form_ForAdmin.php"); break; case "member_addNewSaveAdmin": // 儲存新增會員 => 管理員使用 if($modules_enable["organization"]) include("modules/organization/member_registerAdmin.php"); break; case "loss_password": // 會員要求寄送密碼(其實不是寄送,而是重置密碼) if($modules_enable["organization"]) include("modules/organization/member_lossPassword.php"); break; case "member_form": // 新會員修改資料或舊會員註冊時的表單 if($modules_enable["organization"] || $admin_email==$mall_email) include("modules/organization/member_form.php"); break; case "login_error": // 登入失敗 if($modules_enable["organization"]) include("modules/organization/member.php"); break; case "memberAdminForm": // 修改會員表單 => 管理員使用 if($modules_enable["organization"]) include("modules/organization/member_form.php"); break; #case "login_success": // 登入成功 # include("modules/organization/member_login.php"); # break; case "logout": // 會員登出 if($modules_enable["organization"]) include("modules/organization/member_logout.php"); break; case "login": // 會員登入 if($modules_enable["organization"]) include("modules/organization/member_login.php"); break; case "login_active_again": // 會員已註冊但尚未認證,顯示要求重新認證表單 if($modules_enable["organization"]) include("modules/organization/member_form.php"); break; case "member_update": // 會員修改資料 if($modules_enable["organization"] || $admin_email==$mall_email) include("modules/organization/member_register.php"); break; case "active_again": // 重新寄出認證郵件 if($modules_enable["organization"]) include("modules/organization/member_register.php"); break; case "register": // 會員註冊,寄出認證郵件 if($modules_enable["organization"]) include("modules/organization/member_register.php"); break; case "organization": // 會員特區 if($modules_enable["organization"]) include("modules/organization/member.php"); break; case "organizationAdmin": // 會員列表 => 管理員使用 if($modules_enable["organization"]) include("modules/organization/memberList.php"); break; // ##################################################################### case "search": // 顯示搜尋結果 if($modules_enable["search"]) include("modules/search/searchResult.php"); break; // ##################################################################### case "backupAdmin": // 備份 => 管理員使用 if($modules_enable["backup"]) include("modules/backup/index.php"); break; // ##################################################################### case "news_read": // 儲存新聞資料 if($modules_enable["newsticker"]) include("modules/newsticker/newsRead.php"); break; case "newsticker_save": // 儲存新聞資料 if($modules_enable["newsticker"]) include("modules/newsticker/ConfigSave.php"); if($modules_enable["newsticker"]) include("modules/newsticker/ConfigForm.php"); if($modules_enable["newsticker"]) include("modules/newsticker/newsList.php"); break; case "newsticker_add_edit": // 新增或修改活動資訊 => 管理員使用 if($modules_enable["newsticker"]) include("modules/newsticker/ConfigForm.php"); if($modules_enable["newsticker"]) include("modules/newsticker/newsList.php"); break; case "newstickerAdmin": // 活動資訊 => 管理員使用 if($modules_enable["newsticker"]) if($admin_login || $modules_permission["newsticker"]=="true") include("modules/newsticker/newsList.php"); break; // ##################################################################### case "new4_read": // 師資介紹 if($modules_enable["new4"]) include("modules/new4/newsRead.php"); break; case "new4_save": // 師資介紹 if($modules_enable["new4"]) include("modules/new4/ConfigSave.php"); if($modules_enable["new4"]) include("modules/new4/ConfigForm.php"); if($modules_enable["new4"]) include("modules/new4/newsList.php"); break; case "new4_add_edit": // 新增或修改師資介紹=> 管理員使用 if($modules_enable["new4"]) include("modules/new4/ConfigForm.php"); if($modules_enable["new4"]) include("modules/new4/newsList.php"); break; case "new4Admin": // 師資介紹=> 管理員使用 if($modules_enable["new4"]) if($admin_login || $modules_permission["new4"]=="true") include("modules/new4/newsList.php"); break; case "new4all": // 師資介紹所有專欄 $new4_filename="$upload_path/new4".$newstickerDir.".php"; if($modules_enable["new4"] && file_exists($new4_filename)) { include($new4_filename);} break; // ##################################################################### case "new1_read": // 開運教室 if($modules_enable["new1"]) include("modules/new1/newsRead.php"); break; case "new1_save": // 開運教室 if($modules_enable["new1"]) include("modules/new1/ConfigSave.php"); if($modules_enable["new1"]) include("modules/new1/ConfigForm.php"); if($modules_enable["new1"]) include("modules/new1/newsList.php"); break; case "new1_add_edit": // 新增或修改開運教室=> 管理員使用 if($modules_enable["new1"]) include("modules/new1/ConfigForm.php"); if($modules_enable["new1"]) include("modules/new1/newsList.php"); break; case "new1Admin": // 開運教室=> 管理員使用 if($modules_enable["new1"]) if($admin_login || $modules_permission["new1"]=="true") include("modules/new1/newsList.php"); break; case "new1all": // 開運教室所有專欄 $new1_filename="$upload_path/new1".$newstickerDir.".php"; if($modules_enable["new1"] && file_exists($new1_filename)) { include($new1_filename);} break; // ##################################################################### case "new2_read": // 羽宸志工 if($modules_enable["new2"]) include("modules/new2/newsRead.php"); break; case "new2_save": // 羽宸志工 if($modules_enable["new2"]) include("modules/new2/ConfigSave.php"); if($modules_enable["new2"]) include("modules/new2/ConfigForm.php"); if($modules_enable["new2"]) include("modules/new2/newsList.php"); break; case "new2_add_edit": // 新增或修改羽宸志工 => 管理員使用 if($modules_enable["new2"]) include("modules/new2/ConfigForm.php"); if($modules_enable["new2"]) include("modules/new2/newsList.php"); break; case "new2Admin": // 羽宸志工 => 管理員使用 if($modules_enable["new2"]) if($admin_login || $modules_permission["new2"]=="true") include("modules/new2/newsList.php"); break; case "new2all": // 羽宸志工 所有專欄 $new2_filename="$upload_path/new2".$newstickerDir.".php"; if($modules_enable["new2"] && file_exists($new2_filename)) { include($new2_filename);} break; // ##################################################################### case "new3_read": // 羽宸見證 if($modules_enable["new3"]) include("modules/new3/newsRead.php"); break; case "new3_save": // 羽宸見證 if($modules_enable["new3"]) include("modules/new3/ConfigSave.php"); if($modules_enable["new3"]) include("modules/new3/ConfigForm.php"); if($modules_enable["new3"]) include("modules/new3/newsList.php"); break; case "new3_add_edit": // 新增或修改羽宸見證 => 管理員使用 if($modules_enable["new3"]) include("modules/new3/ConfigForm.php"); if($modules_enable["new3"]) include("modules/new3/newsList.php"); break; case "new3Admin": // 羽宸見證 => 管理員使用 if($modules_enable["new3"]) if($admin_login || $modules_permission["new3"]=="true") include("modules/new3/newsList.php"); break; case "new3all": // 羽宸見證 所有專欄 $new3_filename="$upload_path/new3".$newstickerDir.".php"; if($modules_enable["new3"] && file_exists($new3_filename)) { include($new3_filename);} break; // ##################################################################### case "epost_save": // 儲存電子報資料 if($modules_enable["epost"]) include("modules/epost/ConfigSave.php"); if($modules_enable["epost"]) include("modules/epost/ConfigForm.php"); if($modules_enable["epost"]) include("modules/epost/epostList.php"); break; case "epost_add_edit": // 新增或修改電子報 => 管理員使用 if($modules_enable["epost"]) include("modules/epost/ConfigForm.php"); if($modules_enable["epost"]) include("modules/epost/epostList.php"); break; case "epostAdmin": // 電子報 => 管理員使用 if($modules_enable["epost"]) if($admin_login || $modules_permission["epost"]=="true") include("modules/epost/epostList.php"); break; // ##################################################################### case "all_result": // 顯示全部投票結果 if($modules_enable["poll"]) include("modules/poll/allResult.php"); break; case "poll_add": // 新增投票問卷 if($modules_enable["poll"]) include("modules/poll/ConfigForm.php"); break; case "poll_edit": // 修改投票問卷 if($modules_enable["poll"]) include("modules/poll/ConfigForm.php"); break; case "pollAdmin": // 投票問卷 => 管理員使用 if($modules_enable["poll"]) include("modules/poll/ConfigForm.php"); if($modules_enable["poll"]) if($admin_login || $modules_permission["poll"]=="true") include("modules/poll/pollList.php"); break; // ##################################################################### case "guestbook_detail": // 顯示留言內容 if($modules_enable["guestbook"]) include("modules/guestbook/guestbookDetail.php"); break; case "guestbook_all": // 顯示留言 if($modules_enable["guestbook"]) include("modules/guestbook/guestbookAll.php"); break; case "guestbook_edit": // 修改留言 if($modules_enable["guestbook"]) include("modules/guestbook/postForm.php"); break; case "guestbook_reply": // 回覆新留言 if($modules_enable["guestbook"]) include("modules/guestbook/replyForm.php"); break; case "reply_post": // 上傳回覆新留言 if($modules_enable["guestbook"]) include("modules/guestbook/post.php"); break; case "guestbook_post_edit": // 修改已上傳的留言 if($modules_enable["guestbook"]) include("modules/guestbook/post.php"); break; case "guestbook_post": // 上傳留言 if($modules_enable["guestbook"]) include("modules/guestbook/post.php"); break; case "guestbook_postForm": // 發表新留言 if($modules_enable["guestbook"]) include("modules/guestbook/postForm.php"); break; case "guestbookAdmin": // 留言板 => 管理員使用 if($modules_enable["guestbook"]) if($admin_login || $modules_permission["guestbook"]=="true") include("modules/guestbook/postForm.php"); break; default: // 列出產品 // if($modules_enable["adv"]) include("modules/adv/".$BoxIconImage."advDisplay.php"); //include("modules/categories/function.php"); //include("modules/categories/cateListCenter.php"); //if(!$disable_Hot) include("modules/categories/prodHot.php"); //if(!$disable_Onsale) include("modules/categories/prodOnsale.php"); //include("modules/categories/prodList.php"); $newsticker_filename="$upload_path/newsticker".$newstickerDir.".php"; if($modules_enable["newsticker"] && file_exists($newsticker_filename)) { include($newsticker_filename); } break; } echo "
"; // ############## 離頭旗標五個像素 ######################### # echo "
"; // ############## 如果banner是swf檔 ######################### // if($logo_swf) include("modules/organization/".$BoxIconImage."member_right.php"); // 930603 一律放在右邊 // if($modules_enable["organization"]) include("modules/organization/".$BoxIconImage."member_right.php"); // ############## 如果購物車裡有商品 ######################### $sql=mysql_connect("localhost","guest","guest") or die(mysql_error()); $sql="SELECT * from $table_order where email='$mall_email'"; $result=mysql_db_query("$dbname",$sql); $num=mysql_num_rows($result); if($num>0 && $modules_enable["order"]) { include("modules/order/".$BoxIconImage."mycartRight.php"); } //if($modules_enable["guestbook"]) include("modules/guestbook/".$BoxIconImage."guestbookRight.php"); //if($modules_enable["sponsor"]) include("modules/sponsor/".$BoxIconImage."sponsorDisplay.php"); //if($modules_enable["poll"]) include("modules/poll/".$BoxIconImage."pollForm.php"); echo "
"; echo "
"; include("main_bottom.php"); if(isset($bottom)) { include($bottom); } ?>