本文整理汇总了PHP中page::fenye方法的典型用法代码示例。如果您正苦于以下问题:PHP page::fenye方法的具体用法?PHP page::fenye怎么用?PHP page::fenye使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类page
的用法示例。
在下文中一共展示了page::fenye方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: page
<td colspan="2"><input id="btn_search" type="submit" value="提交"></td>
</tr>
</table>
</form>
</div>
<div class="wrap">
<?php
include "../inc/class/page_courseUnit.php";
$f = new page();
$self = $_SERVER["PHP_SELF"];
$userid = 0;
@($aim = isset($_GET["aim"]) ? $_GET["aim"] : 1);
if ($_SESSION["role"] == ADMIN) {
if (isset($_GET["userid"])) {
$userid = $_GET["userid"];
}
} else {
$userid = $_SESSION["userid"];
}
$linkPage = "{$self}";
//$userid = isset($_GET["userid"])?$_GET["userid"]:0;
if ($aim == 1) {
//为课程目录分配课程单元,显示版本信息
$f->fenye($page, $order, $linkPage, $userid, $keyword, 0, 1, 1);
} else {
$f->fenye($page, $order, $linkPage, $userid, $keyword, 0, 1, 0);
}
//为课程单元组分配课程单元,不显示版本信息
?>
</div>
</div>
示例2: page
<div class="wrap">
<?php
include "../inc/class/page_courseUnit.php";
$f = new page();
$self = $_SERVER["PHP_SELF"];
$userid = 0;
if ($_SESSION["role"] == ADMIN) {
if (isset($_GET["userid"])) {
$userid = $_GET["userid"];
}
} else {
$userid = $_SESSION["userid"];
}
$linkPage = "{$self}";
//$userid = isset($_GET["userid"])?$_GET["userid"]:0;
$f->fenye($page, $order, $linkPage, $userid, $keyword);
?>
</div>
</div>
</div>
</div> <div class="clear"> </div> <!-- 'clearing' div to make sure that footer stays below the main and right column sections -->
</div> <!-- end of #main" started at the end of banner.inc.php -->
<div class="push"></div>
</div> <!-- end of #wrapper section -->
<?php
include "../inc/footer.php";
?>
</body>
示例3: page
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="提交"></td>
</tr>
</table>
</form>
</div>
<div class="wrap">
<?php
include "../inc/class/page_user.php";
$f = new page();
$by = "order by time desc";
$self = $_SERVER["PHP_SELF"];
$linkPage = "{$self}";
$f->fenye($page, $order, $linkPage, 2, $username, $realname);
?>
</div>
</div>
</div>
</div> <div class="clear"> </div> <!-- 'clearing' div to make sure that footer stays below the main and right column sections -->
</div> <!-- end of #main" started at the end of banner.inc.php -->
<div class="push"></div>
</div> <!-- end of #wrapper section -->
<?php
include "../inc/footer.php";
?>
</body>
示例4: page
include "../inc/class/page_course.php";
//呈现课程列表
$page_course = new page();
//初始化课程列表页面
$self = $_SERVER["PHP_SELF"];
$userid = 0;
if ($_SESSION["role"] == ADMIN) {
if (isset($_GET["userid"])) {
$userid = $_GET["userid"];
}
} else {
$userid = $_SESSION["userid"];
}
$linkPage = "{$self}";
//$userid = isset($_GET["userid"])?$_GET["userid"]:0;
$page_course->fenye($page, $order, $linkPage, $userid, $keyword);
//课程列表页面实现分页功能
?>
</div>
</div>
</div>
</div> <div class="clear"> </div> <!-- 'clearing' div to make sure that footer stays below the main and right column sections -->
</div> <!-- end of #main" started at the end of banner.inc.php -->
<div class="push"></div>
</div> <!-- end of #wrapper section -->
<?php
include "../inc/footer.php";
?>