This commit is contained in:
Olusesan Ameye
2021-02-18 10:45:43 -05:00
parent 305876bd5b
commit 44b8b38cc2
2 changed files with 70 additions and 1 deletions
+11 -1
View File
@@ -8,7 +8,17 @@ class Practice_model extends CI_Model {
public function getPendingPractice() {
$case_statement = "(CASE WHEN status=1 THEN 'Pending' WHEN status=0 THEN 'Deleted' WHEN status=3 THEN 'Deleted' WHEN status=5 THEN 'Acive' ELSE 'Unknown' END)";
$mysql = "SELECT '<button type=\"button\" class=\"btn btn-warning\" onclick=\"approvePractice('||id||');\">Process</button>' AS process,
$mysql = "SELECT '<button type=\"button\" class=\"btn btn-warning\" onclick=\"selectPendingPractice('||id||');\">Select</button>' AS process,
'<button type=\"button\" class=\"btn btn-danger\" onclick=\"resendEmail('||id||');\">Email</button>' AS semail,
$case_statement AS status,
practice_name,username,email,added::date from practice_pending ORDER BY id DESC LIMIT 200";
$data['pending_practice'] = "";
return $query = $this->db->query($mysql);
}
public function getPractice() {
$case_statement = "(CASE WHEN status=1 THEN 'Pending' WHEN status=0 THEN 'Deleted' WHEN status=3 THEN 'Deleted' WHEN status=5 THEN 'Acive' ELSE 'Unknown' END)";
$mysql = "SELECT '<button type=\"button\" class=\"btn btn-warning\" onclick=\"selectPractice('||id||');\">Process</button>' AS process,
'<button type=\"button\" class=\"btn btn-danger\" onclick=\"resendEmail('||id||');\">Email</button>' AS semail,
$case_statement AS status,
practice_name,username,email,added::date from practice_pending ORDER BY id DESC LIMIT 200";
@@ -0,0 +1,59 @@
<div class="card card-statistics">
<div class="card-header">
<div class="card-heading">
<h4 class="card-title">Simple Form</h4>
</div>
</div>
<div class="card-body">
<form id="signupForm" method="post" class="form-horizontal">
<div class="form-group">
<label class="control-label" for="fname">First name</label>
<div class="mb-2">
<input type="text" class="form-control" id="fname" name="fname" placeholder="First name" />
</div>
</div>
<div class="form-group">
<label class="control-label" for="lname">Last name</label>
<div class="mb-2">
<input type="text" class="form-control" id="lname" name="lname" placeholder="Last name" />
</div>
</div>
<div class="form-group">
<label class="control-label" for="uname">Username</label>
<div class="mb-2">
<input type="text" class="form-control" id="uname" name="uname" placeholder="Username" />
</div>
</div>
<div class="form-group">
<label class="control-label" for="uemail">Email</label>
<div class="mb-2">
<input type="text" class="form-control" id="uemail" name="uemail" placeholder="Email" />
</div>
</div>
<div class="form-group">
<label class="control-label" for="upassword">Password</label>
<div class="mb-2">
<input type="password" class="form-control" id="upassword" name="upassword" placeholder="Password" />
</div>
</div>
<div class="form-group">
<label class="control-label" for="uconfirm_password">Confirm password</label>
<div class="mb-2">
<input type="password" class="form-control" id="uconfirm_password" name="uconfirm_password" placeholder="Confirm password" />
</div>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="uagree" name="uagree">
<label class="form-check-label" for="uagree">
Please agree to our policy
</label>
</div>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary" name="signup" value="Sign up">Sign
up</button>
</div>
</form>
</div>
</div>