本文整理汇总了PHP中ThaiTimeConvert函数的典型用法代码示例。如果您正苦于以下问题:PHP ThaiTimeConvert函数的具体用法?PHP ThaiTimeConvert怎么用?PHP ThaiTimeConvert使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ThaiTimeConvert函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: UpdateIcon
if ($Comms['id']) {
UpdateIcon(TIMESTAMP, $Comms['post_date'], "images/icon/update.gif");
} else {
NewsIcon(TIMESTAMP, $WebBoard['post_date'], "images/icon_new.gif");
}
echo "<FONT FACE=\"tahoma\" COLOR=\"#808080\">(" . number_format($WebBoard['pageview']) . "/" . number_format($SumComm) . ")</FONT></td>\n";
echo "<td width=\"120\"><CENTER><B><FONT COLOR=\"#6600FF\">";
//¡Ã³ÕÊÁÒªÔ¡
if ($WebBoard['is_member']) {
echo "<IMG SRC=\"images/human.gif\" BORDER=\"0\" ALIGN=\"absmiddle\"> <B><FONT COLOR=\"#FF0066\">";
} else {
}
$postTimePast = checkPostTimePast($WebBoard['post_date']);
// echo "".$WebBoard['post_name']."</FONT><br><FONT COLOR=\"#CC0066\">".$postTimePast."</FONT></B></CENTER></td>\n";
echo "" . $WebBoard['post_name'] . "</FONT></B></CENTER></td>\n";
echo "<td width=\"120\"><CENTER><FONT COLOR=\"#339900\">" . ThaiTimeConvert($WebBoard['post_date'], "", "2") . "</FONT></CENTER></td></tr>";
$count++;
}
@mysql_free_result($BoardResult);
echo "</table>";
?>
<BR>
</td>
</TR>
</TBODY>
</TABLE>
示例2: NewsIcon
$arr['cat'] = $db->fetch($res['cat']);
$CAT = $arr['cat']['post_date'];
?>
<table width="100%" cellspacing="2" cellpadding="1" >
<tr>
<td bgcolor="#F7F7F7" colspan="<?php
echo _GALLERY_ADMIN_COL;
?>
"><font color="#990000" size="4"><b> >> <?php
echo $arr['cat']['category_name'];
?>
</b></font></a> <?php
echo NewsIcon(TIMESTAMP, $arr['cat']['post_date'], "images/icon_new.gif");
?>
( <?php
echo ThaiTimeConvert($arr['cat']['post_date'], '', '');
?>
) <br><font size="3" color="#0066CC"> [ <?php
echo _ADMIN_GALLERY_SHOW_TOTAL_PIC;
?>
<font color="#990000" size="3"><?php
echo $SUMPAGE;
?>
</font> <?php
echo _ADMIN_GALLERY_SHOW_TOTAL_NUM;
?>
] <br><br> </font><font size="2"><?php
echo $arr['cat']['category_detail'];
?>
</font></td>
</tr>
示例3: NewsIcon
</td>
<td><A HREF="?name=knowledge&file=readknowledge&id=<?php
echo $arr['knowledge']['id'];
?>
" target="_blank"><?php
echo $arr['knowledge']['topic'];
?>
</A><?php
echo $CommentIcon;
echo $PicIcon;
echo $AttIcon;
echo NewsIcon(TIMESTAMP, $arr['knowledge']['post_date'], "images/icon_new.gif");
?>
</td>
<td ><CENTER><?php
echo ThaiTimeConvert($arr['knowledge']['post_date'], '', '');
?>
</CENTER></td>
<td align="center">
<?php
if ($arr['category']['category_name']) {
//ËÒ¡ÁÕËÁÇ´áÊ´§ÃÙ»
?>
<A HREF="#"><IMG SRC="images/admin/folders.gif" BORDER="0" align="absmiddle" alt="<?php
echo $arr['category']['category_name'];
?>
" onMouseOver="MM_displayStatusMsg('<?php
echo $arr['category']['category_name'];
?>
');return document.MM_returnValue"></A>
<?php
示例4: while
while ($comment = $db->fetch($query)) {
$count++;
?>
<TABLE cellSpacing=5 cellPadding=0 width=480 border=0 align="center" class="tablecomment">
<TR>
<TD><B><FONT COLOR="#990000">ความคิดเห็นที่ <?php
echo $count;
?>
</FONT></B>
<?php
if (isset($_SESSION['admin_user'])) {
echo " <A HREF=\"?name=knowledge&file=delete_comment&id=" . $_GET['id'] . "&comment=" . $comment['id'] . "\"><IMG SRC=\"images/admin/trash.gif\" WIDTH=\"20\" HEIGHT=\"20\" BORDER=\"0\" ALIGN=\"absmiddle\"></A>";
}
?>
<BR><?php
echo ThaiTimeConvert($comment['post_date'], "1", "1");
?>
</TD>
</TR>
<TR>
<TD height="1" class="dotline"></TD>
</TR>
<TR>
<TD><?php
echo CHANGE_EMOTICON(BBCODE($comment['comment']));
?>
</TD>
</TR>
<TR>
<TD height="1" class="dotline"></TD>
</TR>
示例5: ThaiTimeConvert
<table width="<?php
echo $widthSUM;
?>
" border="0" cellspacing="0" cellpadding="0" height="3" >
</table>
<br>
<table width="<?php
echo $widthSUM;
?>
" border="0" cellspacing="0" cellpadding="0" height="3" >
<tr>
<td align="center"><img src="images/ip.gif"> <font color="#888888"><b><?php
echo _COUNT_START;
?>
<?php
echo ThaiTimeConvert("" . WEB_TIMESTART . "", "", "");
?>
</b>
</td>
</tr>
<script language="javascript">
<!--
var state = 'none';
function showhide(layer_ref) {
if (state == 'block') {
state = 'none';
}
else {
示例6: foreach
$count = 0;
$items = $db->fetchAll($query);
foreach ($items as $key => $item) {
if ($count == 0) {
echo "<TR>";
}
//ชื่อหมวดหมู่
$query = $db->select_query("SELECT category_name FROM " . TB_KNOWLEDGE_CAT . " WHERE id='" . $item['category'] . "' ");
$category = $db->fetch($query);
?>
<TD width="50%" valign=top>
<TABLE width="100%">
<TR>
<TD><FONT COLOR="#990000"><B>
<?php
echo ThaiTimeConvert($item['post_date'], "", "");
?>
: <?php
echo $category['category_name'];
?>
</B></FONT></TD>
</TR>
<TR><TD height="3" ></TD></TR>
<TR>
<TD>
<A HREF="?name=knowledge&file=readknowledge&id=<?php
echo $item['id'];
?>
" target="_blank">
<IMG SRC="knowledgeicon/<?php
echo $item['post_date'];
示例7: while
while ($arr['blog'] = $db->fetch($res['blog'])) {
if ($count == 0) {
echo "<TR>";
}
//ª×èÍËÁÇ´ËÁÙè
$res['category'] = $db->select_query("SELECT category_name FROM " . TB_BLOG_CAT . " WHERE id=" . $arr['blog']['category'] . " ");
$arr['category'] = $db->fetch($res['category']);
$ids = highlight("{$keyword}", '<span>' . $arr['blog']['id'] . '</span>');
$topics = highlight("{$keyword}", '<span>' . $arr['blog']['topic'] . '</span>');
$details = highlight("{$keyword}", '<span>' . $arr['blog']['headline'] . '</span>');
?>
<TD width="320" valign=top><TABLE width="320">
<TR>
<TD><FONT COLOR="#990000"><B>
<?php
echo ThaiTimeConvert($arr['blog']['post_date'], "", "");
?>
:
<?php
echo $arr['category']['category_name'];
?>
</B></FONT></TD>
</TR>
<TR>
<TD height="3" ></TD>
</TR>
<TR>
<TD width="320"><A HREF="?name=blog&file=readblog&id=<?php
echo $arr['blog']['id'];
?>
"> <IMG SRC="NewsIcon/<?php
示例8: ThaiTimeConvert
<font color="#006699"><b><?php
echo $arr['events']['detail'];
?>
</font>
<BR>
<?php
echo _DETAIL_PRIVIEW;
?>
<font color="#CC0000"><?php
echo $arr['events']['pageview'];
?>
<B></font><?php
echo _CAL_POSTED_DATE;
?>
<font color="#cc0000"></B><?php
echo ThaiTimeConvert($arr['events']['post_date'], "1", "");
?>
<?php
if ($admin_user) {
//Admin Login Show Icon
?>
<a href="?name=admin&file=editevent&id=<?php
echo $arr['events']['id'];
?>
"><img src="images/admin/edit.gif" border="0" alt="<?php
echo _FROM_IMG_EDIT;
?>
" ></a>
<a href="javascript:Confirm('?name=admin&file=delevent&id=<?php
echo $arr['events']['id'];
示例9: ThaiTimeConvert
echo $arr['ipblock']['post_date'];
?>
','<?php
echo _ADMIN_BUTTON_DEL_MESSAGE;
?>
');"><img src="images/admin/trash.gif" border="0" alt="<?php
echo _ADMIN_BUTTON_DEL;
?>
" ></a>
</td>
<td align="center" width="50"><?php
echo $arr['ipblock']['ip'];
?>
</td>
<td align="center" ><?php
echo ThaiTimeConvert($arr['ipblock']['post_date'], "", "1");
?>
</td>
<td valign="top" align="center" width="40"><input type="checkbox" name="list[]" value="<?php
echo $arr['ipblock']['id'];
?>
"></td>
</tr>
<?php
$count++;
}
?>
</table>
<div align="right">
示例10: while
$db->connectdb(DB_NAME, DB_USERNAME, DB_PASSWORD);
$res['cat_gallery'] = $db->select_query("SELECT * FROM " . TB_GALLERY . " WHERE category='" . $arr['category']['id'] . "' ORDER BY id DESC LIMIT 5 ");
$rows['cat_gallery'] = $db->rows($res['cat_gallery']);
if (!$rows['cat_gallery']) {
echo " " . _FROM_CAT_NO . "";
}
while ($arr['cat_gallery'] = $db->fetch($res['cat_gallery'])) {
?>
<IMG SRC="images/icon/suggest.gif" BORDER="0" ALIGN="absmiddle"> <B><A HREF="?name=gallery&file=readgal&id=<?php
echo $arr['cat_gallery']['id'];
?>
" target="_blank"><?php
echo $arr['cat_gallery']['pic'];
?>
</A></B> <?php
echo ThaiTimeConvert($arr['cat_gallery']['post_date'], "", "");
?>
<BR>
<?php
}
$db->closedb();
?>
</TD>
</TR>
<?php
}
?>
</TABLE>
</TD>
</TR>
</TBODY>
示例11: ThaiTimeConvert
echo "<td width=\"15%\"><CENTER>";
if ($WebBoard['is_member'] == 1) {
echo "<B><FONT COLOR=\"#FF0066\">" . $WebBoard['post_name'] . "</FONT></B> <IMG SRC=\"images/human.gif\" BORDER=\"0\" ALIGN=\"absmiddle\">";
} else {
echo "<B><FONT COLOR=\"#6600FF\">" . $WebBoard['post_name'] . "</FONT></B> ";
}
echo "<br><font size='1'>" . _WEBBOARD_DETAIL_POST . " " . ThaiTimeConvert($WebBoard['post_date'], "", "2") . "</font></CENTER></td>\n";
echo "<td width='5%' align='center'><FONT FACE=\"tahoma\" COLOR=\"#0099FF\">" . number_format($WebBoard['pageview']) . "</FONT></td>\n\t<td width='5%' align='center'><FONT FACE=\"tahoma\" COLOR=\"#808080\">" . number_format($SumComm) . "</FONT></td>\n";
// �ʴ����ͺ����ش
$res['ment'] = $db->select_query("SELECT * FROM " . TB_WEBBOARD_COMMENT . " WHERE topic_id=" . $WebBoard['id'] . " ORDER BY id DESC LIMIT 1 ");
$arr['ment'] = $db->fetch($res['ment']);
if ($arr['ment']['post_name']) {
if ($arr['ment']['is_member'] == 1) {
echo "<td width=\"19%\"><CENTER><B><FONT COLOR=#FF0033\"> " . $arr['ment']['post_name'] . "</B></FONT><IMG SRC=\"images/human.gif\" BORDER=\"0\" ALIGN=\"absmiddle\"><br><font size='1'>" . _WEBBOARD_DETAIL_POST . " " . ThaiTimeConvert($arr['ment']['post_date'], "", "2") . "</font></CENTER></td></tr>\n";
} else {
echo "<td width=\"19%\"><CENTER><B><FONT COLOR=#6600FF\"> " . $arr['ment']['post_name'] . "</B></FONT><br><font size='1'>" . _WEBBOARD_DETAIL_POST . " " . ThaiTimeConvert($arr['ment']['post_date'], "", "2") . "</font></CENTER></td></tr>\n";
}
} else {
echo "<td width=\"19%\"><CENTER><B></CENTER></td></tr>\n";
}
$count++;
}
$db->closedb();
?>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr ><td colspan="6" class="browse_page" width="500"><?php
page_navigator("webboard", "board", "" . $category . "&category=" . $category . "", $before_p, $plus_p, $total, $total_p, $chk_page);
?>
</td></tr>
示例12: stripslashes
$res['category'] = $db->select_query("SELECT * FROM " . TB_KNOWLEDGE_CAT . " WHERE id='" . $arr['pdf']['category'] . "' ");
$arr['category'] = $db->fetch($res['category']);
} else {
if ($mo == 'blog') {
$res['pdf'] = $db->select_query("SELECT * FROM " . TB_BLOG . " WHERE id='" . $_GET['id'] . "' ");
$arr['pdf'] = $db->fetch($res['pdf']);
$res['category'] = $db->select_query("SELECT * FROM " . TB_BLOG_CAT . " WHERE id='" . $arr['pdf']['category'] . "' ");
$arr['category'] = $db->fetch($res['category']);
}
}
}
$db->closedb();
$cat = '' . _PDF_CAT . ' : ' . $arr['category']['category_name'] . '<br>';
$titles = '' . _PDF_TOPIC . ' : ' . stripslashes(FixQuotes($arr['pdf']['topic'])) . '<br>';
$authors = '' . _FORM_MOD_POSTED . ' : ' . $arr['pdf']['posted'] . '<br>';
$da = ThaiTimeConvert($arr['pdf']['post_date'], "1", "");
$dates = '' . _FORM_MOD_POSTDATE . ' ' . $da . '<br>';
$view = '' . _DETAIL_PRIVIEW . ' : ' . $arr['pdf']['pageview'] . '<br>';
if ($arr['pdf']['pic'] == 1) {
if ($mo == 'blog') {
$imagex = '<img src=icon/' . $mo . '_' . $arr['pdf']['post_date'] . '_' . $arr['pdf']['posted'] . '.jpg><br>';
} else {
$imagex = '<img src=icon/' . $mo . '_' . $arr['pdf']['post_date'] . '.jpg><br>';
}
} else {
$imagex = '<img src=images/icon/' . $arr['category']['icon'] . '><br>';
}
$sum = '' . $imagex . '' . $cat . '' . $titles . '' . $authors . '' . $dates . '' . $view . '';
require_once 'includes/html2pdf/config/lang/eng.php';
require_once 'includes/html2pdf/tcpdf.php';
require_once 'includes/html2pdf/htmltoolkit.php';
示例13: NewsIcon
//กรณีแนบรูป
if ($WebBoard['picture']) {
echo "<IMG SRC=\"images/attach.gif\" BORDER=\"0\" ALIGN=\"absmiddle\"> ";
} else {
}
//กรณีกระทู้ใหม่
NewsIcon(TIMESTAMP, $WebBoard['post_date'], "images/icon_new.gif");
echo "<FONT FACE=\"tahoma\" COLOR=\"#808080\">(" . number_format($WebBoard['pageview']) . "/" . number_format($SumComm) . ")</FONT></td>\n";
echo "<td bgcolor=\"" . $ColorFill . "\" width=\"120\"><CENTER><B><FONT COLOR=\"#6600FF\">";
//กรณีสมาชิก
if ($WebBoard['is_member']) {
echo "<IMG SRC=\"images/human.gif\" BORDER=\"0\" ALIGN=\"absmiddle\"> <B><FONT COLOR=\"#FF0066\">";
} else {
}
echo "" . $WebBoard['post_name'] . "</FONT></B></CENTER></td>\n";
echo "<td bgcolor=\"" . $ColorFill . "\" width=\"120\"><CENTER><FONT COLOR=\"#339900\">" . ThaiTimeConvert($WebBoard['post_date'], "", "2") . "</FONT></CENTER></td>\n";
echo "<tr><td colspan=\"3\" height=1 class=\"dotline\"></td></tr>\n";
}
echo "</table>";
?>
<BR>
<table border="0" cellpadding="0" cellspacing="1" width="700" align=center>
<tr>
<td>
<?php
SplitPage($page, $totalpage, "?name=webboard&category=" . $cat_id . "");
echo $ShowSumPages;
echo "<BR>";
echo $ShowPages;
?>
</td>
示例14: ThaiTimeConvert
$ColorFill = ' onmouseover="this.style.backgroundColor=\'#FFF0DF\'" onmouseout="this.style.backgroundColor=\'#ffffff\'" ';
}
echo "<TR " . $ColorFill . ">";
//ª×èÍËÁÇ´ËÁÙè
$res['category'] = $db->select_query("SELECT category_name FROM " . TB_DOWNLOAD_CAT . " WHERE id='" . $arr['download']['category'] . "' ");
$arr['category'] = $db->fetch($res['category']);
$downloadid = $arr['download']['id'];
$ress['com'] = $db->select_query("SELECT *,count(id) as com FROM " . TB_DOWNLOAD_COMMENT . " WHERE id ='" . $downloadid . "' group by id");
$arrs['com'] = $db->fetch($ress['com']);
?>
<TD width="100%" align="left">
<IMG SRC="images/admin/open.gif" BORDER="0" ALIGN="absmiddle"><A HREF="?name=download&file=readdownload&id=<?php
echo $arr['download']['id'];
?>
" ><font color="#990066"><B>[ <?php
echo ThaiTimeConvert($arr['download']['post_date'], "", "");
?>
] </font><font color="#0066FF"><?php
echo $arr['download']['topic'];
?>
</A></font></B>
<?php
echo NewsIcon(TIMESTAMP, $arr['download']['post_date'], "images/icon_new.gif");
?>
(<?php
echo _FORM_MOD_READX;
?>
: <?php
echo $arr['download']['pageview'];
?>
/ <?php
示例15: toTis620
?>
</td>
<td><a href="<?php
echo $item['filepath'];
?>
" title="<?php
echo toTis620('คลิกเพื่อดาวโหลดไฟล์');
?>
"><?php
echo $item['filename'];
?>
</a></td>
<td align="center">
<?php
$time = strtotime($item['time']);
echo ThaiTimeConvert($time, false, 1);
?>
</td>
<td align="center">
<a href="index.php?name=subreport&action=delete&id=<?php
echo $item['id'];
?>
" title="<?php
echo toTis620('คลิกเพื่อลบ');
?>
" onclick="return confirm('<?php
echo toTis620('ยืนยันที่จะลบข้อมูล?');
?>
');"><img src="images/admin/trash.gif"></a>
</td>
</tr>