安裝預約系統

安裝 Booked scheduler (phpScheduleIt) 預約系統

安裝教學影片請按這裡

1. 軟體安裝:

  • 複製 /config/config.dist  更名為 /config/config  

permission 改為 664

  • 打開 /config/config

找到 $conf['settings']['install.password'] 這一行,設定一個安裝密碼

找到 database 將已經建立的資料庫的user (使用者), pssword (密碼) 和 name (名稱)填入。

將檔案上傳。

  • 在瀏覽器網址列填入  https://網址/檔案名稱/Web/install

        填入安裝密碼

進入資料庫匯入頁面,

第2項:填入資料庫的user (使用者), pssword (密碼)

第3項:勾選 Import sample data. Creates admin account: admin/password and user account: user/password

  • 登入網址:https://網址/檔案名稱/

預設管理帳號:admin   密碼:password

預設使用者帳號:user   密碼:password

2. 以英文檔案 /lang/en_us 為藍本,比對 繁體中文 /lang/zh_tw  簡體中文 /lang/zh_cn  將所缺少的$strings補齊並翻譯後上傳。

3. 在 /lang 建立zh_tw 和 zh_cn檔案夾,將en_us 檔案夾中之所有檔案複製,貼入zh_tw 和 zh_cn檔案夾,將英文翻譯成中文後上傳。

(修改語言以後要按

-> 管理 -> 伺服器設置 -> Try to apply correct permissions 或 Try to flush cached files 更新。)

4. 更換 logo 路徑

/Web/img/booked.png

5. 建立預約上傳檔案

在/Web/uploads中增加一個reservation檔案夾後上傳

以管理者登入網站 按 管理 > 自訂 > 系統設定

在 reservation.attachment.path 欄,填入

/伺服器系統到達網站路徑/Web/uploads/reservation
例如    /000/000/clients/clientx/webx/web/檔案名稱/Web/uploads/reservation

    (000為伺服器的檔案路徑;x為客戶的編號)
然後   -> 程式管理 伺服器設置 ->  Try to flush cached files 更新。

6. 將/Jobs/sendreminders.php 的 permission 設定為 755

打開crontab editor: (要用terminal command 的 vi 方式執行)
# crontab -e
# i (插入)
* * * * * (每1分鐘)
1 * * * * (每小時的第1分鐘)
*/3 * * * * (每3分鐘)

* * * * * /usr/bin/php /xxx/xxx/xxx/xxxxx/xxxxxx/xxx/檔案名稱/Jobs/sendreminders.php
(每分鐘)    (php路徑)                       (直接路徑)

編輯完畢之後按 ESC鍵
# :wq (儲存後離開)

7. 修改 關於(about)

路徑:/tpl/support-and-credits.tpl

8. 修改 footer

路徑:/tpl/globalfooter.tpl

9. 修改/Web/css/reservation.css

#reservationbox .input {
font-size: 16px; 修改為15px

* 修改 Web/css/style.css
.customAttribute {
font-size: 9pt; 改為11
}

.customAttributes label.customAttribute {
font-weight: bold;
font-size: 9pt; 改為 11
}

.customAttributes li {
float: left; 改為 clear: left; (每一項都斷行靠左)
position: relative;
padding-right: 10px;
vertical-align: top;
}

input.customAttribute {
width: 150px; 改為 250
}

textarea.customAttribute {
width: 150px;改為 250
height: 50px;
}

10. 隱藏Reservation page中的 更多的預約標的(more resource)、預約名稱(Title of reservation)、預約說明(Description of reservation):

路徑 /tpl/Reservation/create.tpl

1. 註解(comment out) 更多的預約標的 (more resource) (也可以不用刪,選擇性的)

<!--
Line 78-87
!-->

2. 隱藏預約名稱(Title of reservation)和預約說明(Description of reservation)
     <!-- 152-162   !-->

 <!--   <li class="rsv-box-l">
            <label>{translate key="ReservationTitle"}<br/>
            {textbox name="RESERVATION_TITLE" class="input" tabindex="100" value="ReservationTitle"}  
            </label>
        </li>
        <li class="rsv-box-l">
            <label>{translate key="ReservationDescription"}<br/>
                <textarea id="description" name="{FormKeys::DESCRIPTION}" class="input" rows="2" cols="52"
                          tabindex="110">{$Description}</textarea>
            </label>
        </li>    !-->


     加入下列二行
<input type="hidden" id="RESERVATION_TITLE" name="{FormKeys::RESERVATION_TITLE}" class="input-area" value=" " />

<input type="hidden" id="description" name="{FormKeys::DESCRIPTION}" class="input-area" value=" " />

修改後,更新頁面:      管理 > 伺服器設置 > Try to flush cached files

12. 修改註冊電話為必填

路徑  /tpl/register

註解 Line 107-111

          <!--<p>
                <label class="reg">{translate key="Phone"}<br/>
                {textbox name="PHONE" class="input" value="Phone" size="20"}
                </label>
                </p> !-->

> 程式 > 自訂 > 屬性

類別:用戶  增添一個電話必填屬性

13. 修改AM PM 為24小時的格式

路徑  /lang/zh_tw.php & /lang/zh_cn.php

原來的

        $dates['general_date'] = 'Y/m/d';
        $dates['general_datetime'] = 'Y/m/d H:i:s';
        $dates['schedule_daily'] = 'l, Y/m/d';
        $dates['reservation_email'] = 'Y/m/d @ g:i A (e)';
        $dates['res_popup'] = 'Y/m/d g:i A';
        $dates['dashboard'] = 'l, Y/m/d g:i A';
        $dates['period_time'] = 'g:i A';
        $dates['general_date_js'] = 'yy/mm/dd';
        $dates['calendar_time'] = 'h:mmt';
        $dates['calendar_dates'] = 'M/d';

修改後

        $dates['general_date'] = 'Y/m/d';
        $dates['general_datetime'] = 'Y/m/d H:i:s';
        $dates['schedule_daily'] = 'l, Y/m/d';
        $dates['reservation_email'] = 'Y/m/d @ H:i (e)';
        $dates['res_popup'] = 'Y/m/d H:i A';   -> $dates['res_popup'] = 'Y/m/d H:i';
        $dates['dashboard'] = 'l, Y/m/d H:i';
        $dates['period_time'] = 'H:i';

        $dates['general_date_js'] = 'yy/mm/dd';
        $dates['calendar_time'] = 'h:mmt';
        $dates['calendar_dates'] = 'M/d';

14. 編輯 Email 的信首和信尾

路徑  /tpl/Email/emailheader.tpl & /tpl/Email/emailfooter.tpl

參考 https://forum.whmcs.com/showthread.php?80962-Helpful-Global-Email-Custom...