<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Promociones - La Villa de Palacios</title>
<style type="text/css">
<!--
body {
	background-color: #DCDCB8;
	font-family: Verdana;
	
}
.texto {
	font-size: 12px;
	color: #333333;
	text-align: left;
}
.textoNegrita {
	font-family: Verdana;
	font-size: 12px;
	font-weight: bold;
	color: #333333;
	text-align: left;
}
.titulos3 {
	font-family: Verdana;
	font-size: 12px;
	font-weight: bold;
	color: #669900;
}
.titulos2 {
	font-family: Verdana;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
}
.link {
	font-size: 12px;
}

.titulos1 {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
	background-color: #669900;
}

.titulos4 {
	font-family: "Times New Roman", Times, serif;
	font-size: 20px;
	font-style: italic;
	font-weight: bold;
	color: #669900;
}

h1 {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 18px;
	color: #FFF;
	background-color: #690;
	margin: 5px;
}
-->
</style>
<!-- TinyMCE -->
<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
	tinyMCE.init({
			mode : "textareas",
			theme : "advanced",
			language : 'es',
			cleanup : true,
			content_css : "tiny_mce/estilos.css",
			plugins : 'paste',
			
			paste_use_dialog : false,
			paste_auto_cleanup_on_paste : true,
			paste_convert_headers_to_strong : false,
			paste_strip_class_attributes : "all",
			paste_remove_spans : false,
			paste_remove_styles : false,
			paste_retain_style_properties : "",			
            paste_remove_styles_if_webkit: false,

			theme_advanced_path : false,
			theme_advanced_buttons1 : "bold,italic,underline,|,forecolor,|,undo,redo",
			theme_advanced_buttons2 : "",
			theme_advanced_buttons3 : "",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_resizing : true,
			theme_advanced_resize_horizontal : false
	});
</script>
<!-- /TinyMCE -->
</head>
<body>
<?php 
    $filename = "promociones.dat";
	if (file_exists($filename)) {
		$promos = unserialize(file_get_contents($filename)); 
	}
?>
<form method="post" action="proceso.php">
  <input type="hidden" name="seccion" value="promociones"/>
  <input type="hidden" name="accion" value=""/>



  <table width="700" border="0" align="center" cellpadding="0" cellspacing="6" bgcolor="#FFFFFF">
    <tr align="left" valign="top">
   	  <td bgcolor="#669900">
        <center>
          <h1>Actualización de las promociones</h1></center>
        </td>
	</tr>
    <tr align="left" valign="top">
      <td>
         Ir a...
        <a href="#promo1" class="link">Promoción 1</a> - 
        <a href="#promo2" class="link">Promoción 2</a> - 
        <a href="#promo3" class="link">Promoción 3</a> - 
        <a href="#promo4" class="link">Promoción 4</a> - 
        <a href="#promo5" class="link">Promoción 5</a>
        <br>
         <br>
        
                
        <table width="100%" border="0" cellpadding="5" cellspacing="2" >
          <tr>
            <td width="20%" class="titulos1"><a name="promo1">PROMO 1</a></td>
            <td width="40%" class="titulos1">Castellano</td>
            <td width="40%" class="titulos1">Inglés</td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">T&iacute;tulo:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><input name="titulo1-cas" type="text" size="40" value="<?php echo $promos[0][TITULO_CAS]; ?>"></td>
            <td width="40%" colspan="2" bgcolor="#EEEEDB" class="texto"><input name="titulo1-eng" type="text" size="40" value="<?php echo $promos[0][TITULO_ENG]; ?>"></td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">Precio:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><input name="precio1-cas" type="text" size="40" value="<?php echo $promos[0][PRECIO_CAS]; ?>"></td>
            <td width="40%" colspan="2" align="left" bgcolor="#EEEEDB" class="texto"><input name="precio1-eng" type="text" size="40" value="<?php echo $promos[0][PRECIO_ENG]; ?>"></td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">Descripción:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><textarea name="texto1-cas" rows="7" cols="30"><?php echo stripslashes($promos[0][TEXTO_CAS]); ?></textarea></td>
            <td width="40%" colspan="2" align="left" bgcolor="#EEEEDB" class="texto"><textarea name="texto1-eng" rows="7" cols="30"><?php echo stripslashes($promos[0][TEXTO_ENG]); ?></textarea></td>
          </tr>
        </table>
        <br>
        <table width="100%" border="0" cellpadding="5" cellspacing="2" >
          <tr>
            <td width="20%" class="titulos1"><a name="promo2">PROMO 2</a></td>
            <td width="40%" class="titulos1">Castellano</td>
            <td width="40%" class="titulos1">Inglés</td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">T&iacute;tulo:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><input name="titulo2-cas" type="text" size="40" value="<?php echo $promos[1][TITULO_CAS]; ?>"></td>
            <td width="40%" colspan="2" bgcolor="#EEEEDB" class="texto"><input name="titulo2-eng" type="text" size="40" value="<?php echo $promos[1][TITULO_ENG]; ?>"></td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">Precio:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><input name="precio2-cas" type="text" size="40" value="<?php echo $promos[1][PRECIO_CAS]; ?>"></td>
            <td width="40%" colspan="2" align="left" bgcolor="#EEEEDB" class="texto"><input name="precio2-eng" type="text" size="40" value="<?php echo $promos[1][PRECIO_ENG]; ?>"></td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">Descripción:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><textarea name="texto2-cas" rows="7" cols="30"><?php echo $promos[1][TEXTO_CAS]; ?></textarea></td>
            <td width="40%" colspan="2" align="left" bgcolor="#EEEEDB" class="texto"><textarea name="texto2-eng" rows="7" cols="30"><?php echo $promos[1][TEXTO_ENG]; ?></textarea></td>
          </tr>
        </table>
        <br>
        <table width="100%" border="0" cellpadding="5" cellspacing="2" >
          <tr>
            <td width="20%" class="titulos1"><a name="promo3">PROMO 3</a></td>
            <td width="40%" class="titulos1">Castellano</td>
            <td width="40%" class="titulos1">Inglés</td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">T&iacute;tulo:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><input name="titulo3-cas" type="text" size="40" value="<?php echo $promos[2][TITULO_CAS]; ?>"></td>
            <td width="40%" colspan="2" bgcolor="#EEEEDB" class="texto"><input name="titulo3-eng" type="text" size="40" value="<?php echo $promos[2][TITULO_ENG]; ?>"></td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">Precio:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><input name="precio3-cas" type="text" size="40" value="<?php echo $promos[2][PRECIO_CAS]; ?>"></td>
            <td width="40%" colspan="2" align="left" bgcolor="#EEEEDB" class="texto"><input name="precio3-eng" type="text" size="40" value="<?php echo $promos[2][PRECIO_ENG]; ?>"></td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">Descripción:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><textarea name="texto3-cas" rows="7" cols="30"><?php echo $promos[2][TEXTO_CAS]; ?></textarea></td>
            <td width="40%" colspan="2" align="left" bgcolor="#EEEEDB" class="texto"><textarea name="texto3-eng" rows="7" cols="30"><?php echo $promos[2][TEXTO_ENG]; ?></textarea></td>
          </tr>
        </table>
        <br>
        <table width="100%" border="0" cellpadding="5" cellspacing="2" >
          <tr>
            <td width="20%" class="titulos1"><a name="promo4">PROMO 4</a></td>
            <td width="40%" class="titulos1">Castellano</td>
            <td width="40%" class="titulos1">Inglés</td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">T&iacute;tulo:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><input name="titulo4-cas" type="text" size="40" value="<?php echo $promos[3][TITULO_CAS]; ?>"></td>
            <td width="40%" colspan="2" bgcolor="#EEEEDB" class="texto"><input name="titulo4-eng" type="text" size="40" value="<?php echo $promos[3][TITULO_ENG]; ?>"></td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">Precio:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><input name="precio4-cas" type="text" size="40" value="<?php echo $promos[3][PRECIO_CAS]; ?>"></td>
            <td width="40%" colspan="2" align="left" bgcolor="#EEEEDB" class="texto"><input name="precio4-eng" type="text" size="40" value="<?php echo $promos[3][PRECIO_ENG]; ?>"></td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">Descripción:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><textarea name="texto4-cas" rows="7" cols="30"><?php echo $promos[3][TEXTO_CAS]; ?></textarea></td>
            <td width="40%" colspan="2" align="left" bgcolor="#EEEEDB" class="texto"><textarea name="texto4-eng" rows="7" cols="30"><?php echo $promos[3][TEXTO_ENG]; ?></textarea></td>
          </tr>
        </table>
		<br>
        <table width="100%" border="0" cellpadding="5" cellspacing="2" >
          <tr>
            <td width="20%" class="titulos1"><a name="promo5">PROMO 5</a></td>
            <td width="40%" class="titulos1">Castellano</td>
            <td width="40%" class="titulos1">Inglés</td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">T&iacute;tulo:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><input name="titulo5-cas" type="text" size="40" value="<?php echo $promos[4][TITULO_CAS]; ?>"></td>
            <td width="40%" colspan="2" bgcolor="#EEEEDB" class="texto"><input name="titulo5-eng" type="text" size="40" value="<?php echo $promos[4][TITULO_ENG]; ?>"></td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">Precio:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><input name="precio5-cas" type="text" size="40" value="<?php echo $promos[4][PRECIO_CAS]; ?>"></td>
            <td width="40%" colspan="2" align="left" bgcolor="#EEEEDB" class="texto"><input name="precio5-eng" type="text" size="40" value="<?php echo $promos[4][PRECIO_ENG]; ?>"></td>
          </tr>
          <tr>
            <td width="20%" valign="middle" bgcolor="#DCDCB8" class="textoNegrita">Descripción:</td>
            <td width="40%" bgcolor="#EEEEDB" class="texto"><textarea name="texto5-cas" rows="7" cols="30"><?php echo $promos[4][TEXTO_CAS]; ?></textarea></td>
            <td width="40%" colspan="2" align="left" bgcolor="#EEEEDB" class="texto"><textarea name="texto5-eng" rows="7" cols="30"><?php echo $promos[4][TEXTO_ENG]; ?></textarea></td>
          </tr>
        </table>
        <br>        
        <table width="100%" border="0" cellpadding="5" cellspacing="2" >
          <tr>
            <td width="33%" align="center"><input type="submit" value="Previsualizar versi&oacute;n en castellano" onClick="javascript:window.open('', 'Previsualizar', 'width=800,height=700,scrollbars=yes,resizable=yes');form.target='Previsualizar';form.accion.value='previsualizar_castellano';" /><br><input type="submit" value="Previsualizar versi&oacute;n en Inglés" onClick="javascript:window.open('', 'Previsualizar', 'width=800,height=700,scrollbars=yes,resizable=yes');form.target='Previsualizar';form.accion.value='previsualizar_ingles';" /></td>
            <td width="33%" align="center"><input type=submit value="Guardar los cambios" onClick="javascript:form.target='_self';form.accion.value='guardar'" /></td>
            <td width="33%" align="center"><input type="button" value="Salir sin guardar" onClick="location.href='index.htm'"/></td>
          </tr>
        </table>
	  </td>
    </tr>
    <tr>
      <td valign="top" bgcolor="#333333" height="40" align="left"><span class="texto"><img src="../img_nav/hoja.gif" width="76" height="40" alt=""></span></td>
    </tr>
  </table>
</form>
</body>
</html>
