本文整理汇总了PHP中getProfiles函数的典型用法代码示例。如果您正苦于以下问题:PHP getProfiles函数的具体用法?PHP getProfiles怎么用?PHP getProfiles使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getProfiles函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: session_start
<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;
}
?>
开发者ID:CCardosoDev,项目名称:Safeguard,代码行数:31,代码来源:addDisease.php
示例2: mysqli_fetch_object
<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>
开发者ID:pldolot,项目名称:apc-quality-cn131df131ss132-06,代码行数:29,代码来源:caseview.php
示例3: mysqli_fetch_object
<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>";
开发者ID:pldolot,项目名称:apc-quality-cn131df131ss132-06,代码行数:31,代码来源:case.php
示例4: getProfiles
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;
开发者ID:jliman,项目名称:SEOStat,代码行数:31,代码来源:ajax.getstat.php
示例5: set_time_limit
<?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..");
}
}
开发者ID:jliman,项目名称:SEOStat,代码行数:18,代码来源:fetch.php
示例6: switch
}
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);
开发者ID:FlushOut,项目名称:folearn,代码行数:31,代码来源:actions.php
注:本文中的getProfiles函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论