Welcome Guest, Not a member yet? Register   Sign In
Edit and Delete with Pagination?
#1

[eluser]solid9[/eluser]
HI guys

I want to make Edit and Delete along with the records
list of the Pagination.

Any tutorial?

Thanks in advanced.

#2

[eluser]InsiteFX[/eluser]
Using CI Table Class: From Auth 1.0.6 Adam Griffiths
Code:
// --------------------------------------------------------------------

/**
  * manage()
  *
  * Description:
  *
  * @access public
  * @param string
  * @return void
  */
public function manage()
{
  // Grab an array of users from the database
  $data = $this->users->users();

  // Setting headings for the table
  $this->table->set_heading('Username', 'Email', 'Actions');

  foreach($data as $value => $key)
  {
   // Build actions links
   $actions = anchor("admin/users/edit/".$key['id']."/", "Edit") . anchor("admin/users/delete/".$key['id']."/", "Delete");

   // Adding row to table
   $this->table->add_row($key['username'], $key['email'], $actions);
  }

  // Load the Auth specific view
  $this->load->view('users/manage');
}
#3

[eluser]solid9[/eluser]
Thanks InsiteFX

I will try to understand that.
#4

[eluser]InsiteFX[/eluser]
He has taken the Auth down, but if you need it let me know and I will put it on my server so you can download it!

It's written for CI 1.7.2 but I have converted to CI 2.1.0 He has a new one called AG Auth but I do not think
that it has the table stuff in it.
#5

[eluser]solid9[/eluser]
No need
I can clearly understand it.

Thanks again.




Theme © iAndrew 2016 - Forum software by © MyBB