Bugfix
This commit is contained in:
parent
6c46ad93cd
commit
5a6bcff786
@ -102,8 +102,10 @@ if ($resql)
|
||||
{
|
||||
$num = $db->num_rows($resql);
|
||||
$i = 0;
|
||||
|
||||
$urladd = "&type=".$_GET["type"]."&search_prefix=".$_GET["search_prefix"]."&search_libelle=".$_GET["search_libelle"];
|
||||
|
||||
print_barre_liste("Prefixs", $page, "prefixs.php", "&type=".$_GET["type"], $sortfield, $sortorder, '', $num);
|
||||
print_barre_liste("Prefixs", $page, "prefixs.php", $urladd, $sortfield, $sortorder, '', $num);
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre">';
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
/* Copyright (C) 2004-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -21,7 +21,6 @@
|
||||
*/
|
||||
require("./pre.inc.php");
|
||||
|
||||
|
||||
$page = $_GET["page"];
|
||||
$sortorder = $_GET["sortorder"];
|
||||
$sortfield = $_GET["sortfield"];
|
||||
@ -61,8 +60,6 @@ $offset = $conf->liste_limit * $page ;
|
||||
$pageprev = $page - 1;
|
||||
$pagenext = $page + 1;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Mode Liste
|
||||
*
|
||||
@ -70,7 +67,6 @@ $pagenext = $page + 1;
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$sql = "SELECT t.libelle as tarif, p.prefix";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_tarif as t";
|
||||
$sql .= "," . MAIN_DB_PREFIX."telephonie_prefix as p";
|
||||
@ -96,12 +92,14 @@ if ($result)
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
|
||||
print_barre_liste("Prefix", $page, "prefix.php", "&type=".$_GET["type"], $sortfield, $sortorder, '', $num);
|
||||
$urladd = "&type=".$_GET["type"]."&search_prefix=".$_GET["search_prefix"]."&search_tarif=".$_GET["search_tarif"];
|
||||
|
||||
print_barre_liste("Prefix", $page, "prefix.php", $urladd, $sortfield, $sortorder, '', $num);
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre">';
|
||||
|
||||
print_liste_field_titre("Tarif","prefix.php","f.nom");
|
||||
print_liste_field_titre("Tarif","prefix.php","f.nom","&search_prefix=");
|
||||
|
||||
print_liste_field_titre("Prefix","prefix.php","libelle", "&type=".$_GET["type"]);
|
||||
print '<td> </td>';
|
||||
@ -111,8 +109,8 @@ if ($result)
|
||||
print '<tr class="liste_titre">';
|
||||
print '<form action="prefix.php" method="GET">';
|
||||
print '<input type="hidden" name="type" value="'.$_GET["type"].'">';
|
||||
print '<td><input type="text" name="search_tarif" size="20" value="'.$_GET["search_tarif"].'"></td>';
|
||||
print '<td><input type="text" name="search_prefix" size="8" value="'.$_GET["search_prefix"].'"></td>';
|
||||
print '<td width="75%"><input type="text" name="search_tarif" size="20" value="'.$_GET["search_tarif"].'"></td>';
|
||||
print '<td width="25%"><input type="text" name="search_prefix" size="8" value="'.$_GET["search_prefix"].'"></td>';
|
||||
|
||||
print '<td><input type="submit"></td>';
|
||||
print '</form>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user