/** * * @param $pPlayer_group * @return string */ public function playergroup(Ultimatum_Model_Ultgamegroups $pPlayer_group, $pContent = NULL) { $this->view->headLink()->appendStylesheet($this->view->baseUrl() . '/style/ultimatum/ult_style.css'); $po = $pPlayer_group->pending_orders(); $group = $pPlayer_group->get_group(); ob_start(); ?> <fieldset class="ult_groupinfo"> <legend>Group <?php echo $group->get_title(); ?> </legend> <?php echo $this->view->powerMatrix($group); ?> <p><b><?php echo $group->get_lead(); ?> </b>: <?php echo $group->get_content(); ?> </p> <?php if ($pContent) { echo $pContent; } else { ?> <?php if ($po && count($po)) { ?> <h3>Pending Orders</h3> <ol> <?php foreach ($po as $o) { ?> <li><?php echo $o; ?> <?php echo $o->cancel_link(); ?> </li> <?php } ?> </ol> <?php } ?> <h3>Command Group</h3> <ul> <?php $params = array('active' => 1); foreach (Ultimatum_Model_Ultplayergroupordertypes::getInstance()->find($params) as $ot) { ?> <li><a class="linkbutton" href="/ultimatum/game/order/group/<?php echo $group->identity(); ?> /order/<?php echo $ot->identity(); ?> /"><?php echo $ot; ?> </a> <?php echo $ot->get_lead(); ?> <?php } ?> </ul> <?php } ?> </fieldset> <?php return ob_get_clean(); }