public function agregar() { $this->carabiner->css(array(array('general/forms.css', 'screen'))); $params['info_empleado'] = $this->info_empleado['info']; //info empleado $params['opcmenu_active'] = 'Almacen'; //activa la opcion del menu $params['seo'] = array('titulo' => 'Agregar lista de precios'); $this->load->library('form_validation'); $rules = array(array('field' => 'dnombre', 'label' => 'Nombre', 'rules' => 'required|max_length[30]'), array('field' => 'des_default', 'label' => 'Precio publico', 'rules' => 'max_length[2]')); $this->form_validation->set_rules($rules); if ($this->form_validation->run() == FALSE) { $params['frm_errors'] = $this->showMsgs(2, preg_replace("[\n|\r|\n\r]", '', validation_errors())); } else { $this->load->model('listas_precio_model'); $respons[0] = $this->listas_precio_model->addLista(); if ($respons[0]) { redirect(base_url('panel/listas_precio/agregar/?' . String::getVarsLink(array('msg')) . '&msg=4')); } } if (isset($_GET['msg'][0])) { $params['frm_errors'] = $this->showMsgs($_GET['msg']); } $this->load->view('panel/header', $params); $this->load->view('panel/general/menu', $params); $this->load->view('panel/productos/listas_precio/agregar_lista', $params); $this->load->view('panel/footer'); }
private function agregar() { $this->carabiner->css(array(array('general/forms.css', 'screen'), array('general/tables.css', 'screen'))); $this->carabiner->js(array(array('aviones/frm_addmod.js'))); $params['info_empleado'] = $this->info_empleado['info']; $params['opcmenu_active'] = 'Aviones'; //activa la opcion del menu $params['seo'] = array('titulo' => 'Agregar Avion'); $this->configAddAvion(); if ($this->form_validation->run() == FALSE) { $params['frm_errors'] = $this->showMsgs(2, preg_replace("[\n|\r|\n\r]", '', validation_errors())); } else { $model_resp = $this->aviones_model->addAvion(); if ($model_resp[0]) { redirect(base_url('panel/aviones/agregar/?' . String::getVarsLink(array('msg')) . '&msg=4')); } else { $params['frm_errors'] = $this->showMsgs(2, 'Ya existe el Avión', 'Alerta !'); } } if (isset($_GET['msg'][0])) { $params['frm_errors'] = $this->showMsgs($_GET['msg']); } $this->load->view('panel/header', $params); $this->load->view('panel/general/menu', $params); $this->load->view('panel/aviones/agregar', $params); $this->load->view('panel/footer', $params); }
public function index() { $this->carabiner->css(array(array('libs/jquery.uniform.css', 'screen'), array('libs/jquery.colorpicker2.css', 'screen'))); $this->carabiner->js(array(array('libs/jquery.uniform.min.js'), array('libs/jquery.numeric.js'), array('libs/jquery.colorpicker2.js'), array('libs/jquery.colorpicker2eye.js'), array('libs/jquery.colorpicker2layout.js'), array('libs/jquery.colorpicker2utils.js'), array('general/msgbox.js'), array('panel/config/frm_mod.js'))); $params['info_empleado'] = $this->info_empleado['info']; //info empleado $params['seo'] = array('titulo' => 'Configuración'); $this->configAddModEmpl(); $this->load->model('config_model'); $this->load->model('empresas_model'); if ($this->form_validation->run() == FALSE) { $params['frm_errors'] = $this->showMsgs(2, preg_replace("[\n|\r|\n\r]", '', validation_errors())); } else { $respons = $this->config_model->updateConfig(1); if ($respons[0]) { redirect(base_url('panel/config/?' . String::getVarsLink(array('msg')) . '&msg=' . $respons[2])); } } $params['info'] = $this->config_model->getInfoConfig(1); $params['empresa'] = $this->empresas_model->getInfoEmpresa(2); if (isset($_GET['msg'][0])) { $params['frm_errors'] = $this->showMsgs($_GET['msg']); } //echo "<pre>".print_r($params)."</pre>"; $this->load->view('panel/header', $params); $this->load->view('panel/general/menu', $params); $this->load->view('panel/config/modificar', $params); $this->load->view('panel/footer'); }
?> ", opcmenu_active = '<?php echo isset($opcmenu_active) ? $opcmenu_active : 0; ?> '; </script> </head> <body> <div> <div class="titulo ajus w100 am-c"><?php echo $seo['titulo']; ?> </div> <form action="<?php echo base_url('panel/nomina/abono_piloto/?' . String::getVarsLink(array('msg'))); ?> " method="post"> <div class="frmsec-left w90 f-l"> <p class="f-l w30"> <label for="ffecha">*Fecha</label><br> <input type="text" name="ffecha" id="ffecha" value="<?php echo set_value('ffecha') != '' ? set_value('ffecha') : date("Y-m-d"); ?> " size="20" maxlength="40" readonly> </p> <p class="f-r w70"> <table class="tblListados corner-all8" style="width:40% !important;margin-right:0px;"> <tr> <td style="text-align:right;">Total de Vuelos</td> <td id="ta_total" class="a-r" style="background-color:#ccc;"><?php
echo $vuelo->total_vuelos; ?> </td> <td><input type="checkbox" name="vuelos" value="<?php echo $vuelo->id_vuelo; ?> "></td> </tr> <?php } } ?> </table> <?php //Paginacion $this->pagination->initialize(array('base_url' => base_url($this->uri->uri_string()) . '?' . String::getVarsLink(array('pag')) . '&', 'total_rows' => $piloto['total_rows'], 'per_page' => $piloto['items_per_page'], 'cur_page' => $piloto['result_page'] * $piloto['items_per_page'], 'page_query_string' => TRUE, 'num_links' => 1, 'anchor_class' => 'pags corner-all')); $pagination = $this->pagination->create_links(); echo '<div class="pagination w100">' . $pagination . '</div>'; ?> <input type="button" name="enviar" value="Cargar" class="btn-blue corner-all f-r" id="CgrVuelos"> </div> </div> <div id="container" style="display:none"> <div id="withIcon"> <a class="ui-notify-close ui-notify-cross" href="#">x</a> <div style="float:left;margin:0 10px 0 0"><img src="#{icon}" alt="warning" width="64" height="64"></div> <h1>#{title}</h1> <p>#{text}</p> <div class="clear"></div>
/** * carga el login para entrar al panel */ public function modificar() { $this->carabiner->css(array(array('general/forms.css', 'screen'))); $params['info_empleado'] = $this->info_empleado['info']; //info empleado $params['opcmenu_active'] = 'Privilegios'; //activa la opcion del menu $params['seo'] = array('titulo' => 'Modificar privilegio'); if (isset($_GET['id'][0])) { $this->configAddModPriv(); if ($this->form_validation->run() == FALSE) { $params['frm_errors'] = $this->showMsgs(2, preg_replace("[\n|\r|\n\r]", '', validation_errors())); } else { $respons = $this->empleados_model->updatePrivilegio(); if ($respons[0]) { redirect(base_url('panel/privilegios/modificar/?' . String::getVarsLink(array('msg')) . '&msg=3')); } } $params['privilegio'] = $this->empleados_model->getInfoPrivilegio($_GET['id']); if (!is_object($params['privilegio'])) { unset($params['privilegio']); } if (isset($_GET['msg'][0])) { $params['frm_errors'] = $this->showMsgs($_GET['msg']); } } else { $params['frm_errors'] = $this->showMsgs(1); } $this->load->view('panel/header', $params); $this->load->view('panel/general/menu', $params); $this->load->view('panel/privilegios/modificar', $params); $this->load->view('panel/footer'); }
/** * Modificar una sucursal a un cliente a la bd */ public function modificar() { $this->carabiner->css(array(array('libs/jquery.msgbox.css', 'screen'), array('general/forms.css', 'screen'), array('general/tables.css', 'screen'))); $this->carabiner->js(array(array('libs/jquery.msgbox.min.js'), array('general/msgbox.js'), array('libs/jquery.numeric.js'), array('clientes/frm_addmod.js'))); $params['info_empleado'] = $this->info_empleado['info']; //info empleado $params['seo'] = array('titulo' => 'Modificar Cliente'); $params['opcmenu_active'] = 'Clientes'; //activa la opcion del menu if (isset($_GET['id'][0])) { $this->configAddModEmpl(); $this->load->model('listas_precio_model'); $this->load->model('clientes_model'); if ($this->form_validation->run() == FALSE) { $params['frm_errors'] = $this->showMsgs(2, preg_replace("[\n|\r|\n\r]", '', validation_errors())); } else { $respons = $this->clientes_model->updateCliente(); if ($respons[0]) { redirect(base_url('panel/clientes/modificar/?' . String::getVarsLink(array('msg')) . '&msg=' . $respons[2])); } } $params['listas'] = $this->listas_precio_model->obtenListasPrecio(); $params['info'] = $this->clientes_model->getInfoCliente($_GET['id']); } else { $params['frm_errors'] = $this->showMsgs(1); } if (isset($_GET['msg'][0])) { $params['frm_errors'] = $this->showMsgs($_GET['msg']); } $this->load->view('panel/header', $params); $this->load->view('panel/general/menu', $params); $this->load->view('panel/clientes/modificar_sucursal', $params); $this->load->view('panel/footer'); }
/** * Agrega una compra a la bd */ public function agregar_gasto() { $this->carabiner->css(array(array('libs/jquery.msgbox.css', 'screen'), array('general/forms.css', 'screen'), array('general/tables.css', 'screen'))); $this->carabiner->js(array(array('libs/jquery.msgbox.min.js'), array('libs/jquery.numeric.js'), array('general/msgbox.js'), array('general/util.js'), array('compras/frm_addmod.js'))); $params['info_empleado'] = $this->info_empleado['info']; //info empleado $params['opcmenu_active'] = 'Compras'; //activa la opcion del menu $params['seo'] = array('titulo' => 'Agregar Gasto'); $this->configAddModCompra(); if ($this->form_validation->run() == FALSE) { $params['frm_errors'] = $this->showMsgs(2, preg_replace("[\n|\r|\n\r]", '', validation_errors())); } else { $this->load->model('compras_model'); $respons = $this->compras_model->addCompra(); if ($respons[0]) { redirect(base_url('panel/compras/agregar_gasto/?' . String::getVarsLink(array('msg')) . '&msg=4')); } } $params['fecha'] = date("Y-m-d"); $params['plazo_credito'] = 7; if (isset($_GET['msg'][0])) { $params['frm_errors'] = $this->showMsgs($_GET['msg']); } $this->load->view('panel/header', $params); $this->load->view('panel/general/menu', $params); $this->load->view('panel/compras/agregar_gasto', $params); $this->load->view('panel/footer'); }
public function eliminar_abono() { if (isset($_GET['ida'][0])) { $this->load->model('tickets_model'); $res = $this->tickets_model->eliminar_abono(); if ($res) { redirect(base_url('panel/cuentas_cobrar/detalle/?' . String::getVarsLink(array('msg', 'ida')) . '&msg=3')); } } else { redirect(base_url('panel/cuentas_cobrar/detalle/?' . String::getVarsLink(array('msg', 'ida')) . '&msg=1')); } }
<div id="contentAll" class="f-l"> <form action="<?php echo base_url('panel/clientes/modificar/?' . String::getVarsLink(array('msg'))); ?> " method="post" class="frm_addmod"> <div class="frmsec-left w100 f-l"> <div id="frmsec-acordion"> <h3 class="frmsec-acordion"><a href="#">Información Facturación</a></h3> <div> <input type="hidden" name="tiene_sucursales" value="<?php echo isset($info['info']->tiene_sucursales) ? $info['info']->tiene_sucursales : 'f'; ?> "> <p class="w50 f-l"> <label for="dnombre_fiscal">*Nombre Fiscal:</label> <br> <input type="text" name="dnombre_fiscal" id="dnombre_fiscal" value="<?php echo isset($info['info']->nombre_fiscal) ? $info['info']->nombre_fiscal : ''; ?> " size="40" maxlength="130" autofocus> </p> <p class="w30 f-l"> <label for="drfc">RFC:</label> <br> <input type="text" name="drfc" id="drfc" value="<?php echo isset($info['info']->rfc) ? $info['info']->rfc : ''; ?> " size="20" maxlength="13"> </p>
?> ", opcmenu_active = '<?php echo isset($opcmenu_active) ? $opcmenu_active : 0; ?> '; </script> </head> <body> <div> <div class="titulo ajus w100 am-c"><?php echo $seo['titulo']; ?> </div> <form action="<?php echo base_url('panel/productos/modificar_familia/?' . String::getVarsLink(array('msg'))); ?> " method="post" class="frm_addmod"> <p> <label for="dcodigo">*Código:</label> <span class="ej-info">Ej. 1, 8, 12, 20</span><br> <input type="text" name="dcodigo" id="dcodigo" value="<?php echo isset($info_familia[0]->codigo) ? $info_familia[0]->codigo : ''; ?> " size="5" maxlength="8" autofocus> </p> <p> <label for="dnombre">*Nombre:</label> <br> <input type="text" name="dnombre" id="dnombre" value="<?php echo isset($info_familia[0]->nombre) ? $info_familia[0]->nombre : '';
private function eliminar_abono_piloto() { if (isset($_GET['ida'])) { $this->load->model('nomina_model'); $res = $this->nomina_model->eliminar_abono_piloto(); if ($res[0]) { redirect(base_url('panel/nomina/detalle_piloto/?' . String::getVarsLink(array('ida', 'msg')) . '&msg=5')); } } else { redirect(base_url('panel/nomina/detalle_piloto/?' . String::getVarsLink(array('ida', 'msg')) . '&msg=1')); } }
<div id="contentAll" class="f-l"> <form action="<?php echo base_url('panel/proveedores/modificar/?' . String::getVarsLink(array('msg'))); ?> " method="post" class="frm_addmod" enctype="multipart/form-data"> <div class="frmsec-left w100 f-l"> <div id="frmsec-acordion"> <h3 class="frmsec-acordion"><a href="#">Información</a></h3> <div> <p> <label for="dnombre">*Nombre:</label> <br> <input type="text" name="dnombre" id="dnombre" value="<?php echo isset($proveedor['info']->nombre) ? $proveedor['info']->nombre : ''; ?> " size="40" maxlength="120" autofocus> </p> <div class="clear"></div> <p class="w40 f-l"> <label for="dcalle">Calle:</label> <br> <input type="text" name="dcalle" id="dcalle" value="<?php echo isset($proveedor['info']->calle) ? $proveedor['info']->calle : ''; ?> " size="30" maxlength="60"> </p> <p class="w30 f-l"> <label for="dno_exterior">No exterior:</label> <br> <input type="text" name="dno_exterior" id="dno_exterior"
<div id="contentAll" class="f-l"> <form action="<?php echo base_url('panel/clientes/hacer_sucursal/?' . String::getVarsLink(array('msg'))); ?> " method="post" class="frm_addmod"> <div class="frmsec-left w100 f-l"> <p> <label for="dnombre_grupo">*Nombre del grupo:</label> <br> <input type="text" name="dnombre_grupo" id="dnombre_grupo" value="<?php echo isset($info['info']->nombre) ? $info['info']->nombre : ''; ?> " size="40" maxlength="120"> <input type="hidden" name="id_cliente" value="<?php echo isset($info['info']->id_cliente) ? $info['info']->id_cliente : ''; ?> "> </p> <input type="submit" name="enviar" value="Guardar" class="btn-blue corner-all m10-all f-r"> </div> </form> </div> <!-- Bloque de alertas --> <div id="container" style="display:none"> <div id="withIcon"> <a class="ui-notify-close ui-notify-cross" href="#">x</a>
?> ", opcmenu_active = '<?php echo isset($opcmenu_active) ? $opcmenu_active : 0; ?> '; </script> </head> <body> <div> <div class="titulo ajus w100 am-c"><?php echo $seo['titulo']; ?> </div> <form action="<?php echo base_url('panel/vehiculo/modificar/?' . String::getVarsLink(array('msg'))); ?> " method="post"> <div class="frmsec-left w90 f-l"> <p class="f-l w50"> <label for="fnombre">*Nombre</label><br> <input type="text" name="fnombre" id="fnombre" value="<?php echo isset($vehiculo[0]->nombre) ? $vehiculo[0]->nombre : ''; ?> " size="40" maxlength="40" autofocus> </p> <p class="f-l w50"> <label for="fplacas">*Placas</label><br> <input type="text" name="fplacas" id="fplacas" value="<?php echo isset($vehiculo[0]->placas) ? $vehiculo[0]->placas : ''; ?>
private function modificar_serie_folio() { if (isset($_GET['id'][0])) { $this->carabiner->css(array(array('general/forms.css', 'screen'), array('general/tables.css', 'screen'))); $this->carabiner->js(array(array('facturacion/series_folios/frm_addmod.js'))); $this->load->model('facturacion_model'); $this->configAddSerieFolio('edit'); if ($this->form_validation->run() == FALSE) { $params['frm_errors'] = $this->showMsgs(2, preg_replace("[\n|\r|\n\r]", '', validation_errors())); } else { $model_resp = $this->facturacion_model->editSerieFolio($_GET['id']); if ($model_resp[0]) { $params['frm_errors'] = $this->showMsgs(3); } } $params['info_empleado'] = $this->info_empleado['info']; $params['opcmenu_active'] = 'Facturas'; //activa la opcion del menu $params['seo']['titulo'] = 'Modificar Serie y Folio'; $params['serie_info'] = $this->facturacion_model->getInfoSerieFolio($_GET['id']); if (isset($_GET['msg'][0])) { $params['frm_errors'] = $this->showMsgs($_GET['msg']); } $this->load->view('panel/header', $params); $this->load->view('panel/general/menu', $params); $this->load->view('panel/facturacion/series_folios/modificar', $params); $this->load->view('panel/footer', $params); } else { redirect(base_url('panel/facturacion/index_serie_folios/') . String::getVarsLink(array('msg')) . '&msg=1'); } }
<div id="content" class="span12"> <!-- content starts --> <div class="row-fluid"> <div class="box span12"> <div class="box-header well" data-original-title> <h2><i class="icon-edit"></i> Agregar Inventario</h2> <div class="box-icon"> <a href="#" class="btn" title="Cerrar ventana" onclick="parent.supermodal.close();"><i class="icon-remove"></i></a> </div> </div> <div class="box-content"> <form action="<?php echo base_url('panel/productos/agregar_inventario/?' . String::getVarsLink(array('msg'))); ?> " method="post" class="form-horizontal" id="form"> <fieldset style="padding: 0 5px;"> <legend></legend> <div class="span11"> <div class="control-group"> <label class="control-label">Producto </label> <div class="controls"> <strong><?php echo isset($producto->nombre) ? $producto->nombre : ''; ?> </strong> </div>
private function extender_plazo() { if (isset($_GET['id'][0])) { $this->load->model('salidas_model'); $result = $this->salidas_model->extender_plazo_herramienta(); if ($result[0]) { if ($_GET['r'] == 1) { redirect(base_url('panel/home/?' . String::getVarsLink(array('id', 'msg', 'r')) . '&msg=4')); } elseif ($_GET['r'] == 2) { redirect(base_url('panel/salidas/ver_todos/?' . String::getVarsLink(array('id', 'msg', 'r')) . '&msg=8')); } } } redirect(base_url('panel/home/?' . String::getVarsLink(array('id', 'msg', 'r')) . '&msg=1')); }
</td> <td><?php echo $cuenta->concepto; ?> </td> <td><?php echo String::formatoNumero($cuenta->abono); ?> </td> <td><?php echo String::formatoNumero($total_saldo); ?> </td> <td class="tdsmenu a-c" style="width: 70px;"> <?php echo $this->empleados_model->getLinkPrivSm('compras/delete_abono/', $cuenta->id_abono, "msb.confirm('Estas seguro de eliminar el abono?', this); return false;", '', '&' . String::getVarsLink()); ?> </td> </tr> <?php } ?> <tr style="background-color:#ccc;font-weight: bold;"> <td colspan="2" class="a-r">Totales:</td> <td><?php echo String::formatoNumero($total_abono); ?> </td> <td id="dtalle_total_saldo"><?php echo String::formatoNumero($total_saldo); ?>
?> ", opcmenu_active = '<?php echo isset($opcmenu_active) ? $opcmenu_active : 0; ?> '; </script> </head> <body> <div> <div class="titulo ajus w100 am-c"><?php echo $seo['titulo']; ?> </div> <form action="<?php echo base_url('panel/compras/pagar?' . String::getVarsLink()); ?> " method="post" class="frm_addmod"> <p> <label for="ffecha1">*Fecha:</label><br> <input type="text" name="dfecha" id="ffecha1" value="<?php echo set_value('dfecha', date("Y-m-d")); ?> " size="8" readonly autofocus> </p> <p> <label for="dconcepto">*Concepto:</label> <br> <input type="text" name="dconcepto" id="dconcepto" value="<?php $ff = (isset($compra['info']->serie) ? $compra['info']->serie : '') . (isset($compra['info']->folio) ? $compra['info']->folio : '');
/** * Modificar una sucursal a un cliente a la bd */ public function modificar() { $this->carabiner->css(array(array('libs/jquery.uniform.css', 'screen'))); $this->carabiner->js(array(array('libs/jquery.uniform.min.js'), array('libs/jquery.numeric.js'), array('general/msgbox.js'), array('panel/clientes/frm_addmod.js'))); $params['info_empleado'] = $this->info_empleado['info']; //info empleado $params['seo'] = array('titulo' => 'Modificar Empresa'); if (isset($_GET['id'][0])) { $this->configAddModEmpresa(); $this->load->model('empresas_model'); if ($this->form_validation->run() == FALSE) { $params['frm_errors'] = $this->showMsgs(2, preg_replace("[\n|\r|\n\r]", '', validation_errors())); } else { $respons = $this->empresas_model->updateEmpresa(); if ($respons[0]) { redirect(base_url('panel/empresas/modificar/?' . String::getVarsLink(array('msg')) . '&msg=' . $respons[2])); } } $params['info'] = $this->empresas_model->getInfoEmpresa($_GET['id']); } else { $params['frm_errors'] = $this->showMsgs(1); } if (isset($_GET['msg'][0])) { $params['frm_errors'] = $this->showMsgs($_GET['msg']); } $this->load->view('panel/header', $params); $this->load->view('panel/general/menu', $params); $this->load->view('panel/empresas/modificar', $params); $this->load->view('panel/footer'); }
public function agregar() { $this->carabiner->css(array(array('libs/jquery.msgbox.css', 'screen'), array('general/forms.css', 'screen'), array('general/tables.css', 'screen'))); $this->carabiner->js(array(array('libs/jquery.msgbox.min.js'), array('general/msgbox.js'), array('vuelos/frm_addmod.js'), array('libs/jquery-ui-timepicker-addon.js'))); $params['info_empleado'] = $this->info_empleado['info']; //info empleado $params['seo'] = array('titulo' => 'Agregar Vuelo'); $params['opcmenu_active'] = 'Vuelos'; //activa la opcion del menu $this->configAddVuelo('add'); if ($this->form_validation->run() == FALSE) { $params['frm_errors'] = $this->showMsgs(2, preg_replace("[\n|\r|\n\r]", '', validation_errors())); } else { $this->load->model('vuelos_model'); $respons = $this->vuelos_model->addVuelo(); if ($respons[0]) { redirect(base_url('panel/vuelos/agregar/?' . String::getVarsLink(array('msg')) . '&msg=' . $respons[2])); } } $params['infoc'] = array(); if (isset($_POST['hids'])) { $this->load->model('clientes_model'); foreach ($_POST['hids'] as $id) { $params['infoc'][] = $this->clientes_model->getInfoCliente($id, true); } foreach ($params['infoc'] as $c) { $split = explode('.', $c['info']->id_cliente); $c['info']->id = $split[0] . '' . $split[1]; } } $params['prod_venta'] = $this->db->query("\n\t\t\t\t\t\t\t\t\tSELECT p.id_producto, p.nombre \n\t\t\t\t\t\t\t\t\tFROM productos as p \n\t\t\t\t\t\t\t\t\tINNER JOIN productos_familias AS pf ON p.id_familia=pf.id_familia \n\t\t\t\t\t\t\t\t\tWHERE pf.tipo='venta'")->result(); if (isset($_GET['msg'][0])) { $params['frm_errors'] = $this->showMsgs($_GET['msg']); } $this->load->view('panel/header', $params); $this->load->view('panel/general/menu', $params); $this->load->view('panel/vuelos/agregar', $params); $this->load->view('panel/footer'); }
<td class="center"> <?php echo $this->empleados_model->getLinkPrivSm('empresas/modificar/', array('params' => 'id=' . $empresa->id_empresa, 'btn_type' => 'btn-success')); echo $this->empleados_model->getLinkPrivSm('empresas/eliminar/', array('params' => 'id=' . $empresa->id_empresa, 'btn_type' => 'btn-danger', 'attrs' => array('onclick' => "msb.confirm('Estas seguro de eliminar?', 'Clientes', this); return false;"))); ?> </td> </tr> <?php } ?> </tbody> </table> <?php //Paginacion $this->pagination->initialize(array('base_url' => base_url($this->uri->uri_string()) . '?' . String::getVarsLink(array('pag')) . '&', 'total_rows' => $empresas['total_rows'], 'per_page' => $empresas['items_per_page'], 'cur_page' => $empresas['result_page'] * $empresas['items_per_page'], 'page_query_string' => TRUE, 'num_links' => 1, 'anchor_class' => 'pags corner-all', 'num_tag_open' => '<li>', 'num_tag_close' => '</li>', 'cur_tag_open' => '<li class="active"><a href="#">', 'cur_tag_close' => '</a></li>')); $pagination = $this->pagination->create_links(); echo '<div class="pagination pagination-centered"><ul>' . $pagination . '</ul></div>'; ?> </div> </div><!--/span--> </div><!--/row--> <!-- content ends --> </div><!--/#content.span10-->
?> " class="linksm"> <img src="<?php echo base_url('application/images/privilegios/atras.png'); ?> " width="16" height="16"> Atras</a> <a href="<?php echo base_url('panel/cuentas_cobrar/cdp_pdf/?' . String::getVarsLink()); ?> " class="linksm" target="_blank"> <img src="<?php echo base_url('application/images/privilegios/pdf.png'); ?> " width="20" height="20"> Imprimir</a> <a href="<?php echo base_url('panel/cuentas_cobrar/cdp_xls/?' . String::getVarsLink()); ?> " class="linksm" target="_blank"> <img src="<?php echo base_url('application/images/privilegios/xls.png'); ?> " width="20" height="20"> Excel</a> </div> <fieldset class="w60 f-r" style="color: #555; font-size: .9em;"> <legend>Datos del proveedor</legend> <strong>Nombre:</strong> <?php echo $cuentasp['cliente']->nombre_fiscal; ?> <br> <strong>Dirección: </strong>
<div id="contentAll" class="f-l"> <form action="<?php echo base_url('panel/pilotos/modificar/?' . String::getVarsLink(array('msg'))); ?> " method="post" class="frm_addmod" enctype="multipart/form-data"> <div class="frmsec-left w75 f-l"> <div id="frmsec-acordion"> <h3 class="frmsec-acordion"><a href="#">Información</a></h3> <div> <p> <label for="dnombre">*Nombre:</label> <br> <input type="text" name="dnombre" id="dnombre" value="<?php echo isset($piloto['info']->nombre) ? $piloto['info']->nombre : ''; ?> " size="40" maxlength="120" autofocus> </p> <div class="clear"></div> <p class="w40 f-l"> <label for="dcalle">Calle:</label> <br> <input type="text" name="dcalle" id="dcalle" value="<?php echo isset($piloto['info']->calle) ? $piloto['info']->calle : ''; ?> " size="30" maxlength="60"> </p> <p class="w30 f-l"> <label for="dno_exterior">No exterior:</label> <br> <input type="text" name="dno_exterior" id="dno_exterior"
echo base_url('panel'); ?> ">Inicio</a> <span class="divider">/</span> </li> <li> <a href="<?php echo base_url('panel/empresas/'); ?> ">Empresas</a> <span class="divider">/</span> </li> <li>Modificar empresa</li> </ul> </div> <form action="<?php echo base_url('panel/empresas/modificar/?' . String::getVarsLink(array('msg'))); ?> " method="post" class="form-horizontal" enctype="multipart/form-data"> <div class="row-fluid"> <div class="box span12"> <div class="box-header well" data-original-title> <h2><i class="icon-list-alt"></i> Información</h2> <div class="box-icon"> <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a> </div> </div> <div class="box-content"> <fieldset> <legend></legend>
public function activar() { if (isset($_GET['id'])) { $this->load->model('usuarios_model'); $res_mdl = $this->usuarios_model->activar_usuario($this->input->get('id')); if ($res_mdl) { redirect(base_url('panel/usuarios/?' . String::getVarsLink(array('msg')) . '&msg=6')); } } else { redirect(base_url('panel/usuarios/?' . String::getVarsLink(array('msg')) . '&msg=1')); } }
/** * *********************************************** * ********* Agregar Inventario ***************** * *********************************************** * @return [type] [description] */ public function agregar_inventario() { $this->carabiner->css(array(array('libs/jquery.uniform.css', 'screen'))); $this->carabiner->js(array(array('libs/jquery.uniform.min.js'), array('libs/jquery.numeric.js'))); $params['info_empleado'] = $this->info_empleado['info']; //info empleado $params['seo'] = array('titulo' => 'Agregar inventario'); if (isset($_GET['id'][0])) { //id del producto $this->load->model('productos_model'); $this->configAddInventario(); if ($this->form_validation->run() == FALSE) { $params['frm_errors'] = $this->showMsgs(2, preg_replace("[\n|\r|\n\r]", '', validation_errors())); } else { $respons = $this->productos_model->addInventario($_GET['id']); if ($respons[0]) { redirect(base_url('panel/productos/agregar_inventario/?' . String::getVarsLink(array('msg')) . '&msg=7')); } } $params['producto'] = $this->productos_model->getInfoProducto($_GET['id']); if (!is_object($params['producto'])) { unset($params['producto']); } if (isset($_GET['msg'][0])) { $params['frm_errors'] = $this->showMsgs($_GET['msg']); } } else { $params['frm_errors'] = $this->showMsgs(1); } $this->load->view('panel/productos/inventario/agregar_inventario', $params); }
?> ", opcmenu_active = '<?php echo isset($opcmenu_active) ? $opcmenu_active : 0; ?> '; </script> </head> <body> <div> <div class="titulo ajus w100 am-c"><?php echo $seo['titulo']; ?> </div> <form action="<?php echo base_url('panel/tickets/pagar/?' . String::getVarsLink(array('msg'))); ?> " method="post"> <div class="frmsec-left w90 f-l"> <p class="f-l w30"> <label for="ffecha">*Fecha</label><br> <input type="text" name="ffecha" id="ffecha" value="<?php echo set_value('ffecha') != '' ? set_value('ffecha') : date("Y-m-d"); ?> " size="20" maxlength="40" readonly> </p> <p class="f-r w70"> <table class="tblListados corner-all8" style="width:40% !important;margin-right:0px;"> <tr> <td style="text-align:right;">Abonado</td> <td id="ta_total" class="a-r" style="background-color:#ccc;"><?php
?> ", opcmenu_active = '<?php echo isset($opcmenu_active) ? $opcmenu_active : 0; ?> '; </script> </head> <body> <div> <div class="titulo ajus w100 am-c"><?php echo $seo['titulo']; ?> </div> <form action="<?php echo base_url('panel/notas_venta/pagar/?' . String::getVarsLink(array('msg'))); ?> " method="post"> <div class="frmsec-left w90 f-l"> <p class="f-l w30"> <label for="ffecha">*Fecha</label><br> <input type="text" name="ffecha" id="ffecha" value="<?php echo set_value('ffecha') != '' ? set_value('ffecha') : date("Y-m-d"); ?> " size="20" maxlength="40" readonly> </p> <p class="f-r w70"> <table class="tblListados corner-all8" style="width:40% !important;margin-right:0px;"> <tr> <td style="text-align:right;">Abonado</td> <td id="ta_total" class="a-r" style="background-color:#ccc;"><?php