當前位置: 首頁>>代碼示例>>PHP>>正文


PHP global_common::formatDateVN方法代碼示例

本文整理匯總了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>
開發者ID:vietlethanh,項目名稱:timkm20130929,代碼行數:31,代碼來源:profile_article.php

示例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>
開發者ID:vietlethanh,項目名稱:KooKooBackEnd,代碼行數:31,代碼來源:admin_advertising.php

示例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"' : '';
開發者ID:vietlethanh,項目名稱:KooKooBackEnd,代碼行數:31,代碼來源:profile.php

示例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");
}
?>
開發者ID:vietlethanh,項目名稱:timkm20130929,代碼行數:31,代碼來源:admin_article.php

示例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>
開發者ID:vietlethanh,項目名稱:timkm20130929,代碼行數:31,代碼來源:post_article.php

示例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">
開發者ID:roni5,項目名稱:sela,代碼行數:31,代碼來源:profile_article.php


注:本文中的global_common::formatDateVN方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。