From: Andreas Gohr Date: Tue, 26 Jun 2007 13:26:21 +0000 (+0200) Subject: link map info to users X-Git-Tag: 0.7.1~48 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d0fc02bdedf33a6746db23b34bce6a58d9b75bb;p=contagged link map info to users darcs-hash:20070626132621-6e07b-1d01dfc3031fc72f58d4140f32db68f1c5e09c9e.gz --- diff --git a/index.php b/index.php index 9eba4f0..8fdc91c 100644 --- a/index.php +++ b/index.php @@ -45,6 +45,7 @@ $smarty->assign('filter',$_REQUEST['filter']); $smarty->assign('marker',$_REQUEST['marker']); $smarty->assign('search',$_REQUEST['search']); + $smarty->assign('org',$_REQUEST['org']); //display templates if(!empty($_REQUEST['export'])){ if ($conf['userlogreq'] == 1 && $user == ''){ diff --git a/templates/list_map_entry.tpl b/templates/list_map_entry.tpl index 3397583..9027a47 100644 --- a/templates/list_map_entry.tpl +++ b/templates/list_map_entry.tpl @@ -1,7 +1,11 @@ {ldelim} adr: '{$entry.street|escape:javascript}, {$entry.zip|escape:javascript} {$entry.location|escape:javascript}', - info: '\x3ch4\x3e{$entry.organization|escape:javascript}\x3c/h4\x3e{$entry.street|escape:javascript}\x3cbr /\x3e{$entry.zip|escape:javascript} {$entry.location|escape:javascript}' + info: '\x3ch4\x3e\x3ca href="entry.php?dn={$entry.dn|escape:url}"\x3e'+ + '{$entry.givenname|escape:javascript} {$entry.name|escape:javascript}\x3c/a\x3e\x3c/h4\x3e'+ + '{$entry.organization|escape:javascript}\x3cbr /\x3e'+ + '{$entry.street|escape:javascript}\x3cbr /\x3e'+ + '{$entry.zip|escape:javascript} {$entry.location|escape:javascript}' {rdelim}, diff --git a/templates/toolbar.tpl b/templates/toolbar.tpl index cd1df67..a44c5e1 100644 --- a/templates/toolbar.tpl +++ b/templates/toolbar.tpl @@ -62,11 +62,11 @@ {if $list} {if $smarty.request.export != 'map' && $conf.gmapkey}
  • - {$lang.map} + {$lang.map}
  • {/if}
  • - {$lang.csvexport}
  • {/if}