Commit | Line | Data |
---|---|---|
f5d30ab9 TC |
1 | <html> |
2 | <head> | |
3 | ||
4 | <title> | |
5 | Administration - <: ifnew :>New<: or :>Edit<: eif :> <:articleType:> | |
6 | </title> | |
7 | ||
8 | <link rel="stylesheet" type="text/css" href="/css/admin.css"> | |
9 | ||
10 | </head> | |
11 | ||
12 | <body> | |
13 | ||
14 | <input type="button" onclick="history.go(0);" value=" Refresh "> | |
15 | ||
16 | <h1>Administration Page</h1> | |
17 | ||
18 | <h2>Select Images First</h2> | |
19 | ||
20 | <p><form method="POST" action="<:script:>" enctype="multipart/form-data"> | |
21 | ||
22 | <!--input type="hidden" name="return_url" value="<:script:>?level=<: level :>&id=<:article id:>" --> | |
23 | ||
24 | <p> | |
25 | <input type="submit" name="artimg" value="<:articleType:> Image Wizard"> | |
26 | </p> | |
27 | ||
28 | ||
29 | <h2><:articleType:> Details</h2> | |
30 | ||
31 | <p><:ifnew:><:or:><a href="<:article admin:>">See article</a><:eif:></p> | |
32 | <:editParent:> | |
33 | <:message:> | |
34 | ||
35 | <input type="hidden" name="level" value="<: level :>"> | |
36 | <input type="hidden" name="id" value="<: article id :>"> | |
37 | <input type="hidden" name="parentid" value="-1"> | |
38 | ||
39 | <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000"> | |
40 | <tr> | |
41 | <td> | |
42 | ||
43 | <table cellpadding="6" border="0" cellspacing="1"> | |
44 | ||
45 | <tr> | |
46 | <th> <:articleType:> Title: </th> | |
47 | <td bgcolor="#FFFFFF"> | |
48 | <input type="text" name="title" maxlength="64" size="64" value="<: article title :>"> | |
49 | </td> | |
50 | </tr> | |
51 | <tr> | |
52 | <th> Title Image: </th> | |
53 | <td bgcolor="#FFFFFF"> <:titleImages:> (upload this to the /images/titles | |
54 | directory) </td> | |
55 | </tr> | |
56 | <tr> | |
57 | <th> Template: </th> | |
58 | <td bgcolor="#FFFFFF"> | |
59 | <:templates:> | |
60 | </td> | |
61 | </tr> | |
62 | <tr> | |
63 | <th valign="top"> Body: </th> | |
64 | <td bgcolor="#FFFFFF"> | |
65 | <textarea name="body" rows="10" cols="60" wrap="virtual"><: article body :></textarea> | |
66 | </td> | |
67 | </tr> | |
68 | <tr> | |
69 | <th> Release Date (in dd/mm/yyyy format): </th> | |
70 | <td bgcolor="#FFFFFF"> | |
71 | <input type="text" name="release" value="<: article release :>" size="10" maxlength="10"> | |
72 | <: ifnew :>(default is today)<: or :><: eif :></td> | |
73 | </tr> | |
74 | <tr> | |
75 | <th> Expire Date (in dd/mm/yyyy format): </th> | |
76 | <td bgcolor="#FFFFFF"> | |
77 | <input type="text" name="expire" value="<: article expire :>" size="10" maxlength="10"> | |
78 | (<: ifnew :>default is two weeks from now, <: or :><: eif :>blank | |
79 | for never expires)</td> | |
80 | </tr> | |
81 | <tr> | |
82 | <th> Summary Length (in characters): </th> | |
83 | <td bgcolor="#FFFFFF"> | |
84 | <input type="text" name="summaryLength" size="10" maxlength="10" value="<: article summaryLength :>"> | |
85 | (<: ifnew :>default inherited from section<: if art :> or sub-section<: | |
86 | or art :><: eif art :>, <: or :><: eif :>zero for full listing in | |
87 | summary)</td> | |
88 | </tr> | |
89 | <tr> | |
90 | <th> Display threshold: </th> | |
91 | <td bgcolor="#FFFFFF"> | |
92 | <input type="text" name="threshold" size="10" maxlength="10" value="<: article threshold :>"> | |
93 | </td> | |
94 | </tr> | |
95 | <tr> | |
96 | <th> Keywords (optional, comma separated): </th> | |
97 | <td bgcolor="#FFFFFF"> | |
98 | <input type="text" name="keyword" maxlength="255" size="60" value="<: article keyword :>"> | |
99 | </td> | |
100 | </tr> | |
101 | <tr> | |
102 | <th>List article:</th> | |
103 | <td bgcolor="#FFFFFF"> <!-- input type="checkbox" name="listed" value=1 <:checked article listed 1:> --> | |
104 | <:list listed:> </td> | |
105 | </tr> | |
106 | <tr> | |
107 | <th>Thumbnails:</th> | |
108 | <td bgcolor="#FFFFFF"> | |
109 | <input type=file name=thumbnail> | |
110 | <:ifArticle thumbImage:><img src="/images/<:article thumbImage:>"> <input type=checkbox name="remove_thumb"> Remove<:or:><:eif:></td> | |
111 | </tr> | |
112 | <tr> | |
113 | <th valign="top"> Uploaded files: </th> | |
114 | <td align="center" bgcolor="#FFFFFF"> <: iterator begin images :> <img src="/images/<: image image :>" alt="<:image alt :>" width= <:image width:> height=<:image height:>> <: iterator separator images | |
115 | :> | |
116 | <hr noshade size="1"> | |
117 | <: iterator end images :> <br> | |
118 | </table> | |
119 | </td> | |
120 | </tr> | |
121 | </table> | |
122 | ||
123 | <p> | |
124 | <input type="submit" name="save" | |
125 | value=" <: ifnew :>Add New<: or :>Update<: eif :> <: articleType:> "></p> | |
126 | </form> | |
127 | <:if children:> <a name="children"> | |
128 | <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000"> | |
129 | <tr> | |
130 | <td> | |
131 | <table border=0 cellpadding="6" cellspacing="1"> | |
132 | <tr><th>Title</th><th>Summary</th><th>Listed</th><th> </th></tr> | |
133 | <:iterator begin children:> | |
134 | <tr bgcolor="#FFFFFF"> | |
135 | <td><a href="<:child admin:>"><:child title:></a></td> | |
136 | <td><: summary child body :></td> | |
137 | <td align="center"><: is child listed :></td> | |
138 | <td nowrap> <a href="/cgi-bin/admin/add.pl?id=<:child id:>">Edit</a> | |
139 | <:if NextChild:> <a href="/cgi-bin/admin/move.pl?id=<:child id:>&d=down&edit=1&all=1"> | |
140 | <img src="/images/admin/move_down.gif" width="17" height="13" alt="Move Down" border="0"></a> | |
141 | <:or NextChild:> <:eif NextChild:> <:if PrevChild:> <a href="/cgi-bin/admin/move.pl?id=<:child id:>&d=up&edit=1&all=1"> | |
142 | <img src="/images/admin/move_up.gif" width="17" height="13" alt="Move Up" border="0"></a> | |
143 | <:or PrevChild:> <:eif PrevChild:> | |
144 | <form action="<:script:>" onSubmit="return window.confirm('Are you sure you want to delete this article')" method=POST><input type=hidden name=id value="<:article id:>"><input type=hidden name="deleteid" value="<:child id:>"><input type=submit name=remove value="Delete"></form></td> | |
145 | </tr> | |
146 | <:iterator separator children:> | |
147 | <:iterator end children:> | |
148 | </table> | |
149 | </td> | |
150 | </tr> | |
151 | </table> | |
152 | <:or children:> | |
153 | <:eif children:> | |
154 | <:if HaveChildType:> | |
155 | <:if new:> | |
156 | <:or new:> | |
157 | <form action="/cgi-bin/admin/add.pl" method="POST"> | |
158 | <input type=hidden name="parentid" value="<:article id:>"> | |
159 | <p><input type=submit value="Add <:childtype:>"></p> | |
160 | </form> | |
161 | <p><:eif new:> <:or HaveChildType:> <:eif HaveChildType:> </p> | |
162 | <p><a href="/admin/">Admin menu</a></p> | |
163 | </body | |
164 | ></html> |