24 require_once
"./classes/class.ilObjectGUI.php";
48 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,
false);
50 define (
"ILINC_DEFAULT_HTTP_PORT",80);
51 define (
"ILINC_DEFAULT_SSL_PORT",443);
52 define (
"ILINC_DEFAULT_TIMEOUT",30);
53 $lng->loadLanguageModule(
"delic");
54 $lng->loadLanguageModule(
"gmaps");
55 $lng->loadLanguageModule(
"jsmath");
67 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
69 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
76 $this->tpl->setVariable(
"FORMACTION",
77 $this->ctrl->getFormAction($this));
78 $this->tpl->setVariable(
"TXT_EXTT_TITLE", $this->lng->txt(
"extt_title_configure"));
80 $this->tpl->setVariable(
"TXT_EXTT_NAME", $this->lng->txt(
"extt_name"));
81 $this->tpl->setVariable(
"TXT_EXTT_ACTIVE", $this->lng->txt(
"active").
"?");
82 $this->tpl->setVariable(
"TXT_EXTT_DESC", $this->lng->txt(
"description"));
84 $this->tpl->setVariable(
"TXT_CONFIGURE", $this->lng->txt(
"extt_configure"));
85 $this->tpl->setVariable(
"TXT_EXTT_REMARK", $this->lng->txt(
"extt_remark"));
88 $this->tpl->setVariable(
"TXT_EXTT_ILINC_NAME", $this->lng->txt(
"extt_ilinc"));
89 $this->tpl->setVariable(
"TXT_EXTT_ILINC_DESC", $this->lng->txt(
"extt_ilinc_desc"));
93 $icon_ok =
"<img src=\"".ilUtil::getImagePath(
"icon_ok.gif").
"\" alt=\"".$this->lng->txt(
"enabled").
"\" title=\"".$this->lng->txt(
"enabled").
"\" border=\"0\" vspace=\"0\"/>";
94 $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\"/>";
96 $this->tpl->setVariable(
"EXTT_ILINC_ACTIVE", $this->ilias->getSetting(
'ilinc_active') ? $icon_ok : $icon_not_ok);
101 $this->ctrl->redirect($this,
"view");
118 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
120 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
122 $tabs_gui->addTarget(
"settings",
123 $this->ctrl->getLinkTarget($this,
"view"),
124 array(
"view",
"editiLinc",
"editDelicious",
"editGoogleMaps",
"editjsMath",
""),
"",
"");
126 $this->lng->loadLanguageModule(
'ecs');
127 $tabs_gui->addTarget(
'ecs_server_settings',
128 $this->ctrl->getLinkTargetByClass(
'ilecssettingsgui',
'settings'));
132 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
134 $tabs_gui->addTarget(
"perm_settings",
135 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
146 global $rbacsystem, $rbacreview;
148 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
150 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
157 if (
$_SESSION[
"error_post_vars"][
"ilinc"][
"active"] ==
"1")
159 $this->tpl->setVariable(
"CHK_ILINC_ACTIVE",
"checked=\"checked\"");
162 if (
$_SESSION[
"error_post_vars"][
"ilinc"][
"akclassvalues_active"] ==
"1")
164 $this->tpl->setVariable(
"CHK_ILINC_AKCLASSVALUES_ACTIVE",
"checked=\"checked\"");
167 if (
$_SESSION[
"error_post_vars"][
"ilinc"][
"akclassvalues_required"] ==
"1")
169 $this->tpl->setVariable(
"CHK_ILINC_AKCLASSVALUES_REQUIRED",
"checked=\"checked\"");
172 $this->tpl->setVariable(
"ILINC_SERVER",
$_SESSION[
"error_post_vars"][
"ilinc"][
"server"]);
173 $this->tpl->setVariable(
"ILINC_REGISTRAR_LOGIN",
$_SESSION[
"error_post_vars"][
"ilinc"][
"registrar_login"]);
174 $this->tpl->setVariable(
"ILINC_REGISTRAR_PASSWD",
$_SESSION[
"error_post_vars"][
"ilinc"][
"registrar_passwd"]);
175 $this->tpl->setVariable(
"ILINC_CUSTOMER_ID",
$_SESSION[
"error_post_vars"][
"ilinc"][
"customer_id"]);
180 $settings = $this->ilias->getAllSettings();
182 if ($settings[
"ilinc_active"] ==
"1")
184 $this->tpl->setVariable(
"CHK_ILINC_ACTIVE",
"checked=\"checked\"");
187 $this->tpl->setVariable(
"ILINC_SERVER", $settings[
"ilinc_server"].$settings[
"ilinc_path"]);
188 $this->tpl->setVariable(
"ILINC_REGISTRAR_LOGIN", $settings[
"ilinc_registrar_login"]);
189 $this->tpl->setVariable(
"ILINC_REGISTRAR_PASSWD", $settings[
"ilinc_registrar_passwd"]);
190 $this->tpl->setVariable(
"ILINC_CUSTOMER_ID", $settings[
"ilinc_customer_id"]);
192 if (empty($settings[
"ilinc_port"]))
194 $this->tpl->setVariable(
"ILINC_PORT", ILINC_DEFAULT_HTTP_PORT);
198 $this->tpl->setVariable(
"ILINC_PORT", $settings[
"ilinc_port"]);
201 if ($settings[
"ilinc_protocol"] ==
"https")
203 $this->tpl->setVariable(
"ILINC_PROTOCOL_SSL_SEL",
"selected=\"selected\"");
207 $this->tpl->setVariable(
"ILINC_PROTOCOL_HTTP_SEL",
"selected=\"selected\"");
210 if (empty($settings[
"ilinc_timeout"]))
212 $this->tpl->setVariable(
"ILINC_TIMEOUT", ILINC_DEFAULT_TIMEOUT);
216 $this->tpl->setVariable(
"ILINC_TIMEOUT", $settings[
"ilinc_timeout"]);
219 if ($settings[
"ilinc_akclassvalues_active"] ==
"1")
221 $this->tpl->setVariable(
"CHK_ILINC_AKCLASSVALUES_ACTIVE",
"checked=\"checked\"");
224 if ($settings[
"ilinc_akclassvalues_required"] ==
"1")
226 $this->tpl->setVariable(
"CHK_ILINC_AKCLASSVALUES_REQUIRED",
"checked=\"checked\"");
232 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
233 $this->tpl->setVariable(
"TXT_ILINC_TITLE", $this->lng->txt(
"extt_ilinc_configure"));
234 $this->tpl->setVariable(
"TXT_ILINC_ACTIVE", $this->lng->txt(
"extt_ilinc_enable"));
235 $this->tpl->setVariable(
"TXT_ILINC_CONNECTION_DATA", $this->lng->txt(
"extt_ilinc_connection_data"));
236 $this->tpl->setVariable(
"TXT_ILINC_ADDITIONAL_OPTIONS", $this->lng->txt(
"extt_ilinc_additional_options"));
237 $this->tpl->setVariable(
"TXT_ILINC_SERVER", $this->lng->txt(
"extt_ilinc_server"));
238 $this->tpl->setVariable(
"TXT_ILINC_PROTOCOL_PORT", $this->lng->txt(
"extt_ilinc_protocol_port"));
239 $this->tpl->setVariable(
"TXT_ILINC_TIMEOUT", $this->lng->txt(
"extt_ilinc_timeout"));
240 $this->tpl->setVariable(
"ILINC_DEFAULT_HTTP_PORT", ILINC_DEFAULT_HTTP_PORT);
241 $this->tpl->setVariable(
"ILINC_DEFAULT_SSL_PORT", ILINC_DEFAULT_SSL_PORT);
242 $this->tpl->setVariable(
"TXT_HTTP", $this->lng->txt(
'http'));
243 $this->tpl->setVariable(
"TXT_SSL", $this->lng->txt(
'ssl'));
245 $this->tpl->setVariable(
"TXT_SECONDS", $this->lng->txt(
"seconds"));
246 $this->tpl->setVariable(
"TXT_ILINC_REGISTRAR_LOGIN", $this->lng->txt(
"extt_ilinc_registrar_login"));
247 $this->tpl->setVariable(
"TXT_ILINC_REGISTRAR_PASSWD", $this->lng->txt(
"extt_ilinc_registrar_passwd"));
248 $this->tpl->setVariable(
"TXT_ILINC_CUSTOMER_ID", $this->lng->txt(
"extt_ilinc_customer_id"));
250 $this->tpl->setVariable(
"TXT_ILINC_AKCLASSVALUES_ACTIVE", $this->lng->txt(
"extt_ilinc_akclassvalues_active"));
251 $this->tpl->setVariable(
"TXT_ILINC_AKCLASSVALUES_ACTIVE_INFO", $this->lng->txt(
"extt_ilinc_akclassvalues_active_info"));
252 $this->tpl->setVariable(
"TXT_ILINC_AKCLASSVALUES_REQUIRED", $this->lng->txt(
"extt_ilinc_akclassvalues_required"));
253 $this->tpl->setVariable(
"TXT_ILINC_AKCLASSVALUES_REQUIRED_INFO", $this->lng->txt(
"extt_ilinc_akclassvalues_required_info"));
255 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
256 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
257 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
258 $this->tpl->setVariable(
"CMD_SUBMIT",
"saveiLinc");
271 if (!
$_POST[
"ilinc"][
"server"] or !
$_POST[
"ilinc"][
"port"] or !
$_POST[
"ilinc"][
"registrar_login"] or !
$_POST[
"ilinc"][
"registrar_passwd"] or !
$_POST[
"ilinc"][
"customer_id"])
273 $this->ilias->raiseError($this->lng->txt(
"fill_out_all_required_fields"),$this->ilias->error_obj->MESSAGE);
277 if ((preg_match(
"/^[0-9]{0,5}$/",
$_POST[
"ilinc"][
"port"])) ==
false)
279 $this->ilias->raiseError($this->lng->txt(
"err_invalid_port"),$this->ilias->error_obj->MESSAGE);
282 if (substr(
$_POST[
"ilinc"][
"server"],0,8) !=
"https://" and substr(
$_POST[
"ilinc"][
"server"],0,7) !=
"http://")
284 $_POST[
"ilinc"][
"server"] =
$_POST[
"ilinc"][
"protocol"].
"://".
$_POST[
"ilinc"][
"server"];
287 $url = parse_url(
$_POST[
"ilinc"][
"server"]);
291 $this->ilias->raiseError($this->lng->txt(
"err_invalid_server"),$this->ilias->error_obj->MESSAGE);
294 if (is_numeric(
$_POST[
"ilinc"][
"timeout"]))
296 $this->ilias->setSetting(
"ilinc_timeout",
$_POST[
"ilinc"][
"timeout"]);
300 $this->ilias->setSetting(
"ilinc_server", $url[
"host"]);
301 $this->ilias->setSetting(
"ilinc_path", $url[
"path"]);
302 $this->ilias->setSetting(
"ilinc_protocol",
$_POST[
"ilinc"][
"protocol"]);
303 $this->ilias->setSetting(
"ilinc_port",
$_POST[
"ilinc"][
"port"]);
304 $this->ilias->setSetting(
"ilinc_active",
$_POST[
"ilinc"][
"active"]);
305 $this->ilias->setSetting(
"ilinc_registrar_login",
$_POST[
"ilinc"][
"registrar_login"]);
306 $this->ilias->setSetting(
"ilinc_registrar_passwd",
$_POST[
"ilinc"][
"registrar_passwd"]);
307 $this->ilias->setSetting(
"ilinc_customer_id",
$_POST[
"ilinc"][
"customer_id"]);
309 $this->ilias->setSetting(
"ilinc_akclassvalues_active",
$_POST[
"ilinc"][
"akclassvalues_active"]);
310 $this->ilias->setSetting(
"ilinc_akclassvalues_required",
$_POST[
"ilinc"][
"akclassvalues_required"]);
313 $this->ctrl->redirect($this,
'editiLinc');
320 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
322 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
327 include_once
'class.ilSocialBookmarks.php';
329 $this->tpl->setVariable(
'ADM_CONTENT', $form->getHTML());
336 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
338 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
341 include_once
'class.ilSocialBookmarks.php';
343 if ($form->checkInput())
345 $title = $form->getInput(
'title');
346 $link = $form->getInput(
'link');
347 $file = $form->getInput(
'image_file');
348 $active = $form->getInput(
'activate');
350 $extension = pathinfo(
$file[
'name'], PATHINFO_EXTENSION);
351 $icon_path =
ilUtil::getWebspaceDir() . DIRECTORY_SEPARATOR .
'social_bm_icons' . DIRECTORY_SEPARATOR . time() .
'.' . $extension;
366 $form->setValuesByPost();
367 $this->tpl->setVariable(
'ADM_CONTENT', $form->getHTML());
375 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
377 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
380 include_once
'class.ilSocialBookmarks.php';
382 if ($form->checkInput())
384 $title = $form->getInput(
'title');
385 $link = $form->getInput(
'link');
386 $file = $form->getInput(
'image_file');
387 $active = $form->getInput(
'activate');
388 $id = $form->getInput(
'sbm_id');
394 $extension = pathinfo(
$file[
'name'], PATHINFO_EXTENSION);
395 $icon_path =
ilUtil::getWebspaceDir() . DIRECTORY_SEPARATOR .
'social_bm_icons' . DIRECTORY_SEPARATOR . time() .
'.' . $extension;
411 $form->setValuesByPost();
412 $this->tpl->setVariable(
'ADM_CONTENT', $form->getHTML());
425 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
427 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
432 include_once
'class.ilSocialBookmarks.php';
436 'sbm_id' =>
$row->sbm_id,
437 'title' =>
$row->sbm_title,
438 'link' =>
$row->sbm_link,
439 'activate' =>
$row->sbm_active
443 $form->setValuesByArray($dset);
444 $this->tpl->setVariable(
'ADM_CONTENT', $form->getHTML());
451 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
453 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
456 $ids = ((int)
$_GET[
'sbm_id']) ? array((
int)
$_GET[
'sbm_id']) :
$_POST[
'sbm_id'];
457 include_once
'class.ilSocialBookmarks.php';
466 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
468 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
471 $ids = ((int)
$_GET[
'sbm_id']) ? array((
int)
$_GET[
'sbm_id']) :
$_POST[
'sbm_id'];
472 include_once
'class.ilSocialBookmarks.php';
481 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
483 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
489 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
492 $ids = ((int)
$_GET[
'sbm_id']) ? array((
int)
$_GET[
'sbm_id']) :
$_POST[
'sbm_id'];
495 $c_gui->setFormAction($ilCtrl->getFormAction($this,
"confirmDeleteSocialBookmarks"));
496 $c_gui->setHeaderText($lng->txt(
"socialbm_sure_delete_entry"));
497 $c_gui->setCancel($lng->txt(
"cancel"),
"editSocialBookmarks");
498 $c_gui->setConfirm($lng->txt(
"confirm"),
"confirmDeleteSocialBookmarks");
500 include_once
'class.ilSocialBookmarks.php';
505 $c_gui->addItem(
"sbm_id[]", $id, $entry->sbm_title .
' (' . str_replace(
'{',
'{', $entry->sbm_link) .
')');
508 $this->tpl->setVariable(
'ADM_CONTENT', $c_gui->getHTML());
515 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
517 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
521 $ids = ((int)
$_GET[
'sbm_id']) ? array((
int)
$_GET[
'sbm_id']) :
$_POST[
'sbm_id'];
522 include_once
'class.ilSocialBookmarks.php';
536 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
538 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
545 include_once(
"./Services/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
547 include_once
'class.ilSocialBookmarks.php';
551 foreach($rset as
$row)
554 $current_selection_list->setListTitle($lng->txt(
"actions"));
555 $current_selection_list->setId(
"act_".$counter++);
557 $ilCtrl->setParameter($this,
'sbm_id', $row->sbm_id);
559 $current_selection_list->addItem($lng->txt(
"edit"),
'', $ilCtrl->getLinkTarget($this,
"editSocialBookmark"));
560 $current_selection_list->addItem($lng->txt(
"delete"),
'', $ilCtrl->getLinkTarget($this,
"deleteSocialBookmarks"));
563 if ($row->sbm_active)
565 $current_selection_list->addItem($lng->txt(
"socialbm_disable"),
'', $toggle_action = $ilCtrl->getLinkTarget($this,
"disableSocialBookmarks"));
569 $current_selection_list->addItem($lng->txt(
"socialbm_enable"),
'', $toggle_action = $ilCtrl->getLinkTarget($this,
"enableSocialBookmarks"));
577 'ID' => $row->sbm_id,
578 'TITLE' => $row->sbm_title,
579 'LINK' => str_replace(
'{',
'{', $row->sbm_link),
580 'ICON' => $row->sbm_icon,
581 'ACTIVE' => $row->sbm_active ? $lng->txt(
'enabled') : $lng->txt(
'disabled'),
582 'ACTIONS' => $current_selection_list->getHTML(),
583 'TOGGLE_LINK' => $toggle_action
585 $ilCtrl->clearParameters($this);
588 require_once
'Services/Table/classes/class.ilTable2GUI.php';
589 $table =
new ilTable2GUI($this,
'editSocialBookmarks');
590 $table->setFormName(
'smtable');
591 $table->setId(
'smtable');
592 $table->setPrefix(
'sm');
593 $table->setFormAction($ilCtrl->getFormAction($this,
'saveSocialBookmarks'));
594 $table->addColumn(
'',
'check',
'',
true);
595 $table->addColumn($lng->txt(
'icon'),
'');
596 $table->addColumn($lng->txt(
'title'),
'TITLE');
597 $table->addColumn($lng->txt(
'link'),
'LINK');
598 $table->addColumn($lng->txt(
'active'),
'ACTIVE');
599 $table->addColumn($lng->txt(
'actions'),
'');
600 $table->setTitle($lng->txt(
'bm_manage_social_bm'));
601 $table->setData($dset);
602 $table->setRowTemplate(
'tpl.social_bookmarking_row.html',
'Services/Administration');
603 $table->setSelectAllCheckbox(
'sbm_id');
605 $table->setDefaultOrderField(
"title");
606 $table->setDefaultOrderDirection(
"asc");
608 $table->addMultiCommand(
'enableSocialBookmarks', $lng->txt(
'socialbm_enable'));
609 $table->addMultiCommand(
'disableSocialBookmarks', $lng->txt(
'socialbm_disable'));
610 $table->addMultiCommand(
'deleteSocialBookmarks', $lng->txt(
'delete'));
612 $table->addCommandButton(
'addSocialBookmark', $lng->txt(
'create'));
614 $this->tpl->setVariable(
'ADM_CONTENT', $table->getHTML());
627 $jsMathSetting =
new ilSetting(
"jsMath");
628 $path_to_jsmath = array_key_exists(
"path_to_jsmath",
$_GET) ?
$_GET[
"path_to_jsmath"] : $jsMathSetting->get(
"path_to_jsmath");
632 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
634 $form->setFormAction($ilCtrl->getFormAction($this));
635 $form->setTitle($lng->txt(
"jsmath_settings"));
639 $enable->
setChecked($jsMathSetting->get(
"enable"));
640 $enable->setInfo($lng->txt(
"jsmath_enable_jsmath_info"));
641 $form->addItem($enable);
643 $text_prop =
new ilTextInputGUI($lng->txt(
"jsmath_path_to_jsmath"),
"path_to_jsmath");
644 $text_prop->
setInfo($lng->txt(
"jsmath_path_to_jsmath_desc"));
645 $text_prop->setValue($path_to_jsmath);
646 $text_prop->setRequired(TRUE);
647 $text_prop->setMaxLength(400);
648 $text_prop->setSize(80);
649 $form->addItem($text_prop);
652 $enable->
setChecked($jsMathSetting->get(
"makedefault"));
653 $enable->setInfo($lng->txt(
"jsmath_default_setting_info"));
654 $form->addItem($enable);
656 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
658 $form->addCommandButton(
"savejsMath", $lng->txt(
"save"));
661 $tpl->setVariable(
"ADM_CONTENT", $form->getHTML());
673 while (strrpos($path_to_jsmath,
"/") == strlen($path_to_jsmath)-1)
675 $path_to_jsmath = substr($path_to_jsmath, 0, strlen($path_to_jsmath)-1);
678 if (file_exists($path_to_jsmath .
"/" .
"jsMath.js"))
684 if (strlen($path_to_jsmath) == 0)
690 $ilCtrl->setParameter($this,
"path_to_jsmath", $path_to_jsmath);
697 $jsMathSetting =
new ilSetting(
"jsMath");
698 $jsMathSetting->set(
"path_to_jsmath", $path_to_jsmath);
703 $ilCtrl->redirect($this,
"editjsMath");
717 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
719 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
724 $api_key = $gm_set->get(
"api_key");
725 $std_latitude = $gm_set->get(
"std_latitude");
726 $std_longitude = $gm_set->get(
"std_longitude");
727 $std_zoom = $gm_set->get(
"std_zoom");
728 $api_url =
"http://www.google.com/apis/maps/signup.html";
730 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
732 $form->setFormAction($ilCtrl->getFormAction($this));
733 $form->setTitle($lng->txt(
"gmaps_settings"));
738 $enable->setInfo($lng->txt(
"gmaps_enable_gmaps_info"));
739 $form->addItem($enable);
742 $text_prop =
new ilTextInputGUI($lng->txt(
"gmaps_api_key"),
"api_key");
743 $text_prop->
setInfo($lng->txt(
"gmaps_api_key_desc").
' <a href="'.$api_url.
'">'.$api_url.
'</a>');
744 $text_prop->setValue($api_key);
745 $text_prop->setRequired(
false);
746 $text_prop->setMaxLength(200);
747 $text_prop->setSize(60);
748 $form->addItem($text_prop);
754 $loc_prop->setLongitude($std_longitude);
755 $loc_prop->setZoom($std_zoom);
756 $form->addItem($loc_prop);
758 $form->addCommandButton(
"saveGoogleMaps", $lng->txt(
"save"));
759 $form->addCommandButton(
"view", $lng->txt(
"cancel"));
761 $tpl->setVariable(
"ADM_CONTENT", $form->getHTML());
780 $ilCtrl->redirect($this,
"editGoogleMaps");
786 $ilinc = ($a_cmd ==
'editiLinc') ?
true :
false;
787 $overview = ($a_cmd ==
'view' or $a_cmd ==
'') ?
true :
false;
789 $socialbookmarks = ($a_cmd ==
'editSocialBookmarks') ?
true :
false;
790 $gmaps = ($a_cmd ==
'editGoogleMaps') ?
true :
false;
791 $jsmath = ($a_cmd ==
'editjsMath') ?
true :
false;
793 $this->tabs_gui->addSubTabTarget(
"overview", $this->ctrl->getLinkTarget($this,
"view"),
794 "",
"",
"", $overview);
797 $this->tabs_gui->addSubTabTarget(
"socialbm_extt_social_bookmarks", $this->ctrl->getLinkTarget($this,
"editSocialBookmarks"),
798 "",
"",
"", $socialbookmarks);
799 $this->tabs_gui->addSubTabTarget(
"jsmath_extt_jsmath", $this->ctrl->getLinkTarget($this,
"editjsMath"),
800 "",
"",
"", $jsmath);
801 $this->tabs_gui->addSubTabTarget(
"gmaps_extt_gmaps", $this->ctrl->getLinkTarget($this,
"editGoogleMaps"),
803 $this->tabs_gui->addSubTabTarget(
"extt_ilinc", $this->ctrl->getLinkTarget($this,
"editiLinc"),
810 $next_class = $this->ctrl->getNextClass($this);
811 $cmd = $this->ctrl->getCmd();
816 case 'ilecssettingsgui':
817 include_once(
'./Services/WebServices/ECS/classes/class.ilECSSettingsGUI.php');
819 $this->tabs_gui->setTabActive(
'ecs_server_settings');
822 case 'ilpermissiongui':
823 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
825 $ret =& $this->ctrl->forwardCommand($perm_gui);
826 $this->tabs_gui->setTabActive(
'perm_settings');
830 $this->tabs_gui->setTabActive(
'settings');