summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/images
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2012-03-20 12:12:59 +0000
committeririna <irinagomez@us.es>2012-03-20 12:12:59 +0000
commit6d356fe505a23c117fbb3a84b4289b10a16cc68b (patch)
treeb9d0e18a50e87ae25e03bad3e559c99484fc2632 /admin/WebConsole/images
parentea60f4177485729fd840a668fa69e226497f7d08 (diff)
version 1.0.4 #245 Internacionalizacion: botones acceptar y gestion iconos + cambio variable obsoleta HTTP_POST_FILES por _FILES
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2904 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/images')
-rw-r--r--admin/WebConsole/images/L_Iconos.php39
-rw-r--r--admin/WebConsole/images/M_Iconos.js2
-rw-r--r--admin/WebConsole/images/M_Iconos.php83
3 files changed, 70 insertions, 54 deletions
diff --git a/admin/WebConsole/images/L_Iconos.php b/admin/WebConsole/images/L_Iconos.php
index 6326faa5..9c03528a 100644
--- a/admin/WebConsole/images/L_Iconos.php
+++ b/admin/WebConsole/images/L_Iconos.php
@@ -13,6 +13,7 @@ include_once("../clases/XmlPhp.php");
include_once("../clases/MenuContextual.php");
include_once("../includes/CreaComando.php");
include_once("../includes/HTMLCTESELECT.php");
+include_once("../idiomas/php/".$idioma."/iconos_".$idioma.".php");
//-------------------------------------------------------------------------------------------------------------------------------------------------
// Captura de parámetros
//-------------------------------------------------------------------------------------------------------------------------------------------------
@@ -36,7 +37,7 @@ $cmd->texto.=" order by idtipoicono,descripcion ";
$rs=new Recordset;
$rs->Comando=&$cmd;
if (!$rs->Abrir())
- RedireccionaError("Fallo al abrir la tabla: Iconos");
+ RedireccionaError($TbMsg["ERROR_SELECT"]);
?>
<!--------------------------------------------------------------------------------------------------------------------------------------------------->
<HTML>
@@ -49,20 +50,21 @@ var NS=(navigator.appName=="Netscape");
</SCRIPT>
<SCRIPT language="javascript" src="../clases/jscripts/MenuContextual.js"></SCRIPT>
<SCRIPT language="javascript" src="L_Iconos.js"></SCRIPT>
+<? echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/iconos_'.$idioma.'.js"></SCRIPT>'?>
</HEAD>
<BODY OnContextMenu="return false">
- <P align="center"><SPAN class=textos>____ Opciones de búsqueda ____</SPAN></P>
+ <P align="center"><SPAN class=textos><? echo $TbMsg["SEARCH_OPT"]; ?> </SPAN></P>
<FORM name="fdatos" action="L_Iconos.php" method="post">
<INPUT type=hidden name=identificador value="0">
<TABLE align=center class=tabla_busquedas>
<!--------------------------------------------------------------------------------------------------------------------------------------------------->
<TR>
- <TH>&nbsp;Tipo&nbsp;</TD>
+ <TH>&nbsp;<? echo $TbMsg["TYPE"] ?>&nbsp;</TD>
<TD ><?
$parametros="0=".chr(13);
- $parametros.="1=iconos web".chr(13);
- $parametros.="2=iconos items".chr(13);
- $parametros.="3=Fondo menu";
+ $parametros.=$TbMsg["SELECT_WEB"] .chr(13);
+ $parametros.=$TbMsg["SELECT_ITEMS"] .chr(13);
+ $parametros.=$TbMsg["SELECT_MENU"] ;
echo '<TD>'.HTMLCTESELECT($parametros, "idtipoicono","estilodesple","",$idtipoicono,100).'</TD>';?>
</TD>
</TR>
@@ -73,12 +75,12 @@ var NS=(navigator.appName=="Netscape");
<P align=center><A href="#"><img border=0 src="../images/iconos/busquedas.gif" onclick="document.fdatos.submit()" alt="Buscar"></A></P>
</FORM>
<!--------------------------------------------------------------------------------------------------------------------------------------------------->
-<P align="center"><SPAN class=textos>Registros encontrados : <? echo $rs->numeroderegistros?></SPAN></P>
+<P align="center"><SPAN class=textos><? echo $TbMsg["SEARCH_RESULT"]. $rs->numeroderegistros?></SPAN></P>
<TABLE align="center" class="tabla_listados">
<TR>
<TH align="center">A</TH>
- <TH align="center">&nbsp;<? echo utf8_encode(Descripción)?>&nbsp;</TH>
- <TH align="center">&nbsp;Nombre&nbsp;</TH>
+ <TH align="center">&nbsp;<? echo $TbMsg["DESCRIP"] ?>&nbsp;</TH>
+ <TH align="center">&nbsp;<? echo $TbMsg["NAME"] ?>&nbsp;</TH>
<TH align="center">&nbsp;</TH>
<TH align="center">&nbsp;T&nbsp;</TH>
@@ -90,7 +92,7 @@ var NS=(navigator.appName=="Netscape");
while (!$rs->EOF){?>
<TR>
<TD align=center><IMG id=<?=$rs->campos["idicono"]?> style="cursor:hand" onclick="menu_contextual(this)" src="../images/iconos/administrar_off.gif"></TD>
- <TD>&nbsp;<? echo basename($rs->campos["descripcion"])?>&nbsp;</TD>
+ <TD>&nbsp;<? echo ( $TbMsg[basename($rs->campos["descripcion"])] ) ? $TbMsg[basename($rs->campos["descripcion"])] : basename($rs->campos["descripcion"]); ?>&nbsp;</TD>
<TD>&nbsp;<? echo basename($rs->campos["urlicono"])?>&nbsp;</TD>
<TD align=center>&nbsp;<IMG src="./iconos/<? echo $rs->campos["urlicono"] ?>"
@@ -110,16 +112,21 @@ var NS=(navigator.appName=="Netscape");
//-------------------------------------------------------------------------------------------------------------------------------------------------
$flotante=new MenuContextual(); // Crea objeto MenuContextual
-$XMLcontextual=CreacontextualXMLMenu(); // Crea contextual de las acciones
+$XMLcontextual=CreacontextualXMLMenu($TbMsg); // Crea contextual de las acciones
echo $flotante->CreaMenuContextual($XMLcontextual);
+
+
?>
+
+
+
</BODY>
</HTML>
<?
//-------------------------------------------------------------------------------------------------------------------------------------------------
// Menus contextuales
//-------------------------------------------------------------------------------------------------------------------------------------------------
-function CreacontextualXMLMenu(){
+function CreacontextualXMLMenu( $TbMsg ){
$layerXML='<MENUCONTEXTUAL';
$layerXML.=' maxanchu=110';
@@ -133,12 +140,12 @@ function CreacontextualXMLMenu(){
$layerXML.='<ITEM';
$layerXML.=' alpulsar="consultar()"';
$layerXML.=' imgitem="../images/iconos/consultar.gif"';
- $layerXML.=' textoitem="Consultar"';
+ $layerXML.=' textoitem="'. $TbMsg["MENU_CONS"] .'"';
$layerXML.='></ITEM>';
$layerXML.='<ITEM';
$layerXML.=' alpulsar="modificar()"';
- $layerXML.=' textoitem="Modificar"';
+ $layerXML.=' textoitem="'.$TbMsg["MENU_REPLACE"].'"';
$layerXML.=' imgitem="../images/iconos/modificar.gif"';
$layerXML.='></ITEM>';
@@ -148,10 +155,12 @@ function CreacontextualXMLMenu(){
$layerXML.='<ITEM';
$layerXML.=' alpulsar="borrar()"';
$layerXML.=' imgitem="../images/iconos/eliminar.gif"';
- $layerXML.=' textoitem="Eliminar"';
+ $layerXML.=' textoitem="'. $TbMsg["MENU_DEL"]. '"';
$layerXML.='></ITEM>';
$layerXML.='</MENUCONTEXTUAL>';
return($layerXML);
}
+
+
?>
diff --git a/admin/WebConsole/images/M_Iconos.js b/admin/WebConsole/images/M_Iconos.js
index a58d4a99..1528f710 100644
--- a/admin/WebConsole/images/M_Iconos.js
+++ b/admin/WebConsole/images/M_Iconos.js
@@ -77,7 +77,7 @@ function Confirmar() {
function comprobar_datos(){
if (document.fdatos.descripcion.value==""){
- alert("Descripcion es un dato obligatorio")
+ alert(TbMsg["DESCRIP"]);
document.forms.fdatos.descripcion.focus()
return(false)
}
diff --git a/admin/WebConsole/images/M_Iconos.php b/admin/WebConsole/images/M_Iconos.php
index 98019e54..c0e1ef76 100644
--- a/admin/WebConsole/images/M_Iconos.php
+++ b/admin/WebConsole/images/M_Iconos.php
@@ -15,6 +15,7 @@ include_once("../includes/HTMLCTESELECT.php");
include_once("../clases/SockHidra.php");
include_once("../includes/FicherosPost.php");
include_once("../idiomas/php/".$idioma."/iconos_".$idioma.".php");
+
//-------------------------------------------------------------------------------------------------------------------------------------------------
// Captura de parámetros
//-------------------------------------------------------------------------------------------------------------------------------------------------
@@ -78,12 +79,12 @@ if($accion==$INSERTAR_REGISTRO || $accion==$MODIFICAR_REGISTRO){
$UrlPagina=$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; // Url página
// Se recibe fichero adjunto
- $NombreFichero_urlicono = $HTTP_POST_FILES['urlicono']['name'];
+ $NombreFichero_urlicono = $_FILES['urlicono']['name'];
if(!empty($NombreFichero_urlicono)){
- $NombreFicheroPost_urlicono = $HTTP_POST_FILES['urlicono']['tmp_name'];
- $tamano_archivo = $HTTP_POST_FILES['urlicono']['size'];
+ $NombreFicheroPost_urlicono = $_FILES['urlicono']['tmp_name'];
+ $tamano_archivo = $_FILES['urlicono']['size'];
if($tamano_archivo>100000){
- $msg='$TbMsg["MSG_SIZE_FILE"]';
+ $msg=$TbMsg["MSG_SIZE_FILE"];
IncializaCampos();
$opcion=$INSERTAR;
$accion=$SIN_ACCION;
@@ -92,7 +93,7 @@ if($accion==$INSERTAR_REGISTRO || $accion==$MODIFICAR_REGISTRO){
if(!SalvaFichero_POST($UrlPagina,$NombreFicheroPost_urlicono,$NombreFichero_urlicono,&$UrlFichero_urlicono))
Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D.
else{
- $msg='$TbMsg["SUCCESS_SEND"]';
+ $msg=$TbMsg["SUCCESS_SEND"];
$cmd->ParamSetValor("@urlicono",basename($UrlFichero_urlicono));
}
}
@@ -113,7 +114,7 @@ if($accion==$INSERTAR_REGISTRO || $accion==$MODIFICAR_REGISTRO){
if(!EliminaFichero($UrlPagina,$filebaja_urlicono))
Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D.
else
- $msg='$TbMsg["SUCCESS_UPDATE"]';
+ $msg=$TbMsg["SUCCESS_UPDATE"];
}
}
else{
@@ -142,7 +143,7 @@ if($accion==$INSERTAR_REGISTRO || $accion==$MODIFICAR_REGISTRO){
if(!EliminaFichero($UrlPagina,$filebaja_urlicono))
Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D.
else
- $msg='$TbMsg["SUCCESS_DELETE"]';
+ $msg=$TbMsg["SUCCESS_DELETE"];
}
IncializaCampos();
$opcion=$INSERTAR;
@@ -177,6 +178,7 @@ if($accion==$INSERTAR_REGISTRO || $accion==$MODIFICAR_REGISTRO){
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<LINK rel="stylesheet" type="text/css" href="../estilos.css">
<SCRIPT language="javascript" src="M_Iconos.js"></SCRIPT>
+<? echo ' <SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/iconos_'.$idioma.'.js"></SCRIPT>'?>
</HEAD>
<BODY>
<!--------------------------------------------------------------------------------------------------------------------------------------------------->
@@ -188,27 +190,30 @@ if($accion==$INSERTAR_REGISTRO || $accion==$MODIFICAR_REGISTRO){
<input name="fileexist_urlicono" type="hidden" value="<? echo $urlicono?>">
<!--------------------------------------------------------------------------------------------------------------------------------------------------->
<DIV align=center id="Layer_Datos">
- <P class=cabeceras><? echo $TbMsg["TITLE"] ?><BR>
- <SPAN class="subcabeceras"><? echo $TbMsg["$mopciones[$opcion]"] ?></SPAN></P>
- <P align="center"><SPAN class=textos><? echo $TbMsg["TABLE_TITLE"] ?></SPAN></P>
+ <P class=cabeceras><? echo $TbMsg["TITLE"] ; ?><BR>
+ <SPAN class="subcabeceras"><? echo $TbMsg["$mopciones[$opcion]"] ?></SPAN></P>
+ <P align="center"><SPAN class=textos><? echo $TbMsg["TABLE_TITLE"] ?></SPAN></P>
<TABLE class="tabla_datos" align="center">
+
<!--------------------------------------------------------------------------------------------------------------------------------------------------->
- <TR>
- <TH>&nbsp;<? echo $TbMsg["TYPE"] ?> &nbsp;</TH>
- <?if ($opcion==$CONSULTAR || $opcion==$ELIMINAR){?>
- <TD><?
- $TBtipo[1]=$TbMsg["TYPE_WEB"];
- $TBtipo[2]=$TbMsg["TYPE_ITEMS"];
- $TBtipo[3]=$TbMsg["TYPE_MENU"];
- echo $TBtipo[$idtipoicono];
- }else{
- $parametros='0='.chr(13);
- $parametros.=$TbMsg["SELECT_WEB"].chr(13);
- $parametros.=$TbMsg["SELECT_ITEMS"].chr(13);
- $parametros.=$TbMsg["SELECT_MENU"];
- echo '<TD>'.HTMLCTESELECT($parametros, "idtipoicono","estilodesple","",$idtipoicono,100).'</TD>';
- }?>
- </TR>
+
+ <TR>
+ <TH>&nbsp;<? echo $TbMsg["TYPE"] ?> &nbsp;</TH>
+ <?if ($opcion==$CONSULTAR || $opcion==$ELIMINAR){?>
+ <TD><?
+ $TBtipo[1]=$TbMsg["TYPE_WEB"];
+ $TBtipo[2]=$TbMsg["TYPE_ITEMS"];
+ $TBtipo[3]=$TbMsg["TYPE_MENU"];
+ echo $TBtipo[$idtipoicono];
+ }else{
+ $parametros='0='.chr(13);
+ $parametros.=$TbMsg["SELECT_WEB"].chr(13);
+ $parametros.=$TbMsg["SELECT_ITEMS"].chr(13);
+ $parametros.=$TbMsg["SELECT_MENU"];
+ echo '<TD>'.HTMLCTESELECT($parametros, "idtipoicono","estilodesple","",$idtipoicono,100).'</TD>';
+ }?>
+ </TR>
+
<!-------------------------------------------------------------------------------------------------------------------------------------------------->
<TR>
@@ -222,7 +227,7 @@ if($accion==$INSERTAR_REGISTRO || $accion==$MODIFICAR_REGISTRO){
<!--------------------------------------------------------------------------------------------------------------------------------------------------->
<?if ($opcion==$CONSULTAR || $opcion==$ELIMINAR){?>
<TR>
- <TH>&nbsp; <? echo $TbMsg["ICON"] ?> &nbsp;</TH>
+ <TH>&nbsp;Icono&nbsp;</TH>
<TD><?echo basename($urlicono)?></TD>
</TR>
<?}else{
@@ -253,20 +258,22 @@ if($accion==$INSERTAR_REGISTRO || $accion==$MODIFICAR_REGISTRO){
<TR>
<?switch($opcion){
case $CONSULTAR:
- echo '<TD><img style="cursor:hand" SRC="../images/boton_insertar_'.$idioma.'.gif" onclick="Cancelar()"></TD>';
- break;
- case $ELIMINAR:
- echo '<TD><img SRC="../images/boton_confirmar_'.$idioma.'.gif" style="cursor:hand" onclick="Confirmar()"></TD>';
- echo '<TD><img SRC="../images/boton_cancelar_'.$idioma.'.gif" style="cursor:hand" onclick="Cancelar()"></TD>';
- break;
+ echo '<TD><img style="cursor:hand" SRC="../images/boton_insertar_'.$idioma.'.gif" onclick="Cancelar()"></TD>';
+ break;
+ case $ELIMINAR:
+ echo '<TD><img SRC="../images/boton_confirmar_'.$idioma.'.gif" style="cursor:hand" onclick="Confirmar()"></TD>';
+ echo '<TD><img SRC="../images/boton_cancelar_'.$idioma.'.gif" style="cursor:hand" onclick="Cancelar()"></TD>';
+ break;
default:
- echo '<TD><img style="cursor:hand" SRC="../images/boton_confirmar_'.$idioma.'.gif" onclick="Confirmar()"></TD>';
- echo '<TD><img style="cursor:hand" SRC="../images/boton_cancelar_'.$idioma.'.gif" onclick="Cancelar()"></TD>';
- break;
- }?>
+ echo '<TD><img style="cursor:hand" SRC="../images/boton_confirmar_'.$idioma.'.gif" onclick="Confirmar()"></TD>';
+ echo '<TD><img style="cursor:hand" SRC="../images/boton_cancelar_'.$idioma.'.gif" onclick="Cancelar()"></TD>';
+ break;
+ }?>
</TR>
</TABLE>
- </DIV>
+ </DIV>
+
+
<?
//________________________________________________________________________________________________________
// Posiciona cursor en campo usuario y muestra mensaje de error si lo hubiera