summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/index.php
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2015-04-20 10:56:54 +0000
committerramon <ramongomez@us.es>2015-04-20 10:56:54 +0000
commit1a2fa9d82bafd3ef8e0d703bf715fe3e58853d0d (patch)
tree1e008f200ff4b413d0807eee03df75ef42f39fab /admin/WebConsole/index.php
parentc916af9faafcd8fa120aeaf9092c0847aa09183a (diff)
#673: Actualizar código incluido en OepnGnSys 1.0.6 sobre la rama {{{version1.1}}} para desarrollar la nueva versión.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4609 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/index.php')
-rw-r--r--admin/WebConsole/index.php22
1 files changed, 18 insertions, 4 deletions
diff --git a/admin/WebConsole/index.php b/admin/WebConsole/index.php
index 11eb7746..61ea54b9 100644
--- a/admin/WebConsole/index.php
+++ b/admin/WebConsole/index.php
@@ -25,10 +25,6 @@ include_once("./includes/CreaComando.php");
include_once("./clases/AdoPhp.php");
include_once("./includes/HTMLSELECT.php");
-// Valores por defecto.
-$herror=0;
-$idcentro="";
-
// Control de errores.
if (isset($_GET["herror"])) $herror=$_GET["herror"];
if (isset($_POST["herror"])) $herror=$_POST["herror"];
@@ -39,10 +35,28 @@ if (!empty ($parmidi) and file_exists ("idiomas/php/$parmidi/acceso_$parmidi.php
}
include ("idiomas/php/$idi/acceso_$idi.php");
+$busidcentro="";
$cmd=CreaComando($cnx); // Crea objeto comando
if (!$cmd)
die($TbMsg["ACCESS_ERROR"]);
+ $rs=new Recordset;
+// $cmd->texto="SELECT * FROM centros WHERE idcentro='$idc'";
+ $cmd->texto="SELECT * FROM centros ";
+ $rs->Comando=&$cmd;
+ if (!$rs->Abrir()) return(false); // Error al abrir recordset
+ $rs->Primero();
+ if (!$rs->EOF){
+ $busidcentro=$rs->campos["identidad"];
+ }$rs->Cerrar();
+
+// Valores por defecto.
+$herror=0;
+if (empty($busidcentro)){
+ $idcentro="";
+}else{
+ $idcentro=$busidcentro;
+}
?>
<html>
<head>