本文整理汇总了PHP中formatDate2Local函数的典型用法代码示例。如果您正苦于以下问题:PHP formatDate2Local函数的具体用法?PHP formatDate2Local怎么用?PHP formatDate2Local使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了formatDate2Local函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show_calendar
function show_calendar($calendar, $date_format, $input_field, $value = '')
{
//date value check
if ($value != DBF_NODATE && !empty($value)) {
$value = formatDate2Local($value, $date_format);
} else {
//$value = formatDate2Local(date('Y-m-d'),$date_format);
$value = '';
}
//convert date_format from care2x model to the calendar model
$search = array('yyyy', 'mm', 'dd');
$replace = array('%Y', '%m', '%d');
$date_format_calendar = str_replace($search, $replace, strtolower($date_format));
$calendarJS = $calendar->make_input_field(array('firstDay' => 1, 'showOthers' => true, 'ifFormat' => $date_format_calendar, 'button' => 'trigger'), array('name' => $input_field, 'value' => $value, 'style' => 'width:90px;'), $date_format);
return $calendarJS;
}
示例2:
<td background="<?php
echo $bg_img;
?>
"><FONT <?php
if ($err_gebdatum) {
echo 'color=#cc0000';
}
?>
><?php
echo $LDBday;
?>
:
</td>
<td><FONT color="#000099">
<?php
echo @formatDate2Local($result['date_birth'], $date_format);
?>
</td>
</tr>
<tr <?php
if ($mode == 'saveok') {
echo "bgcolor=#ffffff";
}
?>
>
<td>
</td>
<td><FONT color="#000099">
<font color="#000099">
<?php
示例3: formatDate2Local
<table width="750" border="0">
<tr>
<td bgcolor="#F0F8FF"><strong>Health Facility File Number: </strong><?php
echo $registration_data['facility_file_number'];
?>
</td>
<td bgcolor="#F0F8FF"><strong>PID: </strong><?php
echo $registration_data['pid'];
?>
</td>
<td bgcolor="#F0F8FF"><strong>Sex: </strong><?php
echo $registration_data['sex'];
?>
</td>
<td bgcolor="#F0F8FF"><strong>Date of Birth: </strong><?php
echo formatDate2Local($registration_data['date_of_birth'], $date_format, null, null);
?>
</td>
</tr>
<tr>
<td bgcolor="#F0F8FF"><strong>Name:</strong> <?php
echo $registration_data['name'];
?>
</td>
<td bgcolor="#F0F8FF"><strong>Marital Status: </strong> <?php
echo $registration_data['marital_status'];
?>
</td>
<td colspan="2" bgcolor="#F0F8FF"><strong>Age:</strong> <?php
echo $registration_data['age'];
?>
示例4: formatDate2Local
<td bgColor="#f9f9f9">
<?php
if ($mode == 'select' || $mode == 'update') {
echo '<input type="hidden" name="date_create" value="' . $date_create . '">';
echo formatDate2Local($date_create, $date_format);
} else {
?>
<input type="text" name="date_create" size=10 maxlength=10
value="<?php
if (isset($inputerror) && $inputerror) {
echo $date_create;
} else {
if (!isset($date_create) || empty($date_create)) {
$date_create = date('Y-m-d');
}
echo formatDate2Local($date_create, $date_format);
}
?>
"
onBlur="IsValidDate(this,'<?php
echo $date_format;
?>
')" onKeyUp="setDate(this,'<?php
echo $date_format;
?>
','<?php
echo $lang;
?>
')">
<a href="javascript:show_calendar('newstat.date_create','<?php
echo $date_format;
示例5: formatDate2Local
<td width="100%" height="19">Bill No: <?php
echo $final_bill_no;
?>
</td>
</tr>
<tr>
<td width="100%" height="19">Bill
Date
: <?php
echo $presdate;
?>
</td>
</tr>
<tr>
<td width="100%" height="19">Date of Admission: <?php
echo formatDate2Local($patient['encounter_date'], $date_format);
?>
</td>
</tr>
<tr>
<td width="100%" height="19"></td>
</tr>
<tr>
<td width="100%" height="19"></td>
</tr>
<tr>
<td width="100%" height="19"></td>
</tr>
<tr>
<td width="100%" height="19"></td>
示例6: formatDate2Local
</font></td>
<td> <font face="arial" size=2 color="#000000"><?php
if ($stored_request['mainlog_date'] != DBF_NODATE) {
echo formatDate2Local($stored_request['mainlog_date'], $date_format);
} else {
echo ' ';
}
?>
</font></td>
<td> <font size=1 face="arial"><?php
echo $LDDate;
?>
</font></td>
<td> <font face="arial" size=2 color="#000000"><?php
if ($stored_request['lab_date'] != DBF_NODATE) {
echo formatDate2Local($stored_request['lab_date'], $date_format);
} else {
echo ' ';
}
?>
</font></td>
</tr>
<tr bgcolor="<?php
echo $bgc1;
?>
">
<td> <font face="arial" size=1 color="#000000"><?php
if ($stored_request['x_test_3_code']) {
echo $stored_request['x_test_3_code'];
}
?>
示例7: display
//.........这里部分代码省略.........
echo $LDPersonDuplicate;
if ($duperson->RecordCount() > 1) {
echo " {$LDSimilarData2} {$LDPlsCheckFirst2}";
} else {
echo "{$LDSimilarData} {$LDPlsCheckFirst}";
}
echo "<script language=\"Javascript\" type=\"text/javascript\"> </script>";
// alert('$LDSimilarData $LDPlsCheckFirst')
echo '
</td>
</tr>
</table>
</center>
</td>
</tr>
<tr>
<td colspan=3>
<table border=0 cellspacing=0 cellpadding=1 bgcolor="#000000" width=100%>
<tr>
<td>
<table border=0 cellspacing=0 width=100% bgcolor="#ffffff">';
echo '
<tr bgcolor="#66ee66" background="' . $root_path . 'gui/img/common/default/tableHeaderbg.gif">';
echo "\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDRegistryNr}</b></td>\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDLastName}</b></td>\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDFirstName}</b></td>\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDBday}</b></td>\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDSex}</b></td>\n\t\t\t\t\t<td {$tbg}><FONT SIZE=-1 FACE=\"Arial\" color=\"#000066\"><b>\n\t\t\t\t\t\t{$LDOptions}</b></td>\n\t\t\t\t\t</tr>";
# Show the probable same person
while ($dup = $duperson->FetchRow()) {
echo '
<tr>
<td><font face=arial color=#000000 size=2>' . $dup['pid'] . '</td>
<td><font face=arial color=#000000 size=2>' . $dup['name_last'] . '</td>
<td><font face=arial color=#000000 size=2>' . $dup['name_first'] . '</td>
<td><font face=arial color=#000000 size=2>' . formatDate2Local($dup['date_birth'], $date_format) . '</td>
<td>';
switch ($dup['sex']) {
case 'f':
echo '<img ' . $img_female . '>';
break;
case 'm':
echo '<img ' . $img_male . '>';
break;
default:
echo ' ';
break;
}
echo '
</td>
<td><font face=arial color=#000000 size=2>:: <a href="person_reg_showdetail.php' . URL_APPEND . '&pid=' . $dup['pid'] . '&from=$from&newdata=1&target=entry" target="_blank">' . $LDShowDetails . '</a> ::
<a href="patient_register.php' . URL_APPEND . '&pid=' . $dup['pid'] . '&update=1">' . $LDUpdate . '</a>
</td>
</tr>';
}
echo '
</table>
</td>
</tr>
</table>';
}
?>
</td>
</tr>
<tr>
<td>
<FONT SIZE=-1 FACE="Arial"><?php
示例8: createComIcon
<li>Type the complete date of birth following your current date format.
<br>
<img src="../help/en/img/en_search_fullbday.png">
</blockquote>
<p>
<img <?php
echo createComIcon('../', 'frage.gif', '0');
?>
>
<font color="#990000" face="Verdana, Arial" ><b></a>
What is my current date format?</b></font>
<font face="Verdana, Arial" size=2>
<blockquote>
<li>Your current date format is <font color="red"><?php
echo $date_format . '</font>. Today is = (' . @formatDate2Local(date('Y-m-d'), $date_format) . ')';
?>
</blockquote>
<p>
<img <?php
echo createComIcon('../', 'frage.gif', '0');
?>
>
<font color="#990000" face="Verdana, Arial" ><b></a>
Searching for all adam's smith's born in year 1947.</b></font>
<font face="Verdana, Arial" size=2>
<blockquote>
<li>Type the first name , the family name and the year of birth
示例9: while
echo '</tr>';
//Lese Result Tabelle
$sql = "SELECT *\r\n FROM mycare_result\r\n where result_department_nr='" . $my_dep_nr . "'\r\n and result_status='done'\r\n order by result_date desc";
//echo $sql;
$ok = $db->Execute($sql);
while ($erg = $ok->FetchRow()) {
if ($color == "#eeeeee") {
$color = "#ffffff";
} else {
$color = "#eeeeee";
}
echo '<td width="5%" valign="top" align="' . $TP_ALIGN . '" bgcolor="' . $color . '"><FONT size="0" face="Arial">';
//echo '<input type="image" src="pfeil.gif" onclick="startBefund('.$erg[result_fid].','.$erg[result_fid].','.$erg[result_id].');"> </font>'; //Auswahl
echo '<input type="image" src="befdruck.gif" onclick="druckBefund(' . $erg[result_pid] . ',' . $erg[result_fid] . ',' . $erg[result_id] . ',' . $null . ');"></font></td>';
//Auswahl
echo '<td width="10%" valign="top" align="' . $TP_ALIGN . '" bgcolor="' . $color . '"><FONT size="0" face="Arial">' . formatDate2Local($erg[result_date], $date_format) . '</font></td>';
//Sende Datum
echo '<td width="10%" valign="top" align="' . $TP_ALIGN . '" bgcolor="' . $color . '"><FONT size="0" face="Arial">' . $erg[result_dr] . '</font></td>';
//Arzt
echo '<td width="10%" valign="top" align="' . $TP_ALIGN . '" bgcolor="' . $color . '"><FONT size="0" face="Arial">' . $erg[result_pid] . "<br>" . $erg[result_fid] . '</font></td>';
//FID
echo '<td width="10%" valign="top" align="' . $TP_ALIGN . '" bgcolor="' . $color . '"><FONT size="0" face="Arial">' . PatName($erg[result_pid]) . '</font></td>';
//Patientenname
echo '<td width="10%" valign="top" align="' . $TP_ALIGN . '" bgcolor="' . $color . '"><FONT size="0" face="Arial">' . $erg[result_id] . '<br>' . $erg[result_request_nr] . '</font></td>';
//Anforderungsnr
echo '<td width="50%" valign="top" align="' . $TP_ALIGN . '" bgcolor="' . $color . '"><FONT size="0" face="Arial">' . substr(stripText($erg[result_text]), 0, 400) . '</font></td>';
//Befundtext
echo '</tr>';
}
echo '</table>';
?>
示例10: formatDate2Local
</td>
</tr>
<tr bgcolor="<?php
echo $bgc1;
?>
">
<td ><div class=fva2_ml10><font color="#000099">
<?php
echo $LDDate;
?>
:
<font face="verdana,arial,courier" size=2 color="#000000">
<?php
if ($stored_request['result_date'] != DBF_NODATE) {
echo formatDate2Local($stored_request['result_date'], $date_format);
}
?>
</font>
</div></td>
<td align="right"><div class=fva2_ml10><font color="#000099">
<?php
echo $LDDoctor;
?>
<font face="verdana,arial,courier" size=2 color="#000000">
<?php
if ($stored_request['result_doctor']) {
echo stripslashes($stored_request['result_doctor']);
}
示例11: array
# Load the page header #1
require '../std_plates/pageheader1.php';
# Load the patient data plate #1
require '../std_plates/patientdata1.php';
$data = NULL;
# make empty line
$y = $pdf->ezText("\n", 14);
#Get the report title
if (isset(${$LD_var}) && !empty(${$LD_var})) {
$title = ${$LD_var};
} else {
# Get the notes type info
$notestype = $enc_obj->getType($type_nr);
$title = $notestype['name'];
}
$data[] = array($title);
$pdf->ezTable($data, '', '', array('xPos' => 'left', 'xOrientation' => 'right', 'showLines' => 0, 'fontSize' => $report_titlesize, 'showHeadings' => 0, 'shaded' => 2, 'shadeCol2' => array(0.9, 0.9, 0.9), 'width' => 555));
if (is_object($notes)) {
$report = $notes->FetchRow();
$y = $pdf->ezText("\n{$LDBy}: " . $report['personell_name'] . " {$LDDate}: " . formatDate2Local($report['date'], $date_format) . " {$LDTime}: " . $report['time'], $report_authorsize);
$y = $pdf->ezText("\n" . $report['notes'] . "\n", $report_textsize);
if (!empty($report['short_notes'])) {
$y = $pdf->ezText("{$LDShortNotes}\n", $report_auxtitlesize);
$y = $pdf->ezText($report['short_notes'], $report_textsize);
}
if (!empty($report['aux_notes'])) {
$y = $pdf->ezText($LDShortNotes . "\n", $report_auxtitlesize);
$y = $pdf->ezText($report['aux_notes'], $report_textsize);
}
}
$pdf->ezStream();
示例12: display
//.........这里部分代码省略.........
echo "<img src='" . $root_path . "classes/barcode/image.php?code=" . $pid . "&style=68&type=I25&width=180&height=50&xres=2&font=5' border=0 width=180 height=35>";
}
?>
</td>
<td valign="top" rowspan=6 align="center" bgcolor="#ffffee" >
<FONT SIZE=-1 FACE="Arial"><img <?php
echo $img_source;
?>
>
</td>
</tr>
<tr>
<td bgColor="#eeeeee">
<FONT SIZE=-1 FACE="Arial"><?php
echo $LDFileNr;
?>
:
</td>
<td bgcolor="#ffffee">
<FONT SIZE=-1 FACE="Arial" color="#800000"><b><?php
echo $selian_pid;
?>
</td>
</tr>
<tr>
<td bgColor="#eeeeee">
<FONT SIZE=-1 FACE="Arial"><?php
echo $LDRegTime;
?>
:
</td>
<td bgcolor="#ffffee">
<FONT SIZE=-1 FACE="Arial" color="#800000"><b><?php
echo convertTimeToLocal(formatDate2Local($date_reg, $date_format, 0, 1));
?>
</td>
</tr>
<tr>
<td bgColor="#eeeeee">
<FONT SIZE=-1 FACE="Arial">
<?php
echo $LDRegDate;
?>
:
</td>
<td bgcolor="#ffffee">
<FONT SIZE=-1 FACE="Arial" color="#800000">
<b><?php
echo formatDate2Local($date_reg, $date_format);
?>
<input name="date_reg" type="hidden" value="<?php
echo $date_reg;
?>
">
</td>
</tr>
<tr>
<td bgColor="#eeeeee">
<FONT SIZE=-1 FACE="Arial"><?php
echo $LDTitle;
?>
:
</td>
<td bgcolor="#ffffee">
示例13: formatDate2Local
<BODY bgcolor="#99ccff" TEXT="#000000" LINK="#0000FF" VLINK="#800080" topmargin="0" marginheight="0"
onLoad="<?php
if ($saved) {
echo "parentrefresh();";
}
?>
if (window.focus) window.focus(); document.infoform.<?php
echo $input_name;
?>
.focus();" >
<table border=0 width="100%">
<tr>
<td><b><font face=verdana,arial size=5 color=maroon>
<?php
echo $title . '<br><font size=4>';
echo $LDFullDayName[$dyidx] . ' (' . formatDate2Local(date('Y-m-d', mktime(0, 0, 0, $mo, $dy, $yr)), $date_format) . ')</font>';
?>
</font></b>
</td>
<td align="right" valign="top"><a href="javascript:gethelp('nursing_feverchart_xp.php','<?php
echo $winid;
?>
','','','<?php
echo $title;
?>
')"><img <?php
echo createLDImgSrc($root_path, 'hilfe-r.gif', '0');
?>
<?php
if ($cfg['dhtml']) {
echo 'style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)>';
示例14: formatDate2Local
<FONT SIZE=3 FACE="Arial" color=white>
Patient:<br>
Mustermann, Silvia<br>
<?php
echo formatDate2Local('1988-11-07', $date_format);
?>
<p>
<?php
echo $LDShootDate;
?>
:<br>
<?php
echo formatDate2Local('2001-10-22', $date_format);
?>
<p>
</FONT>
<p>
<form>
<input type="button" value="<?php
echo $LDNewSearch;
?>
" onClick="window.top.location.replace('radiolog-xray-javastart.php?sid=<?php
echo "{$sid}&lang={$lang}";
?>
')">
<p>
示例15: formatDate2Local
</font>
</td></tr>
<tr bgcolor="<?php
echo $bgc1;
?>
">
<td valign="top" align="right"><font color="#000099" size=2 face="verdana,arial">
<?php
echo $LDCaseNr . '<br>' . $LDFamilyName . '<br>' . $LDName . '<br>' . $LDBDay;
?>
</td>
<td valign="top">
<div class="fva0_ml10"><font color="#000000" size=2 face="verdana,arial">
<?php
echo $full_en . '<br>' . $result['name_last'] . '<br>' . $result['name_first'] . '<br>' . formatDate2Local($result['date_birth'], $date_format);
?>
</div>
</td>
</tr>
<tr bgcolor="<?php
echo $bgc1;
?>
">
<td valign="top" colspan=2 ><div class=fva0_ml10><font color="#000099">
<?php
echo $LDTestFindings;
?>
<br>
<?php