예제 #1
0
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php 
session_start();
include_once '../classes/profile.php';
include_once '../classes/address.php';
include_once '../funcs.php';
include_once '../conf.php';
if (!isset($_POST['submit'])) {
    echo '<h1>You have done it again, you silly!</h1>';
    exit;
}
$disease = $_POST['desc'];
$json = getProfiles();
$profiles = json_decode($json);
foreach ($profiles as $profile) {
    if ($profile->profileID == $_POST['profileID']) {
        array_push($profile->diseases, $disease);
        $profile->token = $_SESSION['token'];
        echo $insert = editProfile($profile);
        break;
    }
}
if (empty($insert)) {
    header("Location: http://" . redirectLink() . "/SafeFront/index.php?action=profileDiseases&profileID=" . $_POST['profileID'] . "&method=Disease%20added%20Sucessfully");
} else {
    echo $insert;
}
?>
        <section class="page container">
            <div class="row">
                <div class="span16">
                        <?php 
mysqli_fetch_object(getProfiles());
$cases = getCasesByID($_GET['case']);
while ($case = $cases->fetch_object()) {
    echo "<div class='box'>\n                                        <div class='box-header'>\n                                            <i class='icon-envelope icon-large'></i>\n                                            <h5>({$case->casenumber}) {$case->case_name}</h5>\n                                            \n                                        </div>\n                                        <div style='padding:5px;font-size:12px'>\n                                            <b>Date Created</b>: {$case->c_date_time}<br>\n                                            <b>Created By</b>: {$case->firstname} {$case->lastname}, {$case->middlename}<br>\n                                            <b>Issue</b>: {$case->issue_name}<br>\n                                            <b>Category</b>: {$case->category_name}<br>\n                                            <b>Sub-Category</b>: {$case->subcategory_name}<br>\n                                            <b>Status</b>: {$case->case_status_name}<br>\n                                            " . ($case->case_status_id == 1 ? "<button type='button' class='btn' onClick='window.location.replace(\"/scc/?page=caseform&update={$case->case_id}\");'>Update</button>" : "") . "\n                                        </div>\n                                        <div class='box-content box-table'>\n\n\n                                        <div class='box-header'>\n                                        " . ($case->case_status_id == 1 ? "<a href='?page=ticketform&case={$case->case_id}' class='icon-pencil icon-large'></a>" : "") . "\n                                           \n                                            <h5>Tickets</h5>\n                                        </div>\n                                        <table class='table table-hover tablesorter'>\n                                            <thead>\n                                                <tr>\n                                                    <th>Ticket Number</th>\n                                                    <th>Ticket Name</th>\n                                                    <th>Date Created</th>\n                                                    <th>Created By</th>\n                                                    <th>Ticket Notes</th>\n                                                    <th>Ticket Status</th>\n                                                    \n                                                </tr>\n                                            </thead>\n                                            <tbody>";
    $tickets = getTicketsByCase($case->case_id);
    if ($tickets) {
        while ($ticket = $tickets->fetch_object()) {
            echo "<tr onClick='window.document.location=\"?page=ticketview&ticket={$ticket->ticket_id}\"' style='cursor: pointer'>\n                                                        <td>{$ticket->ticketnumber}</td>\n                                                        <td>{$ticket->ticket_name}</td>\n                                                        <td>{$ticket->t_date_time}</td>\n                                                        <td>{$ticket->firstname} {$ticket->lastname}, {$ticket->middlename}</td>\n                                                        <td>{$ticket->ticket_notes}</td>\n                                                        <td>{$ticket->ticket_status_name}</td>\n                                                    </tr>";
        }
    }
    echo "\n                                            \n                                            </tbody>\n                                        </table>\n                                        </div>\n\n                                    </div>";
}
?>
                
                    
                
                
                
                </div>
            </div>
        </section>
        
    
            </div>
        </div>
                    <div class="blockoff-right">
                        <form method="GET" action="">
                            <input type="hidden" name="page" value="case"/>  
                            <input type="text" name="search" placeholder="Search Profile">
                            <button type="submit">Search</button>
                        </form>
                    </div>
                </div>
                <div class="span12">
                        <?php 
mysqli_fetch_object(getProfiles());
$profiles;
if (isset($_GET['search'])) {
    $profiles = getProfileByQuery($_GET['search']);
} else {
    $profiles = getProfiles();
}
if (mysqli_num_rows($profiles) == 0) {
    echo "No Profile Found";
}
while ($profile = $profiles->fetch_object()) {
    echo "<div class='box'>\n                                        <div class='box-header'>\n                                            <i class='icon-user icon-large'></i>\n                                            <h5>({$profile->profilenumber}) {$profile->profile_firstname} {$profile->profile_middlename} {$profile->profile_lastname}</h5>\n                                            \n                                        </div>\n                                        <div style='padding:5px;font-size:12px'>\n                                            <b>Type</b>: " . ($profile->type_id == 1 ? "BEI" : "BOC") . "<br>\n                                            <b>Phone Number</b>: {$profile->phonenumber}<br>\n                                            <b>Sex</b>: {$profile->p_sex}<br>\n                                            <b>SSS</b>: {$profile->sss}<br>\n                                            <b>GSIS</b>: {$profile->gsis}<br>\n                                            <b>Precinct Number</b>: {$profile->precinctnumber}<br>\n                                            <b>Location</b>: {$profile->island_name}, {$profile->region_name}, {$profile->province_name}, {$profile->municipality_name}, {$profile->district_name}, {$profile->barangay}, {$profile->school_name}\n                                            <br>\n                                            ";
    if ($_SESSION['user']['position'] == 11 || $_SESSION['user']['position'] == 15) {
        echo "<button type='button' class='btn' onClick='window.location.replace(\"/scc/?page=beibocpform&update={$profile->profile_id}\");'>Update</button>";
    }
    echo "\n                                        </div>\n                                        <div class='box-content box-table'>\n\n\n                                        <div class='box-header'>\n                                           <a href='?page=caseform&profile={$profile->profile_id}' class='icon-pencil icon-large'></a>\n                                            <h5>Cases</h5>\n                                        </div>\n                                        <table class='table table-hover tablesorter'>\n                                            <thead>\n                                                <tr>\n                                                    <th>Case Number</th>\n                                                    <th>Case Name</th>\n                                                    <th>Date Created</th>\n                                                    <th>Created By</th>\n                                                    <th>Category</th>\n                                                    <th>Status</th>\n                                                    \n                                                </tr>\n                                            </thead>\n                                            <tbody>";
    $cases = getCasesByProfile($profile->profile_id);
    while ($case = $cases->fetch_object()) {
        echo "<tr onClick='window.document.location=\"?page=caseview&case={$case->case_id}\"' style='cursor: pointer'>\n                                                    <td>{$case->casenumber}</td>\n                                                    <td>{$case->case_name}</td>\n                                                    <td>{$case->c_date_time}</td>\n                                                    <td>{$case->firstname} {$case->lastname}, {$case->middlename}</td>\n                                                    <td>{$case->category_name}</td>\n                                                    <td>{$case->case_status_name}</td>\n                                                </tr>";
    }
    echo "\n                                            \n                                            </tbody>\n                                        </table>\n                                        </div>\n\n                                    </div>";
예제 #4
0
if (isset($_REQUEST['endDate'])) {
	$endDate = $_REQUEST['endDate'];
}

$interval = '';
if (isset($_REQUEST['interval'])) {
	$interval = $_REQUEST['interval'];
}

$type = '';
if (isset($_REQUEST['type'])) {
	$type = $_REQUEST['type'];
}


$profile = getProfiles($profileId);
$profile = $profile[0];

?>
<? if ($type == 'gp') { ?>
<div id="chartdiv1" class="graph"></div>
<script type="text/javascript">
   var chart1 = new FusionCharts("charts/ScrollLine2D.swf?fusioncharts.com", "AlexaStat", "980", "250", "0", "0");
   chart1.setDataURL(escape("ajax.data.alexa.php?profileId=<?php 
echo $profileId;
?>
&startDate=<?php 
echo $startDate;
?>
&endDate=<?php 
echo $endDate;
예제 #5
0
파일: fetch.php 프로젝트: jliman/SEOStat
<?php

set_time_limit(0);
if (isset($_GET['id'])) {
    $id = $_GET['id'];
    if ($id == 'all') {
        $accounts = getProfiles();
    } else {
        $accounts = getProfiles($id);
    }
} else {
    if (isset($_GET['gid'])) {
        $id = $_GET['gid'];
        $accounts = getProfilesByGroup($id);
    } else {
        die("Please specify profile ID..");
    }
}
예제 #6
0
}
if (isset($_POST['dtStart'])) {
    $dtStart = $_POST['dtStart'];
}
if (isset($_POST['dtEnd'])) {
    $dtEnd = $_POST['dtEnd'];
}
if (isset($_POST['dt'])) {
    $dt = $_POST['dt'];
}
if (isset($_POST['data'])) {
    $data = $_POST['data'];
}
switch ($_POST['action']) {
    case 'getProfiles':
        getProfiles($id);
        break;
    case 'getScheduleDetails':
        getScheduleDetails($id, $dt);
        break;
    case 'getSchedulesByIdMonth':
        getSchedulesByIdMonth($id, $dt);
        break;
    case 'getDisciplinesUser':
        getDisciplinesUser($id, $company->fk_country);
        break;
    case 'getLessonDetails':
        getLessonDetails($id, $idMob);
        break;
    case 'getLessonEvaluation':
        getLessonEvaluation($id, $idMob);