Changeset 193
- Timestamp:
- 03/05/2009 12:49:51 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
includes/pages/search/search_suggest.php (modified) (1 diff)
-
templates/basic/includes/pages/gmap/gmap_js.tpl (modified) (2 diffs)
-
templates/basic/includes/pages/search/search_suggest.tpl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/pages/search/search_suggest.php
r163 r193 32 32 global $db, $vars; 33 33 $q = get('q'); 34 $widget = get('widget'); 35 if(isset($widget) && $widget =="true") { 36 $this->tpl['widget'] = "1"; 37 $this->tpl['url'] = $vars['site']['url']; 38 $this->limit = 5; 39 } else { 40 $this->tpl['widget'] = "0"; 41 } 34 42 $i = 0; 35 43 -
trunk/templates/basic/includes/pages/gmap/gmap_js.tpl
r178 r193 262 262 263 263 function makeMarkers(nodes, icon_image, icon_zoom) { 264 var markers_t = Array();265 264 var bounds = map.getBounds(); 266 265 for (var i = 0; i < nodes.length; i++) { … … 306 305 } 307 306 var marker = createMarker(point, html, icon); 308 markers_t.push(marker);309 307 markers[node_id] = true; 310 308 map.addOverlay(marker); -
trunk/templates/basic/includes/pages/search/search_suggest.tpl
r154 r193 23 23 {if $ip_search} 24 24 {section name=ip loop=$ip_search} 25 <tr onclick="window.location.href='{$ip_search[ip].href}'" onmouseover="hover('mouse',this)"style="width: 100%">25 <tr {if $widget=="0"}onclick="window.location.href='{$ip_search[ip].href}'" onmouseover="hover('mouse',this)"{else}onclick="open_url('{$url}{$ip_search[ip].href}');" onmouseover="this.style.background='orange';" onmouseout="this.style.background='transparent';" style="cursor: pointer;"{/if} style="width: 100%"> 26 26 <td>{$ip_search[ip].ip_start}</td> 27 27 <td align="right">(#{$ip_search[ip].id})</td> … … 34 34 {elseif $dns_search} 35 35 {section name=zone loop=$dns_search} 36 <tr onclick="window.location.href='{$dns_search[zone].href}'" onmouseover="hover('mouse',this)"style="width: 100%">36 <tr {if $widget=="0"}onclick="window.location.href='{$dns_search[zone].href}'" onmouseover="hover('mouse',this)"{else}onclick="open_url('{$url}{$dns_search[zone].href}');" onmouseover="this.style.background='orange';" onmouseout="this.style.background='transparent';" style="cursor: pointer;"{/if} style="width: 100%"> 37 37 <td>{$dns_search[zone].name}</td> 38 38 <td align="right">(#{$dns_search[zone].id})</td> … … 45 45 {else} 46 46 {section name=node loop=$nodes_search} 47 <tr onclick="window.location.href='{$nodes_search[node].href}'" onmouseover="hover('mouse',this)"style="width: 100%">47 <tr {if $widget=="0"}onclick="window.location.href='{$nodes_search[node].href}'" onmouseover="hover('mouse',this)"{else}onclick="open_url('{$url}{$nodes_search[node].href}');" onmouseover="this.style.background='orange';" onmouseout="this.style.background='transparent';" style="cursor: pointer;"{/if} style="width: 100%"> 48 48 <td>{$nodes_search[node].name}</td> 49 49 <td align="right">(#{$nodes_search[node].id})</td>
Note: See TracChangeset
for help on using the changeset viewer.
