<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"
          rel="stylesheet" type="text/css">
    <link href="http://pingendo.github.io/pingendo-bootstrap/themes/default/bootstrap.css"
          rel="stylesheet" type="text/css">
</head>

<body>
<div class="section">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title">Generacion de CSV</h3>
                    </div>
                    <div class="panel-body">
                        <form class="form-horizontal" role="form">
                            <div class="form-group">
                                <div class="col-sm-2">
                                    <label class="control-label">Proceso
                                        <br>
                                    </label>
                                </div>
                                <div class="col-sm-10">
                                    <select class="form-control" name="idproceso">
                                        <?php foreach($itemSelect as $item) { ?>
                                            <option value="<?php echo $item["id_proceso"];?>">Id Proceso: <?php echo $item["id_proceso"];?>
                                                Id Camara: <?php echo $item["id_camara"];?>
                                                (<?php echo $item["fecha_inicio"];?>)</option>
                                        <?php } ?>

                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="submit" name="boton" value="1" class="btn btn-default">Generar &nbsp;
                                        <i class="fa fa-file-text fa-fw"></i>
                                    </button>
                                </div>
                            </div>
                        </form>
                        <?php if($mensaje) { ?>
                        <div class="alert alert-danger alert-dismissable">
                            <b><?php echo $mensaje; ?></b>
                        </div>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</body>

</html>