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


PHP formHeader函数代码示例

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


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

示例1: showCustomerForm

function showCustomerForm($data, $action, $badFields)
{
    formHeader($action, "<h1>Customer Info Form</h1>", "customerForm", "void");
    customerFields($data, $badFields);
    tableRow(array(tableData(""), tableData(""), tableData(""), tableData(""), tableData(""), tableData(submit("Enter/Edit Customer!"), "right")));
    echo getWordpressHiddenFormField();
    formFooter("customerForm");
}
开发者ID:ChapResearch,项目名称:Online-Orders-Database,代码行数:8,代码来源:customerForm.php

示例2: showPackageForm

function showPackageForm($data, $action, $badFields)
{
    formHeader($action, "Package Form", "packageForm", "void");
    packageFields($data, $badFields);
    tableRow(array(tableData(""), tableData(""), tableData(""), tableData(""), tableData(""), tableData(submit("Submit!"))));
    echo getWordpressHiddenFormField();
    formFooter("packageForm");
}
开发者ID:ChapResearch,项目名称:Online-Orders-Database,代码行数:8,代码来源:packageForm.php

示例3: showOrderEntryForm

function showOrderEntryForm($data, $badFields = array())
{
    formHeader("", "", "orderEntry", "void");
    customerFields($data, $badFields);
    orderFields($data, $badFields);
    if (inWordPress()) {
        echo getWordpressHiddenFormField();
    }
    tableRow(array(tableData(""), tableData(""), tableData(""), tableData(""), tableData(""), tableData(submit("Enter Order!"), "right")));
    formFooter("orderEntryForm");
}
开发者ID:ChapResearch,项目名称:Online-Orders-Database,代码行数:11,代码来源:orderEntry.php

示例4: showShippingForm

function showShippingForm($data, $action, $badFields = array())
{
    prepDatePicker();
    formHeader($action, "<h1>Shipping Info Form</h1>", "shippingForm", "void");
    shippingFields($data, $badFields);
    tableRow(array(tableData(""), tableData(""), tableData(""), tableData(""), tableData(""), tableData(submit("Enter Shipping Details!"), "right")));
    if (inWordPress()) {
        echo getWordpressHiddenFormField();
    }
    formFooter("shippingForm");
}
开发者ID:ChapResearch,项目名称:Online-Orders-Database,代码行数:11,代码来源:shippingInfoForm.php

示例5: formHeader

<!-- Form generated from formsWiz -->
<?php 
$fake_register_globals = false;
$sanitize_all_escapes = true;
include_once "../../globals.php";
include_once "{$srcdir}/api.inc";
formHeader("Form: dictation");
$returnurl = 'encounter_top.php';
?>
<html><head>
<?php 
html_header_show();
?>
<link rel="stylesheet" href="<?php 
echo $css_header;
?>
" type="text/css">
</head>
<body class="body_top">
<form method=post action="<?php 
echo $rootdir;
?>
/forms/dictation/save.php?mode=new" name="my_form">
<span class="title"><?php 
echo xlt('Speech Dictation');
?>
</span><br><br>
<span class=text><?php 
echo xlt('Dictation: ');
?>
</span><br><textarea cols=80 rows=24 wrap=virtual name="dictation" ></textarea><br>
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:new.php

示例6: formHeader

<?php

/*
 * Sports Physical Form created by Jason Morrill: January 2009
 */
include_once "../../globals.php";
include_once "{$srcdir}/api.inc";
/** CHANGE THIS - name of the database table associated with this form **/
$table_name = "form_example";
/** CHANGE THIS name to the name of your form **/
$form_name = "My Example Form";
/** CHANGE THIS to match the folder you created for this form **/
$form_folder = "example";
formHeader("Form: " . $form_name);
$returnurl = $GLOBALS['concurrent_layout'] ? 'encounter_top.php' : 'patient_encounter.php';
/* load the saved record */
$record = formFetch($table_name, $_GET["id"]);
/* remove the time-of-day from the date fields */
if ($record['form_date'] != "") {
    $dateparts = split(" ", $record['form_date']);
    $record['form_date'] = $dateparts[0];
}
if ($record['dob'] != "") {
    $dateparts = split(" ", $record['dob']);
    $record['dob'] = $dateparts[0];
}
if ($record['sig_date'] != "") {
    $dateparts = split(" ", $record['sig_date']);
    $record['sig_date'] = $dateparts[0];
}
?>
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:print.php

示例7: formHeader

<?php

$fake_register_globals = false;
$sanitize_all_escapes = true;
include_once "../../globals.php";
include_once "{$srcdir}/api.inc";
formHeader("Form: note");
$returnurl = $GLOBALS['concurrent_layout'] ? 'encounter_top.php' : 'patient_encounter.php';
$provider_results = sqlQuery("select fname, lname from users where username=?", array($_SESSION["authUser"]));
/* name of this form */
$form_name = "note";
// get the record from the database
if ($_GET['id'] != "") {
    $obj = formFetch("form_" . $form_name, $_GET["id"]);
}
/* remove the time-of-day from the date fields */
if ($obj['date_of_signature'] != "") {
    $dateparts = split(" ", $obj['date_of_signature']);
    $obj['date_of_signature'] = $dateparts[0];
}
?>
<html><head>
<?php 
html_header_show();
?>
<link rel="stylesheet" href="<?php 
echo $css_header;
?>
" type="text/css">

<!-- supporting javascript code -->
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:print.php

示例8: formHeader

<?php

////////////////////////////////////////////////////////////////////
// Form:	PSYCHIATRISCH ONDERZOEK
// Package:	Research psihiatric - Dutch specific form
// Created by:	Larry Lart
// Version:	1.0 - 29-03-2008
////////////////////////////////////////////////////////////////////
include_once "../../globals.php";
include_once "{$srcdir}/api.inc";
include_once "{$srcdir}/patient.inc";
formHeader("Form: psychiatrisch_onderzoek");
$returnurl = 'encounter_top.php';
$result = getPatientData($pid, "fname,lname,pid,pubpid,phone_home,pharmacy_id,DOB,DATE_FORMAT(DOB,'%Y%m%d') as DOB_YMD");
$provider_results = sqlQuery("select * from users where username='" . $_SESSION["authUser"] . "'");
////////////////////////////////////////////////////////////////////
// Function:	getPatientDateOfLastEncounter
function getPatientDateOfLastEncounter($nPid)
{
    // get date of last encounter F103 or F153
    $strEventDate = sqlQuery("SELECT MAX(pc_eventDate) AS max \n                  FROM openemr_postcalendar_events \n                  WHERE pc_pid = {$nPid} \n                  AND pc_apptstatus = '@' \n                  AND ( pc_catid = 17 OR pc_catid = 25 OR pc_catid = 13 OR pc_catid = 26 ) \n                  AND pc_eventDate >= '2007-01-01'");
    // now check if there was a previous encounter
    if ($strEventDate['max'] != "") {
        return $strEventDate['max'];
    } else {
        return "00-00-0000";
    }
}
$m_strEventDate = getPatientDateOfLastEncounter($result['pid']);
// get last saved id for intakeverslag
$vectIntakeverslagQuery = sqlQuery("SELECT id FROM form_intakeverslag \n                            WHERE pid = " . $_SESSION["pid"] . " AND groupname='" . $_SESSION["authProvider"] . "' AND user='" . $_SESSION["authUser"] . "' AND\n                            authorized={$userauthorized} AND activity=1\n                            AND autosave_flag=0 \n                            ORDER by id DESC limit 1");
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:new.php

示例9: formNanak

<?php

include_once "../../globals.php";
include_once "{$srcdir}/api.inc";
# $patient = formNanak("patient_data", $_GET["id"]);
//#Use the formnanak function from api.inc to get values for manjit
formHeader("Form: chiro_history");
$returnurl = $GLOBALS['concurrent_layout'] ? 'encounter_top.php' : 'patient_encounter.php';
?>
<html><head>
<link rel=stylesheet href="<?php 
echo $css_header;
?>
" type="text/css">
</head>
<body <?php 
echo $top_bg_line;
?>
 topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0>
<style type="text/css">@import url(../../../library/dynarch_calendar.css);</style>
<script type="text/javascript" src="../../../library/dialog.js"></script>
<script type="text/javascript" src="../../../library/textformat.js"></script>
<script type="text/javascript" src="../../../library/dynarch_calendar.js"></script>
<script type="text/javascript" src="../../../library/dynarch_calendar_en.js"></script>
<script type="text/javascript" src="../../../library/dynarch_calendar_setup.js"></script>
<script language='JavaScript'> var mypcc = '1'; </script>

<a href='<?php 
echo $GLOBALS['webroot'];
?>
/interface/patient_file/encounter/<?php 
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:new.php

示例10: formHeader

<?php

# file habits/save.php
# saves what cames from habits/new.php
include_once "../../globals.php";
include_once "{$srcdir}/api.inc";
include_once "{$srcdir}/forms.inc";
formHeader('Habits form submitted');
$_POST["smoke_quit"] = dateToDB($_POST["smoke_quit"]);
$id = formSubmit('form_habits', $_POST);
//this function adds the form to a table wich creates a registry
//don't forget to add it in your save.php file.
// then it may be retrievable by the report menu
if ($encounter == "") {
    $encounter = date("Ymd");
}
//$newid=mysql_insert_id($GLOBALS['dbh']); // last id
if ($GLOBALS['lastidado'] > 0) {
    $newid = $GLOBALS['lastidado'];
} else {
    $newid = mysql_insert_id($GLOBALS['dbh']);
}
// last id
addForm($encounter, "Habits", $newid, "habits", $pid, $userauthorized);
formJump("./print.php?id={$id}");
formFooter();
开发者ID:robonology,项目名称:openemr,代码行数:26,代码来源:save.php

示例11: formHeader

<!-- view.php --> 
 <?php 
include_once "../../globals.php";
include_once "{$srcdir}/api.inc";
formHeader("Form: Chiro_personal_injury_form");
$returnurl = $GLOBALS['concurrent_layout'] ? 'encounter_top.php' : 'patient_encounter.php';
$obj = formFetch("form_Chiro_personal_injury_form", $_GET["id"]);
//#Use the formFetch function from api.inc to get values for existing form.
function chkdata_Txt(&$obj, $var)
{
    return htmlentities($obj["{$var}"]);
}
function chkdata_Date(&$obj, $var)
{
    return htmlentities($obj["{$var}"]);
}
function chkdata_CB(&$obj, $nam, $var)
{
    if (preg_match("/{$var}/", $obj[$nam])) {
        return "checked";
    } else {
        return "";
    }
}
function chkdata_Radio(&$obj, $nam, $var)
{
    if (strpos($obj[$nam], $var) !== false) {
        return "checked";
    }
}
function chkdata_PopOrScroll(&$obj, $nam, $var)
开发者ID:robonology,项目名称:openemr,代码行数:31,代码来源:view.php

示例12: formHeader

//
// Author:   Jacob T Paul <jacob@zhservices.com>
//           Vinish K <vinish@zhservices.com>
//
// +------------------------------------------------------------------------------+
//SANITIZE ALL ESCAPES
$sanitize_all_escapes = true;
//STOP FAKE REGISTER GLOBALS
$fake_register_globals = false;
include_once "../../globals.php";
include_once "{$srcdir}/api.inc";
require_once "{$srcdir}/patient.inc";
require_once "{$srcdir}/options.inc.php";
require_once $GLOBALS['srcdir'] . '/csv_like_join.php';
require_once $GLOBALS['fileroot'] . '/custom/code_types.inc.php';
formHeader("Form:Care Plan Form");
$returnurl = $GLOBALS['concurrent_layout'] ? 'encounter_top.php' : 'patient_encounter.php';
$formid = 0 + (isset($_GET['id']) ? $_GET['id'] : '');
if ($formid) {
    $sql = "SELECT * FROM `form_care_plan` WHERE id=? AND pid = ? AND encounter = ?";
    $res = sqlStatement($sql, array($formid, $_SESSION["pid"], $_SESSION["encounter"]));
    for ($iter = 0; $row = sqlFetchArray($res); $iter++) {
        $all[$iter] = $row;
    }
    $check_res = $all;
}
$check_res = $formid ? $check_res : array();
?>
<html>
    <head>
        <?php 
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:new.php

示例13: formHeader

<?php

include_once "../../globals.php";
include_once "{$srcdir}/api.inc";
formHeader("Form: Chirpractic_physical_therapy_form");
?>
<html><head>
<link rel=stylesheet href="<?php 
echo $css_header;
?>
" type="text/css">
</head>
<body <?php 
echo $top_bg_line;
?>
 topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0>
<form method=post action="<?php 
echo $rootdir;
?>
/forms/Chirpractic_physical_therapy_form/save.php?mode=new" name="my_form" onSubmit="return top.restoreSession()">
<h1> Chiropractic physical therapy form</h1>
<hr>
<input type="submit" name="submit form" value="submit form" /> <a href='<?php 
echo $GLOBALS['webroot'];
?>
/interface/patient_file/encounter/<?php 
echo $returnurl;
?>
' onclick='top.restoreSession()'> <?php 
xl("[do not save]", 'e');
?>
开发者ID:robonology,项目名称:openemr,代码行数:31,代码来源:print.php

示例14: formHeader

<?php

include_once "../../globals.php";
include_once "../../../library/api.inc";
formHeader("Lab Results");
?>

<link rel=stylesheet href="<?php 
echo $css_header;
?>
" type="text/css">

<html>

<head>
<?php 
html_header_show();
?>

<title>New Patient Encounter</title>

</head>

<body <?php 
echo $top_bg_line;
?>
 topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0>

<br><br>

<?php 
开发者ID:stephen-smith,项目名称:openemr,代码行数:31,代码来源:print.php

示例15: formHeader

<?php

# print the habits form.
include "../../../library/api.inc";
formHeader("Habits form");
// this part is the copy of what we have inside the function on the report.php file
include_once 'form_report.php';
?>
<hr>
<a href="<?php 
echo $GLOBALS['form_exit_url'];
?>
" onclick="top.restoreSession()">Done</a>

<?php 
formFooter();
开发者ID:robonology,项目名称:openemr,代码行数:16,代码来源:print.php


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