Ignore:
Timestamp:
Mar 1, 2011, 11:40:34 AM (13 years ago)
Author:
cljosse
Message:

[edit_gmaps] set conformity with rv_gmaps install.

Location:
extensions/edit_gmaps/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/edit_gmaps/admin/admin.php

    r9412 r9445  
    22if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    33include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
    4 
    5 $colonnes = cl_get_columns_of(IMAGES_TABLE);
    6 
    7 $key = array_search('lon', $colonnes[IMAGES_TABLE]);
    8 if (!$key){
    9     $q = 'ALTER TABLE '.IMAGES_TABLE.' ADD COLUMN `lon` DOUBLE(9,6)';
    10     pwg_query($q);     
    11 }       
    12 $key = array_search('lat', $colonnes[IMAGES_TABLE]);
    13 if (!$key){
    14     $q = 'ALTER TABLE '.IMAGES_TABLE.' ADD COLUMN `lat` DOUBLE(9,6)';
    15     pwg_query($q);     
    16 }       
    17 $key = array_search('alt', $colonnes[IMAGES_TABLE]);
    18 if (!$key){
    19     $q = 'ALTER TABLE '.IMAGES_TABLE.' ADD COLUMN `alt` DOUBLE(9,6)';
    20     pwg_query($q);     
    21 }       
    22 
    23        
    24 /**
    25 * list all columns of each given table
    26 *
    27 * @return array of array
    28 */
    29 function cl_get_columns_of($table)
    30 {
    31     $columns_of = array();
    32     $query = 'DESC '.$table.';';
    33     $result = mysql_query($query);     
    34     $columns_of[$table] = array();   
    35 
    36     if ($result)   
    37         while ($row = mysql_fetch_row($result))
    38            array_push($columns_of[$table], $row[0]);
    39        
    40     return $columns_of;
    41 }
    424
    435
  • extensions/edit_gmaps/admin/header_2_2.tpl

    r9412 r9445  
    1 {combine_script id="jquery" load="header" path = $ROOT_URL|@cat:"themes/default/js/jquery.js"}
     1{combine_script id="jquery" load="header" path = $ROOT_URL|@cat:"themes/default/js/jquery.min.js "}
    22{combine_script id="jquery.cluetip" path = $ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.js" require="jquery" }
    3 {combine_script id="jquery.ui" path=$ROOT_URL|@cat:"themes/default/js/ui/jquery.ui.core.js" require="jquery"}
    4 {combine_script id="jquery.ui.resizable" path=$ROOT_URL|@cat:"themes/default/js/ui/jquery.ui.resizable.js" require="jquery,jquery.ui"}
    5 {combine_script id="jquery.ui.slider" path=$ROOT_URL|@cat:"themes/default/js/ui/jquery.ui.slider.js" require="jquery,jquery.ui"}
    6 {combine_script id="jquery.ui.draggable" path=$ROOT_URL|@cat:"themes/default/js/ui/jquery.ui.draggable.js" require="jquery,jquery.ui"}
     3{combine_script id="jquery.ui" path=$ROOT_URL|@cat:"themes/default/js/ui/minified/jquery.ui.core.min.js " require="jquery"}
     4{combine_script id="jquery.ui.resizable" path=$ROOT_URL|@cat:"themes/default/js/ui/minified/jquery.ui.resizable.min.js " require="jquery,jquery.ui"}
     5{combine_script id="jquery.ui.slider" path=$ROOT_URL|@cat:"themes/default/js/ui/minified/jquery.ui.slider.min.js " require="jquery,jquery.ui"}
     6{combine_script id="jquery.ui.draggable" path=$ROOT_URL|@cat:"themes/default/js/ui/minified/jquery.ui.draggable.min.js " require="jquery,jquery.ui"}
    77
    88
Note: See TracChangeset for help on using the changeset viewer.