/[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 149 - (show annotations) (download) (as text)
Fri Sep 23 06:34:51 2005 UTC (9 years, 1 month ago) by hadfield
File MIME type: application/vnd.groove-tool-template
File size: 3689 byte(s)
more adminpanel implementation. implemented the news db access module.
1 {INCLUDE header.tpl}
2
3 <form name="news" method="POST" action="adminpanel.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="5" class="standard_cell">
49 No News Announcements Found
50 </td>
51 </tr>
52 {ELSE}
53 <tr>
54 <td class="sub_header">ID</td>
55 <td class="sub_header">Subject</td>
56 <td class="sub_header">Created</td>
57 <td class="sub_header">Author</td>
58 <td class="sub_header" align="center">Delete</td>
59 </tr>
60 {!IF}
61
62 {LOOP NEWS_LOOP}
63 <tr>
64 <td class="standard_row_0"><a href="index.py?domain=admin&page=news&show_modify={NEWS_LOOP.news_id}">{NEWS_LOOP.news_id}</a></td>
65 <td class="standard_row_0">{NEWS_LOOP.news_subject}</td>
66 <td class="standard_row_0">{NEWS_LOOP.news_date}</td>
67 <td class="standard_row_0">{NEWS_LOOP.news_author_id}</td>
68 <td class="standard_row_0" align="center"><input type="checkbox" name="delete_btn" value="{NEWS_LOOP.news_id}" /></td>
69 </tr>
70 {!LOOP}
71
72 {IF len(NEWS_LOOP) > 0}
73 <tr>
74 <td class="standard_cell" colspan="9" align="right"><input type="submit" class="button" name="delete" value="Delete" />&nbsp;&nbsp;</td>
75 </tr>
76 {!IF}
77 </table>
78 {!IF}
79
80 {IF MODIFY_NEWS == 1}
81 <!-- The form to add a new announcement or modify an existing one -->
82 <input type="hidden" name="news_id" value="{NEWS_ID}" />
83 <table width="45%" class="standard_table">
84 <tr>
85 <td colspan="" class="header">
86 {* {IF NEWS_ID == "0"}
87 Add Announcement
88 {ELSE}
89 Modify Announcement
90 {!IF} *}
91 </td>
92 </tr>
93 <tr>
94 <td class="standard_cell">
95 <font class="instructional">Subject:</font><br />
96 <input type="text" class="text-long" name="subject" value="{SUBJECT}" />
97 </td>
98 </tr>
99 <tr>
100 <td class="standard_cell">
101 <font class="instructional">Announcement:</font><br />
102 <textarea rows="15" cols="50" class="text" name="body">{BODY}</textarea>
103 </td>
104 </tr>
105 <tr>
106 <td class="standard_cell">
107 <input type="submit" class="button" name="save" value="Save"/>
108 </td>
109 </tr>
110 </table>
111 {!IF}
112
113 </form>
114 {INCLUDE footer.tpl}

  ViewVC Help
Powered by ViewVC 1.1.20