本文整理汇总了PHP中Func::dateToString方法的典型用法代码示例。如果您正苦于以下问题:PHP Func::dateToString方法的具体用法?PHP Func::dateToString怎么用?PHP Func::dateToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Func
的用法示例。
在下文中一共展示了Func::dateToString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _t
}
} else {
?>
<li class="empty"><?php echo _t('수집된 글이 없습니다.');?></span>
<?php
}
if($is_admin) {
$feedItemCount = FeedItem::getFeedItemCount('WHERE i.visibility = "y"');
$feedItemUpdate = Feed::getFeedLastUpdate('WHERE i.visibility = "y"');
} else {
$feedItemCount = FeedItem::getFeedItemCount('WHERE i.visibility = "y" AND i.feed IN ('.implode(',',$feedIds).')');
$feedItemUpdate = Feed::getFeedLastUpdate('WHERE i.visibility = "y" AND i.feed IN ('.implode(',',$feedIds).')');
}
if(!empty($feedItemUpdate)) {
$feedItemUpdateText = Func::dateToString($feedItemUpdate);
} else {
$feedItemUpdateText = _t('업데이트 없음');
}
?>
</ul>
</div>
<div class="information">
<span class="name"><?php echo _t("전체글");?></span> <span class="sep">|</span> <span class="count"><?php echo $feedItemCount;?></span>개 <span class="name"><?php echo _t('마지막 업데이트');?></span> <span class="sep">|</span> <span class="date"><?php echo empty($feedItemUpdate)?'':date('y.m.d H:i:s', $feedItemUpdate);?> (<?php echo $feedItemUpdateText;?>)</span>
</div>
</div>
<!-- 최근 등록된 블로그.. -->
<?php
if($is_admin) {
$feeds = Feed::getRecentFeeds(10);
$feedCount = Feed::getFeedCount('WHERE i.visibility="y"');
示例2: array
array('title'=>_t('최근 업데이트'),'class'=>'bloglist_update','width'=>'360px'),
array('title'=>_t('수집'),'class'=>'bloglist_count','width'=>'60px'),
array('title'=>_t('실행'),'class'=>'bloglist_execute','width'=>'auto'));
$datas = array();
$group_names = array();
$group_names[0] = '';
foreach($groups as $group) {
$group_names[$group['id']] = $group['name'];
}
if(count($feeds)>0) {
foreach($feeds as $feed) {
$data = array();
$stringDate = Func::dateToString($feed['lastUpdate']);
$lastPost = Feed::getLatestPost($feed['id']);
$isNew = Func::isNew($feed['created'],1);
$noVerifier = Validator::getBool($config->useVerifier) && !Validator::getBool($feed['isVerified']) && ($feed['owner'] != 1);
$data['id'] = 'list_item_'.$feed['id'];
$data['class'] = ($feed['visibility']=='n'?'list_item_hide':'').($feed['id']==$read?' list_item_select':'').($noVerifier?' no_verifier':'');
$data['datas'] = array();
// 블로그 등록날짜
array_push($data['datas'], array('class'=>'bloglist_date','data'=> $noVerifier ? _t('미인증') : date('y.m.d H:i:s', $feed['created']) ));
array_push($data['datas'], array('class'=>'bloglist_group','data'=> empty($group_names[$feed['group']])?'<span class="empty">'._t('그룹없음').'</span>':UTF8::lessen($group_names[$feed['group']],10) ));
// 블로그 제목
ob_start();
示例3: getNoticePage
//.........这里部分代码省略.........
success: function(msg){
error = $("response error", msg).text();
if(error == "0") {
document.location.reload();
} else {
alert($("response message", msg).text());
}
},
error: function(msg) {
alert('unknown error');
}
});
}
}
</script>
<div class="title_wrap">
<h3><?php echo _t('공지사항');?> <span class="cnt">(<?php echo $totalFeedItems;?>)</span></h3>
</div>
<div class="notice_wrap">
<?php
$headers = array(array('title'=>_t('선택'),'class'=>'entrylist_select','width'=>'50px'),
array('title'=>_t('날짜'),'class'=>'entrylist_date','width'=>'100px'),
array('title'=>_t('제목'),'class'=>'entrylist_title','width'=>'790px'),
array('title'=>_t('실행'),'class'=>'entrylist_execute','width'=>'auto'));
$datas = array();
if(count($posts)>0) {
foreach($posts as $post) {
$data = array();
$date = Func::dateToString($post['written']);
$feedvisibility = Feed::get($post['feed'], 'visibility');
$data['id'] = 'list_item_'.$post['id'];
$data['class'] = ($post['visibility']=='n'?'list_item_hide':'').($post['id']==$read?' list_item_select':'');
$data['datas'] = array();
// 글 선택
array_push($data['datas'], array('class'=>'noticelist_select','data'=> '<input type="checkbox" class="postid" value="'.$post['id'].'" />' ));
// 글 등록날짜
ob_start();
?>
<?php echo date('y.m.d H:i:s', $post['written']);?><br />
<span class="date_text">(<?php echo $date;?>)</span>
<?php
$content = ob_get_contents();
ob_end_clean();
array_push($data['datas'], array('class'=>'noticelist_date','data'=> $content ));
// 글 제목
ob_start();
?>
<?php
$desc = UTF8::lessenAsEm(str_replace(' ','',func::stripHTML($post['description'])),82);
if(empty($desc)) {
$desc = '<span class="empty">'._t('내용이 비어있거나 HTML로만 작성되어 있습니다.').'</span>';
}
$isNew = Func::isNew($post['written'],1);
?>
示例4: _t
collectDiv("#read_item1", "#read_item2");
});
<?php
}
?>
</script>
<link rel="stylesheet" href="<?php echo $service['path'];?>/style/admin_member.css" type="text/css" />
<div class="wrap title_wrap">
<h3><?php echo _t("회원 목록");?> <span class="cnt">(<?php echo $memberCount;?>)</span></h3>
</div>
<?php
if($readUser) {
$date = Func::dateToString($readUser['created']);
$date2 = Func::dateToString($readUser['lastLogin']);
list($feeds, $totalFeeds) = Feed::getFeedsByOwner($readUser['id'], 1, 10);
$totalFeedItems = 0;
if($totalFeeds>0) {
foreach($feeds as $feed) {
$totalFeedItems += $feed['feedCount'];
}
}
?>
<div class="wrap">
<div class="read_item read_item1">
<?php echo drawAdminBoxBegin('item_wrap');?>
<div id="read_item1" class="item">
<h2><?php echo _f('%1 님의 회원정보',$readUser['name']);?></h2>
<div class="extra">
<?php echo _t('아이디');?> : <span class="name"><?php echo $readUser['loginid'];?></span> <?php echo !empty($readUser['email'])?'<a href="mailto:'.$readUser['email'].'"><img src="'.$service['path'].'/images/admin/icon_email.gif" alt="email" align="absmiddle" class="icon_email" /></a>':'';?>