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 (136 lines) | stat: -rw-r--r-- 4,385 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
<dtml-comment >  
<!-- version : $Revision: 1.6 $  
     author  : Butch Landingin   
       
  
     copyright (c) 1999 by Butch Landingin  
  
     see License.txt for restrictions on distribution, use   
     and modifications.  
  
  -->  
</dtml-comment>  
<dtml-var standard_html_header>  
<dtml-if "meta_type == 'Squishdot Site'">  
<H2>Post Article</H2>  
<dtml-else>  
<H2>Reply</H2>  
</dtml-if>  
<P>  
  
<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">  
  <INPUT TYPE="TEXT" NAME="title" VALUE="<dtml-if suggest_title><dtml-var suggest_title html_quote></dtml-if suggest_title>" SIZE="40">  
  </TD>  
</TR>  
<dtml-if "meta_type == 'Squishdot Site'">  
<TR>  
  <TD ALIGN="LEFT" VALIGN="TOP">  
  <STRONG>Subject</STRONG>  
  </TD>  
  <TD ALIGN="LEFT" VALIGN="TOP">  
<dtml-if has_subjects>  
  <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>  
<dtml-else>  
  <INPUT TYPE="TEXT" NAME="subject" VALUE="" SIZE="40">  
</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="" SIZE="40">  
  </TD>  
</TR>  
</dtml-if>  
<TR>  
  <TD ALIGN="LEFT" VALIGN="TOP">  
  <STRONG>Author</STRONG>  
  </TD>  
  <TD ALIGN="LEFT" VALIGN="TOP">  
  <INPUT TYPE="TEXT" NAME="author" VALUE="<dtml-if suggest_author><dtml-var suggest_author html_quote></dtml-if suggest_author>" SIZE="40">  
  </TD>  
</TR>  
<TR>  
  <TD ALIGN="LEFT" VALIGN="TOP">  
  <EM><STRONG>Email</STRONG></EM>  
  </TD>  
  <TD ALIGN="LEFT" VALIGN="TOP">  
  <INPUT TYPE="TEXT" NAME="email" VALUE="<dtml-if suggest_email><dtml-var suggest_email html_quote></dtml-if suggest_email>" SIZE="40">  
  </TD>  
</TR>  
<dtml-if mail_host>  
<TR>  
  <TD></TD>  
  <TD ALIGN="LEFT" VALIGN="TOP">  
  <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 mail_host>  
<dtml-if "meta_type == 'Squishdot Site'">  
<TR>  
  <TD ALIGN="LEFT" VALIGN="TOP"><STRONG>Summary</STRONG>  
  </TD>  
  <TD ALIGN="LEFT" VALIGN="TOP">  
<TEXTAREA NAME="summary" WRAP ROWS="5"   
                                      COLS="50"></TEXTAREA></TD>  
</TR>  
</dtml-if>  
<TR>  
  <TD ALIGN="LEFT" VALIGN="TOP"><STRONG>Text</STRONG>  
  </TD>  
  <TD ALIGN="LEFT" VALIGN="TOP">  
<TEXTAREA NAME="body" WRAP ROWS="14"   
                                   COLS="50"><dtml-if summary><dtml-if "meta_type=='Article'"><dtml-in summary><dtml-var "'> '+_['sequence-item']+'\n'" html_quote></dtml-in></dtml-if><dtml-if body><dtml-in body><dtml-var "'> '+_['sequence-item']+'\n'" html_quote></dtml-in></dtml-if></dtml-if></TEXTAREA>  
  </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']]" >  
      <dtml-comment>the above quoting means that encoding should default to Plain text</dtml-comment>
      <OPTION VALUE="<dtml-var "_.getitem('sequence-item',0)[0]" html_quote>" <dtml-if "'Plain'==_.getitem('sequence-item',0)[0]">SELECTED</dtml-if>>
      <dtml-var "_.getitem('sequence-item',0)[1]" html_quote>
      </OPTION>
    </dtml-in>
  </SELECT>
  </TD>       
</TR>       
<TR>  
  <TD ALIGN="LEFT" VALIGN="TOP">  
  <EM><STRONG>Attachment</STRONG></EM>  
  </TD>  
  <TD ALIGN="LEFT" VALIGN="TOP">  
  <INPUT TYPE="FILE" NAME="file" SIZE="25" VALUE="">  
  </TD>  
</TR>  
<TR>  
<TD></TD>  
<TD>  
<BR>  
<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>  
</TABLE>  
</FORM>  
<p><a href="http://squishdot.org"><img src="&dtml-site_url;/<dtml-var squishlogo>"  alt="Squishdot Powered" border=1 height=50 width=75></a>  
<dtml-var standard_html_footer>