本文整理汇总了PHP中CDate::dateToString方法的典型用法代码示例。如果您正苦于以下问题:PHP CDate::dateToString方法的具体用法?PHP CDate::dateToString怎么用?PHP CDate::dateToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDate
的用法示例。
在下文中一共展示了CDate::dateToString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
if($id_galerie_courant == 0) {
$sql = "SELECT id FROM galerie WHERE etat = 1 AND idpage = " . $id_page_courant . " ORDER BY rang LIMIT 1";
$id_galerie_courant = CBdd::select_one($sql, 'id');
}
?>
<div class="bloc_central gallery">
<?php
if ($nb_galerie > 0) {
$sql = "SELECT * FROM galerie WHERE id = " . $id_galerie_courant;
$gal = CBdd::select_row($sql);
?>
<h2 class="diaporama-title"><?php echo $gal['nom'];?></h2>
<p class="date"><?php echo CDate::dateToString(strtotime($gal['date']), $zLangue); ?></p>
<br />
<link type="text/css" rel="stylesheet" href="/userfiles/template/default/css/gallery.css" />
<script type="text/javascript" src="/plug/panther/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/plug/panther/js/jquery.timers.js"></script>
<script type="text/javascript">
$(function () {
$('#panel > img:first').css ({'display': 'block'});
});
</script>
<div id="panel">
<?php
if ($gal['etat_diaporama'] == 1) {
$sql = "SELECT * FROM image WHERE etat = 1 AND idgal = " . $id_galerie_courant . " ORDER BY rang";
$r_img = CBdd::select($sql);