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


PHP database4::formatTime方法代码示例

本文整理汇总了PHP中database4::formatTime方法的典型用法代码示例。如果您正苦于以下问题:PHP database4::formatTime方法的具体用法?PHP database4::formatTime怎么用?PHP database4::formatTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在database4的用法示例。


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

示例1:

        echo $batchNo;
        ?>
									</td>
									<td>
										<?php 
        echo $ro->selectNow("inventoryManager", "requestingDepartment", "batchNo", $batchNo);
        ?>
									</td>
									<td>
										<?php 
        echo $ro->selectNow("inventoryManager", "requestingUser", "batchNo", $batchNo);
        ?>
									</td>
									<td>
										<?php 
        echo $ro4->formatTime($ro->selectNow("inventoryManager", "timeRequested", "batchNo", $batchNo));
        ?>
									</td>
									<td>
										<?php 
        echo $ro4->formatDate($ro->selectNow("inventoryManager", "dateRequested", "batchNo", $batchNo));
        ?>
									</td>
									<td>
										<button class="btn btn-success col-sm-9" data-toggle="modal" data-target="#requestModal<?php 
        echo $batchNo;
        ?>
">View Request</button>
									</td>
								</tr>
							<?php 
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:list-requesition.php

示例2: strtoupper

    $patientNo = $ro->selectNow("registrationDetails", "patientNo", "registrationNo", $registrationNo);
    $lastName = $ro->selectNow("patientRecord", "lastName", "patientNo", $patientNo);
    $firstName = $ro->selectNow("patientRecord", "firstName", "patientNo", $patientNo);
    echo $registrationNo . " - " . strtoupper($lastName) . ", " . strtoupper($firstName);
    ?>
							</td>
							<td>
								<?php 
    $total = $ro->selectNow("patientCharges", "total", "itemNo", $itemNo);
    $total > 0 ? $x = number_format($total, 2) : ($x = "");
    echo $x;
    ?>
							</td>							
							<td>
								<?php 
    echo $ro4->formatTime($ro->selectNow("patientCharges", "timeCharge", "itemNo", $itemNo));
    ?>
							</td>
							<td>
								<?php 
    echo $ro4->formatDate($ro->selectNow("patientCharges", "dateCharge", "itemNo", $itemNo));
    ?>
							</td>
						</tr>
					<?php 
}
?>
				</tbody>
			</table>
		</div>
	</body>
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:charges-census-details-ipd.php

示例3:

echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Senior ID#:</font>&nbsp;" . $ro->selectNow("registrationDetails", "seniorID", "registrationNo", $registrationNo);
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>PhilHealth:</font>&nbsp;" . $ro->getPatientRecord_phic() . " <a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/Payments/phicPayment_selection.php?registrationNo={$registrationNo}&username={$username}' style='text-decoration:none;'><font color='red' size=2>[Payment]</font></a>";
//echo "<br><font class='informationLabel'>Religion:</font>&nbsp;".$ro->getPHICtype_patientRecord();
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Company:</font>&nbsp;" . $ro->getRegistrationDetails_company() . " <a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/Payments/companyPayment_selection.php?registrationNo={$registrationNo}&username={$username}' style='text-decoration:none;'><font color='red' size=2>[Payment]</font></a>";
if ($ro->selectNow("registrationDetails", "company1", "registrationNo", $registrationNo) != "") {
    echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Company1:</font>&nbsp;" . $ro->selectNow("registrationDetails", "company1", "registrationNo", $registrationNo);
} else {
}
if ($ro->selectNow("registrationDetails", "company2", "registrationNo", $registrationNo) != "") {
    echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Company2:</font>&nbsp;" . $ro->selectNow("registrationDetails", "company2", "registrationNo", $registrationNo);
} else {
}
//echo "<br><font class='informationLabel'>Mother's Name:</font>&nbsp;".$ro->selectNow("patientRecord","mothersName","patientNo",$ro->getRegistrationDetails_patientNo());
//echo "<br><font class='informationLabel'>Father's Name:</font>&nbsp;".$ro->selectNow("patientRecord","fathersName","patientNo",$ro->getRegistrationDetails_patientNo());
if ($ro->selectNow("registrationDetails", "type", "registrationNo", $registrationNo) == "OPD") {
    echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Time Registered:</font>&nbsp;" . $ro4->formatTime($ro->getRegistrationDetails_timeRegistered());
    echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Date Registered:</font>&nbsp;" . $ro4->formatDate($ro->getRegistrationDetails_dateRegistered());
} else {
    echo "<br><font class='informationLabel'>Time Registered:</font>&nbsp;" . $ro4->formatTime($ro->getRegistrationDetails_timeRegistered());
    echo "<br><div class='col-xs-3 input-group'>\n\t\t\t\t<span class='input-group-addon'><i class='glyphicon glyphicon-time'></i> Admitted</span>\n\t\t\t\t<input type='text' class='form-control' id='timeAdmission' placeholder='click to add time'>\n\t\t\t\t<span class='input-group-btn'>\n\t\t\t\t\t<button id='saveTimeBtn' class='" . $buttonClass . "'>\n\t\t\t\t\t\tSave\n\t\t\t\t\t</button>\n\t\t\t\t</span>\n\t\t\t</div>";
    echo "<font class='informationLabel'>Date Registered:</font>&nbsp;" . $ro4->formatDate($ro->getRegistrationDetails_dateRegistered());
}
//echo "<br><font class='informationLabel'>Branch Registered:</font>&nbsp;".$ro->getRegistrationDetails_branch();
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Case Type:</font>&nbsp;<a href='#' style='text-decoration:none; color:black;'>" . $ro->selectNow("registrationDetails", "privateORhouse_case", "registrationNo", $registrationNo) . "</a>";
//selectNow($table,$cols,$identifier,$identifierData)
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Room:</font>&nbsp;" . $room[0];
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Address:</font>&nbsp;" . $ro->getPatientRecord_address();
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Email:</font>&nbsp;" . $ro->selectNow("patientRecord", "email", "patientNo", $ro->selectNow("registrationDetails", "patientNo", "registrationNo", $registrationNo));
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Registered By:</font>&nbsp;" . $ro->getRegistrationDetails_registeredBy();
if ($ro->getRegistrationDetails_type() == "IPD") {
    if ($ro->selectNow("nbs", "motherRegistrationNo", "motherRegistrationNo", $registrationNo) != "") {
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:patientProfile_right.php

示例4: database

<?php

include "../../myDatabase.php";
include "../../myDatabase4.php";
$registrationNo = $_GET['registrationNo'];
$date = $_GET['date'];
$ro = new database();
$ro4 = new database4();
$patientNo = $ro->selectNow("registrationDetails", "patientNo", "registrationNo", $registrationNo);
$ro4->get_previous_visit($patientNo, $date);
$data = [];
foreach ($ro4->get_previous_visit_registrationNo() as $registrationNo) {
    if ($ro4->get_previous_visit_doctor($registrationNo, "Consultation") != "") {
        array_push($data, ["registrationNo" => $registrationNo, "dateRegistered" => $ro4->formatDate($ro->selectNow("registrationDetails", "dateRegistered", "registrationNo", $registrationNo)), "timeRegistered" => $ro4->formatTime($ro->selectNow("registrationDetails", "timeRegistered", "registrationNo", $registrationNo)), "type" => $ro->selectNow("registrationDetails", "type", "registrationNo", $registrationNo), "doctor" => $ro->selectNow("patientCharges", "description", "itemNo", $ro4->get_previous_visit_doctor($registrationNo, "Consultation"))]);
    } else {
    }
}
$json = json_encode($data);
echo $json;
开发者ID:rickyx12,项目名称:protacio,代码行数:19,代码来源:previous-visit.php

示例5: strtotime

echo "<tr>";
echo "<td><font class='labelz'><b>Name:</b></font></td><td><font size=2>" . $ro->getPatientRecord_completeName() . "</font></td>";
echo "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
echo "<Td><font class='labelz'><b>Patient ID#:</b></font></td>";
echo "<td><font size=2>" . $manualPatientNo . "</td>";
echo "</tr>";
echo "<tr>";
echo "<Td><font class='labelz'><B>Age:</b></td>";
echo "<Td><font size=2>" . $ro->getPatientRecord_age() . "</font></td>";
echo "<Td>&nbsp;</td>";
echo "<td><font class='labelz'><b>Senior:</b></font></td>";
echo "<td><font size=2>" . $ro->getPatientRecord_senior() . "</font></td>";
echo "</tr>";
echo "<tr>";
if ($admtime != "") {
    echo "<td><font class='labelz'><b>Date of Admission:</b></font></td><td><font size=2>" . $admdatefmt . " - " . $ro4->formatTime($admtime) . "&nbsp;&nbsp;&nbsp;</font></td>";
} else {
    echo "<td><font class='labelz'><b>Date of Admission:</b></font></td><td><font size=2>" . $admdatefmt . "&nbsp;&nbsp;&nbsp;</font></td>";
}
echo "<Td>&nbsp;</td>";
$disdate = $ro->selectNow("registrationDetails", "dateUnregistered", "registrationNo", $registrationNo);
$disdatestr = strtotime($disdate);
$disdatefmt = date("M d, Y");
if ($showdate == 1) {
    if ($disdate == '') {
        echo "<td><font class='labelz'><b>Discharged Date:</b></font></td><td><a href='manualdate.php?registrationNo={$registrationNo}&username={$username}&show={$show}&chargesCode={$chargesCode}&showdate={$showdate}'><font size=2 color=black>" . date("M d, Y") . "</font></a></td>";
    } else {
        echo "<td><font class='labelz'><b>Discharge Date:</b></font></td><td><a href='manualdate.php?registrationNo={$registrationNo}&username={$username}&show={$show}&chargesCode={$chargesCode}&showdate={$showdate}'><font size=2 color=black>" . $ro->formatDate($disdate) . "</font></a></td>";
    }
} else {
    if ($showdate == 2) {
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:detailedTotalOnly.php

示例6:

													<?php 
        }
        ?>
												</td>
												<td>
													<?php 
        echo $ro->selectNow('patientCharges', 'quantity', 'itemNo', $itemNo);
        ?>
												</td>
												<td>
													<?php 
        echo $ro4->formatDate($ro->selectNow('patientCharges', 'dateCharge', 'itemNo', $itemNo));
        ?>
													<h6>
														<?php 
        echo $ro4->formatTime($ro->selectNow('patientCharges', 'timeCharge', 'itemNo', $itemNo));
        ?>
													</h6>
												</td>
												<td>
													<?php 
        echo $ro->selectNow('patientCharges', 'chargeBy', 'itemNo', $itemNo);
        ?>
												</td>
												<td>
													<input type="checkbox" name="itemNo" class="form-control" value="<?php 
        echo $itemNo;
        ?>
" checked="true">
												</td>
											</tr>
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:to-dispense-dept.php


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