本文整理汇总了PHP中global_common::formatDateVN方法的典型用法代码示例。如果您正苦于以下问题:PHP global_common::formatDateVN方法的具体用法?PHP global_common::formatDateVN怎么用?PHP global_common::formatDateVN使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类global_common
的用法示例。
在下文中一共展示了global_common::formatDateVN方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<table class="table table-bordered table-hover article-profile">
<thead>
<tr>
<th class="span4">Tên khuyến mãi</th>
<th>Bắt đầu</th>
<th>Kết thúc</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
foreach ($expireArticles as $item) {
echo ' <tr>';
echo ' <td><a href="article_detail.php?aid=' . $item[global_mapping::ArticleID] . '" class="">' . $item[global_mapping::Title] . '</a></td>';
echo ' <td class="article-date">' . global_common::formatDateVN($item[global_mapping::StartDate]) . '</td>';
echo ' <td class="article-date">' . global_common::formatDateVN($item[global_mapping::EndDate]) . '</td>';
echo ' <td class="article-control">';
echo ' <a href="post_article.php?aid=' . $item[global_mapping::ArticleID] . '" class="btn btn-mini">Sửa</a>';
echo ' <a href="javascript:article.activeArticle(\'' . $item[global_mapping::ArticleID] . '\',0)" class="btn btn-mini">Xóa</a>';
echo ' </td>';
echo ' </tr>';
}
?>
</tbody>
</table>
</div>
<!-- BEGIN PAGINATION-->
<!--div class="row-fluid no-background no-display">
<div class="span12">
<div class="pagination pull-right margin-right">
<ul>
示例2:
echo $item[global_mapping::PartnerID];
echo '</td>';
echo '<td style="">';
echo $item[global_mapping::AdTypeID];
echo '</td>';
echo '<td style="">';
echo $item[global_mapping::Order];
echo '</td>';
echo '<td style="">';
echo '<a href="' . $item[global_mapping::ImageLink] . '" target="_blank"><img src= "' . $item[global_mapping::ImageLink] . '" width="50" height="50"></a>';
echo '</td>';
echo '<td>';
echo global_common::formatDateVN($item[global_mapping::StartDate]);
echo '</td>';
echo '<td>';
echo global_common::formatDateVN($item[global_mapping::EndDate]);
echo '</td>';
echo '<td style="padding:0;width:180px">';
echo '<a href="javascript:advertising.showPopupEdit(\'' . $item[global_mapping::AdvertisingID] . '\',\'modal-add\')" class="btn btn-mini">Edit</a> ';
if (!$item[global_mapping::IsDeleted]) {
echo '<a href="javascript:advertising.deleteRetailer(\'' . $item[global_mapping::AdvertisingName] . '\',\'' . $item[global_mapping::AdvertisingID] . '\',1)" class="btn btn-mini">Delete</a> ';
} else {
echo '<a href="javascript:advertising.deleteRetailer(\'' . $item[global_mapping::AdvertisingName] . '\',\'' . $item[global_mapping::AdvertisingID] . '\',0)" class="btn btn-mini">Restore</a>';
}
echo '</td>';
echo '</tr>';
}
echo '</table>';
}
?>
</div>
示例3:
" />
<div class="help-inline message"></div>
</div>
</div>
<div class="control-group">
<label class="control-label">
Ngày sinh *</label>
<div class="controls">
<div class="input-append date date-picker text " data-date="<?php
echo global_common::formatDateVN($currentUser[global_mapping::BirthDate]);
?>
"
data-date-format="dd/mm/yyyy" data-date-viewmode="days">
<input name="txtBirthDate" id="txtBirthDate" class="m-wrap m-ctrl-medium date-picker" size="16" type="text" disabled
value="<?php
echo global_common::formatDateVN($currentUser[global_mapping::BirthDate]);
?>
" placeholder="dd/mm/yyyy" />
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
<div class="help-inline message"></div>
</div>
</div>
<div class="control-group">
<label class="control-label">
Giới tính *</label>
<div class="controls">
<label class="radio " style="">
<input type="radio" name="sex" id="rdMale" value="1" style="margin-left:0 !important;margin-right: 3px;"
<?php
echo $currentUser[global_mapping::Sex] ? 'checked="checked"' : '';
示例4:
echo $item[global_mapping::CompanyName];
echo '</td>';
echo '<td style="">';
echo $item[global_mapping::CreatedBy][global_mapping::UserName];
echo '</td>';
echo '<td>';
echo global_common::formatDateVN($item[global_mapping::StartDate]);
echo '</td>';
echo '<td>';
echo global_common::formatDateVN($item[global_mapping::EndDate]);
echo '</td>';
echo '<td>';
echo global_common::formatDateVN($item[global_mapping::CreatedDate]);
echo '</td>';
echo '<td>';
echo global_common::formatDateVN($item[global_mapping::ModifiedDate]);
echo '</td>';
echo '<td style="padding:0;width:180px">';
echo '<a href="../article_detail.php?aid=' . $item[global_mapping::ArticleID] . '" target="_blank" class="btn btn-mini"> View</a> ';
if (!$item[global_mapping::Status]) {
echo '<a href="javascript:article.activeArticle(\'' . $item[global_mapping::ArticleID] . '\',1)" class="btn btn-mini">Active</a> ';
} else {
echo '<a href="javascript:article.activeArticle(\'' . $item[global_mapping::ArticleID] . '\',0)" class="btn btn-mini">Deactive</a>';
}
echo '</td>';
echo '</tr>';
}
echo '</table>';
echo global_common::getPagingHTMLByNum($page, Model_Article::NUM_PER_PAGE, $total, "article.SearchAdmin");
}
?>
示例5:
" readonly="readonly" data-date-format="dd/mm/yyyy" data-date-viewmode="days">
<input name="txtStartDate" id="txtStartDate" class="m-wrap m-ctrl-medium date-picker"
size="16" type="text" placeholder="dd/mm/yyyy" value="<?php
echo $intMode ? global_common::formatDateVN($article[global_mapping::StartDate]) : '';
?>
"/>
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
<label class="m-wrap inline">Đến </label>
<div class="input-append date date-picker text " data-date="<?php
echo $intMode ? global_common::formatDateVN($article[global_mapping::EndDate]) : '';
?>
" data-date-format="dd/mm/yyyy" data-date-viewmode="days">
<input name="txtEndDate" id="txtEndDate" class="m-wrap m-ctrl-medium date-picker" size="16"
type="text" placeholder="dd/mm/yyyy" value="<?php
echo $intMode ? global_common::formatDateVN($article[global_mapping::EndDate]) : '';
?>
"/>
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
<div class="help-inline message"></div>
</div>
</div>
<div class="control-group">
<label class="control-label">Happy days</label>
<div class="controls">
<select class="span3 chosen" name="cmHappyDays" id="cmHappyDays" data-placeholder="Chọn ngày trong tuần" multiple="multiple" tabindex="1">
<option value="Monday">Monday</option>
<option value="Tuesday">Tuesday</option>
<option value="Wednesday">Wednesday</option>
<option value="Thursday">Thursday</option>
示例6: foreach
<table class="table table-bordered table-hover">
<thead>
<tr>
<th class="span4">Tên khuyến mãi</th>
<th>Bắt đầu</th>
<th>Kết thúc</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
foreach ($articles as $item) {
echo ' <tr>';
echo ' <td>' . $item[global_mapping::Title] . '</td>';
echo ' <td>' . global_common::formatDateVN($item[global_mapping::StartDate]) . '</td>';
echo ' <td>' . global_common::formatDateVN($item[global_mapping::EndDate]) . '</td>';
echo ' <td>';
echo ' <a href="article_detail.php?aid=' . $item[global_mapping::ArticleID] . '" class="btn btn-mini purple">Xem</a>';
echo ' <a href="post_article.php?aid=' . $item[global_mapping::ArticleID] . '" class="btn btn-mini">Sửa</a>';
echo ' <a href="javascript:void(0)" class="btn btn-mini">Ẩn tin</a>';
echo ' <a href="javascript:void(0)" class="btn btn-mini">Xóa</a>';
echo ' </td>';
echo ' </tr>';
}
?>
</tbody>
</table>
</div>
<!-- BEGIN PAGINATION-->
<div class="row-fluid no-background no-display">
<div class="span12">