]> git.sur5r.net Git - contagged/blob - templates/toolbar.tpl
a5683c3d483d0a9813b0e2dac92293dc53a76c22
[contagged] / templates / toolbar.tpl
1 <ul>
2
3   <!-- company list -->
4   <li>
5     <a href="orgs.php" class="ed_orgs">{$lang.orgs}</a>
6   </li>
7
8   <li class="sep">&nbsp;</li>
9
10   {if $user} <!-- new contact -->
11     <li>
12       <a href="entry.php?mode=edit" class="ed_new">{$lang.new}</a>
13     </li>
14   {/if}
15
16   <li class="sep">&nbsp;</li>
17
18   {if $dn} <!-- begin contact page functions -->
19     {if $user} <!-- begin editing functions -->
20
21       <!-- edit/show, copy, delete -->
22       {if $smarty.request.mode == 'edit'}
23         <li>
24           <a href="entry.php?dn={$dn|escape:url}" class="ed_show">{$lang.show}</a>
25         </li>
26       {elseif $smarty.request.mode != 'copy'}
27         <li>
28           <a href="entry.php?dn={$dn|escape:url}&amp;mode=edit" class="ed_edit">{$lang.edit}</a>
29         </li>
30         <li>
31           <a href="entry.php?dn={$dn|escape:url}&amp;mode=copy" class="ed_copy">{$lang.copy}</a>
32         </li>
33         <li>
34           <a href="entry.php?dn={$dn|escape:url}&amp;del=1" onclick="return confirm('{$lang.msg_reallydel}');"
35              class="ed_delete">{$lang.delete}</a>
36         </li>
37       {/if}
38
39     {/if} <!-- end editing functions -->
40
41     <!-- vcf export -->
42     <li>
43       <a href="entry.php?dn={$dn|escape:url}&amp;mode=vcf" class="ed_vcfexport">{$lang.vcfexport}</a>
44     </li>
45
46     <li class="sep">&nbsp;</li>
47   {/if} <!-- end contact page functions -->
48
49
50   {if $list} <!-- export -->
51     <li>
52       <a href="index.php?filter={$filter|escape:url}&amp;marker={$marker|escape:url}&amp;search={$search|escape:url}&amp;export=csv"
53          class="ed_csvexport">{$lang.csvexport}</a>
54     </li>
55   {/if}
56
57   {if $user} <!-- import -->
58     <li>
59       <a href="import.php" class="ed_vcfimport">{$lang.vcfimport}</a>
60     </li>
61   {/if}
62
63
64   <!-- help -->
65   <li class="right">
66     <a href="help.php" class="ed_help">{$lang.help}</a>
67   </li>
68
69
70
71 </ul>