$page_url = "?page=ptp-video/ptp-video.php"; $op_url = "{$page_url}&file=video_op.php&id="; $pagesize = 5; $page_tab = 9; //分页处显示的可点击分页数. $page = isset($_GET['p']) ? (int) $_GET['p'] : 1; if ($page < 1) { $page = 1; } $video_table = PtpVideoDB::$video_table; $keywords = null; $keyword = isset($_POST['keyword']) ? $_POST['keyword'] : null; if ($keyword) { $keywords = "title LIKE '%{$keyword}%'"; } $total = PtpVideoDB::allCount($video_table, "*", $keywords); $pstart = ($page - 1) * $pagesize; ?> <link rel='stylesheet' href="<?php echo PtpVideoFunc::pluginCss('video.css'); ?> " type='text/css' media='all' /> <script type="text/javascript" src="<?php echo PtpVideoFunc::pluginJs('video.js'); ?> "></script> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr valign="top"> <td class="content">
$page_url = "?page=" . PtpVideo::$_category_url; $op_url = "{$page_url}&file=category_op.php&id="; $pagesize = 30; $page_tab = 9; //分页处显示的可点击分页数. $page = isset($_GET['p']) ? (int) $_GET['p'] : 1; if ($page < 1) { $page = 1; } $category_table = PtpVideoDB::$category_table; $keywords = null; $keyword = isset($_POST['keyword']) ? $_POST['keyword'] : null; if ($keyword) { $keywords = "`name` LIKE '%{$keyword}%'"; } $total = PtpVideoDB::allCount($category_table, "*", $keywords); $pstart = ($page - 1) * $pagesize; ?> <link rel='stylesheet' href="<?php echo PtpVideoFunc::pluginCss('video.css'); ?> " type='text/css' media='all' /> <script type="text/javascript" src="<?php echo PtpVideoFunc::pluginJs('video.js'); ?> "></script> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr valign="top"> <td class="content">