Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 

25 líneas
1.7 KiB

  1. <?php
  2. if (isset($_SESSION['userid'])) {
  3. if (isset($_POST['editstitle'])) {
  4. echo '<form action="titlemanager.php" method="post"><table border="1"><caption>Deleting takes precedence over edits - edits will have to be remade after submission</caption>';
  5. echo '<tr><th>stnameid</th><th>titlenameid</th><th>stname</th><th>stpoints</th><th>strank</th><th>Delete?</th></tr>';
  6. $ph = implode(",", $_POST['editstitle']);
  7. $sredit = $con->prepare("SELECT * FROM gwsubtitles WHERE titlenameid = ? AND stnameid IN ($ph)");
  8. $sredit->bind_param("i", $_SESSION['tid']);
  9. $sredit->execute();
  10. $result = $sredit->get_result();
  11. while ($row = $result->fetch_assoc()) {
  12. echo '<tr><td><input type="text" readonly size="4" name="stnameid[]" value="' . $row['stnameid']. '"></td><td><input type="text" readonly size="4" name="titlenameid[]" value="' . $row['titlenameid'] . '"></td>';
  13. echo '<td><input type="text" name="stname[]" value="' . $row['stname'] . '"></td><td><input type="number" min="1" name="stpoints[]" value="' . $row['stpoints'] . '"></td>';
  14. echo '<td><input type="number" size="4" min="1" max="15" name="strank[]" value="' . $row['strank'] . '"></td><td><input type="checkbox" name="delsubtitle[]" value="' . $row['stnameid'] . '"></td></tr>';
  15. }
  16. $sredit->close();
  17. echo '</table><br /><input type="hidden" name="title" value="updatesubtitle"><input type="submit" value="Modify title rank(s)"></form>';
  18. echo '<br /><br />';
  19. echo 'Return to <a href="titlemanager.php" class="navlink">title manager</a>';
  20. } else {
  21. echo 'No title ranks selected! Please press the back button on your browser to return to the previous page.<br /><br />';
  22. echo 'Return to <a href="titlemanager.php" class="navlink">title manager</a>';
  23. }
  24. }
  25. ?>