当前位置: 首页>>代码示例>>PHP>>正文


PHP op_include_pager_navigation函数代码示例

本文整理汇总了PHP中op_include_pager_navigation函数的典型用法代码示例。如果您正苦于以下问题:PHP op_include_pager_navigation函数的具体用法?PHP op_include_pager_navigation怎么用?PHP op_include_pager_navigation使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了op_include_pager_navigation函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: op_mobile_page_title

<?php

op_mobile_page_title(__('Activities of %my_friend%', array('%my_friend%' => $op_term['my_friend']->pluralize()->titleize())));
if ($pager->getNbResults() || isset($form)) {
    if ($pager->getNbResults()) {
        ?>
<center>
<?php 
        op_include_pager_total($pager);
        ?>
</center>
<?php 
    }
    $params = array('title' => '', 'activities' => $pager->getResults());
    if (isset($form)) {
        $params['form'] = $form;
    }
    include_partial('default/activityBox', $params);
    if ($pager->getNbResults()) {
        op_include_pager_navigation($pager, 'friend/showActivity?page=%d');
    }
} else {
    op_include_parts('box', 'ActivityBox', array('body' => __('There is no activity.'), 'title' => ''));
}
开发者ID:phenom,项目名称:OpenPNE3,代码行数:24,代码来源:showActivitySuccess.php

示例2: op_mobile_page_title

<?php

op_mobile_page_title($id === $sf_user->getMemberId() ? __('My Activities') : __('Activities of %0%', array('%0%' => $member->getName())));
if ($pager->getNbResults()) {
    ?>
<center>
<?php 
    op_include_pager_total($pager);
    ?>
</center>
<?php 
    include_partial('default/activityBox', array('title' => '', 'activities' => $pager->getResults()));
    op_include_pager_navigation($pager, 'member/showActivity?page=%d&id=' . $id);
} else {
    op_include_parts('box', 'ActivityBox', array('body' => __('There is no activity.')));
}
开发者ID:phenom,项目名称:OpenPNE3,代码行数:16,代码来源:showActivitySuccess.php

示例3: __

</tr>
<tr>
<th><?php 
        echo __('Public flag');
        ?>
</th>
<td colspan="2"><?php 
        echo $album->getPublicFlagLabel();
        ?>
</td>
</tr>
<tr>
<th><?php 
        echo __('Created at');
        ?>
</th>
<td colspan="2"><?php 
        echo $album->getCreatedAt();
        ?>
</td>
</tr>
</table>
<?php 
    }
    echo op_include_pager_navigation($pager, 'album/listMember?page=%d&id=' . $member->getId());
    ?>
</div></div>
<?php 
} else {
    op_include_box('albumList', __('There are no albums'), array('title' => $title));
}
开发者ID:balibali,项目名称:opAlbumPlugin,代码行数:31,代码来源:listMemberSuccess.php

示例4: use_helper

<?php

use_helper('Date');
if ($pager->getNbResults()) {
    ?>
<div class="dparts recentList"><div class="parts">
<div class="partsHeading">
<h3><?php 
    echo __('Recently Posted %Community% Topics');
    ?>
</h3>
</div>

<?php 
    ob_start();
    op_include_pager_navigation($pager, '@communityTopic_recently_topic_list?page=%d');
    $pager_navi = ob_get_contents();
    ob_end_flush();
    ?>

<?php 
    foreach ($pager->getResults() as $topic) {
        ?>
<dl>
<dt><?php 
        echo format_datetime($topic->getUpdatedAt(), 'f');
        ?>
</dt>
<dd>
<?php 
        echo sprintf('%s (%s)', link_to(sprintf('%s(%d)', $topic->getName(), $topic->getCommunityTopicComment()->count()), 'communityTopic_show', $topic), $topic->getCommunity()->getName());
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:recentlyTopicListSuccess.php

示例5: op_mobile_page_title

<?php

op_mobile_page_title(__('%Friend% list'));
?>

<center>
<?php 
op_include_pager_total($pager);
?>
</center>

<?php 
$list = array();
foreach ($pager->getResults() as $member) {
    $list[] = op_link_to_member($member->getId(), '@obj_member_profil', array('link_target' => sprintf('%s(%d)', $member->getName(), $member->countFriends())));
}
$option = array('border' => true);
op_include_list('friendList', $list, $option);
?>

<?php 
op_include_pager_navigation($pager, 'friend/list?page=%d&id=' . $id, array('is_total' => false));
?>
<br>

<?php 
if ($relation->isSelf()) {
    slot('op_mobile_footer_menu');
    echo link_to(__('Manage %friend%'), 'friend/manage');
    end_slot();
}
开发者ID:nagata,项目名称:OpenPNE3,代码行数:31,代码来源:listSuccess.php

示例6: __

?>

<?php 
if ($pager->getNbResults()) {
    ?>
<div class="dparts recentList"><div class="parts">
<div class="partsHeading">
<h3><?php 
    echo __('List of topics');
    ?>
</h3>
</div>

<?php 
    ob_start();
    op_include_pager_navigation($pager, '@communityTopic_list_community?page=%d&id=' . $community->getId());
    $pager_navi = ob_get_contents();
    ob_end_flush();
    ?>

<?php 
    foreach ($pager->getResults() as $topic) {
        ?>
<dl>
<dt><?php 
        echo format_datetime($topic->getUpdatedAt(), 'f');
        ?>
</dt>
<dd><?php 
        echo link_to(sprintf($topic->getName() . '(%d)', $topic->getCommunityTopicComment()->count()), '@communityTopic_show?id=' . $topic->getId());
        ?>
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:listCommunitySuccess.php

示例7: op_link_to_member

    $communityMember = Doctrine::getTable('communityMember')->retrieveByMemberIdAndCommunityId($member->getId(), $community->getId());
    $list_str = op_link_to_member($member);
    $operation = array();
    if (!($communityMember->hasPosition(array('admin', 'sub_admin')) || $communityMember->getMemberId() === $sf_user->getMemberId())) {
        $operation[] = link_to(__('Drop this member'), 'community/dropMember?id=' . $community->getId() . '&member_id=' . $member->getId());
    }
    if ($isAdmin) {
        if (!$communityMember->hasPosition(array('admin', 'admin_confirm', 'sub_admin'))) {
            if ($communityMember->hasPosition('sub_admin_confirm')) {
                $operation[] = __("You are requesting this %community%'s sub-administrator to this member now.");
            } else {
                $operation[] = link_to(__("Request this %community%'s sub-administrator to this member"), 'community/subAdminRequest?id=' . $community->getId() . '&member_id=' . $member->getId());
            }
        } elseif ($communityMember->hasPosition('sub_admin')) {
            $operation[] = link_to(__("Demotion from this %community%'s sub-administrator"), 'community/removeSubAdmin?id=' . $community->getId() . '&member_id=' . $member->getId());
        }
        if (!$communityMember->hasPosition('admin')) {
            $operation[] = link_to(__("Take over this %community%'s administrator to this member"), 'community/changeAdminRequest?id=' . $community->getId() . '&member_id=' . $member->getId());
        } elseif ($communityMember->hasPosition('admin_confirm')) {
            $operation[] = __("You are taking over this %community%'s administrator to this member now.");
        }
    }
    $list[] = $list_str . (count($operation) ? '<br><br>' . implode('<br>', $operation) : '');
}
$option = array('border' => true);
op_include_list('memberList', $list, $option);
?>

<?php 
op_include_pager_navigation($pager, '@community_memberManage?page=%d&id=' . $id, array('is_total' => false));
开发者ID:shotaatago,项目名称:OpenPNE3,代码行数:30,代码来源:memberManageSuccess.php

示例8: op_mobile_page_title

<?php

op_mobile_page_title($community->getName(), __('Event Members'));
?>

<center>
<?php 
op_include_pager_total($pager);
?>
</center>

<?php 
$list = array();
foreach ($pager->getResults() as $member) {
    $list[] = link_to(sprintf('%s(%d)', $member->getName(), $member->countFriends()), 'member/profile?id=' . $member->getId());
}
$option = array('border' => true);
op_include_list('memberList', $list, $option);
?>

<?php 
op_include_pager_navigation($pager, '@communityEvent_memberList?page=%d&id=' . $communityEvent->getId(), array('is_total' => false));
开发者ID:te-koyama,项目名称:openpne,代码行数:22,代码来源:memberListSuccess.php

示例9: op_include_pager_total

if ($isResult) {
    if ($pager->getNbResults()) {
        ?>
<center>
<?php 
        op_include_pager_total($pager);
        ?>
</center>
<?php 
        $list = array();
        foreach ($pager->getResults() as $community) {
            $list[] = link_to(sprintf('%s(%d)', $community->getName(), $community->countCommunityMembers()), '@community_home?id=' . $community->getId());
        }
        $option = array('border' => true);
        op_include_list('communityList', $list, $option);
        op_include_pager_navigation($pager, 'community/search?page=%d', array('is_total' => false, 'use_current_query_string' => true));
    } else {
        echo __('Your search queries did not match any communities.');
    }
}
?>

<?php 
$options = array('url' => url_for('community/search'), 'button' => __('Search'), 'method' => 'get', 'align' => 'center');
if (!$isResult) {
    $options['moreInfo'] = array(link_to(__('Create a new %community%'), '@community_edit'));
}
op_include_form('searchCommunity', $filters, $options);
?>

<?php 
开发者ID:kawahara,项目名称:OpenPNE3,代码行数:31,代码来源:searchSuccess.php

示例10: op_mobile_page_title

<?php

op_mobile_page_title(__('Manage %friend%'));
?>

<center>
<?php 
op_include_pager_total($pager);
?>
</center>

<?php 
$list = array();
foreach ($pager->getResults() as $member) {
    $vars = array('id' => $member->getId());
    $list[] = get_customizes('id_name', 'before', $vars) . op_link_to_member($member->getId(), '@obj_member_profile', array('link_target' => sprintf('%s(%d)', $member->getName(), $member->countFriends()))) . '<br>' . get_customizes('id_name', 'after', $vars) . get_customizes('id_friend', 'before', $vars) . ' [' . link_to(__('Removes this %friend%'), 'friend/unlink?id=' . $member->getId()) . ']' . get_customizes('id_friend', 'after', $vars);
}
$option = array('border' => true);
op_include_list('friendList', $list, $option);
?>

<?php 
op_include_pager_navigation($pager, 'friend/manage?page=%d&id=' . $sf_params->get('id'), array('is_total' => false));
开发者ID:nagata,项目名称:OpenPNE3,代码行数:23,代码来源:manageSuccess.php

示例11: op_mobile_page_title

<?php

op_mobile_page_title($member->getName());
?>

<center>
<?php 
op_include_pager_total($pager);
?>
</center>

<?php 
$list = array();
foreach ($pager->getResults() as $community) {
    $list[] = link_to(sprintf('%s(%d)', $community->getName(), $community->countCommunityMembers()), 'community/home?id=' . $community->getId());
}
$option = array('border' => true);
op_include_list('communityList', $list, $option);
?>

<?php 
op_include_pager_navigation($pager, 'community/joinlist?page=%d&id=' . $member->getId(), array('is_total' => false));
开发者ID:Kazuhiro-Murota,项目名称:OpenPNE3,代码行数:22,代码来源:joinlistSuccess.php

示例12: op_include_pager_total

if ($pager->getNbResults()) {
    ?>

<center>
<?php 
    op_include_pager_total($pager);
    ?>
</center>
<?php 
    $list = array();
    foreach ($pager->getResults() as $diary) {
        $list[] = sprintf("%s<br>%s (%s)", op_format_date($diary->created_at, 'XDateTime'), link_to(op_diary_get_title_and_count($diary, false, 28), 'diary_show', $diary), $diary->Member->name);
    }
    $options = array('border' => true);
    op_include_list('diaryList', $list, $options);
    echo op_include_pager_navigation($pager, $pagerLink, array('is_total' => false));
    ?>

<?php 
} else {
    ?>

<?php 
    echo !isset($keyword) ? __('There are no diaries.') : __('Your search "%1%" did not match any diaries.', array('%1%' => $keyword));
    ?>

<?php 
}
?>

<?php 
开发者ID:kawahara,项目名称:opDiaryPlugin,代码行数:31,代码来源:listSuccess.php

示例13: url_for

<td>
<form action="<?php 
    echo url_for('package_manageMember', $package);
    ?>
" method="post">
<?php 
    $form = new opPluginMemberManageForm(array('member_id' => $item->id, 'package_id' => $package->id, 'position' => Doctrine::getTable('PluginMember')->getPosition($item->id, $package->id)));
    echo $form['position']->render();
    echo $form->renderHiddenFields();
    ?>
<input type="submit" value="<?php 
    echo __('Save');
    ?>
" class="input_submit" />
</form>
</td>

</tr>
<?php 
}
?>
</tbody></table></div>

<?php 
op_include_pager_navigation($pager, '@package_manageMember?name=' . $package->name);
?>

</div>
</div>
开发者ID:balibali,项目名称:opPluginChannelServerPlugin,代码行数:29,代码来源:manageMemberSuccess.php

示例14: op_include_pager_navigation

}
if ($pager->getNbResults()) {
    ?>
<div class="dparts recentList"><div class="parts">
<div class="partsHeading"><h3><?php 
    echo $title;
    ?>
</h3></div>
<?php 
    echo op_include_pager_navigation($pager, 'diary/listMember?page=%d&id=' . $member->id . ($year && $month ? '&year=' . $year . '&month=' . $month . ($day ? '&day=' . $day : '') : ''));
    foreach ($pager->getResults() as $diary) {
        ?>
<dl>
<dt><?php 
        echo op_format_date($diary->created_at, 'XDateTimeJa');
        ?>
</dt>
<dd><?php 
        echo op_diary_link_to_show($diary, false);
        ?>
</dd>
</dl>
<?php 
    }
    echo op_include_pager_navigation($pager, 'diary/listMember?page=%d&id=' . $member->id . ($year && $month ? '&year=' . $year . '&month=' . $month . ($day ? '&day=' . $day : '') : ''));
    ?>
</div></div>
<?php 
} else {
    op_include_box('diaryList', __('There are no diaries.'), array('title' => $title));
}
开发者ID:kawahara,项目名称:opDiaryPlugin,代码行数:31,代码来源:listMemberSuccess.php

示例15: array

echo $form->renderFormTag(url_for('communityTopic/eventMemberList'), array('method' => 'get'));
?>
<table>
<?php 
echo $form;
?>
<tr>
<td colspan="2"><input type="submit" value="<?php 
echo __('Search');
?>
" /></td>
</table>
</form>

<?php 
if (!$pager->getNbResults()) {
    echo __('There are no event members matches search condition.');
} else {
    ob_start();
    ?>
<p><?php 
    op_include_pager_navigation($pager, 'communityTopic/eventMemberList?page=%d', array('use_current_query_string' => true));
    ?>
</p>
<?php 
    $pagerNavi = ob_get_flush();
    foreach ($pager->getResults() as $eventMember) {
        include_partial('communityTopic/eventMemberInfo', array('eventMember' => $eventMember, 'moreInfo' => array(link_to(__('Delete'), 'communityTopic/eventMemberDelete?id=' . $eventMember->getId()))));
    }
    echo $pagerNavi;
}
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:eventMemberListSuccess.php


注:本文中的op_include_pager_navigation函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。