Skip to content
Snippets Groups Projects
Commit 0ab52ab4 authored by Robert Anderson's avatar Robert Anderson
Browse files

Remove notifications for now

Show searched dates in date fields
parent b4411a28
No related branches found
No related tags found
No related merge requests found
...@@ -135,6 +135,7 @@ function displayDetails() { ...@@ -135,6 +135,7 @@ function displayDetails() {
} }
} }
/*
# Fetch user phone and email info # Fetch user phone and email info
$sql = " $sql = "
SELECT SELECT
...@@ -154,6 +155,7 @@ function displayDetails() { ...@@ -154,6 +155,7 @@ function displayDetails() {
$userPhone = $row->phone; $userPhone = $row->phone;
$userEmail = $row->email; $userEmail = $row->email;
} }
*/
$isDialup = 0; $isDialup = 0;
$userService = "Not set"; $userService = "Not set";
...@@ -219,6 +221,7 @@ function displayDetails() { ...@@ -219,6 +221,7 @@ function displayDetails() {
?> ?>
<td class="value"><?php echo $totalSessionTime; ?> Min</td> <td class="value"><?php echo $totalSessionTime; ?> Min</td>
</tr> </tr>
<!--
<tr> <tr>
<td colspan="2" class="section">Notifications</td> <td colspan="2" class="section">Notifications</td>
</tr> </tr>
...@@ -226,16 +229,17 @@ function displayDetails() { ...@@ -226,16 +229,17 @@ function displayDetails() {
<tr> <tr>
<td class="title">Email Address</td> <td class="title">Email Address</td>
<td class="value"> <td class="value">
<input type="text" name="notifyMethodEmail"><?php echo $userEmail; ?></input> <input type="text" name="notifyMethodEmail" value="php echo $userEmail; "></input>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="title">Cell Number</td> <td class="title">Cell Number</td>
<td class="value"> <td class="value">
<input type="text" name="notifyMethodCell"><?php echo $userPhone; ?></input> <input type="text" name="notifyMethodCell" value="php echo $userPhone; "></input>
</td> </td>
</tr> </tr>
</form> </form>
--!>
<?php <?php
......
...@@ -35,7 +35,7 @@ function displayLogs() { ...@@ -35,7 +35,7 @@ function displayLogs() {
global $db; global $db;
global $DB_TABLE_PREFIX; global $DB_TABLE_PREFIX;
$getuser = $_SESSION['username']; $username = $_SESSION['username'];
?> ?>
...@@ -45,9 +45,29 @@ function displayLogs() { ...@@ -45,9 +45,29 @@ function displayLogs() {
<form method="POST"> <form method="POST">
<p class="middle center"> <p class="middle center">
Display logs between Display logs between
<input type="text" name="searchFrom" size="11" /> <?php
if (isset($_POST['searchFrom'])) {
?>
<input type="text" name="searchFrom" size="11" value="<?php echo $_POST['searchFrom'] ?>"/>
<?php
} else {
?>
<input type="text" name="searchFrom" size="11"/>
<?php
}
?>
and and
<input type="text" name="searchTo" size="11" /> <?php
if (isset($_POST['searchTo'])) {
?>
<input type="text" name="searchTo" size="11" value="<?php echo $_POST['searchTo'] ?>"/>
<?php
} else {
?>
<input type="text" name="searchTo" size="11"/>
<?php
}
?>
<input type="submit" value="search"> <input type="submit" value="search">
</p> </p>
</form> </form>
...@@ -94,7 +114,7 @@ function displayLogs() { ...@@ -94,7 +114,7 @@ function displayLogs() {
FROM FROM
${DB_TABLE_PREFIX}accounting ${DB_TABLE_PREFIX}accounting
WHERE WHERE
Username = '$getuser' Username = '$username'
$extraSQL $extraSQL
ORDER BY ORDER BY
EventTimestamp EventTimestamp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment