本文整理汇总了PHP中show_date函数的典型用法代码示例。如果您正苦于以下问题:PHP show_date函数的具体用法?PHP show_date怎么用?PHP show_date使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了show_date函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: draw2_table
function draw2_table($result)
{
echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\n";
echo "<tr>\n";
echo "<th class=result>Κωδικός Ασθενή</th>";
echo "<th class=result>'Ονομα</th>";
echo "<th class=result>Επώνυμο</th>";
echo "<th class=result>Ημερομηνία<BR>Γέννησης</th>";
echo "<th class=result>Τελευταία επίσκεψη<BR>στην κλινική</th>";
echo "<th class=result>Αιτία \"Lost to Follow Up\"</th>";
echo "</tr>\n";
$num_rows = mysql_num_rows($result);
for ($j = 0; $j < $num_rows; $j++) {
$i = 0;
$resultrow = mysql_fetch_assoc($result);
echo "<tr>\n";
echo "<td align=center class=result>";
echo "<a href='intermediate.php?code=" . $resultrow['PatientCode'] . "'>" . $resultrow['PatientCode'] . "</a>";
echo "</td>";
echo "<td align=center class=result>";
echo $resultrow['Name'];
echo "</td>";
echo "<td align=center class=result>";
echo $resultrow['Surname'];
echo "</td>";
echo "<td align=center class=result>";
echo show_date($resultrow['BirthDate']);
echo "</td>";
echo "<td align=center class=result>";
echo show_date($resultrow['MAX(DateOfVisit)']);
echo "</td>";
echo "<td align=center class=result>";
if ($resultrow['Lost2FollowUp'] == 1) {
echo "Ο ασθενής δεν έχει εμφανιστεί τον τελευταίο χρόνο";
} else {
if ($resultrow['Lost2FollowUp'] == 4) {
echo "Απόφαση Ασθενούς";
} else {
echo "'Aλλη αιτία";
}
}
echo "</td>";
echo "</tr>\n";
}
echo "</table>";
}
示例2: show_patient_data
function show_patient_data($code)
{
$query = "SELECT * FROM patients WHERE PatientCode = " . $code;
$result = execute_query($query);
$row = mysql_fetch_array($result);
mysql_free_result($result);
echo "<input type=hidden name='PatientCode' value='" . $row['PatientCode'] . "' />";
echo "<table>";
echo "<tr><td><b>Κωδικός Ασθενή: " . $row['PatientCode'] . "</b> </td>";
if ($row['MELCode'] != "-1") {
echo "<td><b>Κωδικός ΜΕΛ: " . $row['MELCode'] . "</b></td></tr>";
} else {
echo "<td></td></tr>";
}
echo "<tr><td><b>'Oνομα: " . $row['Name'] . "</b> </td><td><b>Eπώνυμο: " . $row['Surname'] . "</b></td></tr>";
echo "<tr><td colspan=2><b>Ημερομηνία Γέννησης: " . show_date($row['BirthDate']) . "</b></td></tr>";
echo "<tr><td colspan=2><a href='alter_patient.php?code=" . $row['PatientCode'] . "'><small><b>Αλλαγή Ονόματος & Ημερομηνίας Γέννησης</b></small></a></td></tr>";
echo "<tr><td></td><td></td></tr>";
echo "</table>";
}
示例3: fetch_one_ride
<?php
include "mf-core.php";
$angebot_id = $_POST['id'];
$r = fetch_one_ride($angebot_id);
?>
<p class="title">Mitfahrer eintragen:</p>
<br>
<p><?php
echo show_date($r['time']);
?>
; <?php
echo $r['von'];
?>
⇨ <?php
echo $r['nach'];
?>
</p>
<p>Fahrer: <?php
echo $r['name'];
?>
, Fahrzeug: <?php
echo $r['fahrzeug'];
?>
</p>
<p>Preis: <?php
echo $r['preis'];
?>
</p>
<br>
示例4: img
<div id="logo"><?php
echo img(array('src' => 'images/logo.png', 'alt' => 'Logo'));
?>
</div>
<div id="topbar">
<?php
echo lang('overal.server_time');
?>
: <?php
echo show_date();
?>
</div>
示例5: DBGet
#else
# $sql_comment = DBGet(DBQuery("SELECT ID,COMMENT_DATE,COMMENT,CONCAT(s.FIRST_NAME,' ',s.LAST_NAME)AS USER_NAME FROM STUDENT_MP_COMMENTS,STAFF s WHERE STUDENT_ID='".$_SESSION['student_id']."' AND STUDENT_MP_COMMENTS.SYEAR='".UserSyear()."' AND MARKING_PERIOD_ID='".GetParentMP('SEM',UserMP())."' AND s.STAFF_ID=STUDENT_MP_COMMENTS.STAFF_ID"));
//$sql_comment = "select * from STUDENT_MP_COMMENTS where student_id='".$_SESSION['student_id']."'";
$res_comment = mysql_query($sql_comment);
while ($row_comment = mysql_fetch_array($res_comment)) {
if ($_REQUEST['category']['4'] && $row_comment['COMMENT'] != '') {
#DrawHeader($categories_RET['4'][1]['TITLE']);
//include('modules/Students/includes/Comments.inc.php');
echo "<table width=100%><tr><td colspan=2 style=\"border-bottom:1px solid #333; font-size:14px; font-weight:bold;\">Comment</td></tr>";
if ($row_comment['USER_NAME'] != '') {
echo "<tr><td width=21% valign='top' style='font-weight:bold'>Entered by:</td>";
echo "<td width=79% align=justify>" . $row_comment['USER_NAME'] . "</td></tr>";
}
if ($row_comment['COMMENT_DATE'] != '') {
echo "<tr><td width=21% valign='top' style='font-weight:bold'>Date:</td>";
echo "<td width=79% align=justify>" . show_date($row_comment['COMMENT_DATE']) . "</td></tr>";
}
if ($row_comment['COMMENT'] != '') {
echo "<tr><td width=21% valign='top' style='font-weight:bold'>Comment:</td>";
echo "<td width=79% align=justify>" . $row_comment['COMMENT'] . "</td></tr>";
}
echo '</table>';
echo '<!-- NEW PAGE -->';
}
}
echo "</td></tr>";
echo "<tr><td colspan=3 valign=top>";
//===NEWLY ADDED====================================================================================
$cus_RET = DBGet(DBQuery("SELECT sfc.ID,cf.ID as ID1,cf.TITLE, sfc.TITLE AS TITLE1, cf.TYPE, cf.SELECT_OPTIONS, cf.DEFAULT_SELECTION, cf.REQUIRED\r\n FROM CUSTOM_FIELDS AS cf, STUDENT_FIELD_CATEGORIES AS sfc\r\n WHERE sfc.ID = cf.CATEGORY_ID\r\n AND sfc.ID != '1'\r\n AND sfc.ID != '2'\r\n AND sfc.ID != '3'\r\n AND sfc.ID != '4'\r\n AND sfc.ID != '5'\r\n GROUP BY cf.category_id\r\n ORDER BY cf.ID"));
//$fields_RET = DBGet(DBQuery("SELECT cf.ID,cf.TITLE,sfc.TITLE as TITLE1,cf.TYPE,cf.SELECT_OPTIONS,cf.DEFAULT_SELECTION,cf.REQUIRED FROM CUSTOM_FIELDS as cf,STUDENT_FIELD_CATEGORIES as sfc WHERE sfc.ID=cf.CATEGORY_ID and sfc.ID != '1' and sfc.ID != '2' and sfc.ID != '3' and sfc.ID != '4' and sfc.ID != '5' ORDER BY cf.SORT_ORDER,cf.TITLE "));
foreach ($cus_RET as $cus) {
示例6: show_date
?>
</td>
<td align="center"><?php
echo show_date($data["round_start"]);
?>
</td>
<td align="center"><?php
echo show_date($data["round_end"]);
?>
</td>
<td align="center"><?php
echo show_date($data["deal_start"]);
?>
</td>
<td align="center"><?php
echo show_date($data["deal_expile"]);
?>
</td>
<td align="center"><?php
echo number_format($data["product_price"]);
?>
</td>
<td align="center"><?php
echo number_format($data["the_best_deal_price"]);
?>
</td>
<td align="center"><?php
echo $data["product_discount_per"];
?>
%</td>
<?
示例7: show_date
$gole_end_dt = show_date($glst_dt);
echo '<tr><td><b>Goal Title: </b></td><td>' . $row_goal[2] . '</td></tr>';
echo '<tr><td><b>Begin Date: </b></td><td>' . $gole_st_dt . '</td></tr>';
echo '<tr><td><b>End Date: </b></td><td>' . $gole_end_dt . '</td></tr>';
echo '<tr><td valign=top><b>Goal Description: </b></td><td>' . $row_goal[5] . '</td></tr>';
echo "<tr><td colspan=2 style=\"height:18px\"></td></tr>";
if ($progress == 'Y') {
$sql_pro = "SELECT * FROM PROGRESS WHERE STUDENT_ID='" . $_SESSION['student_id'] . "' AND GOAL_ID='" . $goal_id . "' ORDER BY PROGRESS_NAME";
$res_pro = mysql_query($sql_pro);
echo '<tr><td><b><u>Progress Details</u></b></td><td> </td></tr>';
echo "<tr><td colspan=2 style=\"height:18px\"></td></tr>";
while ($row_pro = mysql_fetch_array($res_pro)) {
$pr_id = $row_pro[0];
$pr_cp_id = $row_pro[7];
$pr_dt = $row_pro[3];
$progress_dt = show_date($pr_dt);
$sql_pro_cp = "SELECT TITLE FROM COURSE_PERIODS WHERE COURSE_PERIOD_ID='" . $pr_cp_id . "'";
$res_pro_cp = mysql_query($sql_pro_cp);
$row_pro_cp = mysql_fetch_array($res_pro_cp);
$pr_cp_title = $row_pro_cp[0];
echo '<tr><td><b>Date of Entry: </b></td><td>' . $progress_dt . '</td></tr>';
# ----------------------------- CP ------------------------------------------------- #
echo '<tr><td><b>Course Period: </b></td><td>' . $pr_cp_title . '</td></tr>';
# ----------------------------- CP ------------------------------------------------- #
echo '<tr><td><b>Progress Period Name: </b></td><td>' . $row_pro[4] . '</td></tr>';
echo '<tr><td><b>Proficiency: </b></td><td>' . $row_pro[5] . '</td></tr>';
echo '<tr><td><b>Progress Assessment: </b></td><td>' . $row_pro[6] . '</td></tr>';
echo "<tr><td colspan=2 style=\"height:18px\"></td></tr>";
}
}
echo "<tr><td colspan=2 style=\"height:18px; border-top:1px solid #333;\"></td></tr>";
示例8: show_date
echo "<input type=hidden name=start value=" . $_GET['start'] . ">";
echo "<input type=hidden name=end value=" . $_GET['end'] . ">";
echo "<input type=hidden name=link_id value=" . $_GET['link_id'] . ">";
echo "<input type=hidden name=Medicine value=" . $_GET['Medicine'] . ">";
echo "<b>1η Δόση:</b>";
echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"2\">\n";
echo "<tr>\n";
$i = 0;
echo "<th class=result>Φάρμακο</th>";
echo "<td class=result>" . $_GET['Medicine'] . "</td>";
echo "</tr>\n";
echo "<th class=result>Ημερομηνία<BR>Έναρξης</th>";
echo "<td class=result>" . show_date($row['StartDate']) . "</td>";
echo "</tr>\n";
echo "<th class=result>Ημερομηνία<BR>Διακοπής</th>";
echo "<td class=result>" . show_date($row['EndDate']) . "</td>";
echo "<tr>";
echo "<th class=result>Δόση</th>";
echo "<td class=result>";
$name = $_GET['Medicine'];
?>
<input name="dosage1<?php
echo $id;
?>
" size=6 value="<?php
echo $row['Dosage1'];
?>
">
<select name="dosage1type<?php
echo $id;
示例9: mysql_num_rows
echo "<th class=result> Ημερομηνία Εισόδου </th>";
echo "<th class=result> Ημερομηνία Εξόδου </th>";
echo "<th class=result> Διάγνωση </th>";
echo "<th class=result> Έκβαση </th>";
echo "</tr>\n";
$num_rows = mysql_num_rows($result);
if ($num_rows == 0) {
echo "</table><p> Δεν υπάρχουν καταχωρημένα στοιχεία!</p>";
} else {
for ($j = 0; $j < $num_rows; $j++) {
$resultrow = mysql_fetch_assoc($result);
echo "<tr>\n";
echo "<td align=center> <input type=checkbox name='del_exam_sw_" . $j . "'><input type=hidden name='del_start_" . $j . "' value='" . $resultrow['EntryDate'] . "'>";
echo "<input type=hidden name='del_end_" . $j . "' value='" . $resultrow['ExitDate'] . "'><input type=hidden name='del_diag_" . $j . "' value='" . $resultrow['Diagnosis'] . "'><input type=hidden name='del_ekb_" . $j . "' value='" . $resultrow['Ekbasi'] . "'></td>\n";
echo "<td class=result>" . show_date($resultrow['EntryDate']) . "</td>";
echo "<td class=result>" . show_date($resultrow['ExitDate']) . "</td>";
if (substr($resultrow['Diagnosis'], 0, 2) == "XX" && substr($resultrow['Diagnosis'], 2, 2) != "99") {
echo "<td class=result> " . $entry_id[$resultrow['Diagnosis']] . "</td>";
} else {
echo "<td class=result> " . $resultrow['Diagnosis'] . " <img src=\"./images/b_help.png\" style=\"cursor: pointer\" onclick=\"window.open('./icd-10/findcode.php?code=" . $resultrow['Diagnosis'] . "', 'Εύρεση Κωδικού ICD-10', 'width=450,height=300,status=yes');\"/></td>";
}
if ($resultrow['Ekbasi'] == 1) {
echo "<td class=result>Θάνατος</td>";
} else {
if ($resultrow['Ekbasi'] == 2) {
echo "<td class=result>'Ιαση / Βελτίωση</td>";
} else {
if ($resultrow['Ekbasi'] == 3) {
echo "<td class=result>Αμετάβλητη</td>";
} else {
echo "<td class=result>'Αγνωστη</td>";
示例10: validateDate
public static function validateDate($key, $label)
{
$value = NewRequest::Field($key);
$value = show_date($value);
if (self::$sanitize == true) {
$_REQUEST[$key] = "";
}
if ($value == "") {
self::$error = "The date " . $label . " is not a valid date.";
return -1;
}
return 1;
}
示例11: show_date
?>
<div>
<div class="posts-block" onclick="window.open('<?php
echo $international['link'];
?>
', '_blank')">
<div class="post-block-title">
<p><?php
echo $international['name_' . $lng];
?>
</p>
</div>
<div class="date-social-posts">
<div class="date-time-posts">
<span><i class="mdi mdi-calendar-clock"></i><?php
echo show_date($international['data']);
?>
</span>
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
示例12: add_mitfahrer
add_mitfahrer($angebot_id, $mf_name, $mf_tel, $mf_email);
$mf_id = find_mitfahrer($angebot_id, $mf_email);
if ($mf_id == 0) {
//problem with database, return 2
echo 2;
} else {
//everything is ok return 0
echo 0;
//everyone involved should get an email
$angebot = fetch_one_ride($angebot_id);
$f_name = $angebot['name'];
$f_tel = $angebot['tel'];
$f_email = $angebot['email'];
$von = $angebot['von'];
$nach = $angebot['nach'];
$datum = show_date($angebot['time']);
$zeit = show_time($angebot['time']);
$treffpunkt = $angebot['treffpunkt'];
$dtstart = make_dtcomponent($angebot['time']);
$dtend = make_dtcomponent($angebot['time'] + 30 * 60);
//duration 30 minutes
$ics = make_ics($dtstart, $dtend, $treffpunkt, $von, $nach);
$mitfahrer_msg = make_mitfahrer_message($mf_name, $von, $nach, $datum, $zeit, $f_name, $f_tel, $f_email);
$subject = "Mitfahrgelegenheit ({$von} -> {$nach}) am {$datum}, {$zeit}";
$from = "mitfahren@fachakademie-muehldorf.com";
$mitfahrer_email = make_email($mf_email, $from, $subject, $mitfahrer_msg);
$mitfahrer_email = add_attachment($mitfahrer_email, $ics);
send_mail($mitfahrer_email);
$fahrer_msg = make_neuer_mitfahrer_message($f_name, $von, $nach, $datum, $zeit, $mf_name, $mf_tel, $mf_email);
$fahrer_email = make_email($f_email, $from, $subject, $fahrer_msg);
$fahrer_email = add_encoding($fahrer_email);
示例13: mysql_free_result
}
mysql_free_result($results);
$b_entry_query = "SELECT clinical_symptoms_descriptions.ID as id, clinical_symptoms_descriptions.Description as symptom, patients_category_b.ClinicSymptomDate as date FROM patients_category_b,clinical_symptoms_descriptions WHERE patients_category_b.ClinicSymptom = clinical_symptoms_descriptions.ID AND PatientCode=" . $_GET['code'];
// ." GROUP BY clinical_symptoms_descriptions.ID";
$results = execute_query($b_entry_query);
$num = mysql_num_rows($results);
if ($num != 0) {
echo "<input type=hidden name='sympt' value='" . $num . "'>";
echo "<table width='100%'>\n";
echo "<th align=center>Διαγραφή</th><th align=center>Κλινικά Συμπτώματα <font color=red>(Κατάσταση Β)</font></th><th align=center>Ημερομηνία</th>";
for ($i = 0; $i < $num; $i++) {
$row = mysql_fetch_assoc($results);
echo "<tr>\n";
echo "<td align=center><input type=checkbox name='del_sympt_sw_" . $i . "'><input type=hidden name='del_sympt_id_" . $i . "' value='" . $row['id'] . "'></td>\n";
echo "<td>" . $row['symptom'] . "</td>\n";
echo "<td align=center>" . show_date($row['date']) . "<input type=hidden name='del_sympt_date_" . $i . "' value='" . $row['date'] . "'></td>\n";
echo "</tr>\n";
}
echo "</table>\n";
$is_b = true;
}
mysql_free_result($results);
?>
</DIV>
<?php
$query = "SELECT * FROM patients_category_a WHERE PatientCode=" . $_GET['code'];
$result = execute_query($query);
$has_entry = mysql_num_rows($result);
$row = mysql_fetch_assoc($result);
mysql_free_result($result);
if ($has_entry) {
示例14: FieldD
public static function FieldD($key, $default = "", $format = "Y-m-d", $isWindowsDate = false)
{
if ($key != "") {
$request = $_REQUEST;
if (isset($request[$key]) && (is_numeric($request[$key]) || $request[$key] != "" && !empty($request[$key]))) {
if (!is_array($request[$key])) {
//if (is_numeric($request[$key])) {
// return floatval($request[$key]);
//}
//else {
if ($isWindowsDate == true) {
$date2 = changeMysqlDate($request[$key]);
} else {
$date2 = $request[$key];
}
$retVal = show_date($date2);
if (show_date($retVal) == "") {
return $default;
} else {
return show_date($date2, $format);
}
//}
} else {
return $request[$key];
}
} else {
return $default;
}
} else {
return $default;
}
}
示例15: manageAffiliates
/**
* To post the affiliate questions
*
* @access public
* @param nil
* @return void
*/
function manageAffiliates()
{
//Load model
$this->load->model('settings_model');
//load validation library
$this->load->library('form_validation');
//Load Form Helper
$this->load->helper('form');
//Intialize values for library and helpers
$this->form_validation->set_error_delimiters($this->config->item('field_error_start_tag'), $this->config->item('field_error_end_tag'));
if (!isset($this->loggedInUser->id)) {
$this->session->set_flashdata('flash_message', $this->common_model->flash_message('error', $this->lang->line('You can not access to this page')));
redirect('info');
}
$condition = array('sales.refid' => $this->loggedInUser->user_name);
$this->outputData['affiliate_sales'] = $this->affiliate_model->getAffiliateSales($condition);
// get affiliate sales total
$condition1 = array('sales.refid' => $this->loggedInUser->user_name);
$this->outputData['affiliate_sales_total'] = $this->affiliate_model->getSalesTotal($condition1);
// get affiliate welcome messages
$condition2 = array('affiliate_welcome_msg.refid' => $this->loggedInUser->user_name, 'msg_status' => 0);
$msg_result = $this->affiliate_model->getAffiliateWelcomeMsg($condition2);
$msg_num_rows = $msg_result->num_rows();
$msg_result_row = $msg_result->row();
if (isset($msg_result_row->welcome_msg)) {
$this->outputData['affiliate_welcome_msg'] = $msg_result_row->welcome_msg;
}
//Innermenu tab selection
$this->outputData['innerClass5'] = '';
$this->outputData['innerClass5'] = 'selected';
if ($this->input->post('welcomemsg')) {
//Set rules
$this->form_validation->set_rules('welcome_message', 'lang:welcome_message_validation', 'required|trim|xss_clean');
if ($this->form_validation->run()) {
$welcome_msg = $this->input->post('welcome_message');
if ($msg_num_rows == 0) {
//prepare insert data
$insertData = array();
$insertData['refid'] = $this->loggedInUser->user_name;
$insertData['welcome_msg'] = $welcome_msg;
//print_r($insertData);
//Add Category
$this->affiliate_model->addAffiliateWelcomeMsg($insertData);
$this->session->set_flashdata('flash_message', $this->common_model->admin_flash_message('success', $this->lang->line('updated_success')));
//$this->load->view('affiliate/affilateCenter',$this->outputData);
} else {
$updateKey1 = array('affiliate_welcome_msg.refid' => $this->loggedInUser->user_name, 'id' => $msg_result_row->id);
$updateData1 = array();
$updateData1['welcome_msg '] = $welcome_msg;
//Update Site Settings
$this->affiliate_model->updateAffiliateWelcomeMeg($updateKey1, $updateData1);
$this->session->set_flashdata('flash_message', $this->common_model->admin_flash_message('success', $this->lang->line('updated_success')));
}
}
}
// get affiliate welcome messages
$condition2 = array('affiliate_welcome_msg.refid' => $this->loggedInUser->user_name);
$msg_result = $this->affiliate_model->getAffiliateWelcomeMsg($condition2);
$msg_num_rows = $msg_result->num_rows();
$msg_result_row = $msg_result->row();
if (isset($msg_result_row->welcome_msg)) {
$this->outputData['affiliate_welcome_msg'] = $msg_result_row->welcome_msg;
}
// insert total affiliate amount
$this->load->model('affiliate_model');
$this->load->model('user_model');
$results = $this->affiliate_model->getReleasePayments();
//pr($results->result());
if ($results->num_rows() > 0) {
foreach ($results->result() as $row) {
//prepare insert data
$insertData = array();
$insertData['refid'] = $row->refid;
$insertData['account_type'] = $row->account_type;
$insertData['payment'] = $row->total;
// get user
$condition = array('users.user_name' => $insertData['refid']);
$user_data = $this->user_model->getUsers($condition);
//$user_data_result = $user_data->result();
$user_data_row = $user_data->row();
$user_id = 0;
if (isset($user_data_row->id)) {
if ($user_data_row->id != '') {
$user_id = $user_data_row->id;
}
}
$insertData['user_id'] = $user_id;
$insertData['created_date'] = get_est_time();
$date_with_time = show_date($insertData['created_date']);
$arr = explode(' ', $date_with_time);
//pr($arr_str);
for ($i = 0; $i < count($arr); $i++) {
$mon = $arr[0];
//.........这里部分代码省略.........