示例#1
0
<?php

include_once "../controller/cPuestos.php";
$puestos = new cPuestos();
$lpuest = $puestos->listaPuesto();
?>
<div class="modal-dialog modal-lg" role="document">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close">
				<span aria-hidden="true">&times;</span>
			</button>
			<h4 class="modal-title" id="myModalLabel">Editando Datos de:</h4>
		</div>
		<div class="modal-body">
			<form id="FormNvoEmp">
				<div class="row">
					<div class="form-group">
						<div class="col-md-4">
							<label>Apellido Paterno</label>
							<input class="form-control" name="a_pat" />
						</div>
						<div class="col-md-4">
							<label>Apellido Paterno</label>
							<input class="form-control" name="a_mat" />
						</div>
						<div class="col-md-4">
							<label>Nombre</label>
							<input class="form-control" name="nombres" />
						</div>
					</div>
示例#2
0
	<div class="col-md-8">
		<hr />
		<div class="table-responsive">
		<table class="table" id="tablaPuestos" style="text-transform: uppercase">
			<thead>
				<tr>
					<th>#</th>
					<th>Nombre</th>
					<th>Salario</th>
					<th>Hrs/Dia</th>
					<th>Acciones</th>
				</tr>
			</thead>
			<tbody>
				<?php 
$listaP = $puestos->listaPuesto();
$i = 1;
while ($l = $listaP->fetch()) {
    ?>
				<tr>
					<td><?php 
    echo $i++;
    ?>
</td>
					<td><?php 
    echo $l['nombre'];
    ?>
</td>
					<td>$<?php 
    echo number_format($l['salario'], 2);
    ?>