当前位置: 首页>>代码示例>>PHP>>正文


PHP cms_portal_call函数代码示例

本文整理汇总了PHP中cms_portal_call函数的典型用法代码示例。如果您正苦于以下问题:PHP cms_portal_call函数的具体用法?PHP cms_portal_call怎么用?PHP cms_portal_call使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了cms_portal_call函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: HTML2PDF

  $pdf = new HTML2PDF('P', 'Letter', 'en');
  ob_start();
  echo "<link rel='stylesheet' type='text/css' href='$webserver_root/interface/themes/style_pdf.css'>\n";
  echo "<link rel='stylesheet' type='text/css' href='$webserver_root/library/ESign/css/esign_report.css'>\n";
  $GLOBALS['PATIENT_REPORT_ACTIVE'] = true;
  generate_order_report($orderid, false, true, $finals_only);
  $GLOBALS['PATIENT_REPORT_ACTIVE'] = false;
  // echo ob_get_clean(); exit(); // debugging
  $pdf->writeHTML(ob_get_clean(), false);
  $contents = $pdf->Output('', true);
  // Send message with PDF as attachment.
  $result = cms_portal_call(array(
    'action'   => 'putmessage',
    'user'     => $_POST['form_send_to_portal'],
    'title'    => xl('Your Lab Results'),
    'message'  => xl('Please see the attached PDF.'),
    'filename' => 'results.pdf',
    'mimetype' => 'application/pdf',
    'contents' => base64_encode($contents),
  ));
  if ($result['errmsg']) die(text($result['errmsg']));
}
?>
<html>
<head>
<?php html_header_show(); ?>
<link rel="stylesheet" href='<?php echo $css_header; ?>' type='text/css'>
<title><?php echo xlt('Order Results'); ?></title>
<style>
body {
 margin: 9pt;
开发者ID:jayvicson,项目名称:openemr,代码行数:31,代码来源:single_order_results.php

示例2: die

    if ($result['errmsg']) {
        die(text($result['errmsg']));
    }
    echo "<html><body><script language='JavaScript'>\n";
    echo "if (top.restoreSession) top.restoreSession(); else opener.top.restoreSession();\n";
    echo "document.location.href = 'list_requests.php';\n";
    echo "</script></body></html>\n";
    exit;
}
$db_id = 0;
if ($ptid) {
    $ptrow = getPatientData($ptid, "*");
    $db_id = $ptrow['id'];
}
if ($postid) {
    $result = cms_portal_call(array('action' => 'getpost', 'postid' => $postid));
    if ($result['errmsg']) {
        die(text($result['errmsg']));
    }
}
?>
<html>
<head>
<?php 
html_header_show();
?>
<link rel=stylesheet href="<?php 
echo $css_header;
?>
" type="text/css">
开发者ID:mi-squared,项目名称:openemr,代码行数:30,代码来源:patient_form.php

示例3: call_user_func

var skipArray = [
<?php 
echo $condition_str;
?>
];

<?php 
echo $date_init;
if (function_exists($formname . '_javascript_onload')) {
    call_user_func($formname . '_javascript_onload');
}
// TBD: If $alertmsg, display it with a JavaScript alert().
// New form and this patient has a portal login and we have not loaded portal data.
// Check if there is portal data pending for this patient and form type.
if (!$formid && $GLOBALS['gbl_portal_cms_enable'] && $cmsportal_login && !$portalid) {
    $portalres = cms_portal_call(array('action' => 'checkptform', 'form' => $formname, 'patient' => $cmsportal_login));
    if ($portalres['errmsg']) {
        die(text($portalres['errmsg']));
        // TBD: Change to alertmsg
    }
    $portalid = $portalres['postid'];
    if ($portalid) {
        echo "if (confirm('" . xls('The portal has data for this patient and form. Load it now?') . "')) {\n";
        echo " top.restoreSession();\n";
        echo " document.location.href = 'load_form.php?formname={$formname}&portalid={$portalid}';\n";
        echo "}\n";
    }
}
?>
</script>
开发者ID:CraigT543,项目名称:psychobabbletools,代码行数:30,代码来源:new.php

示例4: getContent

</div> <!-- end of report_custom DIV -->

<?php 
if ($PDF_OUTPUT) {
    $content = getContent();
    // $pdf->setDefaultFont('Arial');
    $pdf->writeHTML($content, false);
    if ($PDF_OUTPUT == 1) {
        $pdf->Output('report.pdf', $GLOBALS['pdf_output']);
        // D = Download, I = Inline
    } else {
        // This is the case of writing the PDF as a message to the CMS portal.
        $ptdata = getPatientData($pid, 'cmsportal_login');
        $contents = $pdf->Output('', true);
        echo "<html><head>\n";
        echo "<link rel='stylesheet' href='{$css_header}' type='text/css'>\n";
        echo "</head><body class='body_top'>\n";
        $result = cms_portal_call(array('action' => 'putmessage', 'user' => $ptdata['cmsportal_login'], 'title' => xl('Your Clinical Report'), 'message' => xl('Please see the attached PDF.'), 'filename' => 'report.pdf', 'mimetype' => 'application/pdf', 'contents' => base64_encode($contents)));
        if ($result['errmsg']) {
            die(text($result['errmsg']));
        }
        echo "<p>" . xlt('Report has been sent to the patient.') . "</p>\n";
        echo "</body></html>\n";
    }
} else {
    ?>
</body>
</html>
<?php 
}
开发者ID:ekuiperemr,项目名称:openemr,代码行数:30,代码来源:custom_report.php

示例5: cms_portal_call

 * 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  Rod Roark <rod@sunsetsystems.com>
 */
$sanitize_all_escapes = true;
$fake_register_globals = false;
require_once "../globals.php";
require_once "{$srcdir}/formdata.inc.php";
require_once "portal.inc.php";
$uploadid = $_REQUEST['id'];
if (!empty($_REQUEST['messageid'])) {
    $result = cms_portal_call(array('action' => 'getmsgup', 'uploadid' => $uploadid));
} else {
    $result = cms_portal_call(array('action' => 'getupload', 'uploadid' => $uploadid));
}
if ($result['errmsg']) {
    die(text($result['errmsg']));
}
$filesize = strlen($result['contents']);
header('Content-Description: File Transfer');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header("Content-Disposition: attachment; filename=\"{$result['filename']}\"");
header("Content-Type: {$result['mimetype']}");
header("Content-Length: {$filesize}");
// With JSON-over-HTTP we would need to base64_decode the contents.
echo $result['contents'];
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:upload_form_show.php

示例6: cms_portal_call

<?php

/**
 * Patient matching and selection for the WordPress Patient Portal.
 *
 * Copyright (C) 2014 Rod Roark <rod@sunsetsystems.com>
 *
 * 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 2
 * 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  Rod Roark <rod@sunsetsystems.com>
 */
$sanitize_all_escapes = true;
$fake_register_globals = false;
require_once "../globals.php";
require_once "{$srcdir}/formdata.inc.php";
require_once "portal.inc.php";
$result = cms_portal_call(array('action' => 'adduser', 'newlogin' => $_REQUEST['login'], 'newpass' => $_REQUEST['pass'], 'newemail' => $_REQUEST['email']));
if ($result['errmsg']) {
    echo xl('Failed to add patient to portal') . ": " . $result['errmsg'];
}
开发者ID:katopenzz,项目名称:openemr,代码行数:30,代码来源:patient_form_ajax.php

示例7: myRestoreSession

</script>

</head>

<body class="body_top">
<form method='post' action='list_requests.php' onsubmit='return myRestoreSession()'>

<?php 
$form_from_date = empty($_POST['form_from_date']) ? '' : trim($_POST['form_from_date']);
$form_to_date = empty($_POST['form_to_date']) ? '' : trim($_POST['form_to_date']);
// if (empty($form_to_date)) $form_to_date = $form_from_date;
$form_patient = !empty($_POST['form_patient']);
// Post a form to the WP portal that asks for the request list and get the response.
// Write a row for each request that is reported.
$result = cms_portal_call(array('action' => 'list', 'date_from' => $form_from_date, 'date_to' => $form_to_date));
if ($result['errmsg']) {
    echo "<font color='red'>" . text($result['errmsg']) . "</font><br />\n";
}
?>
<center>

<table width='100%'>
 <tr>
  <td class='text' align='center'>
   <?php 
echo xlt('From');
?>
:
   <input type='text' size='8' name='form_from_date' id='form_from_date'
    value='<?php 
开发者ID:katopenzz,项目名称:openemr,代码行数:30,代码来源:list_requests.php


注:本文中的cms_portal_call函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。