]> git.sur5r.net Git - contagged/blob - templates/entry_show.tpl
f340caac77e858d671ad713c0b3ab13bfb3313e7
[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>
51               {foreach from=$entry.phone item=phone}
52               <a href="callto://{$phone|escape:phone}">{$phone|h}</a><br />
53               {/foreach}
54             </td>
55           </tr>
56 {/if}
57 {if $entry.switchboard}
58           <tr>
59             <th>{$lang.switchboard}:</th>
60             <td>{$entry.switchboard|h}</td>
61           </tr>
62 {/if}
63 {if $entry.fax}
64           <tr>
65             <th>{$lang.fax}:</th>
66             <td>{$entry.fax|h}</td>
67           </tr>
68 {/if}
69 {if $entry.pager}
70           <tr>
71             <th>{$lang.pager}:</th>
72             <td>{$entry.pager|h}</td>
73           </tr>
74 {/if}
75 {if $managername}
76           <tr>
77             <th>{$lang.manager}:</th>
78             <td>{$managername}</td>
79           </tr>
80 {/if}
81 {if $entry.position}
82           <tr>
83             <th>{$lang.position}:</th>
84             <td>{$entry.position|h}</td>
85           </tr>
86 {/if}
87 {if $entry.department}
88           <tr>
89             <th>{$lang.department}:</th>
90             <td>{$entry.department|h}</td>
91           </tr>
92 {/if}
93
94         </table>
95
96     </td>
97
98
99     <td valign="top" width="50%">
100       <h3>{$lang.private}</h3>
101         <table width="100%">
102           <tr>
103             <td colspan="2">
104               {$entry.title|h} {$entry.givenname|h} {$entry.name|h}<br />
105 {if $entry.homestreet}
106               {$entry.homestreet|h|nl2br}<br /><br />
107 {/if}
108             </td>
109           </tr>
110 {if $entry.homephone}
111           <tr>
112             <th>{$lang.homephone}:</th>
113             <td>
114                {foreach from=$entry.homephone item=homephone}
115                 <a href="callto://{$homephone|escape:phone}">{$homephone|h}</a><br />
116                {/foreach}
117             </td>
118           </tr>
119 {/if}
120 {if $entry.mobile}
121           <tr>
122             <th>{$lang.mobile}:</th>
123             <td><a href="callto://{$entry.mobile|escape:phone}">{$entry.mobile|h}</a></td>
124           </tr>
125 {/if}
126 {if $entry.birthday}
127           <tr>
128             <th>{$lang.birthday}:</th>
129             <td>{$entry.birthday|h}</td>
130           </tr>
131 {/if}
132 {if $entry.anniversary}
133           <tr>
134             <th>{$lang.anniversary}:</th>
135             <td>{$entry.anniversary|date_format:$conf.dateformat|h}</td>
136           </tr>
137 {/if}
138 {if $entry.spouse}
139           <tr>
140             <th>{$lang.spouse}:</th>
141             <td>{$entry.spouse|h}</td>
142           </tr>
143 {/if}
144
145         </table>
146
147       <h3>{$lang.communication}</h3>
148         <table width="100%">
149 {if $entry.url}
150           <tr>
151             <th>{$lang.url}:</th>
152             <td>{$entry.url|http}</td>
153           </tr>
154 {/if}
155 {if $entry.mail}
156           <tr>
157             <th>{$lang.mail}:</th>
158             <td>
159               {foreach from=$entry.mail item=mail}
160                 <a href="mailto:{$mail|escape:url}">{$mail|h}</a><br />
161               {/foreach}
162             </td>
163           </tr>
164 {/if}
165 {if $entry.instantmessenger}
166           <tr>
167             <th>{$lang.instantmessenger}:</th>
168             <td>{$entry.instantmessenger|h}</td>
169           </tr>
170 {/if}
171 {if $entry.ipphone}
172           <tr>
173             <th>{$lang.ipphone}:</th>
174             <td>{$entry.ipphone|h}</td>
175           </tr>
176 {/if}
177
178         </table>
179
180     </td>
181   </tr>
182 </table>
183
184 <h3>{$lang.extended}</h3>
185
186 <table width="100%" class="show">
187   <tr>
188     <td width="50%" valign="top">
189         <table width="100%">
190 {if $fields.note}
191           <tr>
192             <th>
193               {$lang.note}:
194               <div {if $user}id="noteedit"{/if}>&nbsp;</div>
195             </th>
196             <td>
197               <div id="notes">
198                 {$entry.note|noteparser}
199                 &nbsp;
200               </div>
201             </td>
202           </tr>
203 {/if}
204         </table>
205     </td>
206     <td width="50%" valign="top">
207         <table width="100%">
208 {if $fields._marker}
209           <tr>
210             <th>
211               {$lang.marker}:
212               <div {if $user}id="tagedit"{/if}>&nbsp;</div>
213             </th>
214             <td>
215               <span id="taglist">
216                 {foreach from=$entry.marker item=marker}
217                   <a href="index.php?marker={$marker|escape:url}" class="tag">{$marker|h}</a>
218                 {/foreach}
219                 &nbsp;
220               </span>
221             </td>
222           </tr>
223 {/if}
224 {if $entry.certificate}
225          <tr>
226            <th>{$lang.certificate}:</th>
227            <td><form>
228               <textarea rows=3 cols=28 name='certificate' onClick='this.form.certificate.select();'>{$entry.certificate|h}</textarea>
229             </form></td>
230           </tr>
231 {/if}
232 {if $entry.domain}
233           <tr>
234             <th>{$lang.domain}:</th>
235             <td>{$entry.domain|h}</td>
236           </tr>
237 {/if}
238 {if $entry.timezone}
239           <tr>
240             <th>{$lang.timezone}:</th>
241             <td>{$entry.timezone|h}</td>
242           </tr>
243 {/if}
244         </table>
245     </td>
246   </tr>
247 </table>
248
249 </div>
250
251 {include file="footer.tpl"}