updating skel templates

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4280 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-01-10 22:56:16 +00:00
parent dc366d046d
commit 62ef82cf4e
4 changed files with 305 additions and 236 deletions

View file

@ -1,17 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>CakePHP: the PHP Rapid Development Framework: <?php echo $title_for_layout;?></title> <title>
<?php echo $html->charset();?> CakePHP: the PHP Rapid Development Framework:
<?php echo $title_for_layout;?>
</title>
<?php echo $html->charset();?>
<link rel="icon" href="<?php echo $this->webroot;?>favicon.ico" type="image/x-icon" /> <link rel="icon" href="<?php echo $this->webroot;?>favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $this->webroot;?>favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<?php echo $this->webroot;?>favicon.ico" type="image/x-icon" />
<?php echo $html->css('cake.generic');?> <?php echo $html->css('cake.generic');?>
</head> </head>
<body> <body>
<div id="container"> <div id="container">
<div id="header"> <div id="header">
<h1>CakePHP: the PHP Rapid Development Framework</h1> <h1><?php echo $html->link('CakePHP: the PHP Rapid Development Framework', 'http://cakephp.org');?></h1>
</div> </div>
<div id="content"> <div id="content">
<?php <?php
@ -27,12 +31,11 @@
<?php echo $html->link( <?php echo $html->link(
$html->image('cake.power.png', array('alt'=>"CakePHP: the PHP Rapid Development Framework", 'border'=>"0")), $html->image('cake.power.png', array('alt'=>"CakePHP: the PHP Rapid Development Framework", 'border'=>"0")),
'http://www.cakephp.org/', 'http://www.cakephp.org/',
array('target'=>'_new'), array('target'=>'_new'), null, false
null,
false
); );
?> ?>
</div> </div>
</div> </div>
<?php echo $cakeDebug?>
</body> </body>
</html> </html>

View file

@ -1,281 +1,321 @@
*{ * {
margin:0; margin:0;
padding:0; padding:0;
} }
/* General Style Info */ /* General Style Info */
body{ body {
font-family:"frutiger linotype","lucida grande",helvetica,arial,sans-serif; background-color: #2C6877;
text-align:center; color: #fff;
color:#333; font-family: "frutiger linotype", "lucida grande", "helvetica", "arial", sans-serif;
font-size: 76%; font-size: 76%;
} }
a {
a{ background-color: #fff;
color:#003d4c; color: #003d4c;
text-decoration:underline; text-decoration: underline;
} }
a:hover {
a:hover{ background-color: #fff;
color:#003d4c; color: #003d4c;
text-decoration:none; text-decoration:none;
} }
a img {
a img{ border:none;
border:none;
} }
h1, h2, h3, h4{
font-weight:normal;
}
h1{
color: #003d4c;
margin:0.3em 0;
font-size: 180%;
}
h2{
color:#c6c65b;
padding-top: 1em;
margin:0.3em 0;
font-size: 180%;
}
h3{
color:#c6c65b;
padding-top:2em;
font-size: 140%;
}
h4{
color:#c6c65b;
padding-top:0.5em;
font-weight:normal;
}
em { em {
font-size: 12px; font-size: 12px;
}
h1, h2, h3, h4 {
background-color: #fff;
font-weight:normal;
}
h1 {
color: #003d4c;
font-size: 180%;
margin: 0.3em 0;
}
h2 {
color: #2C6877;
font-size: 180%;
margin: 0.3em 0;
padding-top: 1em;
}
h3 {
color: #c6c65b;
font-size: 140%;
padding-top: 2em;
}
h4 {
color: #c6c65b;
font-weight: normal;
padding-top: 0.5em;
} }
ul, li { ul, li {
margin: 0 12px; margin: 0 12px;
} }
/* Layout */ /* Layout */
#container{ #container {
text-align:left; text-align: left;
} }
#header{ #header{
margin-top: 1em; background-color: #2C6877;
padding: 4px 20px; padding: 10px 20px 0 20px;
}
#header h1 {
color: #ffffff;
background: url('../img/cake.icon.png') no-repeat;
padding: 5px 50px;
height: 60px;
}
#header h1 a {
color: #ffffff;
background: #2C6877;
text-decoration: none;
}
#header h1 a:hover {
color: #ffffff;
background: #003d4c;
text-decoration: none;
} }
#content{ #content{
clear:both; background-color: #fff;
padding: 0px 40px 10px 40px; clear: both;
background-color: #fff; color: #333;
color: #333; padding: 0px 40px 40px 40px;
overflow: auto;
}
#footer {
clear: both;
padding: 6px 10px;
text-align: right;
} }
#footer{ /* Tables */
clear:both;
padding: 6px 10px;
text-align: right;
}
/* tables */
table { table {
width: 100%; background-color: #fff;
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
border-left: 1px solid #ccc; border-left: 1px solid #ccc;
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
color:#333; clear: both;
background-color: #fff; color: #333;
clear:both; margin-bottom: 10px;
margin-bottom: 10px; width: 100%;
} }
th { th {
background-color: #f2f2f2; background-color: #f2f2f2;
border-top: 1px solid #fff; border-top: 1px solid #fff;
border-left: 1px solid #fff; border-left: 1px solid #fff;
border-right: 1px solid #bbb; border-right: 1px solid #bbb;
border-bottom: 1px solid #bbb; border-bottom: 1px solid #bbb;
text-align: center; padding: 1px 4px;
padding:1px 4px; text-align: center;
} }
table tr td { table tr td {
border-right: 1px solid #ddd; border-right: 1px solid #ddd;
padding:4px 4px; padding: 4px 4px;
vertical-align:top; text-align: center;
text-align: center; vertical-align: top;
} }
table tr.altrow td { table tr.altrow td {
background: #f4f4f4; background: #f4f4f4;
} }
td a{ td.actions {
padding: 0 4px; white-space: nowrap;
}
td.actions a {
padding: 0 6px;
} }
#cakeSqlLog td { #cakeSqlLog td {
text-align: left; background: #fff;
padding: 4px 8px; border-bottom: 2px solid #ccc;
background: #fff; padding: 4px 8px;
border-bottom: 2px solid #ccc; text-align: left;
} }
/* scaffold show */ /* Paging */
div.paging {
color: #ccc;
}
div.paging div.disabled {
color: #ddd;
display: inline;
}
/* Scaffold View */
dl { dl {
line-height:2em; line-height: 2em;
margin:0em 1em; margin: 0em 0em;
float:left; width: 50%;
width: 70%; }
dl .altrow {
background: #f4f4f4;
} }
dt { dt {
font-weight: bold; font-weight: bold;
vertical-align:top; padding-left: 4px;
vertical-align: top;
} }
dd { dd {
margin-left:10em; margin-left: 10em;
margin-top:-2em; margin-top: -2em;
vertical-align:top; vertical-align: top;
} }
div.related { /* Forms */
clear:both;
display:block;
}
/* forms */
form { form {
margin-top: 0em; margin-top: 0;
padding: 0; margin-right: 20px;
float: left; padding: 0;
width: 70%; width: 50%;
} }
form div {
form div{ border: 1px solid #ddd;
vertical-align: text-top; clear: both;
margin-left: 1em; margin-bottom: 1em;
margin-bottom:2em; padding: .8em 2em 1em 1.4em;
vertical-align: text-top;
} }
form div.required {
form div.date{ color: #333;
margin-left: 0em; background: #f2f2f2;
font-weight: bold;
}
form div.optional, form div.input {
background: #f6f6f6;
color: #444;
}
form div.submit {
border: 0;
clear: both;
margin-top: 10px;
margin-left: 140px;
} }
label { label {
display: block; display: block;
float:left; font-size: 14px;
width: 140px; padding-right: 20px;
font-size: 14px;
padding-right: 20px;
} }
input[type=checkbox] {
float: left;
clear: left;
margin: 2px 6px 7px 2px;
}
input, textarea { input, textarea {
clear: both; clear: both;
display:block; display: block;
font-size: 14px; font-size: 14px;
font-family: inherit; width: 100%;
} }
select { select {
clear: both; clear: both;
vertical-align: text-bottom; font-size: 14px;
font-size: 14px; vertical-align: text-bottom;
font-family: inherit; }
select[multiple=multiple] {
width: 100%;
} }
option { option {
font-size: 14px; font-size: 14px;
font-family: inherit; padding: 0 0.3em;
padding: 0 0.3em; }
input[type=checkbox] {
clear: left;
float: left;
margin: 2px 6px 7px 2px;
width: auto;
} }
input[type=submit] { input[type=submit] {
display: inline; display: inline;
vertical-align: bottom; padding: 0 .4em;
width: auto;
vertical-align: bottom;
} }
form .required, form .optional{ /* Notices and Errors */
clear:both; div.message, p.error, div.error-message {
padding: 10px; color: #900;
margin-bottom:10px; font-size: 16px;
min-height:15px; font-weight: bold;
margin: 8px 0px;
}
div.error-message {
clear: both;
}
div.error em {
font-size: 18px;
color: #003d4c;
}
span.notice {
background-color: #c6c65b;
color: #fff;
display: block;
font-size: 16px;
padding: 0.5em;
margin: 1em 0;
} }
.required{ /* Actions */
color:#333; div.actions {
font-weight:bold; position: absolute;
background: #f2f2f2; top: 75px;
left: 23px;
text-align: left;
}
div.actions ul {
margin: 0;
padding: 2px 6px;
list-style-type: none;
display: inline;
}
div.actions li {
display: inline;
list-style-type: none;
margin: 1px 0px 4px 0px;
padding: 2px 6px;
}
div.actions ul li a{
background:#2C6877;
color: #fff;
padding: 2px 6px;
text-decoration: none;
}
div.actions ul li a:hover {
background:#fff;
color: #2C6877;
} }
.optional{ /* Related */
color:#444; div.related {
background: #f8f8f8; clear: both;
display: block;
}
div.related div.actions {
position: relative;
top: 4px;
left: 0;
text-align: left;
}
div.related div.actions ul {
list-style-type: none;
margin: 0;
padding: 0;
}
div.related div.actions li {
list-style-type: none;
margin: 0 0 4px 0px;
padding: 0;
}
div.related div.actions ul li a{
background:#fff;
color: #2C6877;
padding: 0;
text-decoration: underline;
}
div.related div.actions ul li a:hover {
background:#fff;
color: #2C6877;
text-decoration: none;
} }
.submit { /* Other */
clear: both;
margin-top: 10px;
margin-left: 140px;
}
/* notices and errors */
#flashMessage, .error, .error-message, .form-error {
color:#900;
font-size: 16px;
margin: 8px 0px;
font-weight: bold;
}
.error-message {
clear: both;
}
.error em {
font-size: 18px;
color: #003d4c;
}
.notice {
color: #656565;
font-size: 14px;
background-color: #f4f4f4;
padding: 0.5em;
margin: 1em 0;
display:block;
}
.tip {
color: #656565;
background-color: #ddd;
}
/* action links */
ul.actions {
float: left;
margin: 0px 20px;
}
ul.actions li {
margin: 4px 0;
list-style-type: circle;
}
/* others */
pre { pre {
padding: 1em; padding: 1em;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -1,13 +1,39 @@
<?php <?php
$output = "<p class=\"notice\">Your database configuration file is <?php echo file_exists(CONFIGS.'database.php') ?' present.' . \$filePresent = ' ' : ' not present.'; ?></p>\n"; $output =
$output .= "<?php if (!empty(\$filePresent)):?>\n"; "<p>
$output .= "<?php uses('model' . DS . 'connection_manager'); \$db = ConnectionManager::getInstance(); ?>\n"; <span class=\"notice\">
$output .= "<?php \$connected = \$db->getDataSource('default'); ?>\n"; Your database configuration file is
$output .= "<p class=\"notice\">Cake<?php echo \$connected->isConnected() ? ' is able to' : ' is not able to';?> connect to the database.</p>\n"; <?php
$output .= "<br />\n"; \$filePresent = null;
$output .= "<?php endif; ?>\n"; if(file_exists(CONFIGS.'database.php')):
$output .= "<h1>Sweet, \"".Inflector::humanize($app)."\" got Baked by CakePHP!</h1>\n"; echo 'present';
$output .= "<h2>Editing this Page</h2>\n"; \$filePresent = true;
else:
echo 'NOT present';
endif;
?>
</span>
</p>
<?php if (!empty(\$filePresent)):
uses('model' . DS . 'connection_manager');
\$db = &ConnectionManager::getInstance();
\$connected = \$db->getDataSource('default');
?>
<p>
<span class=\"notice\">
Cake
<?php if(\$connected->isConnected()):
echo ' is able to';
else:
echo ' is not able to';
endif;
?>
connect to the database.
</span>
</p>\n";
$output .= "<?php endif;?>";
$output .= "<h2>Sweet, \"".Inflector::humanize($app)."\" got Baked by CakePHP!</h2>\n";
$output .= "<h3>Editing this Page</h3>\n";
$output .= "<p>\n"; $output .= "<p>\n";
$output .= "To change the content of this page, edit: ".$dir.DS."views".DS."pages".DS."home.ctp.<br />\n"; $output .= "To change the content of this page, edit: ".$dir.DS."views".DS."pages".DS."home.ctp.<br />\n";
$output .= "To change its layout, edit: ".$dir.DS."views".DS."layouts".DS."default.ctp.<br />\n"; $output .= "To change its layout, edit: ".$dir.DS."views".DS."layouts".DS."default.ctp.<br />\n";