Changeset 14228 for trunk/admin
- Timestamp:
- Apr 19, 2012, 10:49:43 PM (13 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r14221 r14228 249 249 load_conf_from_db(); 250 250 } 251 elseif (isset($_POST['restore_settings'])) 252 { 253 ImageStdParams::set_and_save( ImageStdParams::get_default_sizes() ); 254 pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param = \'disabled_derivatives\''); 255 clear_derivative_cache(); 256 } 251 257 252 258 //----------------------------------------------------- template initialization -
trunk/admin/themes/default/template/configuration.tpl
r14221 r14228 31 31 {/literal}{/footer_script} 32 32 33 <div class="titrePage"> 34 <h2>{'Piwigo configuration'|@translate} {$TABSHEET_TITLE}</h2> 35 </div> 33 <h2>{'Piwigo configuration'|@translate} {$TABSHEET_TITLE}</h2> 36 34 37 35 {if !isset($default)} … … 315 313 jQuery(".sizeDetails").show(); 316 314 jQuery(this).css("visibility", "hidden"); 315 return false; 317 316 }); 318 317 … … 320 319 {/literal}{/footer_script} 321 320 322 {html_head}{literal} 323 <style type="text/css"> 321 {html_style}{literal} 324 322 input[type="text"].dError {border-color:#ff7070; background-color:#FFe5e5;} 325 323 .dErrorDesc {background-color:red; color:white; padding:0 5px;border-radius:10px; font-weight:bold;cursor:help;} … … 331 329 .sizeDetails {display:none;margin-left:10px;} 332 330 .sizeEditOpen {margin-left:10px;} 333 </style> 334 {/literal}{/html_head} 331 {/literal}{/html_style} 335 332 336 333 <fieldset id="sizesConf"> … … 644 641 645 642 {if !isset($default)} 646 <p class="formButtons"> 647 <input class="submit" type="submit" name="submit" value="{'Save Settings'|@translate}"> 648 </p> 643 <p class="formButtons"> 644 <input type="submit" name="submit" value="{'Save Settings'|@translate}"> 645 {if isset($sizes)} 646 <input type="submit" name="restore_settings" value="{'Restore'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> 647 {/if} 648 </p> 649 649 </form> 650 650 {/if}
Note: See TracChangeset
for help on using the changeset viewer.