Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- include("includedb_johnson.php");
- include("include_escape.php");
- if($_SESSION['check']!=1)
- {
- header("Location: index.php");
- }
- if(!empty($_GET['villageid']))
- {
- $_SESSION['villageid']=$_GET['villageid'];
- }
- ?>
- <html>
- <head>
- <title>
- Account Manager
- </title>
- <link href="johnson.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <table width="100%" style="font-family:verdana;">
- <tr>
- <?php include("inc_header.php"); ?>
- </tr>
- <tr>
- <?php include("inc_nav.php"); ?>
- <td style="vertical-align:baseline;font-size:0.7em;padding:10px;text-align:left;border-color:black;border-width: 1px;border-style: solid;">
- <u>Remove:</u> if you click remove you will remove your note.<br>
- <u>Edit:</u> if you click edit you can edit your note.<br>
- <u>Done:</u> if you click done you will say the server you've completed the note and it will be shown in the logs as completed.<br><br>
- <i>All actions can be undone in the <a href="village_logs.php" class="one">village logs</a>.</i><br><br>
- <?php
- $accountname=$_SESSION['accountname'];
- $queryvillageinfo = "SELECT ID, villageID, note, username FROM village_notes WHERE accountname='$accountname' ORDER by villageID";
- $resultvillageinfo = mysql_query($queryvillageinfo, $db);
- ?> <table width="100%">
- <tr style="font-size:0.7em;">
- <td width="150px" style="text-align:center;border-width:1px;border-color:black;border-style:solid;">
- Village
- </td>
- <td style="text-align:center;border-width:1px;border-color:black;border-style:solid;">
- Note
- </td>
- <td width="100px" style="text-align:center;border-width:1px;border-color:black;border-style:solid;">
- Added by
- </td>
- <td width="150px" style="text-align:center;border-width:1px;border-color:black;border-style:solid;">
- Actions
- </td>
- </tr>
- <?php
- while(list($ID, $villageID, $note, $user)=mysql_fetch_row($resultvillageinfo))
- { ?>
- <tr style="font-size:0.7em;">
- <td style="padding-left:5px;border-width:1px;border-color:black;border-style:solid;">
- <?php
- $queryvillagename = "SELECT name FROM villages WHERE ID='$villageID' AND accountname='$accountname'";
- $resultvillagename = mysql_query($queryvillagename, $db);
- while(list($villID)=mysql_fetch_row($resultvillagename))
- {
- echo($villID);
- }
- ?>
- </td>
- <td style="padding-left:5px;border-width:1px;border-color:black;border-style:solid;">
- <?php echo($note); ?>
- </td>
- <td style="text-align:center;border-width:1px;border-color:black;border-style:solid;">
- <?php echo($user); ?>
- </td>
- <td style="text-align:center;border-width:1px;border-color:black;border-style:solid;">
- <a class="one" href="remove.php?noteid=<?php echo($ID); ?>">[remove]</a>
- <a class="one" href="edit.php?noteid=<?php echo($ID); ?>">[edit]</a>
- <a class="one" href="done.php?noteid=<?php echo($ID); ?>">[done]</a>
- </td>
- </tr>
- <?php
- }
- ?></table>
- <?php
- include("inc_villages.php"); ?>
- </td>
- </tr>
- </table>
- <!--<form name="form1" method="post" action="<?php //echo($_SERVER["PHP_SELF"]);?>" style="text-align:left;padding:5px;"><br>
- <table>
- <tr><td width="125px">Username:</td><td><input name="username" type="text" size="30" maxlength="40"></td></tr>
- <tr><td>Password:</td><td><input name="password" type="password" size="10" maxlength="15"></td></tr>
- </table><br>
- <input type="submit" name="Submit" value="Inloggen">
- </form> -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement