本文整理汇总了PHP中report_header函数的典型用法代码示例。如果您正苦于以下问题:PHP report_header函数的具体用法?PHP report_header怎么用?PHP report_header使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了report_header函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: session_require
require_once $gfcommon . 'reporting/report_utils.php';
require_once $gfcommon . 'reporting/Report.class.php';
session_require(array('group' => $sys_stats_group));
$report = new Report();
if ($report->isError()) {
exit_error($report->getErrorMessage());
}
$area = getStringFromRequest('area');
$SPAN = getStringFromRequest('SPAN');
$start = getStringFromRequest('start');
$end = getStringFromRequest('end');
if (!$start) {
$z =& $report->getMonthStartArr();
$start = $z[count($z) - 1];
}
echo report_header(_('Site-Wide Activity'));
?>
<h3><?php
echo _('Site-Wide Activity');
?>
</h3>
<p>
<form action="<?php
echo getStringFromServer('PHP_SELF');
?>
" method="get">
<table><tr>
<td><strong><?php
echo _('Areas');
?>
:</strong><br /><?php
示例2: session_require
session_require(array('group' => $sys_stats_group));
$report = new Report();
if ($report->isError()) {
exit_error($report->getErrorMessage());
}
$start = getStringFromRequest('start');
$end = getStringFromRequest('end');
$sw = getStringFromRequest('sw');
$typ = getStringFromRequest('typ');
$dev_id = getStringFromRequest('dev_id');
$type = getStringFromRequest('type');
if (!$start) {
$z =& $report->getMonthStartArr();
$start = $z[count($z) - 1];
}
echo report_header(_('User Time Reporting'));
$abc_array = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');
echo _('Choose the <strong>First Letter</strong> of the name of the person you wish to report on.<p>');
for ($i = 0; $i < count($abc_array); $i++) {
if ($sw == $abc_array[$i]) {
echo '<strong>' . $abc_array[$i] . '</strong> ';
} else {
echo '<a href="usertime.php?sw=' . $abc_array[$i] . '&typ=' . $typ . '">' . $abc_array[$i] . '</a> ';
}
}
if ($sw) {
$a[] = _('By Task');
$a[] = _('By Category');
$a[] = _('By Subproject');
$a2[] = 'tasks';
$a2[] = 'category';
示例3: get_vocab
echo "<p>" . get_vocab("combination_not_supported") . "</p>\n";
sql_free($res);
} else {
if ($output_format == OUTPUT_ICAL) {
// We set $keep_private to FALSE here because we excluded all private
// events in the SQL query
export_icalendar($res, FALSE, $report_end);
exit;
}
if ($output_format == OUTPUT_HTML && !$ajax) {
echo "<p class=\"report_entries\"><span id=\"n_entries\">" . $nmatch . "</span> " . ($nmatch == 1 ? get_vocab("entry_found") : get_vocab("entries_found")) . "</p>\n";
}
// Report
if ($output == REPORT) {
open_report();
report_header();
$body_rows = array();
for ($i = 0; $row = sql_row_keyed($res, $i); $i++) {
report_row($body_rows, $row);
}
output_body_rows($body_rows, $output_format);
close_report();
} else {
open_summary();
if ($nmatch > 0) {
for ($i = 0; $row = sql_row_keyed($res, $i); $i++) {
accumulate($row, $count, $hours, $report_start, $report_end, $room_hash, $name_hash);
}
do_summary($count, $hours, $room_hash, $name_hash);
} else {
// Excel doesn't seem to like an empty file with just a BOM, so give
示例4: Report
require_once $gfwww . 'include/pre.php';
require_once $gfcommon . 'reporting/report_utils.php';
require_once $gfcommon . 'reporting/Report.class.php';
$report = new Report();
if ($report->isError()) {
exit_error('Error', $report->getErrorMessage());
}
$SPAN = getStringFromRequest('SPAN');
$start = getStringFromRequest('start');
$end = getStringFromRequest('end');
if (!$start) {
$z =& $report->getMonthStartArr();
$start = $z[count($z) - 1];
}
session_require(array('group' => $sys_stats_group));
echo report_header(_('Projects Added'));
?>
<h3><?php
echo _('Projects Added');
?>
</h3>
<p>
<form action="<?php
echo getStringFromServer('PHP_SELF');
?>
" method="get">
<table><tr>
<td><strong><?php
echo _('Type');
?>
:</strong><br /><?php
示例5: session_require
require_once $gfcommon . 'reporting/Report.class.php';
session_require(array('group' => $sys_stats_group));
$report = new Report();
if ($report->isError()) {
exit_error($report->getErrorMessage());
}
$g_id = getStringFromRequest('g_id');
$area = getStringFromRequest('area');
$SPAN = getStringFromRequest('SPAN');
$start = getStringFromRequest('start');
$end = getStringFromRequest('end');
if (!$start) {
$z =& $report->getMonthStartArr();
$start = $z[count($z) - 1];
}
echo report_header(_('Project Activity'));
?>
<h3><?php
echo _('Project Activity');
?>
</h3>
<p>
<form action="<?php
echo getStringFromServer('PHP_SELF');
?>
" method="get">
<input type="hidden" name="sw" value="<?php
echo $sw;
?>
">
<table><tr>
示例6: session_require
session_require(array('group' => $sys_stats_group));
$report = new Report();
if ($report->isError()) {
exit_error($report->getErrorMessage());
}
$sw = getStringFromRequest('sw');
$typ = getStringFromRequest('typ');
$g_id = getStringFromRequest('g_id');
$typ = getStringFromRequest('typ');
$start = getStringFromRequest('start');
$end = getStringFromRequest('end');
if (!$start) {
$z =& $report->getMonthStartArr();
$start = $z[count($z) - 1];
}
echo report_header(_('Time Tracking By Project'));
$a[] = _('By Task');
$a[] = _('By Category');
$a[] = _('By Subproject');
$a[] = _('By User');
$a2[] = 'tasks';
$a2[] = 'category';
$a2[] = 'subproject';
$a2[] = 'user';
?>
<h3><?php
echo _('Time Tracking By Project');
?>
</h3>
<p>
<form action="<?php
示例7: _
$z =& $report->getWeekStartArr();
$start = $z[count($z) - 1];
}
if (!$end) {
$end = $z[0];
}
if (!$tstat) {
$tstat = '1';
}
$n[] = _('Any');
$n[] = _('Open');
$n[] = _('closed');
$l[] = '1,2';
$l[] = '1';
$l[] = '2';
echo report_header(_('User Summary Report'));
?>
<h3><?php
echo _('User Summary Report');
?>
</h3>
<p>
<?php
echo _('Choose the range from the pop-up boxes below. The report will list all tasks with an open date in that range.');
?>
<p>
<form action="<?php
echo getStringFromServer('PHP_SELF');
?>
" method="get">
<table>
示例8: sqlQuery
sqlQuery($sql);
$sql = "DELETE from documents where documents.url like '%" . $filename . "'";
sqlQuery($sql);
// We want to overwrite so only one PDF is stored per form/encounter
// $pdf = new HTML2PDF('P', 'Letter', 'en', array(5, 5, 5, 5) ); // add a little margin 5cm all around TODO: add to globals
/***********/
$pdf = new HTML2PDF($GLOBALS['pdf_layout'], $GLOBALS['pdf_size'], $GLOBALS['pdf_language'], true, 'UTF-8', array($GLOBALS['pdf_left_margin'], $GLOBALS['pdf_top_margin'], $GLOBALS['pdf_right_margin'], $GLOBALS['pdf_bottom_margin']), $_SESSION['language_direction'] == 'rtl' ? true : false);
ob_start();
?>
<link rel="stylesheet" href="<?php
echo $webserver_root;
?>
/interface/themes/style_pdf.css" type="text/css">
<div id="report_custom" style="width:100%;"> <!-- large outer DIV -->
<?php
echo report_header($pid);
include_once $GLOBALS['incdir'] . "/forms/eye_mag/report.php";
call_user_func($form_name . "_report", $pid, $form_encounter, $N, $form_id);
if ($printable) {
echo "" . xl('Signature') . ": _______________________________<br />";
}
?>
</div> <!-- end of report_custom DIV -->
<?php
global $web_root, $webserver_root;
$content = ob_get_clean();
// Fix a nasty html2pdf bug - it ignores document root!
$i = 0;
$wrlen = strlen($web_root);
$wsrlen = strlen($webserver_root);
示例9: narrative
function narrative($pid, $encounter, $cols, $form_id, $choice = 'full')
{
global $form_folder;
global $PDF_OUTPUT;
global $OE_SITE_DIR;
global $formres;
global $dateres;
global $printable;
//if $cols == 'Fax', we are here from taskman, making a fax and this a one page short form - leave out PMSFH, prescriptions
//and any clinical area that is blank.
$query = "select form_encounter.date as encounter_date,form_eye_mag.id as form_id,form_encounter.*, form_eye_mag.*\n from form_eye_mag ,forms,form_encounter\n where\n form_encounter.encounter =? and\n form_encounter.encounter = forms.encounter and\n form_eye_mag.id=forms.form_id and\n forms.deleted != '1' and\n form_eye_mag.pid=? ";
$encounter_data = sqlQuery($query, array($encounter, $pid));
@extract($encounter_data);
$providerID = getProviderIdOfEncounter($encounter);
$providerNAME = getProviderName($providerID);
$dated = new DateTime($encounter_date);
$dated = $dated->format('Y/m/d');
$visit_date = oeFormatShortDate($dated);
?>
<link rel="stylesheet" href="<?php
echo attr($css_header);
?>
" type="text/css">
<link rel="stylesheet" href="../../forms/<?php
echo attr($form_folder);
?>
/css/report.css" type="text/css">
<style>
<?php
if ($PDF_OUTPUT) {
?>
.mot {
text-align: center;
width:3mm;
height:3mm;
}
<?php
} else {
?>
.mot {
text-align: center;
width:5mm;
height:5mm;
}
<?php
}
?>
</style>
<div>
<?php
if ($cols == 'Fax' || $cols == 'Report') {
echo report_header($pid, 'PDF');
}
if ($PDF_OUTPUT) {
$titleres = getPatientData($pid, "fname,lname,providerID,DATE_FORMAT(DOB,'%m/%d/%Y') as DOB_TS");
if ($_SESSION['pc_facility']) {
$sql = "select * from facility where id=" . $_SESSION['pc_facility'];
} else {
$sql = "SELECT * FROM facility ORDER BY billing_location DESC LIMIT 1";
}
$facility = sqlQuery($sql);
}
if ($choice !== 'TEXT') {
?>
<?php
}
?>
<table class="report_exam_group">
<tr>
<td style="text-align:left;padding:1px;vertical-align:top;max-width:720px;">
<table style="padding:5px;width:700px;">
<tr>
<td colspan="1" style="text-align: justify;text-justify: inter-word;width:100%;">
<b><?php
echo xlt('Chief Complaint');
?>
:</b> <?php
echo text($CC1);
?>
<br /><br />
<b><?php
echo xlt('HPI');
?>
:</b>
<?php
echo $HPI1;
?>
<br />
<div style="padding-left:20px;">
<?php
if ($TIMING1) {
echo "<i>" . xlt('Timing');
?>
:</i> <?php
echo text($TIMING1) . "<br />";
}
//.........这里部分代码省略.........
示例10: Report
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once '../env.inc.php';
require_once $gfwww . 'include/pre.php';
require_once $gfcommon . 'reporting/report_utils.php';
require_once $gfcommon . 'reporting/Report.class.php';
$report = new Report();
if ($report->isError()) {
exit_error($report->getErrorMessage());
}
if (!$start) {
$z =& $report->getMonthStartArr();
$start = $z[count($z) - 1];
}
session_require(array('group' => $sys_stats_group));
echo report_header(_('Tool Pie Graphs'));
$datatype = getStringFromRequest('datatype');
$start = getStringFromRequest('start');
$end = getStringFromRequest('end');
if (!isset($datatype)) {
$datatype = 1;
}
?>
<h3><?php
echo _('Tool Pie Graphs');
?>
</h3>
<p>
<form action="<?php
echo getStringFromServer('PHP_SELF');
?>
示例11: getStringFromServer
<form action="<?php
echo getStringFromServer('PHP_SELF');
?>
"
method="get" /><?php
echo report_weeks_box($report, 'week');
?>
<input
type="submit" name="submit" value="<?php
echo _('Change Week');
?>
" />
</form>
<?php
} else {
report_header(_('Time tracking'));
?>
<h3><?php
echo _('Choose A Week to Record Or Edit Your Time.');
?>
</h3>
<p><?php
echo _('After you choose a week, you will be prompted to choose a Project/Subproject in the Task Manager.');
?>
<p>
<form action="<?php
echo getStringFromServer('PHP_SELF');
?>
"
method="get" /><strong><?php
echo _('Week Starting');
示例12: session_require
session_require(array('group' => $sys_stats_group));
$report = new Report();
if ($report->isError()) {
exit_error($report->getErrorMessage());
}
$sw = getStringFromRequest('sw');
$dev_id = getStringFromRequest('dev_id');
$area = getStringFromRequest('area');
$SPAN = getStringFromRequest('SPAN');
$start = getStringFromRequest('start');
$end = getStringFromRequest('end');
if (!$start) {
$z =& $report->getMonthStartArr();
$start = $z[count($z) - 1];
}
echo report_header(_('User Activity'));
$abc_array = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');
echo _('Choose the <strong>First Letter</strong> of the name of the person you wish to report on.<p>');
for ($i = 0; $i < count($abc_array); $i++) {
if ($sw == $abc_array[$i]) {
echo '<strong>' . $abc_array[$i] . '</strong> ';
} else {
echo '<a href="useract.php?sw=' . $abc_array[$i] . '">' . $abc_array[$i] . '</a> ';
}
}
if ($sw) {
?>
<h3><?php
echo _('User Activity');
?>
</h3>
示例13: session_require
require_once $gfwww . 'include/pre.php';
require_once $gfcommon . 'reporting/report_utils.php';
require_once $gfcommon . 'reporting/Report.class.php';
session_require(array('group' => $sys_stats_group));
$report = new Report();
if ($report->isError()) {
exit_error($report->getErrorMessage());
}
$typ = getStringFromRequest('typ');
$start = getStringFromRequest('start');
$end = getStringFromRequest('end');
if (!$start) {
$z =& $report->getMonthStartArr();
$start = $z[count($z) - 1];
}
echo report_header(_('Site-Wide Time Tracking'));
?>
<h3><?php
echo _('Site-Wide Time Tracking');
?>
</h3>
<p>
<form action="<?php
echo getStringFromServer('PHP_SELF');
?>
" method="get">
<input type="hidden" name="typ" value="<?php
echo $typ;
?>
">
<table><tr>
示例14: time
$description .= $langs->trans("DepositsAreIncluded");
}
$builddate = time();
//$exportlink=$langs->trans("NotYetAvailable");
} else {
$name = $langs->trans("AnnualByCompaniesInputOutputMode");
$calcmode = $langs->trans("CalcModeEngagement");
$calcmode .= '<br>(' . $langs->trans("SeeReportInDueDebtMode", '<a href="' . $_SERVER["PHP_SELF"] . '?year=' . $year . (GETPOST("month") > 0 ? '&month=' . GETPOST("month") : '') . '&modecompta=CREANCES-DETTES">', '</a>') . ')';
//$period=$form->select_date($date_start,'date_start',0,0,0,'',1,0,1).' - '.$form->select_date($date_end,'date_end',1,1,0,'',1,0,1);
$period = $form->select_date($date_start, 'date_start', 0, 0, 0, '', 1, 0, 1) . ' - ' . $form->select_date($date_end, 'date_end', 0, 0, 0, '', 1, 0, 1);
//$periodlink='<a href="'.$_SERVER["PHP_SELF"].'?year='.($year-1).'&modecompta='.$modecompta.'">'.img_previous().'</a> <a href="'.$_SERVER["PHP_SELF"].'?year='.($year+1).'&modecompta='.$modecompta.'">'.img_next().'</a>';
$description = $langs->trans("RulesResultInOut");
$builddate = time();
//$exportlink=$langs->trans("NotYetAvailable");
}
report_header($name, $nomlink, $period, $periodlink, $description, $builddate, $exportlink, array('modecompta' => $modecompta), $calcmode);
// Show report array
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td width="10%"> </td><td> </td>';
if ($modecompta == 'CREANCES-DETTES') {
print "<td align=\"right\">" . $langs->trans("AmountHT") . "</td>";
}
print "<td align=\"right\">" . $langs->trans("AmountTTC") . "</td>";
print "</tr>\n";
/*
* Factures clients
*/
print '<tr><td colspan="4">' . $langs->trans("CustomersInvoices") . '</td></tr>';
if ($modecompta == 'CREANCES-DETTES') {
$sql = "SELECT s.nom as name, s.rowid as socid, sum(f.total) as amount_ht, sum(f.total_ttc) as amount_ttc";
示例15: Report
require_once $gfwww . 'include/pre.php';
require_once $gfcommon . 'reporting/report_utils.php';
require_once $gfcommon . 'reporting/Report.class.php';
$report = new Report();
if ($report->isError()) {
exit_error($report->getErrorMessage());
}
$SPAN = getStringFromRequest('SPAN');
$start = getStringFromRequest('start');
$end = getStringFromRequest('end');
if (!$start) {
$z =& $report->getMonthStartArr();
$start = $z[count($z) - 1];
}
session_require(array('group' => $sys_stats_group));
echo report_header(_('Cumulative Projects'));
?>
<h3><?php
echo _('Cumulative Projects');
?>
</h3>
<p>
<form action="<?php
echo getStringFromServer('PHP_SELF');
?>
" method="get">
<table><tr>
<td><strong><?php
echo _('Type');
?>
:</strong><br /><?php