本文整理汇总了PHP中mysql_to_th函数的典型用法代码示例。如果您正苦于以下问题:PHP mysql_to_th函数的具体用法?PHP mysql_to_th怎么用?PHP mysql_to_th使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mysql_to_th函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
if (empty($variable->all)) {
echo '<tr><td colspan="5" style="text-align:center; color:#aaa; line-height:30px;">ไม่พบข้อมูล</td></tr>';
}
foreach ($variable as $item) {
?>
<tr>
<td><?php
echo $item->type;
?>
</td>
<td><?php
echo $item->detail;
?>
</td>
<td><?php
echo mysql_to_th($item->created, "F", TRUE);
?>
</td>
<td><?php
echo $item->user->firstname . " " . $item->user->lastname;
?>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<td colspan="5" ><?php
示例2: mysql_to_th
</script>
<div id="inbox">
<h1>อ่านข้อความ</h1>
<div class="blogrow">
<img class="avatar" src="uploads/users/<?php
echo $from_user->profile->avatar;
?>
" width="48" height="48">
<div class="create"><B><a href="users/profile/<?php
echo $from_user->id;
?>
"><?php
echo $from_user->display;
?>
</a></B> <?php
echo mysql_to_th($pm->created, 'S', TRUE);
?>
<div style="position:absolute; top:53px; right:15px;"><a href="pms/delete/<?php
echo $pm->id;
?>
">ลบ</a> | <a id="rep" href="#">ตอบกลับ</a></div></div>
<div>เรื่อง : <?php
echo $pm->subject;
?>
</div>
<div style="margin:0 0 0 60px;"><?php
echo $pm->message;
?>
</div>
<div class="clear"></div>
</div>
示例3: mysql_to_th
<td><?php
echo mysql_to_th($meeting->start_date, 'F');
?>
</td>
</tr>
<tr>
<th>วันที่สิ้นสุดประชุม</th>
<td><?php
echo mysql_to_th($meeting->end_date, 'F');
?>
</td>
</tr>
<tr>
<th>ปิดระบบลงทะเบียน</th>
<td><?php
echo mysql_to_th($meeting->close_date, 'F');
?>
</td>
</tr>
<tr>
<th style="vertical-align:top; padding:8px 5px 5px;">เอกสาร</th>
<td>
<ul>
<?php
foreach ($meeting->meeting_document->order_by('id', 'asc')->get() as $doc) {
?>
<li><a href="meetings/download/<?php
echo $doc->id;
?>
"><span class="icon icon-page-save"></span> <?php
echo $doc->name;
示例4: mysql_to_th
<html xmlns="http://www.w3.org/1999/xhtml">
<head><base href="http://km.ddc.moph.go.th/conference/" />
<meta charset="UTF-8">
<title>Siteadmin</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
</head>
<body>
<div style="text-align:center;">
<h4>รายงานรายชื่อบุคคลากรสาธารณสุขที่ลงทะเบียนเข้าร่วมงาน
<br>สัมมนาวิชาการป้องกันควบคุมโรคแห่งชาติ
</h4>
</div>
<div style="text-align:right;">ข้อมูล ณ วันที่ <?php
echo mysql_to_th(date("Y-m-d H:i:s"));
?>
</div>
<hr>
<?php
$no = 0;
foreach ($result as $key => $value) {
$no++;
?>
<fieldset style="">
<legend style="font-size:16px;margin-bottom:15px;padding-left:15px;">
</legend>
<div class="col-xs-5" style="padding-top:0px;"><?php
echo $value->prefix_code . $value->sortorder;
?>
::: <?php
示例5: foreach
</ul>
<?php
foreach ($categories as $key => $category) {
?>
<div id="tabs-<?php
echo $key + 1;
?>
">
<?php
foreach ($category->article->order_by('id', 'desc')->limit(5)->get() as $article) {
?>
<div class="box">
<a href="#" class="thumb"><img src="themes/thaigcd/photo/thumb1.jpg" width="77" height="64" /></a>
<div class="box_info">
<span><?php
echo mysql_to_th($article->created);
?>
</span>
<a href="#"><h3><?php
echo lang_get($article->title, 'th');
?>
</h3></a>
<p><?php
echo lang_get($article->intro, 'th');
?>
</p>
</div>
</div>
<div class="clear"></div>
<?php
}
示例6: mysql_to_th
<img src="uploads/users/thumbs50x50/<?php
echo $comment->user->profile->avatar;
?>
" />
<?php
}
?>
<p>#<?php
echo $key + 1;
?>
By <span class="display"><?php
echo $comment->user_id ? $comment->user->display : $comment->name . '[Guest]';
?>
</span></p>
<p>@<?php
echo mysql_to_th($comment->created);
?>
</p>
</div>
<div class="comment">
<p><?php
echo $comment->comment;
?>
</p>
</div>
<div class="option">
<?php
if ($comment->user_id == $this->session->userdata('id')) {
?>
<a href="informations/commentdel/<?php
示例7: lang_decode
<div class="col-md-7">
<?foreach($rs as $row):?>
<div class="col-left1">
<a href="talks/view/<?php
echo $row->id;
?>
"><span class="title-page2"><?php
echo lang_decode($row->title);
?>
</span></a>
<div class="by">By <span class="text-by"><?php
echo lang_decode($row->category->name);
?>
</span> - <?php
echo mysql_to_th($row->created);
?>
</div>
<div style="overflow: hidden; height:180px;"><?php
echo strip_tags(lang_decode($row->detail), '<br>');
?>
</div><br>
<a href="talks/view/<?php
echo $row->id;
?>
"><?php
echo lang("view_all");
?>
</a>
<div class="by" style="margin-top:40px;"> </div>
</div>
示例8: foreach
foreach ($notices as $notice) {
?>
<li>
<a class="thumb" href="notices/view/<?php
echo $notice->id;
?>
" target="_self">
<img class="pull-left" width="77" height="64" src="<?php
echo is_file('uploads/notice/thumbnail/' . $notice->image) ? 'uploads/notice/thumbnail/' . $notice->image : 'themes/thaigcd/photo/nophoto.gif';
?>
" alt="<?php
echo lang_decode($notice->title);
?>
" style="margin-right:5px;">
<span class="pull-left" style="margin-top:10px;"><span class="date"><?php
echo mysql_to_th($notice->start_date, 'S', false);
?>
</span><br>
<?php
echo lang_decode($notice->title);
?>
</span>
</a>
<br clear="all">
</li>
<?php
}
?>
</ul>
<a class="pull-right" href="notices">ดูทั้งหมด</a>
<br clear="all">
示例9: mysql_to_th
<table class="tbnotify">
<tbody>
<tr><th colspan="2">ร่วมสังเกตการณ์เปิดซองสอบราคา</th></tr>
<tr><td width="24%"><strong>ยื่นซองสอบราคา :</strong></td><td width="76%"><?php
echo mysql_to_th($notice->start_notice, 'F');
?>
- <?php
echo mysql_to_th($notice->end_notice, 'F');
?>
</td></tr>
<tr><td><strong>วันเปิดซอง :</strong></td><td><?php
echo mysql_to_th($notice->open_date, 'F');
?>
</td></tr>
<tr><td><strong>ร่วมสังเกตการณ์ :</strong></td><td><?php
echo mysql_to_th($notice->observe_date, 'F');
?>
</td></tr>
<tr>
<td><strong>สถานที่ :</strong></td>
<td><?php
echo $notice->place;
?>
</td>
</tr>
<tr>
<td><strong>หน่วยงาน : </strong></td>
<td><?php
echo $notice->dept;
?>
</td>
示例10: mysql_to_th
echo $user->id;
?>
" target="_blank"><?php
echo $user->profile->first_name . ' ' . $user->profile->last_name;
?>
</a></td>
<td><?php
echo $user->username;
?>
</td>
<td><?php
echo $user->level->level;
?>
</td>
<td><?php
echo mysql_to_th($user->created);
?>
</td>
<td>
<a class="btn" href="users/admin/users/form/<?php
echo $user->id;
?>
" >แก้ไข</a>
<a class="btn" href="users/admin/users/delete/<?php
echo $user->id;
?>
" onclick="return confirm('<?php
echo lang('notice_confirm_delete');
?>
')">ลบ</a>
</td>
示例11: mysql_to_th
<img src="http://intranet.m-society.go.th/upload/newsletters/<?php
echo $row['img_title'];
?>
" width="158" height="110" class="img-pr-news">
<?php
}
?>
</a>
</div>
<div class="media-body">
<h4 class="media-heading"><?php
echo $row['title'];
?>
</h4>
<span><?php
echo mysql_to_th($row['create_date']);
?>
</span>
</div>
</div>
<?php
}
?>
<br clear="all">
<?php
//echo $rs->pagination();
?>
</div>
示例12: if
<?php if($webboard_quizs->group_id != 0):?>
<img src="themes/gcdnew/images/ico_lock.png" alt="กระทู้เฉพาะกลุ่ม" title="<?php echo lang_decode($webboard_quiz->group->name,'th')?>" height="24" width="24">
<?php else:?>
<?php if($webboard_quizs->webboard_answer->result_count() > 15):?>
<img src="themes/gcdnew/images/ico_hit.png" alt="กระทู้น่าสนใจ" title="กระทู้น่าสนใจ">
<?php else:?>
<?php if($webboard_quizs->type == "normal"):?>
<img src="themes/gcdnew/images/ico_regular.png" alt="กระทู้ปกติ" title="กระทู้ปกติ" height="24" width="24">
<?php elseif($webboard_quizs->type == "vote"):?>
<img src="themes/gcdnew/images/ico_pollboard.png" alt="โพล" title="โพล" height="24" width="24">
<?php endif;?>
<?php endif;?>
<?php endif;?>
<br><img src="themes/gcdnew/images/ico_time.png" style="margin-bottom: -2px;" height="12" width="12"> <span class="f10"><?php echo mysql_to_th($webboard_ans->created,'S',TRUE)?> <?php if($webboard_quizs->group_id != 0):?>(<?php echo lang_decode($webboard_quizs->group->name,'th')?>)<?php endif;?></span>
<div class="boxrequestdel"><img src="themes/gcdnew/images/ico_deletepost.gif" height="11" width="11"> <a rel="lightbox" href="webboards/relate/<?php echo $webboard_quizs->id?>/<?php echo $webboard_ans->id ?>?iframe=true&width=350&height=200" class="link_prev">แจ้งลบความคิดเห็นนี้</a> | <img src="themes/gcdnew/images/ico_refpost.gif" height="11" width="11"> <a href="webboards/reply/<?php echo $webboard_quizs->id?>/<?php echo $webboard_ans->id?>/quote" class="link_prev">อ้างถึงข้อความนี้</a></div>
</div>
<div class="post">
<?php if(is_owner($webboard_ans->user_id)):?>
<div style="float:right;"><a href="webboards/reply/<?php echo $webboard_quizs->id?>/<?php echo $webboard_ans->id?>/edit">แก้ไข</a> | <a href="webboards/delete_answer/<?php echo $webboard_ans->id?>" onclick="return confirm('ต้องการลบความเห็นนี้?')">ลบ</a></div>
<?php endif;?>
<?php echo censor(link_filter($webboard_ans->detail))?>
<?php if($webboard_ans->user->profile->signature != ""):?>
<div>
<img src="themes/gcdnew/images/sigline.gif" style="margin:5px 0; display:block;">
<?php echo $webboard_ans->user->profile->signature?>
</div>
<?php endif;?>
示例13: lang_decode
" class="topicpost"><?php
echo lang_decode($category->name, 'th');
?>
</a><br><?php
echo $category->description;
?>
</td>
<td width="9%"><?php
echo $category->webboard_quiz->result_count();
?>
กระทู้<br><?php
echo $category->webboard_answer->result_count();
?>
ตอบ</td>
<td width="18%">กระทู้ล่าสุด <br><span class="f10"><?php
echo mysql_to_th($category->webboard_quiz->order_by("id", "desc")->limit(1)->get()->created, 'S', TRUE);
?>
</span><br>โดย <a href="users/profile/<?php
echo $category->webboard_quiz->user->id;
?>
" class="name"><?php
echo $category->webboard_quiz->user->display;
?>
</a></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
示例14: foreach
<?php
echo $user->email;
?>
<div class="paddtop20bot20"><input name="" class="btn_toboss" type="button" rel="lightbox" href="executives/contact/13?iframe=true&width=455&height=450"></div>
</div>
</div><!--box-->
<div class="clear"></div>
<?php
echo $user->executive->pagination();
?>
<?php
foreach ($user->executive as $executive) {
?>
<div class="box-executive-list">
<span><?php
echo mysql_to_th($executive->start_date);
?>
</span>
<a href="executives/view/<?php
echo $executive->id;
?>
"><h3><?php
echo lang_decode($executive->title);
?>
</h3></a>
<?php
echo lang_decode($executive->intro);
?>
</div>
<?php
}
示例15: mysql_to_th
?>
</td>
</tr>
<tr class="type2" style="display:none;">
<th>เข้าพักวันที่</th>
<td>
<?php
echo mysql_to_th($question->check_in, 'F');
?>
</td>
</tr>
<tr class="type2" style="display:none;">
<th>ออกจากที่พักวันที่</th>
<td>
<?php
echo mysql_to_th($question->check_out, 'F');
?>
</td>
</tr>
<tr class="type2" style="display:none;">
<th style="vertical-align:top; padding:8px 5px 5px;">ห้องพัก</th>
<td>
<?php
echo $room_type[$question->room_type];
?>
<?php
if ($question->r_status == 'confirm' && $question->room_type == 3) {
?>
<span class="icon icon-tick"></span>
<?php
}