diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/model/obj.mod.php | 2 | ||||
-rw-r--r-- | app/view/obj/group.view.php | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/app/model/obj.mod.php b/app/model/obj.mod.php index 07be4b4..f412e3c 100644 --- a/app/model/obj.mod.php +++ b/app/model/obj.mod.php @@ -25,6 +25,8 @@ class ObjModel extends CommonModel function initGroup($guid) { $this->group = new Group($guid); + $this->owner = $this->group->getOwner(); + $this->members = $this->group->getMembers(); } } diff --git a/app/view/obj/group.view.php b/app/view/obj/group.view.php index 3c0a1cb..734a826 100644 --- a/app/view/obj/group.view.php +++ b/app/view/obj/group.view.php @@ -22,6 +22,26 @@ <body> <?php include "view/common/topp.view.php"; ?> + + <div class="container"> + <div class="well well-lg"> + <div class="row"> + <div class="col-md-4"> + <h1><?=$mod->group->name?></h1> + <img src="<?=$mod->owner->getHeadImage()?>" alt="<?=$mod->owner->getDisplayName()?>" class="img-circle" height="50" /> + + <?php if (count($mod->members)) { ?> + <span class="glyphicon glyphicon-plus"></span> + <?php } ?> + + <?php foreach ($mod->members as $member) { ?> + <img src="<?=$member->getHeadImage()?>" alt="<?=$member->getDisplayName()?>" class="img-circle" height="50" /> + <?php } ?> + </div> + </div> + </div> + </div> + <?php include "view/common/foot.view.php"; ?> </body> </html> |