float:left;}
</style>

</head>
<?php 
if (isset($_POST['guardar'])) {
    include_once '../controller/class_formulario_comunicacion.php';
    $formulario = new FormularioComunicacion();
    $a[0] = 2;
    $a[1] = $_POST['fecha_formulario'];
    $a[2] = $_POST['rut'] . '-' . $_POST['dv'];
    $a[3] = $_POST['nomFranc'];
    $a[4] = 2;
    $a[5] = $_POST['codCur'];
    $a[6] = 0;
    if ($formulario->addFormulario($a)) {
        echo "<script>alert('Se han registrado correctamente los datos del formulario')</script>";
        echo "<script>document.location(\"formulario_pestanas.php?rut=1-9\");</script>";
    } else {
        echo "<script>alert('Se ha generado un problema al registrar el formulario')</script>";
    }
}
$fecha_actual = "" . date("d") . "/" . date("m") . "/" . date("Y");
?>

<body>
<?php 
include 'menu_administracion.php';
?>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>