diff --git a/website/game/frame.html b/website/game/frame.html new file mode 100644 index 0000000..044e00c --- /dev/null +++ b/website/game/frame.html @@ -0,0 +1,16 @@ + +
|
+
+ Welcome. + + (In the future, this screen will give you a quick summary of your +status, and if you have any new messages.) + + Update: The message system should work. Use the "quicknote" feature, +which for now sends the message to all characters in the game. +(Please sign your own name, because the "from" field is temporarily +just the #id instead of your character name.) + + |
| FrontierII | +[ COMMLINK ] | +[ DATALINK ] | +[ ACTIONS ] | +[ STATUS ] | +[ SIGNOFF ] | +
|
+
+$cname
+ Hours: $time + Credits: $credits + Status: "; + + if ($status == 1) { + echo "travelling"; + } elseif ($status == 2) { + echo "deployed"; + } else { + echo "idle"; + } + + $sql = "SELECT * FROM `star` WHERE `id` = '$star'"; + $result = mysqli_query($mysqli, $sql) or die($gameerror . 'S-Q02'); + $row = mysqli_fetch_assoc($result); + + $sname = $row['name']; + + echo " + Location: $sname + + Fleets in this sector:";
+
+ $sql = "SELECT * FROM `character` WHERE `location` = '$star'";
+ $result = mysqli_query($mysqli, $sql) or die($gameerror . 'S-Q03');
+
+ $num = mysqli_num_rows($result);
+
+ $i = 0;
+
+ while ($i < $num)
+ { // display others in the region
+
+ $row = mysqli_fetch_assoc($result);
+ $ocname = $row['name'];
+
+ echo " |