From cd230aefd78797219cb3814cda29fc8178520a22 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 1 Apr 2011 16:34:13 +0200 Subject: Pagination in ettlichen Controllern + aufgerÀumt --- .../modules/user/views/scripts/bootiso/index.phtml | 2 +- .../modules/user/views/scripts/bootos/index.phtml | 2 +- .../modules/user/views/scripts/client/index.phtml | 2 +- .../modules/user/views/scripts/filter/index.phtml | 6 +- .../modules/user/views/scripts/pool/index.phtml | 80 +++++++++++++++++++++- .../modules/user/views/scripts/preboot/index.phtml | 14 ++-- 6 files changed, 92 insertions(+), 14 deletions(-) (limited to 'application/modules/user/views/scripts') diff --git a/application/modules/user/views/scripts/bootiso/index.phtml b/application/modules/user/views/scripts/bootiso/index.phtml index c41d8d2..f43949d 100644 --- a/application/modules/user/views/scripts/bootiso/index.phtml +++ b/application/modules/user/views/scripts/bootiso/index.phtml @@ -1,7 +1,7 @@

BootMedien

notification != ''){echo $this->notification;} ?> formButton('createbootiso', 'Create BootISO', array( - 'onclick' => 'self.location="/user/bootiso/createbootiso"', + 'onclick' => 'self.location="/user/bootiso/createbootiso/page/'.$this->page.'"', 'class' => 'addbutton'))?> diff --git a/application/modules/user/views/scripts/bootos/index.phtml b/application/modules/user/views/scripts/bootos/index.phtml index 92e6bbb..8982fb2 100644 --- a/application/modules/user/views/scripts/bootos/index.phtml +++ b/application/modules/user/views/scripts/bootos/index.phtml @@ -5,7 +5,7 @@ 'class' => 'updatebutton', ))?> formButton('createbootos', 'Create BootOS', array( - 'onclick' => 'self.location="/user/bootos/createbootos"', + 'onclick' => 'self.location="/user/bootos/createbootos/page/'.$this->page.'"', 'class' => 'addbutton'))?>
diff --git a/application/modules/user/views/scripts/client/index.phtml b/application/modules/user/views/scripts/client/index.phtml index 1e3345e..62c698c 100644 --- a/application/modules/user/views/scripts/client/index.phtml +++ b/application/modules/user/views/scripts/client/index.phtml @@ -1,7 +1,7 @@

Clients

notification != ''){echo $this->notification;} ?> formButton('createbootos', 'Create Client', array( - 'onclick' => 'self.location="/user/client/addclient"', + 'onclick' => 'self.location="/user/client/addclient/page/'.$this->page.'"', 'class' => 'addbutton'))?> clients): ?> diff --git a/application/modules/user/views/scripts/filter/index.phtml b/application/modules/user/views/scripts/filter/index.phtml index bb7f11a..1716a95 100644 --- a/application/modules/user/views/scripts/filter/index.phtml +++ b/application/modules/user/views/scripts/filter/index.phtml @@ -1,7 +1,7 @@

Filters

notification != ''){echo $this->notification;} ?> formButton('createconfig', 'Create Filter', array( - 'onclick' => 'self.location="/user/filter/addfilter"', + 'onclick' => 'self.location="/user/filter/addfilter/page/'.$this->page.'"', 'class' => 'addbutton'))?> filters): ?> @@ -93,7 +93,7 @@ 'controller' => 'filter', 'action' => 'editfilterentry', 'filterentriesID' => $filterentry['filterentriesID'], - 'page' => $this->page + 'page' => $this->page ), 'default', true) ?>">Edit Filterentry @@ -103,7 +103,7 @@ 'controller' => 'filter', 'action' => 'removefilterentry', 'filterentriesID' => $filterentry['filterentriesID'], - 'page' => $this->page + 'page' => $this->page ), 'default', true) ?>">Delete Filterentry diff --git a/application/modules/user/views/scripts/pool/index.phtml b/application/modules/user/views/scripts/pool/index.phtml index 36934f6..4d224a1 100644 --- a/application/modules/user/views/scripts/pool/index.phtml +++ b/application/modules/user/views/scripts/pool/index.phtml @@ -1,7 +1,7 @@

Pools

notification != ''){echo $this->notification;} ?> formButton('createconfig', 'Create Pool', array( - 'onclick' => 'self.location="/user/pool/createpool"', + 'onclick' => 'self.location="/user/pool/createpool/page/'.$this->page.'"', 'class' => 'addbutton'))?> pools): ?> @@ -97,8 +97,14 @@ pagination; ?> freeclients) && count($this->freeclients)>0): ?> -

Free clients

-
+

Free clients

+

+ Search:   + Cancel Search +

+ +
+
@@ -132,6 +138,74 @@ foreach ($this->freeclients as $client): ?>
ClientID MacAdress
+ + diff --git a/application/modules/user/views/scripts/preboot/index.phtml b/application/modules/user/views/scripts/preboot/index.phtml index 21ff310..9e73de1 100644 --- a/application/modules/user/views/scripts/preboot/index.phtml +++ b/application/modules/user/views/scripts/preboot/index.phtml @@ -5,7 +5,7 @@ 'class' => 'updatebutton', ))?> formButton('createpreboot', 'Create PreBoot', array( - 'onclick' => 'self.location="/user/preboot/createpreboot"', + 'onclick' => 'self.location="/user/preboot/createpreboot/page/'.$this->page.'"', 'class' => 'addbutton'))?> @@ -31,7 +31,8 @@ 'module' => 'user', 'controller' => 'preboot', 'action' => 'updatepreboot', - 'prebootID' => $preboot->getID() + 'prebootID' => $preboot->getID(), + 'page' => $this->page ), 'default', true, false) ?>">Updates available @@ -43,7 +44,8 @@ 'module' => 'user', 'controller' => 'preboot', 'action' => 'editpreboot', - 'prebootID' => $preboot->getID() + 'prebootID' => $preboot->getID(), + 'page' => $this->page ), 'default', true, false) ?>">Edit Preboot @@ -52,10 +54,12 @@ 'module' => 'user', 'controller' => 'preboot', 'action' => 'deletepreboot', - 'prebootID' => $preboot->getID() + 'prebootID' => $preboot->getID(), + 'page' => $this->page ), 'default', true) ?>">Delete Preboot -
\ No newline at end of file + +pagination; ?> -- cgit v1.2.3-55-g7522