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/catalogo/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/logicswapweb/aplicaciones/admon/catalogo/modificar_pro.php
<?php 
include('./../fnc/DBConnect.php');
include('./../fnc/componente.php');
include('./../fnc/parametro.php');
include('./../fnc/vinculo.php');
include('./../fnc/UsuarioPanel.php');
include('./../fnc/bitacora.php');
include('./../fnc/aplicacion.php');
include('./../fnc/panel.php');
include('./../fnc/utileria.php');
include('./../usuariosWeb/fnc/usuarioWeb.php');
include('fnc/ParametrosCatalogo.php');
include('fnc/Producto.php');
include('fnc/Categoria.php');
include('fnc/Catalogo.php');

session_start('PanelAzulDigial');

if(!session_is_registered("panel")){
	echo "<div style=\"	font-family: Verdana, Arial, Helvetica, sans-serif;	color: #0066CC;	font-size: 16px;font-weight: bolder;\">Invalid User</div>";
}

$panel->reactivarDB();
$panel->setFilesPanel(2);
$tipo_u=$panel->usuario->tipo;
$user_u=$panel->usuario->id;
$estado_u=$panel->usuario->estado;


$userModificar = "";
$userEliminar = "";
$userAdicionar = "";
$userAdministrar="";
if($panel->usuario->tipo==3 && $panel->usuario->vinculo->modificar=="NO" && $panel->usuario->vinculo->administrador=="NO"){
	$userModificar = "disabled";
}
if($panel->usuario->tipo==3 && $panel->usuario->vinculo->eliminar=="NO" && $panel->usuario->vinculo->administrador=="NO"){
	$userEliminar= "disabled";
}
if($panel->usuario->tipo==3 && $panel->usuario->vinculo->adicionar=="NO" && $panel->usuario->vinculo->administrador=="NO"){
	$userAdicionar= "disabled";
}
if($panel->usuario->tipo==3 && $panel->usuario->vinculo->administrador=="NO"){
	$userAdministrar= "disabled";
}

$id_ =                (array_key_exists('id', $_REQUEST))                 ? $_REQUEST['id']: NULL;
$name_categoria =     (array_key_exists('name_categoria', $_REQUEST))     ? $_REQUEST['name_categoria']: NULL;
$ids =                (array_key_exists('ids', $_REQUEST))                ? $_REQUEST['ids']: NULL;
$name_subcategoria =  (array_key_exists('name_subcategoria', $_REQUEST))  ? $_REQUEST['name_subcategoria']: NULL;
$idss =               (array_key_exists('idss', $_REQUEST))               ? $_REQUEST['idss']: NULL;
$name_subcategorias = (array_key_exists('name_subcategorias', $_REQUEST)) ? $_REQUEST['name_subcategorias']: NULL;
$pag_est = 			  (array_key_exists('pag_est', $_REQUEST)) ? $_REQUEST['pag_est']: '';
$id_pro =             (array_key_exists('id_pro', $_REQUEST))             ? $_REQUEST['id_pro']: NULL;

$id_pro_parent =      (array_key_exists('id_pro_parent', $_REQUEST))             ? $_REQUEST['id_pro_parent']: NULL;
$tipo_pro =          (array_key_exists('tipo_pro', $_REQUEST))            ? $_REQUEST['tipo_pro']: 'p';

$db = new componente();

$sql="SELECT nombre,referencia,descripcion,valor,permiso,estado,estado_oferta,fecha_fin,valor_oferta,categoria,tipo FROM catalogo_producto WHERE id='$id_pro'";
if($db->execute($sql)){
	list($nombre,$referencia,$descripcion,$valor,$permiso,$estado,$estado_oferta,$fecha_fin,$valor_oferta,$cat_prod,$tipo)=$db->fetchRow();
}
$utileria=new Utileria();

if($tipo_pro == 's')
{	// producto padre
	$name_pro = $panel->aplicativo->getNombreProducto($id_pro_parent);
}

if($idss){
	$name_subcategorias = $panel->aplicativo->getNombreCategoria($idss);
}
if($ids){
	$name_subcategoria = $panel->aplicativo->getNombreCategoria($ids);
}
if($id_){
	$name_categoria = $panel->aplicativo->getNombreCategoria($id_);
}

?>
<link href="css/panel2Contenido.css" rel="stylesheet" type="text/css">
<link href="css/panel2.css" rel="stylesheet" type="text/css">
<link href="css/scrollbar.css" rel="stylesheet" type="text/css">
<link href="css/scrollbar2.css" rel="stylesheet" type="text/css">

<script src="js/ajax.js" type="text/javascript"></script>
<script src="js/validaciones.js"></script>
<script>

function fncVolver(est){
	var nivel              =     document.frm.nivel.value;
	var id                 =     document.frm.id.value;
	var name_categoria     =     document.frm.name_categoria.value;
	var ids                =     document.frm.ids.value;
	var name_subcategoria  =     document.frm.name_subcategoria.value;
	var idss               =     document.frm.idss.value;
	var name_subcategorias =     document.frm.name_subcategorias.value;
	var tipo_pro = document.frm.tipo_pro.value;

	var id_pro                 =     document.frm.id_pro.value;
	if(!est)
	{
		if(tipo_pro=='p'){
			document.location.href = 'mod_producto.php?nivel='+nivel+'&id='+id+'&ids='+ids+'&idss='+idss+'&name_categoria='+name_categoria+'&name_subcategoria='+name_subcategoria+'&name_subcategorias='+name_subcategorias+'&id_pro='+id_pro;
		}else{
			var id_pro_parent = document.frm.id_pro_parent.value;
			document.location.href = 'mod_producto.php?nivel='+nivel+'&id='+id+'&ids='+ids+'&idss='+idss+'&name_categoria='+name_categoria+'&name_subcategoria='+name_subcategoria+'&name_subcategorias='+name_subcategorias+'&id_pro='+id_pro+'&id_pro_parent='+id_pro_parent+'&tipo_pro=s';
		}
	}
	else
		document.location.href = 'mod_producto.php?nivel='+nivel+'&id='+id+'&ids='+ids+'&idss='+idss+'&name_categoria='+name_categoria+'&name_subcategoria='+name_subcategoria+'&name_subcategorias='+name_subcategorias+'&id_pro='+id_pro+'&'+est;
}

function fncCheckform(){
	var nombre = document.frm.nombre.value;
	var field1 = new Object();
	field1 = document.frm.nombre;
	
	if( field1.value.length==0){
		alert("Invalid name product.");
		field1.focus();
		return false;
	}else{
		if(spaceString(nombre)){
			alert("There are a null space in the begin of the name product.");
			document.frm.nombre.focus;
			return false;
		}
	}
	if(specialChar(nombre, true, true, true, true)){
			alert("Is not possible enter special characteres for the name product field.");
			document.frm.nombre.focus;
			return false;
	}

	var referencia = document.frm.referencia.value;
	var field2 = new Object();
	field2 = document.frm.referencia;
	
	if(field2.value.length==0){
		alert("Invalid reference.");
		field2.focus();
		return false;
	}else{
		if(spaceString(referencia)){
			alert("There are a null space in the begin of the reference field.");
			document.frm.referencia.focus;
			return false;
		}
	}
	if(specialChar(referencia, true, true,true)){
			alert("Is not possible enter special characteres for the reference field.");
			document.frm.referencia.focus;
			return false;
	}	
	
	var valor = document.frm.valor.value;
	var field3 = new Object();
	field3 = document.frm.valor;
	
	if(field3.value.length==0 || parseInt(valor)<1){
		alert("Invalid price.");
		field3.focus();
		return false;
	}else{
		if(spaceString(valor)){
			alert("There are a null space in the begin of the price field.");
			document.frm.valor.focus;
			return false;
		}
	}
	if(specialChar(valor, true, true, true, true)){
			alert("Is not possible enter special characteres for the price field.");
			document.frm.valor.focus;
			return false;
	}
	if(solo_numeros(valor)){
			alert("Please enter numbers only, in the price field");
			document.frm.valor.focus;
			return false;
	}
		
	var descripcion = document.frm.descripcion.value;
	var field4 = new Object();
	field4 = document.frm.descripcion;
	
	if(field4.value.length==0){
		alert("Invalid description.");
		field4.focus();
		return false;
	}else{
		if(spaceString(descripcion)){
			alert("There are a null space in the begin of the description field.");
			document.frm.descripcion.focus;
			return false;
		}
	}
	/*
	if(specialChar(descripcion, true, true, true, true)){
			alert("No se permiten caracteres especiales en el campo descripcion !");
			return false;
	}
	*/
	if( field4.value.length>1000){
		alert("The description is too long, the valid long is 1000 characteres.");
		field4.focus();
		return false;
	}
	
	//var descripcion = document.frm.descripcion.value;
	
	if(descripcion==""){
		alert("Invalid description.");
		document.frm.descripcion.focus();
		return false;
	}else{
		if(spaceString(descripcion)){
			alert("There are a null space in the begin of the description field.");
			document.frm.descripcion.focus;
			return false;
		}
	}

	document.frm.estado_oferta.value="vencida";
	var estado = document.frm.estado.value;
	
	if(estado=="promocion"){
		
		document.frm.estado_oferta.value="vigente";

		var mes = document.frm.mes.value;
		var actual =new Date();
		var fecha = new Date(document.frm.anio.value,parseInt(mes)-1,document.frm.dia.value);

		if (fecha<=actual){		
			alert("La fecha de vencimiento no puede ser menor o igual a la fecha actual");
			document.frm.dia.focus
			return false;
		}		

		var valor_oferta = document.frm.valor_oferta.value;
		var field6 = new Object();
		field6 = document.frm.valor_oferta;
	
		if(field6.value.length==0 || parseInt(valor_oferta)<1){
			alert("Debe de ingresar un valor oferta valido!");
			field6.focus();
			return false;
		}else{
			if(spaceString(valor_oferta)){
				alert("No se permiten espacios en blanco al inicio del campo valor oferta!");
				document.frm.valor_oferta.focus;
				return false;
			}
		}
		if(specialChar(valor_oferta, false, false, false)){
			alert("No se permiten caracteres especiales en el campo valor oferta!");
			document.frm.valor_oferta.focus;
			return false;
		}
		if(solo_numeros(valor_oferta)){
			alert("No se permiten letras en el campo valor oferta!");
			document.frm.valor_oferta.focus;
			return false;
		}		
		
		var aux1=parseInt(valor);
		var aux2=parseInt(valor_oferta);
		if(aux1<=aux2){
			alert("El valor oferta no puede ser igual o mayor al valor base!");
			document.frm.valor_oferta.focus;
			return false;
		}		
	}else{
		document.frm.estado_oferta.value="";
		document.frm.valor_oferta.value="";
	}	

	
	return true;
}
function fncCheckFormSearch(form) {

	var busc = form.buscar.value;
	if(busc == '')
	{
		alert('The search field can not be empty');
		return false;
	}
	if ( !lengSpaceNess(busc) || specialChar(busc,true,true,true)) {
				alert("El campo buscar no debe de empezar o terminar con espacios en blanco, o contener caracteres diferentes a los imprimibles directamente por el teclado!");
				return false;
	}

	return true;
} 
function reLoad(obj){
	var ind = obj.selectedIndex;
	var est = obj.options[ind].value;
	document.location.href= 'l_productos.php?seleccion=<?=$seleccion?>&estado='+est;
}
</script>
<html>
<body onLoad="cargaSubcategoriasLoad(<?=$id_?>,<?=$cat_prod?>)">

<table width="610" border="0" cellpadding="2" cellspacing="2" class="texto1" align="left">
    <tr align="left" bgcolor="cccccc">
        <td height="6" colspan="2" class="migas"> 
	    <div align="left" class="migas">
		<a id="migainicio" href="../contenido.php" class="migas" style="cursor:hand" title="Indice de Aplicaciones" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);">Start</a> 
		/ <span class="migas"><a id="migacat" href="menu.php" class="migas" style="cursor:hand" title="Indice de Aplicaciones" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);"><?=ucfirst(strtolower($panel->aplicativo->nombre))?></a></span> 
		<?php if($pag_est=="disponible"){?>
		/ <a href="l_productos.php?estado=disponible" class="migas"  style="cursor:hand;" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);" id="migasprod">Products Available</a> 
		<? }
		if($pag_est=="no disponible"){?>
		/ <a href="l_productos.php?estado=no_disponible" class="migas" title="No disponible" style="cursor:hand;" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);" id="migasprod">Products not available</a>	
		<? }
		if($pag_est=="nuevo"){?>
		/ <a href="l_productos.php?estado=nuevo" class="migas" title="Nuevo" style="cursor:hand;" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);" id="migasprod">New Products</a> 
		<? }
		if($pag_est=="promocion"){?>
		/ <a href="l_productos.php?estado=promocion" class="migas" title="Oferta" style="cursor:hand;" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);" id="migasprod">Products on Offer</a> 
		<? }
			if(!$pag_est)
			{ ?>
			/ <a id="migaslist"  href="index.php?" class="migas" style="cursor:hand" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);"> Catalog listing </a>
			<? }
		if($nivel==1){?>
		/ <a id="migaspro" href="listar_categoria.php?nivel=1&id=<?=$id_?>" class="migas" title="Categoria" style="cursor:hand" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);"><?=ucfirst(strtolower($name_categoria))?></a> 
		<? }
		if($nivel==2){?>
		/ <a id="migaspro" href="listar_categoria.php?nivel=1&id=<?=$id_?>"class="migas"  style="cursor:hand;" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);" title="Categoria"><?=ucfirst(strtolower($name_categoria))?></a>
		/ <a id="migaspro2" href="listar_categoria.php?nivel=2&id=<?=$id_?>&ids=<?=$ids?>" class="migas" title="Categoria" style="cursor:hand"  onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);"><?=ucfirst(strtolower($name_subcategoria))?></a>			
		<? }
		if($nivel==3){?>
		/ <a id="migaspro" href="listar_categoria.php?nivel=1&id=<?=$id_?>" class="migas" style="cursor:hand;" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);" title="Categoria"><?=ucfirst(strtolower($name_categoria))?></a>
		/ <a id="migaspro2" href="listar_categoria.php?nivel=2&id=<?=$id_?>&ids=<?=$ids?>" class="migas" title="Categoria" style="cursor:hand"  onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);"><?=ucfirst(strtolower($name_subcategoria))?></a>
		/ <a id="migaspro3" href="listar_categoria.php?nivel=3&id=<?=$id_?>&ids=<?=$ids?>&idss=<?=$idss?>" class="migas" title="Categoria" style="cursor:hand" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);"><?=ucfirst(strtolower($name_subcategorias))?></a> 		
		<? }?>
		<? if($tipo_pro=="s"){ ?>
		/ <a id="migaspro4" href="mod_producto.php?nivel=<?=$nivel?>&id=<?=$id_?>&ids=<?=$ids?>&idss=<?=$idss?>&id_pro=<?=$id_pro_parent?>" class="migas" title="Categoria" style="cursor:hand" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);"><?=ucfirst(strtolower($name_pro))?></a> 			
		/ <a id="migaspro5" href="listar_subproductos.php?nivel=<?=$nivel?>&id=<?=$id_?>&ids=<?=$ids?>&idss=<?=$idss?>&id_pro=<?=$id_pro_parent?>" class="migas" title="Categoria" style="cursor:hand" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);">Sub productos</a> 			
		<? }?>
		/ <span  class="migasactivo"><?=ucfirst(strtolower($name_producto))?></span>
		</div>
	    </td>
    </tr>
    <tr>
      
    <td height="14" colspan="2"><img src="img/menu.gif" width="49" height="22" align="top"> 
      <input name="tem2" type="button" class="boton1" style="width:80 "onClick="javascript: document.location.href= 'index.php'" value="Catalog"> 

      <input name="tem222" type="button" class="boton1" style="width:90 " onClick="javascript: document.location.href= 'valores_config/index.php'" value="Parameters" <?=$userAdministrar?>></td>
    </tr>

		<tr  width="610">
				<td colspan="3" class="texto1">
				<table width="604">
				  <tr><td width="316">
				<form name="listar"  method="get" onSubmit="<?=$PHP_SELF?>">
				<div align="left" class="texto1">Products 
				  <select name="estado" class="listado" onChange="javascript: reLoad(this);" style="width:80px ">
					<option value="cat" <? if (!$estado){echo "selected";}?>></option>
					<option value="todos" <? if ($estado=="todos"){echo "selected";}?>>All</option>
					<option value="disponible" <? if ($estado=="disponible"){echo "selected";}?>>Available</option>
					<option value="nuevo" <? if ($estado=="nuevo"){echo "selected";}?>>News</option>
					<option value="destacado" <? if ($estado=="destacado"){echo "selected";}?>>Outstanding</option>
					<option value="promocion" <? if ($estado=="oferta"){echo "selected";}?>>Supply</option>
					
					<option value="no_disponible" <? if ($estado=="no_disponible"){echo "selected";}?>>NonAvailable</option>

				  </select> 
				  </div>
				</form>

				</td><td width="276">
				<form name="buscar" method="post" action="l_productos.php" onSubmit="return fncCheckFormSearch(this)">
				   <div align="right">
					<input type="hidden" name="seleccion" value="<?=$seleccion?>">
					<input name="buscar" type="text" class="listado" style="width:100px " value="<?=$buscar?>">
					
					<input name="bbuscar" type="submit" class="boton1" value="Search">
				  </div>
				</form>
				</td></tr></table>
				</td>

	</tr>
	<form action="fnc/main.php" method="post" enctype="multipart/form-data" name="frm" id="frm" onSubmit="return fncCheckform()">
    <tr>
      <td height="30" colspan="2"><div class="nombreColum_inv">
	  	<? if($tipo=='p'){
				echo 'Product: ';
			}else{
				echo 'Sub-Product: ';
			} 
		?>

	   <a onClick="fncVolver()" style="cursor:hand;" title="Categoria">
        <?=$nombre?>
      </a> </div>
        <div class="nombreColum_red">
          <div align="center" class="vinculos"> <br>
            Change 	
		  	<? if($tipo=='p'){
				echo 'Product';
			}else{
				echo 'Sub-Product';
			} 
			?>
		 </div>
        </div>
        <br>
        <div align="center"> Note: The fields that are with the asterisk (*) are mandatory. </div></td>
    </tr>
	<tr>
        <td align="left" colspan="2" valign="top">
			<table width="100%" border=0 align="left" cellpadding=0 cellspacing=1 bgcolor=000099 class="texto1" id="campos">
			   <tbody>
						<tr>
							<td bgcolor=#0099CC>
								<table cellspacing=0 cellpadding=0 width="100%" border=0 align="left">
									<tbody>
										<tr bgcolor="000099" class="titular1">
											<td width="32%" align="left" class="filatitulo">&nbsp;				 				 
						                    </td>
											<td width="68%" align=right class="nombreColum">
											<div align="left"> Add 
												<? if($tipo=='p'){
														echo 'Product ';
													}else{
														echo 'Sub-Product ';
													} 
												?>
											 Information</div>										  </td>
									  </tr></tbody>
							  </table>
							</td></tr>
						<tr>
					<td bgcolor=#ffffff valign="top"><br>
						<table width="100%" border=0 align="left" cellpadding=0 cellspacing=0 class="texto1">
						  <tbody>
							
							<tr>
							  <td align=left>&nbsp;</td>
							  <td height="22" valign="top">Category:</td>
							  <td valign="top"><?  $panel->aplicativo->getListadoCategoriasNivel_0($cat_prod); ?></td>
						    </tr>
							<tr>
							  <td align=left>&nbsp;</td>
							  <td height="22" valign="top">&nbsp;</td>
							  <td valign="top">&nbsp;</td>
						    </tr>
							<tr>
							  <td align=left>&nbsp;</td>
							  <td height="22" valign="top">Sub-category:</td>
							  <td valign="top">
							  <div align='left' id="subcategoria">
								<select name='subcategoria'>
									<option value='-1'>Select</option>
								</select>
							  </div>
							  <div align='center' id="msgContacto"></div>							  </td>
						    </tr>
							<tr>
							  <td align=left>&nbsp;</td>
							  <td height="22" valign="top">&nbsp;</td>
							  <td valign="top">&nbsp;</td>
						    </tr>
							<tr>
								
                      <td align=left width="6">&nbsp;</td>
								
                      <td width="159" height="22" valign="top">Name:</td>
								<td width="360" valign="top"><input name="nombre" type="text" class="listado" id="nombre" style="width:340 " value="<?=$nombre?>" maxlength="100">
								*                              </td>
						    </tr>
							<tr>
								<td align=left width="6">&nbsp;</td>
								<td colspan="2" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
							</tr>																	
							<tr>
								
                      <td align=left width="6">&nbsp;</td>
								
                      <td height="22" valign="top">Reference:</td>
								<td valign="top">
								<input name="referencia" type="text" class="listado" id="referencia" style="width:340 " value="<?=$referencia?>" maxlength="100">
								*								</td>
							</tr>
							<tr>
								<td align=left width="6">&nbsp;								</td>
								<td colspan="2" valign="top">&nbsp;								</td>
							</tr>								
							<tr>
							    
                      <td align=left>&nbsp;								</td>
							    
                      <td height="22" valign="top"> Price:</td>
						        <td valign="top">
							  <input name="valor" type="text" class="listado" id="valor" style="width:340 " onKeyPress="return solo_numeros(event)" value="<?=$valor?>" maxlength="100">
							  *							  </td>
						    </tr>
							<tr>
								<td align=left width="6">&nbsp;								</td>
								<td colspan="2" valign="top">&nbsp;								</td>
							</tr>				
							<tr>
								
                      <td align=left width="6">&nbsp;								</td>
								
                      <td valign="top">Status:</td>
							    <td valign="top"><select name="estado" class="listado" id="estado" style="width:340 " >
							      <? if($estado=="disponible"){?>
									  	<option value="disponible" selected>Available Product</option>
							      <? }else{?>
									  	<option value="disponible">Available Product</option>
								  <? }
								     if($estado=="no disponible"){?>
									  	<option value="no disponible">Non-Available Product</option>
							      <? }else{?>
								  		<option value="no disponible">Non-Available Product</option>
								  <? }
 									if($estado=="destacado"){?>
                                  <option value="destacado" selected>Outstanding Product</option>
                                  <? }else{?>
                                  <option value="destacado">Outstanding Product</option>
                                  <? }
								     if($estado=="nuevo"){?>	
										<option value="nuevo" selected>New Product</option>
							      <? }else{?>
								  		<option value="nuevo">New Product</option>
								  <? }
								     if($estado=="promocion"){?>
								  		<option value="promocion" selected>Promotional Product</option>
								  <? }else{?>
								  		<option value="promocion">Promotional Product</option>
								  <? }?>
						        </select>
							      *</td>
							</tr>	
							<tr>
								<td align=left width="6">&nbsp;								</td>
								<td colspan="2" valign="top">&nbsp;								</td>
							</tr>	
							<tr>
								
                      <td align=left width="6">&nbsp;								</td>
								
                      <td>Promotional Date:</td>
							    <td valign="top"><table width="327" cellpadding="0" cellspacing="0" class="texto1">
                                  <tr>
                                    
                            <td width="83"  valign="baseline"> Day: 
                              <select name="dia" class="listado" style=" outline-color:#000000; font-size:10px" title="Dia">
                                          <?php 
					$j=substr(substr($fecha_fin,8),0,2);
					for($i=1;$i<=31;$i++){
						if($i==$j){
							echo "<option value=\"$i\" selected>$i</option>";
						}else{
							echo "<option value=\"$i\">$i</option>";
						}
					} ?>
                                      </select>                                    </td>
                                    
                            <td width="134"  valign="baseline"> Month: 
                              <select name="mes" class="listado" title="Mes">
                                          <?php if(substr(substr($fecha_fin,5),0,2)=="01"){?>
                                          <option value="1" selected>January</option>
                                          <?php }else{?>
                                          <option value="1">January</option>
                                          <?php }if(substr(substr($fecha_fin,5),0,2)=="02"){?>
                                          <option value="2" selected>February</option>
                                          <?php }else{?>
                                          <option value="2">February</option>
                                          <?php }if(substr(substr($fecha_fin,5),0,2)=="03"){?>
                                          <option value="3" selected>March</option>
                                          <?php }else{?>
                                          <option value="3">March</option>
                                          <?php }if(substr(substr($fecha_fin,5),0,2)=="04"){?>
                                          <option value="4" selected>April</option>
                                          <?php }else{?>
                                          <option value="4">April</option>
                                          <?php }if(substr(substr($fecha_fin,5),0,2)=="05"){?>
                                          <option value="5" selected>May</option>
                                          <?php }else{?>
                                          <option value="5">May</option>
                                          <?php }if(substr(substr($fecha_fin,5),0,2)=="06"){?>
                                          <option value="6" selected>June</option>
                                          <?php }else{?>
                                          <option value="6">June</option>
                                          <?php }if(substr(substr($fecha_fin,5),0,2)=="07"){?>
                                          <option value="7" selected>July</option>
                                          <?php }else{?>
                                          <option value="7">July</option>
                                          <?php }if(substr(substr($fecha_fin,5),0,2)=="08"){?>
                                          <option value="8" selected>August</option>
                                          <?php }else{?>
                                          <option value="8">August</option>
                                          <?php }if(substr(substr($fecha_fin,5),0,2)=="09"){?>
                                          <option value="9" selected>September</option>
                                          <?php }else{?>
                                          <option value="9">September</option>
                                          <?php }if(substr(substr($fecha_fin,5),0,2)=="10"){?>
                                          <option value="10" selected>October</option>
                                          <?php }else{?>
                                          <option value="10">October</option>
                                          <?php }if(substr(substr($fecha_fin,5),0,2)=="11"){?>
                                          <option value="11" selected>November</option>
                                          <?php }else{?>
                                          <option value="11">November</option>
                                          <?php }if(substr(substr($fecha_fin,5),0,2)=="12"){?>
                                          <option value="12" selected>December</option>
                                          <?php }else{?>
                                          <option value="12">December</option>
                                          <?php }?>
                                      </select>                                    </td>
                                    
                            <td width="97" valign="top"> Year: 
                              <select name="anio" class="listado" title="A&ntilde;o">
                                          <?php
						$j=substr($fecha_fin,0,4);
						for($i=2005;$i<=2010;$i++){
							if($i==$j){
								echo "<option value=\"$i\" selected>$i</option>";
							}else{							
								echo "<option value=\"$i\">$i</option>";
							}
						}
						?>
                                      </select>                                    </td>
                                    <td align="center" width="11"><input name="estado_oferta" type="hidden" id="estado_oferta" value="<?=$estado_oferta?>">                                    </td>
                                  </tr>
                                </table></td>
							</tr>																																						
							<tr>
								<td align=left width="6">&nbsp;								</td>
								<td colspan="2" valign="top">&nbsp;								</td>
							</tr>	
							<tr>
								
                      <td align=left width="6">&nbsp;								</td>
								
                      <td valign="top">Promotional Price:</td>
							    <td valign="top"><input name="valor_oferta" type="text" class="listado" id="valor_oferta" style="width:340 " onKeyPress="return solo_numeros(event)" value="<?=$valor_oferta?>" maxlength="100"></td>
							</tr>	
							<tr>
								<td align=left width="6">&nbsp;								</td>
								<td colspan="2" valign="top">&nbsp;								</td>
							</tr>															
							<tr>
							    
                      <td align=left>&nbsp;								</td>
							    
                      <td valign="top">Description: </td>
							    <td><textarea name="descripcion" cols="63" rows="6" class="listado" id="descripcion"><?=$utileria->parseDB2Input($descripcion)?></textarea>
							    *</td>
							</tr>
							<tr>
								
                      <td align=left width="6">&nbsp;</td>
								
                      <td>&nbsp;</td>
						      <td>&nbsp;</td>
							</tr>
							<tr>
								<td align=left width="6">&nbsp;								</td>
								<td colspan="2">
								<input type="hidden" name="tarea"              value="mod_producto">
								<input type="hidden" name="nivel"              value="<?=$nivel?>">
                                <input type="hidden" name="id"                 value="<?=$id_?>">
                                <input type="hidden" name="ids"                value="<?=$ids?>">
                                <input type="hidden" name="idss"               value="<?=$idss?>">
                                <input type="hidden" name="name_categoria"     value="<?=$name_categoria?>">
                                <input type="hidden" name="name_subcategoria"  value="<?=$name_subcategoria?>">
                                <input type="hidden" name="name_subcategorias" value="<?=$name_subcategorias?>">	
								<input type="hidden" name="id_pro"             value="<?=$id_pro?>">							
								<input type="hidden" name="pag_estado"             value=<? echo "\"$pag_est\""; ?>>	
								<input type="hidden" name="tipo_pro" value="<?=$tipo_pro?>">								
								<input type="hidden" name="id_pro_parent" value="<?=$id_pro_parent?>">								
                                <input type="hidden" name="permiso" id="permiso" value="publico"/></td>
							</tr>								
							<tr>
								<td align=left width="6">&nbsp;								</td>
								<td colspan="2">&nbsp;								</td>
							</tr>							
							<tr>
							    <td align=left>&nbsp;								</td>
							    <td colspan="2">								<div align="center">
							    
                          <input name="aceptar" type="submit" class="boton1" id="aceptar" style="width:130" value="Accept">
								
                          <input name="cancelar" type="button" class="boton1" style="width:130" 
											<? 
												if(!$pag_est) echo 'onClick="fncVolver(false);" ';
										        else echo "onClick=\"fncVolver('pag_est=$pag_est');\" ";

											?>
								value="Cancel">

							    </div>								</td>
							</tr>
							<tr>
							    <td align=left>&nbsp;								</td>
							    <td colspan="2">&nbsp;								</td>
							</tr>
						  </tbody>
					  </table>
					</td>
					</tr>
			  </tbody>
		  </table>		
		</td>
    </tr>
    <tr>
        <td width="199" valign="top">
		</td>
		<td width="322">
		<iframe src="" name="_fraUsr" id="_fraUsr" height="0" frameborder="0"></iframe>
		</td>
    </tr>
		
    <script>document.frm.nombre.focus();</script>   
</form>
</table>

</body>
</html>

Anon7 - 2021