From a0648316ec238d4679df5adbd70401c734a64506 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Tue, 20 Mar 2007 00:27:38 +0000 Subject: [PATCH] MDL-8921 : Converted the page from table layout to divs (except tabular data) and added related css rules in styles_layout.css. Looks the same and validates XHTML strict. --- course/report/participation/index.php | 62 ++++++++++++++------------- theme/standard/styles_layout.css | 22 ++++++++++ 2 files changed, 55 insertions(+), 29 deletions(-) diff --git a/course/report/participation/index.php b/course/report/participation/index.php index 5220203ea7..9baf30c0fe 100644 --- a/course/report/participation/index.php +++ b/course/report/participation/index.php @@ -127,14 +127,14 @@ echo '
'."\n". ''."\n". ''."\n". - ''; - echo ''; + ''."\n"; + echo ''."\n"; choose_from_menu($modoptions,'moduleid',$moduleid); - echo ''; + echo ''."\n"; choose_from_menu($timeoptions,'timefrom',$timefrom); - echo ''; + echo ''."\n"; choose_from_menu($useroptions,'roleid',$roleid,''); - echo ''; + echo ''."\n"; choose_from_menu($actionoptions,'action',$action,''); helpbutton('participationreport',get_string('participationreport')); echo ''."\n
\n"; @@ -181,16 +181,17 @@ $instanceid = array_pop(array_keys($instanceoptions)); } - echo '
'. + echo ''. "\n". + '
'."\n". ''."\n". ''."\n". ''."\n". ''."\n". ''."\n". - ''."\n". - '
'; + ''."\n"; choose_from_menu($instanceoptions,'instanceid',$instanceid); - echo '
'."\n". + echo ''."\n". + '
'."\n". "
\n"; if (!empty($instanceid) && !empty($roleid)) { @@ -206,9 +207,8 @@ $table->define_headers(array(get_string('user'),((!empty($action)) ? get_string($action) : get_string('allactions')),get_string('select'))); $table->define_baseurl($baseurl); - $table->set_attribute('align','center'); $table->set_attribute('cellpadding','5'); - $table->set_attribute('class', 'generaltable generalbox'); + $table->set_attribute('class', 'generaltable generalbox reporttable'); $table->sortable(true,'lastname','ASC'); @@ -264,9 +264,10 @@ } else { $matchcount = $totalcount; } - - echo '

'.$modulename . ' ' . $strviews.': '.implode(', ',$viewnames).'
' - . $modulename . ' ' . $strposts.': '.implode(', ',$postnames).'

'; + + echo '
' . "\n"; + echo '

'.$modulename . ' ' . $strviews.': '.implode(', ',$viewnames).'
'."\n" + . $modulename . ' ' . $strposts.': '.implode(', ',$postnames).'

'."\n"; $table->initialbars($totalcount > $perpage); $table->pagesize($perpage, $matchcount); @@ -284,7 +285,7 @@ $a->items .= ' ('.get_string('matched').' '.$matchcount.')'; } - echo '

'.get_string('counteditems', '', $a).'

'; + echo '

'.get_string('counteditems', '', $a).'

'."\n"; echo ' '; - echo '
'; - echo ''; - echo ''; - echo ''; + echo ''."\n"; + echo '
'."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; foreach ($users as $u) { - $data = array(''.fullname($u,true).'', + $data = array(''.fullname($u,true).''."\n", ((!empty($u->count)) ? get_string('yes').' ('.$u->count.') ' : get_string('no')), - '', + ''."\n", ); $table->add_data($data); } @@ -339,23 +341,25 @@ function checknos() { $table->print_html(); if ($perpage == SHOW_ALL_PAGE_SIZE) { - echo ''; + echo ''."\n"; } else if ($matchcount > 0 && $perpage < $matchcount) { - echo ''; + echo ''."\n"; } - echo '
'; - echo ' '; - echo ' '; + echo ' '."\n"; + echo ' '."\n"; if ($perpage >= $matchcount) { - echo ''; + echo ''."\n"; } $displaylist['messageselect.php'] = get_string('messageselectadd'); choose_from_menu ($displaylist, "formaction", "", get_string("withselectedusers"), "if(checksubmit(this.form))this.form.submit();", ""); helpbutton("participantswithselectedusers", get_string("withselectedusers")); - echo ''; - echo '
'; + echo ''."\n"; + echo '
'."\n"; + echo ''."\n"; + echo '
'."\n"; + } print_footer(); diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 29b455dc2d..c4152c911f 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -248,6 +248,28 @@ img.grouppicture { border-collapse: collapse; } +#participationreport .reporttable { + text-align: center; + margin-left:auto; + margin-right:auto; +} + +#participationreport { + text-align: center; +} + +#participationreport .modulename { + font-weight: bold; +} + +#participationreportselector { + text-align: center; +} + +#participationreportactions { + text-align: center; +} + .initialbar { text-align: center; } -- 2.39.5