aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2024-03-20 20:03:04 +0100
committerarf20 <aruizfernandez05@gmail.com>2024-03-20 20:03:04 +0100
commit72ea04f97b2535a7d8de38a74db073a760cec599 (patch)
treee16357f265bea620df875349c3572b0e5fdf0458
parenta8f2bace985ee0419492a09e1d5a3879f2f5b96b (diff)
downloadarfnet2-cstims-72ea04f97b2535a7d8de38a74db073a760cec599.tar.gz
arfnet2-cstims-72ea04f97b2535a7d8de38a74db073a760cec599.zip
Collapse preformat texts
-rw-r--r--manageorders.php2
-rw-r--r--manageservices.php2
-rw-r--r--manageusers.php5
3 files changed, 4 insertions, 5 deletions
diff --git a/manageorders.php b/manageorders.php
index 90e0efa..7ad34ac 100644
--- a/manageorders.php
+++ b/manageorders.php
@@ -176,7 +176,7 @@ function getclientbyid($id) {
."<td>".$order["billing"]."</td>"
."<td>".$order["date"]."</td>"
."<td>".$order["status"]."</td>"
- ."<td><pre>".$order["comments"]."</pre></td>"
+ ."<td><details><summary></summary><pre>".$order["comments"]."</pre></details></td>"
."<td><a href=\"?del=".$order["id"]."\">del</a> <a href=\"?edit=".$order["id"]."\">edit</a></td></tr>\n";
}
?>
diff --git a/manageservices.php b/manageservices.php
index f7fb3ae..fe68c81 100644
--- a/manageservices.php
+++ b/manageservices.php
@@ -130,7 +130,7 @@ function getservicebyid($id) {
."<td>".$service['name']."</td>"
."<td>".$service['type']."</td>"
."<td>".$service['billing']."</td>"
- ."<td><pre>".$service['description']."</pre></td>"
+ ."<td><details><summary></summary><pre>".$service['description']."</pre></details></td>"
."<td><a href=\"?del=".$service['id']."\">del</a> <a href=\"?edit=".$service['id']."\">edit</a></td></tr>\n";
}
?>
diff --git a/manageusers.php b/manageusers.php
index 0fb1f7d..b0e7705 100644
--- a/manageusers.php
+++ b/manageusers.php
@@ -15,7 +15,7 @@ if ($type != "admin") die("Permission denied.");
require_once "config.php";
// Get users
-$sql = "SELECT id, username, password, email, verifycode, status, type, regdate FROM users";
+$sql = "SELECT id, username, email, verifycode, status, type, regdate FROM users";
$stmt = mysqli_prepare($link, $sql);
mysqli_stmt_execute($stmt);
$result = mysqli_stmt_get_result($stmt);
@@ -128,12 +128,11 @@ function getuserbyid($id) {
<a href="?add">add</a>
<table>
- <tr><th>id</th><th>user</th><th>password</th><th>email</th><th>verifycode</th><th>type</th><th>regdate</th><th>status</th><th>action</th></tr>
+ <tr><th>id</th><th>user</th><th>email</th><th>verifycode</th><th>type</th><th>regdate</th><th>status</th><th>action</th></tr>
<?php
foreach ($users as $user) {
echo "<tr><td>".$user['id']."</td>"
."<td>".$user['username']."</td>"
- ."<td>".$user['password']."</td>"
."<td>".$user['email']."</td>"
."<td>".$user['verifycode']."</td>"
."<td>".$user['type']."</td>"