Changeset 377 for beta/pages/webconfig.php
- Timestamp:
- Sep 16, 2008, 6:53:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/pages/webconfig.php
r373 r377 3 3 echo " <a href=\"?page=acc\"><- Zpět do správy účtu</a>"; 4 4 5 if (isset($_POST["save"])) 6 { 7 setcookie("hof-random",$_POST["random"]); 8 setcookie("hof-widget",$_POST["widget"]); 9 setcookie("hof-quick",$_POST["quick"]); 10 $msg = "<br /><center><b>Ukládám změny.</b></center><br /> 11 <meta http-equiv=\"refresh\" content=\"1;url=?page=webconfig\">"; 12 } 13 else 14 { 15 $msg = ""; 16 } 17 18 19 function Check ($value,$option) 20 { 21 if (!isset($_COOKIE["hof-".$value]) OR $_COOKIE["hof-".$value] == "") 22 { 23 $day_half = 129600; 24 // default 25 switch ($value) 26 { 27 case "random": 28 $default = "yes"; 29 break; 30 case "widget": 31 $default = "wowhead"; 32 break; 33 case "quick": 34 $default = "yes"; 35 break; 36 } 37 setcookie("hof-".$value,$default); 38 $msg = "<br /><center><b>Nahrávám základní nastavení</b></center><br /> 39 <meta http-equiv=\"refresh\" content=\"1;url=?page=webconfig\">"; 40 } 41 if (isset($_COOKIE["hof-".$value]) AND $_COOKIE["hof-".$value] == $option) 42 { 43 return " checked=\"checked\" "; 44 } 45 } 5 46 echo " 6 47 <form method=\"post\"> 7 48 <div align=\"left\"> 8 <b>Náhodný obrázek v hlavičce stránky.</b><br /> 9 <select name=\"image\"> 10 <option value=\"on\">Zapnuto</option> 11 <option value=\"off\">Vypnuto</option> 12 </select> 49 <b>Náhodný obrázek v hlavičce stránky.</b><br /> 50 Ano <input type=\"radio\" name=\"random\" value=\"yes\"".Check("random","yes")."> 51 Ne <input type=\"radio\" name=\"random\" value=\"no\"".Check("random","no")."> 52 <br /> 53 <b>Preferovaný tooltip</b><br /> 54 Wowhead <input type=\"radio\" name=\"widget\" value=\"wowhead\"".Check("widget","wowhead")."> 55 Thottbot <input type=\"radio\" name=\"widget\" value=\"thottbot\"".Check("widget","thottbot")."> 56 <br /> 57 <b>Rychlý přehled</b><br /> 58 Ano <input type=\"radio\" name=\"quick\" value=\"yes\"".Check("quick","yes")."> 59 Ne <input type=\"radio\" name=\"quick\" value=\"no\"".Check("quick","no")."> 60 <br /> 61 62 13 63 <br /> 14 64 <input type=\"submit\" value=\"Uložit\" name=\"save\"> 15 65 </form> 16 66 17 18 67 ".$msg." 19 68 </div> 20 69 ";
Note:
See TracChangeset
for help on using the changeset viewer.