Ejemplo n.º 1
0
			<?php 
        }
        ?>
		<?php 
    }
    ?>

	<?php 
} elseif ($user->role == 2) {
    ?>
<!-- if platoon leader -->

		<div class='panel panel-default'>
			<div class='panel-heading'><strong> Your <?php 
    echo Locality::run("Platoon", $member->game_id);
    ?>
</strong> <span class=" pull-right"><?php 
    echo Platoon::countPlatoon($member->platoon_id);
    ?>
 members</span></div>
			<div class='list-group' id='squads'>
				<?php 
    if (count((array) $squads)) {
        $i = 1;
        ?>

					<!-- get squads -->

					<?php 
        foreach ($squads as $squad) {
Ejemplo n.º 2
0
        foreach ($rolesArray as $role) {
            ?>
										<?php 
            if ($role->id <= $user->role || User::isDev()) {
                ?>
											<option value="<?php 
                echo $role->id;
                ?>
" <?php 
                echo $userInfo->role == $role->id ? "selected" : NULL;
                ?>
 <?php 
                echo $user->role == $role->id && !User::isDev() ? "disabled" : NULL;
                ?>
><?php 
                echo Locality::run($role->role_name, $member->game_id);
                ?>
</option>
										<?php 
            }
            ?>
									<?php 
        }
        ?>
								</select>
							</div>
						<?php 
    }
    ?>

						<?php 
Ejemplo n.º 3
0
    <?php 
echo $alerts;
?>

    <div class="margin-top-20">
        <!-- Nav tabs -->
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#activity" aria-controls="home" role="tab"
                                                      data-toggle="tab">Server Activity</a></li>
            <?php 
if ($user->role >= 1 && $memberInfo->position_id == 5) {
    ?>
                <li role="presentation"><a href="#squadmembers" aria-controls="squadmembers" role="tab"
                                           data-toggle="tab"><?php 
    echo Locality::run('Squad', $memberInfo->game_id);
    ?>
                        members</a></li>
            <?php 
}
?>
            <li role="presentation"><a href="#recruits" aria-controls="recruits" role="tab" data-toggle="tab">Recruiting
                    records</a></li>
            <li role="presentation"><a href="#history" aria-controls="history" role="tab" data-toggle="tab">Member
                    history</a></li>

        </ul>

    </div>

    <div class='row margin-top-20'>
Ejemplo n.º 4
0
    echo $member->rank_id;
    ?>
</td>
					<td class='text-center col-hidden'><?php 
    echo $member->last_activity;
    ?>
</td>

					<?php 
    if (is_object($position) && property_exists($position, 'id')) {
        ?>
						<td><em><span class='<?php 
        echo $position->class;
        ?>
' title='<?php 
        echo Locality::run($position->desc, $member->game_id);
        ?>
'><i class='<?php 
        echo $position->icon;
        ?>
'></i> <?php 
        echo $member->forum_name;
        ?>
</span></em></td>
					<?php 
    } else {
        ?>
						<td><em><?php 
        echo $member->forum_name;
        ?>
</span></em></td>
Ejemplo n.º 5
0
                                                    class="label label-default movable"><?php 
                    echo $member->forum_name;
                    ?>
</a>
                                            </h4>
                                        <?php 
                }
                ?>
                                    <?php 
            }
            ?>
                                    </p>
                                </div>
                                <div class="panel-footer text-muted"><strong>TIP</strong>: Drag and drop a member onto
                                    a <?php 
            echo Locality::run('platoon', $division->id);
            ?>
 to assign them.
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            <?php 
        }
        ?>
        <?php 
    }
    ?>
    </div>
Ejemplo n.º 6
0
        <li class='list-group-item text-right'><span class='pull-left'><strong>Last promoted: </strong></span>
            <span class='text-muted'><?php 
echo !is_null($memberInfo->last_promotion) ? date('Y-m-d', strtotime($memberInfo->last_promotion)) : "Not available";
?>
</span>
        </li>

        <?php 
echo property_exists($platoonInfo, 'item') ? $platoonInfo->item : null;
?>
        <?php 
$position = $memberInfo->position_id ? Position::convert($memberInfo->position_id)->desc : 'Unknown';
?>
        <li class='list-group-item text-right'><span class='pull-left'><strong>Position: </strong></span> <span
                class='text-muted'><?php 
echo Locality::run($position, $memberInfo->game_id);
?>
</span></li>
        <?php 
$squadleader = property_exists($memberInfo, 'squad_leader_id') ? $memberInfo->squad_leader_id : null;
?>

        <?php 
if ($squadleader != 0) {
    ?>
            <a href="member/<?php 
    echo $squadleader;
    ?>
" class="list-group-item text-right">
                <span class='pull-left'><strong>Squad Leader: </strong></span>
                <span class='text-muted'><?php 
Ejemplo n.º 7
0
                            </div>
                        </div>
                    </div>
                </div>
            <?php 
        }
        ?>
        <?php 
    }
    ?>

        <div class='row'>
            <div class='col-md-8'>
                <div class='panel panel-primary'>
                    <div class='panel-heading'>Currently Active <?php 
    echo Locality::run('Platoons', $division->id);
    ?>
</div>
                    <div class='list-group'>
                        <?php 
    $platoons = Platoon::find_all($division->id);
    ?>
                        <?php 
    if (count($platoons)) {
        ?>
                            <?php 
        foreach ($platoons as $platoon) {
            ?>
                                <?php 
            $leader = Member::findByMemberId($platoon->leader_id);
            ?>
Ejemplo n.º 8
0
			<div class="col-xs-4">
				<div class="row">

					<?php 
    if ($squadCount < MAX_SQUADS_IN_PLT) {
        ?>
						<div class="col-xs-12">
							<div class="panel panel-info">
								<div class="panel-heading"><strong>New <?php 
        echo Locality::run('Squad', $division->id);
        ?>
</strong></div>
								<div class="panel-body">
									<p>Would you like to add a new <?php 
        echo Locality::run('Squad', $division->id);
        ?>
?  <a data-platoon-id="<?php 
        echo $platoon->id;
        ?>
" data-division-id="<?php 
        echo $division->id;
        ?>
" class="btn btn-success btn-xs create-squad pull-right" href="create/squad"><i class="fa fa-plus"></i> Add</a></p>
								</div>
							</div>
						</div>
					<?php 
    }
    ?>