File: editPostingForm.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 (202 lines) | stat: -rw-r--r-- 7,441 bytes parent folder | download
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
<dtml-comment >       
$Id: editPostingForm.dtml,v 1.6 2001/08/19 19:34:08 fresh Exp $
</dtml-comment>       
<HTML>       
<HEAD>       
<TITLE><dtml-var title></TITLE>       
</HEAD>       
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">       
       
Edit this message using the form below.       
       
<FORM ACTION="." ENCTYPE="multipart/form-data" METHOD="POST">       
<TABLE CELLSPACING="2">       
<TR>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
  <STRONG>Title</STRONG>       
  </TD>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
  <dtml-if "REQUEST.has_key('title')" >  
       <INPUT TYPE="TEXT" NAME="title" VALUE="<dtml-var "REQUEST['title']" html_quote>" SIZE="40">  
  <dtml-else>  
       <INPUT TYPE="TEXT" NAME="title" VALUE="<dtml-var title html_quote>" SIZE="40">       
  </dtml-if>  
  </TD>       
</TR>       
<dtml-if "meta_type == 'Article'">       
<TR>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
  <STRONG>Subject</STRONG>       
  </TD>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
<dtml-if has_subjects>       
  <SELECT NAME="subject">       
  <dtml-if "REQUEST.has_key('subject')" >  
     <dtml-if "REQUEST['subject']" >  
     <OPTION VALUE="">&nbsp;       
     <dtml-else>  
     <OPTION VALUE="" SELECTED>&nbsp;  
     </dtml-if>     
  <dtml-else>  
  <OPTION VALUE="">&nbsp;       
  </dtml-if>  
  <dtml-in subjects_list>       
  <dtml-if "REQUEST.has_key('subject')" >  
     <dtml-if "_['sequence-item'] == REQUEST['subject']">       
     <OPTION VALUE="<dtml-var sequence-item html_quote>" SELECTED><dtml-var sequence-item>       
     <dtml-else>       
     <OPTION VALUE="<dtml-var sequence-item html_quote>"><dtml-var sequence-item>       
     </dtml-if>  
  <dtml-else>  
     <dtml-if "_['sequence-item'] == subject">       
     <OPTION VALUE="<dtml-var sequence-item html_quote>" SELECTED><dtml-var sequence-item>       
     <dtml-else>       
     <OPTION VALUE="<dtml-var sequence-item html_quote>"><dtml-var sequence-item>       
     </dtml-if>  
  </dtml-if>     
  </dtml-in subjects_list>       
  </SELECT>       
<dtml-else>       
  <dtml-if "REQUEST.has_key('title')" >  
  <INPUT TYPE="TEXT" NAME="subject" VALUE="<dtml-var "REQUEST['subject']" html_quote>" SIZE="40">  
  <dtml-else>  
  <INPUT TYPE="TEXT" NAME="subject" VALUE="<dtml-var subject html_quote>" SIZE="40">       
  </dtml-if>  
</dtml-if has_subjects>       
  </TD>       
</TR>       
<TR>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
  <STRONG>Dept</STRONG>       
  </TD>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
  <INPUT TYPE="TEXT" NAME="dept" VALUE="<dtml-var dept html_quote>" SIZE="40">       
  </TD>       
</TR>       
</dtml-if>       
<TR>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
  <STRONG>Author</STRONG>       
  </TD>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
  <dtml-if "REQUEST.has_key('author')">  
  <INPUT TYPE="TEXT" NAME="author" VALUE="<dtml-var "REQUEST['author']" html_quote>" SIZE="40">       
  <dtml-else>  
  <INPUT TYPE="TEXT" NAME="author" VALUE="<dtml-var author html_quote>" SIZE="40">       
  </dtml-if>  
  </TD>       
</TR>       
<TR>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
  <EM><STRONG>Email</STRONG></EM>       
  </TD>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
  <dtml-if "REQUEST.has_key('email')">  
  <INPUT TYPE="TEXT" NAME="email" VALUE="<dtml-var "REQUEST['email']" html_quote>" SIZE="40">       
  <dtml-else>  
  <INPUT TYPE="TEXT" NAME="email" VALUE="<dtml-var email html_quote>" SIZE="40">       
  </dtml-if>  
  </TD>       
</TR>       
<dtml-if mail_host>       
<TR>       
  <TD></TD>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
  <dtml-if "REQUEST.has_key('notify')">  
  <INPUT TYPE="CHECKBOX" NAME="notify" VALUE="1"<dtml-if "REQUEST['notify']"> CHECKED</dtml-if>>       
  <dtml-else>  
  <INPUT TYPE="CHECKBOX" NAME="notify" VALUE="1"<dtml-if notify> CHECKED</dtml-if notify>>       
  </dtml-if>  
  <EM>Notify author via email of responses to this message</EM>       
  </TD>       
</TR>       
</dtml-if mail_host>       
       
<dtml-if "(moderated and meta_type =='Article') or (mod_comment and meta_type=='Comment')">       
<dtml-if "not reviewed">       
<TR>       
  <TD></TD>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
  <INPUT TYPE="CHECKBOX" NAME="reviewed" VALUE="1">       
  <EM>This item has been reviewed</EM>       
  </TD>       
</TR>       
</dtml-if>       
</dtml-if>       
<dtml-if "meta_type == 'Article'">       
<TR>       
  <TD ALIGN="LEFT" VALIGN="TOP"><STRONG>Summary</STRONG>       
  </TD>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
<dtml-if "REQUEST.has_key('summary')">  
<TEXTAREA NAME="summary" WRAP ROWS="5" COLS="50"><dtml-if "REQUEST['summary']"><dtml-var "REQUEST['summary']" html_quote newline_to_br></dtml-if></TEXTAREA>       
<dtml-else>  
<TEXTAREA NAME="summary" WRAP ROWS="5" COLS="50"><dtml-if summary><dtml-in summary><dtml-var "_['sequence-item']+'\n'" html_quote></dtml-in summary></dtml-if summary></TEXTAREA>       
</dtml-if>       
  </TD>       
</TR>       
</dtml-if>       
       
<TR>       
  <TD ALIGN="LEFT" VALIGN="TOP"><STRONG>Text</STRONG>       
  </TD>       
  <TD ALIGN="LEFT" VALIGN="TOP">       
<dtml-if "REQUEST.has_key('body')">  
<TEXTAREA NAME="body" WRAP ROWS="5" COLS="50"><dtml-if "REQUEST['body']"><dtml-var "REQUEST['body']" html_quote newline_to_br></dtml-if></TEXTAREA>       
<dtml-else>  
<TEXTAREA NAME="body" WRAP ROWS="14" COLS="50"><dtml-if body><dtml-in body><dtml-var "_['sequence-item']+'\n'" html_quote></dtml-in body></dtml-if body></TEXTAREA>       
</dtml-if>       
  </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>
  </TD>       
</TR>       
<dtml-if attachment>       
<TR>       
<TD ALIGN="LEFT" VALIGN="TOP"><STRONG>Attachment</STRONG></TD>       
<TD>       
<dtml-in attachment>       
<A HREF="<dtml-var site_url ><dtml-var thread_path url_quote>/<dtml-var id url_quote>/<dtml-var file_name url_quote>">       
<IMG SRC="&dtml-site_url;/<dtml-var icon url_quote>" HEIGHT="16       
 WIDTH="16" BORDER="0" ALT="Click to download attachment"></A>         
<A HREF="<dtml-var site_url ><dtml-var thread_path url_quote>/<dtml-var id url_quote>/<dtml-var file_name url_quote>"><dtml-var file_name></A><BR>        
<dtml-var file_kbytes>KB (<dtml-var file_bytes> bytes)<BR>  
</dtml-in attachment>
</TD>
</TR>       
<TR>
<TD></TD>
<TD><INPUT TYPE="CHECKBOX" NAME="delete_attachment"> Delete attachment and replace with: <INPUT TYPE="FILE" NAME="new_attachment"></TD>
</TR>
<dtml-else>
<TR>
<TD></TD>
<TD>Add attachment: <INPUT TYPE="FILE" NAME="new_attachment"></TD>
</TR>
</dtml-if>       
       
</TR>       
<TR>       
<TD></TD>       
<TD>
	<BR>
	<INPUT TYPE="SUBMIT" NAME="edit:method" VALUE="Change"> 
        <INPUT TYPE="SUBMIT" NAME="../previewPosting:method" VALUE=" Preview ">
</TD>       
</TR>       
</TABLE>       
</FORM>       
</BODY>       
</HTML>