2009-01-01 00:23:29 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2008-11-01 03:58:08 +00:00
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title>Gallery3 Scaffold</title>
|
|
|
|
|
<style>
|
|
|
|
|
body {
|
|
|
|
|
background: #999;
|
|
|
|
|
font-family: Trebuchet MS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.outer {
|
2009-01-16 23:58:48 +00:00
|
|
|
width: 650px;
|
2008-11-01 03:58:08 +00:00
|
|
|
background: white;
|
|
|
|
|
border: 1px solid black;
|
|
|
|
|
margin: 0 auto;
|
2008-11-02 19:56:57 +00:00
|
|
|
padding: -10px;
|
2008-11-01 03:58:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.inner {
|
2008-11-02 19:56:57 +00:00
|
|
|
padding: 0 1em 0 1em;
|
|
|
|
|
margin: 0px;
|
2008-11-01 03:58:08 +00:00
|
|
|
}
|
|
|
|
|
|
2008-11-02 21:12:15 +00:00
|
|
|
h1, h2, h3 {
|
|
|
|
|
margin-bottom: .1em;
|
|
|
|
|
}
|
|
|
|
|
|
2008-11-01 03:58:08 +00:00
|
|
|
p {
|
2008-11-04 21:24:42 +00:00
|
|
|
margin: 0 0 0 0;
|
2008-11-03 01:13:51 +00:00
|
|
|
padding-left: 1em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
table {
|
|
|
|
|
padding-left: 1em;
|
2008-11-01 03:58:08 +00:00
|
|
|
}
|
|
|
|
|
|
2008-11-02 19:56:57 +00:00
|
|
|
pre {
|
2008-11-06 04:37:28 +00:00
|
|
|
border: 1px solid #666;
|
|
|
|
|
margin: 1em 0;
|
|
|
|
|
padding: .5em;
|
|
|
|
|
overflow: scroll;
|
2008-11-02 19:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.error {
|
|
|
|
|
color: red;
|
|
|
|
|
}
|
|
|
|
|
|
2008-11-02 21:12:15 +00:00
|
|
|
.success {
|
|
|
|
|
color: green;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
p.success {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
2008-11-02 19:56:57 +00:00
|
|
|
div.block {
|
|
|
|
|
padding: 0px;
|
|
|
|
|
margin: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
2008-11-01 03:58:08 +00:00
|
|
|
ul {
|
2008-11-02 21:12:15 +00:00
|
|
|
margin-top: -.25em;
|
2008-11-01 03:58:08 +00:00
|
|
|
}
|
2008-11-04 21:24:42 +00:00
|
|
|
|
2008-11-10 00:34:02 +00:00
|
|
|
fieldset {
|
|
|
|
|
margin-left: 1em;
|
2009-03-16 03:50:57 +00:00
|
|
|
margin-bottom: 1em;
|
2008-11-10 00:34:02 +00:00
|
|
|
padding-bottom: 0;
|
|
|
|
|
}
|
2008-11-10 12:28:58 +00:00
|
|
|
|
2008-11-23 07:46:50 +00:00
|
|
|
a {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
}
|
2008-12-01 08:50:00 +00:00
|
|
|
|
2008-12-01 09:02:46 +00:00
|
|
|
a.allowed {
|
|
|
|
|
color: green;
|
|
|
|
|
font-size: 110%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a.denied {
|
|
|
|
|
color: red;
|
|
|
|
|
font-size: 90%;
|
|
|
|
|
}
|
2008-12-01 10:27:36 +00:00
|
|
|
|
2008-12-11 17:20:55 +00:00
|
|
|
.gHide {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2008-12-31 23:58:53 +00:00
|
|
|
|
|
|
|
|
div#browse {
|
|
|
|
|
border: 1px solid black;
|
|
|
|
|
background: #eee;
|
|
|
|
|
width: 450px;
|
|
|
|
|
padding: 2px;
|
|
|
|
|
margin: 5px 0px 0px 1em;
|
|
|
|
|
}
|
2008-12-04 05:54:48 +00:00
|
|
|
</style>
|
2008-11-01 03:58:08 +00:00
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="outer">
|
|
|
|
|
<center>
|
2009-02-23 05:55:29 +00:00
|
|
|
<img src="<?= url::file("core/images/gallery.png") ?>"/>
|
2008-11-01 03:58:08 +00:00
|
|
|
</center>
|
|
|
|
|
<div class="inner">
|
2008-11-04 05:22:06 +00:00
|
|
|
<h1>Gallery3 Scaffold</h1>
|
|
|
|
|
<p>
|
|
|
|
|
This is
|
|
|
|
|
a <b><a href="http://www.google.com/images?q=scaffold">scaffold</a></b>:
|
|
|
|
|
a <i>temporary structure built to support the developers as
|
2008-11-04 21:24:42 +00:00
|
|
|
they create the real product</i>. As we flesh out Gallery 3,
|
|
|
|
|
we'll make it possible for you to peer inside and see the
|
|
|
|
|
application taking shape. Eventually, this page will go
|
|
|
|
|
away and you'll start in the application itself. In the
|
|
|
|
|
meantime, here are some useful links to get you started.
|
2008-11-04 05:22:06 +00:00
|
|
|
</p>
|
2008-11-01 03:58:08 +00:00
|
|
|
|
2008-12-31 23:58:53 +00:00
|
|
|
<? if ($album_count > 0): ?>
|
|
|
|
|
<div id="browse">
|
|
|
|
|
<p>
|
|
|
|
|
<?= html::anchor("albums/1", "Browse Gallery") ?>
|
|
|
|
|
<i>(<?= $album_count ?> albums, <?= $photo_count ?> photos, <?= $comment_count ?> comments, <?= $tag_count ?> tags)</i>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<? endif ?>
|
|
|
|
|
|
2009-03-16 03:50:57 +00:00
|
|
|
<div id="actions" class="activity">
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>Generate Test Data</legend>
|
2008-11-08 10:21:18 +00:00
|
|
|
<p>
|
|
|
|
|
add: [
|
2008-11-05 03:26:28 +00:00
|
|
|
<? foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
|
2009-02-05 08:39:12 +00:00
|
|
|
<?= html::anchor("scaffold/add_albums_and_photos/$count", "$count") ?>
|
2008-11-05 03:26:28 +00:00
|
|
|
<? endforeach ?>
|
2008-11-08 10:21:18 +00:00
|
|
|
] photos and albums
|
|
|
|
|
</p>
|
2008-11-29 22:47:15 +00:00
|
|
|
<p>
|
|
|
|
|
add: [
|
|
|
|
|
<? foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
|
2009-02-05 08:39:12 +00:00
|
|
|
<?= html::anchor("scaffold/add_albums_and_photos/$count/album", "$count") ?>
|
2008-11-29 22:47:15 +00:00
|
|
|
<? endforeach ?>
|
|
|
|
|
] albums only
|
|
|
|
|
</p>
|
2008-11-10 17:32:04 +00:00
|
|
|
<p>
|
|
|
|
|
add: [
|
|
|
|
|
<? foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
|
2009-02-05 08:39:12 +00:00
|
|
|
<?= html::anchor("scaffold/add_comments/$count", "$count") ?>
|
2008-11-10 17:32:04 +00:00
|
|
|
<? endforeach ?>
|
|
|
|
|
] comments
|
|
|
|
|
</p>
|
2008-11-24 05:03:52 +00:00
|
|
|
<p>
|
|
|
|
|
add: [
|
|
|
|
|
<? foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
|
2009-02-05 08:39:12 +00:00
|
|
|
<?= html::anchor("scaffold/add_tags/$count", "$count") ?>
|
2008-11-24 05:03:52 +00:00
|
|
|
<? endforeach ?>
|
|
|
|
|
] tags
|
|
|
|
|
</p>
|
2008-11-10 00:34:02 +00:00
|
|
|
</fieldset>
|
2009-01-19 05:16:55 +00:00
|
|
|
<fieldset>
|
|
|
|
|
<legend>Packaging</legend>
|
2009-02-05 08:39:12 +00:00
|
|
|
<a href="<?= url::site("scaffold/package") ?>">Make Package</a>
|
2009-01-19 05:16:55 +00:00
|
|
|
</fieldset>
|
2008-11-05 03:26:28 +00:00
|
|
|
</div>
|
2008-11-01 03:58:08 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|