diff options
| -rw-r--r-- | app/controller/obj.control.php | 5 | ||||
| -rw-r--r-- | app/model/obj.mod.php | 8 | ||||
| -rw-r--r-- | app/view/obj/group.view.php | 27 | 
3 files changed, 38 insertions, 2 deletions
| diff --git a/app/controller/obj.control.php b/app/controller/obj.control.php index f341b48..08172b5 100644 --- a/app/controller/obj.control.php +++ b/app/controller/obj.control.php @@ -34,14 +34,15 @@ class Obj extends Controller          switch ($obj->type)          {              case "group": -                $this->action_group($mod, $argv[0]); +                $this->action_group($mod, $obj->guid);                  break;          }      }      function action_group($mod, $guid)      { -        /* TODO */ +        $mod->initGroup($guid); +        include "view/obj/group.view.php";      }  } diff --git a/app/model/obj.mod.php b/app/model/obj.mod.php index bccef93..07be4b4 100644 --- a/app/model/obj.mod.php +++ b/app/model/obj.mod.php @@ -15,9 +15,17 @@   */  require_once "model/common.mod.php"; +require_once "class/group.class.php";  class ObjModel extends CommonModel  { +    /* +     * Initialize a group view +     */ +    function initGroup($guid) +    { +        $this->group = new Group($guid); +    }  }  ?> diff --git a/app/view/obj/group.view.php b/app/view/obj/group.view.php new file mode 100644 index 0000000..3c0a1cb --- /dev/null +++ b/app/view/obj/group.view.php @@ -0,0 +1,27 @@ +<!-- + * SCROTT Copyright (C) 2016 Malf Furious + * + * Scrott is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published + * by the Free Software Foundation, either version 3 of the License, + * or (at your option) any later version. + * + * Scrott is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public + * License for more details. +--> + +<!DOCTYPE html> + +<html lang="en"> +    <head> +        <?php include "view/common/head.view.php"; ?> +        <title>Scrott - <?=$mod->group->name?></title> +    </head> + +    <body> +        <?php include "view/common/topp.view.php"; ?> +        <?php include "view/common/foot.view.php"; ?> +    </body> +</html> | 
