5 require_once
"./classes/class.ilObjectGUI.php";
29 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,
false);
31 define (
"ILINC_DEFAULT_HTTP_PORT",80);
32 define (
"ILINC_DEFAULT_SSL_PORT",443);
33 define (
"ILINC_DEFAULT_TIMEOUT",30);
34 $lng->loadLanguageModule(
"delic");
35 $lng->loadLanguageModule(
"gmaps");
36 $lng->loadLanguageModule(
"jsmath");
48 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
50 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
57 $this->tpl->setVariable(
"FORMACTION",
58 $this->ctrl->getFormAction($this));
59 $this->tpl->setVariable(
"TXT_EXTT_TITLE", $this->lng->txt(
"extt_title_configure"));
61 $this->tpl->setVariable(
"TXT_EXTT_NAME", $this->lng->txt(
"extt_name"));
62 $this->tpl->setVariable(
"TXT_EXTT_ACTIVE", $this->lng->txt(
"active").
"?");
63 $this->tpl->setVariable(
"TXT_EXTT_DESC", $this->lng->txt(
"description"));
65 $this->tpl->setVariable(
"TXT_CONFIGURE", $this->lng->txt(
"extt_configure"));
66 $this->tpl->setVariable(
"TXT_EXTT_REMARK", $this->lng->txt(
"extt_remark"));
69 $this->tpl->setVariable(
"TXT_EXTT_ILINC_NAME", $this->lng->txt(
"extt_ilinc"));
70 $this->tpl->setVariable(
"TXT_EXTT_ILINC_DESC", $this->lng->txt(
"extt_ilinc_desc"));
74 $icon_ok =
"<img src=\"".ilUtil::getImagePath(
"icon_ok.gif").
"\" alt=\"".$this->lng->txt(
"enabled").
"\" title=\"".$this->lng->txt(
"enabled").
"\" border=\"0\" vspace=\"0\"/>";
75 $icon_not_ok =
"<img src=\"".ilUtil::getImagePath(
"icon_not_ok.gif").
"\" alt=\"".$this->lng->txt(
"disabled").
"\" title=\"".$this->lng->txt(
"disabled").
"\" border=\"0\" vspace=\"0\"/>";
77 $this->tpl->setVariable(
"EXTT_ILINC_ACTIVE", $this->ilias->getSetting(
'ilinc_active') ? $icon_ok : $icon_not_ok);
82 $this->ctrl->redirect($this,
"view");
99 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
101 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
103 $tabs_gui->addTarget(
"settings",
104 $this->ctrl->getLinkTarget($this,
"view"),
105 array(
"view",
"editiLinc",
"editDelicious",
"editGoogleMaps",
"editjsMath",
""),
"",
"");
107 $this->lng->loadLanguageModule(
'ecs');
108 $tabs_gui->addTarget(
'ecs_server_settings',
109 $this->ctrl->getLinkTargetByClass(
'ilecssettingsgui',
'overview'));
113 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
115 $tabs_gui->addTarget(
"perm_settings",
116 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
127 global $rbacsystem, $rbacreview;
129 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
131 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
138 if (
$_SESSION[
"error_post_vars"][
"ilinc"][
"active"] ==
"1")
140 $this->tpl->setVariable(
"CHK_ILINC_ACTIVE",
"checked=\"checked\"");
143 if (
$_SESSION[
"error_post_vars"][
"ilinc"][
"akclassvalues_active"] ==
"1")
145 $this->tpl->setVariable(
"CHK_ILINC_AKCLASSVALUES_ACTIVE",
"checked=\"checked\"");
148 if (
$_SESSION[
"error_post_vars"][
"ilinc"][
"akclassvalues_required"] ==
"1")
150 $this->tpl->setVariable(
"CHK_ILINC_AKCLASSVALUES_REQUIRED",
"checked=\"checked\"");
153 $this->tpl->setVariable(
"ILINC_SERVER",
$_SESSION[
"error_post_vars"][
"ilinc"][
"server"]);
154 $this->tpl->setVariable(
"ILINC_REGISTRAR_LOGIN",
$_SESSION[
"error_post_vars"][
"ilinc"][
"registrar_login"]);
155 $this->tpl->setVariable(
"ILINC_REGISTRAR_PASSWD",
$_SESSION[
"error_post_vars"][
"ilinc"][
"registrar_passwd"]);
156 $this->tpl->setVariable(
"ILINC_CUSTOMER_ID",
$_SESSION[
"error_post_vars"][
"ilinc"][
"customer_id"]);
161 $settings = $this->ilias->getAllSettings();
163 if ($settings[
"ilinc_active"] ==
"1")
165 $this->tpl->setVariable(
"CHK_ILINC_ACTIVE",
"checked=\"checked\"");
168 $this->tpl->setVariable(
"ILINC_SERVER", $settings[
"ilinc_server"].$settings[
"ilinc_path"]);
169 $this->tpl->setVariable(
"ILINC_REGISTRAR_LOGIN", $settings[
"ilinc_registrar_login"]);
170 $this->tpl->setVariable(
"ILINC_REGISTRAR_PASSWD", $settings[
"ilinc_registrar_passwd"]);
171 $this->tpl->setVariable(
"ILINC_CUSTOMER_ID", $settings[
"ilinc_customer_id"]);
173 if (empty($settings[
"ilinc_port"]))
175 $this->tpl->setVariable(
"ILINC_PORT", ILINC_DEFAULT_HTTP_PORT);
179 $this->tpl->setVariable(
"ILINC_PORT", $settings[
"ilinc_port"]);
182 if ($settings[
"ilinc_protocol"] ==
"https")
184 $this->tpl->setVariable(
"ILINC_PROTOCOL_SSL_SEL",
"selected=\"selected\"");
188 $this->tpl->setVariable(
"ILINC_PROTOCOL_HTTP_SEL",
"selected=\"selected\"");
191 if (empty($settings[
"ilinc_timeout"]))
193 $this->tpl->setVariable(
"ILINC_TIMEOUT", ILINC_DEFAULT_TIMEOUT);
197 $this->tpl->setVariable(
"ILINC_TIMEOUT", $settings[
"ilinc_timeout"]);
200 if ($settings[
"ilinc_akclassvalues_active"] ==
"1")
202 $this->tpl->setVariable(
"CHK_ILINC_AKCLASSVALUES_ACTIVE",
"checked=\"checked\"");
205 if ($settings[
"ilinc_akclassvalues_required"] ==
"1")
207 $this->tpl->setVariable(
"CHK_ILINC_AKCLASSVALUES_REQUIRED",
"checked=\"checked\"");
213 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
214 $this->tpl->setVariable(
"TXT_ILINC_TITLE", $this->lng->txt(
"extt_ilinc_configure"));
215 $this->tpl->setVariable(
"TXT_ILINC_ACTIVE", $this->lng->txt(
"extt_ilinc_enable"));
216 $this->tpl->setVariable(
"TXT_ILINC_CONNECTION_DATA", $this->lng->txt(
"extt_ilinc_connection_data"));
217 $this->tpl->setVariable(
"TXT_ILINC_ADDITIONAL_OPTIONS", $this->lng->txt(
"extt_ilinc_additional_options"));
218 $this->tpl->setVariable(
"TXT_ILINC_SERVER", $this->lng->txt(
"extt_ilinc_server"));
219 $this->tpl->setVariable(
"TXT_ILINC_PROTOCOL_PORT", $this->lng->txt(
"extt_ilinc_protocol_port"));
220 $this->tpl->setVariable(
"TXT_ILINC_TIMEOUT", $this->lng->txt(
"extt_ilinc_timeout"));
221 $this->tpl->setVariable(
"ILINC_DEFAULT_HTTP_PORT", ILINC_DEFAULT_HTTP_PORT);
222 $this->tpl->setVariable(
"ILINC_DEFAULT_SSL_PORT", ILINC_DEFAULT_SSL_PORT);
223 $this->tpl->setVariable(
"TXT_HTTP", $this->lng->txt(
'http'));
224 $this->tpl->setVariable(
"TXT_SSL", $this->lng->txt(
'ssl'));
226 $this->tpl->setVariable(
"TXT_SECONDS", $this->lng->txt(
"seconds"));
227 $this->tpl->setVariable(
"TXT_ILINC_REGISTRAR_LOGIN", $this->lng->txt(
"extt_ilinc_registrar_login"));
228 $this->tpl->setVariable(
"TXT_ILINC_REGISTRAR_PASSWD", $this->lng->txt(
"extt_ilinc_registrar_passwd"));
229 $this->tpl->setVariable(
"TXT_ILINC_CUSTOMER_ID", $this->lng->txt(
"extt_ilinc_customer_id"));
231 $this->tpl->setVariable(
"TXT_ILINC_AKCLASSVALUES_ACTIVE", $this->lng->txt(
"extt_ilinc_akclassvalues_active"));
232 $this->tpl->setVariable(
"TXT_ILINC_AKCLASSVALUES_ACTIVE_INFO", $this->lng->txt(
"extt_ilinc_akclassvalues_active_info"));
233 $this->tpl->setVariable(
"TXT_ILINC_AKCLASSVALUES_REQUIRED", $this->lng->txt(
"extt_ilinc_akclassvalues_required"));
234 $this->tpl->setVariable(
"TXT_ILINC_AKCLASSVALUES_REQUIRED_INFO", $this->lng->txt(
"extt_ilinc_akclassvalues_required_info"));
236 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
237 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
238 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
239 $this->tpl->setVariable(
"CMD_SUBMIT",
"saveiLinc");
252 if (!
$_POST[
"ilinc"][
"server"] or !
$_POST[
"ilinc"][
"port"] or !
$_POST[
"ilinc"][
"registrar_login"] or !
$_POST[
"ilinc"][
"registrar_passwd"] or !
$_POST[
"ilinc"][
"customer_id"])
254 $this->ilias->raiseError($this->lng->txt(
"fill_out_all_required_fields"),$this->ilias->error_obj->MESSAGE);
258 if ((preg_match(
"/^[0-9]{0,5}$/",
$_POST[
"ilinc"][
"port"])) ==
false)
260 $this->ilias->raiseError($this->lng->txt(
"err_invalid_port"),$this->ilias->error_obj->MESSAGE);
263 if (substr(
$_POST[
"ilinc"][
"server"],0,8) !=
"https://" and substr(
$_POST[
"ilinc"][
"server"],0,7) !=
"http://")
265 $_POST[
"ilinc"][
"server"] =
$_POST[
"ilinc"][
"protocol"].
"://".
$_POST[
"ilinc"][
"server"];
268 $url = parse_url(
$_POST[
"ilinc"][
"server"]);
272 $this->ilias->raiseError($this->lng->txt(
"err_invalid_server"),$this->ilias->error_obj->MESSAGE);
275 if (is_numeric(
$_POST[
"ilinc"][
"timeout"]))
277 $this->ilias->setSetting(
"ilinc_timeout",
$_POST[
"ilinc"][
"timeout"]);
281 $this->ilias->setSetting(
"ilinc_server", $url[
"host"]);
282 $this->ilias->setSetting(
"ilinc_path", $url[
"path"]);
283 $this->ilias->setSetting(
"ilinc_protocol",
$_POST[
"ilinc"][
"protocol"]);
284 $this->ilias->setSetting(
"ilinc_port",
$_POST[
"ilinc"][
"port"]);
285 $this->ilias->setSetting(
"ilinc_active",
$_POST[
"ilinc"][
"active"]);
286 $this->ilias->setSetting(
"ilinc_registrar_login",
$_POST[
"ilinc"][
"registrar_login"]);
287 $this->ilias->setSetting(
"ilinc_registrar_passwd",
$_POST[
"ilinc"][
"registrar_passwd"]);
288 $this->ilias->setSetting(
"ilinc_customer_id",
$_POST[
"ilinc"][
"customer_id"]);
290 $this->ilias->setSetting(
"ilinc_akclassvalues_active",
$_POST[
"ilinc"][
"akclassvalues_active"]);
291 $this->ilias->setSetting(
"ilinc_akclassvalues_required",
$_POST[
"ilinc"][
"akclassvalues_required"]);
294 $this->ctrl->redirect($this,
'editiLinc');
301 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
303 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
308 include_once
'class.ilSocialBookmarks.php';
310 $this->tpl->setVariable(
'ADM_CONTENT', $form->getHTML());
317 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
319 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
322 include_once
'class.ilSocialBookmarks.php';
324 if ($form->checkInput())
326 $title = $form->getInput(
'title');
327 $link = $form->getInput(
'link');
328 $file = $form->getInput(
'image_file');
329 $active = $form->getInput(
'activate');
331 $extension = pathinfo(
$file[
'name'], PATHINFO_EXTENSION);
332 $icon_path =
ilUtil::getWebspaceDir() . DIRECTORY_SEPARATOR .
'social_bm_icons' . DIRECTORY_SEPARATOR . time() .
'.' . $extension;
347 $form->setValuesByPost();
348 $this->tpl->setVariable(
'ADM_CONTENT', $form->getHTML());
356 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
358 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
361 include_once
'class.ilSocialBookmarks.php';
363 if ($form->checkInput())
365 $title = $form->getInput(
'title');
366 $link = $form->getInput(
'link');
367 $file = $form->getInput(
'image_file');
368 $active = $form->getInput(
'activate');
369 $id = $form->getInput(
'sbm_id');
375 $extension = pathinfo(
$file[
'name'], PATHINFO_EXTENSION);
376 $icon_path =
ilUtil::getWebspaceDir() . DIRECTORY_SEPARATOR .
'social_bm_icons' . DIRECTORY_SEPARATOR . time() .
'.' . $extension;
392 $form->setValuesByPost();
393 $this->tpl->setVariable(
'ADM_CONTENT', $form->getHTML());
406 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
408 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
413 include_once
'class.ilSocialBookmarks.php';
417 'sbm_id' =>
$row->sbm_id,
418 'title' =>
$row->sbm_title,
419 'link' =>
$row->sbm_link,
420 'activate' =>
$row->sbm_active
424 $form->setValuesByArray($dset);
425 $this->tpl->setVariable(
'ADM_CONTENT', $form->getHTML());
432 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
434 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
437 $ids = ((int)
$_GET[
'sbm_id']) ? array((
int)
$_GET[
'sbm_id']) :
$_POST[
'sbm_id'];
438 include_once
'class.ilSocialBookmarks.php';
447 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
449 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
452 $ids = ((int)
$_GET[
'sbm_id']) ? array((
int)
$_GET[
'sbm_id']) :
$_POST[
'sbm_id'];
453 include_once
'class.ilSocialBookmarks.php';
462 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
464 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
470 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
473 $ids = ((int)
$_GET[
'sbm_id']) ? array((
int)
$_GET[
'sbm_id']) :
$_POST[
'sbm_id'];
476 $c_gui->setFormAction($ilCtrl->getFormAction($this,
"confirmDeleteSocialBookmarks"));
477 $c_gui->setHeaderText($lng->txt(
"socialbm_sure_delete_entry"));
478 $c_gui->setCancel($lng->txt(
"cancel"),
"editSocialBookmarks");
479 $c_gui->setConfirm($lng->txt(
"confirm"),
"confirmDeleteSocialBookmarks");
481 include_once
'class.ilSocialBookmarks.php';
486 $c_gui->addItem(
"sbm_id[]", $id, $entry->sbm_title .
' (' . str_replace(
'{',
'{', $entry->sbm_link) .
')');
489 $this->tpl->setVariable(
'ADM_CONTENT', $c_gui->getHTML());
496 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
498 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
502 $ids = ((int)
$_GET[
'sbm_id']) ? array((
int)
$_GET[
'sbm_id']) :
$_POST[
'sbm_id'];
503 include_once
'class.ilSocialBookmarks.php';
517 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
519 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
526 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
528 include_once
'class.ilSocialBookmarks.php';
532 foreach($rset as
$row)
535 $current_selection_list->setListTitle($lng->txt(
"actions"));
536 $current_selection_list->setId(
"act_".$counter++);
538 $ilCtrl->setParameter($this,
'sbm_id', $row->sbm_id);
540 $current_selection_list->addItem($lng->txt(
"edit"),
'', $ilCtrl->getLinkTarget($this,
"editSocialBookmark"));
541 $current_selection_list->addItem($lng->txt(
"delete"),
'', $ilCtrl->getLinkTarget($this,
"deleteSocialBookmarks"));
544 if ($row->sbm_active)
546 $current_selection_list->addItem($lng->txt(
"socialbm_disable"),
'', $toggle_action = $ilCtrl->getLinkTarget($this,
"disableSocialBookmarks"));
550 $current_selection_list->addItem($lng->txt(
"socialbm_enable"),
'', $toggle_action = $ilCtrl->getLinkTarget($this,
"enableSocialBookmarks"));
558 'ID' => $row->sbm_id,
559 'TITLE' => $row->sbm_title,
560 'LINK' => str_replace(
'{',
'{', $row->sbm_link),
561 'ICON' => $row->sbm_icon,
562 'ACTIVE' => $row->sbm_active ? $lng->txt(
'enabled') : $lng->txt(
'disabled'),
563 'ACTIONS' => $current_selection_list->getHTML(),
564 'TOGGLE_LINK' => $toggle_action
566 $ilCtrl->clearParameters($this);
569 require_once
'Services/Table/classes/class.ilTable2GUI.php';
570 $table =
new ilTable2GUI($this,
'editSocialBookmarks');
571 $table->setFormName(
'smtable');
572 $table->setId(
'smtable');
573 $table->setPrefix(
'sm');
574 $table->setFormAction($ilCtrl->getFormAction($this,
'saveSocialBookmarks'));
575 $table->addColumn(
'',
'check',
'',
true);
576 $table->addColumn($lng->txt(
'icon'),
'');
577 $table->addColumn($lng->txt(
'title'),
'TITLE');
578 $table->addColumn($lng->txt(
'link'),
'LINK');
579 $table->addColumn($lng->txt(
'active'),
'ACTIVE');
580 $table->addColumn($lng->txt(
'actions'),
'');
581 $table->setTitle($lng->txt(
'bm_manage_social_bm'));
582 $table->setData($dset);
583 $table->setRowTemplate(
'tpl.social_bookmarking_row.html',
'Services/Administration');
584 $table->setSelectAllCheckbox(
'sbm_id');
586 $table->setDefaultOrderField(
"title");
587 $table->setDefaultOrderDirection(
"asc");
589 $table->addMultiCommand(
'enableSocialBookmarks', $lng->txt(
'socialbm_enable'));
590 $table->addMultiCommand(
'disableSocialBookmarks', $lng->txt(
'socialbm_disable'));
591 $table->addMultiCommand(
'deleteSocialBookmarks', $lng->txt(
'delete'));
593 $table->addCommandButton(
'addSocialBookmark', $lng->txt(
'create'));
595 $this->tpl->setVariable(
'ADM_CONTENT', $table->getHTML());
608 $jsMathSetting =
new ilSetting(
"jsMath");
609 $path_to_jsmath = array_key_exists(
"path_to_jsmath",
$_GET) ?
$_GET[
"path_to_jsmath"] : $jsMathSetting->get(
"path_to_jsmath");
613 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
615 $form->setFormAction($ilCtrl->getFormAction($this));
616 $form->setTitle($lng->txt(
"jsmath_settings"));
620 $enable->
setChecked($jsMathSetting->get(
"enable"));
621 $enable->setInfo($lng->txt(
"jsmath_enable_jsmath_info"));
622 $form->addItem($enable);
624 $text_prop =
new ilTextInputGUI($lng->txt(
"jsmath_path_to_jsmath"),
"path_to_jsmath");
625 $text_prop->
setInfo($lng->txt(
"jsmath_path_to_jsmath_desc"));
626 $text_prop->setValue($path_to_jsmath);
627 $text_prop->setRequired(TRUE);
628 $text_prop->setMaxLength(400);
629 $text_prop->setSize(80);
630 $form->addItem($text_prop);
633 $enable->
setChecked($jsMathSetting->get(
"makedefault"));
634 $enable->setInfo($lng->txt(
"jsmath_default_setting_info"));
635 $form->addItem($enable);
637 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
639 $form->addCommandButton(
"savejsMath", $lng->txt(
"save"));
642 $tpl->setVariable(
"ADM_CONTENT", $form->getHTML());
654 while (strrpos($path_to_jsmath,
"/") == strlen($path_to_jsmath)-1)
656 $path_to_jsmath = substr($path_to_jsmath, 0, strlen($path_to_jsmath)-1);
659 if (file_exists($path_to_jsmath .
"/" .
"jsMath.js"))
665 if (strlen($path_to_jsmath) == 0)
671 $ilCtrl->setParameter($this,
"path_to_jsmath", $path_to_jsmath);
678 $jsMathSetting =
new ilSetting(
"jsMath");
679 $jsMathSetting->set(
"path_to_jsmath", $path_to_jsmath);
684 $ilCtrl->redirect($this,
"editjsMath");
698 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
700 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
706 $std_latitude = $gm_set->get(
"std_latitude");
707 $std_longitude = $gm_set->get(
"std_longitude");
708 $std_zoom = $gm_set->get(
"std_zoom");
709 $api_url =
"http://www.google.com/apis/maps/signup.html";
711 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
713 $form->setFormAction($ilCtrl->getFormAction($this));
714 $form->setTitle($lng->txt(
"gmaps_settings"));
719 $enable->setInfo($lng->txt(
"gmaps_enable_gmaps_info"));
720 $form->addItem($enable);
737 $loc_prop->setLongitude($std_longitude);
738 $loc_prop->setZoom($std_zoom);
739 $form->addItem($loc_prop);
741 $form->addCommandButton(
"saveGoogleMaps", $lng->txt(
"save"));
742 $form->addCommandButton(
"view", $lng->txt(
"cancel"));
744 $tpl->setVariable(
"ADM_CONTENT", $form->getHTML());
763 $ilCtrl->redirect($this,
"editGoogleMaps");
769 $ilinc = ($a_cmd ==
'editiLinc') ?
true :
false;
770 $overview = ($a_cmd ==
'view' or $a_cmd ==
'') ?
true :
false;
772 $socialbookmarks = ($a_cmd ==
'editSocialBookmarks') ?
true :
false;
773 $gmaps = ($a_cmd ==
'editGoogleMaps') ?
true :
false;
774 $jsmath = ($a_cmd ==
'editjsMath') ?
true :
false;
776 $this->tabs_gui->addSubTabTarget(
"overview", $this->ctrl->getLinkTarget($this,
"view"),
777 "",
"",
"", $overview);
780 $this->tabs_gui->addSubTabTarget(
"socialbm_extt_social_bookmarks", $this->ctrl->getLinkTarget($this,
"editSocialBookmarks"),
781 "",
"",
"", $socialbookmarks);
782 $this->tabs_gui->addSubTabTarget(
"jsmath_extt_jsmath", $this->ctrl->getLinkTarget($this,
"editjsMath"),
783 "",
"",
"", $jsmath);
784 $this->tabs_gui->addSubTabTarget(
"gmaps_extt_gmaps", $this->ctrl->getLinkTarget($this,
"editGoogleMaps"),
786 $this->tabs_gui->addSubTabTarget(
"extt_ilinc", $this->ctrl->getLinkTarget($this,
"editiLinc"),
793 $next_class = $this->ctrl->getNextClass($this);
794 $cmd = $this->ctrl->getCmd();
799 case 'ilecssettingsgui':
800 $this->tabs_gui->setTabActive(
'ecs_server_settings');
801 include_once(
'./Services/WebServices/ECS/classes/class.ilECSSettingsGUI.php');
805 case 'ilpermissiongui':
806 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
808 $ret =& $this->ctrl->forwardCommand($perm_gui);
809 $this->tabs_gui->setTabActive(
'perm_settings');
813 $this->tabs_gui->setTabActive(
'settings');