本文整理汇总了PHP中database4::formatDate方法的典型用法代码示例。如果您正苦于以下问题:PHP database4::formatDate方法的具体用法?PHP database4::formatDate怎么用?PHP database4::formatDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类database4
的用法示例。
在下文中一共展示了database4::formatDate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<script src='../js/jquery-2.1.4.min.js'></script>
<script src='../js/table2excel/dist/jquery.table2excel.min.js'></script>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<script>
$(document).ready(function(){
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
console.log(isChrome);
if( isChrome == true ) {
$("#export").click(function() {
var data='<table>'+$("#supplies").html().replace(/<a\/?[^>]+>/gi, '')+'</table>';
var reportName = '<?php
echo 'Supplies Cost [' . $ro4->formatDate(date('Y-m-d')) . ']';
?>
';
/*
$('body').prepend("<form method='post' action='../../export-to-excel/exporttoexcel.php' style='display:none' id='ReportTableData'><input type='text' name='tableData' value='"+data+"' ><input type='text' name='reportName' value='"+reportName+"'></form>");
*/
$('body').prepend("<form method='post' action='../../export-to-excel/exporttoexcel.php' style='display:none' id='ReportTableData'><textarea name='tableData'>"+data+"</textarea><input type='text' name='reportName' value='"+reportName+"'></form>");
$('#ReportTableData').submit().remove();
return false;
/*
$("#supplies").table2excel({
name: "Supplies",
示例2:
<a href="#" id="name<?php
echo $registrationNo;
?>
" style="text-decoration:none; color:black">
<?php
$patientNo = $ro->selectNow('registrationDetails', 'patientNo', 'registrationNo', $registrationNo);
echo $ro->selectNow('patientRecord', 'completeName', 'patientNo', $patientNo);
?>
</a>
</td>
<td>
<?php
echo $ro4->formatDate($ro->selectNow('registrationDetails', 'dateRegistered', 'registrationNo', $registrationNo));
?>
</td>
<td>
<?php
if ($ro->selectNow('registrationDetails', 'dateUnregistered', 'registrationNo', $registrationNo) == "") {
} else {
echo $ro4->formatDate($ro->selectNow('registrationDetails', 'dateUnregistered', 'registrationNo', $registrationNo));
}
?>
</td>
<td>
示例3:
<th>Date</th>
<th>Patient</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<?php
foreach ($ro4->inpatient_discharged_registrationNo() as $registrationNo) {
?>
<?php
if ($ro4->inpatient_phic_total($registrationNo) > 0) {
?>
<tr>
<td>
<?php
echo $ro4->formatDate($ro->selectNow("registrationDetails", "dateUnregistered", "registrationNo", $registrationNo));
?>
</td>
<td>
<?php
$patientNo = $ro->selectNow("registrationDetails", "patientNo", "registrationNo", $registrationNo);
$lastName = $ro->selectNow("patientRecord", "lastName", "patientNo", $patientNo);
$firstName = $ro->selectNow("patientRecord", "firstName", "patientNo", $patientNo);
echo $lastName . ", " . $firstName;
?>
</td>
<td>
<?php
$phicTotal += $ro4->inpatient_phic_total($registrationNo);
示例4: foreach
<?php
if ($ro4->search_laboratory_result_savedNo() != "") {
?>
<?php
foreach ($ro4->search_laboratory_result_savedNo() as $savedNo) {
?>
<tr>
<td>
<?php
$registrationNo = $ro->selectNow("labSavedResult", "registrationNo", "savedNo", $savedNo);
echo strtoupper($ro->selectNow("labSavedResult", "patientName", "savedNo", $savedNo));
?>
</td>
<td>
<?php
echo $ro4->formatDate($ro->selectNow("labSavedResult", "date", "savedNo", $savedNo));
?>
</td>
<td>
<?php
echo $ro->selectNow("registrationDetails", "type", "registrationNo", $registrationNo);
?>
</td>
<td>
<?php
$itemNo = $ro->selectNow("labSavedResult", "itemNo", "savedNo", $savedNo);
echo $ro->selectNow("patientCharges", "description", "itemNo", $itemNo);
?>
</td>
<td>
<button id="result<?php
示例5: database
<?php
include "../../myDatabase.php";
include "../../myDatabase4.php";
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$month1 = $_GET['month1'];
$day1 = $_GET['day1'];
$year1 = $_GET['year1'];
$username = $_GET['username'];
$ro = new database();
$ro4 = new database4();
$date = $year . "-" . $month . "-" . $day;
$date1 = $year1 . "-" . $month1 . "-" . $day1;
$dates = $ro4->formatDate($date);
$dates1 = $ro4->formatDate($date1);
echo "Near Expiry<Br>";
echo $dates . " - " . $dates1;
$ro->expiration($month, $day, $year, $month1, $day1, $year1, $username);
示例6:
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="../js/jquery-2.1.4.min.js"></script>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<script>
$(document).ready(function(){
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
if( isChrome == true ) {
$("#export").click(function(){
var data='<table>'+$("#paidInvoice").html().replace(/<a\/?[^>]+>/gi, '')+'</table>';
var reportName = '<?php
echo 'Check Paid Invoice [' . $ro4->formatDate($date1) . ' to ' . $ro4->formatDate($date2) . ']';
?>
';
/*
$('body').prepend("<form method='post' action='../../export-to-excel/exporttoexcel.php' style='display:none' id='ReportTableData'><input type='text' name='tableData' value='"+data+"' ><input type='text' name='reportName' value='"+reportName+"'></form>");
*/
$('body').prepend("<form method='post' action='../../export-to-excel/exporttoexcel.php' style='display:none' id='ReportTableData'><textarea name='tableData'>"+data+"</textarea><input type='text' name='reportName' value='"+reportName+"'></form>");
$('#ReportTableData').submit().remove();
return false;
});
}else {
$("#export").hide();
}
示例7:
<title></title>
<script src='../js/jquery-2.1.4.min.js'></script>
<script src='../js/table2excel/dist/jquery.table2excel.min.js'></script>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<script>
$(document).ready(function(){
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
console.log(isChrome);
if( isChrome == true ) {
$("#export").click(function() {
var data='<table>'+$("#medicine").html().replace(/<a\/?[^>]+>/gi, '')+'</table>';
var reportName = '<?php
echo 'Medicine Cost [' . $ro4->formatDate(date('Y-m-d')) . ']';
?>
';
/*
$('body').prepend("<form method='post' action='../../export-to-excel/exporttoexcel.php' style='display:none' id='ReportTableData'><input type='text' name='tableData' value='"+data+"' ><input type='text' name='reportName' value='"+reportName+"'></form>");
*/
$('body').prepend("<form method='post' action='../../export-to-excel/exporttoexcel.php' style='display:none' id='ReportTableData'><textarea name='tableData'>"+data+"</textarea><input type='text' name='reportName' value='"+reportName+"'></form>");
$('#ReportTableData').submit().remove();
return false;
/*
$("#medicine").table2excel({
示例8:
$ro4->laboratory_senior_patient($date1, $date2, "OPD", $title);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h3> <?php
echo $title;
?>
</h3>
<h5><?php
echo $ro4->formatDate($date1);
?>
- <?php
echo $ro4->formatDate($date2);
?>
</h5>
<div class="col-md-2">
</div>
<div class="col-md-8">
<table class="table table-hover">
<thead>
<tr>
<th>Patient</th>
<th>Age</th>
示例9:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Daily Transaction</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../..//bootstrap-3.3.6/css/bootstrap.min.css">
<script src="/bootstrap-3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Daily Transaction</h2>
<p><?php
echo $ro->formatDate($date);
?>
</p>
<table class="table table-hover">
<thead>
<tr>
<th></th>
<th>Patient</th>
<th></th>
<th>Total</th>
<th>Discount</th>
<th>Balance</th>
<th>HMO</th>
<th>Cash</th>
<th>Cr.Card</th>
</tr>
示例10:
<style>
@media print {
a[href]:after {
content: "";
}
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<h3>Transaction Summary</h3>
<Br>
<h5><?php
echo $ro4->formatDate($date1) . " - " . $ro4->formatDate($date2);
?>
</h5>
<div class="col-xs-5">
<h4>Outpatient</h4>
<table class="table table-hover ">
<thead>
<tr>
<th>Account Title</th>
<th>Debit</th>
<th>Credit</th>
</tr>
</thead>
<tbody>
<?php
示例11:
<table class="table table-hover">
<thead>
<tr>
<th>Date</th>
<th>Patients</th>
</tr>
</thead>
<tbody>
<?php
for ($x = 1; $x <= 31; $x++) {
?>
<tr>
<td>
<?php
echo $ro4->formatDate($year . "-" . $month . "-" . $x);
?>
</td>
<?php
if ($x < 10) {
?>
<?php
$totalOPD += $ro4->get_last_register($year . "-" . $month . "-" . "0" . $x);
?>
<td>
<?php
echo $ro4->get_last_register($year . "-" . $month . "-" . "0" . $x);
?>
</td>
示例12:
<body>
<h5>Edit History</h5>
<table class="table">
<thead>
<tr>
<th>Date</th>
<th>Orig. QTY</th>
<th>User</th>
</tr>
</thead>
<?php
foreach ($ro4->edited_inventory_editNo() as $editNo) {
?>
<tr>
<td><?php
echo $ro4->formatDate($ro->selectNow("editedInventory", "date", "editNo", $editNo));
?>
</td>
<td class="text-center"><?php
echo $ro->selectNow("editedInventory", "quantity", "editNo", $editNo);
?>
</td>
<td><?php
echo $ro->selectNow("editedInventory", "username", "editNo", $editNo);
?>
</td>
</tr>
<?php
}
?>
</table>
示例13:
}
?>
<th>Description</th>
<th>Bank</th>
<th>Vattable</th>
<th>vat</th>
<th>W/ Tax</th>
<th>Amount</th>
<th>User</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<?php
echo $ro4->formatDate($ro->selectNow("vouchers", "date", "invoiceNo", $invoiceNo));
?>
</td>
<td>
<?php
echo $ro->selectNow("vouchers", "paymentMode", "invoiceNo", $invoiceNo);
?>
</td>
<?php
if ($ro->selectNow("vouchers", "paymentMode", "invoiceNo", $invoiceNo) == "check") {
?>
<td>
<?php
echo $ro->selectNow("vouchers", "checkedNo", "invoiceNo", $invoiceNo);
?>
</td>
示例14:
});
<?php
}
?>
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
console.log(isChrome);
if( isChrome == true ) {
$("#export").click(function() {
var data='<table>'+$("#charges").html().replace(/<a\/?[^>]+>/gi, '')+'</table>';
var reportName = '<?php
echo $title . ' Census [' . $ro4->formatDate($date1) . ' - ' . $ro4->formatDate($date2) . ']';
?>
';
$('body').prepend("<form method='post' action='../../../export-to-excel/exporttoexcel.php' style='display:none' id='ReportTableData'><textarea name='tableData'>"+data+"</textarea><input type='text' name='reportName' value='"+reportName+"'></form>");
$('#ReportTableData').submit().remove();
return false;
});
}else {
$("#export").hide();
}
});
示例15: strtoupper
?>
</td>
<td>
<?php
echo strtoupper($ro->selectNow("uploadedFiles", "patientName", "fileNo", $fileNo));
?>
</td>
<td>
<?php
$itemNo = $ro->selectNow("uploadedFiles", "itemNo", "fileNo", $fileNo);
echo $ro->selectNow("patientCharges", "description", "itemNo", $itemNo);
?>
</td>
<td>
<?php
echo $ro4->formatDate($ro->selectNow("uploadedFiles", "dateUploaded", "fileNo", $fileNo));
?>
</td>
<td>
<a href="../../<?php
echo $ro->selectNow("uploadedFiles", "fileUrl", "fileNo", $fileNo);
?>
" style="color:black" download="<?php
echo $ro->selectNow("uploadedFiles", "fileName", "fileNo", $fileNo);
?>
"><i class="glyphicon glyphicon-cloud-download"></i> Download</a>
</td>
<td>
<a href="#" id="remove<?php
echo $fileNo;
?>