[svn r18781] Setting the multiple option by default when using the search ajax feature - fixing also a bug when selecting any element (see FS#3685)

skala
Julio Montoya 16 years ago
parent 77b02d4030
commit 04c0af2d3d
  1. 4
      main/admin/access_url_edit_courses_to_url.php
  2. 4
      main/admin/access_url_edit_sessions_to_url.php
  3. 4
      main/admin/access_url_edit_users_to_url.php
  4. 2
      main/admin/add_courses_to_session.php
  5. 2
      main/admin/add_users_to_session.php

@ -59,7 +59,7 @@ $tool_name = get_lang('EditCoursesToURL');
$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ('url' => 'access_urls.php', 'name' => get_lang('MultipleAccessURLs'));
$add_type = 'unique';
$add_type = 'multiple';
if(isset($_REQUEST['add_type']) && $_REQUEST['add_type']!=''){
$add_type = $_REQUEST['add_type'];
}
@ -221,7 +221,7 @@ $url_list = UrlManager::get_url_data();
<?php echo $link_add_type_unique ?>&nbsp;|&nbsp;<?php echo $link_add_type_multiple ?>
</div>
<br /><br />
<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>" style="margin:0px;">
<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>" style="margin:0px;" <?php if($ajax_search){echo ' onsubmit="valide();"';}?> >
<?php echo get_lang('SelectUrl').' : '; ?>
<select name="access_url_id" onchange="javascript:send();">
<option value="0"> <?php echo get_lang('SelectUrl')?></option>

@ -59,7 +59,7 @@ $tool_name = get_lang('EditSessionsToURL');
$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ('url' => 'access_urls.php', 'name' => get_lang('MultipleAccessURLs'));
$add_type = 'unique';
$add_type = 'multiple';
if(isset($_REQUEST['add_type']) && $_REQUEST['add_type']!=''){
$add_type = $_REQUEST['add_type'];
}
@ -218,7 +218,7 @@ $url_list = UrlManager::get_url_data();
<?php echo $link_add_type_unique ?>&nbsp;|&nbsp;<?php echo $link_add_type_multiple ?>
</div>
<br /><br />
<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>" style="margin:0px;">
<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>" style="margin:0px;" <?php if($ajax_search){echo ' onsubmit="valide();"';}?> >
<?php echo get_lang('SelectUrl').' : '; ?>
<select name="access_url_id" onchange="javascript:send();">
<option value="0"> <?php echo get_lang('SelectUrl')?></option>

@ -59,7 +59,7 @@ $tool_name = get_lang('EditUsersToURL');
$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ('url' => 'access_urls.php', 'name' => get_lang('MultipleAccessURLs'));
$add_type = 'unique';
$add_type = 'multiple';
if(isset($_REQUEST['add_type']) && $_REQUEST['add_type']!=''){
$add_type = $_REQUEST['add_type'];
}
@ -218,7 +218,7 @@ $url_list = UrlManager::get_url_data();
<?php echo $link_add_type_unique ?>&nbsp;|&nbsp;<?php echo $link_add_type_multiple ?>
</div>
<br /><br />
<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>" style="margin:0px;">
<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>" style="margin:0px;" <?php if($ajax_search){echo ' onsubmit="valide();"';}?> >
<?php echo get_lang('SelectUrl').' : '; ?>
<select name="access_url_id" onchange="javascript:send();">
<option value="0"> <?php echo get_lang('SelectUrl')?></option>

@ -62,7 +62,7 @@ $tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
$tool_name= get_lang('SubscribeCoursesToSession');
$id_session=intval($_GET['id_session']);
$add_type = 'unique';
$add_type = 'multiple';
if(isset($_GET['add_type']) && $_GET['add_type']!=''){
$add_type = $_GET['add_type'];
}

@ -67,7 +67,7 @@ $tool_name=get_lang('SubscribeUsersToSession');
$id_session=intval($_GET['id_session']);
$add_type = 'unique';
$add_type = 'multiple';
if(isset($_REQUEST['add_type']) && $_REQUEST['add_type']!=''){
$add_type = $_REQUEST['add_type'];
}

Loading…
Cancel
Save