diff --git a/includes/account-registration.php b/includes/account-registration.php new file mode 100644 index 0000000..5266017 --- /dev/null +++ b/includes/account-registration.php @@ -0,0 +1,23 @@ +
+ + + + + + + +
Username desired
E-Mail address
PasswordVerify password
+ + + +
\ No newline at end of file diff --git a/includes/title-add.php b/includes/title-add.php new file mode 100644 index 0000000..396dbe6 --- /dev/null +++ b/includes/title-add.php @@ -0,0 +1,5 @@ +'; +echo ''; +echo '
Title NameTitle Type
Account
Character

'; +?> \ No newline at end of file diff --git a/includes/title-editor.php b/includes/title-editor.php new file mode 100644 index 0000000..5ceb51a --- /dev/null +++ b/includes/title-editor.php @@ -0,0 +1,28 @@ +'; +echo ''; +$stmtview = $con->prepare("SELECT * FROM gwtitles WHERE titlenameid = ?"); +$stmtview->bind_param("i", $_POST['tid']); +$stmtview->execute(); +$result = $stmtview->get_result(); +while ($row = $result->fetch_assoc()) { + $tid = $row['titlenameid']; + $tname = $row['titlename']; + $ttype = $row['titletype']; + echo ''; +} +$stmtview->close(); +echo '
titlenameidtitlenametitletype
'; + echo 'Account
'; + echo 'Character
Delete title?


'; +echo '
'; +echo 'Return to title manager'; +?> \ No newline at end of file diff --git a/includes/titleranks-add.php b/includes/titleranks-add.php new file mode 100644 index 0000000..5d2f93d --- /dev/null +++ b/includes/titleranks-add.php @@ -0,0 +1,39 @@ +'; +} +echo '
'; +echo '
Title Rank NameTitle PointsRank Level
'; +echo '

'; + +echo 'Here are the currently associated title ranks, starting with rank 1:
'; +echo ''; +$stmtview = $con->prepare("SELECT * FROM gwsubtitles WHERE titlenameid = ? ORDER BY strank ASC"); +$stmtview->bind_param("i", $_POST['tid']); +$stmtview->execute(); +$result = $stmtview->get_result(); +while ($row = $result->fetch_assoc()) { + $stnid = $row['stnameid']; + $tnid = $row['titlenameid']; + $stname = $row['stname']; + $stpoints = $row['stpoints']; + $strank = $row['strank']; + echo ''; +} +$stmtview->close(); +echo '
stnameidtitlenameidstnamestpointsstrank
' . $stnid . '' . $tnid . '' . $stname . '' . number_format($stpoints) . '' . $strank . '

If anything looks off, please fix it!

'; +echo 'Return to title manager'; //this line needs to go away soon. Maybe? +?> \ No newline at end of file diff --git a/includes/titleranks-submit.php b/includes/titleranks-submit.php new file mode 100644 index 0000000..7e4db9c --- /dev/null +++ b/includes/titleranks-submit.php @@ -0,0 +1,13 @@ +prepare("INSERT INTO gwsubtitles (titlenameid, stname, stpoints, strank) VALUES (?, ?, ?, ?)"); +$stmtstins->bind_param("isii", $_POST['titlenameid'], $_POST['titlerankname'], $_POST['titlepoints'], $_POST['titlerank']); +$stmtstins->execute(); +$stmtstins->close(); +$_SESSION['title'] = "repeat"; +$_SESSION['tid'] = $_POST['titlenameid']; +echo 'Title rank added, redirecting!'; +header ("Refresh:1; url=titlemanager.php"); +?> \ No newline at end of file