Ignore:
Timestamp:
03/09/2006 08:07:26 AM (6 years ago)
Author:
cirrus
Message:

Add: google suggest-like search input. Closes #93
Add: show_map=no option to not display the map. Closes #47

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/basic/includes/pages/nodes/nodes_search.tpl

    r140 r154  
    2222{include file=generic/page-title.tpl title="`$lang.all_nodes`" right="$help"} 
    2323<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="table-page"> 
    24 <tr> 
    25 <td class="table-page-split"> 
    26 <table align="center" bgcolor="#DBE0D7" cellpadding="0" cellspacing="2"> 
    27 <tr><td align="left">{include file=generic/link.tpl link=$link_gearth content="`$lang.google_earth`"}</td><td align="right">{include file=generic/link.tpl link=$link_fullmap content="`$lang.new_window`" target="_blank"}</td></tr> 
    28 <tr><td style="font-size:12px; text-align:center;" colspan="2">{if $gmap_key_ok} 
    29 <div id="map" style="width: 500px; height: 500px;"></div> 
    30 {else} 
    31 {$lang.message.error.gmap_key_failed.body|wordwrap:40|nl2br} 
    32 {/if} 
    33 </td></tr><tr><td style="font-size:12px;"> 
    34 <input type="checkbox" name="p2p" checked="checked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_orange.png" alt=$lang.backbone}{$lang.backbone} 
    35 <input type="checkbox" name="aps" checked="checked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_green.png" alt=$lang.aps}{$lang.aps} 
    36 <input type="checkbox" name="clients" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_blue.png" alt=$lang.clients}{$lang.clients} 
    37 <input type="checkbox" name="unlinked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_red.png" alt=$lang.unlinked}{$lang.unlinked} 
    38 </td> 
     24        <tr> 
     25                <td class="table-page-split"> 
     26                {if $gmap_key_ok!=="nomap"} 
     27                        <table align="center" bgcolor="#DBE0D7" cellpadding="0" cellspacing="2"> 
     28                                <tr> 
     29                                        <td align="left">{include file=generic/link.tpl link=$link_gearth content="`$lang.google_earth`"}</td><td align="right">{include file=generic/link.tpl link=$link_fullmap content="`$lang.new_window`" target="_blank"}</td> 
     30                                </tr> 
     31                                <tr> 
     32                                        <td style="font-size:12px; text-align:center;" colspan="2"> 
     33                                        {if $gmap_key_ok} 
     34                                                <div id="map" style="width: 500px; height: 500px;"></div> 
     35                                        {else} 
     36                                                {$lang.message.error.gmap_key_failed.body|wordwrap:40|nl2br} 
     37                                        {/if} 
     38                                        </td> 
     39                                </tr> 
     40                                <tr> 
     41                                        <td style="font-size:12px;"> 
     42                                                <input type="checkbox" name="p2p" checked="checked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_orange.png" alt=$lang.backbone}{$lang.backbone} 
     43                                                <input type="checkbox" name="aps" checked="checked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_green.png" alt=$lang.aps}{$lang.aps} 
     44                                                <input type="checkbox" name="clients" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_blue.png" alt=$lang.clients}{$lang.clients} 
     45                                                <input type="checkbox" name="unlinked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_red.png" alt=$lang.unlinked}{$lang.unlinked} 
     46                                        </td> 
     47                                </tr> 
     48                        </table> 
     49                {/if} 
     50                </td> 
     51        </tr> 
     52        <tr> 
     53                <td class="table-page-split"> 
     54                        {include file=generic/title1.tpl title="`$lang.nodes_search`" content=$form_search_nodes} 
     55                </td> 
     56        </tr> 
     57        <tr> 
     58                <td class="table-page-pad"> 
     59                        {include file=generic/title2.tpl title="`$lang.nodes_found`" content=$table_nodes} 
     60                </td> 
     61        </tr> 
    3962</table> 
    40 </td> 
    41 </tr> 
    42 <tr> 
    43 <td class="table-page-split"> 
    44 {include file=generic/title1.tpl title="`$lang.nodes_search`" content=$form_search_nodes} 
    45 </td> 
    46 </tr> 
    47 <tr> 
    48 <td class="table-page-pad"> 
    49 {include file=generic/title2.tpl title="`$lang.nodes_found`" content=$table_nodes} 
    50 </td> 
    51 </tr> 
    52 </table> 
Note: See TracChangeset for help on using the changeset viewer.