]> git.sur5r.net Git - contagged/blob - templates/entry_show.tpl
Added country to ldapab.schema. Closes #1
[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>{$entry.url|http}</td>
145           </tr>
146 {/if}
147 {if $entry.mail}
148           <tr>
149             <th>{$lang.mail}:</th>
150             <td>
151               {foreach from=$entry.mail item=mail}
152                 <a href="mailto:{$mail|escape:url}">{$mail|h}</a><br />
153               {/foreach}
154             </td>
155           </tr>
156 {/if}
157 {if $entry.instantmessenger}
158           <tr>
159             <th>{$lang.instantmessenger}:</th>
160             <td>{$entry.instantmessenger|h}</td>
161           </tr>
162 {/if}
163 {if $entry.ipphone}
164           <tr>
165             <th>{$lang.ipphone}:</th>
166             <td>{$entry.ipphone|h}</td>
167           </tr>
168 {/if}
169
170         </table>
171
172     </td>
173   </tr>
174 </table>
175
176 <h3>{$lang.extended}</h3>
177
178 <table width="100%" class="show">
179   <tr>
180     <td width="50%" valign="top">
181         <table width="100%">
182 {if $fields.note}
183           <tr>
184             <th>
185               {$lang.note}:
186               <div {if $user}id="noteedit"{/if}>&nbsp;</div>
187             </th>
188             <td>
189               <div id="notes">
190                 {$entry.note|noteparser}
191                 &nbsp;
192               </div>
193             </td>
194           </tr>
195 {/if}
196         </table>
197     </td>
198     <td width="50%" valign="top">
199         <table width="100%">
200 {if $fields._marker}
201           <tr>
202             <th>
203               {$lang.marker}:
204               <div {if $user}id="tagedit"{/if}>&nbsp;</div>
205             </th>
206             <td>
207               <span id="taglist">
208                 {foreach from=$entry.marker item=marker}
209                   <a href="index.php?marker={$marker|escape:url}" class="tag">{$marker|h}</a>
210                 {/foreach}
211                 &nbsp;
212               </span>
213             </td>
214           </tr>
215 {/if}
216 {if $entry.certificate}
217          <tr>
218            <th>{$lang.certificate}:</th>
219            <td><form>
220               <textarea rows=3 cols=28 name='certificate' onClick='this.form.certificate.select();'>{$entry.certificate|h}</textarea>
221             </form></td>
222           </tr>
223 {/if}
224 {if $entry.domain}
225           <tr>
226             <th>{$lang.domain}:</th>
227             <td>{$entry.domain|h}</td>
228           </tr>
229 {/if}
230 {if $entry.timezone}
231           <tr>
232             <th>{$lang.timezone}:</th>
233             <td>{$entry.timezone|h}</td>
234           </tr>
235 {/if}
236         </table>
237     </td>
238   </tr>
239 </table>
240
241 </div>
242
243 {include file="footer.tpl"}