Changeset 581 for trunk/pages/webconfig.php
- Timestamp:
- Apr 30, 2009, 1:28:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/webconfig.php
r579 r581 1 1 <?php 2 $html->PrgStart();3 echo(' <a href="?page=acc"><- Zpět do správy účtu</a>');4 2 3 $year = 7 * 24 * 60 * 60; 5 4 if(isset($_POST['save'])) 6 5 { 7 $year = 7 * 24 * 60 * 60;8 6 setcookie('hof-random', $_POST['random'], time() + $year); 9 7 setcookie('hof-widget', $_POST['widget'], time() + $year); … … 19 17 function Check($value, $option) 20 18 { 19 global $year; 20 21 21 if(!isset($_COOKIE['hof-'.$value]) or $_COOKIE['hof-'.$value] == '') 22 22 { … … 37 37 break; 38 38 } 39 $year = 7 * 24 * 60 * 60;40 39 setcookie('hof-'.$value, $default, time() + $year); 41 40 $msg = '<center><b>Nahrávám základní nastavení</b></center><br /> … … 44 43 if(isset($_COOKIE['hof-'.$value]) and $_COOKIE['hof-'.$value] == $option) 45 44 { 46 return(' checked="checked"');45 return(' checked="checked"'); 47 46 } 48 47 } 49 echo('<form method="post">48 $Output ='<form method="post"> 50 49 <div align="left"> 51 50 <b>Náhodný obrázek v hlavičce stránky.</b><br /> 52 Ano <input type="radio" name="random" value="yes"'.Check('random', 'yes').' >53 Ne <input type="radio" name="random" value="no"'.Check('random','no').' >51 Ano <input type="radio" name="random" value="yes"'.Check('random', 'yes').' /> 52 Ne <input type="radio" name="random" value="no"'.Check('random','no').' /> 54 53 <br /> 55 54 <b>Preferovaný tooltip</b><br /> 56 Wowhead <input type="radio" name="widget" value="wowhead"'.Check('widget', 'wowhead').' >57 Thottbot <input type="radio" name="widget" value="thottbot"'.Check('widget', 'thottbot').' >55 Wowhead <input type="radio" name="widget" value="wowhead"'.Check('widget', 'wowhead').' /> 56 Thottbot <input type="radio" name="widget" value="thottbot"'.Check('widget', 'thottbot').' /> 58 57 <br /> 59 58 <b>Rychlý přehled</b><br /> 60 Ano <input type="radio" name="quick" value="yes"'.Check('quick', 'yes').' >61 Ne <input type="radio" name="quick" value="no"'.Check('quick', 'no').' >59 Ano <input type="radio" name="quick" value="yes"'.Check('quick', 'yes').' /> 60 Ne <input type="radio" name="quick" value="no"'.Check('quick', 'no').' /> 62 61 <br /> 63 62 <b>Zobrazovat web</b><br /> 64 Web 1.0 (původní menu vlevo) <input type="radio" name="web" value="1"'.Check('web', 1).' ><br />65 Web 2.0 (nový menu vpravo) <input type="radio" name="web" value="2"'.Check('web', 2).' >63 Web 1.0 (původní menu vlevo) <input type="radio" name="web" value="1"'.Check('web', 1).' /><br /> 64 Web 2.0 (nový menu vpravo) <input type="radio" name="web" value="2"'.Check('web', 2).' /> 66 65 <br /> 67 66 <input type="submit" value="Uložit" name="save"> 68 </form>'.$msg.'</div>' );67 </form>'.$msg.'</div>'; 69 68 69 $html->PrgStart(); 70 echo(' <a href="?page=acc"><- Zpět do správy účtu</a>'); 71 echo($Output); 70 72 $html->PrgStop(); 71 73
Note:
See TracChangeset
for help on using the changeset viewer.