Skip to content
Snippets Groups Projects
Commit d8bd1006 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Qual: Better support for other databases

parent 0b5ff31b
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,9 @@
*/
/**
\file htdocs/admin/system/database-tables.php
\brief Page d'infos des tables de la base
\version $Id$
* \file htdocs/admin/system/database-tables.php
* \brief Page d'infos des tables de la base
* \version $Id$
*/
require("./pre.inc.php");
......@@ -134,15 +134,14 @@ else
if ($base == 2)
{
print '<br>';
print '<table class="noborder">';
print '<tr class="liste_titre">';
print '<td>'.$langs->trans("TableName").'</td>';
print '<td>Nombre de tuples lu</td>';
print '<td>Nb of tuples</td>';
print '<td>Nb index fetcher.</td>';
print '<td>Nbre de tuples inserer</td>';
print '<td>Nbre de tuple modifier</td>';
print '<td>Nbre de tuple supprimer</td>';
print '<td>Nb tuples insert</td>';
print '<td>Nb tuples modify</td>';
print '<td>Nb tuples delete</td>';
print "</tr>\n";
$sql = "select relname,seq_tup_read,idx_tup_fetch,n_tup_ins,n_tup_upd,n_tup_del from pg_stat_user_tables;";
......@@ -157,7 +156,7 @@ else
$row = $db->fetch_row($resql);
$var=!$var;
print "<tr $bc[$var]>";
print '<td align="right">'.$row[0].'</td>';
print '<td>'.$row[0].'</td>';
print '<td align="right">'.$row[1].'</td>';
print '<td align="right">'.$row[2].'</td>';
print '<td align="right">'.$row[3].'</td>';
......
......@@ -48,7 +48,7 @@ print_fiche_titre($langs->trans("DatabaseConfiguration"),'','setup');
// Database
print '<table class="noborder" width="100%">';
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Database")."</td></tr>\n";
print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>" . $db->getVersion() . "</td></tr>\n";
print "<tr $bc[0]><td width=\"280\">".$langs->trans("Version")."</td><td>" . $db->getLabel()." ".$db->getVersion() . "</td></tr>\n";
print "<tr $bc[1]><td>".$langs->trans("DatabaseServer")."</td><td>" . $conf->db->host . "</td></tr>\n";
print "<tr $bc[0]><td>".$langs->trans("DatabasePort")."</td><td>" . $conf->db->port . "</td></tr>\n";
print "<tr $bc[1]><td>".$langs->trans("DatabaseName")."</td><td>" . $conf->db->name . "</td></tr>\n";
......
......@@ -605,6 +605,7 @@ PhpWebLink=Web-Php link
Pear=Pear
PearPackages=Pear Packages
Database=Database
DatabaseServer=Database host
DatabaseName=Database name
DatabasePort=Database port
DatabaseConfiguration=Database setup
......
......@@ -605,6 +605,7 @@ PhpWebLink = Lien Web-Php
Pear = Pear
PearPackages = Packages Pear
Database = Base de données
DatabaseServer=Host de la base de données
DatabaseName = Nom de la base de données
DatabasePort = Port de la base de données
DatabaseConfiguration = Configuration de la base de données
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment