From d454fbf68ae72e174070889b1fe0b74128cf0adb Mon Sep 17 00:00:00 2001 From: aragonc Date: Tue, 21 Apr 2015 16:55:21 -0500 Subject: [PATCH] fix thematic progress course --- main/css/base.css | 31 +++++- main/inc/introductionSection.inc.php | 133 +++++++++----------------- main/template/default/layout/head.tpl | 10 -- 3 files changed, 75 insertions(+), 99 deletions(-) diff --git a/main/css/base.css b/main/css/base.css index 63f62a4db0..7895e666ac 100755 --- a/main/css/base.css +++ b/main/css/base.css @@ -4088,9 +4088,6 @@ tr.forum_category_header a { background-color: #a0e5fc; } -.current { - font-weight: bold; -} .structure { /*border-bottom: 1px solid #666666;*/ font-weight: bold; @@ -5793,12 +5790,40 @@ ul.holder li.bit-box{ display: block; } } +#settings .form-inline{ + margin-bottom: 15px; +} #search_settings{ margin-bottom: 15px; } .src-image { display: none; } +/* thematic progress */ +#panel-thematic .title-topics{ + font-size: 15px; + color:#00829C; + font-weight: bold; +} +#panel-thematic .current{ + background-color: #E7F1F7; +} +#panel-thematic .separate{ + margin-bottom: 10px; +} +#panel-thematic .date{ + font-size: 11px; + color: #8A6D3B; + background: #FCF8E3; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + padding: 5px; +} +#panel-thematic .views ul li{ + font-size: 12px; +} +/* end thematic progress*/ .card { overflow: hidden; position: relative; diff --git a/main/inc/introductionSection.inc.php b/main/inc/introductionSection.inc.php index 9a735d3f33..137b1a9ba3 100755 --- a/main/inc/introductionSection.inc.php +++ b/main/inc/introductionSection.inc.php @@ -219,100 +219,61 @@ if ($tool == TOOL_COURSE_HOMEPAGE && !isset($_GET['intro_cmdEdit'])) { $userInfo = $_SESSION['_user']; $courseInfo = api_get_course_info(); //die('
'.print_r($courseInfo,1).'
'); - - $thematic_description_html = - '
-
-
-
-
-
-
-
'; - $thematic_description_html .= '
-

' . $userInfo['firstName'] . '

-

' . $userInfo['lastName'] . '

-
-
-

' . $thematicScore . '

-
-
-

' . $thematic_advance . '

-

' . $courseInfo['name'] . '

-
- '; - $thematic_description_html .= ' + $thematic_description_html = ' +
+
+ +
+
+
+
+
+ +
+
+
+ '.$thematicScore.'
-
-
-
'; - $thematic_description_html .= - '
-
-
-
-
-
-
- -
-
-
-
-
' . $thematic_advance . ' ' . $thematicScore .' -
-
-
-
- ' . get_lang('ShowFullCourseAdvance') . ' -
-
-
-
'; - $thematic_description_html .= - '
-
'; - $thematic_description_html .= - '
-
' . $subTitle1 . '
-

' . $thematic_info['title'] . '

-

' . $thematic_advance_info['start_date'] . '

-

' . $thematic_advance_info['content'] . '

-

' . get_lang('DurationInHours') . ' : ' . $thematic_advance_info['duration'] . ' - ' . get_lang('SeeDetail') . '

-
'; +
+ +
'; + + $thematic_description_html .= '
'; + + $thematic_description_html .= '
'; + $thematic_description_html .= '
+
' . $subTitle1 . '
+

' . $thematic_info['title'] . '

+

' . $thematic_advance_info['start_date'] . '

+
' . $thematic_advance_info['content'] . '
+

' . get_lang('DurationInHours') . ' : ' . $thematic_advance_info['duration'] . ' - ' . get_lang('SeeDetail') . '

+
'; if (!empty($thematic_advance_info2)) { $thematic_info2 = $thematic->get_thematic_list($thematic_advance_info2['thematic_id']); $thematic_advance_info2['start_date'] = api_get_local_time($thematic_advance_info2['start_date']); $thematic_advance_info2['start_date'] = api_format_date($thematic_advance_info2['start_date'], DATE_TIME_FORMAT_LONG); - $thematic_description_html .= - '
-
'.$subTitle2.'
-

'.$thematic_info2['title'].'

-

'.$thematic_advance_info2['start_date'].'

-

'.$thematic_advance_info2['content'].'

-

'.get_lang('DurationInHours').' : '.$thematic_advance_info2['duration'].' - '.get_lang('SeeDetail').'

-
'; + $thematic_description_html .= '
+
'.$subTitle2.'
+

'.$thematic_info2['title'].'

+

'.$thematic_advance_info2['start_date'].'

+
'.$thematic_advance_info2['content'].'
+

'.get_lang('DurationInHours').' : '.$thematic_advance_info2['duration'].' - '.get_lang('SeeDetail').'

+
'; } - $thematic_description_html.= - '
-
-
-
-
-
-
-
-
-
'; + $thematic_description_html.='
'; + + $thematic_description_html.='
'; + + + } } diff --git a/main/template/default/layout/head.tpl b/main/template/default/layout/head.tpl index 1234f92885..82be94604f 100755 --- a/main/template/default/layout/head.tpl +++ b/main/template/default/layout/head.tpl @@ -454,16 +454,6 @@ $(function() { },200); } ); - /* - $(".td_actions").hide(); - - $(".td_actions").parent('tr').mouseover(function() { - $(".td_actions").show(); - }); - - $(".td_actions").parent('tr').mouseout(function() { - $(".td_actions").hide(); - });*/ /* Make responsive image maps */ $('map').imageMapResize();