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


PHP _paging函数代码示例

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


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

示例1: _free_result

    ?>
</td><td><?php 
    echo $_html['date'];
    ?>
</td><td><input name="ids[]" value="<?php 
    echo $_html['id'];
    ?>
" type="checkbox" /></td></tr>
			<?php 
}
_free_result($_result);
?>
			<tr><td colspan="5">共<strong><?php 
echo $_html['count'];
?>
</strong>朵花</td></tr>
			<tr><td colspan="5"><label for="all">全选 <input type="checkbox" name="chkall" id="all" /></label> <input type="submit" value="批删除" /></td></tr>
		</table>
		</form>
		<?php 
_paging(2);
?>
	</div>
</div>

<?php 
require ROOT_PATH . 'includes/footer.inc.php';
?>
</body>
</html>
开发者ID:xiaohuazheng,项目名称:twbm1.0,代码行数:30,代码来源:member_flower.php

示例2: _free_result

" alt="炎日" /></dt>
		<dd class="message"><a href="javascript:;" name="message" title="<?php 
    echo $_html['id'];
    ?>
">发消息</a></dd>
		<dd class="friend"><a href="javascript:;" name="friend" title="<?php 
    echo $_html['id'];
    ?>
">加为好友</a></dd>
		<dd class="guest">写留言</dd>
		<dd class="flower"><a href="javascript:;" name="flower" title="<?php 
    echo $_html['id'];
    ?>
">给他送花</a></dd>
	</dl>
	<?php 
}
_free_result($_result);
//_pageing函数调用分页,1|2,1表示数字分页,2表示文本分页
_paging(1);
?>


</div>

<?php 
require ROOT_PATH . 'includes/footer.inc.php';
?>
</body>
</html>
开发者ID:xiaoyinzhang,项目名称:testRep,代码行数:30,代码来源:blog.php

示例3: _fetch_array_list

		<?php 
for ($i = 1; $i <= $pagesize; $i++) {
    $row = _fetch_array_list($res);
    $address = _cut($row['gm_address'], 15);
    if (!$row['gm_teacher']) {
        $row['gm_teacher'] = '<a href="teacher_match.php?action=one&num=' . $row['gm_num'] . '">分配</a>';
    }
    if ($row['gm_num'] == '') {
        break;
    }
    echo "<tr><td>{$i}</td><td>{$row['gm_username']}</td><td>{$row['gm_num']}</td><td>{$row['gm_teacher']}</td><td>{$row['gm_sex']}</td><td>{$row['gm_grade']}</td><td>{$row['gm_subject']}</td><td>{$row['gm_type']}</td><td title='{$row['gm_address']}'>{$address}</td><td><a href='stu_date_one.php?num={$row['gm_num']}'>详细</a> <a href='stu_data_edit.php?num={$row['gm_num']}'>修改</a>";
    if ($_SESSION['level'] == 3) {
        echo " <a href='###' onclick=_confirm('确定删除该同学资料吗?','stu_date.php?action=del&num={$row['gm_num']}')>删除</a>";
    }
    echo "</td></tr>";
}
?>
		</tbody>
	</table>
<?php 
//引入分页
if ($_GET['action'] == '') {
    _paging($_system['stu_date_page']);
}
?>
</div>
<?php 
require ROOT_PATH . 'includes/footer_admin.inc.php';
?>
</body>
</html>
开发者ID:bboot9001,项目名称:phpbeginner_gmanage,代码行数:31,代码来源:stu_date.php

示例4: _fetch_array_list

	<div id="list">
	<?php 
if ($_GET['action'] == '') {
    if ($num != 0) {
        echo '<ul>';
        echo '<li class="top">公告中心</li>';
        for ($i = 0; $i < $pagesize; $i++) {
            $row = _fetch_array_list($res);
            if ($row['gm_id'] == '') {
                break;
            }
            $row['gm_title'] = _cut($row['gm_title'], 46);
            echo '<li class="time">' . $row['gm_time'] . '</li>';
            echo "<li class='title'><a href='notice_edit_admin.php?action=edit&id={$row['gm_id']}'>{$row['gm_title']}</a> <span><a href='###' onclick=\"_confirm('确定删除这条公告吗?','notice_admin.php?action=del&id={$row['gm_id']}')\">[删除]</a> <a href='notice_edit_admin.php?action=edit&id={$row['gm_id']}'>[修改]</a></span></li>";
            echo '<li class="line"></li>';
        }
        echo '</ul>';
    } else {
        echo "<center>暂时还没有任何公告</center>";
    }
    //引入分页
    _paging($_system['notice_page']);
}
?>
	</div>
</div>
<?php 
require ROOT_PATH . 'includes/footer_admin.inc.php';
?>
</body>
</html>
开发者ID:bboot9001,项目名称:phpbeginner_gmanage,代码行数:31,代码来源:notice_admin.php

示例5: _page

$_tpl->assign('side_list', $side_list);
/*内容*/
if (!empty($_GET['d']) && is_numeric($_GET['d'])) {
    $_sql = "SELECT * FROM tg_article where pid=" . $_pid . " AND id=" . $_GET['d'];
} else {
    $_sql = "SELECT * FROM tg_article where pid=" . $_pid;
}
global $_system;
_page($_sql, $_system['pics_list_num']);
$_article = _all(_query($_sql . " LIMIT {$_pageabsolute}," . $_system['pics_list_num']));
if (!count($_article)) {
    //echo '没数据,请添加右边内容数据';
    Module();
    exit;
}
_paging($_pid, 2);
$_tpl->assign('page_num', $page_num);
$_tpl->assign('article_list', $_article);
$_tpl->assign('article', $_article[0]);
if (isset($_GET['d']) && is_numeric($_GET['d'])) {
    $pos = _query("SELECT id,pid,title FROM tg_article where pid=" . $_pid);
    $pos_arr = array();
    $_all_id = array();
    while (!!($_rows = _fetch_list($pos))) {
        array_push($pos_arr, $_rows);
        array_push($_all_id, $_rows['id']);
    }
    $_index = array_keys($_all_id, $_GET['d']);
    $_index = $_index[0];
    $str = "m=" . $_mid . '&p=' . $_pid;
    if (count($_all_id) > 1) {
开发者ID:Cyc429170296,项目名称:webName,代码行数:31,代码来源:article.php

示例6: _paging

/**
 *分页函数
 */
function _paging($_type)
{
    global $_page, $_pageabsolute, $_num, $_id;
    if ($_type == 1) {
        //数字分页
        echo '<div id="page_num">';
        echo '<ul>';
        for ($i = 0; $i < $_pageabsolute; $i++) {
            if ($_page == $i + 1) {
                echo '<li><a href="' . SCRIPT . '.php?' . $_id . 'page=' . ($i + 1) . '" class="selected">' . ($i + 1) . '</a></li>';
            } else {
                echo '<li><a href="' . SCRIPT . '.php?' . $_id . 'page=' . ($i + 1) . '">' . ($i + 1) . '</a></li>';
            }
        }
        echo '</ul>';
        echo '</div>';
    } else {
        if ($_type == 2) {
            //文本分页
            echo '<div id="page_text">';
            echo '<ul>';
            echo '<li>' . $_page . '/' . $_pageabsolute . '页 | </li>';
            echo '<li>共有<strong>' . $_num . '</strong>条数据 | </li>';
            if ($_page == 1) {
                echo '<li>首页 | </li>';
                echo '<li>上一页 | </li>';
            } else {
                echo '<li><a href="' . SCRIPT . '.php">首页</a> | </li>';
                echo '<li><a href="' . SCRIPT . '.php?' . $_id . 'page=' . ($_page - 1) . '">上一页</a> | </li>';
            }
            if ($_page == $_pageabsolute) {
                echo '<li>下一页 | </li>';
                echo '<li>尾页</li>';
            } else {
                echo '<li><a href="' . SCRIPT . '.php?' . $_id . 'page=' . ($_page + 1) . '">下一页</a> | </li>';
                echo '<li><a href="' . SCRIPT . '.php?' . $_id . 'page=' . $_pageabsolute . '">尾页</a></li>';
            }
            echo '</ul>';
            echo '</div>';
        } else {
            _paging(2);
        }
    }
}
开发者ID:zhangwenhua029,项目名称:forum-2,代码行数:47,代码来源:global.func.php

示例7: _fetch_array_list

		<th class="sortableCol">专业</th>
		<th class="sortableCol">培养类型</th>
		<th>审核</th>
	</tr>
	</thead>
	<tbody>
	<?php 
    for ($i = 1; $i <= $pagesize; $i++) {
        $rows = _fetch_array_list($res);
        if ($rows['gm_num'] == '') {
            break;
        }
        echo "<tr><td>{$i}</td><td>{$rows['gm_username']}</td><td>{$rows['gm_num']}</td><td>{$rows['gm_sex']}</td><td>{$rows['gm_grade']}</td><td>{$rows['gm_subject']}</td><td>{$rows['gm_type']}</td><td><a href='stu_date_one.php?num={$rows['gm_num']}'>详情</a> <a href='###' onclick=_confirm('确定审核通过吗?','stu_active.php?action=pass&num={$rows['gm_num']}')>通过</a> <a href='###' onclick=_confirm('确定删除吗?','stu_active.php?action=del&num={$rows['gm_num']}')>删除</a></td></tr>";
    }
    ?>
	</tbody>
</table>

<?php 
    //引入分页
    _paging($_system['stu_active_page']);
    echo "<p class='record'>共有<span>{$num}</span>位用户需要审核</p>";
}
?>

</div>
<?php 
require ROOT_PATH . 'includes/footer_admin.inc.php';
?>
</body>
</html>
开发者ID:bboot9001,项目名称:phpbeginner_gmanage,代码行数:31,代码来源:stu_active.php

示例8: _fetch_array_list

			</tr>
		</thead>
		<tbody>
		<?php 
    for ($i = 1; $i <= $pagesize; $i++) {
        $rows = _fetch_array_list($res);
        if ($rows['gm_num'] == '') {
            break;
        }
        $gm_details = _cut($rows['gm_details'], 10);
        $rows['gm_ftype'] = _check_funds_type($rows['gm_ftype']);
        $rows['gm_money'] = _check_money($rows['gm_money']);
        echo "<tr><td>{$i}</td><td><a href='stu_date_one.php?num={$rows['gm_num']}' class='a'>{$rows['gm_username']}</a></td><td>{$rows['gm_num']}</td><td>{$rows['gm_sex']}</td><td>{$rows['gm_grade']}</td><td>{$rows['gm_subject']}</td><td>{$rows['gm_type']}</td><td>{$rows['gm_time']}</td><td><b>{$rows['gm_money']}</b></td><td title='{$rows['gm_details']}'>{$gm_details}</td><td><a href='###' onclick=_confirm('确定通过该条申请吗?','funds_active.php?action=pass&id={$rows['gm_fid']}')>通过 </a> <a href='###' onclick=_confirm('确定删除该条申请吗?','funds_active.php?action=del&id={$rows['gm_fid']}')>删除</a></td></tr>";
    }
    ?>
		</tbody>
	</table>
<?php 
    //引入分页
    if ($_GET['action'] == '') {
        _paging($_system['funds_admin_page']);
    }
    echo "<p class='record'>共有<span>{$num}</span>条信息需要审核</p>";
}
?>
</div>
<?php 
require ROOT_PATH . 'includes/footer_admin.inc.php';
?>
</body>
</html>
开发者ID:bboot9001,项目名称:phpbeginner_gmanage,代码行数:31,代码来源:funds_active.php

示例9: date

					<div class="reply">
						<p><span style="color:#f93"><b>管理员-回复</b><?php 
            echo date("Y-m-d H:i", strtotime($row["gm_replytime"]));
            ?>
</span></p>
						<?php 
            echo $row['gm_reply'];
            ?>
					</div>
					<?php 
        }
    }
} else {
    echo '你还没有发表任何留言哦~ <a href="message_add_s.php" class="xzfb">现在发表</a>';
}
?>
		</div>
		<!--listmain end-->
		</div>
		<!--list end-->	
		<?php 
//引入分页
_paging($_system['message_page']);
?>

</div>
<?php 
require ROOT_PATH . 'includes/footer_student.inc.php';
?>
</body>
</html>
开发者ID:bboot9001,项目名称:phpbeginner_gmanage,代码行数:31,代码来源:message_s.php

示例10: elseif

            echo "<td><a href='stu_date_one.php?num={$rows['gm_num']}'>详细</a> <a href='###' onclick=_confirm('确定重置该用户密码吗?','user_data.php?action=password_reset&num={$rows['gm_num']}')>重置密码</a></td>";
        } else {
            echo "<td align='center'>/</td>";
        }
    } elseif ($_SESSION['level'] == 3) {
        if ($rows['gm_level'] == 1) {
            echo "<td><a href='stu_date_one.php?num={$rows['gm_num']}'>详细</a> <a href='###' onclick=_confirm('确定重置该用户密码吗?','user_data.php?action=password_reset&num={$rows['gm_num']}')>重置密码</a> <a href='###' onclick=_confirm('确定删除该同学资料吗?','user_data.php?action=del&num={$rows['gm_num']}')>删除</a></td>";
        } elseif ($_SESSION['username'] == $rows['gm_username']) {
            echo "<td><a href='###' onclick=_confirm('确定重置该用户密码吗?','user_data.php?action=password_reset&num={$rows['gm_num']}')>重置密码</a></td>";
        } else {
            echo "<td><a href='###' onclick=_confirm('确定重置该用户密码吗?','user_data.php?action=password_reset&num={$rows['gm_num']}')>重置密码</a>  <a href='###' onclick=_confirm('确定删除该用户资料吗?','user_data.php?action=del&num={$rows['gm_num']}')>删除</a></td>";
        }
    }
    echo "</tr>";
}
?>
		</tbody>
	</table>
<?php 
//引入分页
if ($_GET['action'] == '') {
    _paging($_system['user_date_page']);
}
echo "<p class='record'>本页-超管:<span>{$sadmin}</span> 管理员:<span>{$admin}</span> 普通:<span>{$common}</span></p>";
?>
</div>
<?php 
require ROOT_PATH . 'includes/footer_admin.inc.php';
?>
</body>
</html>
开发者ID:bboot9001,项目名称:phpbeginner_gmanage,代码行数:31,代码来源:user_data.php


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