本文整理汇总了PHP中Filter::dodate方法的典型用法代码示例。如果您正苦于以下问题:PHP Filter::dodate方法的具体用法?PHP Filter::dodate怎么用?PHP Filter::dodate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Filter
的用法示例。
在下文中一共展示了Filter::dodate方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<br />
<?php
echo $usr->country;
?>
</p></td>
</tr>
<tr>
<td valign="top" style="width:60%"><br /></td>
<td valign="top" style="width:20%">Amount Due:<br />
Due Date:</td>
<td valign="top" style="width:20%"><?php
echo Registry::get("Core")->formatMoney($row->total);
?>
<br />
<?php
echo Filter::dodate("short_date", $row->date);
?>
</td>
</tr>
</table>
<div style="height:20px"></div>
<table class="inventory">
<thead>
<tr>
<th><span>Invoice Items</span></th>
<th><span>Total</span></th>
</tr>
</thead>
<tbody>
<tr>
<td><span><?php
示例2: cleanOut
if (!$user->logged_in) {
?>
<a href="register.php"><?php
echo Core::$word->UA_REGISTER;
?>
</a>
<?php
}
?>
</nav>
</div>
</div>
</header>
<?php
if ($news and !$user->logged_in) {
?>
<div class="columns">
<div class="screen-60 tablet-90 phone-100 push-center">
<div id="news"><?php
echo Filter::dodate("short_date", $news->created) . ' <strong>' . $news->title . '</strong>';
?>
<?php
echo cleanOut($news->body);
?>
</div>
</div>
</div>
<?php
}
?>
</div>
示例3: strtotime
<td><a href="index.php?do=users&action=edit&id=<?php
echo $row->user_id;
?>
"><?php
echo $row->username;
?>
</a></td>
<td><?php
echo $core->formatMoney($row->rate_amount);
?>
</td>
<td data-sort-value="<?php
echo strtotime($row->created);
?>
"><?php
echo Filter::dodate("short_date", $row->created);
?>
</td>
<td><?php
echo $row->pp;
?>
</td>
<td><?php
if ($row->status == 1) {
?>
<i class="circular inverted black icon check"></i>
<?php
} else {
?>
<i class="circular inverted black icon time"></i>
<?php
示例4: strtotime
<div class="wojo header"><img src="../uploads/<?php
echo $row->avatar ? $row->avatar : "blank.png";
?>
" alt="" class="wojo circular small image">
<div class="item"><a href="index.php?do=users&action=edit&id=<?php
echo $row->id;
?>
"><?php
echo $row->name;
?>
</a></div>
<?php
echo Core::$word->UR_LASTLOGIN;
?>
: <?php
echo strtotime($row->lastlogin) === false ? "never" : Filter::dodate("long_date", $row->lastlogin);
?>
</div>
<div class="wojo project list">
<div class="content">
<div class="header"><?php
echo Core::$word->USERNAME;
?>
:</div>
<div class="data"><?php
echo $row->username;
?>
</div>
</div>
<div class="content">
<div class="header"><?php
示例5:
<input name="lastip" title="<?php
echo Core::$word->UR_LASTLOGIN_IP;
?>
" type="text" disabled value="<?php
echo $row->lastip;
?>
" readonly>
</div>
</div>
<div class="two fields">
<div class="field disabled">
<input name="created" type="text" title="<?php
echo Core::$word->UR_DATE_REGGED;
?>
" disabled value="<?php
echo Filter::dodate("long_date", $row->created);
?>
" readonly>
</div>
<div class="field">
<label><?php
echo Core::$word->UR_IS_NEWSLETTER;
?>
</label>
<div class="inline-group">
<label class="radio">
<input type="radio" name="newsletter" value="1" <?php
getChecked($row->newsletter, 1);
?>
>
<i></i><?php
示例6: foreach
<tr>
<td>TXN</td>
<td>' . Core::$word->MM_TTITLE . '</td>
<td>' . Core::$word->USERNAME . '</td>
<td>' . Core::$word->TX_AMOUNT . '</td>
<td>' . Core::$word->CREATED . '</td>
<td>' . Core::$word->TX_PP . '</td>
<td>IP</td>
</tr>';
foreach ($result as $v) {
print '<tr>
<td>' . $v->txn_id . '</td>
<td>' . $v->title . '</td>
<td>' . $v->username . '</td>
<td>' . $v->rate_amount . '</td>
<td>' . Filter::dodate("long_date", $v->date) . '</td>
<td>' . $v->pp . '</td>
<td>' . $v->ip . '</td>
</tr>';
}
print '</table>';
exit;
}
/* == Page Builder == */
if (isset($_POST['processBuilder'])) {
Membership::processBuilder();
}
/* == Restore SQL Backup == */
if (isset($_POST['restoreBackup'])) {
require_once BASEPATH . "lib/class_dbtools.php";
Registry::set('dbTools', new dbTools());