Exemplo n.º 1
0
 - <?php 
        echo $chur->getAddress()->getCity();
        ?>
 / <?php 
        echo $chur->getAddress()->getState();
        ?>
        </p>
        <p><label>Observações</label>:  <?php 
        echo $chur->getAddress()->getPs();
        ?>
</p>
        <?php 
        break;
    case 'mission':
        $cod = filter_input(INPUT_POST, 'cod', FILTER_SANITIZE_NUMBER_INT);
        $miss = Mission::getMission('WHERE id_mission = ' . $cod);
        ?>
        <p><label>Nome</label>: <?php 
        echo $miss->getName();
        ?>
</p>
        <p><label>Equipe</label>: <?php 
        echo $miss->getTeam()->getName();
        ?>
</p>
        <p><label>Data Inicio</label>: <?php 
        echo $miss->getDateBegin();
        ?>
 | <label>Data Fim</label>: <?php 
        echo $miss->getDateEnd();
        ?>
Exemplo n.º 2
0
<?php

include_once "topmenu.php";
include_once 'classes/Mission.php';
$mission = Mission::getMission(1);
?>

<div class="natsays">
<h2>Missions</h2>
<p>The next morning, you wake up to this voicemail from Natalie: "We expect big things out of you, Soldier, here's your first mission."</p>
</div>
	<div class="mission">
        <table class="topmission">
            <tr>
                <td>
                <h4><?php 
echo $mission->getName();
?>
</h4>
                </td>
                <td>
                <div class="missionrank">
                        <img src="img/percentimage4.png"
                                 alt="9.5%"
                                 height="9"
                                 class="percentImageMissions"
                                 style="background-position: 100% 0pt;" />
                        <p>0% Rank 1</p>
                </div>
                </td>
            </tr>
Exemplo n.º 3
0
}
//under this model, cityrank doesnt increase until every missions currRank is ready at new number
//currRank should really be rankMissionIsReadyFor
function handleRanks($user, $mission)
{
    $userMissionData = UserMissionData::getUserMissionData($user->getID(), $mission->getID());
    if (!$userMissionData) {
        $userMissionData = UserMissionData::createUserMissionData($user->getID(), $mission->getID());
    } else {
        $userMissionData->completeMission($mission);
    }
}
$missionID = $_REQUEST['missionID'];
$cityID = $_REQUEST['cityID'];
$userID = $_SESSION['userID'];
$mission = Mission::getMission($missionID);
if (!$mission) {
    redirect("{$serverRoot}errorpage.html");
    exit;
}
$user = User::getUser($userID);
if (!$user) {
    redirect("{$serverRoot}errorpage.html");
    exit;
}
$requiredItemIDsToQuantity = Mission::getMissionRequiredItemsIDsToQuantity($missionID);
$userItemIDsToQuantity = User::getUsersItemsIDsToQuantity($user->getID());
$doMission = true;
if (!agencyIsLargeEnough($mission, $user)) {
    $doMission = false;
}
Exemplo n.º 4
0
<?php

if ($_SESSION['login']['role'] < 2) {
    echo '<h2 style="text-align: center; vertical-align: middle">Página Restrita</h2>';
} else {
    include_once 'class/Mission.php';
    $id = filter_input(INPUT_GET, 'cod', FILTER_SANITIZE_NUMBER_INT);
    if (Mission::getMission("WHERE id_mission = {$id}")) {
        $mission = Mission::getMission("WHERE id_mission = {$id}");
    } else {
        echo '<script>window.location = "index.php"</script>';
    }
    ?>
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">Alterar Missão</h1>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">
        <div class="col-md-6 col-md-offset-3">
            <ul class="nav nav-wizard">
                <li class="active" id="1"><a href="#">Dados da Missão</a></li>
                <li class="disabled" id="2"><a href="#">Local</a></li>
                <li class="disabled" id="3"><a href="#">Finalizar</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">