]> git.sur5r.net Git - contagged/blob - templates/toolbar.tpl
a44c5e1b0a8b4f63f4aee6ffb6cac81b6affeb8e
[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
20     {if $user} <!-- begin editing functions -->
21
22       <!-- edit/show, copy, delete -->
23       {if $smarty.request.mode == 'edit'}
24         <li>
25           <a href="entry.php?dn={$dn|escape:url}" class="ed_show">{$lang.show}</a>
26         </li>
27       {elseif $smarty.request.mode != 'copy'}
28         <li>
29           <a href="entry.php?dn={$dn|escape:url}&amp;mode=edit" class="ed_edit">{$lang.edit}</a>
30         </li>
31         <li>
32           <a href="entry.php?dn={$dn|escape:url}&amp;mode=copy" class="ed_copy">{$lang.copy}</a>
33         </li>
34         <li>
35           <a href="entry.php?dn={$dn|escape:url}&amp;del=1" onclick="return confirm('{$lang.msg_reallydel}');"
36              class="ed_delete">{$lang.delete}</a>
37         </li>
38       {/if}
39
40     {/if} <!-- end editing functions -->
41
42     <!-- vcf export -->
43     <li>
44       <a href="entry.php?dn={$dn|escape:url}&amp;mode=vcf" class="ed_vcfexport">{$lang.vcfexport}</a>
45     </li>
46
47     <!-- show on map -->
48     {if $smarty.request.mode == 'map' && $conf.gmapkey}
49         <li>
50           <a href="entry.php?dn={$dn|escape:url}" class="ed_show">{$lang.show}</a>
51         </li>
52     {elseif $conf.gmapkey}
53         <li>
54           <a href="entry.php?dn={$dn|escape:url}&amp;mode=map" class="ed_map">{$lang.map}</a>
55         </li>
56     {/if}
57
58     <li class="sep">&nbsp;</li>
59   {/if} <!-- end contact page functions -->
60
61
62   {if $list} <!-- export -->
63     {if $smarty.request.export != 'map' && $conf.gmapkey}
64         <li>
65           <a href="index.php?filter={$filter|escape:url}&amp;marker={$marker|escape:url}&amp;search={$search|escape:url}&amp;org={$org|escape:url}&amp;export=map" class="ed_map">{$lang.map}</a>
66         </li>
67     {/if}
68     <li>
69       <a href="index.php?filter={$filter|escape:url}&amp;marker={$marker|escape:url}&amp;search={$search|escape:url}&amp;org={$org|escape:url}&amp;export=csv"
70          class="ed_csvexport">{$lang.csvexport}</a>
71     </li>
72   {/if}
73
74   {if $user} <!-- import -->
75     <li>
76       <a href="import.php" class="ed_vcfimport">{$lang.vcfimport}</a>
77     </li>
78   {/if}
79
80
81   <!-- help -->
82   <li class="right">
83     <a href="help.php" class="ed_help">{$lang.help}</a>
84   </li>
85
86
87
88 </ul>