From e2d929c54a0d951c9bae51df7df5178bf9f0066f Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 25 Apr 2011 11:40:40 +0200 Subject: config fertig --- .../user/views/scripts/config/adduser.phtml | 4 + .../user/views/scripts/config/edituser.phtml | 4 + .../modules/user/views/scripts/config/index.phtml | 129 ++++++++++++++------- .../user/views/scripts/config/showconfig.phtml | 84 ++++++++++++++ 4 files changed, 181 insertions(+), 40 deletions(-) create mode 100644 application/modules/user/views/scripts/config/adduser.phtml create mode 100644 application/modules/user/views/scripts/config/edituser.phtml create mode 100644 application/modules/user/views/scripts/config/showconfig.phtml (limited to 'application/modules/user/views/scripts') diff --git a/application/modules/user/views/scripts/config/adduser.phtml b/application/modules/user/views/scripts/config/adduser.phtml new file mode 100644 index 0000000..2dc2691 --- /dev/null +++ b/application/modules/user/views/scripts/config/adduser.phtml @@ -0,0 +1,4 @@ +bootosuserForm; +echo $this->bootosuserForm; +?> diff --git a/application/modules/user/views/scripts/config/edituser.phtml b/application/modules/user/views/scripts/config/edituser.phtml new file mode 100644 index 0000000..2dc2691 --- /dev/null +++ b/application/modules/user/views/scripts/config/edituser.phtml @@ -0,0 +1,4 @@ +bootosuserForm; +echo $this->bootosuserForm; +?> diff --git a/application/modules/user/views/scripts/config/index.phtml b/application/modules/user/views/scripts/config/index.phtml index 9bdf185..37f5a9f 100644 --- a/application/modules/user/views/scripts/config/index.phtml +++ b/application/modules/user/views/scripts/config/index.phtml @@ -9,12 +9,6 @@ type == 'own'?'group':'own';?> -type == 'group') || (Pbs_Acl::checkRight('cco') && $this->type == 'own')): ?> -formButton('createconfig', 'Create Config', array( - 'onclick' => 'self.location="/user/config/createconfig/type/'.$this->type.'/page/'.$this->page.'"', - 'class' => 'addbutton'))?> - - formButton('ownconfig', 'Show '.$conflabel.' configs', array( 'onclick' => 'self.location="/user/config/index/type/'.$conflabel.'/page/'.$this->page.'"', @@ -25,63 +19,118 @@
Available searchfilter:
configID
+
visible
+
description
title
-
shellscript
created
- configlist)==0) - echo "There are no Config's to display." ?> - configlist as $k => $config): ?> + bootoslist)==0) + echo "There are no BootOs's to display." ?> + bootoslist as $k => $bootos): ?> + getPublic() != -1 || Pbs_Acl::checkRight('boai'))?>
-
Config
- +
BootOs
+
-
-
- type == 'group') || ($this->type == 'own' && Pbs_Acl::checkRight('ceo'))): ?> - url( array( 'module' => 'user', 'controller' => 'config', - 'action' => 'editconfig', + 'action' => 'createconfig', 'type' => $this->type, - 'configID' => $config->getID(), + 'bootosID' => $bootos->getID(), 'page' => $this->page ), 'default', - true, false) ?>">Edit Config + true, false) ?>">Add Config - type == 'group') || ($this->type == 'own' && Pbs_Acl::checkRight('cdo'))): ?> - Delete Config - -
-
escape($config->getTitle()); ?>
+
+ setGroupID(preg_replace("!^\[[0-9]+\]\s!",'',$bootos->getGroupID())); + } ?> + + +
escape($bootos->getTitle()); ?>
+
escape($bootos->getGroupID()); ?> - escape($bootos->getDescription()); ?>
- - -
escape($config->getID()); ?>
- - -
escape($config->getCreated()); ?>
+ configlist[$bootos->getID()])==0) + echo "There are no Config's to display." ?> + configlist[$bootos->getID()] as $k => $config): ?> +
+
+
Config
+ +
+
+
+ type == 'group') || ($this->type == 'own' && Pbs_Acl::checkRight('ceo'))): ?> + Show Config + Edit Config + + type == 'group') || ($this->type == 'own' && Pbs_Acl::checkRight('cdo'))): ?> + Delete Config + +
+
escape($config->getTitle()); ?>
+
escape($config->getDescription()) ?>
+
+ + +
escape($config->getID()); ?>
+ +
escape($config->getVisible()); ?>
+ + +
escape($config->getCreated()); ?>
+
+
+
+
+ +
+ pagination; ?> diff --git a/application/modules/user/views/scripts/config/showconfig.phtml b/application/modules/user/views/scripts/config/showconfig.phtml new file mode 100644 index 0000000..95e5742 --- /dev/null +++ b/application/modules/user/views/scripts/config/showconfig.phtml @@ -0,0 +1,84 @@ +

Details of +config; if(Pbs_Acl::checkRight('csui')): ?>

+notification != ''){echo $this->notification;} ?> + + +
Here you the the available Configs which you can select to your BootOS. The Config does some modification to the selected BootOs after the start. In Most Cases you don't have to change here anything.
+ + +

Userlist

+ +type == 'group') || (Pbs_Acl::checkRight('cco') && $this->type == 'own')): ?> +formButton('adduser', 'Add User', array( + 'onclick' => 'self.location="/user/config/adduser/configID/'.$this->configID.'/type/'.$this->type.'"', + 'class' => 'addbutton'))?> + + +
+ userlist)==0) + echo "There are no Users to display." ?> + userlist as $k => $user): ?> +
+
+
User
+ +
+
+
+ type == 'group') || ($this->type == 'own' && Pbs_Acl::checkRight('ceo'))): ?> + Edit User + Delete User + +
+ setHometypeID(preg_replace("!^\[[0-9]+\]\s!",'',$user->getHometypeID())); + } ?> +
+ +
getLogin() ?>
+ +
getPassword() ?>
+ +
getHometypeID() ?>
+ +
getHomepath() ?>
+ +
+
+
+
+ + +
+ + -- cgit v1.2.3-55-g7522