public function frmAction($id = NULL)
 {
     $disque = $this->getInstance($id);
     //TODO 4.4.1
     $this->view->setVars(array("disque" => $disque, "siteUrl" => $this->url->getBaseUri(), "baseHref" => $this->dispatcher->getControllerName()));
     parent::frmAction($id);
 }
 public function frmAction($id = NULL)
 {
     $message = $this->getInstance($id);
     $projects = Projet::find();
     $users = User::find();
     $this->view->setVars(array("message" => $message, "users" => $users, "projects" => $projects));
     parent::frmAction($id);
 }
 public function frmAction($id = NULL)
 {
     $user = $this->getInstance($id);
     $roles = Role::find();
     $this->view->setVars(array("user" => $user, "siteUrl" => $this->url->getBaseUri(), "baseHref" => $this->dispatcher->getControllerName(), "roles" => $roles));
     $this->view->pick("users/edit");
     $_SESSION['bread']['object'] = $user;
     parent::frmAction($id);
 }
 public function frmAction($id = NULL)
 {
     $tache = $this->getInstance($id);
     $usecases = Usecase::find();
     $users = User::find("idRole<>3");
     $this->view->setVars(array("tache" => $tache, "users" => $users, "usecases" => $usecases));
     $_SESSION['bread']['object'] = $tache;
     $this->jquery->exec("\$('input[type=\"range\"]').rangeslider({\n  \t\t\t\t\t\t\t\tpolyfill: false,\n\t\t\t\t\t\t\t\tonSlide: function(position, value) {\n\t\t\t\t\t\t\t\t\t\$('.avancement').html(value.toString()+'%');\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t});", true);
     parent::frmAction($id);
 }
 public function frmAction($id = NULL)
 {
     $role = $this->getInstance($id);
     $controllers = array("Default" => array("name" => "Tous", "actions" => array("index" => "Lister", "frm" => "Modifiation des données Brutes", "update" => "Modifier/Ajouter", "delete" => "Supprimer", "show" => "Afficher les détails")), "Projects" => array("name" => "Projets", "actions" => array("manage" => "Ajouter/Modifier UseCases", "manageUc" => "Ajouter/Modifier Tâches")), "Roles" => array("name" => "Rôles", "actions" => array("updateACL" => "Mettre à jour es droits")), "Taches" => array("name" => "Tâches", "actions" => array()), "Messages" => array("name" => "Messages", "actions" => array()), "UseCases" => array("name" => "Use Cases", "actions" => array()), "Users" => array("name" => "Utilisateurs", "actions" => array()));
     $acls = Acl::find("idRole=" . $role->getId());
     $this->view->setVars(array("role" => $role, "acls" => AclController::toArray($acls), "controllers" => $controllers, "siteUrl" => $this->url->getBaseUri(), "baseHref" => $this->dispatcher->getControllerName()));
     $_SESSION['bread']['object'] = $role;
     $this->jquery->postFormOnClick(".validateACL", $this->dispatcher->getControllerName() . "/updateACL", "frmObject", "#content");
     parent::frmAction($id);
 }
 public function frmAction($id = NULL)
 {
     $user = $this->getInstance($id);
     $select = new HtmlSelect("role", "Rôle", "Sélectionnez un rôle...");
     $select->fromArray(array("admin", "user", "author"));
     $select->setValue($user->getRole());
     $select->compile($this->jquery, $this->view);
     $this->view->setVars(array("user" => $user, "siteUrl" => $this->url->getBaseUri(), "baseHref" => $this->dispatcher->getControllerName()));
     parent::frmAction($id);
 }
 public function frmAction($id = NULL)
 {
     $usecase = Usecase::findFirst("code='" . $id . "'");
     $projects = Projet::find();
     $users = User::find("idRole=2");
     $this->view->setVars(array("usecase" => $usecase, "users" => $users, "projects" => $projects));
     $_SESSION['bread']['object'] = $usecase;
     $this->jquery->exec("\$('input[type=\"range\"]').rangeslider({\n  \t\t\t\t\t\t\t\tpolyfill: false,\n\t\t\t\t\t\t\t\tonSlide: function(position, value) {\n\t\t\t\t\t\t\t\t\t\$('.avancement').html(value.toString()+'%');\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t});", true);
     parent::frmAction($id);
 }
Example #8
0
 public function frmAction($id = NULL)
 {
     $acl = $this->getInstance($id);
     $_SESSION['bread']['object'] = $acl;
     parent::frmAction($id);
 }
 public function frmAction($id = null)
 {
     $projet = $this->getInstance($id);
     $this->view->setVar("project", $projet);
     if ($projet->getNom() == "") {
         $projet->setNom("Nouveau Projet");
     }
     $managers = User::find('idRole=4');
     $clients = User::find("idRole=3");
     $this->view->setVars(array("clients" => $clients, "managers" => $managers));
     parent::frmAction($id);
     $_SESSION['bread']['object'] = $projet;
 }
 public function frmAction($id = NULL)
 {
     $user = $this->getInstance($id);
     $this->view->setVars(array("user" => $user, "siteUrl" => $this->url->getBaseUri(), "baseHref" => $this->dispatcher->getControllerName()));
     parent::frmAction($id);
 }