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


PHP XoopsPageNav::renderImageNav方法代码示例

本文整理汇总了PHP中XoopsPageNav::renderImageNav方法的典型用法代码示例。如果您正苦于以下问题:PHP XoopsPageNav::renderImageNav方法的具体用法?PHP XoopsPageNav::renderImageNav怎么用?PHP XoopsPageNav::renderImageNav使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XoopsPageNav的用法示例。


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

示例1: XoopsPageNav

//$xoTheme->addStylesheet(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/lightbox/css/lightbox.css');
//$xoTheme->addScript(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/lightbox/js/prototype.js');
//$xoTheme->addScript(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/lightbox/js/scriptaculous.js?load=effects');
//$xoTheme->addScript(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/lightbox/js/lightbox.js');
$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/include/jquery.lightbox-0.3.css');
$xoTheme->addScript(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/include/jquery.js');
$xoTheme->addScript(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/include/jquery.lightbox-0.3.js');
$xoTheme->addScript(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/include/yogurt.js');
/**
* Criando a barra de navegao caso tenha muitos amigos
*/
$barra_navegacao = new XoopsPageNav($nb_tribes, $xoopsModuleConfig['tribesperpage'], $start_all, 'start_all', 'uid=' . intval($controler->uidOwner) . '&start_my=' . $start_my);
$barrinha = $barra_navegacao->renderImageNav(2);
//alltribes
$barra_navegacao_my = new XoopsPageNav($nb_mytribes, $xoopsModuleConfig['tribesperpage'], $start_my, 'start_my', 'uid=' . intval($controler->uidOwner) . '&start_all=' . $start_all);
$barrinha_my = $barra_navegacao_my->renderImageNav(2);
$maxfilebytes = $xoopsModuleConfig['maxfilesize'];
//permissions
$xoopsTpl->assign('allow_scraps', $controler->checkPrivilegeBySection('scraps'));
$xoopsTpl->assign('allow_friends', $controler->checkPrivilegeBySection('friends'));
$xoopsTpl->assign('allow_tribes', $controler->checkPrivilegeBySection('tribes'));
$xoopsTpl->assign('allow_pictures', $controler->checkPrivilegeBySection('pictures'));
$xoopsTpl->assign('allow_videos', $controler->checkPrivilegeBySection('videos'));
$xoopsTpl->assign('allow_audios', $controler->checkPrivilegeBySection('audio'));
//form
$xoopsTpl->assign('lang_youcanupload', sprintf(_MD_YOGURT_YOUCANUPLOAD, $maxfilebytes / 1024));
$xoopsTpl->assign('lang_tribeimage', _MD_YOGURT_TRIBE_IMAGE);
$xoopsTpl->assign('maxfilesize', $maxfilebytes);
$xoopsTpl->assign('lang_title', _MD_YOGURT_TRIBE_TITLE);
$xoopsTpl->assign('lang_description', _MD_YOGURT_TRIBE_DESC);
$xoopsTpl->assign('lang_savetribe', _MD_YOGURT_UPLOADTRIBE);
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:tribes.php

示例2: createDir

        echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub() . "</td>";
        echo "<td class='even' align='center'>" . $statustxt . "</td>";
        echo "<td class='even' align='center'> " . $approve . $clone . $modify . $delete . "</td>";
        echo "</tr>";
    }
} else {
    // that is, $numrows = 0, there's no entries yet
    echo "<tr>";
    echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMSSEL . "</td>";
    echo "</tr>";
}
echo "</table>\n";
echo "<span style=\"color: #567; margin: 3px 0 18px 0; font-size: small; display: block; \">{$status_explaination}</span>";
$pagenav = new XoopsPageNav($numrows, $publisher->getConfig('idxcat_perpage'), $startentry, 'startentry', "statussel={$statussel}&amp;sortsel={$sortsel}&amp;ordersel={$ordersel}");
if ($publisher->getConfig('format_image_nav') == 1) {
    echo '<div style="text-align:right; background-color: white; margin: 10px 0;">' . $pagenav->renderImageNav() . '</div>';
} else {
    echo '<div style="text-align:right; background-color: white; margin: 10px 0;">' . $pagenav->renderNav() . '</div>';
}
// ENDs code to show active entries
PublisherUtils::closeCollapsableBar('allitemstable', 'allitemsicon');
// Close the collapsable div
$xoops->footer();
// auto create folders----------------------------------------
//TODO rename this function? And exclude image folder?
function createDir()
{
    // auto crate folders
    $thePath = PublisherUtils::getUploadDir();
    if (PublisherUtils::getPathStatus('root', true) < 0) {
        $thePath = PublisherUtils::getUploadDir();
开发者ID:ming-hai,项目名称:XoopsCore,代码行数:31,代码来源:main.php

示例3: sprintf

$xoopsTpl->assign('categories', $categories);
// Language constants
$xoopsTpl->assign('sectionname', $publisher->getModule()->getVar('name'));
$xoopsTpl->assign('whereInSection', $publisher->getModule()->getVar('name'));
$xoopsTpl->assign('modulename', $publisher->getModule()->getVar('dirname'));
$xoopsTpl->assign('lang_category_summary', sprintf(_MD_PUBLISHER_CATEGORY_SUMMARY, $categoryObj->name()));
$xoopsTpl->assign('lang_category_summary_info', sprintf(_MD_PUBLISHER_CATEGORY_SUMMARY_INFO, $categoryObj->name()));
$xoopsTpl->assign('lang_items_title', sprintf(_MD_PUBLISHER_ITEMS_TITLE, $categoryObj->name()));
$xoopsTpl->assign('module_home', publisher_moduleHome($publisher->getConfig('format_linked_path')));
$xoopsTpl->assign('categoryPath', $category['categoryPath']);
$xoopsTpl->assign('selected_category', $categoryid);
// The Navigation Bar
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
$pagenav = new XoopsPageNav($thiscategory_itemcount, $publisher->getConfig('idxcat_index_perpage'), $start, 'start', 'categoryid=' . $categoryObj->getVar('categoryid'));
if ($publisher->getConfig('format_image_nav') == 1) {
    $navbar = '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>';
} else {
    $navbar = '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
}
$xoopsTpl->assign('navbar', $navbar);
/**
 * Generating meta information for this page
 */
$publisher_metagen = new PublisherMetagen($categoryObj->getVar('name'), $categoryObj->getVar('meta_keywords', 'n'), $categoryObj->getVar('meta_description', 'n'), $categoryObj->getCategoryPathForMetaTitle());
$publisher_metagen->createMetaTags();
// RSS Link
if ($publisher->getConfig('idxcat_show_rss_link') == 1) {
    $link = sprintf("<a href='%s' title='%s'><img src='%s' border=0 alt='%s'></a>", PUBLISHER_URL . "/backend.php?categoryid=" . $categoryid, _MD_PUBLISHER_RSSFEED, PUBLISHER_URL . "/images/rss.gif", _MD_PUBLISHER_RSSFEED);
    $xoopsTpl->assign('rssfeed_link', $link);
}
include_once XOOPS_ROOT_PATH . '/footer.php';
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:category.php

示例4: XoopsPageNav

$xoopsTpl->assign('indexfooter', $myts->displayTarea($publisher->getConfig('index_footer'), 1));
$xoopsTpl->assign('lang_category_summary', _MD_PUBLISHER_INDEX_CATEGORIES_SUMMARY);
$xoopsTpl->assign('lang_category_summary_info', _MD_PUBLISHER_INDEX_CATEGORIES_SUMMARY_INFO);
$xoopsTpl->assign('lang_items_title', _MD_PUBLISHER_INDEX_ITEMS);
$xoopsTpl->assign('indexpage', true);
// Category Navigation Bar
$pagenav = new XoopsPageNav($totalCategories, $publisher->getConfig('idxcat_cat_perpage'), $catstart, 'catstart', '');
if ($publisher->getConfig('format_image_nav') == 1) {
    $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>');
} else {
    $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>');
}
// ITEM Navigation Bar
$pagenav = new XoopsPageNav($real_total_items, $publisher->getConfig('idxcat_index_perpage'), $start, 'start', '');
if ($publisher->getConfig('format_image_nav') == 1) {
    $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>');
} else {
    $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>');
}
//show subcategories
$xoopsTpl->assign('show_subcats', $publisher->getConfig('idxcat_show_subcats'));
$xoopsTpl->assign('displaylastitems', $publisher->getConfig('index_display_last_items'));
/**
 * Generating meta information for this page
 */
$publisher_metagen = new PublisherMetagen($publisher->getModule()->getVar('name'));
$publisher_metagen->createMetaTags();
// RSS Link
if ($publisher->getConfig('idxcat_show_rss_link') == 1) {
    $link = sprintf("<a href='%s' title='%s'><img src='%s' border=0 alt='%s'></a>", PUBLISHER_URL . "/backend.php", _MD_PUBLISHER_RSSFEED, PUBLISHER_URL . "/images/rss.gif", _MD_PUBLISHER_RSSFEED);
    $xoopsTpl->assign('rssfeed_link', $link);
开发者ID:ming-hai,项目名称:XoopsCore,代码行数:31,代码来源:index.php

示例5: foreach

                 echo ' checked="checked"';
             }
             echo ' /></td></tr><tr><td class="head">&nbsp;</td><td class="even"><a href="admin.php?fct=avatars&amp;op=delfile&amp;avatar_id=' . $id . '">' . _DELETE . '</a></td></tr></table><br />';
         }
     } else {
         foreach (array_keys($avatars) as $i) {
             echo '<table cellspacing="1" class="outer" width="100%"><tr><td width="30%" rowspan="6" align="center"><img src="' . XOOPS_UPLOAD_URL . '/' . $avatars[$i]->getVar('avatar_file') . '" alt="" /></td><td class="head">' . _IMAGENAME, '</td><td class="even"><a href="' . XOOPS_URL . '/userinfo.php?uid=';
             $userids =& $avt_handler->getUser($avatars[$i]);
             echo $userids[0] . '">' . $avatars[$i]->getVar('avatar_name') . '</a></td></tr><tr><td class="head">' . _IMAGEMIME . '</td><td class="odd">' . $avatars[$i]->getVar('avatar_mimetype') . '</td></tr><tr><td class="head">&nbsp;</td><td align="center" class="even"><a href="admin.php?fct=avatars&amp;op=delfile&amp;avatar_id=' . $avatars[$i]->getVar('avatar_id') . '&amp;user_id=' . $userids[0] . '">' . _DELETE . '</a></td></tr></table><br />';
         }
     }
     if ($avtcount > 0) {
         if ($avtcount > 10) {
             include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
             $nav = new XoopsPageNav($avtcount, 10, $start, 'start', 'fct=avatars&amp;type=' . $type . '&amp;op=listavt');
             echo '<div style="text-align:right;">' . $nav->renderImageNav() . '</div>';
         }
         if ($type == 'S') {
             echo '<div style="text-align:center;"><input type="hidden" name="op" value="save" /><input type="hidden" name="fct" value="avatars" /><input type="submit" name="submit" value="' . _SUBMIT . '" /></div></form>';
         }
     }
     xoops_cp_footer();
     exit;
 }
 if ($op == 'save') {
     if (!XoopsMultiTokenHandler::quickValidate('avatars_save')) {
         xoops_cp_header();
         xoops_error('Ticket Error');
         xoops_cp_footer();
         exit;
     }
开发者ID:koki-h,项目名称:xoops_utf8,代码行数:31,代码来源:main.php

示例6: foreach

     foreach (array_keys($avatars) as $i) {
         $avatar_list[$i] = $avatars[$i]->toArray();
         $avatar_list[$i]['type'] = $type;
         $avatar_list[$i]['count'] = count($avt_handler->getUser($avatars[$i]));
         if ($type == 'c') {
             $user = $avt_handler->getUser($avatars[$i]);
             if (is_array($user) && isset($user[0])) {
                 $avatar_list[$i]['user'] = $user[0];
             }
         }
     }
     $xoopsTpl->assign('avatars_list', $avatar_list);
     // Display Page Navigation
     if ($avtcount > xoops_getModuleOption('avatars_pager')) {
         $nav = new XoopsPageNav($avtcount, xoops_getModuleOption('avatars_pager', 'system'), $start, 'start', 'fct=avatars&amp;type=' . $type . '&amp;op=listavt');
         $xoopsTpl->assign('nav_menu', $nav->renderImageNav());
     }
     // Call Footer
     xoops_cp_footer();
     break;
 case 'edit':
     // Define main template
     $xoopsOption['template_main'] = 'system_avatars.html';
     // Call Header
     xoops_cp_header();
     // Define Stylesheet
     $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
     // Define Breadcrumb and tips
     $xoBreadCrumb->addLink(_AM_SYSTEM_AVATAR_MANAGER, system_adminVersion('avatars', 'adminpath'));
     $xoBreadCrumb->addLink(_AM_SYSTEM_AVATAR_EDIT);
     $xoBreadCrumb->addHelp(system_adminVersion('avatars', 'help') . '#edit');
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:31,代码来源:main.php

示例7: XoopsPageNav

    $i++;
}
$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/include/yogurt.css');
$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/css/jquery.tabs.css');
// what browser they use if IE then add corrective script.
if (ereg('msie', strtolower($_SERVER['HTTP_USER_AGENT']))) {
    $xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/css/jquery.tabs-ie.css');
}
$xoTheme->addScript(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/include/jquery.js');
$xoTheme->addScript(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/js/jquery.tabs.pack.js');
$xoTheme->addScript(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/include/yogurt.js');
/**
* Criando a barra de navegao caso tenha muitos amigos
*/
$barra_navegacao = new XoopsPageNav($nb_tribes, $xoopsModuleConfig['tribesperpage'], $start_all, 'start_all', 'tribe_keyword=' . $tribe_keyword . '&amp;start_my=' . $start_my);
$barrinha = $barra_navegacao->renderImageNav(2);
//permissions
$xoopsTpl->assign('allow_scraps', $controler->checkPrivilegeBySection('scraps'));
$xoopsTpl->assign('allow_friends', $controler->checkPrivilegeBySection('friends'));
$xoopsTpl->assign('allow_tribes', $controler->checkPrivilegeBySection('tribes'));
$xoopsTpl->assign('allow_pictures', $controler->checkPrivilegeBySection('pictures'));
$xoopsTpl->assign('allow_videos', $controler->checkPrivilegeBySection('videos'));
$xoopsTpl->assign('allow_audios', $controler->checkPrivilegeBySection('audio'));
$xoopsTpl->assign('allow_profile_contact', $controler->checkPrivilege('profile_contact') ? 1 : 0);
$xoopsTpl->assign('allow_profile_general', $controler->checkPrivilege('profile_general') ? 1 : 0);
$xoopsTpl->assign('allow_profile_stats', $controler->checkPrivilege('profile_stats') ? 1 : 0);
//form
//$xoopsTpl->assign('lang_youcanupload',sprintf(_MD_YOGURT_YOUCANUPLOAD,$maxfilebytes/1024));
$xoopsTpl->assign('lang_tribeimage', _MD_YOGURT_TRIBE_IMAGE);
//$xoopsTpl->assign('maxfilesize',$maxfilebytes);
$xoopsTpl->assign('lang_title', _MD_YOGURT_TRIBE_TITLE);
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:search_tribe.php

示例8: count

}
$partner_count = count($array_partners);
for ($i = 0; $i < $partner_count; $i++) {
    $ImagePartner = "<a href='vpartner.php?id=" . $array_partners[$i]["id"] . "' target='_blank'>";
    if (!empty($array_partners[$i]["image"]) && ($xoopsModuleConfig['modshow'] == 1 || $xoopsModuleConfig['modshow'] == 3)) {
        $ImagePartner .= "<img src='" . $array_partners[$i]["image"] . "' alt='" . $array_partners[$i]["url"] . "' width='102' height='47' border='0' />";
    }
    if ($xoopsModuleConfig['modshow'] == 3) {
        $ImagePartner .= "<br />";
    }
    if (empty($array_partners[$i]["image"]) || $xoopsModuleConfig['modshow'] == 2 || $xoopsModuleConfig['modshow'] == 3) {
        $ImagePartner .= $array_partners[$i]["title"];
    }
    $ImagePartner .= "</a>";
    $partner[$i]['id'] = $array_partners[$i]['id'];
    $partner[$i]['hits'] = $array_partners[$i]['hits'];
    $partner[$i]['url'] = $array_partners[$i]['url'];
    $partner[$i]['image'] = $ImagePartner;
    $partner[$i]['title'] = $array_partners[$i]['title'];
    $partner[$i]['description'] = $array_partners[$i]['description'];
    if ($admin == 1) {
        $partner[$i]['admin_option'] = "<br />[<a href='admin/index.php?op=editPartner&amp;id=" . $array_partners[$i]["id"] . "'>" . _MD_EDIT . "</a>] [<a href='admin/index.php?op=delPartner&id=" . $array_partners[$i]["id"] . "'>" . _MD_DELETE . "</a>]";
    }
    $xoopsTpl->append("partners", $partner[$i]);
}
if ($xoopsModuleConfig['modlimit'] != 0) {
    $nav = new XoopsPageNav($numrows, $xoopsModuleConfig['modlimit'], $start);
    $pagenav = $nav->renderImageNav();
}
$xoopsTpl->assign(array("lang_partner" => _MD_PARTNER, "lang_desc" => _MD_DESCRIPTION, "lang_hits" => _MD_HITS, "lang_no_partners" => _MD_NOPART, "lang_main_partner" => _MD_PARTNERS, "sitename" => $xoopsConfig['sitename'], "pagenav" => $pagenav));
include_once XOOPS_ROOT_PATH . '/footer.php';
开发者ID:amjadtbssm,项目名称:website,代码行数:31,代码来源:index.php

示例9: while

        $uservotes = $xoopsDB->getRowsNum($result2);
        $useravgrating = 0;
        while (list($rating2) = $xoopsDB->fetchRow($result2)) {
            $useravgrating = $useravgrating + $rating2;
        }
        if ($useravgrating > 0) {
            $useravgrating = $useravgrating / $uservotes;
            $useravgrating = number_format($useravgrating, 2);
        }
        xoops_cp_header();
        loadModuleAdminMenu(10, _AM_NEWBB_VOTE_RATINGINFOMATION);
        echo "\r\n        <fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_VOTE_DISPLAYVOTES . "</legend>\n\r\n        <div style='padding: 8px;'>\n\r\n        <div><strong>" . _AM_NEWBB_VOTE_USERAVG . ": </strong>{$useravgrating}</div>\n\r\n        <div><strong>" . _AM_NEWBB_VOTE_TOTALRATE . ": </strong>{$uservotes}</div>\n\r\n        <div style='padding: 8px;'>\n\r\n        <ul><li>" . newbb_displayImage('admin_delete', _DELETE) . " " . _AM_NEWBB_VOTE_DELETEDSC . "</li></ul>\r\n        <div>\n\r\n        </fieldset>\n\r\n        <br />\n\r\n\r\n        <table width='100%' cellspacing='1' cellpadding='2' class='outer'>\n\r\n        <tr>\n\r\n        <th align='center'>" . _AM_NEWBB_VOTE_ID . "</th>\n\r\n        <th align='center'>" . _AM_NEWBB_VOTE_USER . "</th>\n\r\n        <th align='center'>" . _AM_NEWBB_VOTE_IP . "</th>\n\r\n        <th align='center'>" . _AM_NEWBB_VOTE_FILETITLE . "</th>\n\r\n        <th align='center'>" . _AM_NEWBB_VOTE_RATING . "</th>\n\r\n        <th align='center'>" . _AM_NEWBB_VOTE_DATE . "</th>\n\r\n        <th align='center'>" . _AM_NEWBB_ACTION . "</th></tr>\n";
        if ($votes == 0) {
            echo "<tr><td align='center' colspan='7' class='head'>" . _AM_NEWBB_VOTE_NOVOTES . "</td></tr>";
        }
        while (list($ratingid, $topic_id, $ratinguser, $rating, $ratinghostname, $ratingtimestamp) = $xoopsDB->fetchRow($results)) {
            $sql = "SELECT topic_title FROM " . $xoopsDB->prefix('bb_topics') . " WHERE topic_id=" . $topic_id . "";
            $down_array = $xoopsDB->fetchArray($xoopsDB->query($sql));
            $formatted_date = formatTimestamp($ratingtimestamp, _DATESTRING);
            $ratinguname = newbb_getUnameFromId($ratinguser, $xoopsModuleConfig['show_realname']);
            echo "\r\n        <tr>\n\r\n        <td class='head' align='center'>{$ratingid}</td>\n\r\n        <td class='even' align='center'>{$ratinguname}</td>\n\r\n        <td class='even' align='center'>{$ratinghostname}</td>\n\r\n        <td class='even' align='left'><a href='" . XOOPS_URL . "/modules/newbb/viewtopic.php?topic_id={$topic_id}' rel='external'>" . $myts->htmlSpecialChars($down_array['topic_title']) . "</a></td>\n\r\n        <td class='even' align='center'>{$rating}</td>\n\r\n        <td class='even' align='center'>{$formatted_date}</td>\n\r\n        <td class='even' align='center'><strong><a href='admin_votedata.php?op=delvotes&amp;topic_id={$topic_id}&amp;rid={$ratingid}'>" . newbb_displayImage('admin_delete', _DELETE) . "</a></strong></td>\n\r\n        </tr>\n";
        }
        echo "</table>";
        //Include page navigation
        include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
        $page = $votes > 20 ? _AM_NEWBB_MINDEX_PAGE : '';
        $pagenav = new XoopsPageNav($page, 20, $start, 'start');
        echo '<div align="right" style="padding: 8px;">' . $page . '' . $pagenav->renderImageNav(4) . '</div>';
        break;
}
xoops_cp_footer();
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:admin_votedata.php

示例10: AudiosNavBar

 /**
  * Create a page navbar for videos
  * @param int $NbAudios the number of videos this user have
  * @param int $audiosPerPage the number of videos in a page
  * @param int $start at which position of the array we start
  * @param int $interval how many pages between the first link and the next one
  * @return void
  */
 function AudiosNavBar($nbAudios, $audiosPerPage, $start, $interval)
 {
     $pageNav = new XoopsPageNav($nbAudios, $audiosPerPage, $start, "start", "uid=" . $this->uidOwner);
     $navBar = $pageNav->renderImageNav($interval);
     return $navBar;
 }
开发者ID:trabisdementia,项目名称:xuups,代码行数:14,代码来源:yogurt_controler.php

示例11: XoopsPageNav

if (ereg('msie', strtolower($_SERVER['HTTP_USER_AGENT']))) {
    $xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/css/jquery.tabs-ie.css');
}
//$xoTheme->addStylesheet(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/lightbox/css/lightbox.css');
//$xoTheme->addScript(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/lightbox/js/prototype.js');
//$xoTheme->addScript(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/lightbox/js/scriptaculous.js?load=effects');
//$xoTheme->addScript(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/lightbox/js/lightbox.js');
$xoTheme->addStylesheet(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/include/jquery.lightbox-0.3.css');
$xoTheme->addScript(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/include/jquery.js');
$xoTheme->addScript(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/include/jquery.lightbox-0.3.js');
$xoTheme->addScript(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/include/yogurt.js');
/**
* Criando a barra de navegao caso tenha muitos amigos
*/
$barra_navegacao = new XoopsPageNav($nbSections['nbFriends'], $xoopsModuleConfig['friendsperpage'], $start, 'start', 'uid=' . intval($controler->uidOwner));
$navegacao = $barra_navegacao->renderImageNav(2);
//permissions
$xoopsTpl->assign('allow_scraps', $controler->checkPrivilegeBySection('scraps'));
$xoopsTpl->assign('allow_friends', $controler->checkPrivilegeBySection('friends'));
$xoopsTpl->assign('allow_tribes', $controler->checkPrivilegeBySection('tribes'));
$xoopsTpl->assign('allow_pictures', $controler->checkPrivilegeBySection('pictures'));
$xoopsTpl->assign('allow_videos', $controler->checkPrivilegeBySection('videos'));
$xoopsTpl->assign('allow_audios', $controler->checkPrivilegeBySection('audio'));
//Owner data
$xoopsTpl->assign('uid_owner', $controler->uidOwner);
$xoopsTpl->assign('owner_uname', $controler->nameOwner);
$xoopsTpl->assign('isOwner', $controler->isOwner);
$xoopsTpl->assign('isanonym', $controler->isAnonym);
//numbers
$xoopsTpl->assign('nb_tribes', $nbSections['nbTribes']);
$xoopsTpl->assign('nb_photos', $nbSections['nbPhotos']);
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:friends.php

示例12: XoopsPageNav

        $xoopsTpl->append('faqs', $faq);
    }
}
// Language constants
$xoopsTpl->assign('whereInSection', $myts->htmlSpecialChars($xoopsModule->getVar('name')) . " > <a href='open_index.php'>" . _MD_SF_OPEN_SECTION . "</a>");
$xoopsTpl->assign('modulename', $xoopsModule->dirname());
$xoopsTpl->assign('displaylastfaqs', true);
$xoopsTpl->assign('display_categoryname', false);
$xoopsTpl->assign('lang_reads', _MD_SF_READS);
$xoopsTpl->assign('lang_home', _MD_SF_HOME);
$xoopsTpl->assign('lang_smartfaqs_info', _MD_SF_OPENED_INFO);
$xoopsTpl->assign('lang_smartfaqs', _MD_SF_QUESTIONS);
$xoopsTpl->assign('lang_cat_title', _MD_SF_OPENED_QUESTIONS);
$xoopsTpl->assign('lang_subcat_title', _MD_SF_CATEGORY_SUMMARY);
$xoopsTpl->assign('lang_category_summary', _MD_SF_CATEGORY_SUMMARY);
$xoopsTpl->assign('lang_category_summary_info', _MD_SF_CATEGORY_SUMMARY_INFO);
$xoopsTpl->assign('lang_category', _MD_SF_CATEGORY);
// The Navigation Bar
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
$pagenav = new XoopsPageNav($totalQnas[$categoryid], $xoopsModuleConfig['indexperpage'], $start, 'start', 'categoryid=' . $categoryObj->getVar('categoryid'));
if ($xoopsModuleConfig['useimagenavpage'] == 1) {
    $category['navbar'] = '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>';
} else {
    $category['navbar'] = '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
}
$xoopsTpl->assign('category', $category);
// Page Title Hack by marcan
$module_name = $myts->htmlSpecialChars($xoopsModule->getVar('name'));
$xoopsTpl->assign('xoops_pagetitle', $module_name . ' - ' . $category['name']);
// End Page Title Hack by marcan
include_once XOOPS_ROOT_PATH . "/footer.php";
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:open_category.php

示例13: XoopsPageNav

$identifier = $owner->getUnameFromId($uid);
$avatar = $owner->getVar('user_avatar');
/**
 * Adding to the module js and css of the lightbox and new ones
 */
$header_lightbox = '<script type="text/javascript" src="lightbox/js/prototype.js"></script>
<script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="lightbox/js/lightbox.js"></script>
<link rel="stylesheet" href="include/mypics.css" type="text/css" media="screen" />
<link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen" />';
/**
 * Navigation
 */
xoops_load('XoopsPageNav');
$xoopsPN = new XoopsPageNav($count, $xoopsModuleConfig['picturesperpage'], $start, 'start', 'uid=' . $uid);
$pagenav = $xoopsPN->renderImageNav(2);
/**
 * Assigning smarty variables
 */
$xoopsTpl->assign('pagenav', $pagenav);
$xoopsTpl->assign('lang_albumtitle', sprintf(_MD_MYPICS_ALBUMTITLE, "<a href=" . XOOPS_URL . "/userinfo.php?uid=" . $uid . ">" . $identifier . "</a>"));
$xoopsTpl->assign('path_mypics_uploads', $xoopsModuleConfig['link_path_upload']);
$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar("name") . " - " . $identifier . "'s album");
$xoopsTpl->assign('nome_modulo', $xoopsModule->getVar('name'));
$xoopsTpl->assign('lang_max_nb_pict', sprintf(_MD_MYPICS_YOUCANHAVE, $xoopsModuleConfig['nb_pict']));
$xoopsTpl->assign('lang_delete', _MD_MYPICS_DELETE);
$xoopsTpl->assign('lang_editdesc', _MD_MYPICS_EDITDESC);
$xoopsTpl->assign('lang_avatarchange', _MD_MYPICS_AVATAR_CHANGE);
$xoopsTpl->assign('isOwner', $isOwner);
$xoopsTpl->assign('lang_nb_pict', sprintf(_MD_MYPICS_YOUHAVE, $count));
$xoopsTpl->assign('xoops_module_header', $header_lightbox);
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:index.php


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