This commit is contained in:
Olusesan Ameye
2021-02-18 13:49:35 -05:00
parent 2a70f81dbc
commit 198ba03e2a
2 changed files with 91 additions and 1 deletions
+2 -1
View File
@@ -23,8 +23,9 @@ class Dash extends Admin_Controller {
$this->table->set_heading(array('data' => 'View', 'style' => 'width:50px'), 'Username', 'Firstname', 'Lastname', 'Added', 'Location', 'Last Login', array('data' => 'Folder', 'style' => 'width:40px'));
$data['recent_members'] = $this->table->generate($query);
$view_practice_button = "<a href=\"/practice/viewPracticeDetail/'||id||'\" class=\"btn btn-primary\" >Open</a>";
$mysql = "SELECT '<button type=\"button\" class=\"btn btn-primary\">View</button>' AS View,name,username,email,added,last_login from practice ORDER BY id DESC LIMIT 7";
$mysql = "SELECT '<a href=\"/practice/viewPracticeDetail/'||id||'\" class=\"btn btn-primary\" >Open</a>' AS View,name,username,email,added,last_login from practice ORDER BY id DESC LIMIT 7";
$data['recent_practice'] = "";
$query = $this->db->query($mysql);
$this->table->set_heading(array('data' => 'View', 'style' => 'width:50px'), 'Practice Name', 'Username', 'Email', 'Added', 'Last logn');