<div class="page-header">
	<h2> Asignar Prospecto</h2>
</div>

<hr class="separator" />

<table class="table table-bordered table-hover table-condensed" id="dt_asignar_prospecto">
	<thead>
		<tr>
			<th>Clave</th>
			<th>Fecha Inicio</th>
			<th>Prospecto</th>
			<th>Vendedor</th>
            <th>Asignar a vendedor</th>
            <th>Actualizar</th>
		</tr>
	</thead>

	<tbody>
		<?php foreach ($prospectos as $registro): ?>
		<tr class='table-success'>
			<td><?= $registro->pk_u_prospecto_ciclo ?></td>
			<td><?= $registro->fecha_inicio ?></td>
			<td><?= $registro->nombre ?></td>
            <td><?= $registro->vendedor ?></td>
            <td><?= combos($cargar_vendedores,'pk_cat_personal','nombre','fk_cat_personal'.$registro->pk_u_prospecto_ciclo,'fk_cat_personal'.$registro->pk_u_prospecto_ciclo,'') ?></td>
            <td><?= form_button(array('type' => 'button','name' => 'btn_guardar','id' => 'btn_guardar','content' => 'Actualizar','class' => 'btn btn-primary','onclick' => 'xajax_guardar(\''.$registro->pk_u_prospecto_ciclo.'\',fk_cat_personal'.$registro->pk_u_prospecto_ciclo.'.value,\''.get_instance()->session->userdata('articulo_maestro').'\')')) ?></td>
		</tr>
		<?php endforeach; ?>
	</tbody>
</table>
<script type="text/javascript">
	$(document).ready(function () {
        mostrarOpcionesTabla("dt_asignar_prospecto",false,false,true);
        $('.chosen-select').chosen({width: '100%'});
    });
</script>