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


PHP new_paginator函数代码示例

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


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

示例1: new_paginator

        <col />
        <col />
    </colgroup>
    <thead>
        <tr>
            <th>Дата</th>
            <th>Файл</th>
        </tr>
    </thead>
    
    <tfoot>
        <tr>
            <td colspan="2">
                <div class="pager">
                    <?php 
    echo new_paginator($page, ceil($page_count / $limit), 10, '%s?action=factura&page=%d%s');
    ?>
                </div>
            </td>
        </tr>
    </tfoot>

    <tbody>
            <?php 
    foreach ($files as $file) {
        ?>
        <tr class="nr-a-tbl_tr">
            <td>
                <?php 
        echo date('d.m.Y H:i', strtotime($file['modified']));
        ?>
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:factura.php

示例2: ceil

/*
$pages = ceil( $count_frl_catalog / $frl_pp ); // альфа-костыль.
$sHref = "%s?".
    ($hhf_prm ? str_replace('&','',$hhf_prm).'&' : '').
    (($order && $order!='gnr')?"order=$order&":"").
    (($direction)?"dir=$direction&":"").
    (($show_all_freelancers)?"show=all&":"").                        
    (($key_word)?'word='.str_replace('%','%%', urlencode(stripslashes($key_word))).'&':'').
    "page=%d%s";

$pages = ceil($count_frl_catalog / $frl_pp);
echo new_paginator($page, $pages, 3, $sHref, "href");
*/
$query_string_menu = str_replace('%', '%%', $query_string_menu);
$pages = ceil($element->total / $element->getProperty('limit'));
print new_paginator($page, $pages, 3, "%s/freelancers/?{$query_string_menu}&page=%d%s");
/*$count = 100;
                    // Страницы
                    if ($pages > 1){
                        $maxpages = $pages;
                        $i = 1;
                        $sHref = "?".(($order)?"order=$order&":"").(($direction)?"dir=$direction&":"").(($prof_id)?"prof=".$prof_id."&":"")."page=";

                        if ($pages > 32){
                            $i = floor($page/10)*10 + 1;
                            if ($i >= 10 && $page%10 < 5) $i = $i - 5;
                            $maxpages = $i + 22 - floor(log($page,10)-1)*4;
                            if ($maxpages > $pages) $maxpages = $pages;
                            if ($maxpages - $i + floor(log($page,10)-1)*4 < 22 && $maxpages - 22 > 0) $i = $maxpages - 24 + floor(log($page,10)-1)*3;
                        }
                        $sBox = '<table width="100%"><tr>';
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:content.php

示例3: new_paginator

                        <option value="<?php 
    echo $cat['id'];
    ?>
"><?php 
    echo $cat['name'];
    ?>
</option>
                        <?php 
}
?>
                    </select>
                    <br/>
                    <label for="rss_sub">Укажите подразделы:</label>&nbsp;&nbsp;<br/><select style="width:340px" name="rss_sub" id="rss_sub">
                        <option value="">Весь раздел</option>
                    </select>
                    <div class="ov-btns">
                        <input value="Подписаться" class="i-btn i-bold" type="button" onClick="gotoRSS(); document.getElementById('rsso').style.display='none'; return false;" />
                        <input value="Отменить" class="i-btn" onclick="$(this).getParent('div.overlay').setStyle('display', 'none'); return false;" type="button" />
                    </div>
                </div>
            </div>
        </div>
        <b class="ov-b"></b>
        <b class="c3"></b>
        <b class="c4"></b>
    </div>
</div>

<?php 
echo new_paginator($this->page, $this->pages, array(3, $this->filter ? 1 : 3), "%s?" . urldecode(url('page,kind', array('page' => '%d'))) . "%s", true);
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:30,代码来源:tpl.lenta.php

示例4: __commPrntTopic

'>
                    <?php 
        echo __commPrntTopic($top, $uid, $user_mod, $om, $page, NULL, isset($favs[$top['id']]) ? 1 : 0, $favs);
        ?>
                </div>
            <?php 
    }
    ?>
        <?php 
}
?>
            
        <?php 
// пагинатор
$url_p = "%s?page=%d" . ($cat ? '&cat=' . $cat : '') . ($om ? '&om=' . $om : '') . "%s";
echo !$comm['is_blocked'] || $user_mod & commune::MOD_MODER ? new_paginator($page, $pages, 3, $url_p, 'href') : '';
if ($comm['restrict_type'] === '00' || $user_mod & (commune::MOD_COMM_AUTHOR | commune::MOD_ADMIN | commune::MOD_MODER | commune::MOD_COMM_ACCEPTED | commune::MOD_COMM_ADMIN | commune::MOD_COMM_MODERATOR | commune::MOD_COMM_ADMIN)) {
    ?>
            <div style="padding:15px 0 20px 0;" class="commune-rss">
                <a href="/rss/commune.php?id=<?php 
    echo $id;
    ?>
"><img src="/images/ico_rss.gif" border="0" hspace="4"></a><a class="blue" href="/rss/commune.php?id=<?php 
    echo $id;
    ?>
">Фри-ланс</a>
            </div>
        <?php 
}
?>
    </div>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.commune.php

示例5: new_paginator

                    <th>пс-исп</th>
                    <th>Покрыт</th>
                    <th>Раскрыт</th>
                    <th>Статус</th>
                    <th>Сообщение банка</th>
                </tr>
                <tr>
                    <td colspan="10">&nbsp;</td>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <td colspan="11">
                        <div class="pager">
                            <?php 
echo new_paginator($page, ceil($page_count / pskb::ADM_PAGE_SIZE), 10, "%s?{$url_build}&page=%d%s");
?>
                        </div>
                    </td>
                </tr>
            </tfoot>
            <tbody>
                <?php 
foreach ($pskb_list as $row) {
    ?>
                    <tr class="<?php 
    echo ++$j % 2 == 0 ? 'even' : 'odd';
    ?>
">
                        <td id="pp-place-<?php 
    echo $row['sbr_id'];
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:admin-lc.php

示例6: new_paginator

				</tr>
				<tr>
                    <td>&nbsp;</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
				</tr>
			</thead>
            <tfoot>
                <tr>
                    <td colspan="6">
                        <div class="pager">
                            <?php 
echo new_paginator($page, ceil($page_count / sbr_adm::PAGE_SIZE), 10, "%s?site=admin&mode={$mode}&page=%d%s");
?>
                        </div>
                    </td>
                </tr>
            </tfoot>
			<tbody>
                <?php 
foreach ($sbr_feedbacks as $sf) {
    ?>
                <tr class="<?php 
    echo ++$j % 2 == 0 ? 'even' : 'odd';
    ?>
">
                    <td class="nr-a-o-date"><?php 
    echo date('d.m.Y H:i', strtotime($sf['posted_time']));
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:admin-feedbacks.php

示例7: view_avatar

?>
 <?php 
echo $u['usurname'];
?>
">
                   <?php 
echo view_avatar($u['login'], $u['photo']);
?>
                  </a>
                      <?php 
echo view_user($u);
?>
 
                  <div class="b-user__txt"><?php 
echo $u['prof_name'];
?>
</div>
              </div>            
            </td>
        <?   
            $i++; } 
            if($i) print('</tr>');
          ?>
          </table>
          <style type="text/css">.b-icon__ver{ vertical-align:top;}</style>
        <? } ?>
        <?php 
$sHref = "%s?rank={$rank}&page=%d%s";
$pages = ceil($count / $limit);
echo new_paginator($page, $pages, 3, $sHref, true, "page");
开发者ID:notUserDeveloper,项目名称:fl-ru-damp,代码行数:30,代码来源:content.php

示例8: str_replace

            ?>
          <tr>
            <td colspan="2" style="background:#fff; padding:10px;">
              <?php 
            /*
                        $url_pager = '';
                        if ($cur_folder > 0) {
                            $url_pager = '%s?folder='.$cur_folder.'&page=%d%s';
                        } else {
                            $url_pager = '%s?page=%d%s';
                        }*/
            // В постраничности используется sprintf, поэтому недопустимы символы процента,
            // Их тут обычно и не должно быть
            $uri = str_replace('%', '', $sHref);
            $url_pager = '%s' . e_url('page', '', $uri) . '%d%s';
            echo new_paginator($page, $pages, 4, $url_pager);
            //echo get_pager2($pages,$page,$url_pager);
            ?>
</td>
          </tr>
          <?php 
        }
        // Страницы закончились
    } else {
        ?>
          <tr class="qpr">
            <td style="text-align:center" colspan="2"> Ничего не найдено </td>
          </tr>
          <?php 
    }
    ?>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:content.php

示例9: elseif

		<div id="freelance-offer-block-<?php 
            echo $offer['id'];
            ?>
">&nbsp;</div>
		<?php 
        } elseif ($_SESSION['uid'] == $offer['uid']) {
            ?>
		<a class="b-buttons__link b-buttons__link_color_c10601 b-buttons__link_margleft_10" onclick="return warning(2)" href="/public/offer/?action=close&fid=<?php 
            echo $offer['id'];
            ?>
">Снять с публикации</a>
		<?php 
        }
        //elseif
        ?>
    <?php 
    }
    //if
    ?>
	</div>
</div>
<?php 
}
//foreach
?>
    <?php 
print new_paginator($page, $pages, 4, "%s?page=%d%s");
if (hasPermissions('projects')) {
    include_once $_SERVER['DOCUMENT_ROOT'] . '/user/ban_overlay.php';
    include_once $_SERVER['DOCUMENT_ROOT'] . '/user/warn_overlay.new.php';
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.offers-item.php

示例10: new_paginator

                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <b class="ov-b"></b>
            <b class="c3"></b>
            <b class="c4"></b>
        </div>
    <?php 
    }
}
?>
    <div class="pager">
        <?php 
echo new_paginator($page, ceil($page_count / sbr_adm::PAGE_SA_SIZE), 10, "%s?site={$site}&scheme={$scheme}" . str_replace('%', '%%', $filter_prms) . "&dir_col={$dir_col}&dir={$dir}&page=%d%s");
?>
    </div>
    <input type="hidden" name="site" value="<?php 
echo $site;
?>
" />
    <input type="hidden" name="scheme" value="<?php 
echo $scheme;
?>
" />
    <input type="hidden" name="page" value="<?php 
echo $page;
?>
" />
    <input type="hidden" name="dir" value="<?php 
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:inner_docsflow.php

示例11: new_paginator

 ><?php 
    echo $ssc[1];
    ?>
</option>
                          <?php 
}
?>
                        </select></td>
                    </tr>
                </thead>
                <tfoot>
                    <tr>
                        <td colspan="6">
                            <div class="pager">
                                <?php 
echo new_paginator($page, ceil($page_count / sbr_adm::PAGE_SIZE), 10, "%s?site=admin&mode={$mode}{$filter_prms}&dir_col={$dir_col}&dir={$dir}&page=%d%s");
?>
                            </div>
                        </td>
                    </tr>
                </tfoot>
                <tbody>
                    <?php 
foreach ($sbr_all['data'] as $sbr_data) {
    $sbr_data['cost_sys'] = $sbr_data['ps_emp'] ? pskb::$exrates_map[$sbr_data['ps_emp']] : $sbr_data['cost_sys'];
    ?>
                    <tr class="<?php 
    echo ++$i % 2 == 0 ? 'even' : 'odd';
    ?>
">
                        <td><?php 
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:admin-all.php

示例12: new_paginator

                <th>Название</th>
                <th>Заказчик</th>
                <th>Исполнитель</th>
                <th>Дата резерва</th>
                <th>Дата выплаты</th>
            </tr>
        </thead>
        <?php 
if (!empty($reserves)) {
    ?>
        <tfoot>
            <tr>
                <td colspan="7">
                    <div class="pager">
                        <?php 
    echo new_paginator($page, ceil($page_count / $limit), 10, "%s?action=frod&page=%d%s");
    ?>
                    </div>
                </td>
            </tr>
        </tfoot>
        
        <tbody>
                <?php 
    foreach ($reserves as $reserve) {
        ?>
            <tr class="nr-a-tbl_tr">
                <td><a target="_blank" href="?action=details&num=<?php 
        echo $reserve->getSrcId();
        ?>
"><?php 
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:frod.php

示例13: new_paginator

            <tr>
                <td colspan="8">
                    Ничего не найдено
                </td>
            </tr>
        <?php 
}
?>
        <?php 
if ($pagesCount > 1) {
    ?>
            <tr>
                <td colspan="8">
                    <div class="pager">
                        <?php 
    echo new_paginator($page, $pagesCount, 10, "%s?site=invoice{$filterParams}&page=%d%s");
    ?>
                    </div>
                </td>
            </tr>
        <?php 
}
?>
    </tbody>
</table>
</form>
<script type="text/javascript">
    (function(){
        window.addEvent('domready', function(){
            var 
                filterInputs = $$('.filter_input'),
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:inner_invoice.php

示例14: view_avatar

                   <?php 
        echo view_avatar($u['login'], $u['photo']);
        ?>
                  </a>
                      <?php 
        echo view_user($u);
        ?>
 
                  <div class="b-user__txt"><?php 
        echo $u['prof_name'];
        ?>
</div>
              </div>            
            </td>
        <?php 
        ++$i;
    }
    if ($i) {
        print '</tr>';
    }
    ?>
          </table>
          <style type="text/css">.b-icon__ver{ vertical-align:top;}</style>
        <?php 
}
?>
        <?php 
$sHref = "%s?rank={$rank}&page=%d%s";
$pages = ceil($count / $limit);
echo new_paginator($page, $pages, 3, $sHref, true, 'page');
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:30,代码来源:content.php

示例15: foreach

echo $search_lenta_css;
?>
">
        <?php 
if ($element->total > 0 && $element->results) {
    $first_element = true;
    $i = $offset = $element->getProperty('offset');
    foreach ($element->results as $num => $result) {
        $i++;
        include $_SERVER['DOCUMENT_ROOT'] . "/search/tpl/{$search_block_tpl}";
        $first_element = false;
        // в зависимости от раздела поиска
    }
    $query_string_menu = str_replace('%', '%%', $query_string_menu);
    $pages = ceil($element->total / $element->getProperty('limit'));
    print new_paginator($page, $pages, 3, "%s/search/?type={$type}&{$query_string_menu}&page=%d%s");
}
//if
?>
  
        </div><!--/search-lenta-->
        <?php 
if ($element->total > 0 && $element->results) {
    $bottomLimitBlock = $type === 'users';
    include $_SERVER['DOCUMENT_ROOT'] . "/search/tpl.user-limit-block.php";
}
//if
?>
    </div><!--/#content-inner-->
</div><!--/#content-content-->
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:30,代码来源:content.php


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