]> git.sur5r.net Git - contagged/commitdiff
changed layout, some HTML cleanup
authorAndreas Gohr <gohr@cosmocode.de>
Wed, 25 Jan 2006 12:45:11 +0000 (13:45 +0100)
committerAndreas Gohr <gohr@cosmocode.de>
Wed, 25 Jan 2006 12:45:11 +0000 (13:45 +0100)
darcs-hash:20060125124511-6e07b-9f30580c4249dfd0a689ef8f378089b2fe0151fe.gz

27 files changed:
entry.php
help.php
index.php
js/gui.js
lang/de.php
lang/en.php
login.php
orgs.php
pix/tag_blue.png [new file with mode: 0644]
tags.php
templates/entry_edit.tpl
templates/entry_show.tpl
templates/error.tpl
templates/extended_edit.tpl
templates/extended_show.tpl
templates/filter.tpl [new file with mode: 0644]
templates/footer.tpl
templates/header.tpl
templates/help.tpl
templates/layout.css [new file with mode: 0644]
templates/ldaperror.tpl [deleted file]
templates/list.tpl
templates/login.tpl
templates/orgs.tpl
templates/style.css
templates/tags.tpl
templates/toolbar.tpl [new file with mode: 0644]

index 63e15e197573b14f4b518fb7833864d612c1c424..10d4661f0a61b637b8872ca49100814c9d60c4a1 100644 (file)
--- a/entry.php
+++ b/entry.php
     $smarty->display($template);
   }else{
     header('Content-Type: text/html; charset=utf-8');
-    $smarty->display('header.tpl');
-    $smarty->display('list_filter.tpl');
     $smarty->display($template);
-    $smarty->display('footer.tpl');
   }
 
   //--------------------------------------------------------------
index 8aaa8f8e963553a9a7717c87e74e0ee73dc65110..dd933da204bcc2a1746e90e7e5fca3e38679566b 100644 (file)
--- a/help.php
+++ b/help.php
@@ -6,8 +6,6 @@
   tpl_std();
   //display templates
   header('Content-Type: text/html; charset=utf-8');
-  $smarty->display('header.tpl');
   $smarty->display('help.tpl');
-  $smarty->display('footer.tpl');
 
 ?>
index 5241b5efcbe1cbe095887dac73c835546043b469..04ab99662fb6fc638eee1ce6bb572fbc9a5b9ebe 100644 (file)
--- a/index.php
+++ b/index.php
     $_SESSION[ldapab][lastlocation]=$_SERVER["REQUEST_URI"];
 
     header('Content-Type: text/html; charset=utf-8');
-    $smarty->display('header.tpl');
-    $smarty->display('list_filter.tpl');
     $smarty->display('list.tpl');
-    $smarty->display('footer.tpl');
   }
 
   //------- functions -----------//
index cbf7275b39f772b6d2fa525075150259b484bbec..c64013a36bd0d34e922fcd6ffb2bea06d66db9f8 100644 (file)
--- a/js/gui.js
+++ b/js/gui.js
@@ -21,7 +21,7 @@ NoteEditor.prototype = {
  * Create the editor component
  */
 
-function nedit_showEditor(type,dn){
+function nedit_showEditor(type,dn,name){
   // if the editor already exists cancel it
   if($('nedit_editor') !== null){
     nedit_cleanUp();
@@ -41,7 +41,7 @@ function nedit_showEditor(type,dn){
   }
 
   var dt = new Date();
-  editor += '//'+dt.formatDate('j. M y H:i')+'//: ';
+  editor += '//'+dt.formatDate('j. M y H:i')+' '+name+'//: ';
   editor += '</textarea><br />';
 
   editor += '<input id="nedit_save" type="button" value="SAVE" />';
index 0e11b9f179e5fad8189aba490008e6a66961d5f9..21fa105da8c739b4c2f3b32eaa0d3b5b8fa6b8cb 100644 (file)
@@ -66,6 +66,7 @@ $lang[msg_addto]      = 'Zu welchem Adressbuch soll der Eintrag hinzugefügt wer
 $lang[msg_jpegonly]   = 'Nur JPEG';
 $lang[msg_dateformat] = 'JJJJ-MM-TT';
 $lang[msg_uploadvcf]  = 'Upload VCard File';
+$lang[msg_tagsep]     = 'Durch Komma getrennt';
 
 $lang[err_noentries]  = 'Keine Einträge';
 $lang[err_ldap]       = 'Der LDAP Server lieferte folgende Fehlermeldungen';
index 369d82d44f75cf22da1298259d690ebed18434d6..cca3902ef0fad0e8809232086ffa13f7e943e500 100644 (file)
@@ -65,6 +65,7 @@ $lang[msg_addto]      = 'Select address book to which the entry should be added:
 $lang[msg_jpegonly]   = 'JPEG only';
 $lang[msg_dateformat] = 'YYYY-MM-DD';
 $lang[msg_uploadvcf]  = 'Upload VCard File';
+$lang[msg_tagsep]     = 'Comma separated';
 
 $lang[err_noentries]  = 'No entries';
 $lang[err_ldap]       = 'The LDAP server returned the following errors';
index a2d0a124f9c5676166531acf0a111371cb42f247..2bf41bcceaf89a7ca24f0b11ac5e8616c9abe149 100644 (file)
--- a/login.php
+++ b/login.php
@@ -21,7 +21,5 @@
   $smarty->assign('msg',$msg);
   //display templates
   header('Content-Type: text/html; charset=utf-8');
-  $smarty->display('header.tpl');
   $smarty->display('login.tpl');
-  $smarty->display('footer.tpl');
 ?>
index aaefcd06fd1dd2d57d5c8929331aa9d7c47b0d58..6e79970ab28e807e6e9d7b747e1afc8f12ea31f5 100644 (file)
--- a/orgs.php
+++ b/orgs.php
@@ -7,10 +7,5 @@
   tpl_orgs();
   //display templates
   header('Content-Type: text/html; charset=utf-8');
-  $smarty->display('header.tpl');
-  $smarty->display('list_filter.tpl');
   $smarty->display('orgs.tpl');
-  $smarty->display('footer.tpl');
-
-
 ?>
diff --git a/pix/tag_blue.png b/pix/tag_blue.png
new file mode 100644 (file)
index 0000000..b5ba31f
Binary files /dev/null and b/pix/tag_blue.png differ
index 13b07b2b86cf2efee4f01ac2d528a0a6a3acac0c..4a3019ad1d30ccf2b0e93cc6079333e12ec5b720 100644 (file)
--- a/tags.php
+++ b/tags.php
@@ -7,10 +7,7 @@
   $smarty->assign('tagcloud',tag_cloud());
   //display templates
   header('Content-Type: text/html; charset=utf-8');
-  $smarty->display('header.tpl');
-  $smarty->display('list_filter.tpl');
   $smarty->display('tags.tpl');
-  $smarty->display('footer.tpl');
 
   function tag_cloud(){
     global $conf;
index 22e5d20d0314bd6929634550c3423108104e4a72..9461846ad26ce530df17ab39975cc8d03b52cd66 100644 (file)
@@ -1,3 +1,5 @@
+{include file="header.tpl"}
+
 <h1>
   {if $entry.type != ''}
   <img src="pix/{$entry.type}.png" border="0" width="22" height="22" align="middle" title="{$entry.type}">
@@ -10,8 +12,6 @@
 <input type="hidden" name="dn" value="{$entry.dn|escape}" />
 <input type="hidden" name="save" value="1" />
 
-{include file="ldaperror.tpl"}
-
 <table width="100%">
   <tr>
     <td valign="top" width="50%" align="center">
 
 </form>
 
-<br>
+{include file="footer.tpl"}
index 6bf9d232dc0f58c0e1a438814c67305a9a393e01..c1a73e4ed61710ff1a2afa2e6031bcacdabbedcc 100644 (file)
@@ -1,3 +1,5 @@
+{include file="header.tpl"}
+
 <h1>
   <img src="pix/{$entry.type}.png" border="0" width="22" height="22" align="middle" title="{$entry.type}">
   {$entry.givenname} {$entry.name}
@@ -6,9 +8,6 @@
   <a href="img.php?dn={$entry.dn|escape:url}"><img src="img.php?dn={$entry.dn|escape:url}" align="right" class="photo" width="130" /></a>
 {/if}
 
-{include file="ldaperror.tpl"}
-
-
 <table width="100%">
   <tr>
     <td valign="top" width="50%">
 <b>{$lang.note}</b>
 
 {if $user}
- <img src="pix/phone.png" width="16" height="16" onclick="nedit_showEditor('call','{$entry.dn}');" />
- <img src="pix/email.png" width="16" height="16" onclick="nedit_showEditor('mail','{$entry.dn}');" />
- <img src="pix/arrow_right.png" width="16" height="16" onclick="nedit_showEditor('todo','{$entry.dn}');" />
- <img src="pix/note.png" width="16" height="16" onclick="nedit_showEditor('note','{$entry.dn}');" />
+ <img src="pix/phone.png" width="16" height="16" onclick="nedit_showEditor('call','{$entry.dn}','{$user|escape:javascript}');" />
+ <img src="pix/email.png" width="16" height="16" onclick="nedit_showEditor('mail','{$entry.dn}','{$user|escape:javascript}');" />
+ <img src="pix/arrow_right.png" width="16" height="16" onclick="nedit_showEditor('todo','{$entry.dn}','{$user|escape:javascript}');" />
+ <img src="pix/note.png" width="16" height="16" onclick="nedit_showEditor('note','{$entry.dn}','{$user|escape:javascript}');" />
 {/if}
 
 <dl><dd id="nedit_insert">
   {include file="openxchange_show.tpl"}
 {/if}
 
-<br><br><br>
-
+{include file="footer.tpl"}
index 6f8d460e567f0bbccd40ec822feccc656a131fc2..244250e02d08dc97073628cfa5a610bb598f053d 100644 (file)
@@ -1,10 +1,7 @@
+{include file="header.tpl"}
 
 <h1>An error occured</h1>
 
-{include file="ldaperror.tpl"}
+<div class="error">{$error}</div>
 
-<table class="tableborder">
-<tr>
-  <td>{$error}</td>
-</tr>
-</table>
+{include file="footer.tpl"}
index 3462a86c5883254a4fc8f2d13bec57150eee5088..b69323d56fc6f92840c2878748b0c8080f3eef73 100644 (file)
@@ -8,9 +8,9 @@
   </tr>
 
   <tr>
-    <td align="right" valign="top" nowrap="nowrap">{$lang.marker}:</td>
+    <td align="right" valign="top" nowrap="nowrap">{$lang.marker}:<br><span class="hint">({$lang.msg_tagsep})</span></td>
     <td>
-      <input type="text" class="input" name="entry[markers]" value="{$entry.markers|escape}" id="tageditlookup"><div id="tageditresult" class="autocomplete"></div>
+      <textarea class="input" name="entry[markers]" id="tageditlookup">{$entry.markers|escape}</textarea><div id="tageditresult" class="autocomplete"></div>
     </td>
 
   </tr>
index 24dc2bea713d38687a40684854900e9cfc5c3ec6..8508101447120a8ecfa204ce2bead84d3254485f 100644 (file)
@@ -13,7 +13,7 @@
       <td valign="top" align="right">{$lang.marker}:</td>
       <td>
         {foreach from=$entry.marker item=marker}
-          <a href="index.php?marker={$marker|escape:url}">{$marker}</a> 
+          <a href="index.php?marker={$marker|escape:url}" class="tag">{$marker}</a> 
         {/foreach}
       </td>
     </tr>
diff --git a/templates/filter.tpl b/templates/filter.tpl
new file mode 100644 (file)
index 0000000..85cb88d
--- /dev/null
@@ -0,0 +1,63 @@
+<ul class="x">
+  <li><a href="index.php?filter=a">A</a></li>
+  <li><a href="index.php?filter=b">B</a></li>
+  <li><a href="index.php?filter=c">C</a></li>
+  <li><a href="index.php?filter=d">D</a></li>
+  <li><a href="index.php?filter=e">E</a></li>
+  <li><a href="index.php?filter=f">F</a></li>
+  <li><a href="index.php?filter=g">G</a></li>
+  <li><a href="index.php?filter=h">H</a></li>
+  <li><a href="index.php?filter=i">I</a></li>
+  <li><a href="index.php?filter=j">J</a></li>
+  <li><a href="index.php?filter=k">K</a></li>
+  <li><a href="index.php?filter=l">L</a></li>
+  <li><a href="index.php?filter=m">M</a></li>
+  <li><a href="index.php?filter=n">N</a></li>
+  <li><a href="index.php?filter=o">O</a></li>
+  <li><a href="index.php?filter=p">P</a></li>
+  <li><a href="index.php?filter=q">Q</a></li>
+  <li><a href="index.php?filter=r">R</a></li>
+  <li><a href="index.php?filter=s">S</a></li>
+  <li><a href="index.php?filter=t">T</a></li>
+  <li><a href="index.php?filter=u">U</a></li>
+  <li><a href="index.php?filter=v">V</a></li>
+  <li><a href="index.php?filter=w">W</a></li>
+  <li><a href="index.php?filter=x">X</a></li>
+  <li><a href="index.php?filter=y">Y</a></li>
+  <li><a href="index.php?filter=z">Z</a></li>
+  <li><a href="index.php?filter=other">#</a></li>
+  <li><a href="index.php?filter=*">*</a></li>
+</ul>
+
+{if $conf.openxchange}
+  <div class="categories x">
+    <form method="get" action="index.php">
+      <select name="categories" class="searchfield">
+        <option value="">--- {$lang.categories} ---</option>
+        {html_options values=$categories output=$categories selected=$smarty.request.categories}
+      </select>
+      <input type="submit" value="{$lang.search}" class="searchbutton" />
+    </form>
+  </div>
+{/if}
+
+{if $conf.extended}
+  <div class="tags x">
+    <form method="get" action="index.php" accept-charset="utf-8">
+      <a href="tags.php" class="tag">{$lang.marker}</a>:
+
+      <input name="marker" class="searchfield" type="text" id="taglookup"
+       value="{$smarty.request.marker|escape}" />
+      <input type="submit" value="{$lang.search}" class="searchbutton" />
+    </form>
+  </div>
+  <div id="tagresult" class="autocomplete"></div>
+{/if}
+
+<div class="search x">
+  <form method="get" action="index.php" accept-charset="utf-8">
+    <input type="text" name="search" class="searchfield"
+     value="{$smarty.request.search|escape}" />
+    <input type="submit" value="{$lang.search}" class="searchbutton" />
+  </form>
+</div>
index c3017f4de26afcd11260addcfa488d8769f90400..7b3f048f16cac335f3bc45e1c94b3b2915ae78c3 100644 (file)
@@ -1,8 +1,29 @@
+  </div>
+
+  <div id="footrow">
+    {if $user == ''}
+      {$lang.notloggedin}
+      &nbsp;&nbsp;&nbsp;
+      <a href="login.php"><img src="pix/key.png" border="0" width="16" height="16" align="middle" /> {$lang.login}</a>
+    {else}
+      {$lang.loggedinas} <b>{$user}</b>
+      &nbsp;&nbsp;&nbsp;
+      <a href="login.php?username="><img src="pix/key_go.png" border="0" width="16" height="16" align="middle" /> {$lang.logout}</a>
+    {/if}
+  </div>
+</div>
+
+</body>
+</html>
+
+
+<!--
+
   </td>
 </tr>
 
 <tr>
-  <td class="buttonrow" align="right">
+  <td class="buttonrow" align="right" colspan="2">
     <table width="100%"><tr>
       <td align="left">
         <a href="orgs.php"><img src="pix/book_open.png" border="0" width="16" height="16" align="middle" />{$lang.orgs}</a>
@@ -32,7 +53,7 @@
   </td>
 </tr>
 <tr>
-  <td class="footrow">
+  <td class="footrow" colspan="2">
     {if $user == ''}
       <a href="login.php"><img src="pix/key.png" border="0" width="16" height="16" align="middle" /> {$lang.login}</a>&nbsp;&nbsp;&nbsp;
       {$lang.notloggedin}
@@ -43,3 +64,4 @@
   </td>
 </tr>
 </table>
+-->
index dd2b15badd1b453a8bbcbd3271f4c9d1794f7b01..23cd9e69c25e1972137e5807685abd2f87822d2b 100644 (file)
@@ -1,24 +1,50 @@
 <html>
 <head>
   <title>LDAPab - {$lang.ldapab}</title>
-  <link rel="stylesheet" type="text/css" href="templates/style.css" />
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
+  <link rel="stylesheet" type="text/css" href="templates/layout.css" />
+
+  <link rel="stylesheet" type="text/css" href="templates/style.css" />
+
   <script src="js/prototype.js" type="text/javascript"></script>
   <script src="js/scriptaculous.js" type="text/javascript"></script>
   <script src="js/formatDate.js" type="text/javascript"></script>
   <script src="js/gui.js" type="text/javascript"></script>
 
+  {if $LDAPERRORS != ''}
+  <script>
+    window.alert('{$lang.err_ldap}:\n\n{$LDAPERRORS|escape:quotes}');
+  </script>
+  {/if}
 </head>
 <body>
 
+<div id="ldapab">
+
+  <div id="titlerow">
+    <a href="{$home}" class="logo">LDAPab</a>
+    <span class="logosmall">- {$lang.ldapab}</span>
+  </div>
+
+  <div id="filterrow">
+    {include file="filter.tpl"}
+  </div>
+
+  <div id="toolbar">
+    {include file="toolbar.tpl"}
+  </div>
+
+
+  <div id="content">
+
+
+<!--
 <table width="100%">
 <tr>
-  <td class="headrow">
+  <td class="headrow" colspan="2">
     <table width="100%"><tr>
       <td align="left" valign="bottom">
-        <a href="{$home}" class="logo">LDAPab</a>
-        <span class="logosmall">- {$lang.ldapab}</span>
       </td>
       <td align="right" valign="bottom">
         <a href="help.php"><img src="pix/help.png" border="0" width="16" height="16" align="middle">{$lang.help}</a>
@@ -27,4 +53,7 @@
   </td>
 </tr>
 <tr>
+  <td width="30">
+  </td>
   <td>
+-->
index efa29af3cbb5a9b2d540258c357fdde3772390f4..018aafa82cd68b00a7ef199cc114757da436c409 100644 (file)
@@ -1,3 +1,4 @@
+{include file="header.tpl"}
 
 <h2>Adding LDAP-Access to your Mailclient</h2>
 
@@ -21,7 +22,7 @@
 <h3>Private Addressbook</h3>
 
 {if $binddn}
-<p>To access your persanal addressdata use these settings:</p>
+<p>To access your personal address data use these settings:</p>
 <dl>
   <dt>LDAP-Server</dt>
   <dd><code>{$conf.ldapserver}</code></dd>
@@ -39,5 +40,4 @@
 <p>Login to see this data</p>
 {/if}
 
-
-<br><br>
+{include file="footer.tpl"}
diff --git a/templates/layout.css b/templates/layout.css
new file mode 100644 (file)
index 0000000..15d24ca
--- /dev/null
@@ -0,0 +1,64 @@
+
+/* left side toolbar */
+
+div#toolbar {
+  float: left;
+  width: 2em;
+  text-align: center;
+}
+
+div#toolbar ul {
+  list-style: none;
+  margin: 0;
+  padding: 0;
+}
+
+div#toolbar li.sep {
+  height: 1em;
+}
+
+/* top row */
+
+div#filterrow {
+  padding: 0 0 0 3em;
+  border-bottom: 1px solid #ccc;
+}
+
+div#filterrow form {
+  display: inline;
+}
+
+div#filterrow div.x, div#filterrow ul.x, div#filterrow ul.x li {
+  display: inline;
+}
+
+div#filterrow ul.x {
+  list-style: none;
+  margin: 0;
+  padding: 0;
+  
+}
+
+div#filterrow div {
+  margin-left: 1em;
+}
+
+/* bottom row */
+
+div#footrow {
+  clear: left;
+  text-align: right;
+  padding: 0 1em 0 0;
+  border-top: 1px solid #ccc;
+}
+
+/* content */
+
+div#content {
+  margin-left: 2em;
+  padding: 0.5em 1em 2em 1em;
+  border-left: 1px solid #ccc;
+  min-height: 10em;
+  height: auto !important;
+  height: 10em;
+}
diff --git a/templates/ldaperror.tpl b/templates/ldaperror.tpl
deleted file mode 100644 (file)
index fbcea18..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-{if $LDAPERRORS != ''}
-<script>
-  window.alert('{$lang.err_ldap}:\n\n{$LDAPERRORS|escape:quotes}');
-</script>
-{/if}
index fe16dfd8d636d55833686c05907946e45624e353..9c3b02e9eed53975507a5fc8691cf831dcfe98e7 100644 (file)
@@ -1,4 +1,5 @@
-<br><br>
+{include file="header.tpl"}
+
 <table cellspacing="0" cellpadding="0" width="100%" align="center">
   {if $list == ''}
     <tr>
@@ -11,4 +12,5 @@
     {$list}
   {/if}
 </table>
-<br><br><br>
+
+{include file="footer.tpl"}
index ccedd37043549fb1d366bbe5ccec84439f63face..2a950dafc2cbf652ff13cf831f76529f478f7b9a 100644 (file)
@@ -1,3 +1,5 @@
+{include file="header.tpl"}
+
 
   <br /><br /><br />
   <form action="login.php" method="post" accept-charset="utf-8">
@@ -25,3 +27,5 @@
   </table>
   </form>
   <br /><br /><br />
+
+{include file="footer.tpl"}
index 4aa3c071cfed140b8237b828dc5dfdbde627cd32..0c030af3258f60d0c9836bbc312d8f49758cc91d 100644 (file)
@@ -1,3 +1,5 @@
+{include file="header.tpl"}
+
 <table width="100%">
 {foreach from=$orgs item=org}
   <tr>
@@ -16,3 +18,5 @@
   </tr>
 {/foreach}
 </table>
+
+{include file="footer.tpl"}
index 049be1101a436245145bbbfe07b23a6e7ac53b7b..52e63ecf2c147d2e4dcc20531fcc502993b30949 100644 (file)
@@ -21,9 +21,10 @@ td    {background-color:#66CCFF:margin:3px}
 .buttonrow {border-top-width:1px;
             border-top-style:solid;
             border-top-color:#cccccc;}
-.filterrow {border-bottom-width:1px;
+
+/*.filterrow {border-bottom-width:1px;
             border-bottom-style:solid;
-            border-bottom-color:#cccccc;}
+            border-bottom-color:#cccccc;}*/
 
 .tableborder {border-width:1px; border-style:solid}
 
@@ -96,6 +97,8 @@ div.autocomplete {
   background-color: #fff;
   border: 1px solid #000;
   font-size: 80%;
+  margin: 0;
+  display: block;
 }
 
 div.autocomplete ul {
@@ -156,3 +159,7 @@ a.tc18 { font-size: 280%; }
 a.tc19 { font-size: 290%; }
 a.tc20 { font-size: 300%; }
 
+a.tag {
+  background: url(../pix/tag_blue.png) left center no-repeat;
+  padding-left: 18px;
+}
index 203b33439afb7f74e3d02ad3ddc168beecbc7095..c0befac914d1af5d8817b2be7a410901d03e904b 100644 (file)
@@ -1,5 +1,8 @@
-<p>{$lang.tagcloud}</p>
+{include file="header.tpl"}
 
 <div class="tagcloud">
   {$tagcloud}
 </div>
+
+<p>{$lang.tagcloud}</p>
+{include file="footer.tpl"}
diff --git a/templates/toolbar.tpl b/templates/toolbar.tpl
new file mode 100644 (file)
index 0000000..b155388
--- /dev/null
@@ -0,0 +1,78 @@
+<ul>
+
+  <!-- help -->
+  <li>
+    <a href="help.php"><img src="pix/help.png" border="0"
+       width="16" height="16" align="middle" title="{$lang.help}" /></a>
+  </li>
+
+  <!-- company list -->
+  <li>
+    <a href="orgs.php"><img src="pix/book_open.png" border="0"
+       width="16" height="16" align="middle" title="{$lang.orgs}" /></a>
+  </li>
+
+  <li class="sep"></li>
+
+  {if $user} <!-- new contact -->
+    <li>
+      <a href="entry.php?mode=edit"><img src="pix/page_add.png" border="0"
+         width="16" height="16" align="middle" title="{$lang.new}"></a>
+    </li>
+  {/if}
+
+  <li class="sep"></li>
+
+  {if $dn} <!-- begin contact page functions -->
+    {if $user} <!-- begin editing functions -->
+
+      <!-- edit/show, copy, delete -->
+      {if $smarty.request.mode == 'edit'}
+        <li>
+          <a href="entry.php?dn={$dn|escape:url}"><img src="pix/page_red.png"
+           border="0" width="16" height="16" align="middle" title="{$lang.show}" /></a>
+        </li>
+      {elseif $smarty.request.mode != 'copy'}
+        <li>
+          <a href="entry.php?dn={$dn|escape:url}&mode=edit"><img src="pix/page_edit.png"
+             border="0" width="16" height="16" align="middle" title="{$lang.edit}" /></a>
+        </li>
+        <li>
+          <a href="entry.php?dn={$dn|escape:url}&mode=copy"><img src="pix/page_copy.png"
+             border="0" width="16" height="16" align="middle" title="{$lang.copy}" /></a>
+        </li>
+        <li>
+          <a href="entry.php?dn={$dn|escape:url}&del=1" onclick="return confirm('{$lang.msg_reallydel}');"><img
+             src="pix/page_delete.png" border="0" width="16" height="16" align="middle"
+             title="{$lang.delete}" /></a>
+        </li>
+      {/if}
+
+    {/if} <!-- end editing functions -->
+
+    <!-- vcf export -->
+    <li>
+      <a href="entry.php?dn={$dn|escape:url}&mode=vcf"><img src="pix/vcard.png"
+         border="0" width="16" height="16" align="middle" title="{$lang.vcfexport}" /></a>
+    </li>
+
+    <li class="sep"></li>
+  {/if} <!-- end contact page functions -->
+
+
+  {if $list} <!-- export -->
+    <li>
+      <a href="index.php?filter={$filter|escape:url}&marker={$marker|escape:url}&search={$search|escape:url}&export=csv"><img src="pix/page_white_excel.png" border="0" width="16" height="16" align="middle" title="{$lang.csvexport}" /></a>
+    </li>
+  {/if}
+
+  {if $user} <!-- import -->
+    <li>
+      <a href="import.php"><img src="pix/page_in.png" border="0"
+         width="16" height="16" align="middle" title="{$lang.vcfimport}" /></a>
+    </li>
+  {/if}
+
+  
+
+</ul>