MarkDown
```
8. 最後只要修改
```php
//編輯表單
public static function create($action_id, $id = '')
{
/*--略--*/
$action = Tad_signup_actions::get($action_id, true);
$action['signup'] = Tad_signup_data::get_all($action_id);
if (time() > strtotime($action['end_date'])) {
redirect_header($_SERVER['PHP_SELF'], 3, "已報名截止,無法再進行報名或修改報名");
} elseif (!$action['enable']) {
redirect_header($_SERVER['PHP_SELF'], 3, "該報名已關閉,無法再進行報名或修改報名");
} elseif (count($action['signup']) >= ($action['number'] + $action['candidate'])) {
redirect_header($_SERVER['PHP_SELF'], 3, "人數已滿,無法再進行報名");
}
/*--略--*/
}
```
[![](https://www.tad0616.net/uploads/tad_book3/image/48/to_github.png)
](https://github.com/tadlearn/tad_signup/commit/777728fdee9e11d27d115bdb734ad94eb8fb5005)