Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

37 righe
1.6 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></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. 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">';
  16. echo '<input type="radio" name="titletype" ';
  17. if ($ttype == 0) {
  18. echo 'checked ';
  19. }
  20. echo 'value="0">Account<br />';
  21. echo '<input type="radio" name="titletype" ';
  22. if ($ttype == 1) {
  23. echo 'checked ';
  24. }
  25. echo 'value="1">Character</td><td><input type="number" name="titlemaxrank" min="1" max="15" value="' . $tmr . '"></td><td>';
  26. echo '<input type="checkbox" name="autofill" value="' . $taf . '" ';
  27. if ($taf == 1) {
  28. echo 'checked';
  29. }
  30. echo '></td></tr>';
  31. }
  32. $stmtview->close();
  33. echo '</table><table><tr><th>Delete title?</th></tr><tr><td><input type="checkbox" name="deltitle" value="yes"></td></tr></table><br /><br />';
  34. echo '<input type="hidden" name="title" value="updatetitle"><input type="submit" value="Modify title ..."></form><br />';
  35. echo 'Return to <a href="titlemanager.php" class="navlink">title manager</a>';
  36. }
  37. ?>