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


PHP paging::setRegPerPage方法代码示例

本文整理汇总了PHP中paging::setRegPerPage方法的典型用法代码示例。如果您正苦于以下问题:PHP paging::setRegPerPage方法的具体用法?PHP paging::setRegPerPage怎么用?PHP paging::setRegPerPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在paging的用法示例。


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

示例1: auth

         You should have received a copy of the GNU General Public License
         along with Foobar; if not, write to the Free Software
         Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
session_start();
include "../../includes/include_geral.inc.php";
include "../../includes/include_geral_II.inc.php";
include 'includes/header.php';
include "../../includes/classes/paging.class.php";
$_SESSION['s_page_admin'] = $_SERVER['PHP_SELF'];
print "<HTML>";
print "<BODY bgcolor='" . BODY_COLOR . "'>";
$auth = new auth();
$auth->testa_user($_SESSION['s_usuario'], $_SESSION['s_nivel'], $_SESSION['s_nivel_desc'], 1);
$PAGE = new paging();
$PAGE->setRegPerPage(10);
$fecha = "";
if (isset($_GET['popup'])) {
    $fecha = "window.close()";
} else {
    $fecha = "history.back()";
}
print "<BR><B>" . TRANS('TTL_ADMIN_MANUFAC') . "</B><BR>";
print "<FORM method='POST' action='" . $_SERVER['PHP_SELF'] . "' onSubmit=\"return valida()\">";
if (!isset($_GET['cellStyle'])) {
    $cellStyle = "cellpadding='5' cellspacing='0'";
} else {
    $cellStyle = "cellpadding='0' cellspacing='1'";
}
print "<TABLE border='0' align='left' " . $cellStyle . "  width='100%' bgcolor='" . BODY_COLOR . "'>";
$query = "SELECT f.*, t.* FROM fabricantes as f, tipo_item as t " . "WHERE  f.fab_tipo = t.tipo_it_cod ";
开发者ID:GeorgeAlexandre,项目名称:yipservicedesk,代码行数:31,代码来源:fabricantes.php

示例2: auth

$OPERADOR_AREA = false;
if (isset($_SESSION['s_area_admin']) && $_SESSION['s_area_admin'] == '1' && $_SESSION['s_nivel'] != '1') {
    $OPERADOR_AREA = true;
}
print "<HTML>";
print "<BODY bgcolor='" . BODY_COLOR . "'>";
$auth = new auth();
if ($OPERADOR_AREA) {
    $auth->testa_user($_SESSION['s_usuario'], $_SESSION['s_nivel'], $_SESSION['s_nivel_desc'], 2);
} else {
    $auth->testa_user($_SESSION['s_usuario'], $_SESSION['s_nivel'], $_SESSION['s_nivel_desc'], 1);
}
print "<BR><B>" . TRANS('ADM_PROBS') . "</B><BR>";
print "<FORM method='POST' action='" . $_SERVER['PHP_SELF'] . "' onSubmit=\"return valida()\">";
$PAGE = new paging("PRINCIPAL");
$PAGE->setRegPerPage($_SESSION['s_page_size']);
if (!isset($_GET['cellStyle'])) {
    $cellStyle = "cellpadding='5' cellspacing='0'";
} else {
    $cellStyle = "cellpadding='0' cellspacing='1'";
}
print "<TABLE border='0' align='left' " . $cellStyle . "  width='100%' bgcolor='" . BODY_COLOR . "'>";
if (isset($_POST['search'])) {
    $search = $_POST['search'];
} else {
    $search = "";
}
$qry_config = "SELECT * FROM config ";
$exec_config = mysql_query($qry_config) or die(TRANS('ERR_TABLE_CONFIG'));
$row_config = mysql_fetch_array($exec_config);
$WHERE = false;
开发者ID:JusCes,项目名称:ocomonv3,代码行数:31,代码来源:problemas.php

示例3: auth

         You should have received a copy of the GNU General Public License
         along with Foobar; if not, write to the Free Software
         Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
session_start();
include "../../includes/include_geral.inc.php";
include "../../includes/include_geral_II.inc.php";
include "../../includes/classes/paging.class.php";
$_SESSION['s_page_invmon'] = $_SERVER['PHP_SELF'];
print "<HTML>";
print "<BODY bgcolor='" . BODY_COLOR . "'>";
$auth = new auth();
$auth->testa_user($_SESSION['s_usuario'], $_SESSION['s_nivel'], $_SESSION['s_nivel_desc'], 2);
$PAGE = new paging("PRINCIPAL");
$PAGE->setRegPerPage(5);
print "<BR><B>" . TRANS('TTL_ADMIN_DOC_CAD') . "</B><BR>";
print "<FORM method='POST' action='" . $_SERVER['PHP_SELF'] . "' ENCTYPE='multipart/form-data' onSubmit=\"return valida()\">";
if (!isset($_GET['cellStyle'])) {
    $cellStyle = "cellpadding='5' cellspacing='0'";
} else {
    $cellStyle = "cellpadding='0' cellspacing='1'";
}
print "<TABLE border='0' align='left' " . $cellStyle . "  width='100%' bgcolor='" . BODY_COLOR . "'>";
$query = "SELECT mat.* , marc.* \nFROM materiais AS mat LEFT JOIN marcas_comp as marc ON mat.mat_modelo_equip = marc.marc_cod ";
if (isset($_GET['cod'])) {
    $query .= " WHERE mat.mat_cod = " . $_GET['cod'] . " ";
}
if (empty($ordena)) {
    $ordena = "mat_cod";
}
开发者ID:JusCes,项目名称:ocomonv3,代码行数:30,代码来源:documentos.php


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