<head>
<script src="jquery.tools.min.js"></script>
<link rel="stylesheet" type="text/css" href="standalone.css">
<link rel="stylesheet" type="text/css" href="tabs.css">
<script>
function tab(pestana,wizard)
{
pst = document.getElementById(pestana);
pnl = document.getElementById(wizard);
psts = document.getElementById('tabs').getElementsByTagName('li');
pnls = document.getElementById('wizard').getElementsByTagName('div');
}
</script>
<script language="javascript">
function fn_insert_user(){
var str = $("#insert_user").serialize();
$.ajax({
url: 'detalle_cotizacion.php',
data: str,
type: 'post',
success: function(data){
$("#show").html(data);
}
});
};
</script>
</head>
<body>
<div id="content">
<div id="promotions">
<form action="javascript: fn_insert_user();" id="insert_user">
<div id="wizard">
<!-- tabs -->
<ul class="tabs">
<li><a href="#EventoTab" class="w2 current">Evento</a></li>
<li><a href="#AtraccTab" class="w2">Atracciones</a></li>
<li><a href="#AlimentoTab" class="w2">Alimentos/Bebidas</a></li>
<li><a href="#FestejosTab" class="w2">Festejos</a></li>
<li><a href="#EntretenTab" class="w2">Entretenimiento</a></li>
<li><a href="#DecorTab" class="w2">Decoración</a></li>
</ul>
<!-- panes -->
<div class="panes">
<div style="display: block;">
<table width='400'>
<p></p> <p></p>
<tr>
<td>Fecha:</td>
<td><input name="fecha_evento" id="fecha_evento" type="text" ></td>
<td>Tipo:</td>
<td><input name="tipo_evento" type="text"></td>
</tr>
<tr>
<td>Dirección:</td>
<td><input name="dir_evento" type="text" id="dir_evento" ></td>
<td>Lugar:</td>
<td><input name="carac_lugar" type="text" ></td>
</tr>
<tr>
<td>Hora Inicio:</td>
<td><input name="hora_ini" type="text" id="hora_ini" ></td>
<td>Niños:</td>
<td><input name="ctdad_ninos" type="text" ></td>
</tr>
<tr>
<td>Adultos:</td>
<td><input name="ctdad_adult" type="text" id="ctdad_adult"></td>
<td>Generadora Energia:</td>
<td>
<label>
<input type="radio" name="energia" value="si" id="e_0" >si
<input type="radio" name="energia" value="no" id="e_1" >no
</label>
</td>
</tr>
</table>
<p><button class="next">Next »</button></p>
</div>
<!-- P1 -->
<div style="display: block;">
<table width="600">
<tr>
<td width="300">
<table width="300">
<tr>
<td colspan="2"><center>Atracciones</center></td>
</tr>
<?php echo "
<td width=\"150\">Producto</td>
<td width=\"100\">Seleccionar</td>
</tr>
<tr>";
$rs = mysql_query("SELECT * FROM coti where categoria='atracc'"); $categoria = $result['categoria'];
$producto = $result['producto'];
echo
"
<td>$producto</td>
<td><input name=\"atracc\" type=\"checkbox\" value=\"\"></td>
</tr>"; }?>
</table>
<td width="300"><table width="300">
<tr>
<td colspan="2"><center>Promocionales</center></td>
</tr>
<?php echo
"
<tr>
<td width=\"150\">Producto</td>
<td width=\"100\">Seleccionar</td>
</tr>
<tr>";
$rs = mysql_query("SELECT * FROM coti where categoria='promo'"); $categoria = $result['categoria'];
$producto = $result['producto'];
echo
"
<td>$producto</td>
<td><input name=\"atracc\" type=\"checkbox\" value=\"\"></td>
</tr>
";
}
?>
</table></td></td>
</tr>
</table>
<label>
<p><button class="prev">« Prev</button>
<button class="next">Next »</button></p>
</label>
</div>
<!-- P2-->
<div style="display: block;">
<table width="600">
<tr>
<td width="300">
<table width="300">
<tr>
<td colspan="2"><center>Alimentos</center></td>
</tr>
<?php echo "
<td width=\"150\">Producto</td>
<td width=\"100\">Seleccionar</td>
</tr>
<tr>";
$rs = mysql_query("SELECT * FROM coti where categoria='alim'"); $categoria = $result['categoria'];
$producto = $result['producto'];
echo
"
<td>$producto</td>
<td><input name=\"atracc\" type=\"checkbox\" value=\"\"></td>
</tr>"; }?>
</table>
<td width="300"><table width="300">
<tr>
<td colspan="2"><center>Bebidas</center></td>
</tr>
<?php echo
"
<tr>
<td width=\"150\">Producto</td>
<td width=\"100\">Seleccionar</td>
</tr>
<tr>";
$rs = mysql_query("SELECT * FROM coti where categoria='beb'"); $categoria = $result['categoria'];
$producto = $result['producto'];
echo
"
<td>$producto</td>
<td><input name=\"atracc\" type=\"checkbox\" value=\"\"></td>
</tr>
";
}
?>
</table></td></td>
</tr>
</table>
<label>
<p><button class="prev">« Prev</button>
<button class="next">Next »</button></p>
</label>
</div>
<!-- P3 -->
<div style="display: block;">
<table width="600">
<tr>
<td width="300">
<table width="300">
<tr>
<td colspan="2"><center>Festejos</center></td>
</tr>
<?php echo "
<td width=\"150\">Producto</td>
<td width=\"100\">Seleccionar</td>
</tr>
<tr>";
$rs = mysql_query("SELECT * FROM coti where categoria='fest'"); $categoria = $result['categoria'];
$producto = $result['producto'];
echo
"
<td>$producto</td>
<td><input name=\"atracc\" type=\"checkbox\" value=\"\"></td>
</tr>"; }?>
</table>
<td width="300"><table width="300">
<tr>
<td colspan="2"><center>Festejos</center></td>
</tr>
<?php echo
"
<tr>
<td width=\"150\">Producto</td>
<td width=\"100\">Seleccionar</td>
</tr>
<tr>";
echo
"
<td>$producto</td>
<td><input name=\"atracc\" type=\"checkbox\" value=\"\"></td>
</tr>
";
}
?>
</table></td></td>
</tr>
</table>
<label>
<p><button class="prev">« Prev</button>
<button class="next" >Next »</button></p>
</label>
</div>
<!-- P4 -->
<div style="display: block;">
<table width="600">
<tr>
<td width="300">
<table width="300">
<tr>
<td colspan="2"><center>Entretenimiento</center></td>
</tr>
<?php echo "
<td width=\"150\">Producto</td>
<td width=\"100\">Seleccionar</td>
</tr>
<tr>";
$rs = mysql_query("SELECT * FROM coti where categoria='entret'"); $categoria = $result['categoria'];
$producto = $result['producto'];
echo
"
<td>$producto</td>
<td><input name=\"atracc\" type=\"checkbox\" value=\"\"></td>
</tr>"; }?>
</table>
<td width="300"><table width="300">
<tr>
<td colspan="2"><center>Entretenimiento</center></td>
</tr>
<?php echo
"
<tr>
<td width=\"150\">Producto</td>
<td width=\"100\">Seleccionar</td>
</tr>
<tr>";
echo
"
<td>$producto</td>
<td><input name=\"atracc\" type=\"checkbox\" value=\"\"></td>
</tr>
";
}
?>
</table></td></td>
</tr>
</table>
<label>
<p><button class="prev">« Prev</button>
<button class="next" >Next »</button></p>
</label>
</div>
<!-- P5 -->
<div style="display: block;">
<table width="600">
<tr>
<td width="300">
<table width="300">
<tr>
<td colspan="2"><center>Decoración</center></td>
</tr>
<?php echo "
<td width=\"150\">Producto</td>
<td width=\"100\">Seleccionar</td>
</tr>
<tr>";
$rs = mysql_query("SELECT * FROM coti where categoria='decor'"); $categoria = $result['categoria'];
$producto = $result['producto'];
echo
"
<td>$producto</td>
<td><input name=\"atracc\" type=\"checkbox\" value=\"\"></td>
</tr>"; }?>
</table>
<td width="300"><table width="300">
<tr>
<td colspan="2"><center>Decoración</center></td>
</tr>
<?php echo
"
<tr>
<td width=\"150\">Producto</td>
<td width=\"100\">Seleccionar</td>
</tr>
<tr>";
echo
"
<td>$producto</td>
<td><input name=\"atracc\" type=\"checkbox\" value=\"\"></td>
</tr>
";
}
?>
</table></td></td>
</tr>
</table>
<label>
<p><button class="prev">« Prev</button>
<input type="submit" value="Cotizar"/>
</label>
</div>
</div>
</div>
</form>
<script>
$(function() {
// get container for the wizard and initialize its exposing
var wizard = $("#wizard");
// enable exposing on the wizard
wizard.click(function() {
$(this).load();
});
// enable tabs that are contained within the wizard
$("ul.tabs", wizard).tabs("div.panes > div", function(event, index) {
/* now we are inside the onBeforeClick event */
});
// get handle to the tabs API
var api = $("ul.tabs", wizard).data("tabs");
// "next tab" button
$("button.next", wizard).click(function() {
api.next();
});
// "previous tab" button
$("button.prev", wizard).click(function() {
api.prev();
});
});
</script>
</div>
</div>
</div>
</body>
</html>