@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | SessionManager::protectSession($id_session); |
17 | 17 | |
18 | 18 | // setting breadcrumbs |
19 | -$interbreadcrumb[] = array('url' => 'session_list.php','name' => get_lang('SessionList')); |
|
19 | +$interbreadcrumb[] = array('url' => 'session_list.php', 'name' => get_lang('SessionList')); |
|
20 | 20 | $interbreadcrumb[] = array( |
21 | 21 | 'url' => 'resume_session.php?id_session='.$id_session, |
22 | 22 | 'name' => get_lang('SessionOverview'), |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | FROM '.Database :: get_main_table(TABLE_MAIN_SESSION).' |
44 | 44 | WHERE id='.$id_session; |
45 | 45 | $rs = Database::query($sql); |
46 | - if (Database::result($rs,0,0)!=$_user['user_id']) { |
|
46 | + if (Database::result($rs, 0, 0) != $_user['user_id']) { |
|
47 | 47 | api_not_allowed(true); |
48 | 48 | } |
49 | 49 | } |
@@ -88,9 +88,9 @@ discard block |
||
88 | 88 | |
89 | 89 | foreach ($CourseList as $enreg_course) { |
90 | 90 | $exists = false; |
91 | - foreach($existingCourses as $existingCourse) { |
|
91 | + foreach ($existingCourses as $existingCourse) { |
|
92 | 92 | if ($enreg_course == $existingCourse['id']) { |
93 | - $exists=true; |
|
93 | + $exists = true; |
|
94 | 94 | } |
95 | 95 | } |
96 | 96 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | foreach ($existingCourses as $existingCourse) { |
113 | - if (!in_array($existingCourse['id'], $CourseList)){ |
|
113 | + if (!in_array($existingCourse['id'], $CourseList)) { |
|
114 | 114 | $existingCourse = Database::escape_string($existingCourse['id']); |
115 | 115 | $sql = "INSERT IGNORE INTO $tbl_session_rel_course_rel_user (session_id,c_id,user_id) |
116 | 116 | VALUES ('$id_session','$existingCourse','$id_user')"; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | WHERE srcru.user_id = $id_user AND session_id = $id_session"; |
147 | 147 | |
148 | 148 | //all |
149 | -$sql_all="SELECT course.id, code, title, visual_code, src.session_id |
|
149 | +$sql_all = "SELECT course.id, code, title, visual_code, src.session_id |
|
150 | 150 | FROM $tbl_course course |
151 | 151 | INNER JOIN $tbl_session_rel_course as src |
152 | 152 | ON course.id = src.c_id AND session_id = $id_session"; |
@@ -163,9 +163,9 @@ discard block |
||
163 | 163 | |
164 | 164 | foreach ($CoursesAll as $course) { |
165 | 165 | if (in_array($course['id'], $course_temp)) { |
166 | - $nosessionCourses[$course['id']] = $course ; |
|
166 | + $nosessionCourses[$course['id']] = $course; |
|
167 | 167 | } else { |
168 | - $sessionCourses[$course['id']] = $course ; |
|
168 | + $sessionCourses[$course['id']] = $course; |
|
169 | 169 | } |
170 | 170 | } |
171 | 171 | unset($Courses); |
@@ -184,9 +184,9 @@ discard block |
||
184 | 184 | <td width="45%" align="center"> |
185 | 185 | <div id="ajax_list_courses_multiple"> |
186 | 186 | <select id="origin" name="NoSessionCoursesList[]" multiple="multiple" size="20" style="width:320px;"> <?php |
187 | - foreach($nosessionCourses as $enreg) { |
|
187 | + foreach ($nosessionCourses as $enreg) { |
|
188 | 188 | ?> |
189 | - <option value="<?php echo $enreg['id']; ?>" <?php echo 'title="'.htmlspecialchars($enreg['title'].' ('.$enreg['visual_code'].')',ENT_QUOTES).'"'; if(in_array($enreg['code'],$CourseList)) echo 'selected="selected"'; ?>><?php echo $enreg['title'].' ('.$enreg['visual_code'].')'; ?></option> |
|
189 | + <option value="<?php echo $enreg['id']; ?>" <?php echo 'title="'.htmlspecialchars($enreg['title'].' ('.$enreg['visual_code'].')', ENT_QUOTES).'"'; if (in_array($enreg['code'], $CourseList)) echo 'selected="selected"'; ?>><?php echo $enreg['title'].' ('.$enreg['visual_code'].')'; ?></option> |
|
190 | 190 | <?php |
191 | 191 | } |
192 | 192 | ?> </select></div> <?php |
@@ -211,9 +211,9 @@ discard block |
||
211 | 211 | <td width="45%" align="center"> |
212 | 212 | <select id='destination' name="SessionCoursesList[]" multiple="multiple" size="20" style="width:320px;"> |
213 | 213 | <?php |
214 | - foreach($sessionCourses as $enreg) { |
|
214 | + foreach ($sessionCourses as $enreg) { |
|
215 | 215 | ?> |
216 | - <option value="<?php echo $enreg['id']; ?>" title="<?php echo htmlspecialchars($enreg['title'].' ('.$enreg['visual_code'].')',ENT_QUOTES); ?>"><?php echo $enreg['title'].' ('.$enreg['visual_code'].')'; ?></option> |
|
216 | + <option value="<?php echo $enreg['id']; ?>" title="<?php echo htmlspecialchars($enreg['title'].' ('.$enreg['visual_code'].')', ENT_QUOTES); ?>"><?php echo $enreg['title'].' ('.$enreg['visual_code'].')'; ?></option> |
|
217 | 217 | <?php |
218 | 218 | } |
219 | 219 | unset($sessionCourses); |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | require_once '../inc/global.inc.php'; |
9 | 9 | |
10 | 10 | // setting the section (for the tabs) |
11 | -$this_section=SECTION_PLATFORM_ADMIN; |
|
11 | +$this_section = SECTION_PLATFORM_ADMIN; |
|
12 | 12 | |
13 | 13 | $id_session = intval($_GET['id_session']); |
14 | 14 | SessionManager::protectSession($id_session); |
@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | // Database Table Definitions |
17 | 17 | $tbl_course = Database::get_main_table(TABLE_MAIN_COURSE); |
18 | 18 | $tbl_session = Database::get_main_table(TABLE_MAIN_SESSION); |
19 | -$tbl_session_rel_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE); |
|
20 | -$tbl_session_rel_course_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER); |
|
19 | +$tbl_session_rel_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE); |
|
20 | +$tbl_session_rel_course_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER); |
|
21 | 21 | |
22 | 22 | if (empty($id_session)) { |
23 | 23 | api_not_allowed(); |
@@ -25,26 +25,26 @@ discard block |
||
25 | 25 | |
26 | 26 | $page = intval($_GET['page']); |
27 | 27 | $action = $_REQUEST['action']; |
28 | -$sort = in_array($_GET['sort'],array('title','nbr_users'))?$_GET['sort']:'title'; |
|
28 | +$sort = in_array($_GET['sort'], array('title', 'nbr_users')) ? $_GET['sort'] : 'title'; |
|
29 | 29 | |
30 | 30 | $result = Database::query("SELECT name FROM $tbl_session WHERE id='$id_session'"); |
31 | 31 | |
32 | -if (!list($session_name)=Database::fetch_row($result)) { |
|
32 | +if (!list($session_name) = Database::fetch_row($result)) { |
|
33 | 33 | header('Location: session_list.php'); |
34 | 34 | exit; |
35 | 35 | } |
36 | 36 | |
37 | 37 | if ($action == 'delete') { |
38 | 38 | $idChecked = $_REQUEST['idChecked']; |
39 | - if (is_array($idChecked) && count($idChecked)>0) { |
|
39 | + if (is_array($idChecked) && count($idChecked) > 0) { |
|
40 | 40 | $my_temp = array(); |
41 | - foreach ($idChecked as $id){ |
|
42 | - $my_temp[]= Database::escape_string($id);// forcing the escape_string |
|
41 | + foreach ($idChecked as $id) { |
|
42 | + $my_temp[] = Database::escape_string($id); // forcing the escape_string |
|
43 | 43 | } |
44 | 44 | $idChecked = $my_temp; |
45 | - $idChecked="'".implode("','", $idChecked)."'"; |
|
45 | + $idChecked = "'".implode("','", $idChecked)."'"; |
|
46 | 46 | $result = Database::query("DELETE FROM $tbl_session_rel_course WHERE session_id='$id_session' AND c_id IN($idChecked)"); |
47 | - $nbr_affected_rows=Database::affected_rows($result); |
|
47 | + $nbr_affected_rows = Database::affected_rows($result); |
|
48 | 48 | Database::query("DELETE FROM $tbl_session_rel_course_rel_user WHERE session_id='$id_session' AND c_id IN($idChecked)"); |
49 | 49 | Database::query("UPDATE $tbl_session SET nbr_courses=nbr_courses-$nbr_affected_rows WHERE id='$id_session'"); |
50 | 50 | } |
@@ -59,14 +59,14 @@ discard block |
||
59 | 59 | FROM $tbl_session_rel_course, $tbl_course c |
60 | 60 | WHERE c_id = c.id AND session_id='$id_session' |
61 | 61 | ORDER BY $sort |
62 | - LIMIT $from,".($limit+1); |
|
63 | -$result=Database::query($sql); |
|
64 | -$Courses=Database::store_result($result); |
|
65 | -$tool_name = api_htmlentities($session_name,ENT_QUOTES,$charset).' : '.get_lang('CourseListInSession'); |
|
62 | + LIMIT $from,".($limit + 1); |
|
63 | +$result = Database::query($sql); |
|
64 | +$Courses = Database::store_result($result); |
|
65 | +$tool_name = api_htmlentities($session_name, ENT_QUOTES, $charset).' : '.get_lang('CourseListInSession'); |
|
66 | 66 | |
67 | 67 | //$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin')); |
68 | -$interbreadcrumb[] = array('url' => "session_list.php","name" => get_lang('SessionList')); |
|
69 | -$interbreadcrumb[] = array('url' => "resume_session.php?id_session=".Security::remove_XSS($_REQUEST['id_session']),"name" => get_lang('SessionOverview')); |
|
68 | +$interbreadcrumb[] = array('url' => "session_list.php", "name" => get_lang('SessionList')); |
|
69 | +$interbreadcrumb[] = array('url' => "resume_session.php?id_session=".Security::remove_XSS($_REQUEST['id_session']), "name" => get_lang('SessionOverview')); |
|
70 | 70 | |
71 | 71 | Display::display_header($tool_name); |
72 | 72 | echo Display::page_header($tool_name); |
@@ -84,18 +84,18 @@ discard block |
||
84 | 84 | foreach ($Courses as $key=>$enreg) { |
85 | 85 | $course = array(); |
86 | 86 | $course[] = '<input type="checkbox" name="idChecked[]" value="'.$enreg['id'].'">'; |
87 | - $course[] = api_htmlentities($enreg['title'],ENT_QUOTES,$charset); |
|
87 | + $course[] = api_htmlentities($enreg['title'], ENT_QUOTES, $charset); |
|
88 | 88 | $course[] = '<a href="session_course_user_list.php?id_session='.$id_session.'&course_code='.$enreg['code'].'">'.$enreg['nbr_users'].' '.get_lang('Users').'</a>'; |
89 | 89 | $course[] = '<a href="'.api_get_path(WEB_COURSE_PATH).$enreg['code'].'/?id_session='.$id_session.'">'. |
90 | 90 | Display::return_icon('course_home.gif', get_lang('Course')).'</a> |
91 | 91 | <a href="session_course_edit.php?id_session='.$id_session.'&page=session_course_list.php&course_code='.$enreg['code'].'">'. |
92 | 92 | Display::return_icon('edit.png', get_lang('Edit')).'</a> |
93 | - <a href="'.api_get_self().'?id_session='.$id_session.'&sort='.$sort.'&action=delete&idChecked[]='.$enreg['id'].'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset)).'\')) return false;">'. |
|
93 | + <a href="'.api_get_self().'?id_session='.$id_session.'&sort='.$sort.'&action=delete&idChecked[]='.$enreg['id'].'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang("ConfirmYourChoice"), ENT_QUOTES, $charset)).'\')) return false;">'. |
|
94 | 94 | Display::return_icon('delete.png', get_lang('Delete')).'</a>'; |
95 | 95 | $tableCourses[] = $course; |
96 | 96 | } |
97 | 97 | echo '<form method="post" action="'.api_get_self().'">'; |
98 | -Display :: display_sortable_table($tableHeader, $tableCourses, array (), array ()); |
|
98 | +Display :: display_sortable_table($tableHeader, $tableCourses, array(), array()); |
|
99 | 99 | echo '<select name="action"> |
100 | 100 | <option value="delete">'.get_lang('UnsubscribeCoursesFromSession').'</option> |
101 | 101 | </select> |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | //$interbreadcrumb[] = array("url" => "index.php", "name" => get_lang('PlatformAdmin')); |
46 | -$interbreadcrumb[] = array('url' => 'session_list.php','name' => get_lang('SessionList')); |
|
46 | +$interbreadcrumb[] = array('url' => 'session_list.php', 'name' => get_lang('SessionList')); |
|
47 | 47 | |
48 | 48 | if (isset($_GET['search']) && $_GET['search'] == 'advanced') { |
49 | 49 | $interbreadcrumb[] = array("url" => 'session_category_list.php', "name" => get_lang('ListSessionCategory')); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $where .= " AND access_url_id = ".api_get_current_access_url_id()." "; |
77 | 77 | } |
78 | 78 | |
79 | - $table_access_url_rel_session= Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_SESSION); |
|
79 | + $table_access_url_rel_session = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_SESSION); |
|
80 | 80 | $query = "SELECT sc.*, ( |
81 | 81 | SELECT count(id) FROM $tbl_session s |
82 | 82 | INNER JOIN $table_access_url_rel_session us |
@@ -14,12 +14,12 @@ |
||
14 | 14 | |
15 | 15 | // setting breadcrumbs |
16 | 16 | //$interbreadcrumb[] = array('url' => 'index.php','name' => get_lang('PlatformAdmin')); |
17 | -$interbreadcrumb[] = array('url' => 'session_list.php','name' => get_lang('SessionList')); |
|
17 | +$interbreadcrumb[] = array('url' => 'session_list.php', 'name' => get_lang('SessionList')); |
|
18 | 18 | |
19 | 19 | // Setting the name of the tool |
20 | 20 | $tool_name = get_lang('SubscribeStudentsToSession'); |
21 | 21 | $add_type = 'multiple'; |
22 | -if (isset($_REQUEST['add_type']) && $_REQUEST['add_type']!='') { |
|
22 | +if (isset($_REQUEST['add_type']) && $_REQUEST['add_type'] != '') { |
|
23 | 23 | $add_type = Security::remove_XSS($_REQUEST['add_type']); |
24 | 24 | } |
25 | 25 | $form_sent = 0; |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $tool_name = get_lang('ImportSessionDrhList'); |
17 | 17 | |
18 | 18 | //$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin')); |
19 | -$interbreadcrumb[]=array('url' => 'session_list.php','name' => get_lang('SessionList')); |
|
19 | +$interbreadcrumb[] = array('url' => 'session_list.php', 'name' => get_lang('SessionList')); |
|
20 | 20 | |
21 | 21 | set_time_limit(0); |
22 | 22 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | echo '<div class="actions">'; |
29 | 29 | echo '<a href="../session/session_list.php">'. |
30 | - Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('PlatformAdmin'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
30 | + Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('PlatformAdmin'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
31 | 31 | echo '</div>'; |
32 | 32 | |
33 | 33 | if (!empty($error_message)) { |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | // setting breadcrumbs |
16 | 16 | //$interbreadcrumb[] = array('url' => 'index.php','name' => get_lang('PlatformAdmin')); |
17 | -$interbreadcrumb[] = array('url' => 'session_list.php','name' => get_lang('SessionList')); |
|
17 | +$interbreadcrumb[] = array('url' => 'session_list.php', 'name' => get_lang('SessionList')); |
|
18 | 18 | |
19 | 19 | // Setting the name of the tool |
20 | 20 | $tool_name = get_lang('EnrollTrainersFromExistingSessions'); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | 'sessions[]', |
75 | 75 | $sessionList, |
76 | 76 | '', |
77 | - array('style'=>'width:360px', 'multiple'=>'multiple','id'=>'sessions', 'size'=>'15px'), |
|
77 | + array('style'=>'width:360px', 'multiple'=>'multiple', 'id'=>'sessions', 'size'=>'15px'), |
|
78 | 78 | false |
79 | 79 | ); |
80 | 80 | ?> |
@@ -52,14 +52,14 @@ discard block |
||
52 | 52 | 'course_name', |
53 | 53 | get_lang('SearchCourse'), |
54 | 54 | null, |
55 | - array('url' => api_get_path(WEB_AJAX_PATH) . 'course.ajax.php?a=search_course') |
|
55 | + array('url' => api_get_path(WEB_AJAX_PATH).'course.ajax.php?a=search_course') |
|
56 | 56 | ); |
57 | 57 | |
58 | 58 | if (!empty($courseId)) { |
59 | 59 | $courseInfo = api_get_course_info_by_id($courseId); |
60 | 60 | $parents = getParentsToString($courseInfo['categoryCode']); |
61 | 61 | |
62 | - $courseSelect->addOption($parents . $courseInfo['title'], $courseInfo['code'], ['selected' => 'selected']); |
|
62 | + $courseSelect->addOption($parents.$courseInfo['title'], $courseInfo['code'], ['selected' => 'selected']); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | $url = api_get_self(); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | // height auto |
112 | 112 | $extra_params['height'] = 'auto'; |
113 | 113 | |
114 | -$extra_params['postData'] =array( |
|
114 | +$extra_params['postData'] = array( |
|
115 | 115 | 'filters' => array( |
116 | 116 | "groupOp" => "AND", |
117 | 117 | "rules" => $result['rules'], |
@@ -125,11 +125,11 @@ discard block |
||
125 | 125 | |
126 | 126 | //With this function we can add actions to the jgrid (edit, delete, etc) |
127 | 127 | $action_links = 'function action_formatter(cellvalue, options, rowObject) { |
128 | - return \'<a href="session_edit.php?page=resume_session.php&id=\'+options.rowId+\'">'.Display::return_icon('edit.png',get_lang('Edit'),'',ICON_SIZE_SMALL).'</a>'. |
|
129 | - ' <a href="add_users_to_session.php?page=session_list.php&id_session=\'+options.rowId+\'">'.Display::return_icon('user_subscribe_session.png',get_lang('SubscribeUsersToSession'),'',ICON_SIZE_SMALL).'</a>'. |
|
130 | - ' <a href="add_courses_to_session.php?page=session_list.php&id_session=\'+options.rowId+\'">'.Display::return_icon('courses_to_session.png',get_lang('SubscribeCoursesToSession'),'',ICON_SIZE_SMALL).'</a>'. |
|
131 | - ' <a onclick="javascript:if(!confirm('."\'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES))."\'".')) return false;" href="session_list.php?action=copy&idChecked=\'+options.rowId+\'">'.Display::return_icon('copy.png',get_lang('Copy'),'',ICON_SIZE_SMALL).'</a>'. |
|
132 | - ' <a onclick="javascript:if(!confirm('."\'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES))."\'".')) return false;" href="session_list.php?action=delete&idChecked=\'+options.rowId+\'">'.Display::return_icon('delete.png',get_lang('Delete'),'',ICON_SIZE_SMALL).'</a>'. |
|
128 | + return \'<a href="session_edit.php?page=resume_session.php&id=\'+options.rowId+\'">'.Display::return_icon('edit.png', get_lang('Edit'), '', ICON_SIZE_SMALL).'</a>'. |
|
129 | + ' <a href="add_users_to_session.php?page=session_list.php&id_session=\'+options.rowId+\'">'.Display::return_icon('user_subscribe_session.png', get_lang('SubscribeUsersToSession'), '', ICON_SIZE_SMALL).'</a>'. |
|
130 | + ' <a href="add_courses_to_session.php?page=session_list.php&id_session=\'+options.rowId+\'">'.Display::return_icon('courses_to_session.png', get_lang('SubscribeCoursesToSession'), '', ICON_SIZE_SMALL).'</a>'. |
|
131 | + ' <a onclick="javascript:if(!confirm('."\'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"), ENT_QUOTES))."\'".')) return false;" href="session_list.php?action=copy&idChecked=\'+options.rowId+\'">'.Display::return_icon('copy.png', get_lang('Copy'), '', ICON_SIZE_SMALL).'</a>'. |
|
132 | + ' <a onclick="javascript:if(!confirm('."\'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"), ENT_QUOTES))."\'".')) return false;" href="session_list.php?action=delete&idChecked=\'+options.rowId+\'">'.Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL).'</a>'. |
|
133 | 133 | '\'; |
134 | 134 | }'; |
135 | 135 | |
@@ -298,18 +298,18 @@ discard block |
||
298 | 298 | <?php |
299 | 299 | |
300 | 300 | echo '<a href="'.api_get_path(WEB_CODE_PATH).'session/session_add.php">'. |
301 | - Display::return_icon('new_session.png',get_lang('AddSession'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
301 | + Display::return_icon('new_session.png', get_lang('AddSession'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
302 | 302 | if (api_is_platform_admin()) { |
303 | 303 | echo '<a href="'.api_get_path(WEB_CODE_PATH).'session/add_many_session_to_category.php">'. |
304 | - Display::return_icon('session_to_category.png',get_lang('AddSessionsInCategories'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
304 | + Display::return_icon('session_to_category.png', get_lang('AddSessionsInCategories'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
305 | 305 | echo '<a href="'.api_get_path(WEB_CODE_PATH).'session/session_category_list.php">'. |
306 | - Display::return_icon('folder.png',get_lang('ListSessionCategory'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
306 | + Display::return_icon('folder.png', get_lang('ListSessionCategory'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
307 | 307 | } |
308 | 308 | |
309 | 309 | if ($list_type == 'complete') { |
310 | - echo '<a href="'.api_get_self().'?list_type=simple">'.Display::return_icon('view_remove.png',get_lang('Simple'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
310 | + echo '<a href="'.api_get_self().'?list_type=simple">'.Display::return_icon('view_remove.png', get_lang('Simple'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
311 | 311 | } else { |
312 | - echo '<a href="'.api_get_self().'?list_type=complete">'.Display::return_icon('view_text.png',get_lang('Complete'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
312 | + echo '<a href="'.api_get_self().'?list_type=complete">'.Display::return_icon('view_text.png', get_lang('Complete'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
313 | 313 | } |
314 | 314 | |
315 | 315 | echo $actions; |
@@ -33,10 +33,10 @@ discard block |
||
33 | 33 | exit(); |
34 | 34 | } |
35 | 35 | |
36 | -list($year_start,$month_start,$day_start)=explode('-',$infos['date_start']); |
|
37 | -list($year_end,$month_end,$day_end)=explode('-',$infos['date_end']); |
|
36 | +list($year_start, $month_start, $day_start) = explode('-', $infos['date_start']); |
|
37 | +list($year_end, $month_end, $day_end) = explode('-', $infos['date_end']); |
|
38 | 38 | |
39 | -if (!api_is_platform_admin() && $infos['session_admin_id']!=$_user['user_id'] && !api_is_session_admin()) { |
|
39 | +if (!api_is_platform_admin() && $infos['session_admin_id'] != $_user['user_id'] && !api_is_session_admin()) { |
|
40 | 40 | api_not_allowed(true); |
41 | 41 | } |
42 | 42 | |
@@ -73,85 +73,85 @@ discard block |
||
73 | 73 | // display the header |
74 | 74 | Display::display_header($tool_name); |
75 | 75 | if (!empty($return)) { |
76 | - Display::display_error_message($return,false); |
|
76 | + Display::display_error_message($return, false); |
|
77 | 77 | } |
78 | 78 | ?> |
79 | 79 | <div class="row"> |
80 | 80 | <div class="col-md-12"> |
81 | 81 | <form method="post" name="form" action="<?php echo api_get_self(); ?>?id=<?php echo $id; ?>" class="form-horizontal"> |
82 | 82 | <input type="hidden" name="formSent" value="1"> |
83 | - <legend><?php echo $tool_name;?> </legend> |
|
83 | + <legend><?php echo $tool_name; ?> </legend> |
|
84 | 84 | <div class="form-group"> |
85 | 85 | <label class="col-sm-3 control-label"><?php echo get_lang('SessionName') ?></label> |
86 | 86 | <div class="col-sm-6"> |
87 | - <input class="form-control" type="text" name="name" size="50" maxlength="50" value="<?php if($formSent) echo api_htmlentities($name,ENT_QUOTES,$charset); else echo api_htmlentities($infos['name'],ENT_QUOTES,$charset); ?>"> |
|
87 | + <input class="form-control" type="text" name="name" size="50" maxlength="50" value="<?php if ($formSent) echo api_htmlentities($name, ENT_QUOTES, $charset); else echo api_htmlentities($infos['name'], ENT_QUOTES, $charset); ?>"> |
|
88 | 88 | </div> |
89 | 89 | <div class="col-sm-3"></div> |
90 | 90 | </div> |
91 | 91 | <div class="form-group"> |
92 | 92 | <div class="col-sm-offset-3 col-sm-6"> |
93 | - <?php echo get_lang('TheTimeLimitsAreReferential');?> |
|
93 | + <?php echo get_lang('TheTimeLimitsAreReferential'); ?> |
|
94 | 94 | <a href="javascript://" onclick="if(document.getElementById('options').style.display == 'none'){document.getElementById('options').style.display = 'block';}else{document.getElementById('options').style.display = 'none';}"><?php echo get_lang('EditTimeLimit') ?></a> |
95 | 95 | </div> |
96 | 96 | </div> |
97 | - <div style="display: <?php if($formSent && ($coachAccessStartDate!='0000-00-00 00:00:00' || $coachAccessEndDate!='0000-00-00 00:00:00')) echo 'block'; else echo 'none'; ?>;" id="options"> |
|
97 | + <div style="display: <?php if ($formSent && ($coachAccessStartDate != '0000-00-00 00:00:00' || $coachAccessEndDate != '0000-00-00 00:00:00')) echo 'block'; else echo 'none'; ?>;" id="options"> |
|
98 | 98 | <div class="form-group"> |
99 | 99 | <label class="col-sm-3 control-label"><?php echo get_lang('DateStart') ?></label> |
100 | 100 | <div class="col-sm-6"> |
101 | 101 | <select name="day_start"> |
102 | 102 | <option value="1">01</option> |
103 | - <option value="2" <?php if($day_start == 2) echo 'selected="selected"'; ?> >02</option> |
|
104 | - <option value="3" <?php if($day_start == 3) echo 'selected="selected"'; ?> >03</option> |
|
105 | - <option value="4" <?php if($day_start == 4) echo 'selected="selected"'; ?> >04</option> |
|
106 | - <option value="5" <?php if($day_start == 5) echo 'selected="selected"'; ?> >05</option> |
|
107 | - <option value="6" <?php if($day_start == 6) echo 'selected="selected"'; ?> >06</option> |
|
108 | - <option value="7" <?php if($day_start == 7) echo 'selected="selected"'; ?> >07</option> |
|
109 | - <option value="8" <?php if($day_start == 8) echo 'selected="selected"'; ?> >08</option> |
|
110 | - <option value="9" <?php if($day_start == 9) echo 'selected="selected"'; ?> >09</option> |
|
111 | - <option value="10" <?php if($day_start == 10) echo 'selected="selected"'; ?> >10</option> |
|
112 | - <option value="11" <?php if($day_start == 11) echo 'selected="selected"'; ?> >11</option> |
|
113 | - <option value="12" <?php if($day_start == 12) echo 'selected="selected"'; ?> >12</option> |
|
114 | - <option value="13" <?php if($day_start == 13) echo 'selected="selected"'; ?> >13</option> |
|
115 | - <option value="14" <?php if($day_start == 14) echo 'selected="selected"'; ?> >14</option> |
|
116 | - <option value="15" <?php if($day_start == 15) echo 'selected="selected"'; ?> >15</option> |
|
117 | - <option value="16" <?php if($day_start == 16) echo 'selected="selected"'; ?> >16</option> |
|
118 | - <option value="17" <?php if($day_start == 17) echo 'selected="selected"'; ?> >17</option> |
|
119 | - <option value="18" <?php if($day_start == 18) echo 'selected="selected"'; ?> >18</option> |
|
120 | - <option value="19" <?php if($day_start == 19) echo 'selected="selected"'; ?> >19</option> |
|
121 | - <option value="20" <?php if($day_start == 20) echo 'selected="selected"'; ?> >20</option> |
|
122 | - <option value="21" <?php if($day_start == 21) echo 'selected="selected"'; ?> >21</option> |
|
123 | - <option value="22" <?php if($day_start == 22) echo 'selected="selected"'; ?> >22</option> |
|
124 | - <option value="23" <?php if($day_start == 23) echo 'selected="selected"'; ?> >23</option> |
|
125 | - <option value="24" <?php if($day_start == 24) echo 'selected="selected"'; ?> >24</option> |
|
126 | - <option value="25" <?php if($day_start == 25) echo 'selected="selected"'; ?> >25</option> |
|
127 | - <option value="26" <?php if($day_start == 26) echo 'selected="selected"'; ?> >26</option> |
|
128 | - <option value="27" <?php if($day_start == 27) echo 'selected="selected"'; ?> >27</option> |
|
129 | - <option value="28" <?php if($day_start == 28) echo 'selected="selected"'; ?> >28</option> |
|
130 | - <option value="29" <?php if($day_start == 29) echo 'selected="selected"'; ?> >29</option> |
|
131 | - <option value="30" <?php if($day_start == 30) echo 'selected="selected"'; ?> >30</option> |
|
132 | - <option value="31" <?php if($day_start == 31) echo 'selected="selected"'; ?> >31</option> |
|
103 | + <option value="2" <?php if ($day_start == 2) echo 'selected="selected"'; ?> >02</option> |
|
104 | + <option value="3" <?php if ($day_start == 3) echo 'selected="selected"'; ?> >03</option> |
|
105 | + <option value="4" <?php if ($day_start == 4) echo 'selected="selected"'; ?> >04</option> |
|
106 | + <option value="5" <?php if ($day_start == 5) echo 'selected="selected"'; ?> >05</option> |
|
107 | + <option value="6" <?php if ($day_start == 6) echo 'selected="selected"'; ?> >06</option> |
|
108 | + <option value="7" <?php if ($day_start == 7) echo 'selected="selected"'; ?> >07</option> |
|
109 | + <option value="8" <?php if ($day_start == 8) echo 'selected="selected"'; ?> >08</option> |
|
110 | + <option value="9" <?php if ($day_start == 9) echo 'selected="selected"'; ?> >09</option> |
|
111 | + <option value="10" <?php if ($day_start == 10) echo 'selected="selected"'; ?> >10</option> |
|
112 | + <option value="11" <?php if ($day_start == 11) echo 'selected="selected"'; ?> >11</option> |
|
113 | + <option value="12" <?php if ($day_start == 12) echo 'selected="selected"'; ?> >12</option> |
|
114 | + <option value="13" <?php if ($day_start == 13) echo 'selected="selected"'; ?> >13</option> |
|
115 | + <option value="14" <?php if ($day_start == 14) echo 'selected="selected"'; ?> >14</option> |
|
116 | + <option value="15" <?php if ($day_start == 15) echo 'selected="selected"'; ?> >15</option> |
|
117 | + <option value="16" <?php if ($day_start == 16) echo 'selected="selected"'; ?> >16</option> |
|
118 | + <option value="17" <?php if ($day_start == 17) echo 'selected="selected"'; ?> >17</option> |
|
119 | + <option value="18" <?php if ($day_start == 18) echo 'selected="selected"'; ?> >18</option> |
|
120 | + <option value="19" <?php if ($day_start == 19) echo 'selected="selected"'; ?> >19</option> |
|
121 | + <option value="20" <?php if ($day_start == 20) echo 'selected="selected"'; ?> >20</option> |
|
122 | + <option value="21" <?php if ($day_start == 21) echo 'selected="selected"'; ?> >21</option> |
|
123 | + <option value="22" <?php if ($day_start == 22) echo 'selected="selected"'; ?> >22</option> |
|
124 | + <option value="23" <?php if ($day_start == 23) echo 'selected="selected"'; ?> >23</option> |
|
125 | + <option value="24" <?php if ($day_start == 24) echo 'selected="selected"'; ?> >24</option> |
|
126 | + <option value="25" <?php if ($day_start == 25) echo 'selected="selected"'; ?> >25</option> |
|
127 | + <option value="26" <?php if ($day_start == 26) echo 'selected="selected"'; ?> >26</option> |
|
128 | + <option value="27" <?php if ($day_start == 27) echo 'selected="selected"'; ?> >27</option> |
|
129 | + <option value="28" <?php if ($day_start == 28) echo 'selected="selected"'; ?> >28</option> |
|
130 | + <option value="29" <?php if ($day_start == 29) echo 'selected="selected"'; ?> >29</option> |
|
131 | + <option value="30" <?php if ($day_start == 30) echo 'selected="selected"'; ?> >30</option> |
|
132 | + <option value="31" <?php if ($day_start == 31) echo 'selected="selected"'; ?> >31</option> |
|
133 | 133 | </select> |
134 | 134 | / |
135 | 135 | <select name="month_start"> |
136 | 136 | <option value="1">01</option> |
137 | - <option value="2" <?php if($month_start == 2) echo 'selected="selected"'; ?> >02</option> |
|
138 | - <option value="3" <?php if($month_start == 3) echo 'selected="selected"'; ?> >03</option> |
|
139 | - <option value="4" <?php if($month_start == 4) echo 'selected="selected"'; ?> >04</option> |
|
140 | - <option value="5" <?php if($month_start == 5) echo 'selected="selected"'; ?> >05</option> |
|
141 | - <option value="6" <?php if($month_start == 6) echo 'selected="selected"'; ?> >06</option> |
|
142 | - <option value="7" <?php if($month_start == 7) echo 'selected="selected"'; ?> >07</option> |
|
143 | - <option value="8" <?php if($month_start == 8) echo 'selected="selected"'; ?> >08</option> |
|
144 | - <option value="9" <?php if($month_start == 9) echo 'selected="selected"'; ?> >09</option> |
|
145 | - <option value="10" <?php if($month_start == 10) echo 'selected="selected"'; ?> >10</option> |
|
146 | - <option value="11" <?php if($month_start == 11) echo 'selected="selected"'; ?> >11</option> |
|
147 | - <option value="12" <?php if($month_start == 12) echo 'selected="selected"'; ?> >12</option> |
|
137 | + <option value="2" <?php if ($month_start == 2) echo 'selected="selected"'; ?> >02</option> |
|
138 | + <option value="3" <?php if ($month_start == 3) echo 'selected="selected"'; ?> >03</option> |
|
139 | + <option value="4" <?php if ($month_start == 4) echo 'selected="selected"'; ?> >04</option> |
|
140 | + <option value="5" <?php if ($month_start == 5) echo 'selected="selected"'; ?> >05</option> |
|
141 | + <option value="6" <?php if ($month_start == 6) echo 'selected="selected"'; ?> >06</option> |
|
142 | + <option value="7" <?php if ($month_start == 7) echo 'selected="selected"'; ?> >07</option> |
|
143 | + <option value="8" <?php if ($month_start == 8) echo 'selected="selected"'; ?> >08</option> |
|
144 | + <option value="9" <?php if ($month_start == 9) echo 'selected="selected"'; ?> >09</option> |
|
145 | + <option value="10" <?php if ($month_start == 10) echo 'selected="selected"'; ?> >10</option> |
|
146 | + <option value="11" <?php if ($month_start == 11) echo 'selected="selected"'; ?> >11</option> |
|
147 | + <option value="12" <?php if ($month_start == 12) echo 'selected="selected"'; ?> >12</option> |
|
148 | 148 | </select> |
149 | 149 | / |
150 | 150 | <select name="year_start"> |
151 | 151 | <?php |
152 | - for($i=$thisYear-5;$i <= ($thisYear+5);$i++) |
|
152 | + for ($i = $thisYear - 5; $i <= ($thisYear + 5); $i++) |
|
153 | 153 | { ?> |
154 | - <option value="<?php echo $i; ?>" <?php if($year_start == $i) echo 'selected="selected"'; ?> ><?php echo $i; ?></option> |
|
154 | + <option value="<?php echo $i; ?>" <?php if ($year_start == $i) echo 'selected="selected"'; ?> ><?php echo $i; ?></option> |
|
155 | 155 | <?php |
156 | 156 | } ?> |
157 | 157 | </select> |
@@ -163,61 +163,61 @@ discard block |
||
163 | 163 | <div class="col-sm-6"> |
164 | 164 | <select name="day_end"> |
165 | 165 | <option value="0">--</option> |
166 | - <option value="1" <?php if($day_end == 1) echo 'selected="selected"'; ?> >01</option> |
|
167 | - <option value="2" <?php if($day_end == 2) echo 'selected="selected"'; ?> >02</option> |
|
168 | - <option value="3" <?php if($day_end == 3) echo 'selected="selected"'; ?> >03</option> |
|
169 | - <option value="4" <?php if($day_end == 4) echo 'selected="selected"'; ?> >04</option> |
|
170 | - <option value="5" <?php if($day_end == 5) echo 'selected="selected"'; ?> >05</option> |
|
171 | - <option value="6" <?php if($day_end == 6) echo 'selected="selected"'; ?> >06</option> |
|
172 | - <option value="7" <?php if($day_end == 7) echo 'selected="selected"'; ?> >07</option> |
|
173 | - <option value="8" <?php if($day_end == 8) echo 'selected="selected"'; ?> >08</option> |
|
174 | - <option value="9" <?php if($day_end == 9) echo 'selected="selected"'; ?> >09</option> |
|
175 | - <option value="10" <?php if($day_end == 10) echo 'selected="selected"'; ?> >10</option> |
|
176 | - <option value="11" <?php if($day_end == 11) echo 'selected="selected"'; ?> >11</option> |
|
177 | - <option value="12" <?php if($day_end == 12) echo 'selected="selected"'; ?> >12</option> |
|
178 | - <option value="13" <?php if($day_end == 13) echo 'selected="selected"'; ?> >13</option> |
|
179 | - <option value="14" <?php if($day_end == 14) echo 'selected="selected"'; ?> >14</option> |
|
180 | - <option value="15" <?php if($day_end == 15) echo 'selected="selected"'; ?> >15</option> |
|
181 | - <option value="16" <?php if($day_end == 16) echo 'selected="selected"'; ?> >16</option> |
|
182 | - <option value="17" <?php if($day_end == 17) echo 'selected="selected"'; ?> >17</option> |
|
183 | - <option value="18" <?php if($day_end == 18) echo 'selected="selected"'; ?> >18</option> |
|
184 | - <option value="19" <?php if($day_end == 19) echo 'selected="selected"'; ?> >19</option> |
|
185 | - <option value="20" <?php if($day_end == 20) echo 'selected="selected"'; ?> >20</option> |
|
186 | - <option value="21" <?php if($day_end == 21) echo 'selected="selected"'; ?> >21</option> |
|
187 | - <option value="22" <?php if($day_end == 22) echo 'selected="selected"'; ?> >22</option> |
|
188 | - <option value="23" <?php if($day_end == 23) echo 'selected="selected"'; ?> >23</option> |
|
189 | - <option value="24" <?php if($day_end == 24) echo 'selected="selected"'; ?> >24</option> |
|
190 | - <option value="25" <?php if($day_end == 25) echo 'selected="selected"'; ?> >25</option> |
|
191 | - <option value="26" <?php if($day_end == 26) echo 'selected="selected"'; ?> >26</option> |
|
192 | - <option value="27" <?php if($day_end == 27) echo 'selected="selected"'; ?> >27</option> |
|
193 | - <option value="28" <?php if($day_end == 28) echo 'selected="selected"'; ?> >28</option> |
|
194 | - <option value="29" <?php if($day_end == 29) echo 'selected="selected"'; ?> >29</option> |
|
195 | - <option value="30" <?php if($day_end == 30) echo 'selected="selected"'; ?> >30</option> |
|
196 | - <option value="31" <?php if($day_end == 31) echo 'selected="selected"'; ?> >31</option> |
|
166 | + <option value="1" <?php if ($day_end == 1) echo 'selected="selected"'; ?> >01</option> |
|
167 | + <option value="2" <?php if ($day_end == 2) echo 'selected="selected"'; ?> >02</option> |
|
168 | + <option value="3" <?php if ($day_end == 3) echo 'selected="selected"'; ?> >03</option> |
|
169 | + <option value="4" <?php if ($day_end == 4) echo 'selected="selected"'; ?> >04</option> |
|
170 | + <option value="5" <?php if ($day_end == 5) echo 'selected="selected"'; ?> >05</option> |
|
171 | + <option value="6" <?php if ($day_end == 6) echo 'selected="selected"'; ?> >06</option> |
|
172 | + <option value="7" <?php if ($day_end == 7) echo 'selected="selected"'; ?> >07</option> |
|
173 | + <option value="8" <?php if ($day_end == 8) echo 'selected="selected"'; ?> >08</option> |
|
174 | + <option value="9" <?php if ($day_end == 9) echo 'selected="selected"'; ?> >09</option> |
|
175 | + <option value="10" <?php if ($day_end == 10) echo 'selected="selected"'; ?> >10</option> |
|
176 | + <option value="11" <?php if ($day_end == 11) echo 'selected="selected"'; ?> >11</option> |
|
177 | + <option value="12" <?php if ($day_end == 12) echo 'selected="selected"'; ?> >12</option> |
|
178 | + <option value="13" <?php if ($day_end == 13) echo 'selected="selected"'; ?> >13</option> |
|
179 | + <option value="14" <?php if ($day_end == 14) echo 'selected="selected"'; ?> >14</option> |
|
180 | + <option value="15" <?php if ($day_end == 15) echo 'selected="selected"'; ?> >15</option> |
|
181 | + <option value="16" <?php if ($day_end == 16) echo 'selected="selected"'; ?> >16</option> |
|
182 | + <option value="17" <?php if ($day_end == 17) echo 'selected="selected"'; ?> >17</option> |
|
183 | + <option value="18" <?php if ($day_end == 18) echo 'selected="selected"'; ?> >18</option> |
|
184 | + <option value="19" <?php if ($day_end == 19) echo 'selected="selected"'; ?> >19</option> |
|
185 | + <option value="20" <?php if ($day_end == 20) echo 'selected="selected"'; ?> >20</option> |
|
186 | + <option value="21" <?php if ($day_end == 21) echo 'selected="selected"'; ?> >21</option> |
|
187 | + <option value="22" <?php if ($day_end == 22) echo 'selected="selected"'; ?> >22</option> |
|
188 | + <option value="23" <?php if ($day_end == 23) echo 'selected="selected"'; ?> >23</option> |
|
189 | + <option value="24" <?php if ($day_end == 24) echo 'selected="selected"'; ?> >24</option> |
|
190 | + <option value="25" <?php if ($day_end == 25) echo 'selected="selected"'; ?> >25</option> |
|
191 | + <option value="26" <?php if ($day_end == 26) echo 'selected="selected"'; ?> >26</option> |
|
192 | + <option value="27" <?php if ($day_end == 27) echo 'selected="selected"'; ?> >27</option> |
|
193 | + <option value="28" <?php if ($day_end == 28) echo 'selected="selected"'; ?> >28</option> |
|
194 | + <option value="29" <?php if ($day_end == 29) echo 'selected="selected"'; ?> >29</option> |
|
195 | + <option value="30" <?php if ($day_end == 30) echo 'selected="selected"'; ?> >30</option> |
|
196 | + <option value="31" <?php if ($day_end == 31) echo 'selected="selected"'; ?> >31</option> |
|
197 | 197 | </select> |
198 | 198 | / |
199 | 199 | <select name="month_end"> |
200 | 200 | <option value="0">--</option> |
201 | - <option value="1" <?php if($month_end == 1) echo 'selected="selected"'; ?> >01</option> |
|
202 | - <option value="2" <?php if($month_end == 2) echo 'selected="selected"'; ?> >02</option> |
|
203 | - <option value="3" <?php if($month_end == 3) echo 'selected="selected"'; ?> >03</option> |
|
204 | - <option value="4" <?php if($month_end == 4) echo 'selected="selected"'; ?> >04</option> |
|
205 | - <option value="5" <?php if($month_end == 5) echo 'selected="selected"'; ?> >05</option> |
|
206 | - <option value="6" <?php if($month_end == 6) echo 'selected="selected"'; ?> >06</option> |
|
207 | - <option value="7" <?php if($month_end == 7) echo 'selected="selected"'; ?> >07</option> |
|
208 | - <option value="8" <?php if($month_end == 8) echo 'selected="selected"'; ?> >08</option> |
|
209 | - <option value="9" <?php if($month_end == 9) echo 'selected="selected"'; ?> >09</option> |
|
210 | - <option value="10" <?php if($month_end == 10) echo 'selected="selected"'; ?> >10</option> |
|
211 | - <option value="11" <?php if($month_end == 11) echo 'selected="selected"'; ?> >11</option> |
|
212 | - <option value="12" <?php if($month_end == 12) echo 'selected="selected"'; ?> >12</option> |
|
201 | + <option value="1" <?php if ($month_end == 1) echo 'selected="selected"'; ?> >01</option> |
|
202 | + <option value="2" <?php if ($month_end == 2) echo 'selected="selected"'; ?> >02</option> |
|
203 | + <option value="3" <?php if ($month_end == 3) echo 'selected="selected"'; ?> >03</option> |
|
204 | + <option value="4" <?php if ($month_end == 4) echo 'selected="selected"'; ?> >04</option> |
|
205 | + <option value="5" <?php if ($month_end == 5) echo 'selected="selected"'; ?> >05</option> |
|
206 | + <option value="6" <?php if ($month_end == 6) echo 'selected="selected"'; ?> >06</option> |
|
207 | + <option value="7" <?php if ($month_end == 7) echo 'selected="selected"'; ?> >07</option> |
|
208 | + <option value="8" <?php if ($month_end == 8) echo 'selected="selected"'; ?> >08</option> |
|
209 | + <option value="9" <?php if ($month_end == 9) echo 'selected="selected"'; ?> >09</option> |
|
210 | + <option value="10" <?php if ($month_end == 10) echo 'selected="selected"'; ?> >10</option> |
|
211 | + <option value="11" <?php if ($month_end == 11) echo 'selected="selected"'; ?> >11</option> |
|
212 | + <option value="12" <?php if ($month_end == 12) echo 'selected="selected"'; ?> >12</option> |
|
213 | 213 | </select> |
214 | 214 | / |
215 | 215 | <select name="year_end"> |
216 | 216 | <option value="0">----</option> |
217 | 217 | <?php |
218 | - for($i=$thisYear-5;$i <= ($thisYear+5);$i++) |
|
218 | + for ($i = $thisYear - 5; $i <= ($thisYear + 5); $i++) |
|
219 | 219 | { ?> |
220 | - <option value="<?php echo $i; ?>" <?php if($year_end == $i) echo 'selected="selected"'; ?> ><?php echo $i; ?></option> |
|
220 | + <option value="<?php echo $i; ?>" <?php if ($year_end == $i) echo 'selected="selected"'; ?> ><?php echo $i; ?></option> |
|
221 | 221 | <?php |
222 | 222 | } ?> |
223 | 223 | </select> |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | |
239 | 239 | |
240 | 240 | <script> |
241 | -<?php if($year_start=="0000") echo "setDisable(document.form.nolimit);\r\n"; ?> |
|
241 | +<?php if ($year_start == "0000") echo "setDisable(document.form.nolimit);\r\n"; ?> |
|
242 | 242 | function setDisable(select){ |
243 | 243 | document.form.day_start.disabled = (select.checked) ? true : false; |
244 | 244 | document.form.month_start.disabled = (select.checked) ? true : false; |
@@ -132,8 +132,8 @@ |
||
132 | 132 | |
133 | 133 | /* View */ |
134 | 134 | $template = new Template($session->getName(), true, true, false, true, false); |
135 | -$template->assign('show_tutor', (api_get_setting('show_session_coach')==='true' ? true : false)); |
|
136 | -$template->assign('pageUrl', api_get_path(WEB_PATH) . "session/{$session->getId()}/about/"); |
|
135 | +$template->assign('show_tutor', (api_get_setting('show_session_coach') === 'true' ? true : false)); |
|
136 | +$template->assign('pageUrl', api_get_path(WEB_PATH)."session/{$session->getId()}/about/"); |
|
137 | 137 | $template->assign('session', $session); |
138 | 138 | $template->assign('session_date', $sessionDates); |
139 | 139 | $template->assign( |