Minor - UI changes

skala
Julio Montoya 13 years ago
parent d0cd85d7f7
commit bbcb4ccd60
  1. 8
      main/admin/usergroup_import.php
  2. 5
      main/admin/usergroup_user_import.php
  3. 2
      main/inc/lib/display.lib.php

@ -111,10 +111,10 @@ $form->display();
?> ?>
<p><?php echo get_lang('CSVMustLookLike').' ('.get_lang('MandatoryFields').')'; ?> :</p> <p><?php echo get_lang('CSVMustLookLike').' ('.get_lang('MandatoryFields').')'; ?> :</p>
<blockquote> <pre>
<b>name;description</b> <br /> <b>name;description</b>
User group 1;My user group description "User group 1";"Description"
</blockquote> </pre>
<?php <?php
// Displaying the footer. // Displaying the footer.

@ -180,7 +180,8 @@ $purification_option_for_usernames = false;
set_time_limit(0); set_time_limit(0);
$form = new FormValidator('class_user_import'); $form = new FormValidator('class_user_import');
$form->addElement('file', 'import_file', get_lang('File')); $form->addElement('header', $tool_name);
$form->addElement('file', 'import_file', get_lang('ImportCSVFileLocation'));
//$form->addElement('checkbox', 'subscribe', get_lang('Action'), get_lang('SubscribeUserIfNotAllreadySubscribed')); //$form->addElement('checkbox', 'subscribe', get_lang('Action'), get_lang('SubscribeUserIfNotAllreadySubscribed'));
//$form->addElement('checkbox', 'unsubscribe', '', get_lang('UnsubscribeUserIfSubscriptionIsNotInFile')); //$form->addElement('checkbox', 'unsubscribe', '', get_lang('UnsubscribeUserIfSubscriptionIsNotInFile'));
$form->addElement('style_submit_button', 'submit', get_lang('Import'), 'class="save"'); $form->addElement('style_submit_button', 'submit', get_lang('Import'), 'class="save"');
@ -194,7 +195,7 @@ if ($form->validate()) {
} }
Display :: display_header($tool_name); Display :: display_header($tool_name);
echo Display::page_header($tool_name);
if (isset($return) && $return) { if (isset($return) && $return) {
echo $return; echo $return;
} }

@ -699,7 +699,7 @@ class Display {
* Displays an HTML select tag * Displays an HTML select tag
* *
*/ */
public function select($name, $values, $default = -1, $extra_attributes = array(), $show_blank_item = true, $blank_item_text = null) { public static function select($name, $values, $default = -1, $extra_attributes = array(), $show_blank_item = true, $blank_item_text = null) {
$html = ''; $html = '';
$extra = ''; $extra = '';
$default_id = 'id="'.$name.'" '; $default_id = 'id="'.$name.'" ';

Loading…
Cancel
Save