本文整理汇总了PHP中setpid函数的典型用法代码示例。如果您正苦于以下问题:PHP setpid函数的具体用法?PHP setpid怎么用?PHP setpid使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setpid函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: setpid
/**
* library/ajax/unset_session_ajax.php Clear active patient on the server side.
*
* Copyright (C) 2012 Visolve <[email protected]>
*
* LICENSE: This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
*
* @package OpenEMR
* @author Visolve <[email protected]>
* @link http://www.open-emr.org
*/
$fake_register_globals = false;
$sanitize_all_escapes = true;
require_once "../../interface/globals.php";
require_once "../pid.inc";
//Setpid function is called on receiving an ajax request.
if ($_POST['func'] == "unset_pid") {
setpid(0);
}
?>
开发者ID:gidsil,项目名称:openemr,代码行数:29,代码来源:unset_session_ajax.php
示例2: empty
$form_review = empty($_GET['review']) ? 0 : 1;
// Check authorization.
$thisauth = acl_check('patients', 'med');
if (!$thisauth) {
die(xl('Not authorized'));
}
// Check authorization for pending review.
$reviewauth = acl_check('patients', 'sign');
if ($form_review and !$reviewauth and !$thisauth) {
die(xl('Not authorized'));
}
// Set pid for pending review.
if ($_GET['set_pid'] && $form_review) {
require_once "{$srcdir}/pid.inc";
require_once "{$srcdir}/patient.inc";
setpid($_GET['set_pid']);
$result = getPatientData($pid, "*, DATE_FORMAT(DOB,'%Y-%m-%d') as DOB_YMD");
?>
<script language='JavaScript'>
parent.left_nav.setPatient(<?php
echo "'" . addslashes($result['fname']) . " " . addslashes($result['lname']) . "',{$pid},'" . addslashes($result['pubpid']) . "','', ' " . xl('DOB') . ": " . oeFormatShortDate($result['DOB_YMD']) . " " . xl('Age') . ": " . getPatientAge($result['DOB_YMD']) . "'";
?>
);
parent.left_nav.setRadio(window.name, 'orp');
</script>
<?php
}
if (!$form_batch && !$pid && !$form_review) {
die(xl('There is no current patient'));
}
function oresRawData($name, $index)
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:orders_results.php
示例3: sqlStatement
require_once "{$srcdir}/pid.inc";
require_once "{$srcdir}/patient.inc";
//here, we lock the patient data table while we find the most recent max PID
//other interfaces can still read the data during this lock, however
sqlStatement("lock tables patient_data read");
$result = sqlQuery("select max(pid)+1 as pid from patient_data");
// TBD: This looks wrong to unlock the table before we have added our
// patient with its newly allocated pid!
//
sqlStatement("unlock tables");
//end table lock
$newpid = 1;
if ($result['pid'] > 1) {
$newpid = $result['pid'];
}
setpid($newpid);
if ($pid == NULL) {
$pid = 0;
}
// what do we set for the public pid?
if (isset($_POST["pubpid"]) && $_POST["pubpid"] != "") {
$mypubpid = $_POST["pubpid"];
} else {
$mypubpid = $pid;
}
if ($_POST['form_create']) {
$form_fname = ucwords(trim($_POST["fname"]));
$form_lname = ucwords(trim($_POST["lname"]));
$form_mname = ucwords(trim($_POST["mname"]));
// ===================
// DBC SYSTEM WAS REMOVED
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:new_patient_save.php
示例4: setpid
?>
;
<?php
// If there is a followup function to call, call it.
$followup = $_REQUEST['followup'];
if (!empty($followup)) {
echo "{$followup}({$thisenc})\n";
exit;
}
}
// end if $createvisit
// If this is a new pid, switch to it. Cloned from demographics.php.
// Currently this will only happen from players_report.php, but we try to be general.
if ($pid != $thispid) {
include_once "{$srcdir}/pid.inc";
setpid($thispid);
$prow = getPatientData($pid, "*, DATE_FORMAT(DOB,'%Y-%m-%d') as DOB_YMD");
?>
// The JavaScript part of switching to the new pid. Cloned from demographics.php.
top.left_nav.setPatient(<?php
echo "'" . htmlspecialchars($prow['fname'] . " " . $prow['lname'], ENT_QUOTES) . "'," . htmlspecialchars($pid, ENT_QUOTES) . ",'" . htmlspecialchars($prow['pubpid'], ENT_QUOTES) . "','', ' " . htmlspecialchars(xl('DOB') . ": " . oeFormatShortDate($prow['DOB_YMD']) . " " . xl('Age') . ": " . getPatientAge($prow['DOB_YMD']), ENT_QUOTES) . "'";
?>
);
// TBD: ForceDual? Maybe load demographics.php into the top frame?
<?php
}
// End of pid switch logic.
if ($createvisit) {
// Write JavaScript to open the selected encounter as the active encounter.
// Logic cloned from encounters.php.
if ($GLOBALS['concurrent_layout']) {
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:left_nav_encounter_ajax.php
示例5: setpid
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
require_once "../../globals.php";
require_once "{$srcdir}/acl.inc";
require_once "{$srcdir}/options.inc.php";
require_once "{$srcdir}/formatting.inc.php";
require_once "{$srcdir}/erx_javascript.inc.php";
// Session pid must be right or bad things can happen when demographics are saved!
//
include_once "{$srcdir}/pid.inc";
$set_pid = $_GET["set_pid"] ? $_GET["set_pid"] : $_GET["pid"];
if ($set_pid && $set_pid != $_SESSION["pid"]) {
setpid($set_pid);
}
include_once "{$srcdir}/patient.inc";
$result = getPatientData($pid, "*, DATE_FORMAT(DOB,'%Y-%m-%d') as DOB_YMD");
$result2 = getEmployerData($pid);
// Check authorization.
$thisauth = acl_check('patients', 'demo');
if ($pid) {
if ($thisauth != 'write') {
die(xl('Updating demographics is not authorized.'));
}
if ($result['squad'] && !acl_check('squads', $result['squad'])) {
die(xl('You are not authorized to access this squad.'));
}
} else {
if ($thisauth != 'write' && $thisauth != 'addonly') {
开发者ID:stephen-smith,项目名称:openemr,代码行数:30,代码来源:demographics_full.php
示例6: require_once
<?php
require_once("../globals.php");
include_once("$srcdir/pid.inc");
setpid($_GET['pid']);
?>
<?php
session_start();
if ($_GET['pid'] != ""){
$_SESSION["id"] = $_GET['pid'];
}
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
echo ("pid: ");
echo $_SESSION["pid"];
?>
Status Updated As:<br>
<p>
<?php
echo $_POST['status'].".";
开发者ID:sapphirew,项目名称:openemr,代码行数:31,代码来源:patientRecord.php
示例7: setpid
//not just a default. however, if it is not set, we default to
//the custom icd9 codes
if (!isset($_GET["codefrom"])) {
$code_page = "superbill";
} else {
$code_page = $_GET["codefrom"];
}
include_once "../../globals.php";
// Session pid must be right.
//
include_once "{$srcdir}/pid.inc";
if ($_GET["set_pid"] && $_GET["set_pid"] != $_SESSION["pid"]) {
setpid($_GET["set_pid"]);
} else {
if ($_GET["pid"] && $_GET["pid"] != $_SESSION["pid"]) {
setpid($_GET["pid"]);
}
}
include_once "{$srcdir}/encounter.inc";
//only set the global encounter variable if it has been explicityly passed
//thru the url, ie. from the history interface - otherwise, assume
//that the page refresh is a local interface update that is not meant
//to update the encounter variable
if (isset($_GET["set_encounter"])) {
setencounter($_GET["set_encounter"]);
?>
<HTML>
<head>
<?php
html_header_show();
?>
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:patient_encounter.php
示例8: setpid
<?php
include_once "../globals.php";
include_once "{$srcdir}/pid.inc";
setpid($_GET["set_pid"]);
?>
<HTML>
<head>
<?php
html_header_show();
?>
<TITLE>
<?php
echo $openemr_name;
?>
</TITLE>
<script type="text/javascript" src="../../library/topdialog.js"></script>
<script language="JavaScript">
<?php
require $GLOBALS['srcdir'] . "/restoreSession.php";
?>
</script>
</HEAD>
<frameset rows="<?php
echo "{$GLOBALS['navBarHeight']},{$GLOBALS['titleBarHeight']}";
?>
,*" cols="*" frameborder="0" border="0" framespacing="0" onunload="imclosing()">
<?php
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:patient_file.php
注:本文中的setpid函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论