Changeset 157
- Timestamp:
- 03/12/2006 07:16:30 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
includes/main.php (modified) (2 diffs)
-
includes/pages/gearth/gearth_download.php (modified) (1 diff)
-
includes/pages/search/search_suggest.php (modified) (1 diff)
-
templates/basic/includes/main_menu.tpl (modified) (1 diff)
-
templates/basic/includes/pages/search/search_suggest_js.tpl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/main.php
r145 r157 56 56 $this->html->head->add_title($lang['site_title']); 57 57 $this->html->head->add_meta("text/html; charset=".$lang['charset'], "", "Content-Type"); 58 header("Content-Type: text/html; charset=".$lang['charset']); 58 59 59 60 $this->html->body->tpl['center'] = $this->center->output(); … … 63 64 if ($this->message->show) $this->html->body->tpl['message'] = $this->message->output(); 64 65 65 header("Content-Type: text/html; charset=".$lang['charset']);66 66 return $this->html->output(); 67 67 } -
trunk/includes/pages/gearth/gearth_download.php
r146 r157 72 72 } 73 73 if ($value['total_clients'] != 0) $xml2 .= $lang['clients'].": ".$value['total_clients']."<br />"; 74 //if ($value['total_client_on_ap'] != 0) $xml2 .= "Client on: ".$value['total_client_on_ap']." Access Point(s)<br />"; 75 $xml2 .= "<a href=\"".$vars['site']['url'].makelink(array("page" => "nodes", "node" => $value['id']))."\">".$lang['node_page']."</a><br />"; 74 $xml2 .= "<a href=\"".$vars['site']['url'].makelink(array("page" => "nodes", "node" => $value['id'], "show_map" => "no"))."\">".$lang['node_page']."</a><br />"; 76 75 $xml2 .= "</description>"; 77 76 $xml2 .= "<name>".htmlspecialchars($value['nodes__name'], ENT_COMPAT, $lang['charset'])."</name>\n"; -
trunk/includes/pages/search/search_suggest.php
r154 r157 44 44 'nodes.id ASC', 45 45 $this->limit); 46 foreach ( $this->tpl['nodes_search'] as $key => $value) {46 foreach ((array)$this->tpl['nodes_search'] as $key => $value) { 47 47 $this->tpl['nodes_search'][$key]['href'] = makelink(array("page" => "nodes", "node" => $this->tpl['nodes_search'][$key]['id'])); 48 48 } -
trunk/templates/basic/includes/main_menu.tpl
r156 r157 82 82 </tr> 83 83 <tr> 84 <td> 84 <td> 85 85 <div> 86 <input type="text" id="q" name="q" autocomplete="off" on focus="hover('',this.value);" onkeyup="hover(event.keyCode,this.value);" onblur="setTimeout('hideSearch()',500); hov=0;" />86 <input type="text" id="q" name="q" autocomplete="off" onkeydown="if(hov!=-1) this.value = origval;" onfocus="hover('',this.value);" onkeyup="hover(event.keyCode,this.value);" onblur="setTimeout('hideSearch()',500); hov=0;" /> 87 87 </div> 88 88 <div align="left" id="searchResult" name="searchResult" style="font-family:Arial; font-size:12px; background-color: white; border:#000000 dashed 1px; padding:0px; display: none; position: absolute; width: 150px;"></div> -
trunk/templates/basic/includes/pages/search/search_suggest_js.tpl
r155 r157 57 57 document.getElementById('searchResult').style.display = 'block'; 58 58 // Write the contents of this URL to the searchResult layer 59 if (req.responseText == '') 60 searchResult.style.display = 'none'; 59 if (origval == null) { 60 document.getElementById('searchResult').style.display = 'none'; 61 } 61 62 else 62 getObject("searchResult").innerHTML = req.responseText;63 getObject("searchResult").innerHTML = req.responseText; 63 64 } 64 65 } … … 82 83 function hover(ev,val) { 83 84 test = document.getElementById('searchResult').getElementsByTagName('tr'); 84 85 if(document.getElementById('q').value == "") origval = null; 85 86 if(ev == 38 && hov != -1){ 87 if(document.getElementById('searchResult').style.display == 'none') 88 document.getElementById('searchResult').style.display = 'block'; 86 89 hov--; 87 90 if(hov<0) { … … 98 101 } 99 102 } 103 document.getElementById('q').select(); 100 104 } 101 105 else if(ev == 40) { 106 if(document.getElementById('searchResult').style.display == 'none') 107 document.getElementById('searchResult').style.display = 'block'; 102 108 hov++; 103 109 if(hov==test.length) hov=test.length-1; … … 112 118 } 113 119 } 120 document.getElementById('q').select(); 114 121 } 115 122 else if(ev == 13 && hov != -1) { 116 123 document.getElementById('searchResult').style.display = 'none'; 124 } 125 else if(ev == 27) { 126 document.getElementById('searchResult').style.display = 'none'; 127 document.getElementById('q').select(); 117 128 } 118 129 else if(ev == "mouse") {
Note: See TracChangeset
for help on using the changeset viewer.
