当前位置: 首页>>代码示例>>PHP>>正文


PHP Date::full_date方法代码示例

本文整理汇总了PHP中Date::full_date方法的典型用法代码示例。如果您正苦于以下问题:PHP Date::full_date方法的具体用法?PHP Date::full_date怎么用?PHP Date::full_date使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Date的用法示例。


在下文中一共展示了Date::full_date方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

    ?>
</h1>
    <?php 
}
?>
    <?php 
foreach ($vacancies as $v) {
    ?>
        <div class="content-group">
            <div class="header with-date">
                <div class="title"><?php 
    echo HTML::anchor(Model_Service::$type_urls[$v->service->type] . '/' . $v->service->id . '/vacancies/' . $v->id, $v->title);
    ?>
</div>
                <div class="date"><?php 
    echo Date::full_date($v->date);
    ?>
</div>
            </div>

            <div class="body">
                <div class="text">
                    <?php 
    echo Text::limit_words(strip_tags($v->text), 100);
    ?>
                    <?php 
    echo HTML::anchor(Model_Service::$type_urls[$v->service->type] . '/' . $v->service->id . '/vacancies/' . $v->id, 'Подробнее');
    ?>
                </div>
            </div>
        </div>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:result.php

示例2: foreach

<p style="font-size: 20px; color: #8d8d8d; margin: 10px 0 0;">Найдено Акций <?php 
echo $stocks_count;
?>
</p>

<?php 
foreach ($stock->find_all() as $s) {
    ?>
    <div class="content-group">
        <div class="header with-date">
            <div class="title"><?php 
    echo HTML::anchor('stocks/' . $s->id, 'Акция автосервиса ' . $s->service->name);
    ?>
</div>
            <div class="date"><?php 
    echo Date::full_date($s->date);
    ?>
</div>
        </div>
        <div class="body">
            <div class="text">
                <?php 
    echo Text::limit_words(strip_tags($s->text), 100);
    ?>
                <?php 
    echo HTML::anchor('stocks/' . $s->id, 'Подробнее');
    ?>
            </div>
        </div>
    </div>
<?php 
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:stock.php

示例3: count

        echo '<a href="#services_modal_' . $c->id . '" data-toggle="modal" rel="modal">' . count($services) . '</a>';
    } else {
        echo 0;
    }
    ?>

            </td>
            <td>
                <div class="btn-group">
                    <a href="#" class="btn dropdown-toggle" data-toggle="dropdown">Даты редактирования <i class="caret"></i></a>
                    <ul class="dropdown-menu">
                        <?php 
    foreach ($c->contents->find_all() as $page) {
        ?>
                            <li><?php 
        echo HTML::anchor('#' . $page->id, $page->date_edited != '0000-00-00 00:00:00' ? Date::full_date($page->date_edited, TRUE) : 'ни разу', array('title' => $page->city->name));
        ?>
</li>
                        <?php 
    }
    ?>
                    </ul>

                </div>
            </td>
            <td>
                <div class="btn-group">
                    <?php 
    echo HTML::anchor('admin/item/carbrand/edit/' . $c->id, '<i class="icon-pencil"></i>', array('class' => 'btn', 'style' => 'z-index: 1;')) . HTML::anchor('admin/item/carbrand/delete/' . $c->id, '<i class="icon-remove"></i>', array('class' => 'btn', 'style' => 'z-index: 1;'));
    ?>
                    <div class="btn-group">
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:all.php

示例4: defined

<?php

defined('SYSPATH') or die('No direct script access.');
?>
<div class="content-group">
    <div class="header with-date">
        <div class="title"><h1><?php 
echo HTML::anchor('services/' . $stock->service->id, $stock->service->name, array('style' => 'color: #BD2228;'));
?>
</h1></div>
        <div class="date"><?php 
echo Date::full_date($stock->date);
?>
</div>
    </div>
    <div class="body">
        <div class="text"><?php 
echo $stock->text;
?>
</div>
    </div>
</div>


开发者ID:Alexander711,项目名称:naav1,代码行数:22,代码来源:view.php

示例5: foreach

    ?>

<div class="grid-row">
    <?php 
    $i = 1;
    foreach ($news as $n) {
        ?>
		<div class="content-group grid-3">
			<div class="grid-content-block">
				<div class="header with-date">
					<div class="title"><?php 
        echo HTML::anchor('news/world/' . $n->id, $n->title);
        ?>
</div>
					<div class="date"><?php 
        echo Date::full_date($n->date);
        ?>
</div>
				</div>
				<div class="body">
					<noindex>
						<div class="text">
							<?php 
        //= Text::limit_words(strip_tags($n->text), 30);
        ?>
							<?php 
        //= HTML::anchor('news/world/'.$n->id, 'Подробнее')
        ?>
							<?php 
        echo Text::short_story($n->text, 200);
        ?>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:all.php

示例6: foreach

<h1 style="margin-bottom: 20px;">Статьи</h1>

<div class="grid-row">
	<?php 
$i = 1;
foreach ($article->find_all() as $a) {
    ?>
		<div class="content-group grid-3">
			<div class="grid-content-block">
				<div class="header with-date">
					<div class="title"><?php 
    echo HTML::anchor('articles/' . $a->id, $a->title);
    ?>
</div>
					<div class="date"><?php 
    echo Date::full_date($a->date_create);
    ?>
</div>
				</div>
				<div class="body">
					<noindex>
						<div class="text">
							<?php 
    //= Text::limit_words(strip_tags($a->text, '<img>'), 70);
    ?>
							<?php 
    //= HTML::anchor('articles/'.$a->id, 'Подробнее')
    ?>
							<?php 
    echo Text::short_story($a->text, 170);
    ?>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:all.php

示例7: foreach

                <div class="title"><?php 
    echo HTML::anchor('articles', 'Статьи');
    ?>
</div>
                <div class="body">
                    <?php 
    foreach ($articles->where('active', '=', 1)->order_by('date_create', 'DESC')->limit(5)->find_all() as $article) {
        ?>
                        <div class="content">
                            <div class="title">
                                <div class="company"><?php 
        echo HTML::anchor('articles/' . $article->id, Text::limit_chars(strip_tags($article->title), 28));
        ?>
</div>
                                <div class="date"><?php 
        echo Date::full_date($article->date_create, FALSE);
        ?>
</div>
                            </div>
                            <div class="text">
                                <?php 
        echo Text::limit_words(strip_tags($article->text), 10) . '  ' . HTML::anchor('articles/' . $article->id, 'Подробнее');
        ?>
                            </div>
                        </div>
                    <?php 
    }
    ?>
                    <div class="buttons">
                        <?php 
    echo HTML::anchor('articles', '<span>Все статьи</span>', array('class' => 'open-other-contents', 'rel' => 'nofollow'));
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:main.php

示例8: defined

<?php

defined('SYSPATH') or die('No direct script access.');
?>
<div class="content-group">
    <div class="header with-date">
        <div class="title"><h1><?php 
echo HTML::anchor('services/' . $news->service->id, $news->service->name);
?>
 | <?php 
echo $news->title;
?>
</h1></div>
        <div class="date"><?php 
echo Date::full_date($news->date_create);
?>
</div>
    </div>
    <div class="body">
        <div class="text">
            <?php 
if ($news->image and file_exists($news->image)) {
    echo HTML::image($news->image, array('align' => 'left', 'style' => 'margin-top: 4px; margin-right: 6px;'));
}
echo $news->text;
?>
        </div>
    </div>
</div>
开发者ID:Alexander711,项目名称:naav1,代码行数:29,代码来源:view.php


注:本文中的Date::full_date方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。