From 84c0636682726b72050d0c9269600a4afcc3e1a0 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Sat, 1 Dec 2012 19:39:36 -0500 Subject: [PATCH] Added URL type selector - refs #5794 --- main/admin/access_url_edit.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/main/admin/access_url_edit.php b/main/admin/access_url_edit.php index 10e1025f58..b4fa9191b4 100644 --- a/main/admin/access_url_edit.php +++ b/main/admin/access_url_edit.php @@ -1,10 +1,14 @@ -*/ - + * Create or edit access urls and branches + * @package chamilo.admin + * @author Julio Montoya + * @author Yannick Warnier + */ +/** + * Initialization + */ $language_file = 'admin'; $cidReset = true; require_once '../inc/global.inc.php'; @@ -105,6 +109,10 @@ if( $form->validate()) { $form->addElement('text','url', 'URL', array('class'=>'span6')); $form->addRule('url', get_lang('ThisFieldIsRequired'), 'required'); $form->addRule('url', '', 'maxlength',254); + +$types = array(1=>get_lang('AccessURL'), 2=>get_lang('SincroServer'), 3=>get_lang('SincroClient')); +$form->addElement('select', 'type', get_lang('Type'), $types); + $form->addElement('textarea','description',get_lang('Description')); //the first url with id = 1 will be always active @@ -137,6 +145,9 @@ if (!$_configuration['multiple_access_urls']) $tool_name = get_lang('AddUrl'); $interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin')); $interbreadcrumb[] = array ("url" => 'access_urls.php', "name" => get_lang('MultipleAccessURLs')); +/** + * View + */ Display :: display_header($tool_name); if (isset ($_GET['action'])) {