Minor style corrections

skala
Julio Montoya 14 years ago
parent a907dabe66
commit c533065833
  1. 3
      main/course_home/activity.php
  2. 2
      main/css/responsive.css
  3. 8
      main/inc/introductionSection.inc.php
  4. 4
      main/inc/lib/add_course.lib.inc.php

@ -61,8 +61,7 @@ if (api_is_allowed_to_edit(null, true) && !api_is_coach()) {
<div class="normal-message" id="id_normal_message" style="display:none">';
$content .= '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/>&nbsp;&nbsp;';
$content .= get_lang('PleaseStandBy');
$content .= '</div>
$content .= '</div>
<div class="confirmation-message" id="id_confirmation_message" style="display:none"></div>
</div>';

@ -44,7 +44,7 @@
#course_tools .row .span4 {
float: left;
width: 200px;
width: 212px;
}
}

@ -22,7 +22,6 @@
* @package chamilo.include
*/
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
require_once api_get_path(LIBRARY_PATH).'thematic.lib.php';
/* Constants and variables */
@ -121,7 +120,7 @@ $sql = "SELECT intro_text FROM $TBL_INTRODUCTION
WHERE c_id = $course_id AND id='".Database::escape_string($moduleId)."' AND session_id = '".intval($session_id)."'";
$intro_dbQuery = Database::query($sql);
if (Database::num_rows($intro_dbQuery) > 0) {
$intro_dbResult = Database::fetch_array($intro_dbQuery);
$intro_dbResult = Database::fetch_array($intro_dbQuery);
$intro_content = $intro_dbResult['intro_text'];
} else {
$intro_content = '';
@ -187,8 +186,7 @@ if ($tool == TOOL_COURSE_HOMEPAGE && !isset($_GET['intro_cmdEdit'])) {
$thematic_advance_info['start_date'] = api_get_local_time($thematic_advance_info['start_date']);
$thematic_advance_info['start_date'] = api_format_date($thematic_advance_info['start_date'], DATE_TIME_FORMAT_LONG);
$thematic_description_html = '
<div class="thematic-postit">
$thematic_description_html = '<div class="thematic-postit">
<div class="thematic-postit-top"><h3><a class="thematic-postit-head" style="" href="#"> '.$thematic_advance.'</h3></a></div>
<div class="thematic-postit-center" style="display:none">';
$thematic_description_html .= '<div><strong>'.$thematic_info['title'].'</strong></div>';
@ -221,7 +219,7 @@ $introduction_section .= '</div>';
$introduction_section .= '<div class="span12">';
if ($intro_dispDefault) {
$intro_content = text_filter($intro_content); // parse [tex] codes
$intro_content = $intro_content;
if (!empty($intro_content)) {
$introduction_section .= $intro_content;
}

@ -2458,10 +2458,10 @@ function fill_db_course($course_id, $course_repository, $language, $default_docu
/* Introduction text */
$intro_text='<p style="text-align: center;">
<img src="'.api_get_path(REL_CODE_PATH).'img/mascot.png" alt="Mr. Chamilo" title="Mr. Chamilo" /></td>
<img src="'.api_get_path(REL_CODE_PATH).'img/mascot.png" alt="Mr. Chamilo" title="Mr. Chamilo" />
<h2>'.lang2db(get_lang('IntroductionText')).'</h2>
</p>';
Database::query("INSERT INTO $TABLEINTROS VALUES ($course_id, '" . TOOL_COURSE_HOMEPAGE . "','".$intro_text. "', 0)");
Database::query("INSERT INTO $TABLEINTROS VALUES ($course_id, '" . TOOL_COURSE_HOMEPAGE . "','".$intro_text."', 0)");
Database::query("INSERT INTO $TABLEINTROS VALUES ($course_id, '" . TOOL_STUDENTPUBLICATION . "','".lang2db(get_lang('IntroductionTwo')) . "', 0)");
// Wiki intro

Loading…
Cancel
Save