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


PHP get_paging函数代码示例

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


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

示例1: array

$item = array();
$sql = "select *\n        {$sql_common}\n        {$sql_search}\n        {$sql_order}\n        limit {$from_record}, {$rows} ";
$qry = sql_query($sql);
$list = array();
for ($i = 0; $row = sql_fetch_array($qry); ++$i) {
    $row[num] = $total_count - ($page - 1) * $rows - $i;
    if (is_null($item[$row['vt_num']])) {
        $tmp = sql_fetch(" select * from {$mw['vote_item_table']} where vt_id = '{$vt_id}' and vt_num = '{$row['vt_num']}' ");
        $item[$row['vt_num']] = $tmp['vt_item'];
    }
    $row['vt_item'] = $item[$row['vt_num']];
    $mb = get_member($row[mb_id], "mb_nick, mb_name, mb_email, mb_homepage");
    $row[name] = get_sideview($row[mb_id], $board[bo_use_name] ? $mb[mb_name] : $mb[mb_nick], $mb[mb_email], $mb[mb_homepage]);
    $list[$i] = $row;
}
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?bo_table={$bo_table}&wr_id={$wr_id}{$qstr}&page=");
$colspan = 5;
$g4[title] = "설문 참여 목록";
include_once "{$g4['path']}/head.sub.php";
?>
<script src="<?php 
echo $g4[path];
?>
/js/sideview.js"></script>

<link rel="stylesheet" href="<?php 
echo $board_skin_path;
?>
/style.common.css" type="text/css">

<style>
开发者ID:l2zeo,项目名称:miwit-pack5,代码行数:31,代码来源:mw.vote.list.php

示例2: get_paging

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

<div class="btn_list01 btn_list">
    <input type="submit" name="act_button" value="선택수정" onclick="document.pressed=this.value">
    <input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value">
    <input type="submit" name="act_button" value="완전삭제" onclick="document.pressed=this.value">
</div>

</form>

<?php 
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?' . $qstr . '&amp;page=');
?>

<script>
function fmemberlist_submit(f)
{
    if (!is_checked("chk[]")) {
        alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
        return false;
    }

    if(document.pressed == "선택삭제") {
        if(!confirm("선택회원의 기본정보만 삭제되며 아이디, 닉네임 기록은 남습니다.\n\n선택한 자료를 정말 삭제하시겠습니까?")) {
            return false;
        }
    }
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:member_list.php

示例3: get_paging

if ($i == 0) {
    echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
}
?>
    </tbody>
    </table>
</div>

<div class="btn_list01 btn_list">
    <input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value">
</div>

</form>

<?php 
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?{$qstr}&amp;page=");
?>

<section id="point_mng">
    <h2 class="h2_frm">개별회원 포인트 증감 설정</h2>

    <form name="fpointlist2" method="post" id="fpointlist2" action="./point_update.php" autocomplete="off">
    <input type="hidden" name="sfl" value="<?php 
echo $sfl;
?>
">
    <input type="hidden" name="stx" value="<?php 
echo $stx;
?>
">
    <input type="hidden" name="sst" value="<?php 
开发者ID:eeewq123,项目名称:aaa,代码行数:31,代码来源:point_list.php

示例4: get_paging

                <?php 
}
?>

                <?php 
if ($i == 0) {
    echo "<tr><td colspan=5 align=center height=100>자료가 없습니다.</td></tr>";
}
?>
                </table></td>
        </tr>
        </table></td>
</tr>
<tr> 
    <td height="30" align="center"><?php 
echo get_paging($config[cf_write_pages], $page, $total_page, "?{$qstr}&page=");
?>
</td>
</tr>
<tr> 
    <td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
    <td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
    <td height="40" align="center" valign="bottom"><a href="javascript:window.close();"><img src="<?php 
echo $member_skin_path;
?>
/img/btn_close.gif" width="48" height="20" border="0"></a></td>
</tr>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:scrap.skin.php

示例5: get_paging

} else {
    if ($stx) {
        echo '<p class="empty_list">검색된 게시물이 없습니다.</p>';
    } else {
        echo '<div class="empty_list">등록된 FAQ가 없습니다.';
        if ($is_admin) {
            echo '<br><a href="' . G5_ADMIN_URL . '/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.';
        }
        echo '</div>';
    }
}
?>
</div>

<?php 
echo get_paging($page_rows, $page, $total_page, $_SERVER['SCRIPT_NAME'] . '?' . $qstr . '&amp;page=');
?>

<?php 
// 하단 HTML
echo '<div id="faq_thtml">' . conv_content($fm['fm_tail_html'], 1) . '</div>';
if ($timg_src) {
    echo '<div id="faq_timg" class="faq_img"><img src="' . $timg_src . '" alt=""></div>';
}
?>

<fieldset id="faq_sch">
    <legend>FAQ 검색</legend>

    <form name="faq_search_form" method="get">
    <input type="hidden" name="fm_id" value="<?php 
开发者ID:l2zeo,项目名称:miwit-pack5,代码行数:31,代码来源:list.skin.php

示例6: get_paging

    echo "<input type=hidden name=pp_id[{$i}] value='{$row['pp_id']}'>";
    echo "<tr class='list{$list} col1 ht center'>";
    echo "<td height=25><input type=checkbox name=chk[] value='{$i}'></td>";
    echo "<td align='left'>&nbsp; <a href='{$_SERVER['PHP_SELF']}?sfl=pp_word&stx={$word}'>{$word}</a></td>";
    echo "<td>{$row['pp_date']}</td>";
    echo "<td>{$row['pp_ip']}</td>";
    echo "</tr>";
    echo "<tr class='list{$list} col1 ht center'>";
    echo "</tr>\n";
}
if ($i == 0) {
    echo "<tr><td colspan='{$colspan}' align=center height=100 bgcolor=#ffffff>자료가 없습니다.</td></tr>";
}
echo "<tr><td colspan='{$colspan}' class='line2'></td></tr>";
echo "</table>";
$pagelist = get_paging($config[cf_write_pages], $page, $total_page, "{$_SERVER['PHP_SELF']}?{$qstr}&page=");
echo "<table width=100% cellpadding=3 cellspacing=1>";
echo "<tr><td width=50%>";
if ($is_admin == "super") {
    echo "<input type=button class='btn1' value='선택삭제' onclick=\"btn_check(this.form, 'delete')\">";
}
echo "</td>";
echo "<td width=50% align=right>{$pagelist}</td></tr></table>\n";
if ($stx) {
    echo "<script>document.fsearch.sfl.value = '{$sfl}';</script>";
}
?>
</form>

<?php 
include_once "./admin.tail.php";
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:popular_list.php

示例7: get_text

    for ($i = 0; $row = sql_fetch_array($result); $i++) {
        $list[$i] = $row;
        $list[$i]['category'] = get_text($row['qa_category']);
        $list[$i]['subject'] = conv_subject($row['qa_subject'], $subject_len, '…');
        if ($stx) {
            $list[$i]['subject'] = search_font($stx, $list[$i]['subject']);
        }
        $list[$i]['view_href'] = G5_BBS_URL . '/qaview.php?qa_id=' . $row['qa_id'] . $qstr;
        $list[$i]['icon_file'] = '';
        if (trim($row['qa_file1']) || trim($row['qa_file2'])) {
            $list[$i]['icon_file'] = '<img src="' . $qa_skin_url . '/img/icon_file.gif">';
        }
        $list[$i]['name'] = get_text($row['qa_name']);
        $list[$i]['date'] = substr($row['qa_datetime'], 2, 8);
        $list[$i]['num'] = $num - $i;
    }
    $is_checkbox = false;
    $admin_href = '';
    if ($is_admin) {
        $is_checkbox = true;
        $admin_href = G5_ADMIN_URL . '/qa_config.php';
    }
    $list_href = G5_BBS_URL . '/qalist.php';
    $write_href = G5_BBS_URL . '/qawrite.php';
    $list_pages = preg_replace('/(\\.php)(&amp;|&)/i', '$1?', get_paging(G5_IS_MOBILE ? $qaconfig['qa_mobile_page_rows'] : $qaconfig['qa_page_rows'], $page, $total_page, './qalist.php' . $qstr . '&amp;page='));
    $stx = get_text(stripslashes($stx));
    include_once $skin_file;
} else {
    echo '<div>' . str_replace(G5_PATH . '/', '', $skin_file) . '이 존재하지 않습니다.</div>';
}
include_once './_tail.php';
开发者ID:eeewq123,项目名称:aaa,代码行数:31,代码来源:qalist.php

示例8: sql_query

// 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows;
// 시작 열을 구함
$sql = "select *\r\n        {$sql_common}\r\n        {$sql_search}\r\n        {$sql_order}\r\n        limit {$from_record}, {$rows} ";
$qry = sql_query($sql);
$list = array();
for ($i = 0; $row = sql_fetch_array($qry); ++$i) {
    $row[num] = $total_count - ($page - 1) * $rows - $i;
    $mb = get_member($row[mb_id], "mb_id, mb_nick, mb_homepage, mb_email");
    $row[name] = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_homepage], $mb[mb_email]);
    if (!$row[bm_limit][0]) {
        $row[bm_limit] = '';
    }
    $list[$i] = $row;
}
$write_pages = get_paging($rows, $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?bo_table={$bo_table}{$qstr}&page=");
//$g4[title] = "배추 BASIC SKIN 접근권한 설정";
//include_once("$g4[path]/head.sub.php");
?>
<!doctype html>
<html lang="ko">
<head>
<meta charset="<?php 
echo $g4['charset'];
?>
">
<title><?php 
echo $g4['title'];
?>
</title>
<script>
开发者ID:l2zeo,项目名称:miwit-pack5,代码行数:31,代码来源:mw.board.member.php

示例9: get_paging

        <td class="td_category"><?php 
    echo $os;
    ?>
</td>
        <td class="td_datetime"><?php 
    echo $row['vi_date'];
    ?>
 <?php 
    echo $row['vi_time'];
    ?>
</td>
    </tr>

    <?php 
}
if ($i == 0) {
    echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없거나 관리자에 의해 삭제되었습니다.</td></tr>';
}
?>
    </tbody>
    </table>
</div>

<?php 
if (isset($domain)) {
    $qstr .= "&amp;domain={$domain}";
}
$qstr .= "&amp;page=";
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?{$qstr}");
echo $pagelist;
include_once './admin.tail.php';
开发者ID:khk0613,项目名称:YHK,代码行数:31,代码来源:visit_list.php

示例10: sql_query

    $sql = " select *\n                {$sql_common}\n                {$sql_search}\n                {$sql_order}\n                limit {$from_record}, {$page_rows} ";
    $result = sql_query($sql);
    $list = array();
    $num = $total_count - ($page - 1) * $page_rows;
    $subject_len = $qaconfig['qa_subject_len'];
    for ($i = 0; $row = sql_fetch_array($result); $i++) {
        $list[$i] = $row;
        $list[$i]['category'] = get_text($row['qa_category']);
        $list[$i]['subject'] = conv_subject($row['qa_subject'], $subject_len, '…');
        if ($stx) {
            $list[$i]['subject'] = search_font($stx, $list[$i]['subject']);
        }
        $list[$i]['view_href'] = G5_ADMIN_URL . '/shop_admin/admin_qaview.php?qa_id=' . $row['qa_id'] . $qstr;
        $list[$i]['icon_file'] = '';
        if (trim($row['qa_file1']) || trim($row['qa_file2'])) {
            $list[$i]['icon_file'] = '<img src="' . $admin_qa_skin_url . '/img/icon_file.gif">';
        }
        $list[$i]['name'] = get_text($row['qa_name']);
        $list[$i]['date'] = substr($row['qa_datetime'], 2, 8);
        $list[$i]['num'] = $num - $i;
    }
    $is_checkbox = true;
    $list_href = G5_ADMIN_URL . '/shop_admin/admin_qalist.php';
    $write_href = G5_ADMIN_URL . '/shop_admin/admin_qawrite.php';
    $list_pages = preg_replace('/(\\.php)(&amp;|&)/i', '$1?', get_paging($qaconfig['qa_page_rows'], $page, $total_page, './admin_qalist.php?' . $qstr . '&amp;page='));
    $stx = get_text(stripslashes($stx));
    include_once $skin_file;
} else {
    echo '<div>' . str_replace(G5_PATH . '/', '', $skin_file) . '이 존재하지 않습니다.</div>';
}
include_once './admin_qatail.php';
开发者ID:najinsu,项目名称:nsle,代码行数:31,代码来源:admin_qalist.php

示例11: get_paging

</td>
        <td><?php 
    echo $row['mh_hp'];
    ?>
</td>
        <td><?php 
    echo $row['mh_datetime'];
    ?>
</td>
        <td><?php 
    echo $row['mh_booking'] != '0000-00-00 00:00:00' ? "<span title='{$row['mh_booking']}' class='btn btn-default'>예약</span>" : '';
    ?>
</td>
        <td><?php 
    echo $row['mh_log'];
    ?>
</td>
    </tr>
    <?php 
}
?>
    </tbody>
    </table>
</div>

<?php 
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'] . "?st={$st}&amp;sv={$sv}&amp;page=");
?>

<?php 
include_once G5_ADMIN_PATH . '/admin.tail.php';
开发者ID:kimyongyeon,项目名称:myproject,代码行数:31,代码来源:history_member.php

示例12: array

<?php

include_once "./_common.php";
$g4['title'] = "현재접속자";
$connect_skin_path = "{$g4['path']}/skin/connect/{$config['cf_connect_skin']}";
include_once "./_head.php";
$list = array();
$sql = " select a.mb_id, b.mb_nick, b.mb_name, b.mb_email, b.mb_homepage, b.mb_open, b.mb_point, a.lo_ip, a.lo_location, a.lo_url\n           from {$g4['login_table']} a left join {$g4['member_table']} b on (a.mb_id = b.mb_id)\n          where a.mb_id <> '{$config['cf_admin']}'\n          order by a.lo_datetime desc ";
$result = sql_query($sql);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    $list[$i] = $row;
    if ($row['mb_id']) {
        //$list[$i][name] = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
        $list[$i][name] = get_sideview($row['mb_id'], cut_str($row['mb_nick'], $config['cf_cut_name']), $row['mb_email'], $row['mb_homepage']);
    } else {
        if ($is_admin) {
            $list[$i][name] = $row['lo_ip'];
        } else {
            $list[$i][name] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $row['lo_ip']);
        }
    }
    $list[$i][num] = sprintf("%03d", $i + 1);
}
$write_pages = get_paging($config['cf_write_pages'], $page, $total_page, "?gr_id={$gr_id}&page=");
echo "<script type='text/javascript' src=\"{$g4['path']}/js/sideview.js\"></script>\n";
include_once "{$connect_skin_path}/current_connect.skin.php";
include_once "./_tail.php";
开发者ID:ragi79,项目名称:g4dtd,代码行数:27,代码来源:current_connect.php

示例13: get_paging

            <td class="td_datetime"><?php 
    echo $list[$i]['ms_datetime'];
    ?>
</td>
            <td class="td_mng"><a href="<?php 
    echo $list[$i]['del_href'];
    ?>
" onclick="del(this.href); return false;">삭제</a></td>
        </tr>
        <?php 
}
?>

        <?php 
if ($i == 0) {
    echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>";
}
?>
        </tbody>
        </table>
    </div>

    <?php 
echo get_paging($config['cf_write_pages'], $page, $total_page, "?{$qstr}&amp;page=");
?>

    <div class="win_btn">
        <button type="button" onclick="window.close();">창닫기</button>
    </div>
</div>
<!-- } 스크랩 목록 끝 -->
开发者ID:davis00,项目名称:test,代码行数:31,代码来源:scrap.skin.php

示例14: get_paging

    echo $row['ct_status_sum'];
    ?>
</td>
        </tr>
        <?php 
}
if ($i == 0) {
    echo '<tr><td colspan="12" class="empty_table">자료가 없습니다.</td></tr>';
}
?>
    </tbody>
    </table>
</div>

<?php 
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?{$qstr1}&amp;page=");
?>

<script>
$(function() {
    $("#fr_date, #to_date").datepicker({
        changeMonth: true,
        changeYear: true,
        dateFormat: "yymmdd",
        showButtonPanel: true,
        yearRange: "c-99:c+99",
        maxDate: "+0d"
    });
});
</script>
开发者ID:davis00,项目名称:youngcart,代码行数:30,代码来源:itemsellrank.php

示例15: get_sideview

            }
            $list[$idx][$i][subject] = $subject;
            $list[$idx][$i][content] = $content;
            $list[$idx][$i][name] = get_sideview($row[mb_id], cut_str($row[wr_name], $config[cf_cut_name]), $row[wr_email], $row[wr_homepage]);
            $k++;
            if ($k >= $rows) {
                break;
            }
        }
        sql_free_result($result);
        if ($k >= $rows) {
            break;
        }
        $from_record = 0;
    }
    $write_pages = get_paging($config[cf_write_pages], $page, $total_page, "{$_SERVER['PHP_SELF']}?{$search_query}&gr_id={$gr_id}&srows={$srows}&onetable={$onetable}&page=");
    echo "<script type=\"text/javascript\" src=\"{$g4['path']}/js/sideview.js\"></script>";
}
$group_select = "<select id='gr_id' name='gr_id' class=select><option value=''>전체 분류";
$sql = " select gr_id, gr_subject from {$g4['group_table']} order by gr_id ";
$result = sql_query($sql);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    $group_select .= "<option value='{$row['gr_id']}'>{$row['gr_subject']}";
}
$group_select .= "</select>";
if (!$sfl) {
    $sfl = "wr_subject";
}
if (!$sop) {
    $sop = "or";
}
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:search.php


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