- </script>";
-
- start_table($table_style2);
-
- if ($selected_id != -1 && $extensions[$selected_id]['type'] == 'plugin')
- {
- $mod = $extensions[$selected_id];
- $_POST['tab'] = $mod['tab'];
- $_POST['name'] = $mod['name'];
- $_POST['title'] = $mod['title'];
- $_POST['path'] = $mod['path'];
- $_POST['filename'] = $mod['filename'];
- $_POST['acc_file'] = @$mod['acc_file'];
- hidden('selected_id', $selected_id);
- hidden('filename', $_POST['filename']);
- hidden('acc_file', $_POST['acc_file']);
- }
- text_row_ex(_("Name"), 'name', 30);
- text_row_ex(_("Folder"), 'path', 20);
-
- tab_list_row(_("Menu Tab"), 'tab', null);
- text_row_ex(_("Menu Link Text"), 'title', 30);
- record_status_list_row(_("Default status"), 'active');
-
- label_row(_("Module File"), "<input name='uploadfile' type='file'>");
- label_row(_("Access Levels Extensions"), "<input name='uploadfile3' type='file'>");
- label_row(_("SQL File"), "<input name='uploadfile2' type='file'>");
-
- end_table(0);
- display_note(_("Select your module PHP file from your local harddisk."), 0, 1);
-
- echo "<center><input onclick='javascript:updateModule()' type='button' style='width:150px' value='". _("Save"). "'></center>";
-
-}
-
-//---------------------------------------------------------------------------------------------
-if (get_post('Update')) {
- $exts = get_company_extensions();
- for($i = 0; $i < count($exts); $i++) {
- $exts[$i]['active'] = check_value('Active'.$i);