Minor - UI changes

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

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

@ -180,7 +180,8 @@ $purification_option_for_usernames = false;
set_time_limit(0);
$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', 'unsubscribe', '', get_lang('UnsubscribeUserIfSubscriptionIsNotInFile'));
$form->addElement('style_submit_button', 'submit', get_lang('Import'), 'class="save"');
@ -194,7 +195,7 @@ if ($form->validate()) {
}
Display :: display_header($tool_name);
echo Display::page_header($tool_name);
if (isset($return) && $return) {
echo $return;
}

@ -699,7 +699,7 @@ class Display {
* 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 = '';
$extra = '';
$default_id = 'id="'.$name.'" ';

Loading…
Cancel
Save