Changeset 1311
- Timestamp:
- 12/04/07 19:15:05 (1 year ago)
- Files:
-
- trunk/wifidog-auth/wifidog/classes/Network.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wifidog-auth/wifidog/classes/Network.php
r1308 r1311 963 963 public function setGisLocation($pt) 964 964 { 965 965 $retval=false; 966 966 $db = AbstractDb::getObject(); 967 967 … … 973 973 if (!empty ($lat) && !empty ($long) && !empty ($alt)) { 974 974 $db->execSqlUpdate("UPDATE networks SET gmaps_initial_latitude = $lat, gmaps_initial_longitude = $long, gmaps_initial_zoom_level = $alt WHERE network_id = '{$this->getId()}'"); 975 $retval=true; 975 976 } 976 977 else { 977 978 $db->execSqlUpdate("UPDATE networks SET gmaps_initial_latitude = NULL, gmaps_initial_longitude = NULL, gmaps_initial_zoom_level = NULL WHERE network_id = '{$this->getId()}'"); 978 979 } 979 980 980 $this->refresh(); 981 981 } 982 return $retval; 982 983 } 983 984 … … 1644 1645 $gis_alt_value = htmlspecialchars($gis_point->getAltitude(), ENT_QUOTES); 1645 1646 1647 $html_network_gis_data[] = '<p>'._("Note that to be valid, all 3 values must be present.")."</p>\n"; 1646 1648 $title = _("Latitude"); 1647 $help = _("Center latitude for your the area ofyour wireless network");1649 $help = _("Center latitude for the area covered by your wireless network"); 1648 1650 $data = InterfaceElements::generateInputText($gis_lat_name, $gis_lat_value, "network_gis_latitude_input"); 1649 1651 $html_network_gis_data[] = InterfaceElements::generateAdminSectionContainer("network_gis_latitude", $title, $data, $help); 1650 1652 1651 1653 $title = _("Longitude"); 1652 $help = _("Center longitude for your the area ofyour wireless network");1654 $help = _("Center longitude for the area covered by your wireless network"); 1653 1655 $data = InterfaceElements::generateInputText($gis_long_name, $gis_long_value, "network_gis_longitude_input"); 1654 1656 $html_network_gis_data[] = InterfaceElements::generateAdminSectionContainer("network_gis_longitude", $title, $data, $help); 1655 1657 1656 1658 $title = _("Zoomlevel"); 1657 $help = _("Zoomlevel of the Google Map for your the area of your wireless network");1659 $help = _("Zoomlevel of the Google Map. 12 is a typical value."); 1658 1660 $data = InterfaceElements::generateInputText($gis_alt_name, $gis_alt_value, "network_gis_altitude_input"); 1659 1661 $html_network_gis_data[] = InterfaceElements::generateAdminSectionContainer("network_gis_altitude", $title, $data, $help);
