Changeset 17761
- Timestamp:
- Sep 5, 2012, 6:15:07 PM (12 years ago)
- Location:
- extensions/edit_gmaps
- Files:
-
- 1 added
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/edit_gmaps/admin/admin.php
r9445 r17761 2 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 3 include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); 4 5 4 6 5 $template->set_filename('plugin_admin_content', dirname(__FILE__).'/admin.tpl'); … … 14 13 15 14 $tabsheet = new tabsheet(); 16 $tabsheet->add( 'edit', 'Edit', add_url_params( $my_base_url, array('tab'=>'edit') ) ); 17 //$tabsheet->add( 'edit_meta', 'Edit_meta', add_url_params( $my_base_url, array('tab'=>'edit_meta') ) ); 15 $tabsheet->add( 'edit', 'edit', add_url_params( $my_base_url, array('tab'=>'edit') ) ); 18 16 $tabsheet->select($page['tab']); 19 17 $tabsheet->assign(); 20 21 18 $my_base_url = $tabsheet->sheets[ $page['tab'] ]['url']; 22 $ template->set_filename( 'tab_data', dirname(__FILE__).'/admin_'.$page['tab'].'.tpl' );23 include_once( dirname(__FILE__).'/admin_'.$page['tab'].'.php'); 24 19 $ntpl=dirname(__FILE__).'\\admin_'.$page['tab'].'.tpl' ; 20 $template->set_filename( 'tab_data', $ntpl ); 21 include_once( dirname(__FILE__).'/admin_'.$page['tab'].'.php'); 25 22 $template->assign_var_from_handle( 'TAB_DATA', 'tab_data'); 26 23 $template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content'); 27 28 24 ?> -
extensions/edit_gmaps/admin/admin_edit.php
r12126 r17761 5 5 $admin_url = PHPWG_ROOT_PATH.'admin.php'; 6 6 7 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');8 7 9 8 /***********************************************************************************/ … … 25 24 $icon_path = 'themes/default/icon/help.png'; 26 25 $path_js= 'themes/default/js/' ; 26 27 $global_tpl=realpath(PHPWG_ROOT_PATH).'\\admin\\themes\\default\\template\\batch_manager_global.tpl' ; 28 29 $template->assign( 30 array( 'EDIT_CL_PATH' => EDIT_CL_PATH, 31 'path_js' => $path_js, 32 'VERSION'=> $version, 33 'EDIT_CL_PATH_ABS' => dirname(__FILE__).'/', 34 'GLOBAL_TPL' => $global_tpl 35 ) 36 ); 37 27 38 /****************************************************************/ 28 39 $info_message="" ; 29 40 $erreur_message=""; 30 41 /****************************************************************/ 31 if ( !isset($_GET['cat']) ) $_GET['cat'] = 'caddie'; 32 $_GET['mode'] = 'map'; 33 if (PHPWG_VERSION < 2.2 ) { 34 include (PHPWG_ROOT_PATH.'admin/element_set.php'); 35 } else { 36 if (!isset($page['title'])) $page['title']=""; 37 include (PHPWG_ROOT_PATH.'admin/batch_manager.php'); 38 $template->concat('TABSHEET_TITLE', ' '.l10n_dec('%d image', '%d images', count($page['cat_elements_id'])).' - '.$page['title']); 39 } 42 if ( !isset($_GET['mode']) ) $_GET['mode'] = 'global'; 43 if(!isset($_GET['cat'])) $_GET['cat']="" ; 44 if(isset($_POST['filter_prefilter'])){ 45 $_GET['cat'] = $_POST['filter_prefilter']; 46 } 47 48 if (!isset($page['title'])) $page['title']=""; 49 if(!isset($_POST['selectAction'])) $_POST['selectAction']="" ; 50 51 //$info_message .= cl_edit_functions::Memo_Vars($_POST); 52 check_input_parameter('selection', $_POST, true, PATTERN_ID); 53 54 include (PHPWG_ROOT_PATH.'admin/batch_manager.php'); 55 56 if(isset($page['cat_elements_id'])) 57 $template->concat('TABSHEET_TITLE', ' '.l10n_dec('%d image', '%d images', count($page['cat_elements_id'])).' - '.$page['title']); 58 59 60 $tabsheet = new tabsheet(); 61 $tabsheet->assign(); 62 63 // $current = $template->get_template_vars('TAB_DATA'); 64 // prefilters,tags 65 66 // $erreur_message .= cl_edit_functions::Memo_Vars( $current); 67 40 68 //=============================================================== 41 69 $collection = array(); 42 if(!isset($_POST['target'])) $_POST['target']=""; 43 44 switch ($_POST['target']){ 45 case 'all' : 46 $collection = $page['cat_elements_id']; 47 break; 48 case 'selection' : 49 if (!isset($_POST['selection']) or count($_POST['selection']) == 0) 50 array_push($page['errors'], l10n('Select at least one photo')); 51 else 70 if(isset($_POST['selection'])) 52 71 $collection = $_POST['selection']; 53 break;54 }55 if (isset($_POST['selection'])){}56 72 //=============================================================== 57 73 $images=array(); 58 if (!empty($_GET['display'])) 59 { 74 if (!empty($_GET['display'])){ 60 75 if ('all' == $_GET['display']) 61 76 $page['nb_images'] = count($page['cat_elements_id']); … … 66 81 $page['nb_images'] = 20; 67 82 68 if ( !empty($page['cat_elements_id']) ) 69 { 83 if ( !empty($page['cat_elements_id']) ){ 70 84 $query=' 71 SELECT id,tn_ext,name,path,file,lat,lon,altFROM '.IMAGES_TABLE.'85 SELECT * FROM '.IMAGES_TABLE.' 72 86 WHERE id IN ('.implode(',',$page['cat_elements_id']).') 73 87 '.$conf['order_by'].' … … 77 91 while ( $row=mysql_fetch_assoc($result) ) 78 92 $images[] = $row; 93 79 94 } 80 95 //=============================================================== … … 169 184 $_POST['update'] ="ok"; 170 185 } 171 186 //====================================================================== 172 187 if ( isset($_POST['submit']) ) { 173 188 /******** Mise à jour base de données *****/ … … 179 194 //=============================================================== 180 195 if($lat !="") cl_edit_controler::add_data_base($collection,$lat,$lon,$alt) ; 181 $_POST['submit'] = l10n(' Submit') ;196 $_POST['submit'] = l10n('selectAction') ; 182 197 foreach ($collection as $id_0){ 183 198 foreach ($images as $image) { … … 192 207 } 193 208 } 194 /**************************************/ 195 196 $specials_selected = null; 197 foreach( array('caddie'=>'Caddie', 'recent'=>'Recent photos') as $k => $v){ 198 $link = $admin_url.get_query_string_diff(array('start','cat')).'&cat='.$k; 199 $template->append( 200 'specials', 201 array( 202 $link => l10n($v), 203 ), 204 true 205 ); 206 if ($k == $_GET['cat']) $specials_selected = $link; 207 } 208 209 210 $template->assign('specials_selected', $specials_selected); 209 211 210 /****************************************/ 212 211 $query = ' … … 240 239 //======================================================================== 241 240 $v_exif=""; 241 $current = $template->get_template_vars('thumbnails'); 242 $j=0; 243 $thumbnails= array(); 242 244 foreach ($images as $image){ 243 244 245 $infos_gps = array(); 245 246 $infos_gps = cl_edit_controler::Get_exif_gps( $image['path'],$image,false) ; 246 $v_exif=$infos_gps['is_exif']? true:false;247 $v_exif=$infos_gps['is_exif']?"EXIF":"" ; 247 248 $v_db=false ; 248 249 $v_db=$image['lat']!=0 && $image['lon']!=0; 249 250 if( $infos_gps['lat'] !=0 || $infos_gps['lon'] !=0 ) { 251 250 $v_db=$v_db?"BD":""; 251 252 if( $infos_gps['lat'] !=0 || $infos_gps['lon'] !=0 ) { 252 253 $new= ( !isset($image['lat'])? true: $image['lat']!=$infos_gps['lat'] ) ; 253 254 $image['lat']=$infos_gps['lat']; … … 255 256 $image['alt']=$infos_gps['alt']; 256 257 $sel_img= array($image['id']); 257 if ($new) cl_edit_controler::add_data_base( $sel_img,$image['lat'],$image['lon'],$image['alt']) ; 258 if ($new) cl_edit_controler::add_data_base( $sel_img,$image['lat'],$image['lon'],$image['alt']) ; 258 259 } 259 //================================================= 260 $tpl_var = array_merge( $image, 261 array( 262 'U_EXIF' => $v_exif, 263 'U_DB' => $v_db, 264 'U_TN' => get_thumbnail_url($image), 265 'TITLE' => get_thumbnail_title($image) 266 ) ); 267 268 if ( isset($image['lat']) ){ 269 $tpl_var['U_MAP'] = cl_make_map_picture_url( 270 array('image_id'=>$image['id'], 271 'image_file'=>$image['file']) ); 272 } 273 274 $template->append('thumbnails', $tpl_var); 275 } 260 //================================================= 261 $name = render_element_name($image); 262 $desc = render_element_description($image); 263 if (!in_array($image['id'],$current[$j])) { 264 $j =0; 265 foreach($current as $rK => $rV){ 266 if (!in_array($image['id'],$rV)) { 267 $j++ ; 268 } else{ 269 // $info_message .= cl_edit_functions::Memo_Vars($current[$j]); 270 break ; 271 } 272 } 273 } 274 //================================================= 275 $tpl_var = array_merge( 276 $current[$j], array( 277 'ID' =>$image['id'], 278 'lat' => $image['lat'] , 279 'lon' => $image['lon'] , 280 'alt' => $image['alt'] , 281 'TN_SRC' => get_thumbnail_url($image), 282 'TITLE' => get_thumbnail_title($image,$name,$desc), 283 'U_EXIF' => $v_exif, 284 'U_BD' => $v_db , 285 'U_MAP' => cl_make_map_picture_url( 286 array( 287 'image_id'=>$image['id'], 288 'image_file'=>$image['file'], 289 ) 290 ) 291 ) 292 ); 293 294 $thumbnails[]=$tpl_var; 295 $j++; 296 } 297 298 $template->assign('thumbnails', $thumbnails); 276 299 277 300 … … 281 304 ) 282 305 ); 283 284 306 285 307 //================================================================================== 286 308 $match=""; 287 309 if ( isset($_POST['submit']) ) { 288 if ($_POST['submit']==l10n('Submit') ) { 310 311 if ($_POST['submit']==l10n('selection') ) { 312 $collection =$_POST['selection']; 313 } 314 if ($_POST['submit']==l10n('add') ) { 289 315 $_POST['selection']=array(); 290 316 $collection =array(); … … 293 319 if ($_POST['submit']==l10n('reset' ) ) { 294 320 $_POST['selection']=array(); 321 $collection =array(); 295 322 unset($collection); 296 323 } 297 324 } 298 325 //================================================================================= 299 $src=""; 300 $template->assign( 301 array( 'EDIT_CL_PATH' => EDIT_CL_PATH, 302 'path_js' => $path_js, 303 'VERSION'=> $version, 304 'EDIT_CL_PATH_ABS' => dirname(__FILE__).'/', 305 ) 306 ); 307 326 $src=""; 308 327 $template->assign( 'coordinates', 309 328 array( 'FILE' => '', … … 315 334 ) 316 335 ); 317 //====================================================================== 336 //====================================================================== 318 337 if (isset($_POST['submit']) and $_POST['submit']==l10n('selection' )){ 338 $collection=$_POST['selection'] ; 339 319 340 if (isset($collection)) { 320 341 $init_info =true; … … 359 380 $lonDMS= dec2dms($lon) ; 360 381 $latDMS= dec2dms($lat) ; 361 362 382 $v_db=false ; 363 383 $v_db=$lon!=0 && $lat!=0; … … 374 394 'lonDMS' => $lonDMS[3] , 375 395 'adresse' => $adresse , 376 ' U_TN' => get_thumbnail_url($image),396 'TN_SRC' => get_thumbnail_url($image), 377 397 'TITLE' => get_thumbnail_title($image), 378 398 'U_EXIF' => $infos_gps['is_exif'] , -
extensions/edit_gmaps/admin/admin_edit.tpl
r12126 r17761 1 1 {html_head} 2 {* $Id: admin_edit.tpl 2011-01-03 *} 3 {if PHPWG_VERSION < 2.2 } 4 {include file=$EDIT_CL_PATH_ABS|@cat:'header_2_1.tpl'} 5 {else} 6 {include file= $EDIT_CL_PATH_ABS|@cat:'header_2_2.tpl'} 7 {/if} 8 2 {include file= $EDIT_CL_PATH_ABS|@cat:'header.tpl'} 9 3 {assign var='visible' value = true } 10 4 {if not empty($Selectthumbnails) } … … 34 28 onLoad(); 35 29 }); 36 37 30 38 31 … … 47 40 border:outset; 48 41 } 49 50 51 42 {/literal} 52 43 </style> 53 54 55 56 {/html_head} 44 {/html_head} 45 {$file_name} 46 <fieldset id="Elements" class="fieldset" > 47 {include file= $GLOBAL_TPL} 48 </fieldset> 49 <script type="text/javascript"> 50 {if empty($Selectthumbnails) } 51 var no_affiche="false" ; 52 {else} 53 var no_affiche="true" ; 54 {/if} 55 </script> 56 {footer_script}{literal} 57 57 58 {$file_name} 59 60 61 <fieldset class="fieldset"> 62 <legend>{'Display options'|@translate}</legend> 63 <table ><td class="cluetip" title="{'set'|translate}|{'hlp_line1'|@translate}." align="left" > 64 <form> 65 Set: 66 <select onchange="document.location = this.options[this.selectedIndex].value;" > 67 <optgroup label="Specials"> 68 {html_options options=$specials} 69 </optgroup> 70 <optgroup label="{'Categories'|@translate}"> 71 {html_options options=$categories selected=$categories_selected} 72 </optgroup> 73 <!-- <optgroup label="{'Tags'|@translate}"></optgroup> --> 74 </select> 75 </form> 76 </td> 77 <td > {'hlp_line2'|@translate} </td> 78 </table> 79 <p>{'elements per page'|@translate}: 80 <a href="{$U_DISPLAY}&display=20">20</a> 81 | <a href="{$U_DISPLAY}&display=50">50</a> 82 | <a href="{$U_DISPLAY}&display=100">100</a> 83 | <a href="{$U_DISPLAY}&display=all">{'all'|@translate}</a> 84 </p> 85 </fieldset> 86 58 jQuery(document).ready(function() { 59 60 61 62 {/literal} 63 val0="{'reset'|@translate}"; 64 jQuery('input[value='+val0+']').click(function (i) {ldelim} 65 jQuery("#selectNone").click(); 66 }); 67 68 title="{'selection'|@translate}|{'hlp_line3'|@translate}."; 69 value="{'selection'|@translate}" ; 70 71 message='<p><input class="cluetip submit" type="submit" name="submit" title="'+ title +'" value="'+ value +'" /> '; 72 73 message+='</p>'; 74 jQuery("#permitAction").append(message); 75 76 77 }); 78 {/footer_script} 87 79 <form action="" method="post" id="Envoie" name="Envoie" > 88 {if not empty($thumbnails) && empty($Selectthumbnails) } {/if}89 90 <fieldset id="Elements" class="fieldset">91 <legend>{'Elements'|@translate}92 {if !empty($navbar) }{include file='navigation_bar.tpl'} {/if}</legend>93 <fieldset >94 <ul class="thumbnails">95 {foreach from=$thumbnails item=thumbnail}96 <li><span class="wrap1">97 <label>98 <span class="wrap2"><span>99 <img src="{$thumbnail.U_TN}" alt="{$thumbnail.file}" title="{$thumbnail.TITLE}" class="thumbnail" />100 </span></span>101 <input type="checkbox" name="selection[]" value="{$thumbnail.id}" />102 </label>103 <span class="thumbLegend" >104 <div> {$thumbnail.file} </div>105 {if isset($thumbnail.U_MAP)}106 <div ><a href="{$thumbnail.U_MAP}" target="_blank" >107 {if $thumbnail.U_EXIF }108 EXIF109 {/if}110 {if $thumbnail.U_DB }111 BD112 {/if}</a>113 </div>114 115 {/if}116 117 118 </span>119 120 </span>121 </li>122 {/foreach}123 </ul>124 </fieldset>125 126 <fieldset>127 <label> {'target'|@translate}</label>128 <table>129 <td><label><input type="radio" name="target" value="all" /> {'all'|@translate}</label></td>130 <td><label><input type="radio" name="target" value="selection" checked="checked" /> {'selection'|@translate}</label></td>131 <input class="cluetip submit" title="{'selection'|@translate}|{'hlp_line3'|@translate}." type="submit" name="submit" value="{'selection'|@translate}" />132 <td>133 <input class="cluetip submit" title="{'update_exif'|@translate}|{'hlp_update_exif'|@translate}." type="submit" value="{'update_exif'|@translate}" name="update" {$tag_input_enabled} /></td>134 135 </table>136 </fieldset>137 </fieldset>138 <script>139 140 {if empty($Selectthumbnails) }141 var no_affiche="false" ;142 {else}143 var no_affiche="true" ;144 {/if}145 </script>146 80 147 81 <fieldset id ="geoposition" class="fieldset" > 148 <legend>{'Selection'|@translate}</legend> 149 82 <legend>{'Selection'|@translate}</legend> 150 83 <fieldset> 151 84 <ul class="thumbnails"> 152 153 85 {foreach from=$Selectthumbnails item=thumbnail} 154 86 <li><span class="wrap1"> 155 87 <label> 156 <span class="wrap2"><span> 157 <img src="{$thumbnail.U_TN}" alt="{$thumbnail.file}" title="{$thumbnail.TITLE}" class="thumbnail" /> 158 </span> 88 <span class="wrap2"> 89 <span><img src="{$thumbnail.TN_SRC}" alt="{$thumbnail.file}" title="{$thumbnail.TITLE}" class="thumbnail" /></span> 90 <span class="thumbLegend"> 91 <div>{$thumbnail.file} </div> 92 {if $thumbnail.U_EXIF } Exif{/if} 93 {if $thumbnail.U_BD } Bd {/if} 94 {if isset($thumbnail.U_MAP)} 95 <a href="{$thumbnail.U_MAP}" target="_blank"><div>{$thumbnail.lat}</div><div>{$thumbnail.lon}</div></a> 96 {/if} 97 </span> 98 159 99 </span> 160 100 <br/> 161 101 </label> 162 102 <input type="hidden" value={$thumbnail.id} name="selection[]" /> 163 <span class="thumbLegend"> <div>{$thumbnail.file} </div> 164 {if $thumbnail.U_EXIF } Exif{/if} 165 {if $thumbnail.U_BD } Bd {/if} 166 {if isset($thumbnail.U_MAP)} 167 <a href="{$thumbnail.U_MAP}" target="_blank"><div>{$thumbnail.lat}</div><div>{$thumbnail.lon}</div></a> 168 {/if} 169 170 </span> 103 171 104 </span> 172 105 </li> … … 174 107 {/foreach} 175 108 </ul> 176 </fieldset> 177 <fieldset> 109 <p></p><p></p> 110 111 </fieldset> 112 113 <fieldset> 178 114 <label>{'command'|@translate}</label> 179 115 180 116 <table> 181 117 <td> 182 <input class="cluetip submit" title="{'reset'|@translate}|{'hlp_line4'|@translate}." 183 type="submit" name="submit" value="{'reset'|@translate}" /><br /> 184 </td> 185 <td> 186 <input class="cluetip submit" title="{'selection'|@translate}|{'hlp_line3'|@translate}." 187 type="submit" name="submit" value="{'selection'|@translate}" /> 118 <input class="cluetip submit" title="{'return'|@translate}|{'hlp_line4'|@translate}." 119 type="submit" name="submit" value="{'return'|@translate}" /> 188 120 </td> 189 121 </table> … … 267 199 </fieldset> 268 200 </fieldset> 269 270 271 272 201 </fieldset> 273 202 </fieldset> 274 203 </form> 275 204 276 <fieldset > -
extensions/edit_gmaps/admin/admin_edit_meta.php
r12126 r17761 6 6 if ( !isset($_GET['cat']) ) $_GET['cat'] = 'caddie'; 7 7 $_GET['mode'] = 'map'; 8 if (PHPWG_VERSION < 2.2 )9 8 include (PHPWG_ROOT_PATH.'admin/element_set.php'); 10 else 11 include (dirname(__FILE__).'\element_set.php'); 12 9 13 10 14 11 … … 52 49 } 53 50 54 //**************** mise a jour de la base de données ************************** 51 /*********************************** 52 mise a jour de la base de donnees 53 ***********************************/ 55 54 if ( $_POST['submit'] == l10n('update_database') ) { 56 55 if ( count($collection)>0 ) { -
extensions/edit_gmaps/admin/js/JScript.js
r12126 r17761 1 1 2 if (!window.log) { 3 window.log = function () { 4 log.history = log.history || []; 5 // store logs to an array for reference 6 log.history.push(arguments); 7 if (typeof console.log == 'function') { 8 // Modern browsers 9 if ((Array.prototype.slice.call(arguments)).length == 1 && typeof Array.prototype.slice.call(arguments)[0] == 'string') { 10 console.log( 11 (Array.prototype.slice.call(arguments)).toString()); 12 } else { 13 console.log(Array.prototype.slice.call(arguments)); 14 } 15 } 16 } 17 } 18 19 jQuery(document).ready(function () { 20 jQuery('input').click(function (i) { 21 22 23 }); 24 25 jQuery("#selectNone").click(function (i) { 26 no_affiche = "false"; 27 if (no_affiche != "true") { 28 ef_reduce("geoposition", { fast: true }) 29 30 } else { 31 ef_reduce("Elements", { fast: true }) 32 } 33 34 jQuery("#selectNone").css("color", "blue"); 35 36 37 }); 38 jQuery("#selectNone1").click(function (i) { 39 no_affiche = "true"; 40 jQuery("#selectNone").css("color", "red"); 41 jQuery("#selectNone").click(); 42 43 }); 44 45 jQuery(".thumbnails label").each(function (i) { 46 var wrap2 = jQuery(this).children(".wrap2"); 47 wrap2.append("<span class='thumbLegend'> </span>"); 48 }); 49 jQuery("filedset").each(function (i) { 50 51 52 }); 53 54 jQuery(".thumbnails label").each(function (i) { 55 var wrap2 = jQuery(this).children(".wrap2"); 56 57 }); 58 }); 59 2 60 /* Déclaration des variables */ 3 61 var geocoder; -
extensions/edit_gmaps/admin/js/fieldset.js
r10060 r17761 1 1 if (typeof ef_animate_fast == "undefined") 2 2 var ef_animate_fast = true; 3 var no_affiche; 3 4 4 5 // Smart Fieldsets initialization/ … … 6 7 var ef_plus_bullet_path = './plugins/edit_gmaps/admin/icon/plus.png'; 7 8 var ef_minus_bullet_path = './plugins/edit_gmaps/admin/icon/minus.png'; 8 9 9 } 10 10 … … 13 13 14 14 function ef_reduce(fieldset_id, fast) { 15 jQuery('#' + fieldset_id).hide(); 16 return; 15 17 l_m = jQuery('#' + fieldset_id + ' legend'); 18 16 19 if (ef_reduce.arguments.length < 2) fast = ef_animate_fast; 17 20 if (!l_m.is('.ef_command')) l_m.addClass('ef_command'); … … 19 22 l_m.trigger('ef_reduce_private', fast.fast,this); 20 23 l_m.removeClass('ef_command'); 21 24 l_m.hide(); 22 25 } 23 26 … … 35 38 function ef_init(fieldset_id, cache_id) { 36 39 jQuery(document).ready(function () { 40 37 41 var f_m = jQuery('#' + fieldset_id); 38 42 l_m = jQuery('#' + fieldset_id + ' legend'); … … 118 122 f_r.slideUp(400); 119 123 f_m.slideDown(400, function () { 120 f_m.find('*').not('.ef_legends, img').animate({ opacity: 1 }, 200);124 f_m.find('*').not('.ef_legends, img').animate({ opacity: 1 }, 200); 121 125 }); 122 126 } … … 131 135 l_r.trigger('ef_maximize_private', ef_animate_fast); 132 136 }); 133 if (no_affiche !="true") {137 if (no_affiche != "true") { 134 138 ef_reduce("geoposition", { fast: true }) 135 139 // jQuery("#Envoie").trigger("submit"); … … 161 165 162 166 163 jQuery(document).ready(function () { 167 jQuery(document).ready(function () { 168 164 169 if (jQuery(".fieldset").length >= 1) { 165 170 jQuery(".fieldset").each( -
extensions/edit_gmaps/edit_gmaps.inc.php
r12126 r17761 287 287 //=============================================================================== 288 288 289 if ( isset($_POST['s ubmit'] ) && $_POST['submit'] == l10n('cl_edit_save') ) {289 if ( isset($_POST['selectAction'] ) && $_POST['selectAction'] == l10n('cl_edit_save') ) { 290 290 $my_para->check_desc_v = isset($_POST['check_desc_v']) ? $_POST['check_desc_v'] : "off" ; 291 291 -
extensions/edit_gmaps/language/fr_FR/lang.php
r9412 r17761 1 1 <?php 2 2 global $lang; 3 $lang['return']="Retour"; 4 $lang['hlp_line4'] .= "Modifie la sélection."; 3 5 $lang['update']='Mise à jour '; 4 6 $lang['update_exif']='Mise à jour EXIF'; … … 24 26 $lang['hlp_line2'] .= "Sélectionnez dans cette catégorie, une ou plusieurs photos d'un même lieu." ; 25 27 $lang['hlp_line3'] .= "Affiche les coordonnées de la première photo si elle est connue. " ; 26 $lang['hlp_line4'] .= "Annule la sélection.";28 27 29 $lang['hlp_line5'] .= "Entrez le lieu à rechercher (ville,pays)" ; 28 30 -
extensions/edit_gmaps/main.inc.php
r14701 r17761 2 2 /* 3 3 Plugin Name: Edit Maps&Earth 4 Version: auto4 Version: 2.2.4 5 5 Description: Editor for rv gmaps 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=330 … … 13 13 define( 'EDIT_CL_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/' ); 14 14 include_once(EDIT_CL_PATH.'edit_gmaps.inc.php'); 15 global $cl_edit_functions; 15 16 16 17 $cl_edit_functions = new cl_edit_functions();
Note: See TracChangeset
for help on using the changeset viewer.