本文整理匯總了PHP中DateThai函數的典型用法代碼示例。如果您正苦於以下問題:PHP DateThai函數的具體用法?PHP DateThai怎麽用?PHP DateThai使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了DateThai函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: DateThai
<tr>
<td align="left" valign="top"><table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>
</table>
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="150" height="20" align="right"><strong> <font color="#000000" size="2">วันที่สมัครสมาชิก</font> </strong></td>
<td height="20" align="center">:</td>
<td width="540" height="20" align="left"><table width="530" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><font size="2">
<?php
$regDate = $r5[8];
echo DateThai($regDate);
?>
</font></td>
<td width="50" align="right"><font size="2"><a href="del-member.php?member_id=<?php
echo $member_id;
?>
" onclick="javascript:if(!confirm('ท่านต้องการลบข้อมูลจริงหรือไม่')){return false;}"><img src="images/del.gif" width="40" height="15" border="0" /></a></font></td>
</tr>
</table></td>
</tr>
<tr>
<td width="150" height="20" align="right"><strong><font color="#000000" size="2">ชื่อที่ใช้เรียก </font></strong> </td>
<td height="20" align="center">:</td>
<td width="540" height="20" align="left"><font color="#000000" size="2"><?php
echo $r5[1];
?>
示例2: DateThai
echo $arr_rs['PRENAME'];
?>
</td>
<td>
<?php
echo $arr_rs['FNAME'];
?>
</td>
<td>
<?php
echo $arr_rs['LNAME'];
?>
</td>
<td>
<?php
echo DateThai($arr_rs['BIRTH']);
?>
</td>
<td>
<?php
echo $arr_rs['AGE'];
?>
</td>
<td>
<?php
echo $arr_rs['DISABTYPE'];
?>
</td>
<td>
<?php
echo $arr_rs['DISABTYPE_NAME'];
示例3: DateThai
<?php
function DateThai($strDate)
{
$strYear = date("Y", strtotime($strDate)) + 543;
$strMonth = date("n", strtotime($strDate));
$strDay = date("j", strtotime($strDate));
$strHour = date("H", strtotime($strDate));
$strMinute = date("i", strtotime($strDate));
$strSeconds = date("s", strtotime($strDate));
$strMonthCut = array("", "ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค.");
$strMonthThai = $strMonthCut[$strMonth];
return "{$strDay} {$strMonthThai} {$strYear}, {$strHour}:{$strMinute}";
}
$strDate = "2008-08-14 13:42:44";
echo "ThaiCreate.Com Time now : " . DateThai($strDate);
示例4: date
include("menu_center.php");
$dd = date("Y-m-d");
$tt = date("H:i:s");
?>
</p>
<p> </p>
<div id="box500"><h3> <img src="img/icon/16/star.png"> สวัดดีครับ คุณ <a href="#"><?php
echo $_SESSION["member_name"];
?>
</a></h3>
<table style="border: none;font-size: 12px;color: #5b5b5b;width: 100%;margin: 10px 0 10px 0;">
<tr>
<td style="border: none;padding: 4px;" width="7%"><img src="img/icon/calendar_empty_32.png"></td>
<td style="border: none;padding: 4px;" width="93%"><b>วันนี้วันที่ <?php
echo DateThai($dd);
?>
</b></td>
</tr>
<tr>
<td style="border: none;padding: 4px;" width="7%"><img src="img/icon/clock_32.png"></td>
<td style="border: none;padding: 4px;" width="93%"><b>เวลา <?php
echo $tt;
?>
</b></td>
</tr>
</table>
</div>
示例5: DateThai
?>
</td>
<td align="center" valign="middle"><?php
echo $row['CID'];
?>
</td>
<td align="center" valign="middle"><?php
echo $row['PRENAME'];
?>
</td>
<td align="center" valign="middle"><?php
echo $row['FNAME'];
?>
</td>
<td align="center" valign="middle"><?php
echo DateThai($row['BIRTH']);
?>
</td>
<td align="center" valign="middle"><?php
echo $row['AGE'];
?>
</td>
<td align="center" valign="middle"><?php
echo $row['HOUSE'];
?>
</td>
<td align="center" valign="middle"><?php
echo $row['VNAME'];
?>
</td>
<td align="center" valign="middle"><?php
示例6: foreach
.center {
text-align: center;
}
</style>
<?php
foreach ($team as $t) {
?>
<div class="container">
<table>
<tr>
<td colspan="28"><b>หอผู้ป่วย</b> <u><?php
echo $ward_name->ward;
?>
</u> โรงพยาบาลขอนแก่น <b>วันที่</b> <u><?php
echo DateThai($event_date);
?>
</u> <b>เวลา</b> <u><?php
echo $event->period == 3 ? '00.00 - 08.00' : ($event->period == 1 ? '08.00 - 16.00' : '16.00 - 00.00');
?>
น.</u> <b>เวร</b> <u><?php
echo $event->period == 3 ? 'ดึก' : ($event->period == 1 ? 'เช้า' : 'บ่าย');
?>
</u> <b>ผู้มอบหมายงาน</b>.......................... </td>
</tr>
<tr>
<td colspan="28"><b>*ระดับการดูแลขั้นต่ำ</b> 4=ต้องการดูแลมากตลอดเวลา ,3=มาก ,2=ปานกลาง ,1=น้อย ให้ 4a=หนักมาก ,3a=หนัก ,3b=หนักปานกลาง ,2a ,2b ,2c พัก (a = 13 - 16, b = 9 - 12, c = 5 - 8, d = 4)</td>
</tr>
<tr><td>
<table class="coll center" border ="1" width="100%">
<thead>
示例7: Blog
</table>
</div>
<?php
}
} else {
$blogEngine = new Blog();
$blogEngine->ViewerBlog($path->Level(2));
echo '<div class="body-blog">';
$blog = parent::ViewTableWhere('blog', 'title', $path->Level(2), 0, 1);
$blog = $blog[0];
echo BB::Code($blog['fulltext']);
echo '</div><div class="body-credit">';
if ($blog['created'] == $blog['modified']) {
echo '<u>' . _BLOG_CREATED . '</u> ' . DateThai($blog['created'], 'f');
} else {
echo '<u>' . _BLOG_MODIFIED . '</u> ' . DateThai($blog['modified'], 'f');
}
echo '</div><div id="blog-title"><h3>COMMENT</h3></div><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td width="50%" valign="top">';
echo '<div id="blog-comment">';
if (parent::CountRow('blog_comment', 'blogid', $blogEngine->GetBlogID($path->Level(2))) == 0) {
echo _COMMENT_NONE;
}
foreach (parent::ViewTableWhere('blog_comment', 'blogid', $blogEngine->GetBlogID($path->Level(2)), 'commentid DESC', 20) as $comment) {
echo '<div class="comment-list"><div class="comment-name"><strong>' . $comment['name'] . '</strong><font size="1"> on ';
$totalcDays = LastDays($_SERVER['REQUEST_TIME']);
$totalmDays = LastDays($comment['created']);
if ($totalcDays - $totalmDays == 0) {
echo 'Today';
} else {
if ($totalcDays - $totalmDays == 1) {
echo 'Yesterday';
示例8: DateThai
echo $arr_rs['DISABID'];
?>
</td>
<td>
<?php
echo $arr_rs['DISABTYPE'];
?>
</td>
<td>
<?php
echo $arr_rs['DISABCAUSE'];
?>
</td>
<td>
<?php
echo DateThai($arr_rs['DATE_DISAB']);
?>
</td>
<td>
<?php
echo $arr_rs['HOUSE'];
?>
</td>
<td>
<?php
echo $arr_rs['VHID'];
?>
</td>
</tr>
示例9: DateThai
<!-- <div class="row">
<a class="btn btn-primary" role="button" style="margin-top: 0px" onClick="javascript:window.open('add_form.php', '', 'nenuber=no,toorlbar=no,location=no,scrollbars=no, status=no,resizable=no,width=500,height=650,top=0,left=150 ')">พิมพ์ข้อมูลทั้งหมด</a>
</div>
<div class="row">
<a class="btn btn-primary" role="button" style="margin-top: 0px" onClick="javascript:window.open('add_form.php', '', 'nenuber=no,toorlbar=no,location=no,scrollbars=no, status=no,resizable=no,width=500,height=650,top=0,left=150 ')">พิมพ์ข้อมูลที่อยู่</a>
</div>-->
</div>
</center>
</div>
<div class="row">
<div class="col-xs-6 col-xs-offset-4">
<h4 style="color: red;">แก้ไขข้อมูลล่าสุดเมื่อ <?php
// $strDate = "2008-08-14 13:42:44";
// echo "ThaiCreate.Com Time now : " . DateThai($strDate);
echo DateThai($person['LASTUPDATE']);
?>
</h4>
</div>
</div>
<fieldset class="scheduler-border">
<legend class="scheduler-border"><h4>1) ข้อมูลส่วนตัว</h4></legend>
<div class="row">
<div class="col-xs-3">
<h5>ชื่อ-นามสกุลไทย</h5>
</div>
<div class="col-xs-3" style="margin-top: 1px">
<!--<p>-->
<h6>
<?php
if ($person['TITLE_ID'] != 0) {
示例10: DateThai
<?php
include "../chart/chart_60up_amp.php";
?>
</div>
</div>
<!---->
<!---->
<div class="panel panel-info">
<div class="panel-heading">
ข้อมูล กลุ่มอายุ <?php
echo $age;
?>
ปีขึ้นไป ระดับอำเภอ ประมวลผล ณ วันที่ <?php
echo DateThai($d_update);
?>
<a href="../exportxls/age_group_export_excel.php?id=<?php
echo $id;
?>
&age=<?php
echo $age;
?>
&table=<?php
echo $table;
?>
"class="btn btn-default btn-sm " role="button">
ส่งออก Excel
</a>
</div>
<div class="panel-body">
示例11: DateThai
echo $arr_rs['INSTYPE'];
?>
</td>
<td>
<?php
echo $arr_rs['INSID'];
?>
</td>
<td>
<?php
echo DateThai($arr_rs['STARTDATE']);
?>
</td>
<td>
<?php
echo DateThai($arr_rs['EXPIREDATE']);
?>
</td>
<td>
<?php
echo $arr_rs['HOUSE'];
?>
</td>
<td>
<?php
echo $arr_rs['VHID'];
?>
</td>
</tr>
示例12: DateThai
?>
</span>
<span class="subject_l"><?php
echo !empty($_POST) ? $subject_l : "";
?>
</span>
<span class="print_p"><?php
echo !empty($_POST) ? $p : "";
?>
</span>
<span class="print_y"><?php
echo !empty($_POST) ? $y : "";
?>
</span>
<span class="other1_date"><?php
echo !empty($_POST) ? DateThai($other1_date) : "";
?>
</span>
<span class="other1_point"><?php
echo !empty($_POST) ? $other1_point : "";
?>
</span>
<span class="other1_max"><?php
echo !empty($_POST) ? $other1_maxpoint : "";
?>
</span>
<span class="otherdetail"><?php
echo !empty($_POST) ? $otherdetail : "";
?>
</span>
示例13: file_get_contents
$xml = file_get_contents($url);
$xmlDoc = new DOMDocument();
$xmlDoc->loadXML($xml);
$items = $xmlDoc->getElementsByTagName("item");
for ($i = 0; $i < $items->length; $i++) {
$item = $items->item($i);
// $titles = $item->getElementsByTagName("guid");
$titles = $item->getElementsByTagName("title");
$dates = $item->getElementsByTagName("pubDate");
$links = $item->getElementsByTagName("link");
// echo ($i+1).". ".utf8_to_tis620($titles->item(0)->nodeValue). "";
//$datex=print "".$dates->item(0)->nodeValue."";
$word = explode(" ", "" . $dates->item(0)->nodeValue . "");
//echo "".$word[0]."" ;
$ThaiTime = "" . $word[3] . "-" . $word[2] . "-" . $word[1] . " " . $word[4] . "";
$ThaiDate = DateThai($ThaiTime);
$Time = strtotime($ThaiTime);
//echo TIMESTAMP."-".$Time;
if (ISO == 'utf-8') {
echo " <img src=images/a.gif> <a href='" . $links->item(0)->nodeValue . "' target='_blank' /><b>" . $titles->item(0)->nodeValue . "</b></a>(" . $ThaiDate . ")";
echo " " . HotNewsIcon(TIMESTAMP, $Time, "images/icon_new.gif") . "";
} else {
echo " <img src=images/a.gif> <a href='" . utf8_to_tis620($links->item(0)->nodeValue) . "' target='_blank' /><b>" . utf8_to_tis620($titles->item(0)->nodeValue) . "</b></a>(" . $ThaiDate . ")";
echo " " . HotNewsIcon(TIMESTAMP, $Time, "images/icon_new.gif") . "";
}
}
echo "</marquee></TD></TR>";
echo "</table>";
//News Icon
function HotNewsIcon($Ntime = "", $Otime = "", $Icon = "")
{
示例14: DateThai
?>
</span>
<span class="teacher"><?php
echo !empty($_POST) ? $teacher : "";
?>
</span>
<span class="misssub"><?php
echo !empty($_POST) ? $misssub : "";
?>
</span>
<span class="section"><?php
echo !empty($_POST) ? $section : "";
?>
</span>
<span class="missday"><?php
echo !empty($_POST) ? DateThai($missday) : "";
?>
</span>
<span class="subteacher"><?php
echo !empty($_POST) ? $subteacher : "";
?>
</span>
<span class="tel"><?php
echo !empty($_POST) ? $tel : "";
?>
</span>
<span class="missdetail"><?php
echo !empty($_POST) ? $missdetail : "";
?>
</span>
<span class="otherdetail"><?php
示例15: DateThai
$pt[$i]['bed_type'] = $p->bed_type;
$pt[$i]['bed_no'] = $p->bed_no;
$pt[$i]['fullname'] = $p->title . $p->name . ' ' . $p->surname;
$i++;
}
?>
<div class="container">
<table>
<tr>
<td colspan="28"><b>หอผู้ป่วย</b> <u><?php
echo $ward_name->ward;
?>
</u> โรงพยาบาลขอนแก่น
<br/><b>วันที่</b> <u><?php
echo DateThai($event->date);
?>
</u> <b>เวลา</b> <u><?php
echo $event->period == 1 ? '00.00 - 08.00' : ($event->period == 2 ? '08.00 - 16.00' : '16.00 - 00.00');
?>
น.</u> <b>เวร</b> <u><?php
echo $event->period == 1 ? 'ดึก' : ($event->period == 2 ? 'เช้า' : 'บ่าย');
?>
</u></td>
</tr>
<tr>
<td style="vertical-align: top; padding: 10px; ">
<table class="coll center" border ="1" padding='20'>
<thead>