<p class="form-title">Registro de Venta</p> <?php if (!Forms::checkPermission(FORM_SELL_NEW)) { return; } require_once 'inc/class.session.php'; require_once 'inc/class.store.php'; require_once 'inc/class.lot.php'; require_once 'inc/class.customer.php'; $session = Session::getInstance(); $stores = Store::getAllActive("name", "ASC"); $storeid = isset($_GET['store']) ? $_GET['store'] : ""; $lots = is_numeric($storeid) ? Lot::getAllFromStore($storeid) : array(); include 'inc/widget/error.php'; ?> <form action="" method="GET" name="form1"> <table class="form"> <tr> <td class="label" style="width:9em">Almacen:</td> <td> <input type="hidden" name="pages" value="sell_new"/> <select id="store_selector" name="store"> <option value="">-Seleccionar Almacen-</option> <?php foreach ($stores as $store) { echo "<option value='{$store->id}'" . ($store->id == $storeid ? " selected='selected'" : "") . ">{$store->name}</option>"; } ?> </select> <span class="mandatory">*</span> </td>