aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-02 08:51:25 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-02 08:51:25 +0000
commit3be0400cc15603a87cc66cdd137a8351d4328d6e (patch)
tree8dfac4fea0caefc997aff7dbb75fd8391c506472 /contrib
parente6bf4cf07f217956876b7dc26a661eb127757191 (diff)
downloadgnunet-3be0400cc15603a87cc66cdd137a8351d4328d6e.tar.gz
gnunet-3be0400cc15603a87cc66cdd137a8351d4328d6e.zip
-html form
Diffstat (limited to 'contrib')
-rw-r--r--contrib/businesscards/card.tex47
-rw-r--r--contrib/businesscards/fields.html40
2 files changed, 52 insertions, 35 deletions
diff --git a/contrib/businesscards/card.tex b/contrib/businesscards/card.tex
index afc8131af..cb0b8220d 100644
--- a/contrib/businesscards/card.tex
+++ b/contrib/businesscards/card.tex
@@ -11,28 +11,23 @@
11\usepackage{auto-pst-pdf} 11\usepackage{auto-pst-pdf}
12\usetikzlibrary{positioning,shapes,shadows,arrows} 12\usetikzlibrary{positioning,shapes,shadows,arrows}
13 13
14
14\input{fields.tex} 15\input{fields.tex}
15 16
16% ===============================================================
17% Font type
18% ===============================================================
19\renewcommand{\rmdefault}{phv} 17\renewcommand{\rmdefault}{phv}
20\renewcommand{\seriesdefault}{m} 18\renewcommand{\seriesdefault}{m}
21\renewcommand{\shapedefault}{n} 19\renewcommand{\shapedefault}{n}
22% ===============================================================
23 20
24\definecolor{MyBlack}{cmyk}{0,0,0,1} % Black 21\definecolor{MyBlack}{cmyk}{0,0,0,1}
25 22
26\setlength\parindent{0pt} 23\setlength\parindent{0pt}
27
28
29\newlength{\width} 24\newlength{\width}
30\newlength{\height} 25\newlength{\height}
31\setlength{\width}{85mm} 26\setlength{\width}{85mm}
32\setlength{\height}{55mm} 27\setlength{\height}{55mm}
33 28
34 29
35\newcommand{\card}[1]{% 30\newcommand{\card}[1]{
36 \begin{tikzpicture}[font=\tiny] 31 \begin{tikzpicture}[font=\tiny]
37 \draw[-,line width=1pt,MyBlack] (-5mm,0mm) to (-2mm,0mm); 32 \draw[-,line width=1pt,MyBlack] (-5mm,0mm) to (-2mm,0mm);
38 \draw[-,line width=1pt,MyBlack] (0mm,5mm) to (0mm,2mm); 33 \draw[-,line width=1pt,MyBlack] (0mm,5mm) to (0mm,2mm);
@@ -47,21 +42,12 @@
47 \draw[-,line width=1pt,MyBlack] [yshift=-2mm](\width,-\height) to [yshift=-3mm](\width,-\height); 42 \draw[-,line width=1pt,MyBlack] [yshift=-2mm](\width,-\height) to [yshift=-3mm](\width,-\height);
48 43
49 44
50 %\draw[-,line width=1pt,MyBlack] (-5mm,0mm) to (90mm,0mm);
51 %\draw[-,line width=1pt,MyBlack] (-5mm,-55mm) to (90mm,-55mm);
52 %\draw[-,line width=1pt,MyBlack] (-0mm,5mm) to (0mm,-60mm);
53 %\draw[-,line width=1pt,MyBlack] (85mm,5mm) to (85mm,-60mm);
54
55 %\draw[-,line width=0.1mm,MyBlack!50] (44.5mm,0mm) to (44.5mm,-55mm);
56
57 \node at (78mm,-7mm) {\includegraphics[height=7mm]{gnunet-logo.pdf}}; 45 \node at (78mm,-7mm) {\includegraphics[height=7mm]{gnunet-logo.pdf}};
58 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-16mm) {\orga}; 46 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-16mm) {\orga};
59 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-21.5mm) {\ifthenelse{\equal{#1}{english}}{\departmenten}{\departmentde}}; 47 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-21.5mm) {\ifthenelse{\equal{#1}{english}}{\departmenten}{\departmentde}};
60 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-24.0mm) {\ifthenelse{\equal{#1}{english}}{\subdepartmenten}{\subdepartmentde}}; 48 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-24.0mm) {\ifthenelse{\equal{#1}{english}}{\subdepartmenten}{\subdepartmentde}};
61% \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-26.5mm) {\ifthenelse{\equal{#1}{english}}{}{und Netzdienste}};
62
63 49
64 \ifthenelse{\equal{\gpglineone}{}\or\equal{#1}{german}}{% 50 \ifthenelse{\equal{\gpglineone}{}\or\equal{#1}{german}}{
65 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-35mm) {\street}; 51 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-35mm) {\street};
66 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-37.5mm) {\city}; 52 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-37.5mm) {\city};
67 53
@@ -72,51 +58,42 @@
72 58
73 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-48.0mm) {\email}; 59 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-48.0mm) {\email};
74 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-50.5mm) {\homepage}; 60 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-50.5mm) {\homepage};
75 }% 61 }
76 {% 62 {
77 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-35.0mm) {\email}; 63 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-35.0mm) {\email};
78 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-37.5mm) {\homepage}; 64 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-37.5mm) {\homepage};
79 65
80 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-44.0mm) {GPG Fingerprint:}; 66 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-44.0mm) {GPG Fingerprint:};
81 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-46.5mm) {\gpglineone}; 67 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-46.5mm) {\gpglineone};
82 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-49.0mm) {\gpglinetwo}; 68 \node[rectangle,draw=white,minimum height=7pt,text width=37.5mm,inner sep=0pt] at (64.25mm,-49.0mm) {\gpglinetwo};
83 }% 69 }
84 70
85 71 \ifthenelse{\equal{\gns}{}\or\equal{#1}{english}}{
86 \ifthenelse{\equal{\gns}{}\or\equal{#1}{english}}{%
87 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-21.0mm) {\ifthenelse{\equal{\prefix}{}}{}{\tiny \prefix}}; 72 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-21.0mm) {\ifthenelse{\equal{\prefix}{}}{}{\tiny \prefix}};
88 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-24.0mm) {\fontsize{8pt}{8pt}\selectfont \textbf{\name}\ifthenelse{\equal{\suffix}{}}{}{, \tiny \suffix}}; 73 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-24.0mm) {\fontsize{8pt}{8pt}\selectfont \textbf{\name}\ifthenelse{\equal{\suffix}{}}{}{, \tiny \suffix}};
89 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-29.0mm) {\ifthenelse{\equal{#1}{english}}{\textit{\jobtitleenglish}}{\textit{\jobtitlegerman}}}; 74 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-29.0mm) {\ifthenelse{\equal{#1}{english}}{\textit{\jobtitleenglish}}{\textit{\jobtitlegerman}}};
90 }% 75 }
91 {% 76 {
92 \node[rectangle,draw=black,line width=1pt,inner sep=0pt] at (12.5mm,-14.75mm) {\begin{pspicture}(17mm,17mm) \psbarcode{\gns}{}{qrcode}\end{pspicture}}; 77 \node[rectangle,draw=black,line width=1pt,inner sep=0pt] at (12.5mm,-14.75mm) {\begin{pspicture}(17mm,17mm) \psbarcode{\gns}{}{qrcode}\end{pspicture}};
93 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-32.0mm) {\ifthenelse{\equal{\prefix}{}}{}{\tiny \prefix}}; 78 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-32.0mm) {\ifthenelse{\equal{\prefix}{}}{}{\tiny \prefix}};
94 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-35.0mm) {\fontsize{8pt}{8pt}\selectfont \textbf{\name}\ifthenelse{\equal{\suffix}{}}{}{, \tiny \suffix}}; 79 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-35.0mm) {\fontsize{8pt}{8pt}\selectfont \textbf{\name}\ifthenelse{\equal{\suffix}{}}{}{, \tiny \suffix}};
95 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-41.5mm) {\ifthenelse{\equal{#1}{english}}{\textit{\jobtitleenglish}}{\textit{\jobtitlegerman}}}; 80 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-41.5mm) {\ifthenelse{\equal{#1}{english}}{\textit{\jobtitleenglish}}{\textit{\jobtitlegerman}}};
96 }% 81 }
97 \end{tikzpicture} 82 \end{tikzpicture}
98}% 83}
99
100
101 84
102 85
103\begin{document} 86\begin{document}
104
105
106\begin{figure} 87\begin{figure}
107 \begin{center} 88 \begin{center}
108 \card{german} 89 \card{german}
109 \end{center} 90 \end{center}
110\end{figure} 91\end{figure}
111
112\clearpage 92\clearpage
113
114\begin{figure} 93\begin{figure}
115 \begin{center} 94 \begin{center}
116 \card{english} 95 \card{english}
117 \end{center} 96 \end{center}
118\end{figure} 97\end{figure}
119
120
121\end{document} 98\end{document}
122 99
diff --git a/contrib/businesscards/fields.html b/contrib/businesscards/fields.html
new file mode 100644
index 000000000..fa1c5e65c
--- /dev/null
+++ b/contrib/businesscards/fields.html
@@ -0,0 +1,40 @@
1<html>
2<head>
3<title>Create your GNU Name System Businesscard</title>
4</head>
5<body>
6Please fill in the information below to generate your business
7card. Yes, this form is the ugliest you've seen in a while,
8feel free to send us a nicer version of the HTML.
9<p>
10<form name="gnsinput" action="submit" method="get">
11
12Academic Title (prefix): <input type="text" name="prefix"><br>
13Name: <input type="text" name="name"><br>
14Academic Title (suffix): <input type="text" name="suffix"><br>
15<p>
16Street: <input type="text" name="street"><br>
17City (and ZIP code): <input type="text" name="city"><br>
18<p>
19Phone: <input type="text" name="phone"><br>
20Fax: <input type="text" name="fax"><br>
21E-mail: <input type="text" name="email"><br>
22Homepage: <input type="text" name="homepage"><br>
23<p>
24Organization: <input type="text" name="orga"><br>
25Department (German): <input type="text" name="departmentde"><br>
26Department (English): <input type="text" name="departmenten"><br>
27Division (German): <input type="text" name="subdepartmentde"><br>
28Division (English): <input type="text" name="subdepartmenten"><br>
29<p>
30Jobtitle (German): <input type="text" name="jobtitlegerman"><br>
31Jobtitle (English): <input type="text" name="jobtitleenglish"><br>
32Academic Title (suffix): <input type="text" name="suffix"><br>
33<p>
34GPG Fingerprint: <input type="text" name="gpgfingerprint"><br>
35GNS Public Key: <input type="text" name="gnskey"><br>
36GNS Nickname: <input type="text" name="gnsnick"><br>
37<p>
38<input type="submit">
39</form>
40</body>