function get_formularios_filter() { $id_sub_item = $this->input->post('tipo_documento'); $ci_paciente = $this->input->post('id_paciente'); $fecha_in = $this->input->post('fechaIn'); $fecha_fin = $this->input->post('fechaFin'); $json_res = ''; switch ($id_sub_item) { case 13: $data = $this->enfermeria->lista_emergencia_search($ci_paciente, $fecha_in, $fecha_fin); // $json_res = json_encode($data); $json_res = $data; // print_r($json_res); $this->load->view('formularios_emergencia/lista_emergencia_008', $json_res); break; case 16: //Pedidos de examenes solicitados echo warning_msg("<br>para estos reportes por favor hagalo por medio de los parametros que acabamos de cargar..."); $this->get_reportes_solicitudes(); // echo "i es igual a 1"; break; case 18: //Resultados de examenes echo warning_msg("<br>para estos reportes por favor hagalo por medio de los parametros que acabamos de cargar..."); $this->get_reportes_informes(); // echo "i es igual a 2"; break; case 19: //Hoja de ruta de ambulancia 2 $datos = $this->enfermeria->list_orden_salida_ambulancia($ci_paciente, $fecha_in, $fecha_fin); $this->load->view('formularios_emergencia/lista_salidaAmbulancia', $datos); break; case 20: //Planilla de Farmacia echo warning_msg("<br> Este modulo ya tiene sus reportes desde ventas para ver sus documentos"); echo tagcontent('a', '<span class="glyphicon glyphicon-hand-right"> Haga click Aqui</span>', array('href' => base_url('facturacionhospital/ventasjs'), 'target' => '_blank')); echo "i es igual a 2"; break; // case 28:// Planilla de farmacia Final // echo "Planilla de farmacia Final"; // break; // case 28:// Planilla de farmacia Final // echo "Planilla de farmacia Final"; // break; case 30: // encuesta de satisfacción $tipo_servicio = 3; // emergencia $id_tipo_servicio = 3; $quirofao = false; $res = $this->enfermeria->lista_satisfaccion_search($tipo_servicio, $ci_paciente, $fecha_in, $fecha_fin, $quirofao, $id_tipo_servicio); // apunta a la vista de hospitalizacion xq es lo msimo $this->load->view('formularios_hospitalizacion/lista_satisfaccion', $res); // echo "encuesta de satisfacción"; break; default: echo warning_msg("<br>Debe seleccionar algun tipo de documento a buscar "); break; } }
public function check_session() { $ci =& get_instance(); $user_id = $ci->user->id; if (empty($user_id)) { $ci->session->set_userdata('message', 'Su sesion ha expirado, vuelva a ingresar'); // redirect(base_url('login/login')); echo tagcontent('script', "window.location.replace('" . base_url('login/login') . "')"); die; } }
function get_formularios_filter() { $id_sub_item = $this->input->post('tipo_documento'); $ci_paciente = $this->input->post('id_paciente'); $fecha_in = $this->input->post('fechaIn'); $fecha_fin = $this->input->post('fechaFin'); $json_res = ''; switch ($id_sub_item) { case 21: // Hoja de descargo de quirofano echo warning_msg("<br> Este modulo ya tiene sus reportes desde ventas para ver sus documentos"); echo tagcontent('a', '<span class="glyphicon glyphicon-hand-right"> Haga click Aqui</span>', array('href' => base_url('facturacionhospital/ventasjs/'), 'target' => '_blank')); break; case 22: // registro de anestesia $datos = $this->enfermeria->lista_reporte_regi_anestecia($ci_paciente, $fecha_in, $fecha_fin); $this->load->view('formularios_quirofano/lista_registro_anestesia', $datos); break; case 23: // protocolo operatorio $datos = $this->enfermeria->lista_protocolo_search($ci_paciente, $fecha_in, $fecha_fin); $this->load->view('formularios_quirofano/lista_protocolo', $datos); // echo "i es igual a 2"; break; case 24: // sala de recuperación $datos = $this->enfermeria->lista_regiSalaRecuperacion($ci_paciente, $fecha_in, $fecha_fin); $this->load->view('formularios_quirofano/lista_sala_recuperacion', $datos); break; case 25: // Anexo 3/Quirofano $tipo_servicio = 2; // hospitalizacion $quirofano = true; // filtro solo los anexos 3 de quirofano $id_tipo_servicio = 2; // id dehospitalizacoion $res = $this->enfermeria->lista_post_egreso_paciente($tipo_servicio, $ci_paciente, $fecha_in, $fecha_fin, $quirofano, $id_tipo_servicio); $this->load->view('formularios_quirofano/lista_post_egreso', $res); break; case 27: // encuesta de satisfacción $tipo_servicio = 0; $id_tipo_servicio = 0; $res = $this->enfermeria->lista_satisfaccion_search($tipo_servicio, $ci_paciente, $fecha_in, $fecha_fin, true, $id_tipo_servicio); $this->load->view('formularios_quirofano/lista_satisfaccion', $res); break; default: echo warning_msg("<br>Debe seleccionar algun tipo de documento a buscar "); break; } }
function get_field_group($label, $text_inputs, $class = 'col-md-2 form-group') { $output = ''; $output .= Open('div', array('class' => $class)); $output .= Open('div', array('class' => 'input-group')); $output .= tagcontent('span', $label, array('class' => 'input-group-addon')); foreach ($text_inputs as $attr_input) { $output .= input($attr_input); } $output .= Close('div'); $output .= Close('div'); return $output; }
echo '<tbody>'; if (!empty($data)) { foreach ($data as $val) { echo Open('tr'); echo tagcontent('td', $val->id); echo tagcontent('td', $val->ced_pac); echo tagcontent('td', $val->nom . ' ' . $val->ape); if ($val->paciente == 1 and $val->representante == 0) { echo tagcontent('td', 'PACIENTE'); } else { if ($val->paciente == 0 and $val->representante == 1) { echo tagcontent('td', 'REPRESENTANTE'); } } echo tagcontent('td', $val->ase_nombre); echo tagcontent('td', $val->fecha_emision); // echo tagcontent('td',$val->tipo); echo '<td>'; ?> <button type="button" title = "Imprimir " data-target="clientslistout" class="btn btn-default fa fa-print" id="ajaxpanelbtn" data-url="<?php echo base_url('emergencia/satisfaccion/get_list_interconsulta/' . $val->id . '/1'); ?> "></button> <?php echo '</td>'; echo Close('tr'); } } echo '</tbody>';
public function anular_solicitud() { $param = $this->input->post('id_postegreso'); $obs_anula = $this->input->post('observaciones'); $this->generic_model->update('hmc_solicitud_fisiatria', array('estado' => '0', 'observaciones' => $obs_anula), array('id' => $param)); echo tagcontent('script', 'alertaExito("Anulada con exito")'); echo tagcontent('script', "window.location.replace('" . base_url('fisiatria/') . "')"); }
<?php echo info_msg('Lista de Estudiante'); echo Open('form', array('action' => base_url('estudiante/crt_estudiante/get_crud_emp'), 'method' => 'post')); echo tagcontent('button', 'Cargar', array('name' => 'btnreportes', 'class' => 'btn btn-danger col-md-1', 'id' => 'ajaxformbtn', 'type' => 'submit', 'data-target' => 'container-fluid')); echo Close('form'); echo tagcontent('div', '', array('id' => 'container-fluid', 'class' => 'col-md-12'));
<!--<a class="navbar-brand" href="<?php echo base_url(); ?> ">BILLINGSOF</a>--> </div> <!-- /.navbar-header --> <!--<div class="loggedout_menubar">--> <div class="container" style="padding-top:13px"> <a class="navbar-brand" href="<?php echo base_url(); ?> " style="font-weight: bold; font-size: 38px">Billingsof</a> <?php $help_link = tagcontent('a', 'Ayuda', array('class' => 'navbar-link', 'target' => '_blank', 'href' => base_url('/help/'))); echo tagcontent('p', $help_link, array('class' => 'navbar-text navbar-right')); ?> <ul class="nav navbar-top-links navbar-right"> <!-- /.dropdown --> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#" style="color: #fff"> Menú <i class="glyphicon glyphicon-th-list"></i> <i class="fa fa-caret-down"></i> </a> <ul class="dropdown-menu dropdown-alerts"> <?php // $allcapabilities = $this->user->getAllCapabilities(); // // $cont = 0; $tabclass = ''; // $label = ''; // foreach ( $allcapabilities as $tab) { // if($tab->icon != ''){ $label = '<span class="'.$tab->icon.'"></span> <span class="">'.$tab->label.'</span>'; }else{ $label = $tab->label; }
if ($val->estado_pago == 0) { echo tagcontent('td', tagcontent('span', 'POR FACTURAR', array('class' => 'label label-default', 'style' => 'font-size:16px'))); } elseif ($val->estado_pago == 1) { echo tagcontent('td', tagcontent('span', 'SIN PAGAR', array('class' => 'label label-warning', 'style' => 'font-size:16px'))); } elseif ($val->estado_pago == 2) { echo tagcontent('td', tagcontent('span', 'PAGADA', array('class' => 'label label-success', 'style' => 'font-size:16px'))); } elseif ($val->estado_pago == 3) { echo tagcontent('td', tagcontent('span', 'POR PLANILLAR', array('class' => 'label label-warning', 'style' => 'font-size:16px'))); } elseif ($val->estado_pago == 4) { echo tagcontent('td', tagcontent('span', 'PLANILLADO', array('class' => 'label label-success', 'style' => 'font-size:16px'))); } echo tagcontent('td', $val->id_cliente); echo tagcontent('td', $val->nombres); echo tagcontent('td', $val->fecha_atencion); echo tagcontent('td', $val->servicio); echo tagcontent('td', $val->motivo_solicitud); echo '<td>'; ?> <button type="button" title = "Imprimir Solicitud" data-target="opcion_elegida" id="ajaxpanelbtn" class="btn btn-default fa fa-print" data-url="<?php echo base_url('fisiatria/fisiatria/get_imprimir/' . $val->id); ?> "></button> <button type="button" title = "Editar Solicitud" data-target="opcion_elegida" class="btn btn-primary fa fa-edit" id="ajaxpanelbtn" data-url="<?php echo base_url('fisiatria/fisiatria/modificar_solicitud_view/' . $val->id); ?> "></button> <button type="button" title = "Anular Solicitud" data-target="opcion_elegida" id="ajaxpanelbtn" class="btn btn-danger fa fa-trash-o" data-url="<?php echo base_url('fisiatria/fisiatria/anular_view/' . $val->id); ?> "></button>
echo '<div id="div1">'; echo Open('table', array('id' => 'table', 'class' => "table table-fixed-header")); echo '<thead>'; $thead = array('Nro-Consulta', 'CI Paciente', 'Paciente', 'Doctor', 'Servicio al que envió', 'Fecha Emision', 'Acciones'); echo tablethead($thead); echo '</thead>'; echo '<tbody>'; if (!empty($data)) { foreach ($data as $val) { echo Open('tr'); echo tagcontent('td', $val->id); echo tagcontent('td', $val->ced_pac); echo tagcontent('td', $val->nom . ' ' . $val->ape); echo tagcontent('td', $val->nom_med . ' ' . $val->ape_med); echo tagcontent('td', $val->t_servcio); echo tagcontent('td', $val->fecha_ingreso); echo '<td>'; ?> <!--IMPRIMIR--> <button type="button" title = "Imprimir InterConsulta " data-target="clientslistout" class="btn btn-default fa fa-print" id="ajaxpanelbtn" data-url="<?php echo base_url('medicos/reporte_consultas/formato_impresion/' . $val->id . '/' . $val->ced_pac . "/1"); ?> "> </button> <?php echo '</td>'; echo Close('tr'); } } echo '</tbody>';
<?php echo Open("form", array('method' => 'post', 'action' => base_url('enfermeria/signos_vitales/get_listado_turnos_dia'), 'class' => 'col-md-12')); //Btn buscar paciente echo Open('div', array('class' => 'input-group col-md-3')); $searchbtn = tagcontent('button', 'Listar Turnos de Hoy<span class="glyphicon glyphicon-search"></span>', array('type' => 'submit', 'id' => 'ajaxformbtn2', 'data-target' => 'clientslistout', 'class' => 'btn btn-primary btn-sm')); echo tagcontent('span', $searchbtn, array('class' => 'input-group-btn')); echo Close('div'); echo Close("form");
function combobox_array($data, $comboattr = null, $elem1 = false, $selected = '') { $combo_opt = ''; // $opt_label = $optattr['label']; // echo $opt_label; // $opt_value = $optattr['value']; $cont = 0; foreach ($data as $g) { if ($elem1 and $cont == 0) { $combo_opt .= tagcontent('option', 'Seleccionar -- ', array('value' => '-1')); $cont++; // continue; } if ($selected != '' and $selected == $g) { $combo_opt .= tagcontent('option', $g, array('value' => $g, 'selected' => '')); $cont++; continue; } $combo_opt .= tagcontent('option', $g, array('value' => $g)); $cont++; } $combobox = tagcontent('select', $combo_opt, $comboattr); return $combobox; }
echo Open('table', array('id' => 'table', 'class' => "table table-fixed-header")); echo '<thead>'; $thead = array('Nro-Protocolo', 'CI', 'Paciente', 'Sala', 'No Cama', 'Servicio', 'Fecha Registro', 'Acciones'); echo tablethead($thead); echo '</thead>'; echo '<tbody>'; if (!empty($info_anestesia)) { foreach ($info_anestesia as $val) { echo Open('tr'); echo tagcontent('td', $val->id); echo tagcontent('td', $val->PersonaComercio_cedulaRuc); echo tagcontent('td', $val->nombres); echo tagcontent('td', " "); echo tagcontent('td', " "); echo tagcontent('td', " "); echo tagcontent("td", $val->fecha_registro); echo '<td>'; ?> <button type="button" title = "Imprimir Registro de Anestecia " data-target="clientslistout" class="btn btn-default fa fa-print" id="ajaxpanelbtn" data-url="<?php echo base_url('quirofano/registro_anestesia/print_view/' . $val->id . "/1"); ?> "></button> <?php echo '</td>'; echo Close('tr'); } } echo '</tbody>'; echo '</table>';
echo open("thead", array('style' => 'background-color: #FCFFAF; text-align:center')); echo tagcontent("td", "<b>FECHA</b>"); echo tagcontent("td", "<b>DETALLE</b>"); echo tagcontent("td", "<b>CONTROLES</b>"); echo close("thead"); echo "<tbody id='table_complicacion'></tbody>"; echo close("table"); echo close("div"); echo LineBreak(2); echo tagcontent('button', '<span class="glyphicon glyphicon-search"></span> Guardar', array('name' => 'btnreportes', 'class' => 'btn btn-primary col-md-12', 'id' => 'ajaxformbtn', 'type' => 'submit', 'data-target' => 'print')); echo close("form"); echo close("div"); echo close("div"); echo open("div", array('id' => 'view_form', 'class' => 'panel panel-success')); echo close("div"); echo tagcontent("div", '', array('id' => 'print', 'name' => 'print')); ?> <script> var url = "<?php echo base_url(); ?> "; /*Enviamos los datos extraidos por el autosuggest a sus inputs correspondientes*/ var load_cliente = function (datum) { console.log(datum); $('#edad').val(datum.edad); $('#od_paciente').val(datum.id); $('#p_nombre').val(get_primer_nombre(datum.nombres)); $('#s_nombre').val(get_segundo_nombre(datum.nombres)); $('#apellido_paterno').val(get_primer_apellido(datum.apellidos));
public function load_login() { echo tagcontent('script', "window.location.replace('" . base_url('login/login') . "')"); }
echo Close('table'); echo LineBreak(4); echo Close('div'); echo Open('div', array('class' => 'col-xs-12', 'style' => 'font-family:monospace;font-size:10px')); echo tagcontent('div', '<CENTER>COCINA</CENTER>', array('class' => 'col-xs-12')); echo tagcontent('div', '<CENTER>ORDEN DE SERVICIO # ' . $datos->nro_orden . '</CENTER>', array('class' => 'col-xs-12')); echo tagcontent('div', 'Mesa: ' . $datos->mesa_nro, array('class' => 'col-xs-12')); echo tagcontent('div', 'Camarero: ' . $datos->empleado, array('class' => 'col-xs-12')); echo tagcontent('div', 'Nro. Pedido: ' . $datos->id_comanda, array('class' => 'col-xs-12')); echo tagcontent('div', 'Fecha : ' . $datos->fecha, array('class' => 'col-xs-12')); echo tagcontent('div', 'Cliente : ' . $datos->cliente, array('class' => 'col-xs-12')); echo tagcontent('div', 'Identificación : ' . $datos->ci, array('class' => 'col-xs-12')); echo Close('div'); echo Open('div', array('class' => 'col-xs-12', 'style' => 'font-family:monospace;font-size:10px')); echo LineBreak(1); echo tagcontent('div', '<CENTER>DETALLE PEDIDO</CENTER>', array('class' => 'col-xs-12')); echo Open('table', array('style' => 'font-family:monospace;width:100%')); echo Open('tr'); echo tagcontent('td', 'CANT', array('align' => 'center', 'width' => '30%')); echo tagcontent('td', 'DESCRIPCION', array('align' => 'center', 'width' => '70%')); echo Close('tr'); foreach ($query as $value) { echo Open('tr'); echo tagcontent('td', $value->cantidad, array('align' => 'center')); echo tagcontent('td', $value->nombreUnico, array('align' => 'left')); echo Close('tr'); } echo Close('table'); echo LineBreak(4); echo Close('div'); echo Close('div');
<!--estos campos heredan un formulario que la vista es paciente_search_form y el form es general debido a aque la url cambia para--> <!--poder cambiar de funcionalidades con la misma interfaz--> <?php // echo input(array('type'=>'hidden','name'=>'id_paciente','id'=>'id_paciente_forms','value'=>'')); // envio el id delpaciente $tipo_doc_combo = combobox($tipo_formulario, array('label' => 'nombre', 'value' => 'id'), array('name' => 'tipo_documento', 'id' => 'tipo_documento', 'class' => 'combobox form-control input-sm'), true); echo Open('div', array('class' => 'col-md-4 form-group')); echo Open('div', array('class' => 'input-group has-success')); echo tagcontent('span', '<span class="glyphicon glyphicon-random"></span> Tipo de documento:', array('class' => 'input-group-addon')); echo $tipo_doc_combo; echo Close('div'); echo Close('div'); ?> <div class="col-md-3 form-group"> <div class="input-group has-success"> <span class="input-group-addon"> <span class="glyphicon glyphicon-calendar"></span> Fecha Creacion: </span> <input style="width: 50%" placeholder="Desde" class="form-control input-sm" data-provide="datepicker" id="fechaIn" name="fechaIn"> <input style="width: 50%" placeholder="Hasta" class="form-control input-sm" data-provide="datepicker" id="fechaFin" name="fechaFin"> </div> </div>
<?php echo Open('table', array('class' => 'table table-striped')); echo Open('tr', array('ng-repeat' => 'grupo in grupos')); echo tagcontent('td', '{{grupo}}'); echo Close('tr'); echo Close('table');
echo Open('table', array('id' => 'table', 'class' => "table table-fixed-header")); echo '<thead>'; $thead = array('Nro', 'CI', 'Paciente', 'Sala', 'No Cama', 'Servicio', 'Fecha', 'Acciones'); echo tablethead($thead); echo '</thead>'; echo '<tbody>'; if (!empty($sala_recuperacion)) { foreach ($sala_recuperacion as $val) { echo Open('tr'); echo tagcontent('td', $val->id); echo tagcontent('td', $val->PersonaComercio_cedulaRuc); echo tagcontent('td', $val->nombres . " " . $val->apellidos); echo tagcontent('td', $val->sala); echo tagcontent('td', $val->cama); echo tagcontent('td', $val->servicio); echo tagcontent("td", $val->fecha_recuperacion); echo '<td>'; ?> <button type="button" title = "Imprimir Registro de Sala de Recuperación " data-target="clientslistout" class="btn btn-default fa fa-print" id="ajaxpanelbtn" data-url="<?php echo base_url('medicos/registro_sala_recuperacion/print_sala_recuperacion/' . $val->id . "/1"); ?> "></button> <?php echo '</td>'; echo Close('tr'); } } echo '</tbody>'; echo '</table>';
?> ' title='<?php echo $this->l('list_delete'); ?> <?php echo $subject; ?> ' class="delete-row" > <span class='delete-icon'></span> </a> <?php } ?> <?php if (!$unset_edit) { echo tagcontent('a', '<span class="glyphicon glyphicon-pencil"></span>', array('data-url' => $row->edit_url, 'id' => 'ajaxpanelbtn', 'data-target' => 'container-fluid', 'class' => 'edit_button', 'title' => $this->l('list_view'), 'style' => 'cursor:pointer')); ?> <a href='<?php echo $row->edit_url; ?> ' title='<?php echo $this->l('list_edit'); ?> <?php echo $subject; ?> ' class="edit_button"><span class='edit-icon'></span></a> <?php } ?> <?php
echo tagcontent('span', '', array('class' => 'glyphicon glyphicon-stats', 'style' => 'font-size:20px')) . tagcontent('span', ' Reportes', array('style' => 'font-size:20px')); echo LineBreak(1, array('style' => 'clear:both')); echo tagcontent('span', '', array('class' => 'glyphicon glyphicon-plus', 'style' => 'font-size:20px')) . tagcontent('span', ' Mucho Más..', array('style' => 'font-size:20px')); echo Close('div'); echo Open('div', array('class' => 'col-md-5')); $message = $this->session->userdata('message'); if (!empty($message)) { echo tagcontent('strong', $message, array('class' => 'text-danger')); $this->session->unset_userdata('message'); } echo tagcontent('strong', validation_errors(), array('class' => 'text-danger')); echo tagcontent('span', 'Ingreso al Sistema', array('class' => 'login_title1')); echo tagcontent('div', 'Ingresa con tu usuario y contraseña', array('class' => '')) . '</br>'; echo Open('form', array('method' => 'post', 'action' => base_url('login/verifylogin'), 'class' => 'form-horizontal col-md-12', 'role' => 'form', 'style' => '')); echo Open('div', array('class' => 'form-group')); echo input(array('id' => "username", 'name' => "username", 'type' => "text", 'class' => "form-control", 'placeholder' => "Username", 'required' => '', 'autofocus' => '')); echo Close('div'); echo Open('div', array('class' => 'form-group')); echo input(array('id' => "passowrd", 'name' => "password", 'type' => "password", 'class' => "form-control", 'placeholder' => "Password", 'required' => '')); echo Close('div'); // echo tagcontent('label', 'Ingrese con su usuario y contraseña', array('class'=>'checkbox')); echo Open('div', array('class' => 'form-group')); echo tagcontent('button', 'Ingresar a Billingsof <span class="fa fa-sign-in fa-f5"></span>', array('class' => 'btn btn-lg btn-success')); echo Close('div'); echo Close('form'); /* container */ echo Close('div'); echo Close('div'); /* container */ echo Close('body'); echo Close('html');
<?php echo LineBreak(2); echo warning_msg(' Está a punto de anular'); echo Open('form', array('action' => base_url('fisiatria/' . $formulario), 'method' => 'post')); echo input(array('type' => 'hidden', 'value' => $id_formulario, 'name' => 'id_postegreso')); //echo $planilla_id; echo tagcontent('textarea', '', array('name' => 'observaciones', 'class' => 'form-control', 'maxlength' => '500', 'placeholder' => 'Detalle de la Anulación')); echo LineBreak(2); echo tagcontent('button', '<span class="glyphicon glyphicon-trash"></span> Confirmar Anulacion', array('title' => 'Anular Planilla', 'name' => 'btnreportes', 'class' => 'btn btn-danger pull-left btn-sm', 'id' => 'ajaxformbtn', 'type' => 'submit', 'data-target' => 'anulacion_planilla_det')); echo lineBreak2(1, array('style' => 'clear:both')); echo Close('form'); echo tagcontent('div', '', array('id' => 'anulacion_planilla_det'));
echo Close('tr'); } echo Close('table'); } // echo $id_propuesta; // echo $email; echo Open('form', array('action' => base_url('propuestas/crt_propuestas/save_historial'), 'method' => 'post')); echo input(array('type' => 'hidden', 'name' => 'id_pro', 'id' => 'id_pro', 'value' => $id_propuesta)); echo input(array('type' => 'hidden', 'name' => 'email', 'id' => 'email', 'value' => $email)); echo input(array('type' => 'hidden', 'name' => 'nombre', 'id' => 'nombre', 'value' => $nom)); echo warning_msg('OBSERVACIONES'); echo Open('div', array('class' => 'col-md-12')); echo Open('div', array('class' => 'col-md-4 form-group')); echo Open('div', array('class' => 'input-group')); echo tagcontent('span', ' Fecha Observacion: ', array('class' => 'input-group-addon')); echo input(array('name' => "fechaIn", 'id' => "fechaIn", 'type' => "text", 'class' => "form-control datepicker", 'placeholder' => "Fecha Cambio")); echo Close('div'); echo Close('div'); $estados_combo = combobox($estados, array('label' => 'valor', 'value' => 'valor'), array('name' => 'estado', 'class' => 'form-control'), true); echo Open('div', array('class' => 'col-md-4 form-group')); echo Open('div', array('class' => 'input-group')); echo tagcontent('span', '<b>Estados:</b> ', array('class' => 'input-group-addon')); echo $estados_combo; echo Close('div'); echo Close('div'); $textarea = tagcontent('textarea', '', array('class' => 'form-control', 'rows' => '8', 'placeholder' => 'Observaciones/Cambios en la tesis', 'name' => 'razon', 'id' => 'razon')); echo tagcontent('div', $textarea, array('id' => 'textarea', 'class' => 'col-md-12')); // echo Close('div'); echo Close('form'); echo tagcontent('button', 'Notificar', array('name' => 'btnreportes', 'class' => 'btn btn-info col-md-1', 'id' => 'ajaxformbtn', 'type' => 'submit', 'data-target' => 'container-fluid')); //echo tagcontent('div', '', array('id' => 'container-fluid', 'class' => 'col-md-12'));
function success_info_msg($msg) { $output = tagcontent('div', '<span class="glyphicon glyphicon-info-sign"></span><strong>Atención: </strong>' . $msg, array('class' => 'text-success', 'style' => 'font-size:18px;font-weight: bold')); return $output; }
<?php echo Open('div', array('class' => 'col-md-12', 'style' => 'background:#4187B0')); echo tagcontent('button', '<span class="glyphicon glyphicon-print"></span> Imprimir', array('id' => 'printbtn', 'data-target' => 'print', 'class' => 'btn btn-default pull-left')); echo Close('div'); echo open("div", array('id' => 'print')); $this->load->view('common/hmc_head/encabezado_cuenca'); echo '<center><h1 class="page-header"><small><font class="text-success">PATOLOGÍAS MÁS FRECUENTES EN EL SERVICIO DE REHABILITACIÓN</font></small></h1></center>'; $diagnosticos = "<td>MESES</td>"; foreach ($encabezado as $item) { $diagnosticos .= "<td>" . $item->diag_enfermedad . "</td>"; } $diagnosticos .= "<td>TOTAL</td>"; echo open("table", array('style' => 'font-size:12px;text-align: center', 'border' => '2', 'bordercolor' => '#000000', 'align' => 'center', 'width' => '90%', 'align-text' => 'center')); //IMPRMIMOS EL ENCABEZADO DE LA MATRIZ CON LAS PATOLOGIAS CON LOS DIAGNOSTICOS echo '<thead>'; echo "<tr>"; echo $diagnosticos; echo "</tr>"; echo '</thead>'; //IMPRIMOS los resultados de las columnas echo '<tbody>'; foreach ($cuerpo as $item) { echo open("tr"); echo "<td>" . $item->mes . "</td>" . $item->totales; echo close("tr"); } echo '</tbody>'; //IMPRIME LOS TOTALES LA PARTE FINAL DE LA CONSULTA if ($pie) { echo open("tr");
echo tagcontent('th', 'Anular'); echo Close('tr'); echo Open('tr', array('ng-repeat' => 'checkin in checkins')); echo tagcontent('td', '{{ checkin.ord_id }}'); echo tagcontent('td', '{{ checkin.id_comanda }}'); echo tagcontent('td', '{{ checkin.cliente }}'); echo tagcontent('td', '{{ checkin.mesero }}'); echo tagcontent('td', '{{ checkin.mesa_nro }}'); echo tagcontent('td', '{{ checkin.fecha }}'); //echo tagcontent('td', '{{ checkin.subtotal }}'); echo Open('td'); //echo tagcontent('button', '', array('class' => 'btn btn-primary fa fa-edit', 'type' => 'button', 'ng-click' => 'edit(checkin.id_checkin)')); echo tagcontent('button', '', array('class' => 'btn btn-warning fa fa-print', 'type' => 'button', 'ng-click' => 'print(checkin.id_comanda)')); echo Close('td'); echo Open('td'); echo tagcontent('button', '', array('class' => 'btn btn-danger fa fa-eraser', 'type' => 'button', 'ng-click' => 'delete(checkin.id_comanda)')); echo Close('td'); echo Close('tr'); echo Close('table'); echo Close('div'); echo Close('div'); ?> <script> $('#form_listar_checkin').submit(function (event) { event.preventDefault(); }); // $('[name="chekin_estado"] option[value="'+1+'"] ').attr('selected','selected'); </script>
echo $lista_empleado_combo; echo Close('div'); echo Close('div'); echo input(array('type' => 'hidden', 'name' => 'id_paciente', 'id' => 'id_paciente', 'value' => '')); // envio el id delpaciente echo input(array('type' => 'hidden', 'name' => 'tipo_identificacion', 'id' => 'tipo_identificacion', 'value' => '')); // envio el id delpaciente echo Open('div', array('class' => 'col-md-4 form-group')); echo Open('div', array('class' => 'input-group has-success')); echo tagcontent('span', '<span class="glyphicon glyphicon-user"></span> Paciente: ', array('class' => 'input-group-addon')); echo input(array('id' => 'ci', 'name' => 'ci', 'class' => 'form-control input-sm typeahead', 'placeholder' => 'Num. identificacion', 'callback' => 'refresh_cart_load_client', 'data-url' => base_url('common/autosuggest/get_client_by_name/%QUERY'), 'style' => 'position: absolute;')); echo Close('div'); echo Close('div'); echo tagcontent('button', '<span class="glyphicon glyphicon-search"></span> Buscar', array('name' => 'btnreportes', 'class' => 'btn btn-success btn-sm col-md-1', 'id' => 'ajaxformbtn', 'type' => 'submit', 'data-target' => 'opcion_elegida')); echo Close('form'); echo tagcontent('div', '', array('id' => 'opcion_elegida', 'class' => 'col-md-12')); ?> <script> var refresh_cart_load_client = function (datum) { var url = main_path+'emergencia/interconsultas/get_paciente_info/time/'+$.now(); $('#id_paciente').val(datum.ci); $("#id_paciente_turno").val($("#id_paciente").val());//si se bsuqca por nombre toma el valor desde aqui }; $.autosugest_search('#ci'); </script>
echo Close('tr'); echo Open('tr'); echo tagcontent('th', 'Usuario'); $input = input(array('type' => 'text', 'name' => 'username', 'id' => 'username', 'value' => $user->username, 'class' => 'form-control')); echo tagcontent('td', $input); echo Close('tr'); echo Close('table'); echo tagcontent('button', 'Modificar Perfil de Usuario', array('id' => 'ajaxformbtn', 'data-target' => 'edit_profile_out', 'class' => 'btn btn-primary')); echo Close('form'); /* Formulario para cambiar la clave */ echo Open('form', array('method' => 'post', 'action' => base_url('login/editprofile/edit_pass'), 'class' => 'col-md-6')); echo Open('table', array('class' => 'table table-striped')); echo Open('tr'); echo tagcontent('th', 'Clave Actual'); $input = input(array('type' => 'password', 'name' => 'current_pass', 'id' => 'curren_pass', 'value' => '', 'class' => 'form-control')); echo tagcontent('td', $input); echo Close('tr'); echo Open('tr'); echo tagcontent('th', 'Nueva Clave'); $input = input(array('type' => 'password', 'name' => 'new_pass', 'id' => 'new_pass', 'value' => '', 'class' => 'form-control')); echo tagcontent('td', $input); echo Close('tr'); echo Open('tr'); echo tagcontent('th', 'Confirme Nueva Clave'); $input = input(array('type' => 'password', 'name' => 'confirm_pass', 'id' => 'confirm_pass', 'value' => '', 'class' => 'form-control')); echo tagcontent('td', $input); echo Close('tr'); echo Close('table'); echo tagcontent('button', 'Actualizar Clave', array('id' => 'ajaxformbtn', 'data-target' => 'edit_profile_out', 'class' => 'btn btn-primary')); echo Close('form'); }
public function save_tutor() { $id_persona = $this->input->post('id_persona'); $id_propuesta = $this->input->post('id_pro'); if (!empty($id_persona)) { foreach ($id_persona as $val) { $get_save = array("id_propuesta" => $id_propuesta, "id_persona" => $val, "fecha_asignado" => date("y-m-s")); $this->generic_model->save($get_save, 'gp_asignar_propuesta'); echo tagcontent('script', 'alerta' . 'Exito("Ingreso de Jornadas con exito....!!!")'); } } $this->get_crud_propuesta(); }
echo Close('div'); echo Open('div', array('class' => 'col-md-12')); $input2 = input(array('type' => 'text', 'placeholder' => 'Campo Obligatorio', 'class' => 'form-control', 'ng-model' => 'cliente.nombres', 'ng-required' => 'true')); echo get_combo_group('Nombres', $input2, $class = 'col-md-12 form-group'); echo Close('div'); echo Open('div', array('class' => 'col-md-12')); $input3 = input(array('type' => 'text', 'placeholder' => 'Campo Obligatorio', 'class' => 'form-control', 'ng-model' => 'cliente.apellidos', 'ng-required' => 'true')); echo get_combo_group('Apellidos', $input3, $class = 'col-md-12 form-group'); echo Close('div'); echo Open('div', array('class' => 'col-md-12', 'ng-show' => 'tipo_id')); $input4 = input(array('type' => 'text', 'placeholder' => '', 'class' => 'form-control', 'ng-model' => 'cliente.razonsocial')); echo get_combo_group('Razon Social :', $input4, $class = 'col-md-12 form-group'); echo Close('div'); echo Open('div', array('class' => 'col-md-12')); $input4 = input(array('type' => 'text', 'placeholder' => 'Campo Obligatorio', 'class' => 'form-control', 'ng-model' => 'cliente.direccion', 'ng-required' => 'false')); echo get_combo_group('Direccion :', $input4, $class = 'col-md-12 form-group'); echo Close('div'); echo Open('div', array('class' => 'col-md-12')); $input6 = input(array('type' => 'text', 'placeholder' => 'Campo Obligatorio', 'class' => 'form-control', 'ng-model' => 'cliente.celular', 'ng-required' => 'false', 'only-numbers' => '')); echo get_combo_group('Telefono : ', $input6, $class = 'col-md-12 form-group'); echo Close('div'); echo Open('div', array('id' => 'opciones', 'class' => 'col-md-12')); echo tagcontent('button', '{{ btnText }}', array('class' => 'btn btn-primary col-md-6', 'type' => 'submit', 'ng-disabled' => 'cliente_form.$invalid', 'ng-click' => 'new_cli(cliente);')); echo tagcontent('button', 'CANCELAR', array('class' => 'btn btn-warning col-md-6', 'type' => 'submit', 'ng-click' => 'cancel();')); echo Close('div'); echo Close('form'); echo Close('div'); echo Close('div'); echo Open('div', array('class' => 'panel-footer')); echo '<h3>{{ msg }}</h3>'; echo Close('div');