@@ -47,8 +47,16 @@ |
||
47 | 47 | $form->addElement('select', 'session_id', get_lang('Sessions'), $my_session_list); |
48 | 48 | $form->addButtonFilter(get_lang('Filter')); |
49 | 49 | |
50 | -if (!empty($_REQUEST['score'])) $filter_score = intval($_REQUEST['score']); else $filter_score = 70; |
|
51 | -if (!empty($_REQUEST['session_id'])) $session_id = intval($_REQUEST['session_id']); else $session_id = 0; |
|
50 | +if (!empty($_REQUEST['score'])) { |
|
51 | + $filter_score = intval($_REQUEST['score']); |
|
52 | +} else { |
|
53 | + $filter_score = 70; |
|
54 | +} |
|
55 | +if (!empty($_REQUEST['session_id'])) { |
|
56 | + $session_id = intval($_REQUEST['session_id']); |
|
57 | +} else { |
|
58 | + $session_id = 0; |
|
59 | +} |
|
52 | 60 | |
53 | 61 | if (empty($session_id)) { |
54 | 62 | $session_id = key($my_session_list); |
@@ -57,8 +57,9 @@ |
||
57 | 57 | <table width="100%" cellpadding="2" cellspacing="3" border="0"> |
58 | 58 | <?php |
59 | 59 | if ($is_allowedToTrack) { |
60 | - if (!isset($reqdate) || $reqdate < 0 || $reqdate > 2149372861) |
|
61 | - $reqdate = time(); |
|
60 | + if (!isset($reqdate) || $reqdate < 0 || $reqdate > 2149372861) { |
|
61 | + $reqdate = time(); |
|
62 | + } |
|
62 | 63 | //** dislayed period |
63 | 64 | echo "<tr><td><b>"; |
64 | 65 | switch($period) { |
@@ -445,7 +445,10 @@ |
||
445 | 445 | } |
446 | 446 | } |
447 | 447 | ?> |
448 | - <input type="hidden" name="updatePath" value="<?php if (!$badUpdatePath) echo api_htmlentities($proposedUpdatePath, ENT_QUOTES); ?>" /> |
|
448 | + <input type="hidden" name="updatePath" value="<?php if (!$badUpdatePath) { |
|
449 | + echo api_htmlentities($proposedUpdatePath, ENT_QUOTES); |
|
450 | +} |
|
451 | +?>" /> |
|
449 | 452 | <input type="hidden" name="urlAppendPath" value="<?php echo api_htmlentities($urlAppendPath, ENT_QUOTES); ?>" /> |
450 | 453 | <input type="hidden" name="pathForm" value="<?php echo api_htmlentities($pathForm, ENT_QUOTES); ?>" /> |
451 | 454 | <input type="hidden" name="urlForm" value="<?php echo api_htmlentities($urlForm, ENT_QUOTES); ?>" /> |
@@ -973,8 +973,7 @@ discard block |
||
973 | 973 | <?php echo get_lang('Error'); ?>!<br /> |
974 | 974 | Chamilo <?php echo implode('|', $update_from_version_8).' '.get_lang('HasNotBeenFoundInThatDir'); ?>. |
975 | 975 | </div> |
976 | - <?php } |
|
977 | - else { |
|
976 | + <?php } else { |
|
978 | 977 | echo '<br />'; |
979 | 978 | } |
980 | 979 | ?> |
@@ -1060,14 +1059,19 @@ discard block |
||
1060 | 1059 | <button type="submit" name="step1" class="btn btn-default" onclick="javascript: window.location='index.php'; return false;" value="<?php echo get_lang('Previous'); ?>" > |
1061 | 1060 | <em class="fa fa-backward"> </em> <?php echo get_lang('Previous'); ?> |
1062 | 1061 | </button> |
1063 | - <button type="submit" name="step2_install" class="btn btn-success" value="<?php echo get_lang("NewInstallation"); ?>" <?php if ($error) echo 'disabled="disabled"'; ?> > |
|
1062 | + <button type="submit" name="step2_install" class="btn btn-success" value="<?php echo get_lang("NewInstallation"); ?>" <?php if ($error) { |
|
1063 | + echo 'disabled="disabled"'; |
|
1064 | +} |
|
1065 | +?> > |
|
1064 | 1066 | <em class="fa fa-forward"> </em> <?php echo get_lang('NewInstallation'); ?> |
1065 | 1067 | </button> |
1066 | 1068 | <input type="hidden" name="is_executable" id="is_executable" value="-" /> |
1067 | 1069 | <?php |
1068 | 1070 | // Real code |
1069 | 1071 | echo '<button type="submit" class="btn btn-default" name="step2_update_8" value="Upgrade from Chamilo 1.9.x"'; |
1070 | - if ($error) echo ' disabled="disabled"'; |
|
1072 | + if ($error) { |
|
1073 | + echo ' disabled="disabled"'; |
|
1074 | + } |
|
1071 | 1075 | echo ' ><em class="fa fa-forward"> </em> '.get_lang('UpgradeFromLMS19x').'</button>'; |
1072 | 1076 | |
1073 | 1077 | echo '</p>'; |
@@ -1350,7 +1354,7 @@ discard block |
||
1350 | 1354 | <input type="hidden" name="dbHostForm" value="<?php echo htmlentities($dbHostForm); ?>" /><?php echo $dbHostForm; ?> |
1351 | 1355 | </div> |
1352 | 1356 | <div class="col-sm-3"></div> |
1353 | - <?php }else{ ?> |
|
1357 | + <?php } else{ ?> |
|
1354 | 1358 | <div class="col-sm-5"> |
1355 | 1359 | <input type="text" class="form-control" size="25" maxlength="50" name="dbHostForm" value="<?php echo htmlentities($dbHostForm); ?>" /> |
1356 | 1360 | </div> |
@@ -1364,7 +1368,7 @@ discard block |
||
1364 | 1368 | <input type="hidden" name="dbPortForm" value="<?php echo htmlentities($dbPortForm); ?>" /><?php echo $dbPortForm; ?> |
1365 | 1369 | </div> |
1366 | 1370 | <div class="col-sm-3"></div> |
1367 | - <?php }else{ ?> |
|
1371 | + <?php } else{ ?> |
|
1368 | 1372 | <div class="col-sm-5"> |
1369 | 1373 | <input type="text" class="form-control" size="25" maxlength="50" name="dbPortForm" value="<?php echo htmlentities($dbPortForm); ?>" /> |
1370 | 1374 | </div> |
@@ -1449,12 +1453,15 @@ discard block |
||
1449 | 1453 | |
1450 | 1454 | </div> |
1451 | 1455 | |
1452 | - <?php else: ?> |
|
1456 | + <?php else { |
|
1457 | + : ?> |
|
1453 | 1458 | |
1454 | 1459 | <?php echo $database_exists_text ?> |
1455 | 1460 | <div id="db_status" style="float:left;" class="alert alert-danger"> |
1456 | 1461 | <div style="float:left;"> |
1457 | - <?php echo get_lang('FailedConectionDatabase'); ?></strong> |
|
1462 | + <?php echo get_lang('FailedConectionDatabase'); |
|
1463 | +} |
|
1464 | +?></strong> |
|
1458 | 1465 | </div> |
1459 | 1466 | </div> |
1460 | 1467 |
@@ -43,15 +43,33 @@ |
||
43 | 43 | |
44 | 44 | // interbreadcrumb |
45 | 45 | $interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('CourseProgram')); |
46 | -if ($description_type == 1) $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('GeneralDescription')); |
|
47 | -if ($description_type == 2) $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('Objectives')); |
|
48 | -if ($description_type == 3) $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('Topics')); |
|
49 | -if ($description_type == 4) $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('Methodology')); |
|
50 | -if ($description_type == 5) $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('CourseMaterial')); |
|
51 | -if ($description_type == 6) $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('HumanAndTechnicalResources')); |
|
52 | -if ($description_type == 7) $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('Assessment')); |
|
53 | -if ($description_type == 8) $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('ThematicAdvance')); |
|
54 | -if ($description_type >= 9) $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('Others')); |
|
46 | +if ($description_type == 1) { |
|
47 | + $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('GeneralDescription')); |
|
48 | +} |
|
49 | +if ($description_type == 2) { |
|
50 | + $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('Objectives')); |
|
51 | +} |
|
52 | +if ($description_type == 3) { |
|
53 | + $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('Topics')); |
|
54 | +} |
|
55 | +if ($description_type == 4) { |
|
56 | + $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('Methodology')); |
|
57 | +} |
|
58 | +if ($description_type == 5) { |
|
59 | + $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('CourseMaterial')); |
|
60 | +} |
|
61 | +if ($description_type == 6) { |
|
62 | + $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('HumanAndTechnicalResources')); |
|
63 | +} |
|
64 | +if ($description_type == 7) { |
|
65 | + $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('Assessment')); |
|
66 | +} |
|
67 | +if ($description_type == 8) { |
|
68 | + $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('ThematicAdvance')); |
|
69 | +} |
|
70 | +if ($description_type >= 9) { |
|
71 | + $interbreadcrumb[] = array ("url" => "#", "name" => get_lang('Others')); |
|
72 | +} |
|
55 | 73 | |
56 | 74 | // course description controller object |
57 | 75 | $course_description_controller = new CourseDescriptionController(); |
@@ -149,8 +149,7 @@ discard block |
||
149 | 149 | <?php |
150 | 150 | if ($session['access_start_date'] == '00-00-0000' && $session['access_end_date']== '00-00-0000' ) { |
151 | 151 | echo get_lang('NoTimeLimits'); |
152 | - } |
|
153 | - else { |
|
152 | + } else { |
|
154 | 153 | if ($session['access_start_date'] != '00-00-0000') { |
155 | 154 | //$session['date_start'] = Display::tag('i', get_lang('NoTimeLimits')); |
156 | 155 | $session['access_start_date'] = get_lang('From').' '.$session['access_start_date']; |
@@ -189,12 +188,18 @@ discard block |
||
189 | 188 | <?php echo api_ucfirst(get_lang('SessionVisibility')) ?> : |
190 | 189 | </td> |
191 | 190 | <td> |
192 | - <?php if ($session['visibility']==1) echo get_lang('ReadOnly'); elseif($session['visibility']==2) echo get_lang('Visible');elseif($session['visibility']==3) echo api_ucfirst(get_lang('Invisible')) ?> |
|
191 | + <?php if ($session['visibility']==1) { |
|
192 | + echo get_lang('ReadOnly'); |
|
193 | +} elseif($session['visibility']==2) { |
|
194 | + echo get_lang('Visible'); |
|
195 | +} elseif($session['visibility']==3) { |
|
196 | + echo api_ucfirst(get_lang('Invisible')) ?> |
|
193 | 197 | </td> |
194 | 198 | </tr> |
195 | 199 | <?php |
196 | 200 | |
197 | 201 | $multiple_url_is_on = api_get_multiple_access_url(); |
202 | +} |
|
198 | 203 | if ($multiple_url_is_on) { |
199 | 204 | echo '<tr><td>'; |
200 | 205 | echo 'URL'; |
@@ -477,7 +477,10 @@ discard block |
||
477 | 477 | <div class="actions"> |
478 | 478 | <?php echo $link_add_type_unique ?> | <?php echo $link_add_type_multiple ?> | <?php echo $link_add_group; ?> |
479 | 479 | </div> |
480 | - <form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?page=<?php echo $page; ?>&id_session=<?php echo $id_session; ?><?php if(!empty($_GET['add'])) echo '&add=true' ; ?>" style="margin:0px;" <?php if($ajax_search){echo ' onsubmit="valide();"';}?>> |
|
480 | + <form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?page=<?php echo $page; ?>&id_session=<?php echo $id_session; ?><?php if(!empty($_GET['add'])) { |
|
481 | + echo '&add=true' ; |
|
482 | +} |
|
483 | +?>" style="margin:0px;" <?php if($ajax_search){echo ' onsubmit="valide();"';}?>> |
|
481 | 484 | <?php echo '<legend>'.$tool_name.' ('.$session_info['name'].') </legend>'; ?> |
482 | 485 | <?php |
483 | 486 | if ($add_type == 'multiple') { |
@@ -545,7 +548,10 @@ discard block |
||
545 | 548 | <?php |
546 | 549 | foreach ($nosessionUsersList as $uid => $enreg) { |
547 | 550 | ?> |
548 | - <option value="<?php echo $uid; ?>" <?php if(in_array($uid,$UserList)) echo 'selected="selected"'; ?>><?php echo api_get_person_name($enreg['fn'], $enreg['ln']).' ('.$enreg['un'].')'; ?></option> |
|
551 | + <option value="<?php echo $uid; ?>" <?php if(in_array($uid,$UserList)) { |
|
552 | + echo 'selected="selected"'; |
|
553 | +} |
|
554 | +?>><?php echo api_get_person_name($enreg['fn'], $enreg['ln']).' ('.$enreg['un'].')'; ?></option> |
|
549 | 555 | <?php |
550 | 556 | } |
551 | 557 | ?> |
@@ -4,8 +4,9 @@ |
||
4 | 4 | require_once dirname(__FILE__).'/../../inc/global.inc.php'; |
5 | 5 | $url = api_get_path(WEB_PATH).'main/auth/conditional_login/complete_phone_number.php'; |
6 | 6 | |
7 | -if (! isset($_SESSION['conditional_login']['uid'])) |
|
7 | +if (! isset($_SESSION['conditional_login']['uid'])) { |
|
8 | 8 | die("Not Authorised"); |
9 | +} |
|
9 | 10 | ?> |
10 | 11 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
11 | 12 | <html lang="fr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml"> |
@@ -144,7 +144,10 @@ |
||
144 | 144 | echo '</div>'; |
145 | 145 | ?> |
146 | 146 | |
147 | -<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?id=<?php echo $id; if(!empty($_GET['add'])) echo '&add=true' ; ?>" style="margin:0px;" <?php if($ajax_search){echo ' onsubmit="valide();"';}?>> |
|
147 | +<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?id=<?php echo $id; if(!empty($_GET['add'])) { |
|
148 | + echo '&add=true' ; |
|
149 | +} |
|
150 | +?>" style="margin:0px;" <?php if($ajax_search){echo ' onsubmit="valide();"';}?>> |
|
148 | 151 | <?php echo '<legend>'.$tool_name.' '.$promotion_data['name'].'</legend>'; |
149 | 152 | |
150 | 153 | if ($add_type=='multiple') { |