/[glsr]/trunk/templates/gentoo/admin/news.tpl
Gentoo

Contents of /trunk/templates/gentoo/admin/news.tpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 151 - (show annotations) (download) (as text)
Sun Sep 25 00:55:24 2005 UTC (9 years, 2 months ago) by hadfield
File MIME type: application/vnd.groove-tool-template
File size: 3767 byte(s)
moved the adminpanel into it's own folder
1 {INCLUDE header.tpl}
2
3 <form name="news" method="POST" action="admin/panel.py">
4 <input type="hidden" name="page" value="news" />
5
6 <table width="80%" class="standard_table">
7 <tr>
8 <td colspan="2" class="header">
9 News/Announcements
10 </td>
11 </tr>
12
13 <tr>
14 <td colspan="2" height="40" valign="middle" class="standard_cell">
15 <table border="0" cellspacing="0" cellpadding="0">
16 <tr>
17
18 <td height="40" valign="center" class="">&nbsp;&nbsp;
19
20 {IF SHOW_NEWS == 0}
21 <input type="submit" class="button" name="show_news" value="List All Announcements" />
22 {ELSE}
23 <input type="submit" class="button" name="hide_news" value="Hide Announcement List" />
24 {!IF}
25 </td>
26
27 <td height="40" valign="center" class="">&nbsp;&nbsp;
28 <input type="submit" class="button" name="show_add" value="Make Announcement" />
29 </td>
30 </tr>
31 </table>
32 </td>
33 </tr>
34 </table>
35
36 <br />
37
38 {IF SHOW_NEWS == 1}
39
40 <!-- Listing of all announcements in the system -->
41 <table width="90%" class="standard_table">
42 <tr>
43 <td colspan="9" class="header">Announcement Listing</td>
44 </tr>
45
46 {IF len(NEWS_LOOP) == "0"}
47 <tr>
48 <td colspan="4" class="standard_cell">
49 No News Announcements Found
50 </td>
51 </tr>
52 {ELSE}
53 <tr>
54 <td class="sub_header">Subject</td>
55 <td class="sub_header">Created</td>
56 <td class="sub_header">Author</td>
57 <td class="sub_header" align="center">Delete</td>
58 </tr>
59 {!IF}
60
61 {LOOP NEWS_LOOP}
62 <tr>
63 <td class="std_row_{is_odd(iterator(NEWS_LOOP))}"><a href="{GLSR_URL}/admin/panel.py?page=news&news_id={NEWS_LOOP.news_id}&modify=modify">{NEWS_LOOP.news_subject}</a></td>
64 <td class="std_row_{is_odd(iterator(NEWS_LOOP))}">{NEWS_LOOP.news_date}</td>
65 <td class="std_row_{is_odd(iterator(NEWS_LOOP))}"><a href="{GLSR_URL}/profile.py?page=view&uid={NEWS_LOOP.news_author_id}">{NEWS_LOOP.news_author}</a></td>
66 <td class="std_row_{is_odd(iterator(NEWS_LOOP))}" align="center"><input type="checkbox" name="delete_btn" value="{NEWS_LOOP.news_id}" /></td>
67 </tr>
68 {!LOOP}
69
70 {IF len(NEWS_LOOP) > 0}
71 <tr>
72 <td class="standard_cell" colspan="5" align="right"><input type="submit" class="button" name="delete" value="Delete" />&nbsp;&nbsp;</td>
73 </tr>
74 {!IF}
75 </table>
76 {!IF}
77
78 {IF MODIFY_NEWS == 1}
79 <!-- The form to add a new announcement or modify an existing one -->
80 <input type="hidden" name="news_id" value="{NEWS_ID}" />
81 <table width="45%" class="standard_table">
82 <tr>
83 <td colspan="" class="header">
84 {* {IF NEWS_ID == "0"}
85 Add Announcement
86 {ELSE}
87 Modify Announcement
88 {!IF} *}
89 </td>
90 </tr>
91 <tr>
92 <td class="standard_cell">
93 <font class="instructional">Subject:</font><br />
94 <input type="text" class="text-long" name="subject" value="{SUBJECT}" />
95 </td>
96 </tr>
97 <tr>
98 <td class="standard_cell">
99 <font class="instructional">Announcement:</font><br />
100 <textarea rows="15" cols="50" class="text" name="body">{BODY}</textarea>
101 </td>
102 </tr>
103 <tr>
104 <td class="standard_cell">
105 <input type="submit" class="button" name="save" value="Save"/>
106 </td>
107 </tr>
108 </table>
109 {!IF}
110
111 </form>
112 {INCLUDE footer.tpl}

  ViewVC Help
Powered by ViewVC 1.1.20