1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
| <!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Contrôles des bases de données</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<style type="text/css">
table {
border-style: hidden !important;
}
table tr {
border-style: hidden !important;
}
table td {
border-style: hidden !important;
}
table th {
border-style: hidden !important;
}
</style>
<script type="text/javascript">
</script>
</head>
<body>
<?php
include("entete.php");
?>
<div id="corps">
<h1> Developper sous PostgreSQl</h1>
<BR></BR>
<h1> Selectionnez :</h1>
<?php
echo"<BR></BR>";
?>
<h2> -1- Toutes bases confondues :</h2>
<?php
echo "<table><tr>";
$row["instance"] = "tous";
$par1 = "toutes";
$row["instance_1"] = "Toutes";
//$serveur="tous";
echo '<td><option><button onclick="window.location.href=\'liste_appli.php?type='. $row["instance"] .'¶m1='.$par1.'\'">'.$row["instance_1"].'</button></option></td>';
echo "</table>";
?>
<h2> -2- Les environnements :</h2>
<?php
echo "<table><tr>";
include('connexion.php');
$par1 = "env";
$res = "SELECT DISTINCT environnement FROM resultat ORDER BY environnement ASC";
$result = pg_query($res) or die('Échec de la requête : ' . pg_last_error());
$res = pg_query("SELECT DISTINCT environnement FROM resultat ORDER BY environnement ASC");
while ($row = pg_fetch_array($result, null, PGSQL_ASSOC))
{
echo '<td><option><button onclick="window.location.href=\'liste_appli.php?type='. $row["environnement"] .'¶m1='.$par1.'\'">'.$row["environnement"].'</button></option></td>';
}
include('closebase.php');
echo "</table>";
?>
<h2> -3- Les serveurs :</h2>
<?php
$i=0;
$j=1;
echo "<table><tr>";
include('connexion.php');
$par1 = "serv";
$res = "SELECT DISTINCT serveur FROM resultat ORDER BY serveur ASC";
$result = pg_query($res) or die('Échec de la requête : ' . pg_last_error());
$res = pg_query("SELECT DISTINCT serveur FROM resultat ORDER BY serveur ASC");
while($row = pg_fetch_array($result, null, PGSQL_ASSOC)){
if ($i == 5 )
{
echo '<td><option><button onclick="window.location.href=\'liste_appli.php?type='. $row["serveur"].'¶m1='.$par1.'\'">'.$row["serveur"].'</button></option></td>';
echo "</tr>";
echo "<tr>";
$i=1;
}
Else
{
echo '<td><option><button onclick="window.location.href=\'liste_appli.php?type='. $row["serveur"].'¶m1='.$par1.'\'">'.$row["serveur"].'</button></option></td>';
$j=1;
$i=$i+$j;
}
}
include('closebase.php');
echo "</table>";
?>
<h2> -4- Les instances :</h2>
<?php
$i=0;
$j=1;
echo "<table><tr>";
include('connexion.php');
$par1 = "inst";
$res = "SELECT DISTINCT instance FROM resultat ORDER BY instance ASC";
$result = pg_query($res) or die('Échec de la requête : ' . pg_last_error());
$res = pg_query("SELECT DISTINCT instance FROM resultat ORDER BY instance ASC");
while($row = pg_fetch_array($result, null, PGSQL_ASSOC)){
//$req_toutes = "SELECT * FROM `resultat` ORDER BY `serveur` and 'base' ASC LIMIT 0 , 2000"; //AND etat='stoppe'
if ($i == 5 )
{
echo '<td><option><button onclick="window.location.href=\'liste_appli.php?type='. $row["instance"].'¶m1='.$par1.'\'">'.$row["instance"].'</button></option></td>';
echo "<tr>";
$i=0;
$j=1;
}
Else
{
echo '<td><option><button onclick="window.location.href=\'liste_appli.php?type='. $row["instance"].'¶m1='.$par1.'\'">'.$row["instance"].'</button></option></td>';
$i=$i+$j;
}
}
include('closebase.php');
echo "</table>";
?>
<h2> -5- Les bases :</h2>
<?php
$i=0;
$j=1;
echo "<table><tr>";
include('connexion.php');
$par1 = "base";
$res = "SELECT DISTINCT base FROM resultat ORDER BY base ASC";
$result = pg_query($res) or die('Échec de la requête : ' . pg_last_error());
$res = pg_query("SELECT DISTINCT base FROM resultat ORDER BY base ASC");
while($row = pg_fetch_array($result, null, PGSQL_ASSOC)){
//$req_toutes = "SELECT * FROM `resultat` ORDER BY `serveur` and 'base' ASC LIMIT 0 , 2000"; //AND etat='stoppe'
if ($i == 5 )
{
echo '<td><option><button onclick="window.location.href=\'liste_appli.php?type='. $row["base"].'¶m1='.$par1.'\'">'.$row["base"].'</button></option></td>';
echo "<tr>";
$i=0;
$j=1;
}
Else
{
echo '<td><option><button onclick="window.location.href=\'liste_appli.php?type='. $row["base"].'¶m1='.$par1.'\'">'.$row["base"].'</button></option></td>';
$i=$i+$j;
}
}
include('closebase.php');
echo "</table>";
?>
<h2> -6- Les bases :</h2>
<?php
include('connexion.php');
$par1 = "base";
$res = "SELECT DISTINCT base FROM resultat ORDER BY base ASC";
$result = pg_query($res) or die('Échec de la requête : ' . pg_last_error());
$res = pg_query("SELECT DISTINCT base FROM resultat ORDER BY base ASC");
//echo '<form action="liste_appli.php" method="get">';
echo '<form action="liste_appli.php" method="GET">';
echo '<select name="base">';
while($row = pg_fetch_array($result, null, PGSQL_ASSOC))
{
//echo "<option>".$row['base']."</option><br>";
//echo '<td><option><INPUT value ='.$row["base"].'¶m1='.$par1.'\'">'.$row["base"].'</input></td></option>';
echo '<option value="'.$row["base"].'" selected="selected">'.$row['base'].'</option>';
}
echo '</select>';
echo '<input name="type" value="'.$row["base"].'">';
echo '<input type="submit" name="base" value="Valider"></input>' ;
//echo "'.$row["base"].'";
//$row = $_POST["type"];
//$par1= $_POST["param1"];
echo '</form>';
include('closebase.php');
?>
<BR>
</BR>
<span id="infohide" style='display: none; position: absolute; right: 0px; bottom: 0px;'>
<p>
Fichiers RRD : <br/>
<?php
free("/home/palmae07/remote-mon/rrdfiles");
?>
</p>
<p>
Pages WEB :<br/>
<?php
free("/var/www/vhosts/metrologie.infocom.eic.intra");
?>
<form>
<input type="button" value="Cacher infos serveur web" onclick="cache('infohide');montre('infoshow');">
</form>
</p>
</span>
<span id="infoshow" style='position: absolute; right: 0px; bottom: 0px;'>
<p>
<form>
<input type="button" value="Montrer infos serveur web" onclick="montre('infohide');cache('infoshow');">
</form>
</p>
</span>
<p style='position: absolute; left: 0px; bottom: 0px;'> Page générée le 30-09-2013 à 11:51</p>
</div>
<script type="text/javascript">
<!--
select();
//-->
</script>
</body>
</html> |
Partager