Minor cosmetic changes

skala
Julio Montoya 12 years ago
parent 88eaf5d211
commit e700799597
  1. 3
      main/admin/usergroup_import.php
  2. 7
      main/admin/usergroup_user_import.php

@ -71,7 +71,6 @@ $interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('PlatformAd
$interbreadcrumb[] = array('url' => 'usergroups.php', 'name' => get_lang('Classes')); $interbreadcrumb[] = array('url' => 'usergroups.php', 'name' => get_lang('Classes'));
// Database Table Definitions // Database Table Definitions
// Setting the name of the tool. // Setting the name of the tool.
$tool_name = get_lang('ImportClassListCSV'); $tool_name = get_lang('ImportClassListCSV');
@ -84,7 +83,6 @@ $form = new FormValidator('import_classes');
$form->addElement('file', 'import_file', get_lang('ImportCSVFileLocation')); $form->addElement('file', 'import_file', get_lang('ImportCSVFileLocation'));
$group = array(); $group = array();
$group[] = $form->createElement('radio', 'file_type', '', 'CSV (<a href="example_class.csv" target="_blank">' . get_lang('ExampleCSVFile') . '</a>)', 'csv'); $group[] = $form->createElement('radio', 'file_type', '', 'CSV (<a href="example_class.csv" target="_blank">' . get_lang('ExampleCSVFile') . '</a>)', 'csv');
//$group[] = $form->createElement('radio', 'file_type', null, 'XML (<a href="example.xml" target="_blank">'.get_lang('ExampleXMLFile').'</a>)', 'xml');
$form->addGroup($group, '', get_lang('FileType'), '<br/>'); $form->addGroup($group, '', get_lang('FileType'), '<br/>');
$form->addElement('style_submit_button', 'submit', get_lang('Import'), 'class="save"'); $form->addElement('style_submit_button', 'submit', get_lang('Import'), 'class="save"');
@ -116,6 +114,5 @@ $form->display();
"User group 1";"Description" "User group 1";"Description"
</pre> </pre>
<?php <?php
// Displaying the footer. // Displaying the footer.
Display :: display_footer(); Display :: display_footer();

@ -16,13 +16,6 @@ function validate_data($user_classes) {
global $purification_option_for_usernames; global $purification_option_for_usernames;
$errors = array(); $errors = array();
$classcodes = array(); $classcodes = array();
/* if (!isset($_POST['subscribe']) && !isset($_POST['subscribe'])) {
$user_class['error'] = get_lang('SelectAnAction');
$errors[] = $user_class;
return $errors;
} */
$usergroup = new UserGroup(); $usergroup = new UserGroup();
foreach ($user_classes as $index => $user_class) { foreach ($user_classes as $index => $user_class) {

Loading…
Cancel
Save