]> git.sur5r.net Git - contagged/commitdiff
show: restructuring, adding new fields, ...
authorhenke <henke@cosmocode.de>
Wed, 16 May 2007 15:24:24 +0000 (17:24 +0200)
committerhenke <henke@cosmocode.de>
Wed, 16 May 2007 15:24:24 +0000 (17:24 +0200)
darcs-hash:20070516152424-1b98d-38a30f45639323a2f02e48f0b485ed40d2a78cca.gz

templates/entry_show.tpl

index fe5c2d5760f02ea2aed0e64898fe260920e95c6e..e9678b60ef87d3e1fcec345c084f36a0acc9619d 100644 (file)
           <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>
+{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}
+{if $entry.state}
+              {$entry.state}
+{/if}
+{if $entry.country}
+              {$entry.country}
+{/if}
+              <br><br>
             </td>
           </tr>
-          {if $entry.phone}
+{if $entry.phone}
           <tr>
             <td align="right">{$lang.phone}:</td>
             <td>{$entry.phone}</td>
           </tr>
-          {/if}
-          {if $entry.fax}
+{/if}
+{if $entry.switchboard}
+          <tr>
+            <td align="right">{$lang.switchboard}:</td>
+            <td>{$entry.switchboard}</td>
+          </tr>
+{/if}
+{if $entry.fax}
           <tr>
             <td align="right">{$lang.fax}:</td>
             <td>{$entry.fax}</td>
           </tr>
-          {/if}
-          {if $entry.pager}
+{/if}
+{if $entry.pager}
           <tr>
             <td align="right">{$lang.pager}:</td>
             <td>{$entry.pager}</td>
           </tr>
-          {/if}
-          {if $entry.mail}
+{/if}
+{if $managername}
           <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>
+            <td align="right">{$lang.manager}:</td>
+            <td>{$managername}</td>
+          </tr>
+{/if}
+{if $entry.position}
+          <tr>
+            <td align="right">{$lang.position}:</td>
+            <td>{$entry.position}</td>
+          </tr>
+{/if}
+{if $entry.department}
+          <tr>
+            <td align="right">{$lang.department}:</td>
+            <td>{$entry.department}</td>
           </tr>
-          {/if}
+{/if}
+
         </table>
       </dd></dl>
+
+
     </td>
 
 
         <table>
           <tr>
             <td colspan="2">
-              {if $entry.homestreet}
-                {$entry.givenname} {$entry.name}<br>
-                {$entry.homestreet|nl2br}<br><br>
-              {/if}
+              {$entry.title} {$entry.givenname} {$entry.name}<br>
+{if $entry.homestreet}
+              {$entry.homestreet|nl2br}<br><br>
+{/if}
             </td>
           </tr>
-          {if $entry.homephone}
+{if $entry.homephone}
           <tr>
             <td align="right">{$lang.homephone}:</td>
             <td>{$entry.homephone}</td>
           </tr>
-          {/if}
-          {if $entry.mobile}
+{/if}
+{if $entry.mobile}
           <tr>
             <td align="right">{$lang.mobile}:</td>
             <td>{$entry.mobile}</td>
           </tr>
-          {/if}
-          {if $entry.url}
+{/if}
+{if $entry.url}
           <tr>
             <td align="right">{$lang.url}:</td>
             <td><a href="{$entry.url}" target="_blank">{$entry.url}</a></td>
           </tr>
-          {/if}
+{/if}
+{if $entry.birthday}
+          <tr>
+            <td align="right">{$lang.birthday}:</td>
+            <td>{$entry.birthday}</td>
+          </tr>
+{/if}
+{if $entry.anniversary}
+          <tr>
+            <td align="right">{$lang.anniversary}:</td>
+            <td>{$entry.anniversary|date_format:$conf.dateformat}</td>
+          </tr>
+{/if}
+{if $entry.spouse}
+          <tr>
+            <td align="right">{$lang.spouse}:</td>
+            <td>{$entry.spouse}</td>
+          </tr>
+{/if}
+
         </table>
       </dd></dl>
 
-      {if $managername}
-      <b>{$lang.manager}</b>
+      <b>{$lang.communication}</b>
       <dl><dd>
         <table>
+{if $entry.mail}
           <tr>
-            <td colspan="2">
-              {$managername}
+            <td valign="top" align="right">{$lang.mail}:</td>
+            <td>
+              {foreach from=$entry.mail item=mail}
+                <a href="mailto:{$mail}">{$mail}</a><br>
+              {/foreach}
             </td>
           </tr>
+{/if}
+{if $entry.instantmessenger}
+          <tr>
+            <td align="right">{$lang.instantmessenger}:</td>
+            <td>{$entry.instantmessenger}</td>
+          </tr>
+{/if}
+{if $entry.ipphone}
+          <tr>
+            <td align="right">{$lang.ipphone}:</td>
+            <td>{$entry.ipphone}</td>
+          </tr>
+{/if}
+
         </table>
       </dd></dl>
-      {/if}
 
-      {if $conf.extended}
-        {include file="extended_show.tpl"}
-      {/if}
     </td>
   </tr>
 </table>
 
 <hr noshade="noshade" size="1" />
-<b>{$lang.note}</b>
 
-{if $user}
- <img src="pix/phone.png" width="16" height="16" onclick="nedit_showEditor('call','{$entry.dn}','{$user|escape:javascript}');" class="click" />
- <img src="pix/email.png" width="16" height="16" onclick="nedit_showEditor('mail','{$entry.dn}','{$user|escape:javascript}');" class="click" />
- <img src="pix/arrow_right.png" width="16" height="16" onclick="nedit_showEditor('todo','{$entry.dn}','{$user|escape:javascript}');" class="click" />
- <img src="pix/note.png" width="16" height="16" onclick="nedit_showEditor('note','{$entry.dn}','{$user|escape:javascript}');" class="click" />
+<table width="100%">
+  <tr>
+    <td width="50%" valign="top">
+      <b>{$lang.extended}</b>
+      <dl><dd>
+        <table>
+{if $fields._marker}
+          <tr>
+            <td valign="top" align="right">
+              {$lang.marker}:
+            </td>
+            <td id="tedit_insert">
+              <span id="tedit_out">
+                {foreach from=$entry.marker item=marker}
+                  <a href="index.php?marker={$marker|escape:url}" class="tag">{$marker}</a> 
+                {/foreach}
+              </span>
+              {if $user}
+                <img src="pix/tag_blue_edit.png" align="right" width="16" height="16" onclick="tedit_showEditor('{$dn}')" class="click" />
+              {/if}
+            </td>
+          </tr>
 {/if}
+{if $fields.note}
+          <tr>
+            <td valign="top" align="right">
+              {$lang.note}:
+            </td>
+            <td>
+              {if $user}
+                 <img src="pix/phone.png" width="16" height="16" onclick="nedit_showEditor('call','{$entry.dn}','{$user|escape:javascript}');" class="click" />
+                 <img src="pix/email.png" width="16" height="16" onclick="nedit_showEditor('mail','{$entry.dn}','{$user|escape:javascript}');" class="click" />
+                 <img src="pix/arrow_right.png" width="16" height="16" onclick="nedit_showEditor('todo','{$entry.dn}','{$user|escape:javascript}');" class="click" />
+                 <img src="pix/note.png" width="16" height="16" onclick="nedit_showEditor('note','{$entry.dn}','{$user|escape:javascript}');" class="click" />
+              {/if}
+              <dl class="notes"><dd id="nedit_insert">
+                {$entry.note|noteparser}
+              </dd></dl>
+            </td>
+          </tr>
+{/if}
+        </table>
+      </dd></dl>
+    </td>
+    <td width="50%" valign="top">
+      <dl><dd>
+        <table >
+{if $entry.certificate}
+         <tr>
+           <td align="right">{$lang.certificate}:</td>
+           <td><form>
+              <textarea rows=3 cols=28 name='certificate' onClick='this.form.certificate.select();'>{$entry.certificate}</textarea>
+            </form></td>
+          </tr>
+{/if}
+{if $entry.domain}
+          <tr>
+            <td align="right">{$lang.domain}:</td>
+            <td>{$entry.domain}</td>
+          </tr>
+{/if}
+{if $entry.timezone}
+          <tr>
+            <td align="right">{$lang.timezone}:</td>
+            <td>{$entry.timezone}</td>
+          </tr>
+{/if}
+        </table>
+      </dd></dl>
+    </td>
+  </tr>
+</table>
 
-<dl class="notes"><dd id="nedit_insert">
-  {$entry.note|noteparser}
-</dd></dl>
 
-{if $conf.openxchange}
-  {include file="openxchange_show.tpl"}
-{/if}
 
 {include file="footer.tpl"}