-<h1>
- <img src="pix/{$entry.type}.png" border="0" width="22" height="22" align="middle" title="{$entry.type}">
- {$entry.givenname} {$entry.name}
-</h1>
-{if $entry.photo != ''}
- <img src="img.php?dn={$entry.dn|escape:url}" align="right" class="photo">
-{/if}
+{include file="header.tpl"}
-{include file="ldaperror.tpl"}
+<div id="show">
+{if $entry.photo != ''}
+ <a href="img.php?dn={$entry.dn|escape:url}&.jpg" rel="imagebox"
+ title="{$entry.givenname|h} {$entry.name|h}"><img src="img.php?dn={$entry.dn|escape:url}"
+ align="right" class="photo" width="130" alt="" /></a>
+{/if}
+<h1>
+ <img src="pix/{$entry.type|h}.png" border="0" width="22" height="22"
+ align="middle" title="{$entry.type|h}" alt="" />
+ {$entry.givenname|h} {$entry.name|h}
+</h1>
-<table width="100%">
+<table width="100%" class="show"
+ {if $user}ondblclick="window.location.href='entry.php?dn={$entry.dn|escape:url}&mode=edit'"{/if}>
<tr>
<td valign="top" width="50%">
- <b>{$lang.business}</b>
- <dl><dd>
- <table>
+ <h3>{$lang.business}</h3>
+ <table width="100%">
<tr>
<td colspan="2">
- {$entry.title} {$entry.givenname} {$entry.name}<br>
- {if $entry.organization}<a href="index.php?org={$entry.organization|escape:url}">{$entry.organization}</a><br>{/if}
- {if $entry.office}{$entry.office}<br>{/if}
- {if $entry.street}{$entry.street}<br>{/if}
- {if $entry.location}{$entry.zip} {$entry.location}<br>{/if}
- <br>
+
+ {$entry.title|h} {$entry.givenname|h} {$entry.name|h}<br />
+{if $entry.organization}
+ <a href="index.php?org={$entry.organization|escape:url}">{$entry.organization|h}</a><br />
+{/if}
+{if $entry.office}
+ {$entry.office|h}<br />
+{/if}
+{if $entry.street}
+ {$entry.street|h}<br />
+{/if}
+{if $entry.location}
+ {$entry.zip|h} {$entry.location|h}<br />
+{/if}
+{if $entry.state}
+ {$entry.state|h}
+{/if}
+{if $entry.country}
+ {$iso3166[$entry.country]}
+{/if}
+ <br /><br />
</td>
</tr>
- {if $entry.phone}
+{if $entry.phone}
<tr>
- <td align="right">{$lang.phone}:</td>
- <td>{$entry.phone}</td>
+ <th>{$lang.phone}:</th>
+ <td><a href="callto://{$entry.phone|escape:phone}">{$entry.phone|h}</a></td>
</tr>
- {/if}
- {if $entry.fax}
+{/if}
+{if $entry.switchboard}
<tr>
- <td align="right">{$lang.fax}:</td>
- <td>{$entry.fax}</td>
+ <th>{$lang.switchboard}:</th>
+ <td>{$entry.switchboard|h}</td>
</tr>
- {/if}
- {if $entry.pager}
+{/if}
+{if $entry.fax}
<tr>
- <td align="right">{$lang.pager}:</td>
- <td>{$entry.pager}</td>
+ <th>{$lang.fax}:</th>
+ <td>{$entry.fax|h}</td>
</tr>
- {/if}
- {if $entry.mail}
+{/if}
+{if $entry.pager}
<tr>
- <td valign="top" align="right">{$lang.mail}:</td>
- <td>
- {foreach from=$entry.mail item=mail}
- <a href="mailto:{$mail}">{$mail}</a><br>
- {/foreach}
- </td>
+ <th>{$lang.pager}:</th>
+ <td>{$entry.pager|h}</td>
</tr>
- {/if}
+{/if}
+{if $managername}
+ <tr>
+ <th>{$lang.manager}:</th>
+ <td>{$managername}</td>
+ </tr>
+{/if}
+{if $entry.position}
+ <tr>
+ <th>{$lang.position}:</th>
+ <td>{$entry.position|h}</td>
+ </tr>
+{/if}
+{if $entry.department}
+ <tr>
+ <th>{$lang.department}:</th>
+ <td>{$entry.department|h}</td>
+ </tr>
+{/if}
+
</table>
- </dd></dl>
- {if $conf.extended}
- {include file="extended_show.tpl"}
- {/if}
+
</td>
+
+
<td valign="top" width="50%">
- <b>{$lang.private}</b>
- <dl><dd>
- <table>
+ <h3>{$lang.private}</h3>
+ <table width="100%">
<tr>
<td colspan="2">
- {if $entry.homestreet}
- {$entry.givenname} {$entry.name}<br>
- {$entry.homestreet|nl2br}<br><br>
- {/if}
+ {$entry.title|h} {$entry.givenname|h} {$entry.name|h}<br />
+{if $entry.homestreet}
+ {$entry.homestreet|h|nl2br}<br /><br />
+{/if}
</td>
</tr>
- {if $entry.homephone}
+{if $entry.homephone}
<tr>
- <td align="right">{$lang.homephone}:</td>
- <td>{$entry.homephone}</td>
+ <th>{$lang.homephone}:</th>
+ <td><a href="callto://{$entry.homephone|escape:phone}">{$entry.homephone|h}</a></td>
</tr>
- {/if}
- {if $entry.mobile}
+{/if}
+{if $entry.mobile}
<tr>
- <td align="right">{$lang.mobile}:</td>
- <td>{$entry.mobile}</td>
+ <th>{$lang.mobile}:</th>
+ <td><a href="callto://{$entry.mobile|escape:phone}">{$entry.mobile|h}</a></td>
</tr>
- {/if}
- {if $entry.url}
+{/if}
+{if $entry.birthday}
+ <tr>
+ <th>{$lang.birthday}:</th>
+ <td>{$entry.birthday|h}</td>
+ </tr>
+{/if}
+{if $entry.anniversary}
+ <tr>
+ <th>{$lang.anniversary}:</th>
+ <td>{$entry.anniversary|date_format:$conf.dateformat|h}</td>
+ </tr>
+{/if}
+{if $entry.spouse}
<tr>
- <td align="right">{$lang.url}:</td>
- <td><a href="{$entry.url}" target="_blank">{$entry.url}</a></td>
+ <th>{$lang.spouse}:</th>
+ <td>{$entry.spouse|h}</td>
</tr>
- {/if}
+{/if}
+
+ </table>
+
+ <h3>{$lang.communication}</h3>
+ <table width="100%">
+{if $entry.url}
+ <tr>
+ <th>{$lang.url}:</th>
+ <td>{$entry.url|http}</td>
+ </tr>
+{/if}
+{if $entry.mail}
+ <tr>
+ <th>{$lang.mail}:</th>
+ <td>
+ {foreach from=$entry.mail item=mail}
+ <a href="mailto:{$mail|escape:url}">{$mail|h}</a><br />
+ {/foreach}
+ </td>
+ </tr>
+{/if}
+{if $entry.instantmessenger}
+ <tr>
+ <th>{$lang.instantmessenger}:</th>
+ <td>{$entry.instantmessenger|h}</td>
+ </tr>
+{/if}
+{if $entry.ipphone}
+ <tr>
+ <th>{$lang.ipphone}:</th>
+ <td>{$entry.ipphone|h}</td>
+ </tr>
+{/if}
+
</table>
- </dd></dl>
- {if $entry.note}
- <b>{$lang.note}</b>
- <dl><dd>
- {$entry.note|nl2br}
- </dd></dl>
- {/if}
+ </td>
+ </tr>
+</table>
+<h3>{$lang.extended}</h3>
- {if $managername}
- <b>{$lang.manager}</b>
- <dl><dd>
- <table>
+<table width="100%" class="show">
+ <tr>
+ <td width="50%" valign="top">
+ <table width="100%">
+{if $fields.note}
<tr>
- <td colspan="2">
- {$managername}
+ <th>
+ {$lang.note}:
+ <div {if $user}id="noteedit"{/if}> </div>
+ </th>
+ <td>
+ <div id="notes">
+ {$entry.note|noteparser}
+
+ </div>
+ </td>
+ </tr>
+{/if}
+ </table>
+ </td>
+ <td width="50%" valign="top">
+ <table width="100%">
+{if $fields._marker}
+ <tr>
+ <th>
+ {$lang.marker}:
+ <div {if $user}id="tagedit"{/if}> </div>
+ </th>
+ <td>
+ <span id="taglist">
+ {foreach from=$entry.marker item=marker}
+ <a href="index.php?marker={$marker|escape:url}" class="tag">{$marker|h}</a>
+ {/foreach}
+
+ </span>
</td>
</tr>
+{/if}
+{if $entry.certificate}
+ <tr>
+ <th>{$lang.certificate}:</th>
+ <td><form>
+ <textarea rows=3 cols=28 name='certificate' onClick='this.form.certificate.select();'>{$entry.certificate|h}</textarea>
+ </form></td>
+ </tr>
+{/if}
+{if $entry.domain}
+ <tr>
+ <th>{$lang.domain}:</th>
+ <td>{$entry.domain|h}</td>
+ </tr>
+{/if}
+{if $entry.timezone}
+ <tr>
+ <th>{$lang.timezone}:</th>
+ <td>{$entry.timezone|h}</td>
+ </tr>
+{/if}
</table>
- </dd></dl>
- {/if}
-
</td>
</tr>
</table>
-<br><br><br>
+</div>
+
+{include file="footer.tpl"}