1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
<html>
<head>
<title>Gallery3 Scaffold</title>
<style>
body {
background: #999;
font-family: Trebuchet MS;
}
div.outer {
width: 650px;
background: white;
border: 1px solid black;
margin: 0 auto;
padding: -10px;
}
div.inner {
padding: 0 1em 0 1em;
margin: 0px;
}
h1, h2, h3 {
margin-bottom: .1em;
}
p {
margin: 0 0 0 0;
padding-left: 1em;
}
table {
padding-left: 1em;
}
pre {
border: 1px solid #666;
margin: 1em 0;
padding: .5em;
overflow: scroll;
}
.error {
color: red;
}
.success {
color: green;
}
p.success {
font-weight: bold;
}
div.block {
padding: 0px;
margin: 0px;
}
ul {
margin-top: -.25em;
}
fieldset {
margin-left: 1em;
margin-bottom: 1em;
padding-bottom: 0;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a.allowed {
color: green;
font-size: 110%;
}
a.denied {
color: red;
font-size: 90%;
}
.gHide {
display: none;
}
div#browse {
border: 1px solid black;
background: #eee;
width: 450px;
padding: 2px;
margin: 5px 0px 0px 1em;
}
</style>
</head>
<body>
<div class="outer">
<center>
<img src="<?= url::file("core/images/gallery.png") ?>"/>
</center>
<div class="inner">
<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
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.
</p>
<? 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 ?>
<div id="actions" class="activity">
<fieldset>
<legend>Generate Test Data</legend>
<p>
add: [
<? foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
<?= html::anchor("scaffold/add_albums_and_photos/$count", "$count") ?>
<? endforeach ?>
] photos and albums
</p>
<p>
add: [
<? foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
<?= html::anchor("scaffold/add_albums_and_photos/$count/album", "$count") ?>
<? endforeach ?>
] albums only
</p>
<p>
add: [
<? foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
<?= html::anchor("scaffold/add_comments/$count", "$count") ?>
<? endforeach ?>
] comments
</p>
<p>
add: [
<? foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
<?= html::anchor("scaffold/add_tags/$count", "$count") ?>
<? endforeach ?>
] tags
</p>
</fieldset>
<fieldset>
<legend>Packaging</legend>
<a href="<?= url::site("scaffold/package") ?>">Make Package</a>
</fieldset>
</div>
</div>
</div>
</body>
</html>
|