diff options
-rw-r--r-- | mod/ecml/views/default/ecml/admin/css.php | 2 | ||||
-rw-r--r-- | mod/ecml/views/default/ecml/admin/ecml_admin.php | 15 |
2 files changed, 8 insertions, 9 deletions
diff --git a/mod/ecml/views/default/ecml/admin/css.php b/mod/ecml/views/default/ecml/admin/css.php index 4a9cd8e4d..960941a03 100644 --- a/mod/ecml/views/default/ecml/admin/css.php +++ b/mod/ecml/views/default/ecml/admin/css.php @@ -6,7 +6,7 @@ text-align: center; padding: 5px; } -.ecml_admin_table th, .ecml_view_desc { +.ecml_admin_table th, .ecml_keyword_desc { font-weight: bold; } .ecml_row_odd { diff --git a/mod/ecml/views/default/ecml/admin/ecml_admin.php b/mod/ecml/views/default/ecml/admin/ecml_admin.php index 2a5663327..34f777414 100644 --- a/mod/ecml/views/default/ecml/admin/ecml_admin.php +++ b/mod/ecml/views/default/ecml/admin/ecml_admin.php @@ -26,23 +26,22 @@ $form_body = <<<___END <th> </th> ___END; -foreach ($keywords as $keyword => $info) { - $desc = $info['description']; - - $form_body .= "<th><acronym title=\"$desc\">$keyword</acronym></th>"; +foreach ($views as $view => $view_desc) { + $form_body .= "<th><acronym title=\"$view\">$view_desc</acronym></th>"; } $form_body .= '</tr>'; $odd = 'odd'; -foreach ($views as $view => $desc) { +foreach ($keywords as $keyword => $keyword_info) { + $keyword_desc = $keyword_info['description']; $form_body .= " <tr class=\"ecml_row_$odd\"> - <td class=\"ecml_view_desc\">$desc</td> + <td class=\"ecml_keyword_desc\"><acronym title=\"$keyword_desc\">$keyword</acryonym></td> "; - foreach ($keywords as $keyword => $info) { + foreach ($views as $view => $view_info) { // if this is restricted and we're not on the specified view don't allow changes // since we don't save this, no need to pass a name - if (isset($info['restricted']) && !in_array($view, $info['restricted'])) { + if (isset($keyword_info['restricted']) && !in_array($view, $keyword_info['restricted'])) { $form_body .= "<td><input type=\"checkbox\" checked=\"checked\" disabled=\"disabled\"/></td>"; } else { $checked = (in_array($keyword, $perms[$view])) ? 'checked="checked"' : ''; |