• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP formatDate2Local函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了formatDate2Local函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
 }
开发者ID:patmark,项目名称:care2x-tz,代码行数:16,代码来源:calendar.php


示例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 
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:op-doku-start.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'];
?>
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:gui_eye_history_test5.php


示例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;
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:or_new.php


示例5: formatDate2Local

              <td width="100%" height="19">Bill No:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php 
echo $final_bill_no;
?>
</td>
            </tr>
            <tr>
	                  <td width="100%" height="19">Bill
	                    Date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	                    :&nbsp; <?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>
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:confirmfinalbill.php


示例6: formatDate2Local

</font></td>
           <td>&nbsp;<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 '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
}
?>
</font></td>
           <td>&nbsp;<font size=1 face="arial"><?php 
echo $LDDate;
?>
</font></td>
           <td>&nbsp;<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 '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
}
?>
</font></td>
         </tr>
         <tr bgcolor="<?php 
echo $bgc1;
?>
">
           <td>&nbsp;<font face="arial" size=1 color="#000000"><?php 
if ($stored_request['x_test_3_code']) {
    echo $stored_request['x_test_3_code'];
}
?>
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:inc_test_request_printout_blood.php


示例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 '&nbsp;';
                        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 
开发者ID:patmark,项目名称:care2x-tz,代码行数:67,代码来源:class_gui_input_person_old.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
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:31,代码来源:help_en_person_search_tips.php


示例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>';
?>
开发者ID:BackupTheBerlios,项目名称:docame-svn,代码行数:31,代码来源:Befundverwaltung_dbform.php


示例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']);
}
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:31,代码来源:inc_test_request_printout_generic.php


示例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();
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:report.php


示例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">
开发者ID:patmark,项目名称:care2x-tz,代码行数:67,代码来源:class_gui_tz_person_show.php


示例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)>';
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:nursing-getdailyinfo.php


示例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>

开发者ID:patmark,项目名称:care2x-tz,代码行数:28,代码来源:radiolog-xray-display-controlframe.php


示例15: formatDate2Local

		 &nbsp;&nbsp;</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 
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:31,代码来源:inc_test_findings_form_radio.php


示例16: stripslashes

if ($mode == "edit") {
    $tpbuffer = stripslashes($stored_request['gyn_gravida']);
}
$smarty->assign('val_gyn_gravida', $tpbuffer);
$smarty->assign('LDContraceptive', $LDContraceptive);
$tpbuffer = '';
if ($mode == "edit") {
    $tpbuffer = stripslashes($stored_request['gyn_contraceptive']);
}
$smarty->assign('val_gyn_contraceptive', $tpbuffer);
$smarty->assign('LDOpDate', $LDOpDate);
$tpbuffer = '<input type="text" name="op_date"  value="';
if ($mode == "edit") {
    $tpbuffer .= formatDate2Local($stored_request['op_date'], $date_format) . '"';
} else {
    $tpbuffer .= formatDate2Local(date('Y-m-d'), $date_format) . '" size=10 maxlength=10 onBlur="IsValidDate(this,\'' . $date_format . '\')" onKeyUp="setDate(this,\'' . $date_format . '\',\'' . $lang . '\')"';
}
$smarty->assign('inputOpDate', $tpbuffer . '>');
$smarty->assign('gifOpCalendar', "<a href=\"javascript:show_calendar('form_test_request.op_date','{$date_format}')\">\n \t\t<img " . createComIcon($root_path, 'show-calendar.gif', '0', 'absmiddle') . "></a>");
$smarty->assign('LDDoctor', $LDDoctor);
$smarty->assign('LDDept', $LDDept);
if ($mode == "edit") {
    $smarty->assign('val_doctor_sign', stripslashes($stored_request['doctor_sign']));
}
if ($edit) {
    # Collect buffer output
    ob_start();
    /* If in edit mode display the control buttons */
    include $root_path . 'include/inc_test_request_controls.php';
    include $root_path . 'include/inc_test_request_hiddenvars.php';
    echo '</form>';
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:nursing-station-patientdaten-doconsil-patho.php


示例17: formatDate2Local

 } else {
     echo "<tr  nowrap class=\"wardlistrow1\">\n";
     $toggle = 1;
 }
 $datacount++;
 for ($i = 2; $i < $colstop; $i++) {
     echo "<td nowrap>";
     if ($update && $zeile[item] == $itemname) {
         echo "<FONT SIZE=1 color=red>";
     } else {
         echo "<FONT SIZE=1>";
     }
     echo '<nobr>&nbsp;';
     if ($edit) {
         if ($i == $colstop - 2) {
             echo formatDate2Local($zeile[$i], $date_format);
         } elseif ($i == $colstop - 1) {
             echo convertTimeToLocal($zeile[$i]);
         } else {
             echo htmlspecialchars($zeile[$i]);
         }
     } else {
         echo htmlspecialchars($zeile[$i]);
     }
     echo "</td>\n";
 }
 if ($edit) {
     echo "<td nowrap><FONT size=1><nobr>\n\t\t\t\t\t\t\t<a href=\"phone_entry_update.php" . URL_APPEND . "&from=list&itemname=" . $zeile['item_nr'] . "&batchnum={$batchnum}&displaysize={$displaysize}&linecount={$linecount}&pagecount={$pagecount}&edit={$edit}\">\n\t\t\t\t\t\t{$LDEdit}</a> \n";
     echo "<a href=\"phone_entry_delete.php" . URL_APPEND . "&from=list&itemname=" . $zeile['item_nr'] . "&batchnum={$batchnum}&displaysize={$displaysize}&linecount={$linecount}&pagecount={$pagecount}&edit={$edit}\">\n\t\t\t\t\t\t{$LDDelete}</a> </td>";
 }
 echo "</tr>\n";
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:phone_list.php


示例18: array

 // for arabic lang, added  by Waleed Fathalla at 06/03/2004
 # Load the page header #1
 require '../std_plates/pageheader1ar.php';
 # Load the patient data plate #1
 require '../std_plates/patientdata1ar.php';
 $data = NULL;
 # make empty line
 $y = $pdf->ezText("\n", 14);
 $data[] = array(ar2uni($LDPatientData));
 $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, 'cols' => array(0 => array('justification' => 'right'))));
 # make empty line
 $y = $pdf->ezText("\n", 14);
 # reset
 $data = NULL;
 $data[] = array(formatDate2Local($encounter['encounter_date'], $date_format), ar2uni("{$LDAdmitDate} :"));
 $data[] = array(formatDate2Local($encounter['encounter_date'], $date_format, TRUE, TRUE), ar2uni("{$LDAdmitTime} :"));
 $data[] = array('');
 $data[] = array(ar2uni($encounter['title']), ar2uni("{$LDTitle} :"));
 $data[] = array($encounter['sex'], ar2uni("{$LDSex} :"));
 $data[] = array($encounter['blood_group'], ar2uni("{$LDBloodGroup} :"));
 $data[] = array(ar2uni($eclass), ar2uni("{$LDAdmitType} :"));
 if ($encounter['encounter_class_nr'] == 1) {
     $data[] = array(ar2uni($current_ward_name), ar2uni("{$LDWard} :"));
 } else {
     $data[] = array(ar2uni($current_dept_name), ar2uni("{$LDDepartment} :"));
 }
 $data[] = array('');
 $data[] = array(ar2uni($encounter['referrer_diagnosis']), ar2uni("{$LDDiagnosis} :"));
 $data[] = array(ar2uni($encounter['referrer_dr']), ar2uni("{$LDRecBy} :"));
 $data[] = array(ar2uni($encounter['referrer_recom_therapy']), ar2uni("{$LDTherapy} :"));
 $data[] = array(ar2uni($encounter['referrer_notes']), ar2uni("{$LDSpecials} :"));
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:admitdata.php


示例19: array

$facility_data = $o_arv_case->getFacilityInfo();
$mode == "new" ? $src = 'New ARV Patient' : ($src = 'Edit ARV Patient');
//------------------------------------------------------------------------------------------------------
$defaults = array('arv_pid' => '', 'district' => '', 'village' => '', 'street' => '', 'balozi' => '', 'chairman_of_village' => '', 'head_of_family' => '', 'name_of_secretary' => '', 'secretary_phone' => '', 'secretary_adress' => '', 'datetime_first_hivtest' => '', 'datetime_start_arv' => '');
$o_arv_case->set_rule('arv_pid', 'rule_required');
$o_arv_case->set_rule('arv_pid', 'rule_numeric');
$o_arv_case->set_rule('secretary_phone', 'rule_numeric');
$o_arv_case->set_rule('arv_pid', 'rule_min_chars', 2);
$o_arv_case->set_rule('datetime_first_hivtest', 'rule_date');
$o_arv_case->set_rule('datetime_start_arv', 'rule_date');
//------------------------------------------------------------------------------------------------------
if (!isset($_GET['arv_patient_data'])) {
    if ($_GET['mode'] == "edit") {
        $_GET['arv_patient_data'] = $o_arv_case->getPatientARVData();
        $_GET['arv_patient_data']['datetime_start_arv'] = formatDate2Local($_GET['arv_patient_data']['datetime_start_arv'], $date_format, null, null);
        $_GET['arv_patient_data']['datetime_first_hivtest'] = formatDate2Local($_GET['arv_patient_data']['datetime_first_hivtest'], $date_format, null, null);
    }
}
if (isset($_GET['submit'])) {
    $result = $o_arv_case->apply_rules($defaults, $_GET['arv_patient_data']);
    $messages = $result['messages'];
    $values = $result['values'];
    $errors = $result['errors'];
    if ($errors == 0) {
        if ($_GET['mode'] == "new") {
            if ($o_arv_case->insertARVdata($values)) {
                header("location: http://{$host}{$uri}/{$filename}" . URL_REDIRECT_APPEND . "{$add_breakfile}");
                exit;
            }
        } elseif ($_GET['mode'] == "edit") {
            if ($o_arv_case->updateARVdata($values)) {
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:arv_case.php


示例20: displayARVData

 function displayARVData()
 {
     //method for dislaying a table with Patient's registration data
     global $date_format;
     if (!$this->getFacilityInfo()) {
         echo "<b>No Facility Info given. Please go to System Admin->System Admin->Facility Information and give the basic information for your hospital</b><br>";
     }
     if (!$this->getPatientARVData()) {
         return false;
     }
     $table_string = "<table class=\"mainTable\"  >\n\t\t\t\t\t\t  <tr>\n\t\t\t\t\t\t    <td class=\"tablebackground\"><span class=\"blue\">Facility&nbsp;Name:&nbsp;</span>" . $this->arv_facility_data['main_info_facility_name'] . "</td>\n\t\t\t\t\t\t    <td class=\"tablebackground\"><span class=\"blue\">Code:&nbsp;</span>" . $this->arv_facility_data['main_info_facility_code'] . "</td>\n\t\t\t\t\t\t    <td class=\"tablebackground\"><span class=\"blue\">District:&nbsp;</span>" . $this->arv_facility_data['main_info_facility_district'] . "</td>\n\t\t\t\t\t\t  </tr>\n\t\t\t\t\t\t  <tr>\n\t\t\t\t\t\t    <td class=\"tablebackground\"><span class=\"blue\">ARV-ID:&nbsp;</span>" . $this->arv_patient_data['arv_pid'] . "</td>\n\t\t\t\t\t\t    <td class=\"tablebackground\"><span class=\"blue\">Firstname:&nbsp;</span>" . $this->getValue('name_first') . "</td>\n\t\t\t\t\t\t    <td class=\"tablebackground\"><span class=\"blue\">Lastname:&nbsp;</span>" . $this->getValue('name_last') . "</td>\n\t\t\t\t\t\t  </tr>\n\t\t\t\t\t\t  <tr>\n\t\t\t\t\t\t    <td class=\"tablebackground\"><span class=\"blue\">Date&nbsp;of&nbsp;Birth:&nbsp;</span>" . formatDate2Local($this->getValue('date_birth'), $date_format) . "</td>\n\t\t\t\t\t\t    <td class=\"tablebackground\"><span class=\"blue\">Sex:&nbsp;</span>" . $this->getValue('sex') . "</td>\n\t\t\t\t\t\t    <td class=\"tablebackground\"><span class=\"blue\">Simu&nbsp;ya&nbsp;Mgonjwa:&nbsp;</span>" . $this->getTelephoneCombined() . "</td>\n\t\t\t\t\t\t  </tr>\n\t\t\t\t\t\t  <tr>\n\t\t\t\t\t\t    <td colspan=\"2\" class=\"tablebackground\"><span class=\"blue\">Year&nbsp;if&nbsp;1st&nbsp;pos&nbsp;HIV-test:&nbsp;</span>" . formatDate2Local($this->arv_patient_data['datetime_first_hivtest'], $date_format) . "</td>\n\t\t\t\t\t\t    <td class=\"tablebackground\"><span class=\"blue\">Start&nbsp;date&nbsp;ARV's:&nbsp;</span>" . formatDate2Local($this->arv_patient_data['datetime_start_arv'], $date_format) . " </td>\n\t\t\t\t\t\t  </tr>\n\t\t\t\t\t </table>";
     return $table_string;
 }
开发者ID:patmark,项目名称:care2x-tz,代码行数:13,代码来源:class_tz_arv_case.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP formatDate2STD函数代码示例发布时间:2022-05-15
下一篇:
PHP formatDate函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap