示例#1
0
    $total = 0;
    ?>
<div class="container">
<div class="row">
<div class="col-md-12">
<h2>Lista de venta</h2>

<form class="form-horizontal" role="form" method="post" action="./?action=process">
  <div class="form-group">

    <div class="col-lg-3">
    <label class="control-label">Cliente</label>
<select name="client_id" required class="form-control">
<option value="">-- SELECCIONE --</option>
  <?php 
    foreach (ClientData::getAll() as $p) {
        ?>
    <option value="<?php 
        echo $p->id;
        ?>
"><?php 
        echo $p->name . " " . $p->lastname;
        ?>
</option>
  <?php 
    }
    ?>
</select>
    </div>

    <div class="col-lg-3">
示例#2
0
<div class="btn-group pull-right">
	<a href="index.php?view=newclient" class="btn btn-default"><i class='fa fa-male'></i> Nuevo Cliente</a>
<!--<div class="btn-group pull-right">
  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
    <i class="fa fa-download"></i> Descargar <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu">
    <li><a href="report/clients-word.php">Word 2007 (.docx)</a></li>
  </ul>
</div>
-->
</div>
		<h1>Clientes</h1>
<br>
		<?php 
$users = ClientData::getAll();
if (count($users) > 0) {
    // si hay usuarios
    ?>

			<table class="table table-bordered table-hover">
			<thead>
			<th>Nombre completo</th>
			<th>Direccion</th>
			<th>Email</th>
			<th>Telefono</th>
			<th></th>
			</thead>
			<?php 
    foreach ($users as $user) {
        ?>
示例#3
0
            </div>
            </div>

          <div class="row">
            <div class="col-md-12">
              <div class="panel panel-default">
                <div class="panel-heading">
                  <i class="fa fa-th-list"></i> Clientes
                </div>
                <div class="widget-body medium no-padding">

                  <div class="table-responsive">
                    <table class="table table-bordered">
                      <tbody>
<?php 
$categories = ClientData::getAll();
if (count($categories) > 0) {
    ?>
<thead>
  <th>Nombre</th>
  <th>Email</th>

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