本文整理汇总了PHP中paging::db方法的典型用法代码示例。如果您正苦于以下问题:PHP paging::db方法的具体用法?PHP paging::db怎么用?PHP paging::db使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类paging
的用法示例。
在下文中一共展示了paging::db方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Acceso
<?php
session_start();
//include_once("../include/db_mysqli.inc");
include_once "../include/template.inc";
include_once "../include/confGral.php";
require "../include/paging_class.php";
include_once "../include/acceso.class.php";
$usuario = new Acceso();
$t = new Template("../templates", "keep");
if ($usuario->havePerm("1", $_SESSION['sesArrPerms'])) {
$paging = new paging(15, 5, "<< prev", "next >>", "(%%number%%) ");
$paging->db("localhost", "nesoftwa_root", ";L9Nehbfaxts", "nesoftwa_LITION");
// fffffffffffffffffffffffffffffffffffffffffffffffffffffff
function explode_keyword($q)
{
//trim
$q = trim($q);
$q = preg_replace("/[\\s]+/", " ", $q);
$mode = "AND ";
$condition = $condition . "usuario like '%{$q}%' " . $mode;
$condition = substr($condition, 0, -4);
return $condition;
}
// fffffffffffffffffffffffffffffffffffffffffffffffffffffff
function showForm($data = "", $msg = "")
{
global $t, $PHP_SELF, $paging, $db2;
$t->set_file("page", "catUsuario.inc.html");
$t->set_var(array("lnTupla" => "", "ACTION" => $PHP_SELF, "MENSAJE" => "", "NUEVO" => "<a href=\"javascript:ventanaNueva('catUsuarioCaptura.php?modo=nuevo',700,700)\">Nuevo</a>"));
// ----------------------------------------------------------------
示例2: Acceso
<?php
session_start();
//include_once("../include/db_mysqli.inc");
include_once "../include/template.inc";
include_once "../include/confGral.php";
require "../include/paging_class.php";
include_once "../include/acceso.class.php";
$usuario = new Acceso();
$t = new Template("../templates", "keep");
$paging = new paging(15, 5, "<< prev", "next >>", "(%%number%%) ");
$paging->db("localhost", "nesoftwa_root", ";L9Nehbfaxts", "nesoftwa_ALMARTCON");
// Identificar si pertenece a una Naviera
$sesIdUsr = $_SESSION['sesIdUsuario'];
$idNaviera = getValueTable("id_naviera", "USUARIO", "id_usuario", $sesIdUsr);
if ($usuario->havePerm("1,3,4", $_SESSION['sesArrPerms'])) {
// fffffffffffffffffffffffffffffffffffffffffffffffffffffff
function explode_keyword($q)
{
//trim
$q = trim($q);
$q = preg_replace("/[\\s]+/", " ", $q);
$mode = "AND ";
if (!empty($q)) {
$condition = $condition . " eir='{$q}' " . $mode;
}
//$condition= substr($condition,0,-4);
return $condition;
}
// fffffffffffffffffffffffffffffffffffffffffffffffffffffff
function explode_keyword2($q)
示例3: explode_keyword1
<?php
session_start();
//include_once("../include/db_mysqli.inc");
include_once "../include/template.inc";
include_once "../include/confGral.php";
require "../include/paging_class.php";
$t = new Template("../templates", "keep");
$paging = new paging(15, 5, "<< prev", "next >>", "(%%number%%) ");
$paging->db("localhost", "nesoftwa_root", ";L9Nehbfaxts", "nesoftwa_MOPSAPRO");
// Identificar si pertenece a una Naviera
$idUsr = $_SESSION['sesIdUsuario'];
$sesIdOficina = $_SESSION['sesIdOficina'];
// fffffffffffffffffffffffffffffffffffffffffffffffffffffff
function explode_keyword1($q)
{
//trim
$q = trim($q);
$q = preg_replace("/[\\s]+/", " ", $q);
$mode = "AND ";
$condition = $condition . "posicion like '%{$q}%' " . $mode;
//$condition= substr($condition,0,-4);
return $condition;
}
// fffffffffffffffffffffffffffffffffffffffffffffffffffffff
function explode_keyword2($q)
{
//trim
$q = trim($q);
//$q= preg_replace("/[\s]+/"," ",$q);
$mode = "AND ";
示例4: Template
<?php
session_start();
//include_once("../include/db_mysqli.inc");
include_once "../include/template.inc";
include_once "../include/confGral.php";
require "../include/paging_class.php";
$t = new Template("../templates", "keep");
$paging = new paging(15, 5, "<< prev", "next >>", "(%%number%%) ");
$paging->db("localhost", "nesoftwa_root", ";L9Nehbfaxts", "nesoftwa_TRANE");
// Identificar si pertenece a una Naviera
$idUsr = $_SESSION['sesIdUsuario'];
$idNaviera = getValueTable("id_naviera", "USUARIO", "id_usuario", $idUsr);
if ($idUsr > 0 && $idNaviera) {
// fffffffffffffffffffffffffffffffffffffffffffffffffffffff
function explode_keyword($q)
{
//trim
$q = trim($q);
$q = str_replace("/[\\s]+/", " ", $q);
$mode = "AND ";
$condition = $condition . " eir like '%{$q}' " . $mode;
//$condition= substr($condition,0,-4);
return $condition;
}
// fffffffffffffffffffffffffffffffffffffffffffffffffffffff
function explode_keyword2($q)
{
//trim
$q = trim($q);
$q = str_replace("/[\\s]+/", " ", $q);
示例5: explode_keyword1
<?php
session_start();
//include_once("../include/db_mysqli.inc");
include_once "../include/template.inc";
include_once "../include/confGral.php";
require "../include/paging_class.php";
$t = new Template("../templates", "keep");
$paging = new paging(15, 5, "<< prev", "next >>", "(%%number%%) ");
$paging->db("localhost", "nesoftwa_root", ";L9Nehbfaxts", "nesoftwa_ANAKOSTA");
// Identificar si pertenece a una Naviera
$idUsr = $_SESSION['sesIdUsuario'];
$idNaviera = getValueTable("id_naviera", "USUARIO", "id_usuario", $idUsr);
// fffffffffffffffffffffffffffffffffffffffffffffffffffffff
function explode_keyword1($q)
{
//trim
$q = trim($q);
$q = preg_replace("/[\\s]+/", " ", $q);
$idConte = getValueTable("id_contenedor", "CONTENEDOR", "numero", $q);
if (empty($idConte) && !empty($q)) {
$idConte = '-';
}
$mode = "AND ";
$condition = $condition . "i.id_contenedor like '{$idConte}%' " . $mode;
//$condition= substr($condition,0,-4);
return $condition;
}
// fffffffffffffffffffffffffffffffffffffffffffffffffffffff
function explode_keyword2($q)
{