KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/logicswapweb/aplicaciones/admon/noticias/tb_temas/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/logicswapweb/aplicaciones/admon/noticias/tb_temas/mod_temas.php
<?   
	 include("../../generales/config_panel.php");
	 include("../../generales/config_permisos.php");
	 include("../../generales/operabd.php");
	include("met_temas.php");
	if(isset($modparametro)){
	 	if($modparametro==1){
			 mod_tema($noticiatema_id, $noticiatema_titulo, $noticiatema_descripcion);
		}
	}else{
		$noticiatema_titulo=rettitulotema($identificador);
		$noticiatema_descripcion=retdescripciontema($identificador);
	}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>modificar Parametros</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../../css/panel2.css" rel="stylesheet" type="text/css">
<link href="../../css/panel2Contenido.css" rel="stylesheet" type="text/css">
<link href="../../css/scrollbar2.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="610" border="0" align="left" cellpadding="0" cellspacing="0">
	<tr valign="top" bgcolor="#FFFFFF">
		<td width="100%" height="20" bgcolor="#CCCCCC" class="migasactivo">
		  <a id="iniMenu" class="migas" href="../../contenido.php" style="cursor:hand; " onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);" title="Indice de Aplicaciones">Beginning</a>
		  <span class="migas">/</span> 
		  <a id="op1Menu" class="migas" href="../menu.php" style="cursor:hand; " onMouseover="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);;" title="Men� de Noticias">Menu</a>
		  <span class="migas">/</span> 
		  <a id="op2Menu" class="migas" href="parametros.php" style="cursor:hand; " onMouseover="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);;" title="Men� de Noticias">Par�metros</a>
		  <span class="migas">/</span>Modificar Temas
		</td>
	</tr>
	<tr>
	  <td height="30" colspan="4"><? btn_aplnoticias($apl_permisos);?></td>
  </tr>
  <tr>
    <th scope="row">
<table width="100%" cellpadding="0" cellspacing="1" bordercolor="#0000FF" bgcolor="#000099">
				<tr>
				<td align="left" bgcolor="#000099" class="nombreColum"><span class="filatitulo"><a onClick="javascript: document.location.href= 'parametros.php'" title="Volver" style="cursor:hand; width:40"><img src="../../img/atras.gif" style="cursor:hand "></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="titular1">Datos del par�metro</span></td>
				</tr>
				<tr>
					<td bgcolor="#000099"><table width="100%" border="0" cellpadding="0" cellspacing="0" align="left" bgcolor="#ffffff">
                        <form method="post" enctype="multipart/form-data" name="form1">
                            <tr>
                                <td width="200" height="19" valign="top">&nbsp;</td>
                                <td width="370">&nbsp;</td>
                            </tr>
                            <tr>
                              <td width="200" height="19" valign="top" align="center">
									<div  class="texto1"><strong>Titulo</strong></div>
                                	<input name="noticiatema_titulo" type="text" class="listado" id="noticiatema_titulo" size="30" maxlength="100" value="<? echo $noticiatema_titulo?>">
								</td>
                              <td width="370" align="center">
									<div  class="texto1"><strong>Descripcion</strong></div>
                                	<input name="noticiatema_descripcion" type="text" class="listado" id="noticiatema_descripcion" size="50" maxlength="250" value="<? echo $noticiatema_descripcion?>">
								</td>
                            </tr>
                            <tr>
                              <td height="19" valign="top">&nbsp;</td>
                              <td>&nbsp;<input name="modparametro" type="hidden" id="modparametro" value="0">
								<input name="noticiatema_id" type="hidden" id="noticiatema_id" value="<? echo $identificador?>"></td>
                            </tr>
                            <tr align="center">
                                <td colspan="3"><font size="3" face="Arial, Helvetica, sans-serif">
                                    <input type="button" onClick = envia_datos() name="modificar" value="Modificar" class="boton1">
										&nbsp;&nbsp;&nbsp;&nbsp;                &nbsp;&nbsp;&nbsp;
                					<input type="button" onClick = "javascript: document.location.href ='temas.php'" name="cancel" value="Cancelar" class="boton1">
								</font></td>
                            </tr>
                            <tr align="center">
                              <td colspan="3">&nbsp;</td>
                            </tr>
                        </form>
					    </table>				  </td>
				</tr>
			</table>	
	�</th>
  </tr>
</table>
</body>
<script src="../../generales/genjavascript.js" language="javascript"></script>
<script> 
function contespacios(cadena){
	contador=0;
   for (i = 0;  i < cadena.length;  i++)
	   if (cadena.charAt(i) == ' ') contador++;
	if(contador < cadena.length ) return false;
	else	return true;
}
function valdescripcion(){
//************
	valor=document.form1.noticiatema_descripcion.value;
	val=fncvalidarcampo(valor,"alfanum");
	if(val==1){
		alert("La descripci�n contiene caracteres no v�lidos");
	}
	else if(val==0){
		alert('Debe digitar una descripci�n');
	}
	if(val==1 || val == 0){
	 document.form1.noticiatema_descripcion.value='';
	 document.form1.noticiatema_descripcion.focus();
		return false;
	}
	else if(contespacios(document.form1.noticiatema_descripcion.value)){
		alert('Debe digitar una descripci�n');
		 document.form1.noticiatema_descripcion.value='';
		 document.form1.noticiatema_descripcion.focus();
		return false;
	}
	else return true;
}
function valtitulo(){
	valor=document.form1.noticiatema_titulo.value;
	val=fncvalidarcampo(valor,"alfanum");
	if(val==1){
		alert("El titulo contiene caracteres no v�lidos");
	}
	else if(val==0){
		alert('Debe digitar una titulo');
	}
	if(val==1 || val == 0){
	 document.form1.noticiatema_titulo.value='';
	 document.form1.noticiatema_titulo.focus();
		return false;
	}
	else if(contespacios(document.form1.noticiatema_titulo.value)){
		alert('Debe digitar una descripci�n');
		 document.form1.noticiatema_titulo.value='';
		 document.form1.noticiatema_titulo.focus();
		return false;
	}
	else return true;
}
function envia_datos()
{
	if(valtitulo())
		if(valdescripcion()){
			document.form1.modparametro.value = '1';
			document.form1.submit();
		}
}
</script>
</html>

Anon7 - 2021