<?php 
  defined('BASEPATH') OR exit('No direct script access allowed');
  
  ?>
<div class="content-wrapper">
  <section class="content-header">
    <?php echo $pagetitle; ?>
    <?php echo $breadcrumb; ?>
  </section>
  <section class="content">
    <div class="row">
      <div class="col-md-12">
        <div class="box">
          <div class="box box-primary">
            <!-- Primer bloque -->
            <div class="box-body">
              <?php 
                if ($message) {
                	echo '<pre>';
                	echo '<h4><b>Mensaje:</b></h4>';
                	echo '<h5>' . $message . '</h5>';
                	echo '</pre>';
                } 
                ?>
              <?php echo form_open(current_url(), array('class' => 'form-horizontal', 'id_memo' => 'form-create_memo'));?>
              <div class="panel panel-default">
                <div class="panel-body">
                  <div class="col-sm-12">
                    <div class="text-center">
                      <h4>CARGA DE DATOS PARA MEMOS</h4>
                    </div>
                    <table class="tablaCentrada" border="1px solid rgb(0, 0, 0)" style="width: 100%;">
                      <tbody>
                        <tr>
                          <td><label for="id_memo">ID MEMO</label></td>
                          <td><?php echo form_input($id_memo) ?></td>
                        </tr>
                        <tr>
                        <td><label class="control-label" for="tipo_memo">Tipo de Memo:</label></td>
                        <td>
                          <label>UBI
                          <?php echo form_radio(
                            $tipo_memo['name'],
                            $tipo_memo['value_ubi'],
                            $tipo_memo['checked_ubi']
                            );?>
                          </label>
                          <?php echo '&nbsp;';?><?php echo '&nbsp;';?><?php echo '&nbsp;';?>
                          <label>DAO
                          <?php echo form_radio(
                            $tipo_memo['name'],
                            $tipo_memo['value_dao'],
                            $tipo_memo['checked_dao']
                            );?>
                          </label>
                          <?php echo '&nbsp;';?><?php echo '&nbsp;';?><?php echo '&nbsp;';?>
                          <label>DAJ
                          <?php echo form_radio(
                            $tipo_memo['name'],
                            $tipo_memo['value_daj'],
                            $tipo_memo['checked_daj']
                            );?>
                          </label>
                          <?php echo '&nbsp;';?><?php echo '&nbsp;';?><?php echo '&nbsp;';?>
                          <label>OTRO
                          <?php echo form_radio(
                            $tipo_memo['name'],
                            $tipo_memo['value_otr'],
                            $tipo_memo['checked_otr']
                            );?>
                          </label>
                        </td>
                      </tr>
                        <tr>
                          <td>N° MEMOS</td>
                          <td><?php echo form_input($nro_memo) ?></td>
                        </tr>
                        <tr>
                          <td>AÑO</td>
                          <td><?php echo form_input($anho_memo) ?></td>
                        </tr>
                      <!--  
                        <tr>
                          <td>PROFESIONAL EMISOR</td>
                          <td><?php $attribute //= 'class="form-control selectpicker" title="Profesional" id="id_prof_emisor" name="id_prof_emisor" '; echo form_dropdown('id_prof_emisor', $prof_emisor, $attribute); ?></td>
                        </tr>
                      -->
                        <tr>
                          <td>EMISOR</td>
                          <td>
                            <?php $attribute = 'class="form-control selectpicker" title="Profesional" id="id_prof_emisor" name="id_prof_emisor" '; echo form_dropdown('id_prof_emisor', $prof_emisor, '', $attribute); ?>
                            <?php $attribute = 'class="form-control selectpicker" title="Emisor" id="id_emisor" name="id_emisor" '; echo form_dropdown('id_emisor', $emisor, '', $attribute); ?></td>
                        </tr>
                      <!--  
                        <tr>
                          <td>PROFESIONAL RECEPTOR</td>
                          <td><?php $attribute //= 'class="form-control selectpicker" title="Profesional" id="id_prof_receptor" name="id_prof_receptor" '; echo form_dropdown('id_prof_receptor', $prof_receptor, $attribute); ?></td>
                        </tr>
                      -->
                        <tr>
                          <td>RECEPTOR</td>
                          <td>
                            <?php $attribute = 'class="form-control selectpicker" title="Profesional" id="id_prof_receptor" name="id_prof_receptor" '; echo form_dropdown('id_prof_receptor', $prof_receptor, '', $attribute); ?>
                            <?php $attribute = 'class="form-control selectpicker" title="Receptor" id="id_receptor" name="id_receptor" '; echo form_dropdown('id_receptor', $receptor, '', $attribute); ?></td>
                        </tr>
                        <tr>
                          <td>REFERENCIA</td>
                          <td><?php echo form_input($referencia); ?></td>
                        </tr>
                        <tr>
                          <td>DESCRIPCION</td>
                          <td><?php echo form_input($descripcion); ?></td>
                        </tr>
                        <tr>
                          <td>FECHA</td>
                          <td>
                            <div class="input-group date" data-provide="datepicker" data-date-format="dd/mm/yyyy">
                              <?php echo form_input($fecha);?>
                              <div class="input-group-addon">
                                <i class="fa fa-calendar"></i>
                              </div>
                            </div>
                          </td>
                        </tr>
                        <tr>
                          <td>USUARIO</td>
                          <td><?php echo form_input($id_usuario) ?></td>
                        </tr>
                        
                        
                        <!--<tr>
                          <td>TIPO MONEDA</td>
                          <td><?php $attribute //= 'class="form-control selectpicker" title="Tipo de moneda" id="tipo_moneda" name="tipo_moneda" '; echo form_dropdown('tipo_moneda', $tipos_moneda, '', $attribute); ?></td>
                        </tr>-->
                      </tbody>
                    </table>
                  </div>
                </div>
              </div>
              <div class="panel panel-default">
                <div class="panel-body">
                  <!-- Sección botones -->
                  <div class="col-sm-offset-0 col-sm-12" align="center">
                    <?php echo form_button(array('name' => 'accion','type' => 'submit','value' => '1','class'
                      => 'btn btn-primary', 'content' =>  'GUARDAR')); ?>
                    <?php echo '&nbsp;';?>
                    <?php echo '&nbsp;';?>
                    <?php echo anchor('memos/memos/', 'VOLVER', array('class' => 'btn btn-primary', 'content' => 'REGRESAR')); ?>
                  </div>
                </div>
              </div>							
            </div>
          </div>
          <?php echo form_close();?>
        </div>
        <!-- Fin primer bloque -->
      </div>
    </div>
</div>
</div>
</section>
</div>