Adding email/phone display
authorroot <root@server1.cccp.slightlycyberpunk.com>
Thu, 13 Feb 2025 04:31:57 +0000 (04:31 +0000)
committerroot <root@server1.cccp.slightlycyberpunk.com>
Thu, 13 Feb 2025 04:31:57 +0000 (04:31 +0000)
users.php

index 6c35992..c2c8a9f 100644 (file)
--- a/users.php
+++ b/users.php
@@ -137,6 +137,8 @@ $groups  = $stmt->fetchAll();
           $id       = $users[$j]['id'];
           $username = $users[$j]['username'];
           $realname = $users[$j]['realName'];
+          $email    = $users[$j]['email'];
+          $phone    = $users[$j]['phone'];
           $passhash = $users[$j]['passhash'];
           $access   = $users[$j]['permissions'];
           $lead     = $users[$j]['leadId'];
@@ -152,9 +154,19 @@ $groups  = $stmt->fetchAll();
           echo "        <div class='userConfig' id='userConfig-$id'>";
           echo "          <div class='realname'>$realname</div>".PHP_EOL;
           echo "          <input type='button' class='editName' value='Edit Name' onclick='editName(event)'/><br/>".PHP_EOL;
+
+          echo "          <label for=''>Email: $email</label>".PHP_EOL;
+          echo "          <label for=''>Phone: $phone</label>".PHP_EOL;
+
           echo "          <label for=''>Username</label>".PHP_EOL;
           echo "          <input type='text' class='username' disabled value='$username' />".PHP_EOL;
           echo "          <input type='button' class='editUsername' value='Edit' onclick='editUsername(event)'/><br/>".PHP_EOL;
+
+//          echo "          <label for=''>Email: $email</label>".PHP_EOL;
+//          echo "          <input type='text' class='email' disabled value='$email' /><br/>".PHP_EOL;
+//          echo "          <label for=''>Phone: $phone</label>".PHP_EOL;
+//          echo "          <input type='text' class='phone' disabled value='$phone' /><br/>".PHP_EOL;
+
           echo "          <div class='selector'>".PHP_EOL;
           echo "            <label for=''>Canvass Lead</label>".PHP_EOL;
           echo "            <select class='leadSelect'>$ileadOptions</select>".PHP_EOL;
@@ -214,6 +226,8 @@ EOF;*/
           $id       = $users[$j]['id'];
           $username = $users[$j]['username'];
           $realname = $users[$j]['realName'];
+          $email    = $users[$j]['email'];
+          $phone    = $users[$j]['phone'];
           $passhash = $users[$j]['passhash'];
           $access   = $users[$j]['permissions'];
           $lead     = $users[$j]['leadId'];
@@ -227,6 +241,10 @@ EOF;*/
           echo "        <div class='userConfig' id='userConfig-$id'>";
           echo "          <div class='realname'>$realname</div>".PHP_EOL;
           echo "          <input type='button' class='editName' value='Edit Name' onclick='editName(event)'/><br/>".PHP_EOL;
+
+          echo "          <label for=''>Email: $email</label>".PHP_EOL;
+          echo "          <label for=''>Phone: $phone</label>".PHP_EOL;
+
           echo "          <label for=''>Username</label>".PHP_EOL;
           echo "          <input type='text' class='username' disabled value='$username' />".PHP_EOL;
           echo "          <input type='button' class='editUsername' value='Edit' onclick='editUsername(event)'/><br/>".PHP_EOL;