Add User
 
User
Add User
db->query($sql); } */ $url = uri_string(); $attributes = array('id' => 'frm','name' => 'frm','method' => 'post'); echo form_open('', $attributes); echo form_hidden('hurl', $url); $i=1; foreach ($user as $row){ if ($row->userstatus==1) $check_image = "check_light.png"; else $check_image = "check_dark.png"; if (($i%2) != 0) $class_record = "record-odd"; else $class_record = "record-even"; $i++; echo ' '; } echo "
ID Username Fullname Enable Edit Delete
'.$row->userid.' '.$row->username.' '.$row->userfullname.'
"; ?>
items per page
uri->segment(6)!=""){ $offset_start = $offset + 3; $offset_end = $offset + $per_page + 2; if ($offset_end>$total_item+2) $offset_end=$total_item+2; } else{ if ($total_item>$per_page){ $offset_start = 1; $offset_end = $per_page + 2; if ($offset_end>$total_item+2) $offset_end=$total_item+2; } else{ $offset_start = 1; $offset_end = $per_page ; if ($offset_end>$total_item) $offset_end=$total_item; $total_item = $total_item-2; } } ?> of items