'.substr($stime_sel, 0, 5).''; $min = str_pad($j*30+29, 2, "0", STR_PAD_LEFT); $etime_sel = $hour.":".$min.":59"; $etime_sel_text = date("H:i", strtotime("+1 second", strtotime($etime_sel))); $etime_str .= ''; } } //if ($data["attend"]) { $attend_arr = $attend_id_arr = []; //$join_str = ""; if ($data["attend"]) $attend_id_arr = explode(",", $data["attend"]); // 與會人員部門選單 $attend_str = ""; $sql = "select department_id, name from department group by department_id order by department_id;"; $res = mysqli_query($link, $sql); while ($row = mysqli_fetch_row($res)) { list($department_id, $department_name) = $row; $sql2 = "select accountid, name from account where department_id = '$department_id' order by role_id"; $res2 = mysqli_query($link, $sql2); while ($row2 = mysqli_fetch_row($res2)) { $attend_str .= ''; } mysqli_free_result($res2); } mysqli_free_result($res); /* $aid_str = str_replace(",", "','", $data["attend"]); $sql = "select distinct a.accountid, a.name, d.name 'department_name' from account a, department d "; $sql .= "where a.department_id = d.department_id and a.accountid in ('$aid_str')"; $res = mysqli_query($link, $sql); while ($row = mysqli_fetch_array($res)) { $attend_arr[$row["accountid"]]["name"] = $row["name"]; $attend_arr[$row["accountid"]]["department_name"] = $row["department_name"]; } mysqli_free_result($res); foreach ($attend_id_arr as $k => $v) { $join_str .= '×'.$attend_arr[$v]["name"].''.$attend_arr[$v]["department_name"].''; } */ //} /* ×許作名管理總處 ×蔡定憲管理總處 ×葉俊麟管理總處 ×江振寬管理總處 */ ?> 會議主題 會議日期 開始時間 結束時間 地點 請選擇 >C區會議室1 >C區會議室2 >大直會議室 >網路會議 >其他 使用資源 會議內容 與會人員 確定 按下「確定」後,系統將發信通知已勾選的與會人員! "> ">