Patch by Michael:

- Made a change to use @import directive for layout portion of css.

- Changed the druplicon to link to drupal.org since the title of the
site in the upper left now link to index.php.
4.2.x
Dries Buytaert 2002-12-28 19:15:06 +00:00
parent 52a2338e87
commit c72096d64b
2 changed files with 9 additions and 94 deletions

View File

@ -13,11 +13,14 @@ function admin_page($mod) {
global $user;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1- transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?php echo variable_get("site_name", "drupal") . " " . t("administration pages"); ?></title>
<link rel="stylesheet" type=text/css media="screen" href="misc/admin.css" />
<link rel="stylesheet" type="text/css" title="text" media="screen" href="misc/admin.css" />
<style type="text/css" title="layout" media="Screen">
@import url("misc/admin-layout.css");
</style>
</head>
<body>
<?php
@ -29,7 +32,7 @@ function admin_page($mod) {
*/
print "<div id=\"menu\">";
echo "<h1><a href=\"index.php\">".variable_get("site_name", "drupal")."</a></ h1>";
echo "<h1><a href=\"index.php\">". variable_get("site_name", "drupal") ."</a></h1>";
print menu_tree() ;
print "</div>";
@ -39,7 +42,7 @@ function admin_page($mod) {
*/
print "<div id=\"main\">";
print "<a href=\"index.php\"><img align=\"right\" src=\"misc/druplicon-small.gif\" alt=\"Druplicon - Drupal logo\" border=\"0\" /></a>";
print "<a href=\"http://drupal.org/\"><img align=\"right\" src=\"misc/druplicon-small.gif\" alt=\"Druplicon - Drupal logo\" border=\"0\" /></a>";
if ($path = menu_path()) {
print "<h2>". la(t("Administration")) ." &gt; $path</h2>";
@ -65,7 +68,7 @@ function admin_page($mod) {
db_query("DELETE FROM menu");
?>
</body>
</html>
</html>
<?php
}

View File

@ -1,89 +1 @@
body {
font-size: 90%;
margin: 0;
background-color: #fff;
}
/* text */
body, th, td, h1, h2, h3, h4, #menu, #main {
font-family: helvetica, arial;
}
a {
}
a:link {
color: #059;
}
a:visited {
color: #049;
}
h1 {
font-size: 1.3em;
font-weight: bold;
color: #000066;
}
h2 {
font-size: 1.3em;
font-weight: bold;
color: #000066;
margin: 0;
padding: 0 0 .5em 0;
}
h3 {
font-size: 1.2em;
font-weight: bold;
color: #006600;
margin: 0;
padding: 0 0 .5em 0;
}
th {
font-size: 90%;
text-align: left;
vertical-align: top;
background-color: #CCCCCC;
color: #995555;
}
td {
font-size: 90%;
}
/* layout */
#menu {
position: absolute;
left: 0px;
top: 0px;
padding: 1em 0 1em 0;
width: 200px;
z-index: 1;
overflow: hidden;
background-color: #6699cc;
border-right: 1px solid #999;
border-bottom: 1px solid #999;
}
#menu h1 a {
display: block;
margin: 0;
padding: 0 0 .2em .6em;
color: #fff;
text-decoration: none;
border-bottom: 1px dotted #90bade;
}
#menu ul {
list-style: none;
margin: 0 0 0 0;
padding: 0 0 0 .75em;
border: none;
}
#menu li {
margin: 0;
padding: .25em .25em .25em 0;
border-bottom: 1px dotted #90bade;
}
#menu li a {
display: block;
width: 100%;
color: #fff;
text-decoration: none;
}
#main {
margin: 0 0 0 220px;
padding: 1em 1em 1em 0;
z-index: 2;
}
body { font-size: 90%; margin: 0; background-color: #fff;}/* text */body, th, td, h1, h2, h3, h4, #menu, #main { font-family: helvetica, arial;}a {}a:link { color: #059;}a:visited { color: #049;}h1 { font-size: 1.3em; font-weight: bold; color: #000066;}h2 { font-size: 1.3em; font-weight: bold; color: #000066; margin: 0; padding: 0 0 .5em 0;}h3 { font-size: 1.2em; font-weight: bold; color: #006600; margin: 0; padding: 0 0 .5em 0;}th { font-size: 90%; text-align: left; vertical-align: top; background-color: #CCCCCC; color: #995555;}td { font-size: 90%;}/* layout */#menu { position: absolute; left: 0px; top: 0px; padding: 1em 0 1em 0; width: 200px; z-index: 1; overflow: hidden; background-color: #6699cc; border-right: 1px solid #999; border-bottom: 1px solid #999;}#menu h1 a { display: block; margin: 0; padding: 0 0 .2em .6em; color: #fff; text-decoration: none; border-bottom: 1px dotted #90bade;}#menu ul { list-style: none; margin: 0 0 0 0; padding: 0 0 0 .75em; border: none;}#menu li { margin: 0; padding: .25em .25em .25em 0; border-bottom: 1px dotted #90bade;}#menu li a { display: block; width: 100%; color: #fff; text-decoration: none;}#main { margin: 0 0 0 220px; padding: 1em 1em 1em 0; z-index: 2;}