File: pcalw.html

package info (click to toggle)
pcal 4.7-8woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 680 kB
  • ctags: 950
  • sloc: ansic: 6,811; csh: 245; makefile: 137; sh: 57
file content (117 lines) | stat: -rw-r--r-- 3,531 bytes parent folder | download | duplicates (2)
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
<HTML>
<!--

	HTML front end to generate single-year calendar using pcal; allows
	user to select the most common options by means of menus, input
	forms, and radio buttons

	Requires pcal.cgi (Bourne shell script to decode query string
	generated here and execute pcal with selected options), typically
	in the cgi-bin directory; edit the "ACTION" field in the <FORM>
	entry to point to it

-->
<HEAD>
<TITLE>pcal v4.6 (single-year mode)</TITLE>
</HEAD>
<BODY>
<H2 ALIGN=CENTER>Generate single-page PostScript calendar for entire year</H2>

                       <!-- start of form -->

<FORM ACTION="http://yourpath/pcal.cgi" METHOD=GET>

<INPUT TYPE=HIDDEN NAME=wflag VALUE="-w">	<!-- silently set -w flag -->

<!-- input form for selected year -->

<!--

     If you felt ambitious, you could write a simple .cgi script to edit
     this boilerplate on the fly, filling in the current year as the
     default.  It might look something like this:

	#!/bin/sh
	#
	# QUERY_STRING contains absolute path to raw .html boilerplate
	
	echo "Content-type: text/html"		# magic header
	echo ""
	sed -e '/NAME=year/s/VALUE=""/VALUE="'`date +%Y`'"/' $QUERY_STRING
	exit 0

    ... and would be invoked as <a href=path_to_script?path_to_html>...</a>
	(or <a href=path_to_script/path_to_html>...</a>, in which case
	QUERY_STRING should be replaced with PATH_TRANSLATED)

-->
<B><FONT SIZE=+1>Year:</FONT></B>
<INPUT NAME=year SIZE=4 VALUE="" MAXLENGTH=4>
<P>

<!-- radio buttons to select orientation -->

<B>Orientation:</B>
<INPUT TYPE=RADIO NAME=mode VALUE="-l" CHECKED> landscape
<INPUT TYPE=RADIO NAME=mode VALUE="-p"> portrait
<BR>

<!-- radio buttons to select language -->

<B>Language:</B>
<INPUT TYPE=RADIO NAME=lang VALUE="-aen" CHECKED> English
<INPUT TYPE=RADIO NAME=lang VALUE="-aeo"> Esperanto
<INPUT TYPE=RADIO NAME=lang VALUE="-afr"> French
<INPUT TYPE=RADIO NAME=lang VALUE="-ade"> German
<INPUT TYPE=RADIO NAME=lang VALUE="-ait"> Italian
<INPUT TYPE=RADIO NAME=lang VALUE="-aes"> Spanish
<BR>

<!-- radio buttons to select font -->

<B>Font:</B>
<INPUT TYPE=RADIO NAME=font VALUE="AvantGarde-Book"> Avant-Garde
<INPUT TYPE=RADIO NAME=font VALUE="Helvetica-Bold" CHECKED> Helvetica
<INPUT TYPE=RADIO NAME=font VALUE="Palatino-Bold"> Palatino
<INPUT TYPE=RADIO NAME=font VALUE="Times-Bold"> Times
<P>

<!-- radio buttons to select default, holiday and Saturday/Sunday styles -->

<B>Default day style:</B>
<INPUT TYPE=RADIO NAME=dstyle VALUE="-g"> gray
<INPUT TYPE=RADIO NAME=dstyle VALUE="-b" CHECKED> black
<INPUT TYPE=RADIO NAME=dstyle VALUE="-O"> outline
<INPUT TYPE=RADIO NAME=dstyle VALUE="-G"> filled outline
<BR>

<B>Sat/Sun style:</B>
<INPUT TYPE=RADIO NAME=wstyle VALUE="-g" CHECKED> gray
<INPUT TYPE=RADIO NAME=wstyle VALUE="-b"> black
<INPUT TYPE=RADIO NAME=wstyle VALUE="-O"> outline
<INPUT TYPE=RADIO NAME=wstyle VALUE="-G"> filled outline
<BR>

<B>Holiday style: </B>
<INPUT TYPE=RADIO NAME=hstyle VALUE="-g" CHECKED> gray
<INPUT TYPE=RADIO NAME=hstyle VALUE="-b"> black
<INPUT TYPE=RADIO NAME=hstyle VALUE="-O"> outline
<INPUT TYPE=RADIO NAME=hstyle VALUE="-G"> filled outline
<P>

<!-- radio buttons to enable/disable holidays (could be checkbox;     -->
<!-- implemented as radio buttons for consistency with other items)   -->

<B>Holidays:</B>
<INPUT TYPE=RADIO NAME=holidays VALUE="" CHECKED> yes
<INPUT TYPE=RADIO NAME=holidays VALUE="-e"> no
<P>

<!-- "reset" and "submit" buttons -->

<INPUT TYPE="reset" VALUE="Reset options">
<INPUT TYPE="submit" VALUE="Create calendar">

</FORM>
</BODY>
</HTML>