Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 

50 řádky
2.0 KiB

  1. <?php
  2. if (isset($_SESSION['userid'])) {
  3. echo '<form action="titlemanager.php" method="post">';
  4. echo '<table border="1"><tr><th>titlenameid</th><th>titlename</th><th>titletype</th><th>titlemaxrank</th><th>autofilled</th><th>gwamm</th></tr>';
  5. $stmtview = $con->prepare("SELECT * FROM gwtitles WHERE titlenameid = ?");
  6. $stmtview->bind_param("i", $_POST['tid']);
  7. $stmtview->execute();
  8. $result = $stmtview->get_result();
  9. while ($row = $result->fetch_assoc()) {
  10. $tid = $row['titlenameid'];
  11. $tname = $row['titlename'];
  12. $ttype = $row['titletype'];
  13. $tmr = $row['titlemaxrank'];
  14. $taf = $row['autofilled'];
  15. $tg = $row['gwamm']; // $tg = Title GWAMM tracking
  16. echo '<tr><td><input readonly size="3" name="titlenameid" value="' . $tid . '"></td><td><input size="40" type="text" name="titlename" value="' . $tname . '"></td><td style="text-align:left">';
  17. echo '<input type="radio" name="titletype" ';
  18. if ($ttype == 0) {
  19. echo 'checked ';
  20. }
  21. echo 'value="0">Account<br />';
  22. echo '<input type="radio" name="titletype" ';
  23. if ($ttype == 1) {
  24. echo 'checked ';
  25. }
  26. echo 'value="1">Character</td><td><input type="number" name="titlemaxrank" min="1" max="15" value="' . $tmr . '"></td><td>';
  27. echo '<input type="checkbox" name="autofill" value="1" ';
  28. if ($taf == 1) {
  29. echo 'checked';
  30. }
  31. echo '></td><td><input type="checkbox" name="gwamm" value="1" ';
  32. if ($tg == 1) {
  33. echo 'checked';
  34. }
  35. echo '></td></tr>';
  36. }
  37. $stmtview->close();
  38. echo '</table><table><tr><td>The current GWAMM title is: <b>';
  39. // $ggt = Get GWAMM Title
  40. $ggt = $con->prepare("SELECT titlename FROM gwtitles WHERE gwamm = '1'");
  41. $ggt->execute();
  42. $ggt->bind_result($gwamm);
  43. $ggt->fetch();
  44. $ggt->close();
  45. echo $gwamm . '</b></td></tr>';
  46. echo '<tr><th>Delete title?</th></tr><tr><td><input type="checkbox" name="deltitle" value="yes"></td></tr></table><br /><br />';
  47. echo '<input type="hidden" name="title" value="updatetitle"><input type="submit" value="Modify title ..."></form><br />';
  48. echo 'Return to <a href="titlemanager.php" class="navlink">title manager</a>';
  49. }
  50. ?>