]> git.sur5r.net Git - contagged/blob - templates/entry_show.tpl
Merge pull request #15 from cweiske/master
[contagged] / templates / entry_show.tpl
1 {include file="header.tpl"}
2
3 <div id="show">
4
5 {if $entry.photo != ''}
6     <a href="img.php?dn={$entry.dn|escape:url}&amp;.jpg" rel="imagebox"
7        title="{$entry.givenname|h} {$entry.name|h}"><img src="img.php?dn={$entry.dn|escape:url}"
8        align="right" class="photo" width="130" alt="" /></a>
9 {/if}
10 <h1>
11     <img src="pix/{$entry.type|h}.png" border="0" width="22" height="22"
12     align="middle" title="{$entry.type|h}" alt="" />
13     {$entry.givenname|h} {$entry.name|h}
14 </h1>
15
16 <table width="100%" class="show"
17        {if $user}ondblclick="window.location.href='entry.php?dn={$entry.dn|escape:url}&amp;mode=edit'"{/if}>
18   <tr>
19     <td valign="top" width="50%">
20       <h3>{$lang.business}</h3>
21         <table width="100%">
22           <tr>
23             <td colspan="2">
24
25               {$entry.title|h} {$entry.givenname|h} {$entry.name|h}<br />
26 {if $entry.organization}
27               <a href="index.php?org={$entry.organization|escape:url}">{$entry.organization|h}</a><br />
28 {/if}
29 {if $entry.office}
30               {$entry.office|h}<br />
31 {/if}
32 {if $entry.street}
33               {$entry.street|h}<br />
34 {/if}
35 {if $entry.location}
36               {$entry.zip|h} {$entry.location|h}<br />
37 {/if}
38 {if $entry.state}
39               {$entry.state|h}
40 {/if}
41 {if $entry.country}
42               {$iso3166[$entry.country]}
43 {/if}
44               <br /><br />
45             </td>
46           </tr>
47 {if $entry.phone}
48           <tr>
49             <th>{$lang.phone}:</th>
50             <td><a href="callto://{$entry.phone|escape:phone}">{$entry.phone|h}</a></td>
51           </tr>
52 {/if}
53 {if $entry.switchboard}
54           <tr>
55             <th>{$lang.switchboard}:</th>
56             <td>{$entry.switchboard|h}</td>
57           </tr>
58 {/if}
59 {if $entry.fax}
60           <tr>
61             <th>{$lang.fax}:</th>
62             <td>{$entry.fax|h}</td>
63           </tr>
64 {/if}
65 {if $entry.pager}
66           <tr>
67             <th>{$lang.pager}:</th>
68             <td>{$entry.pager|h}</td>
69           </tr>
70 {/if}
71 {if $managername}
72           <tr>
73             <th>{$lang.manager}:</th>
74             <td>{$managername}</td>
75           </tr>
76 {/if}
77 {if $entry.position}
78           <tr>
79             <th>{$lang.position}:</th>
80             <td>{$entry.position|h}</td>
81           </tr>
82 {/if}
83 {if $entry.department}
84           <tr>
85             <th>{$lang.department}:</th>
86             <td>{$entry.department|h}</td>
87           </tr>
88 {/if}
89
90         </table>
91
92     </td>
93
94
95     <td valign="top" width="50%">
96       <h3>{$lang.private}</h3>
97         <table width="100%">
98           <tr>
99             <td colspan="2">
100               {$entry.title|h} {$entry.givenname|h} {$entry.name|h}<br />
101 {if $entry.homestreet}
102               {$entry.homestreet|h|nl2br}<br /><br />
103 {/if}
104             </td>
105           </tr>
106 {if $entry.homephone}
107           <tr>
108             <th>{$lang.homephone}:</th>
109             <td><a href="callto://{$entry.homephone|escape:phone}">{$entry.homephone|h}</a></td>
110           </tr>
111 {/if}
112 {if $entry.mobile}
113           <tr>
114             <th>{$lang.mobile}:</th>
115             <td><a href="callto://{$entry.mobile|escape:phone}">{$entry.mobile|h}</a></td>
116           </tr>
117 {/if}
118 {if $entry.birthday}
119           <tr>
120             <th>{$lang.birthday}:</th>
121             <td>{$entry.birthday|h}</td>
122           </tr>
123 {/if}
124 {if $entry.anniversary}
125           <tr>
126             <th>{$lang.anniversary}:</th>
127             <td>{$entry.anniversary|date_format:$conf.dateformat|h}</td>
128           </tr>
129 {/if}
130 {if $entry.spouse}
131           <tr>
132             <th>{$lang.spouse}:</th>
133             <td>{$entry.spouse|h}</td>
134           </tr>
135 {/if}
136
137         </table>
138
139       <h3>{$lang.communication}</h3>
140         <table width="100%">
141 {if $entry.url}
142           <tr>
143             <th>{$lang.url}:</th>
144             <td>
145               {foreach from=$entry.url item=url}
146                 {$url|http}<br/>
147               {/foreach}
148             </td>
149           </tr>
150 {/if}
151 {if $entry.mail}
152           <tr>
153             <th>{$lang.mail}:</th>
154             <td>
155               {foreach from=$entry.mail item=mail}
156                 <a href="mailto:{$mail|escape:url}">{$mail|h}</a><br />
157               {/foreach}
158             </td>
159           </tr>
160 {/if}
161 {if $entry.instantmessenger}
162           <tr>
163             <th>{$lang.instantmessenger}:</th>
164             <td>{$entry.instantmessenger|h}</td>
165           </tr>
166 {/if}
167 {if $entry.ipphone}
168           <tr>
169             <th>{$lang.ipphone}:</th>
170             <td>{$entry.ipphone|h}</td>
171           </tr>
172 {/if}
173
174         </table>
175
176     </td>
177   </tr>
178 </table>
179
180 <h3>{$lang.extended}</h3>
181
182 <table width="100%" class="show">
183   <tr>
184     <td width="50%" valign="top">
185         <table width="100%">
186 {if $fields.note}
187           <tr>
188             <th>
189               {$lang.note}:
190               <div {if $user}id="noteedit"{/if}>&nbsp;</div>
191             </th>
192             <td>
193               <div id="notes">
194                 {$entry.note|noteparser}
195                 &nbsp;
196               </div>
197             </td>
198           </tr>
199 {/if}
200         </table>
201     </td>
202     <td width="50%" valign="top">
203         <table width="100%">
204 {if $fields._marker}
205           <tr>
206             <th>
207               {$lang.marker}:
208               <div {if $user}id="tagedit"{/if}>&nbsp;</div>
209             </th>
210             <td>
211               <span id="taglist">
212                 {foreach from=$entry.marker item=marker}
213                   <a href="index.php?marker={$marker|escape:url}" class="tag">{$marker|h}</a>
214                 {/foreach}
215                 &nbsp;
216               </span>
217             </td>
218           </tr>
219 {/if}
220 {if $entry.certificate}
221          <tr>
222            <th>{$lang.certificate}:</th>
223            <td><form>
224               <textarea rows=3 cols=28 name='certificate' onClick='this.form.certificate.select();'>{$entry.certificate|h}</textarea>
225             </form></td>
226           </tr>
227 {/if}
228 {if $entry.domain}
229           <tr>
230             <th>{$lang.domain}:</th>
231             <td>{$entry.domain|h}</td>
232           </tr>
233 {/if}
234 {if $entry.timezone}
235           <tr>
236             <th>{$lang.timezone}:</th>
237             <td>{$entry.timezone|h}</td>
238           </tr>
239 {/if}
240         </table>
241     </td>
242   </tr>
243 </table>
244
245 </div>
246
247 {include file="footer.tpl"}