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


PHP paging::db方法代码示例

本文整理汇总了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>"));
        // ----------------------------------------------------------------
开发者ID:nesmaster,项目名称:lition,代码行数:31,代码来源:catUsuario.php

示例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)
开发者ID:nesmaster,项目名称:almartcon,代码行数:31,代码来源:invInSearch2.php

示例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 ";
开发者ID:nesmaster,项目名称:mopsapro,代码行数:31,代码来源:logConsAereo.php

示例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);
开发者ID:nesmaster,项目名称:trane,代码行数:31,代码来源:navInvInAr.php

示例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)
{
开发者ID:nesmaster,项目名称:anakosta,代码行数:31,代码来源:navInvGen13.php


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