Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 

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