本文整理汇总了PHP中func::printPaging方法的典型用法代码示例。如果您正苦于以下问题:PHP func::printPaging方法的具体用法?PHP func::printPaging怎么用?PHP func::printPaging使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类func
的用法示例。
在下文中一共展示了func::printPaging方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _t
<div class="deletes">
<a href="#" onclick="deleteItem(<?php echo $feed['id'];?>); return false;"><img src="<?php echo $service['path'];?>/images/admin/bt_delete.gif" alt="<?php echo _t('삭제');?>" /></a>
</div>
<div class="clear"></div>
<?php
$content = ob_get_contents();
ob_end_clean();
array_push($data['datas'], array('class'=>'bloglist_execute','data'=> $content ));
array_push($datas, $data);
}
} else {
array_push( $datas, array( 'class'=>"list_empty", 'datas'=>array(array('data'=>empty($keyword)?_t('등록된 블로그가 없습니다.'):_t('검색된 블로그가 없습니다.')) )) );
}
$footers = '';
echo makeTableBox('bloglist', $headers, $datas, $footers);
?>
</div>
<div class="wrap">
<br />
<div class="paging">
<?php echo func::printPaging($paging,$params);?>
</div>
</div>
<?php
include ROOT. '/lib/piece/adminFooter.php';
?>
示例2: getNoticePage
//.........这里部分代码省略.........
$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);
?>
<div class="title"><?php echo UTF8::lessenAsEm(stripcslashes(func::stripHTML($post['title'])), 60);?> <?php echo ($isNew?' <img src="'.$service['path'].'/images/admin/icon_new.gif" alt="new" align="absmiddle" class="new" />':'');?></div>
<?php echo $desc?>
<?php
$content = ob_get_contents();
ob_end_clean();
array_push($data['datas'], array('class'=>'noticelist_title','data'=> $content ));
// 글 실행
ob_start();
?>
<a href="#" class="microbutton alertbutton" onclick="deleteItem(<?php echo $post['id'];?>); return false;"><span><?php echo _t('삭제');?></span></a>
<?php
$content = ob_get_contents();
ob_end_clean();
array_push($data['datas'], array('class'=>'noticelist_execute','data'=> $content ));
array_push($datas, $data);
}
} else {
array_push( $datas, array( 'class'=>"list_empty", 'datas'=>array(array('data'=>empty($keyword)?_t('공지사항이 없습니다.'):_t('검색된 공지사항이 없습니다.')) )) );
}
ob_start();
?>
<div class="select">
<a href="#" onclick="toggleCheckAll('postid'); return false;"><img src="<?php echo $service['path'];?>/images/admin/bt_arrow.gif" /></a>
</div>
<div class="action">
<strong><a href="#" onclick="deleteAllItem('postid'); return false;"><?php echo _t('삭제');?></a></strong>
</div>
<div class="clear"></div>
<?php
$footers = ob_get_contents();
ob_end_clean();
echo makeTableBox('noticelist', $headers, $datas, $footers);
?>
</div>
<div class="wrap">
<br />
<div class="paging">
<?php echo func::printPaging($paging, $params);?>
</div>
</div>
<?php
$input .= ob_get_contents();
ob_end_clean();
}
return $input;
}
示例3: ob_get_contents
<input id="pluginStatus<?php echo $plugin['name'];?>" type="hidden" value="<?php echo $plugin['status'];?>" />
<?php
$content = ob_get_contents();
ob_end_clean();
array_push($data['datas'], array('class'=>'plugin_config','data'=> $content ));
array_push($datas, $data);
// 설정창
array_push($datas, array('empty'=>true, 'id'=>'pluginConfigView'.$plugin['name'],'class'=>'plugin_config_view'));
}
} else {
array_push( $datas, array( 'class'=>"list_empty", 'datas'=>array(array('data'=>'플러그인이 존재하지 않습니다.') )) );
}
$footers = '';
echo makeTableBox('pluginlist', $headers, $datas, $footers);
?>
</div>
<br />
<div class="paging">
<?php echo func::printPaging($paging);?>
</div>
<?php
include ROOT. '/lib/piece/adminFooter.php';
?>
示例4: exportFunction_iframe
function exportFunction_iframe($params, $exportConfig) {
global $export, $service, $config, $event;
$page = isset($params['get']['page'])?$params['get']['page']:1;
if($page <= 0) $page = 1;
$thumbnail = isset($exportConfig) && isset($exportConfig['thumbnail']) ? Validator::getBool($exportConfig['thumbnail']) : true;
$pageCount = isset($exportConfig) && isset($exportConfig['count']) ? $exportConfig['count'] : 10;
$newWindow = isset($exportConfig) && isset($exportConfig['popup']) ? Validator::getBool($exportConfig['popup']) : true;
$categoryView = isset($exportConfig) && isset($exportConfig['category_view']) ? Validator::getBool($exportConfig['category_view']) : false;
$focusView = isset($exportConfig) && isset($exportConfig['focus_view']) ? ($exportConfig['focus_view'] == 'focus' ? true : false) : false;
if($focusView) {
list($posts, $totalFeedItems) = FeedItem::getFeedItems('focus', 'y', '', $page, $pageCount);
} else {
if($categoryView) {
$categoryValue = isset($exportConfig) && isset($exportConfig['category']) ? $exportConfig['category'] : '';
list($posts, $totalFeedItems) = FeedItem::getFeedItems('category', $categoryValue, '', $page, $pageCount);
} else {
list($posts, $totalFeedItems) = FeedItem::getFeedItems('', '', '', $page, $pageCount);
}
}
$paging = Func::makePaging($page, $pageCount, $totalFeedItems);
requireComponent('LZ.PHP.Media');
ob_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $config->title;?></title>
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $export->exportURL;?>/style.css" />
<link rel="shortcut icon" href="<?php echo $service['path'];?>/images/favicon.ico" />
</head>
<body>
<div id="export_iframe_wrap">
<ul>
<?php
foreach($posts as $post) {
$post['thumbnail'] = '';
if($media = Media::getMedia($post['thumbnailId'])) {
$post['thumbnail'] = $media['thumbnail'];
}
$thumbnailFile = $event->on('Text.postThumbnail', Media::getMediaFile($post['thumbnail']));
$post['description'] = func::stripHTML($post['description'].'>');
if (substr($post['description'], -1) == '>') $post['description'] = substr($post['description'], 0, strlen($post['description']) - 1);
$post_description = UTF8::lessenAsByte(func::htmltrim($post['description']), 300);
if (strlen($post_description) == 0) $post_description = '<span class="empty">'._t('(글의 앞부분이 이미지 혹은 HTML 태그만으로 되어있습니다)').'</span>';
$post_description = $event->on('Text.postDescription', $post_description);
?>
<li class="<?php echo empty($thumbnailFile)||!$thumbnail?'thumbnail_nonexistence':'';?>">
<?php
if($thumbnail) {
$link_url = $config->addressType == 'id' ? $service['path'].'/go/'.$post['id'] : $service['path'].'/go/'.$post['permalink'];
if(!empty($post['thumbnail'])) {
?>
<div class="thumbnail">
<a href="<?php echo $link_url;?>" target="<?php echo $newWindow?'_blank':'_parent';?>"><img src="<?php echo $thumbnailFile;?>" alt="thumnail" /></a>
</div>
<?php
}
}
?>
<div class="data">
<h3><a href="<?php echo $link_url;?>" target="<?php echo $newWindow?'_blank':'_parent';?>"><?php echo UTF8::clear($event->on('Text.postTitle', func::stripHTML($post['title'])));?></a></h3>
<p><?php echo $post_description;?></p>
</div>
<div class="clear"></div>
</li>
<?php
}
?>
</ul>
<div class="paging">
<?php echo func::printPaging($paging);?>
</div>
</div>
</body>
</html>
<?php
$content = ob_get_contents();
ob_end_clean();
return $content;
}