Minor - format code

1.9.x
Julio Montoya 11 years ago
parent 9ea55f370c
commit d34f481ce5
  1. 46
      main/admin/dashboard_add_sessions_to_user.php
  2. 6
      main/admin/session_user_import.php

@ -2,9 +2,9 @@
/* For licensing terms, see /license.txt */
/**
* Interface for assigning sessions to Human Resources Manager
* @package chamilo.admin
*/
* Interface for assigning sessions to Human Resources Manager
* @package chamilo.admin
*/
// name of the language file that needs to be included
$language_file = 'admin';
@ -206,20 +206,20 @@ if (api_is_multiple_url_enabled()) {
}
$result = Database::query($sql);
?>
<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?user=<?php echo $user_id ?>" style="margin:0px;" <?php if($ajax_search){ echo ' onsubmit="valide();"';}?>>
<input type="hidden" name="formSent" value="1" />
<?php
if(!empty($msg)) {
<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?user=<?php echo $user_id ?>" style="margin:0px;" <?php if($ajax_search){ echo ' onsubmit="valide();"';}?>>
<input type="hidden" name="formSent" value="1" />
<?php
if(!empty($msg)) {
Display::display_normal_message($msg); //main API
}
?>
<table border="0" cellpadding="5" cellspacing="0" width="100%" align="center">
<tr>
}
?>
<table border="0" cellpadding="5" cellspacing="0" width="100%" align="center">
<tr>
<td align="left"></td>
<td align="left"></td>
<td width="" align="center"> &nbsp; </td>
</tr>
<tr>
</tr>
<tr>
<td width="45%" align="center"><b><?php echo get_lang('SessionsListInPlatform') ?> :</b></td>
<td width="10%">&nbsp;</td>
<td align="center" width="45%"><b>
@ -233,10 +233,10 @@ if(!empty($msg)) {
}
?>
: </b></td>
</tr>
</tr>
<?php if($add_type == 'multiple') { ?>
<tr><td width="45%" align="center">
<?php if($add_type == 'multiple') { ?>
<tr><td width="45%" align="center">
<?php echo get_lang('FirstLetterSession');?> :
<select name="firstLetterSession" onchange = "xajax_search_sessions(this.value, 'multiple')">
<option value="%">--</option>
@ -244,10 +244,10 @@ if(!empty($msg)) {
echo Display :: get_alphabet_options($_POST['firstLetterSession']);
?>
</select>
</td>
<td>&nbsp;</td></tr>
<?php } ?>
<tr>
</td>
<td>&nbsp;</td></tr>
<?php } ?>
<tr>
<td width="45%" align="center">
<div id="ajax_list_sessions_multiple">
<select id="origin" name="NoAssignedSessionsList[]" multiple="multiple" size="20" style="width:340px;">
@ -294,9 +294,9 @@ if(!empty($msg)) {
<?php }
}?>
</select></td>
</tr>
</table>
</form>
</tr>
</table>
</form>
<?php
Display::display_footer();

@ -69,14 +69,14 @@ if (isset($_POST['formSent']) && $_POST['formSent']) {
// Display the header.
Display::display_header($tool_name);
if (count($inserted_in_course) > 1) {
/*if (count($inserted_in_course) > 1) {
$msg = get_lang('SeveralCoursesSubscribedToSessionBecauseOfSameVisualCode').': ';
foreach ($inserted_in_course as $code => $title) {
$msg .= ' '.$title.' ('.$title.'),';
}
$msg = substr($msg, 0, -1);
Display::display_warning_message($msg);
}
}*/
echo '<div class="actions">';
echo '<a href="resume_session.php?id_session='.$session_id.'">'.
@ -94,8 +94,6 @@ $form->addElement('file', 'import_file', get_lang('ImportCSVFileLocation'));
$form->addElement('checkbox', 'sendMail', null, get_lang('SendMailToUsers'));
$form->addElement('button', 'submit', get_lang('Import'));
//$defaults = array('sendMail' => 'true');
//$form->setDefaults($defaults);
$form->display();
?>

Loading…
Cancel
Save