s1
This commit is contained in:
@@ -14,11 +14,11 @@
|
||||
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>-->
|
||||
|
||||
<!-- <style>
|
||||
<style>
|
||||
* {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
</style> -->
|
||||
</style>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="container">
|
||||
<h3>Add New Agent</h3><hr>
|
||||
<div class="form-group">
|
||||
<input type="email" class="form-control" id="group_name" name="group_name" placeholder="Enter Group Name" required>
|
||||
<input type="text" class="form-control" id="group_name" name="group_name" placeholder="Enter Group Name" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
<tr>
|
||||
<td><?php echo htmlspecialchars($user['id']); ?></td>
|
||||
<td><?php echo htmlspecialchars($user['user_id']); ?></td>
|
||||
<td>
|
||||
<td class="badge-cell">
|
||||
<span class="badge <?php echo $user['type'] === 'admin' ? 'badge-primary' : 'badge-secondary'; ?>">
|
||||
<?php echo htmlspecialchars($user['type']); ?>
|
||||
</span>
|
||||
@@ -137,7 +137,12 @@
|
||||
<td><?php echo htmlspecialchars($user['user_phone']); ?></td>
|
||||
<td>
|
||||
<a href="edit_user?id=<?php echo $user['id']; ?>" class="btn btn-sm btn-warning">Edit</a>
|
||||
<a href="delete_user?id=<?php echo $user['id']; ?>" class="btn btn-sm btn-danger" onclick="return confirm('Are you sure?')">Delete</a>
|
||||
<?php if($user['type'] !== 'admin') { ?>
|
||||
<a href="delete_user?id=<?php echo $user['id']; ?>" class="btn btn-sm btn-danger" onclick="return confirm('Are you sure?')">Delete</a>
|
||||
<?php }else{ ?>
|
||||
<a disabled class="btn btn-sm btn-danger">Delete</a>
|
||||
<?php } ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
@@ -148,12 +153,6 @@
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if ($_SESSION['type'] === 'admin'): ?>
|
||||
<div class="text-right mb-3">
|
||||
<a href="add_user.php" class="btn btn-primary">Add New User</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php $conn->close(); ?>
|
||||
@@ -165,6 +164,29 @@
|
||||
background: red;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.badge-cell {
|
||||
text-align: center; /* horizontally center */
|
||||
}
|
||||
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 0.35em 0.65em;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.badge-primary {
|
||||
background-color: #e95420 ; /* Blue */
|
||||
}
|
||||
|
||||
.badge-secondary {
|
||||
background-color: #efb73e; /* Gray */
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -106,8 +106,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
<div class="col-md-6">
|
||||
<div class="form-group mb-3">
|
||||
<label for="user_id" class="form-label">User ID</label>
|
||||
<input type="text" class="form-control" id="user_id" name="user_id"
|
||||
value="<?php echo htmlspecialchars($user['user_id']); ?>" required>
|
||||
<input type="text" class="form-control" id="user_id" name="user_id" value="<?php echo htmlspecialchars($user['user_id']); ?>" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group mb-3">
|
||||
@@ -120,8 +119,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
<div class="col-md-6">
|
||||
<div class="form-group mb-3">
|
||||
<label for="user_phone" class="form-label">Phone Number</label>
|
||||
<input type="tel" class="form-control" id="user_phone" name="user_phone"
|
||||
value="<?php echo htmlspecialchars($user['user_phone']); ?>" required>
|
||||
<input type="tel" class="form-control" id="user_phone" name="user_phone" value="<?php echo htmlspecialchars($user['user_phone']); ?>" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group mb-3">
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<div class="mb-3">
|
||||
<label for="user_id" class="form-label">User ID:</label>
|
||||
<input type="email" class="form-control form-control-lg rounded-3 shadow-sm" id="user_id" name="user_id" placeholder="Enter your email" required>
|
||||
<input type="text" class="form-control form-control-lg rounded-3 shadow-sm" id="user_id" name="user_id" placeholder="Enter your user ID" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="pwd" class="form-label">Password</label>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="container">
|
||||
<h3>Add New Agent</h3><hr>
|
||||
<div class="form-group">
|
||||
<input type="email" class="form-control" id="group_name" name="group_name" placeholder="Enter Group Name" required>
|
||||
<input type="text" class="form-control" id="group_name" name="group_name" placeholder="Enter Group Name" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="container">
|
||||
<h3>Add New Agent</h3><hr>
|
||||
<div class="form-group">
|
||||
<input type="email" class="form-control" id="group_name" name="group_name" placeholder="Enter Group Name" required>
|
||||
<input type="text" class="form-control" id="group_name" name="group_name" placeholder="Enter Group Name" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2" for="email">Email:</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="email" class="form-control" placeholder="Enter email" name="email">
|
||||
<input type="text" class="form-control" placeholder="Enter email" name="email">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
Reference in New Issue
Block a user