<div class="page-header">
	<h2> Unidades</h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<small>mantenimiento de registros</small></h2>
</div>

<hr class="separator" />

<h5><small><b>Selecciona los siguientes campos:</b></small></h5>
<table class='table table-bordered table-hover table-condensed'>
	<thead>
		<tr>
			<th width='50%'>Seleccionar</th>
			<th width='50%'>Crear</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td align='center'>
				<div class='form-group'>
					<div class='col-sm-8 sm-offset-col-2'>
						<?= form_label('Artículo: ','') ?>
						<?= combos($articulos,'pk_cat_tipo_articulo','descripcion','fk_cat_tipo_articulo','fk_cat_tipo_articulo','loading_small(\'div2\');loading_small(\'div_crear\');loading(\'div_modelos\');xajax_show_div2(this.value,$(\'#fk_cat_tipo_articulo option:selected\').text());'); ?>
					</div>
				</div>
				<div class='form-group'>
					<div class='col-sm-8 sm-offset-col-2' id='div2'>
						
					</div>
				</div>
			</td>
			<td align='center'>
			<?= form_open('',array('id' => 'frm_crear','name' => 'frm_crear','role' => 'form','onsubmit' => 'xajax_crear(xajax.getFormValues(\'frm_crear\'));return false')); ?>
				<div id='div_crear'>
					
				</div>
			<?= form_close(); ?>
			</td>
		</tr>
	</tbody>
</table>
<?= form_open('',array('id' => 'frm_modelos','name' => 'frm_modelos','role' => 'form','onsubmit' => 'xajax_update_modelo(xajax.getFormValues(\'frm_modelos\'));return false')); ?>
<div id="div_modelos"></div>
					
</div>
<?= form_close(); ?>