|
@@ -14,27 +14,27 @@ class auditController extends Staple_Controller
|
|
|
|
|
|
public function index()
|
|
public function index()
|
|
{
|
|
{
|
|
- if(array_key_exists('page',$_GET))
|
|
|
|
|
|
+ if(array_key_exists('items',$_GET))
|
|
{
|
|
{
|
|
- $page = $_GET['page'];
|
|
|
|
|
|
+ $_SESSION['items'] = $_GET['items'];
|
|
}
|
|
}
|
|
- else
|
|
|
|
|
|
+
|
|
|
|
+ if(array_key_exists('items',$_SESSION))
|
|
{
|
|
{
|
|
- $page = 1;
|
|
|
|
|
|
+ $items = $_SESSION['items'];
|
|
}
|
|
}
|
|
-
|
|
|
|
- if(array_key_exists('items',$_GET))
|
|
|
|
|
|
+ else
|
|
{
|
|
{
|
|
- Staple_Registry::set('items',$_GET['items']);
|
|
|
|
|
|
+ $items = 20;
|
|
}
|
|
}
|
|
|
|
|
|
- if(Staple_Auth::get('items') == null)
|
|
|
|
|
|
+ if(array_key_exists('page',$_GET))
|
|
{
|
|
{
|
|
- $items = 20;
|
|
|
|
|
|
+ $page = $_GET['page'];
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- $items = Staple_Registry::get('items');
|
|
|
|
|
|
+ $page = 1;
|
|
}
|
|
}
|
|
|
|
|
|
$audit = new auditModel();
|
|
$audit = new auditModel();
|