Example #1
0
</td>
		</tr>
	</table>
<br>
</div>
</div>
<div class="row">
<div class="col-md-12">

<form class="form-horizontal" role="form" method="post" action="index.php?action=changestatus">
  <div class="form-group">
    <label for="inputEmail1" class="col-md-3 control-label">Estado</label>
    <div class="col-md-6">
<select name="status_id" class="form-control">
<?php 
    foreach (StatusData::getAll() as $s) {
        ?>
<option value="<?php 
        echo $s->id;
        ?>
" <?php 
        if ($s->id == $buy->status_id) {
            echo "selected";
        }
        ?>
><?php 
        echo $s->name;
        ?>
</option>
<?php 
    }
Example #2
0
<div class="row">
<div class="col-md-12">
<h1>BIENVENIDO A KATANA</h1>
<p>Katana es un sistema de tienda en linea.</p>

<?php 
$status = StatusData::getAll();
if (count($status) > 0) {
    ?>

              <div class="panel panel-default">
                <div class="panel-heading">
                  <i class="fa fa-th-list"></i> Operaciones
                </div>
                <div class="widget-body medium no-padding">
                  <div class="table-responsive">
                    <table class="table table-bordered">
                      <tbody>

<thead>
  <th>Estado</th>
  <th>Cantidad</th>
</thead>
<?php 
    foreach ($status as $cat) {
        ?>
                        <tr>
                        <td><?php 
        echo $cat->name;
        ?>
</td>