コード例 #1
0
ファイル: geoip_extension.php プロジェクト: rasuldev/torino
 public function GetFullInfo()
 {
     $ar = parent::GetFullInfo();
     $ar["POSTAL_CODE"] = array("TITLE" => GetMessage("STAT_CITY_GEOIP_EXT_POSTAL_CODE"), "VALUE~" => $this->postal_code, "VALUE" => htmlspecialcharsbx($this->postal_code));
     $ar["LONGITUDE"] = array("TITLE" => GetMessage("STAT_CITY_GEOIP_EXT_LONGITUDE"), "VALUE~" => $this->longitude, "VALUE" => htmlspecialcharsbx($this->longitude));
     $ar["LATITUDE"] = array("TITLE" => GetMessage("STAT_CITY_GEOIP_EXT_LATITUDE"), "VALUE~" => $this->latitude, "VALUE" => htmlspecialcharsbx($this->latitude));
     return $ar;
 }
コード例 #2
0
ファイル: geoip_mod.php プロジェクト: DarneoStudio/bitrix
 function GetFullInfo()
 {
     $ar = parent::GetFullInfo();
     $ar["CONTINENT"] = array("TITLE" => GetMessage("STAT_CITY_GEOIP_MOD_CONTINENT"), "VALUE~" => $this->continent_code, "VALUE" => htmlspecialcharsbx($this->continent_code));
     $ar["LONGITUDE"] = array("TITLE" => GetMessage("STAT_CITY_GEOIP_MOD_LONGITUDE"), "VALUE~" => $this->longitude, "VALUE" => htmlspecialcharsbx($this->longitude));
     $ar["LATITUDE"] = array("TITLE" => GetMessage("STAT_CITY_GEOIP_MOD_LATITUDE"), "VALUE~" => $this->latitude, "VALUE" => htmlspecialcharsbx($this->latitude));
     return $ar;
 }
コード例 #3
0
ファイル: stat_table.php プロジェクト: rasuldev/torino
 public function GetFullInfo()
 {
     if (!$this->country_full_name && !$this->region_name && !$this->city_name) {
         if ($this->city_id > 0) {
             $DB = CDatabase::GetModuleConnection('statistic');
             $rs = $DB->Query("\n\t\t\t\t\tSELECT\n\t\t\t\t\t\tC.NAME COUNTRY_NAME,\n\t\t\t\t\t\tCITY.REGION REGION_NAME,\n\t\t\t\t\t\tCITY.NAME CITY_NAME\n\t\t\t\t\tfrom\n\t\t\t\t\t\tb_stat_city CITY\n\t\t\t\t\t\tINNER JOIN b_stat_country C on C.ID = CITY.COUNTRY_ID\n\t\t\t\t\tWHERE\n\t\t\t\t\t\tCITY.ID = " . intval($this->city_id));
             $ar = $rs->Fetch();
             if ($ar) {
                 $this->country_full_name = $ar["COUNTRY_NAME"];
                 $this->region_name = $ar["REGION_NAME"];
                 $this->city_name = $ar["CITY_NAME"];
             }
         }
     }
     return parent::GetFullInfo();
 }