<ul>
+ {if $user or !$conf.userlogreq}
- <!-- company list -->
- <li>
- <a href="orgs.php" class="ed_orgs">{$lang.orgs}</a>
- </li>
-
- <li class="sep"> </li>
-
- {if $user} <!-- new contact -->
- <li>
- <a href="entry.php?mode=edit" class="ed_new">{$lang.new}</a>
- </li>
- {/if}
-
- <li class="sep"> </li>
-
- {if $dn} <!-- begin contact page functions -->
+ <!-- company list -->
+ <li>
+ <a href="orgs.php" class="ed_orgs">{$lang.orgs}</a>
+ </li>
- {if $user} <!-- begin editing functions -->
+ <li class="sep"> </li>
- <!-- edit/show, copy, delete -->
- {if $smarty.request.mode == 'edit'}
+ {if $user} <!-- new contact -->
<li>
- <a href="entry.php?dn={$dn|escape:url}" class="ed_show">{$lang.show}</a>
- </li>
- {elseif $smarty.request.mode != 'copy'}
- <li>
- <a href="entry.php?dn={$dn|escape:url}&mode=edit" class="ed_edit">{$lang.edit}</a>
- </li>
- <li>
- <a href="entry.php?dn={$dn|escape:url}&mode=copy" class="ed_copy">{$lang.copy}</a>
- </li>
- <li>
- <a href="entry.php?dn={$dn|escape:url}&del=1" onclick="return confirm('{$lang.msg_reallydel}');"
- class="ed_delete">{$lang.delete}</a>
+ <a href="entry.php?mode=edit" class="ed_new">{$lang.new}</a>
</li>
{/if}
- {/if} <!-- end editing functions -->
-
- <!-- vcf export -->
- <li>
- <a href="entry.php?dn={$dn|escape:url}&mode=vcf" class="ed_vcfexport">{$lang.vcfexport}</a>
- </li>
-
- <!-- show on map -->
- {if $smarty.request.mode == 'map' && $conf.gmapkey}
+ <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}" class="ed_show">{$lang.show}</a>
+ </li>
+ {elseif $smarty.request.mode != 'copy'}
+ <li>
+ <a href="entry.php?dn={$dn|escape:url}&mode=edit" class="ed_edit">{$lang.edit}</a>
+ </li>
+ <li>
+ <a href="entry.php?dn={$dn|escape:url}&mode=copy" class="ed_copy">{$lang.copy}</a>
+ </li>
+ <li>
+ <a href="entry.php?dn={$dn|escape:url}&del=1" onclick="return confirm('{$lang.msg_reallydel}');"
+ class="ed_delete">{$lang.delete}</a>
+ </li>
+ {/if}
+
+ {/if} <!-- end editing functions -->
+
+ <!-- vcf export -->
<li>
- <a href="entry.php?dn={$dn|escape:url}" class="ed_show">{$lang.show}</a>
+ <a href="entry.php?dn={$dn|escape:url}&mode=vcf" class="ed_vcfexport">{$lang.vcfexport}</a>
</li>
- {elseif $conf.gmapkey}
+
+ <!-- show on map -->
+ {if $smarty.request.mode == 'map' && $conf.gmapkey}
+ <li>
+ <a href="entry.php?dn={$dn|escape:url}" class="ed_show">{$lang.show}</a>
+ </li>
+ {elseif $conf.gmapkey}
+ <li>
+ <a href="entry.php?dn={$dn|escape:url}&mode=map" class="ed_map">{$lang.map}</a>
+ </li>
+ {/if}
+
+ <li class="sep"> </li>
+ {/if} <!-- end contact page functions -->
+
+
+ {if $list} <!-- export -->
+ {if $smarty.request.export != 'map' && $conf.gmapkey}
+ <li>
+ <a href="index.php?filter={$filter|escape:url}&marker={$marker|escape:url}&search={$search|escape:url}&org={$org|escape:url}&export=map" class="ed_map">{$lang.map}</a>
+ </li>
+ {/if}
<li>
- <a href="entry.php?dn={$dn|escape:url}&mode=map" class="ed_map">{$lang.map}</a>
+ <a href="index.php?filter={$filter|escape:url}&marker={$marker|escape:url}&search={$search|escape:url}&org={$org|escape:url}&export=csv"
+ class="ed_csvexport">{$lang.csvexport}</a>
</li>
- {/if}
-
- <li class="sep"> </li>
- {/if} <!-- end contact page functions -->
-
+ {/if}
- {if $list} <!-- export -->
- {if $smarty.request.export != 'map' && $conf.gmapkey}
+ {if $user} <!-- import -->
<li>
- <a href="index.php?filter={$filter|escape:url}&marker={$marker|escape:url}&search={$search|escape:url}&org={$org|escape:url}&export=map" class="ed_map">{$lang.map}</a>
+ <a href="import.php" class="ed_vcfimport">{$lang.vcfimport}</a>
</li>
- {/if}
- <li>
- <a href="index.php?filter={$filter|escape:url}&marker={$marker|escape:url}&search={$search|escape:url}&org={$org|escape:url}&export=csv"
- class="ed_csvexport">{$lang.csvexport}</a>
- </li>
- {/if}
+ {/if}
- {if $user} <!-- import -->
- <li>
- <a href="import.php" class="ed_vcfimport">{$lang.vcfimport}</a>
- </li>
{/if}
-
<!-- help -->
<li class="right">
<a href="help.php" class="ed_help">{$lang.help}</a>