@@ -198,7 +198,7 @@ |
||
198 | 198 | //"lms_progress_bar_mode='".$myprogress_mode."';" . |
199 | 199 | "olms.lms_view_id=".$view_id.";". |
200 | 200 | "olms.lms_user_id=".$user_id.";". |
201 | - "olms.next_item=".$new_item_id.";". // This one is very important to replace possible literal strings. |
|
201 | + "olms.next_item=".$new_item_id.";".// This one is very important to replace possible literal strings. |
|
202 | 202 | "olms.lms_next_item=".$mynext.";". |
203 | 203 | "olms.lms_previous_item=".$myprevious.";". |
204 | 204 | "olms.lms_item_type = '".$myitemtype."';". |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | } |
100 | 100 | |
101 | 101 | if (!empty($gradebook) && $gradebook == 'view') { |
102 | - $interbreadcrumb[] = array ( |
|
102 | + $interbreadcrumb[] = array( |
|
103 | 103 | 'url' => '../gradebook/'.$_SESSION['gradebook_dest'], |
104 | 104 | 'name' => get_lang('ToolGradebook') |
105 | 105 | ); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $show_learn_path = true; |
113 | 113 | $lp_theme_css = $_SESSION['oLP']->get_theme(); |
114 | 114 | |
115 | -Display::display_header(get_lang('Edit'),'Path'); |
|
115 | +Display::display_header(get_lang('Edit'), 'Path'); |
|
116 | 116 | $suredel = trim(get_lang('AreYouSureToDeleteJS')); |
117 | 117 | |
118 | 118 | ?> |
@@ -165,8 +165,8 @@ discard block |
||
165 | 165 | $path_item = isset($_GET['path_item']) ? $_GET['path_item'] : 0; |
166 | 166 | $path_item = Database::escape_string($path_item); |
167 | 167 | $tbl_doc = Database :: get_course_table(TABLE_DOCUMENT); |
168 | -$sql_doc = "SELECT path FROM " . $tbl_doc . " |
|
169 | - WHERE c_id = $course_id AND id = '". $path_item."' "; |
|
168 | +$sql_doc = "SELECT path FROM ".$tbl_doc." |
|
169 | + WHERE c_id = $course_id AND id = '".$path_item."' "; |
|
170 | 170 | |
171 | 171 | $res_doc = Database::query($sql_doc); |
172 | 172 | $path_file = Database::result($res_doc, 0, 0); |
@@ -28,10 +28,10 @@ |
||
28 | 28 | error_log('In xajax_save_objectives('.$lp_id.','.$user_id.','.$view_id.','.$item_id.',"'.(count($objectives) > 0 ? count($objectives) : '').'")', 0); |
29 | 29 | } |
30 | 30 | $mylp = learnpath::getLpFromSession(api_get_course_id(), $lp_id, $user_id); |
31 | - $mylpi =& $mylp->items[$item_id]; |
|
32 | - if (is_array($objectives) && count($objectives)>0){ |
|
33 | - foreach ($objectives as $index=>$objective){ |
|
34 | - $mylpi->add_objective($index,$objectives[$index]); |
|
31 | + $mylpi = & $mylp->items[$item_id]; |
|
32 | + if (is_array($objectives) && count($objectives) > 0) { |
|
33 | + foreach ($objectives as $index=>$objective) { |
|
34 | + $mylpi->add_objective($index, $objectives[$index]); |
|
35 | 35 | } |
36 | 36 | $mylpi->write_objectives_to_db(); |
37 | 37 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $intro_content = api_substr($content, 0, api_strpos($content, $matches[0][0])); |
118 | 118 | $items_to_create[get_lang('Introduction')] = $intro_content; |
119 | 119 | |
120 | - for ($i = 0; $i<count($matches[0]); $i++) { |
|
120 | + for ($i = 0; $i < count($matches[0]); $i++) { |
|
121 | 121 | |
122 | 122 | if (empty($matches[1][$i])) |
123 | 123 | continue; |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | |
175 | 175 | $first_item = 0; |
176 | 176 | |
177 | - foreach($pages as $key => $page_content) { |
|
177 | + foreach ($pages as $key => $page_content) { |
|
178 | 178 | // For every pages, we create a new file. |
179 | 179 | |
180 | 180 | $key += 1; |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | foreach ($specific_fields as $specific_field) { |
214 | 214 | if (isset($_REQUEST[$specific_field['code']])) { |
215 | 215 | $sterms = trim($_REQUEST[$specific_field['code']]); |
216 | - $all_specific_terms .= ' '. $sterms; |
|
216 | + $all_specific_terms .= ' '.$sterms; |
|
217 | 217 | if (!empty($sterms)) { |
218 | 218 | $sterms = explode(',', $sterms); |
219 | 219 | foreach ($sterms as $sterm) { |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | } |
223 | 223 | } |
224 | 224 | } |
225 | - $page_content = $all_specific_terms .' '. $page_content; |
|
225 | + $page_content = $all_specific_terms.' '.$page_content; |
|
226 | 226 | $ic_slide->addValue('content', $page_content); |
227 | 227 | // Add a comment to say terms separated by commas. |
228 | 228 | $courseid = api_get_course_id(); |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | SE_COURSE_ID => $courseid, |
234 | 234 | SE_TOOL_ID => TOOL_LEARNPATH, |
235 | 235 | SE_DATA => array('lp_id' => $lp_id, 'lp_item' => $previous, 'document_id' => $document_id), |
236 | - SE_USER => (int)api_get_user_id(), |
|
236 | + SE_USER => (int) api_get_user_id(), |
|
237 | 237 | ); |
238 | 238 | $ic_slide->xapian_data = serialize($xapian_data); |
239 | 239 | $di->addChunk($ic_slide); |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | $content = '<body><div style="width:'.$max_width.'">'.$content; |
277 | 277 | } |
278 | 278 | |
279 | - $content = preg_replace('|</body>|i','</div>\\0', $content, -1, $count); |
|
279 | + $content = preg_replace('|</body>|i', '</div>\\0', $content, -1, $count); |
|
280 | 280 | if ($count < 1) { |
281 | 281 | $content = $content.'</div></body>'; |
282 | 282 | } |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | } |
305 | 305 | |
306 | 306 | } elseif ($img_width > $max_width - 10) { |
307 | - $picture_resized = str_ireplace('width='.$img_width, 'width="'.($max_width-10).'"', $images[0][$key]); |
|
307 | + $picture_resized = str_ireplace('width='.$img_width, 'width="'.($max_width - 10).'"', $images[0][$key]); |
|
308 | 308 | $content = str_replace($images[0][$key], $picture_resized, $content); |
309 | 309 | } |
310 | 310 | } |
@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | |
17 | 17 | $is_allowed_to_edit = api_is_allowed_to_edit(null, true); |
18 | 18 | |
19 | -$isStudentView = isset($_REQUEST['isStudentView']) ? (int)$_REQUEST['isStudentView'] : null; |
|
20 | -$learnpath_id = (int)$_REQUEST['lp_id']; |
|
19 | +$isStudentView = isset($_REQUEST['isStudentView']) ? (int) $_REQUEST['isStudentView'] : null; |
|
20 | +$learnpath_id = (int) $_REQUEST['lp_id']; |
|
21 | 21 | $submit = isset($_POST['submit_button']) ? $_POST['submit_button'] : null; |
22 | 22 | |
23 | 23 | $type = isset($_GET['type']) ? $_GET['type'] : null; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | if (!empty($gradebook) && $gradebook == 'view') { |
44 | - $interbreadcrumb[] = array ( |
|
44 | + $interbreadcrumb[] = array( |
|
45 | 45 | 'url' => '../gradebook/'.$_SESSION['gradebook_dest'], |
46 | 46 | 'name' => get_lang('ToolGradebook') |
47 | 47 | ); |
@@ -65,12 +65,12 @@ discard block |
||
65 | 65 | ); |
66 | 66 | break; |
67 | 67 | default: |
68 | - $interbreadcrumb[]= array('url' => '#', 'name' => get_lang('NewStep')); |
|
68 | + $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('NewStep')); |
|
69 | 69 | break; |
70 | 70 | } |
71 | 71 | |
72 | 72 | if ($action == 'add_item' && $type == 'document') { |
73 | - $interbreadcrumb[]= array ('url' => '#', 'name' => get_lang('NewDocumentCreated')); |
|
73 | + $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('NewDocumentCreated')); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | // Theme calls. |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $form = new FormValidator( |
87 | 87 | 'add_audio', |
88 | 88 | 'post', |
89 | - api_get_self() . '?action=add_audio&id=' . $lp_item_id . '&' . api_get_cidreq().'&lp_id='.$learnpath_id, |
|
89 | + api_get_self().'?action=add_audio&id='.$lp_item_id.'&'.api_get_cidreq().'&lp_id='.$learnpath_id, |
|
90 | 90 | null, |
91 | 91 | array('enctype' => 'multipart/form-data') |
92 | 92 | ); |
@@ -100,8 +100,8 @@ discard block |
||
100 | 100 | $urlFile = api_get_path(WEB_COURSE_PATH).$courseInfo['path'].'/document/audio/'.$lp_item->audio.'?'.api_get_cidreq(); |
101 | 101 | |
102 | 102 | if (!file_exists($file)) { |
103 | - $file = api_get_path(SYS_COURSE_PATH).$courseInfo['path'].'/document'.$lpPathInfo['dir'] . '/' . $lp_item->audio; |
|
104 | - $urlFile = api_get_path(WEB_COURSE_PATH).$courseInfo['path'].'/document'.$lpPathInfo['dir'] . '/' . $lp_item->audio.'?'.api_get_cidreq(); |
|
103 | + $file = api_get_path(SYS_COURSE_PATH).$courseInfo['path'].'/document'.$lpPathInfo['dir'].'/'.$lp_item->audio; |
|
104 | + $urlFile = api_get_path(WEB_COURSE_PATH).$courseInfo['path'].'/document'.$lpPathInfo['dir'].'/'.$lp_item->audio.'?'.api_get_cidreq(); |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | |
@@ -117,10 +117,10 @@ discard block |
||
117 | 117 | |
118 | 118 | $page .= '<div id="doc_form" class="col-md-8">'; |
119 | 119 | |
120 | -$htmlHeadXtra[] = '<script src="' . api_get_path(WEB_LIBRARY_JS_PATH) . 'rtc/RecordRTC.js"></script>'; |
|
121 | -$htmlHeadXtra[] = '<script src="' . api_get_path(WEB_LIBRARY_PATH) . 'wami-recorder/recorder.js"></script>'; |
|
122 | -$htmlHeadXtra[] = '<script src="' . api_get_path(WEB_LIBRARY_PATH) . 'wami-recorder/gui.js"></script>'; |
|
123 | -$htmlHeadXtra[] = '<script type="text/javascript" src="' . api_get_path(WEB_LIBRARY_PATH) . 'swfobject/swfobject.js"></script>'; |
|
120 | +$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_JS_PATH).'rtc/RecordRTC.js"></script>'; |
|
121 | +$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'wami-recorder/recorder.js"></script>'; |
|
122 | +$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'wami-recorder/gui.js"></script>'; |
|
123 | +$htmlHeadXtra[] = '<script type="text/javascript" src="'.api_get_path(WEB_LIBRARY_PATH).'swfobject/swfobject.js"></script>'; |
|
124 | 124 | |
125 | 125 | $tpl = new Template(null); |
126 | 126 | $tpl->assign('unique_file_id', api_get_unique_id()); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | Display::getMediaPlayer($file, array('url' => $urlFile)). |
142 | 142 | "</div>"; |
143 | 143 | $form->addElement('label', get_lang('Listen'), $audioPlayer); |
144 | - $url = api_get_path(WEB_CODE_PATH) . 'lp/lp_controller.php?lp_id='.$_SESSION['oLP']->get_id().'&action=add_audio&id='.$lp_item_id.'&delete_file=1&'.api_get_cidreq(); |
|
144 | + $url = api_get_path(WEB_CODE_PATH).'lp/lp_controller.php?lp_id='.$_SESSION['oLP']->get_id().'&action=add_audio&id='.$lp_item_id.'&delete_file=1&'.api_get_cidreq(); |
|
145 | 145 | $form->addElement('label', null, Display::url(get_lang('RemoveAudio'), $url, array('class' => 'btn btn-danger'))); |
146 | 146 | } else { |
147 | 147 | $form->addElement('file', 'file'); |
@@ -124,22 +124,22 @@ |
||
124 | 124 | $coreExit = $myLPI->get_core_exit(); |
125 | 125 | |
126 | 126 | $return .= |
127 | - "olms.lms_lp_id=".$lpId.";" . |
|
128 | - "olms.lms_item_id=".$newItemId.";" . |
|
129 | - "olms.lms_old_item_id=".$oldItemId.";" . |
|
130 | - "olms.lms_initialized=0;" . |
|
131 | - "olms.lms_view_id=".$viewId.";" . |
|
132 | - "olms.lms_user_id=".$userId.";" . |
|
133 | - "olms.next_item=".$newItemId.";" . // This one is very important to replace possible literal strings. |
|
134 | - "olms.lms_next_item=".$nextItemId.";" . |
|
135 | - "olms.lms_previous_item=".$previousItemId.";" . |
|
136 | - "olms.lms_item_type = '".$itemType."';" . |
|
137 | - "olms.lms_item_credit = '".$credit."';" . |
|
138 | - "olms.lms_item_lesson_mode = '".$lessonMode."';" . |
|
139 | - "olms.lms_item_launch_data = '".$launchData."';" . |
|
140 | - "olms.lms_item_interactions_count = '".$interactionsCount."';" . |
|
141 | - "olms.lms_item_objectives_count = '".$objectivesCount."';" . |
|
142 | - "olms.lms_item_core_exit = '".$coreExit."';" . |
|
127 | + "olms.lms_lp_id=".$lpId.";". |
|
128 | + "olms.lms_item_id=".$newItemId.";". |
|
129 | + "olms.lms_old_item_id=".$oldItemId.";". |
|
130 | + "olms.lms_initialized=0;". |
|
131 | + "olms.lms_view_id=".$viewId.";". |
|
132 | + "olms.lms_user_id=".$userId.";". |
|
133 | + "olms.next_item=".$newItemId.";".// This one is very important to replace possible literal strings. |
|
134 | + "olms.lms_next_item=".$nextItemId.";". |
|
135 | + "olms.lms_previous_item=".$previousItemId.";". |
|
136 | + "olms.lms_item_type = '".$itemType."';". |
|
137 | + "olms.lms_item_credit = '".$credit."';". |
|
138 | + "olms.lms_item_lesson_mode = '".$lessonMode."';". |
|
139 | + "olms.lms_item_launch_data = '".$launchData."';". |
|
140 | + "olms.lms_item_interactions_count = '".$interactionsCount."';". |
|
141 | + "olms.lms_item_objectives_count = '".$objectivesCount."';". |
|
142 | + "olms.lms_item_core_exit = '".$coreExit."';". |
|
143 | 143 | "olms.asset_timer = 0;"; |
144 | 144 | |
145 | 145 | $return .= "update_toc('unhighlight','".$currentItem."');". |
@@ -43,9 +43,9 @@ discard block |
||
43 | 43 | |
44 | 44 | $result = Database::query($sql); |
45 | 45 | |
46 | - $cats=array(); |
|
47 | - while ($data=Database::fetch_array($result)) { |
|
48 | - $cats[] = array ($data['id'], $data['name']); |
|
46 | + $cats = array(); |
|
47 | + while ($data = Database::fetch_array($result)) { |
|
48 | + $cats[] = array($data['id'], $data['name']); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | return $cats; |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | $result = Database::query($sql); |
73 | 73 | |
74 | 74 | $cats = array(); |
75 | - while ($data=Database::fetch_array($result)) { |
|
76 | - $cats[] = array ($data['id'], $data['name']); |
|
75 | + while ($data = Database::fetch_array($result)) { |
|
76 | + $cats[] = array($data['id'], $data['name']); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | return $cats; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $sql = "SELECT count(id) AS number FROM $tbl_stats |
90 | 90 | WHERE c_id = ".$this->course_id." AND lp_id = ".$this->get_ref_id(); |
91 | 91 | $result = Database::query($sql); |
92 | - $number = Database::fetch_array($result,'NUM'); |
|
92 | + $number = Database::fetch_array($result, 'NUM'); |
|
93 | 93 | return ($number[0] != 0); |
94 | 94 | } |
95 | 95 | |
@@ -121,12 +121,12 @@ discard block |
||
121 | 121 | // for 1 student |
122 | 122 | if (isset($stud_id)) { |
123 | 123 | if ($data = Database::fetch_assoc($scores)) { |
124 | - return array ($data['progress'], 100); |
|
124 | + return array($data['progress'], 100); |
|
125 | 125 | } else |
126 | 126 | return null; |
127 | 127 | } else { |
128 | 128 | // all students -> get average |
129 | - $students = array(); // user list, needed to make sure we only |
|
129 | + $students = array(); // user list, needed to make sure we only |
|
130 | 130 | // take first attempts into account |
131 | 131 | $rescount = 0; |
132 | 132 | $sum = 0; |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | return array($bestResult, 100); |
155 | 155 | break; |
156 | 156 | case 'average': |
157 | - return array($sumResult/$rescount, 100); |
|
157 | + return array($sumResult / $rescount, 100); |
|
158 | 158 | break; |
159 | 159 | case 'ranking': |
160 | 160 | return AbstractLink::getCurrentUserRanking($stud_id, $students); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | public function get_link() |
174 | 174 | { |
175 | 175 | $session_id = api_get_session_id(); |
176 | - $url = api_get_path(WEB_CODE_PATH) . 'lp/lp_controller.php?'.api_get_cidreq_params($this->get_course_code(), $session_id).'&gradebook=view'; |
|
176 | + $url = api_get_path(WEB_CODE_PATH).'lp/lp_controller.php?'.api_get_cidreq_params($this->get_course_code(), $session_id).'&gradebook=view'; |
|
177 | 177 | |
178 | 178 | if (!api_is_allowed_to_edit() || $this->calc_score(api_get_user_id()) == null) { |
179 | 179 | $url .= '&action=view&lp_id='.$this->get_ref_id(); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | $sql = 'SELECT count(id) FROM '.$this->get_learnpath_table().' |
209 | 209 | WHERE c_id = '.$this->course_id.' AND id = '.$this->get_ref_id().' '; |
210 | 210 | $result = Database::query($sql); |
211 | - $number = Database::fetch_row($result,'NUM'); |
|
211 | + $number = Database::fetch_row($result, 'NUM'); |
|
212 | 212 | return ($number[0] != 0); |
213 | 213 | } |
214 | 214 |
@@ -166,8 +166,8 @@ discard block |
||
166 | 166 | $gradebook = $_SESSION['gradebook']; |
167 | 167 | } |
168 | 168 | |
169 | - if (!empty($gradebook) && $gradebook=='view') { |
|
170 | - $interbreadcrumb[]= array ( |
|
169 | + if (!empty($gradebook) && $gradebook == 'view') { |
|
170 | + $interbreadcrumb[] = array( |
|
171 | 171 | 'url' => '../gradebook/'.$_SESSION['gradebook_dest'], |
172 | 172 | 'name' => get_lang('ToolGradebook') |
173 | 173 | ); |
@@ -187,19 +187,19 @@ discard block |
||
187 | 187 | echo '<div class="actions">'; |
188 | 188 | |
189 | 189 | if ($objExercise->id != 0) { |
190 | - echo '<a href="admin.php?'.api_get_cidreq().'&exerciseId='.$objExercise->id.'">' . |
|
190 | + echo '<a href="admin.php?'.api_get_cidreq().'&exerciseId='.$objExercise->id.'">'. |
|
191 | 191 | Display :: return_icon('back.png', get_lang('GoBackToQuestionList'), '', ICON_SIZE_MEDIUM).'</a>'; |
192 | 192 | } else { |
193 | - if (!empty($_GET['lp_id']) || !empty($_POST['lp_id'])){ |
|
194 | - if (!empty($_POST['lp_id'])){ |
|
193 | + if (!empty($_GET['lp_id']) || !empty($_POST['lp_id'])) { |
|
194 | + if (!empty($_POST['lp_id'])) { |
|
195 | 195 | $lp_id = intval($_POST['lp_id']); |
196 | 196 | //TODO:this remains to be implemented after press the first post |
197 | 197 | } else { |
198 | 198 | $lp_id = intval($_GET['lp_id']); |
199 | 199 | } |
200 | - echo "<a href=\"../lp/lp_controller.php?".api_get_cidreq()."&gradebook=&action=add_item&type=step&lp_id=".$lp_id."#resource_tab-2\">".Display::return_icon('back.png', get_lang("BackTo").' '.get_lang("LearningPaths"),'',ICON_SIZE_MEDIUM)."</a>"; |
|
200 | + echo "<a href=\"../lp/lp_controller.php?".api_get_cidreq()."&gradebook=&action=add_item&type=step&lp_id=".$lp_id."#resource_tab-2\">".Display::return_icon('back.png', get_lang("BackTo").' '.get_lang("LearningPaths"), '', ICON_SIZE_MEDIUM)."</a>"; |
|
201 | 201 | } else { |
202 | - echo '<a href="exercise.php?'.api_get_cidreq().'">' . |
|
202 | + echo '<a href="exercise.php?'.api_get_cidreq().'">'. |
|
203 | 203 | Display :: return_icon('back.png', get_lang('BackToExercisesList'), '', ICON_SIZE_MEDIUM). |
204 | 204 | '</a>'; |
205 | 205 | } |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | get_lang('DirectFeedbackCantModifyTypeQuestion') |
212 | 212 | ); |
213 | 213 | |
214 | - if (api_get_setting('search_enabled')=='true' && !extension_loaded('xapian')) { |
|
214 | + if (api_get_setting('search_enabled') == 'true' && !extension_loaded('xapian')) { |
|
215 | 215 | Display::display_error_message(get_lang('SearchXapianModuleNotInstalled')); |
216 | 216 | } |
217 | 217 |
@@ -12,8 +12,8 @@ discard block |
||
12 | 12 | */ |
13 | 13 | $noPHP_SELF = false; |
14 | 14 | $nameTools = get_lang('FileUpload'); |
15 | -$interbreadcrumb[]= array ("url"=>"../lp/lp_controller.php?action=list", "name"=> get_lang(TOOL_DOCUMENT)); |
|
16 | -Display::display_header($nameTools,"Doc"); |
|
15 | +$interbreadcrumb[] = array("url"=>"../lp/lp_controller.php?action=list", "name"=> get_lang(TOOL_DOCUMENT)); |
|
16 | +Display::display_header($nameTools, "Doc"); |
|
17 | 17 | //show the title |
18 | 18 | api_display_tool_title($nameTools.$add_group_to_title); |
19 | 19 | ?> |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | <div id="dynamic_div" style="display:block;margin-left:40%;margin-top:10px;height:50px;"> |
22 | 22 | </div> |
23 | 23 | <div id="upload_form_div" name="form_div" style="display:block;"> |
24 | - <form method="POST" action="upload.php" id="upload_form" enctype="multipart/form-data" onsubmit="javascript: myUpload.start('dynamic_div','progressbar_green.gif','<?php echo(get_lang('Uploading', ''));?>','upload_form_div');"> |
|
24 | + <form method="POST" action="upload.php" id="upload_form" enctype="multipart/form-data" onsubmit="javascript: myUpload.start('dynamic_div','progressbar_green.gif','<?php echo(get_lang('Uploading', '')); ?>','upload_form_div');"> |
|
25 | 25 | <input type="hidden" name="curdirpath" value="<?php echo $path; ?>"> |
26 | 26 | <input type="hidden" name="tool" value="<?php echo $my_tool; ?>"> |
27 | 27 | <input type="file" name="user_file"> |