File: addPostingForm.dtml

package info (click to toggle)
squishdot 1.3.0-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 896 kB
  • ctags: 349
  • sloc: python: 2,313; makefile: 56; sh: 54
file content (322 lines) | stat: -rw-r--r-- 14,703 bytes parent folder | download | duplicates (3)
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<dtml-comment >  
<!-- version : $Revision: 1.3 $  
     author  : Butch Landingin   
	    
  
     copyright (c) 1999 by Butch Landingin  
  
	  see License.txt for restrictions on distribution, use   
	  and modifications.  
  
  -->  
</dtml-comment>  
<dtml-var site_header>  
<TABLE width="99%" align=center cellpadding=0 cellspacing=0   
  border=0 bgcolor="<dtml-var color2>">  
	<TR>  
		<TD valign=top rowspan=5><FONT size=2><B><dtml-if leftbox_items>  
			<dtml-in leftbox_items>          
			&nbsp;<A href="<dtml-if relurl><dtml-var site_url ></dtml-if><dtml-var urlname url_quote>"><dtml-var name></A><BR>  
			</dtml-in>  
			<dtml-else>  
			&nbsp;<A href="<dtml-var site_url >/../index_html">up a level</A><BR>  
			&nbsp;<A href="<dtml-var site_url >/addPostingForm">post article</A><BR>  
			&nbsp;<A href="<dtml-var site_url >/searchForm">search</A><BR>  
			&nbsp;<A href="<dtml-var site_url >/manage">admin</A><BR>				  
			</dtml-if>  
			&nbsp;<A HREF="<dtml-var site_url >/index_html">main</A> <BR>  
			<dtml-if "meta_type == 'Comment'">  
			&nbsp;<A HREF="<dtml-var site_url ><dtml-var thread_path>/index_html#<dtml-var id>">parent</A> <BR>  
			<dtml-if "level > 1">  
			&nbsp;<A HREF="<dtml-var site_url >/<dtml-var expr="getThread(0)" >/index_html#<dtml-var id>">thread</A> <BR>  
			</dtml-if level>  
			</dtml-if meta_type>  
			</B></FONT><P><BR>   
			</TD>  
	<dtml-if "meta_type == 'Squishdot Site'"><!-- metatype is Squishdot Site -->  
		<TD valign=top align=left><FONT color="<dtml-var color1>"><TABLE width="99%"   
			 cellpadding=0 cellspacing=0 border=0>  
			<TR>  
				<TD valign=top bgcolor="<dtml-var color3>"><dtml-if round_edge><IMG src="Images/roundedge_img"   
    				 width=13 height=16 alt="" align=top><dtml-else>&nbsp;&nbsp;</dtml-if><FONT size=4   
	 				 color="<dtml-var color2>" face="arial,helvetica"><B>Post to <dtml-var site_name></B></FONT></TD>  
			<dtml-if drop_shadow>  
				<TD valign=bottom width=4><IMG align=bottom src="Images/rtshadow_img" width=4 height=18 alt=""></TD>  
				</TR>  
			<TR>  
				<TD background="Images/botshadow_img"><IMG src="Images/botshadow_img" width="1" height=4 alt=""></TD>  
				<TD width=4><IMG src="Images/rtbotshadow_img" width=4 alt="" height=4></TD>   
			</dtml-if>  
				</TR>  
			</TABLE>  
			<FORM ACTION="." ENCTYPE="multipart/form-data" METHOD="POST">   
				<P>Got a juicy nugget for the rest of the <dtml-var site_name> readers?     
				Fill out this form <dtml- if moderated>and it'll get whisked  
				away to a secret hiding place where our trained ninji (plural for ninja)  
				will frown at it, poke at it, and hopefully post it.   
				<dtml-else>and it will automagically get posted. </dtml-if>  
  
				<P><FONT color="<dtml-var color3>"><B>Your Name</B></FONT>  
				(<B>Required*</B>)<BR>  
				<INPUT TYPE="TEXT" NAME="author"   
				   VALUE="<dtml-if suggest_author><dtml-var suggest_author html_quote></dtml-if suggest_author>" SIZE=50>  
				<P><FONT color="<dtml-var color3>"><B>Your Email address</B></FONT>  
				(<dtml-if mail_host>Required if reply notification is checked<dtml-else>Optional</dtml-if>)<BR>  
				<INPUT TYPE="TEXT" NAME="email"   
				   VALUE="<dtml-if suggest_email><dtml-var suggest_email html_quote></dtml-if suggest_email>" SIZE=50>  
				<dtml-if mail_host>  
				<P><FONT color="<dtml-var color3>"><B>Reply Notification</B></FONT>  
				(Optional)<BR>  
  				<INPUT TYPE="CHECKBOX" NAME="notify" VALUE="1"<dtml-if suggest_notify> CHECKED</dtml-if suggest_notify>>  
  				<EM>Notify me via email of responses to this message</EM>  
				</dtml-if>  
				<P><FONT color="<dtml-var color3>"><B>Article Title</B></FONT>  
				(<B>Required*</B>)<BR>  
				<INPUT TYPE="TEXT" NAME="title"   
				  VALUE="<dtml-if suggest_title><dtml-var suggest_title html_quote></dtml-if suggest_title>" SIZE=50>  
				<BR><FONT size=2>(bad titles='Check This Out!' or 'An Article'.    
				Put in a descriptive but brief title so readers can figure out right away what it's all about.)</FONT>  
				<P><FONT color="<dtml-var color3>"><B>Topic Subject</B></FONT>  
				(<B>Required*</B>)<BR>  
				<dtml-if has_subjects>  
				<FONT bgcolor="<dtml-var color3>">  
				<SELECT NAME="subject">  
				<OPTION VALUE="" SELECTED>&nbsp;  
				<dtml-in subjects_list>  
				<OPTION VALUE="<dtml-var sequence-item html_quote>"><dtml-var sequence-item>  
				</dtml-in subjects_list>  
				</SELECT>  
				</FONT>  
				<BR><FONT size=2>(If your article does not seem to fit into any of the pre-defined categories,<BR>   
				contact your web administrator to add it in.)</FONT>  
				<dtml-else>  
				<INPUT TYPE="TEXT" NAME="subject" VALUE="" SIZE="40">  
				<BR><FONT size=2>(No topic subject categories have been set up.<BR>  
				Topic subject categories allow you to pick the appropriate topic from a pre-defined list.<BR>   
				Contact your web administrator if you want one (highly recommended).<BR>  
				Otherwise, put in a keyword that can be used for searching.)</FONT>  
				</dtml-if has_subjects>  
  
				<P><FONT color="<dtml-var color3>"><B>Dept.</B></FONT>  
				(Optional)<BR>  
				<INPUT TYPE="TEXT" NAME="dept" VALUE="" SIZE=50>  
				<BR><FONT size=2>(This should be a short, colorful or funny quip about the article   
				which will be displayed on the main page.<BR>  
				Examples would be <B>you-gotta-be-kidding dept.</B>   
				or <B>eat-your-broccolli-and-no-complaining-about-it dept.</B><BR>   
				Use your imagination (you got one, don't ya?)(<B>Note:</B> Don't type in the "dept." part.))</FONT>  
  
				<P><FONT color="<dtml-var color3>"><B>Lead Summary</B></FONT>  
				(<B>Required</B>)<BR>  
				<TEXTAREA wrap=virtual cols=50 rows=12   
				  NAME="summary"></TEXTAREA><BR>  
				<FONT size=2>(This is the text displayed in the main page.<BR>  
				If there are more than 3 or 4 paragraphs, put the rest into the body.)</FONT>  
  
				<P><FONT color="<dtml-var color3>"><B>Main Body</B></FONT>  
				(Optional)<BR>  
				<TEXTAREA wrap=virtual cols=50 rows=14   
				 NAME="body"></TEXTAREA><BR>  
				<FONT size=2>(This can be as long as you like.)</FONT>  
  
				<P><FONT color="<dtml-var color3>"><B>Encoding</B></FONT><BR>       
				  <SELECT NAME="encoding">       
				    <dtml-in "[['HTML','HTML'],['STX','Structured Text'],['Plain','Plain Text']]" >  
				      <OPTION VALUE="<dtml-var "_.getitem('sequence-item',0)[0]" html_quote>" <dtml-if "encoding==_.getitem('sequence-item',0)[0]">SELECTED</dtml-if>>
				      <dtml-var "_.getitem('sequence-item',0)[1]" html_quote>
				      </OPTION>
				    </dtml-in>
				  </SELECT>
				 <BR>
				 <FONT size=2>If none of the above mean anything to you, select 'Plain'!</FONT>

				<P><FONT color="<dtml-var color3>"><B>File Attachment</B></FONT>  
				(Optional)<BR>  
				<INPUT TYPE="FILE" NAME="file" SIZE="50" VALUE=""><BR>  
				<FONT size=2>(You can attach a file to your article which can then be retrieved by other readers.<BR>  
				Try to keep the file sizes below 500Kb in order to conserve network and server resources.)</FONT>  
				<P>Allowed HTML<BR>  
				<FONT size=1>  
								&lt;B&gt;   
								&lt;I&gt;   
								&lt;P&gt;   
								&lt;A&gt;   
								&lt;LI&gt;   
								&lt;OL&gt;   
								&lt;UL&gt;   
								&lt;EM&gt;   
								&lt;BR&gt;   
								&lt;TT&gt;   
								&lt;HR&gt;   
								&lt;STRONG&gt;   
								&lt;BLOCKQUOTE&gt;   
								&lt;DIV .*&gt;   
								&lt;DIV&gt;   
								&lt;P .*&gt; </FONT>  
			   </P>  
				<P><INPUT NAME="addPosting:method" TYPE="SUBMIT" VALUE=" Add ">  
				<INPUT NAME="previewPosting:method" TYPE="SUBMIT" VALUE=" Preview ">  
				<INPUT NAME="index_html:method" TYPE="SUBMIT" VALUE="Cancel">  
				</FORM><P><P>		  
			</FONT></TD>  
	<dtml-else><!-- metatype is not Squishdot Site -->  
	<dtml-if "meta_type == 'Article'">  
	<!--mark demarcation2-->  
		<TD width=auto colspan=1 valign=top align=left><FONT color="<dtml-var color1>"><TABLE width="99%"   
			 cellpadding=0 cellspacing=0 border=0>  
			<TR>  
				<TD valign=top bgcolor="<dtml-var color3>"><dtml-if round_edge><IMG   
				    src="<dtml-var site_url >/Images/roundedge_img"   
    				 width=13 height=16 alt="" align=top><dtml-else>&nbsp;&nbsp;</dtml-if><FONT size=4   
    				 color="<dtml-var color2>" face="arial,helvetica"><B><dtml-var title></B></FONT></TD>  
			<dtml-if drop_shadow>  
				<TD valign=bottom width=4><IMG align=bottom src="<dtml-var site_url >/Images/rtshadow_img"   
				    width=4 height=18 alt=""></TD>  
				</TR>  
			<TR>  
				<TD background="<dtml-var site_url >/Images/botshadow_img"><IMG src="<dtml-var site_url >/Images/botshadow_img"   
					 width="1" height=4 alt=""></TD>  
				<TD width=4><IMG src="<dtml-var site_url >/Images/rtbotshadow_img" width=4 alt="" height=4></TD>  
			</dtml-if>   
				</TR>  
			</TABLE></FONT>  
  
			<dtml-if "subject_image(subject)"><A href="<dtml-var site_url >/search?subject=<dtml-var subject url_quote>&op=articles"><IMG   
			   src="<dtml-var site_url >/<dtml-var "subject_image(subject)" url_quote>"   
 				border=0 alt="<dtml-var subject>" align=right hspace=20 vspace=10></A></dtml-if>   
			<B>Posted by <A href="mailto:<dtml-var email >"><dtml-var author></A> on <dtml-var date_posted></B><BR>  
			<FONT size=2><B>from the <dtml-var dept> dept.</B></FONT><BR>  
			<dtml-var showSummary>  
                        <P>
			<dtml-var showBody>  
			<P><P>  
		<TABLE width="99%" cellpadding=0 cellspacing=0 border=0>  
			<TR>  
				<TD valign=top bgcolor="<dtml-var color3>"><dtml-if round_edge><IMG src="Images/roundedge_img"   
    				 width=13 height=16 alt="" align=top><dtml-else>&nbsp;&nbsp;</dtml-if><FONT size=4   
	 				 color="<dtml-var color2>" face="arial,helvetica"><B>Post Reply</B></FONT></TD>  
			<dtml-if drop_shadow>  
				<TD valign=bottom width=4><IMG align=bottom src="Images/rtshadow_img" width=4 height=18 alt=""></TD>  
				</TR>  
			<TR>  
				<TD background="Images/botshadow_img"><IMG src="Images/botshadow_img" width="1" height=4 alt=""></TD>  
				<TD width=4><IMG src="Images/rtbotshadow_img" width=4 alt="" height=4></TD>   
			</dtml-if>  
				</TR>  
			</TABLE>  
	<dtml-else>  
	<!--mark demarcation3-->  
		<TD width=auto colspan=1 valign=top align=left><TABLE width="99%" cellpadding=5 cellspacing=0 border=0>    
			<TR>  
				<TD bgcolor="<dtml-var color4>"><A name="<dtml-var id>"><B><dtml-var title></B></A> <BR>  
					by <dtml-var author> on <dtml-var date_posted> <BR>    
					</TD>  
				</TR>   
			<TR>   
				<TD><dtml-var showBody></TD>   
				</TR>  
			<TR>  
				<TD bgcolor="<dtml-var color4>"><B>Post Reply </B> </TD>  
				</TR>   
			</TABLE>  
			<P><P>  
	</dtml-if >  
			<FORM ACTION="." ENCTYPE="multipart/form-data" METHOD="POST">   
				<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=1>  
					<TR>  
						<TD WIDTH=130 ALIGN=RIGHT><B>Name</B></TD>  
						<TD WIDTH=500><INPUT TYPE="TEXT" NAME="author"   
  							 VALUE="<dtml-if suggest_author><dtml-var suggest_author html_quote></dtml-if suggest_author>"   
							 SIZE=50></TD>  
						</TR>  
					<TR>  
						<TD ALIGN=RIGHT>Email</TD><TD><INPUT TYPE="TEXT" NAME="email"   
    						 VALUE="<dtml-if suggest_email><dtml-var suggest_email html_quote></dtml-if suggest_email>"   
							 SIZE=50></TD>  
						</TR>  
				<dtml-if mail_host>  
					<TR>  
						<TD ALIGN=RIGHT>Notify</TD><TD><INPUT TYPE="CHECKBOX" NAME="notify"   
    						 VALUE="1"<dtml-if suggest_notify> CHECKED</dtml-if suggest_notify>>  
  							 <EM>Notify me via email of responses to this message</EM></TD>  
						</TR>  
				</dtml-if>  
					<TR>  
						<TD ALIGN=RIGHT><B>Title</B></TD><TD><INPUT TYPE="TEXT" NAME="title"   
  							 VALUE="<dtml-if suggest_title><dtml-var suggest_title html_quote></dtml-if suggest_title>"   
							 MAXLENGTH=50 SIZE=50></TD>  
						</TR>  
					<TR>  
						<TD ALIGN=RIGHT VALIGN=TOP><B>Comment</B></TD>  
						<TD><TEXTAREA wrap=virtual cols=50 rows=14   
							 NAME="body"></TEXTAREA>  
							<BR><FONT size=2>(Check those URLs! Don't forget the http://!)</FONT></TD>  
						</TR>  
					<TR>       
						<TD ALIGN="LEFT" VALIGN="TOP"><STRONG>Encoding</STRONG>       
					        </TD>       
					        <TD ALIGN="LEFT" VALIGN="TOP">       
						  <SELECT NAME="encoding">       
						    <dtml-in "[['HTML','HTML'],['STX','Structured Text'],['Plain','Plain Text']]" >  
						      <OPTION VALUE="<dtml-var "_.getitem('sequence-item',0)[0]" html_quote>" <dtml-if "encoding==_.getitem('sequence-item',0)[0]">SELECTED</dtml-if>>
						      <dtml-var "_.getitem('sequence-item',0)[1]" html_quote>
						      </OPTION>
						    </dtml-in>
						  </SELECT>
						  <BR>
						  <small>If none of the above mean anything to you, select 'Plain'!</small>
						</TD>       
					</TR>       
					<TR>  
						<TD ALIGN=RIGHT VALIGN=TOP>Attachment</TD>  
						<TD><INPUT TYPE="FILE" NAME="file" SIZE="50" VALUE="">  
							<BR><FONT size=2>(You can attach a file to your reply   
							which can then be retrieved by other readers.<BR>  
							Try to keep the file sizes below 500Kb in order to   
							conserve network and server resources.)</FONT></TD>  
						</TR>  
					<TR>  
						<TD> </TD>  
						<TD>  
							<INPUT NAME="addPosting:method" TYPE="SUBMIT" VALUE=" Add ">  
				                        <INPUT NAME="previewPosting:method" TYPE="SUBMIT" VALUE=" Preview ">  
							<INPUT NAME="index_html:method" TYPE="SUBMIT" VALUE="Cancel"></TD>  
						</TR>  
					<TR>  
						<TD valign=top align=right>Allowed HTML</TD>  
						<TD><FONT size=1>  
								&lt;B&gt;   
								&lt;I&gt;   
								&lt;P&gt;   
								&lt;A&gt;   
								&lt;LI&gt;   
								&lt;OL&gt;   
								&lt;UL&gt;   
								&lt;EM&gt;   
								&lt;BR&gt;   
								&lt;TT&gt;   
								&lt;HR&gt;   
								&lt;STRONG&gt;   
								&lt;BLOCKQUOTE&gt;   
								&lt;DIV .*&gt;   
								&lt;DIV&gt;   
								&lt;P .*&gt; </FONT>  
							</TD>  
						</TR>  
					</TABLE>  
				</FORM>  
 			<B>Important Stuff:</B>  
      	<LI><B>Note:</B> Fields with bold titles are required.  
			<LI>Please try to keep posts on topic.  
			<LI>Try to reply to other people comments instead of starting new threads,   
      	<LI>Read other people's messages before posting your own to  
 		    	 avoid simply duplicating what has already been said.   
			<LI>Use a clear subject that describes what your   
		    	 message is about.  
  	   	<LI>Please do not post offtopic, inflammatory, inappropriate, illegal,  
		    	 or offensive comments. Repeat offenders will be sanctioned.  
			</TD>  
</dtml-if>  
		</TR>  
	</TABLE>  
<dtml-var site_footer>