function crearpago($sprv) { $mSQL = "SELECT tipo_doc,numero,fecha,monto,abonos FROM sprm WHERE cod_prv='{$sprv}' AND monto>abonos"; $query = $this->db->query($mSQL); $pjson = array(); $aplicables = $pagables = array(); if ($query->num_rows() > 0) { foreach ($query->result_array() as $row) { if (eregi('^(FC|GI|ND)$', $row['tipo_doc'])) { $row['fecha'] = str_replace('-', '', $row['fecha']); $pagables[] = $row; $id = $row['tipo_doc'] . $row['numero'] . $row['fecha']; $pjson[$id] = $row['monto'] - $row['abonos']; } else { $aplicables[] = $row; } } } $ddata = array('pagables' => $pagables, 'aplicables' => $aplicables); $ddata['link'] = site_url('compras/sprm/procesapago'); $ddata['sprv'] = $sprv; $ddata['pjson'] = json_encode($pjson); $proveed = $this->datasis->dameval("SELECT nombre FROM sprv WHERE proveed='{$sprv}'"); $data['title'] = "<h1>Realizar pago a ({$sprv}) {$proveed}</h1>"; $data["head"] = style('proteo/proteo.css') . script('jquery.js') . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.floatnumber.js") . script('jquery-ui.js'); $data['content'] = $this->load->view('view_sprm', $ddata, true); $this->load->view('view_ventanas', $data); }
/** * 修改公告 */ public function edit() { $id = intval($GLOBALS['id']); if (isset($GLOBALS['submit'])) { $formdata = $GLOBALS['form']; $formdata['title'] = remove_xss($formdata['title']); $formdata['note'] = remove_xss($formdata['note']); $formdata['addtime'] = SYS_TIME; $formdata['endtime'] = strtotime($GLOBALS['endtime']); $formdata['publisher'] = get_cookie('username'); $formdata['css'] = 'color:#' . remove_xss(ltrim($GLOBALS['title_css'], '#') . ';' . $GLOBALS['font_weight']); $linkageid = $this->db->update('affiche', $formdata, array('id' => $id)); MSG(L('operation success'), '?m=affiche&f=index&v=listing' . $this->su()); } else { $show_formjs = 1; $form = load_class('form'); load_function('admin'); $endtime = SYS_TIME + 86400 * 30; $endtime = date('Y-m-d'); $r = $this->db->get_one('affiche', array('id' => $id)); $styles = style($r['css']); //color:#ff0000;font-weight:bold $font_weight = $styles['font-weight']; $color = $styles['color']; include $this->template('edit'); } }
function centinelas() { $this->load->helper('directory'); $this->load->library('table'); $tmpl = array('row_start' => '<tr valign="top">'); $this->table->set_template($tmpl); $map = directory_map('./system/logs/'); $lista = array(); foreach ($map as $file) { if ($file != 'index.html') { $lista[] = anchor("supervisor/mantenimiento/borracentinela/{$file}", 'X') . " <a href='javascript:void(0)' onclick=\"carga('{$file}')\" >{$file}</a>"; } } $copy = "<br><a href='javascript:void(0)' class='mininegro' onclick=\"copiar()\" >Copiar texto</a>"; $tadata = array('name' => 'sql', 'id' => 'log', 'rows' => '20', 'cols' => '60'); $form = form_open('ejecutasql/filteredgrid/process') . form_textarea($tadata) . '<br>' . form_submit('mysubmit', 'Ejecutar como SQL') . form_close(); $this->table->add_row(ul($lista), '<b id="fnom">Seleccione un archivo de centinela</b><br>' . $form); $link = site_url('supervisor/mantenimiento/vercentinela'); $data['script'] = "<script>\n\t\t function carga(arch){\n\t\t link='{$link}'+'/'+arch;\n\t\t //alert(link);\n\t\t \$('#fnom').text(arch);\n\t\t \$('#log').load(link);\n\t\t };\n\t\t function copiar(){\n\t\t \$('#log').copy();\n\t\t };\n\t\t</script>"; $data['content'] = $this->table->generate(); $data['title'] = " Centinelas "; //script('plugins/jquery.clipboard.pack.js') $data["head"] = script("jquery.pack.js") . script('plugins/jquery.copy.min.js') . $this->rapyd->get_head() . style('marcos.css') . style('estilos.css'); $this->load->view('view_ventanas', $data); }
function ver($id = NULL) { $this->rapyd->load("datatable"); $table = new DataTable(null); $table->cell_attributes = 'style="vertical-align:middle;"'; $select = array("envia", "mensaje", "recibe"); $table->db->select($select); $table->db->from("muro"); $table->db->where("recibe='Todos'"); $table->db->orderby("codigo DESC"); $table->per_row = 1; $table->per_page = 20; $table->cell_template = "<div class='marco1' ><#mensaje#><br><b class='mininegro'>Usuario: <#envia#></b></div><br>"; $table->build(); if ($this->datasis->login()) { $prop = array('type' => 'button', 'value' => 'Agregar', 'name' => 'mas', 'onclick' => "javascript:window.location='" . site_url("supervisor/noticias/dataedit/create") . "'"); $form = form_input($prop); } else { $form = ''; } $data['content'] = $table->output . $form; $data["head"] = $this->rapyd->get_head() . style('marcos.css') . style('estilos.css'); $data['title'] = " Noticias "; $this->load->view('view_ventanas', $data); }
function index() { $data = array(); $data['header'] = ''; $data['content'] = $this->load->view('view_verificador', $data, true); $data['footer'] = ''; $data['script'] = script('jquery-min.js'); $data['script'] .= phpscript('nformat.js'); $data['script'] .= script('jquery.bootgrid.min.js'); $data['style'] = style('jquery.bootgrid.min.css'); $data['panel'] = ''; $data['title'] = heading('Verificador de precios'); $this->load->view('view_ventanasjq', $data); /* // Filter grid $this->rapyd->load('datafilter','datagrid'); $filter = new DataFilter('Consulta de Precios', 'sinv'); $filter->Descripcion = new inputField('Descripcion','decrip'); $filter->clave->rule ='max_length[50]'; $filter->clave->size =7; $filter->clave->maxlength =5; $filter->marca = new inputField('Marca','marca'); $filter->marca->rule ='max_length[30]'; $filter->marca->size =32; $filter->marca->maxlength =30; $filter->buttons('reset', 'search'); $filter->build(); $uri = anchor($this->url.'dataedit/show/<raencode><#id#></raencode>','<#id#>'); $grid = new DataGrid(''); $grid->db->select('codigo', 'descrip','unidad','base1','precio1-base1 iva','precio1'); $grid->db->order_by('codigo'); $grid->db->order_by('codigo'); $grid->per_page = 40; $grid->column_orderby('Código' ,'codigo' ,'codigo', 'align="left"'); $grid->column_orderby('Descripcion' ,'nombre' ,'descrip', 'align="left"'); $grid->column_orderby('Medida' ,'unidad' ,'unidad', 'align="left"'); $grid->column_orderby('Precio' ,'base1' ,'base1', 'align="right"'); $grid->column_orderby('I.V.A.' ,'iva' ,'iva', 'align="right"'); $grid->column_orderby('Precio de Venta' ,'precio1' ,'precio1', 'align="right"'); $grid->add($this->url.'dataedit/create'); $grid->build(); $data['filtro'] = $filter->output; $data['content'] = $grid->output; $data['head'] = $this->rapyd->get_head().script('jquery.min.js'); $data['title'] = heading($this->titp); $this->load->view('view_ventanas', $data); */ }
function index() { $this->rapyd->load('dataform'); $lscst = site_url('compras/scst/autocomplete/control'); $script = ' function formato(row) { return row[0]+" "+row[1]+" "+row[3]; } $(function() { $("#control").autocomplete("' . $lscst . '",{ delay:10, //minChars:2, matchSubset:1, matchContains:1, cacheLength:10, formatItem:formato, width:450, autoFill:true } ); });'; $form = new DataForm($this->url . 'index/process'); $form->title('Pasar precios a cajas'); $form->script($script); $form->control = new inputField('Control de compra', 'control'); $form->control->rule = 'required|callback_chcontrol'; $form->control->size = 12; $form->control->maxlength = 10; $form->control->append('Dejar vacio para enviar un masivo'); $form->submit("btnsubmit", "Pasar precios a caja"); $form->build_form(); $error = ''; if ($form->on_success()) { $control = $form->control->newValue; $usr = $this->session->userdata('usuario'); $join = ''; if (strlen($control > 0)) { $join = 'JOIN `itscst` AS b ON a.codigo=b.codigo AND b.codigo=' . $this->db->escape($control); } $mSQL = "INSERT INTO `enviapos` (codigo,numero,precio1,fecha,hora,usuario)\n\t\t\t\t SELECT a.codigo,'INVENTAR',a.precio1,CURDATE(),CURTIME(),'{$usr}' FROM `maes` AS a {$join}"; $ban = $this->db->simple_query($mSQL); if (!$ban) { $error .= "Hubo problemas al pasar los precios, comuniquese con servicio técnico"; memowrite($mSQL, 'ENVIACAJA'); } else { logusu('ENVIACAJA', "Fue enviado una actualizacion de precios"); } } $data['content'] = "<div class='alert'>{$error}</div>"; $data['content'] .= $form->output; $data['title'] = '<h1>Envío de precios para las cajas</h1>'; $data["head"] = script('jquery.pack.js') . script('plugins/jquery.autocomplete.js') . style('jquery.autocomplete.css') . $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }
function code($var) { style(); echo '<pre class="code_helper">'; if (is_array($var) || is_object($var)) { print_r($var); } else { echo $var; } echo '</pre>'; }
/** * 样式别名加载(支持批量加载) * @param string|array $aliases 配置文件中的别名 * @param array $attributes 标签中需要加入的其它参数的数组 * @return string */ function style($aliases, $attributes = array(), $interim = '') { if (is_array($aliases)) { foreach ($aliases as $k => $v) { $interim .= is_int($k) ? style($v, $attributes, $interim) : style($k, $v, $interim); } return $interim; } $cssAliases = Config::get('extend.webAssets.cssAliases'); $url = isset($cssAliases[$aliases]) ? $cssAliases[$aliases] : $aliases; return HTML::style($url, $attributes); }
/** * Render response body * * @param array $env * @param \Exception $exception * @return string */ public function renderBody(&$env, $exception) { $title = 'Slimore Application ErrorException'; $code = $exception->getCode(); $message = $exception->getMessage(); $file = $exception->getFile(); $line = $exception->getLine(); $type = get_class($exception); $trace = str_replace(array('#', "\n"), array('<div class="trace-line">#', '</div>'), $exception->getTraceAsString()); $html = html($title, ['<meta http-equiv="X-UA-Compatible" content="IE=edge" />', '<meta name="renderer" content="webkit" />', '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />', style(['*{margin:0;padding:0;}', 'html {font-size: 62.5%;}', 'html, body {max-width: 100%;width: 100%;}', 'body {font-size: 1.4rem;font-family: "Microsoft Yahei", Helvetica, Tahoma, STXihei, arial,verdana,sans-serif;background:#fff;color:#555;}', 'img {border: none;}', 'pre, pre code {font-family:Consolas, arial,verdana,sans-serif;}', '#layout {padding: 6rem;}', '#main {margin: 0 auto;line-height: 1.5;}', '#main > h1 {font-size: 10rem;margin-bottom: 1rem;}', '#main > h3 {margin-bottom: 2rem; font-size: 1.8rem;}', '#main > h4 {margin-bottom: 1rem; font-size: 1.8rem;}', '#main pre {margin: 1.5rem 0;white-space: pre-wrap;word-wrap: break-word;}', '#main > p {white-space: pre-wrap;word-wrap: break-word;line-height: 1.3;margin-bottom: 0.6rem;}', '#main > p > strong {width: 7rem;display:inline-block;}', '.logo {text-align: left;border-top:1px solid #eee;margin-top: 5rem;padding: 3rem 0 0;color: #ccc;}', '.logo > h1 {font-weight: normal;font-size: 5rem;}', '.logo img {margin-left: -2rem;}', '.trace-line {padding: 0.3rem 0.6rem;margin-left:-0.6rem;-webkit-transition: background-color 300ms ease-out;transition: background-color 300ms ease-out;}', '.trace-line:hover {background:#fffccc;}'])], ['<div id="layout">', '<div id="main">', '<h1>:(</h1>', '<h3>' . $type . '</h3>', '<h4>Details :</h4>', '<p><strong>Type: </strong> ' . $type . '</p>', '<p><strong>Message: </strong> ' . $message . '</p>', '<p><strong>File: </strong> ' . $file . '</p>', '<p><strong>Line: </strong> ' . $line . '</p>', '<br/>', '<h4>Trace:</h4>', '<pre>' . $trace . '</pre>', '<div class="logo">', '<h1>Slimore</h1>', '<p>The fully (H)MVC framework, based on the Slim PHP Framwork.</p>', '</div>', '</div>', '</div>']); return $html; }
function index() { $list = array(); $list[] = anchor('doc/modulos', 'Modulos documentados'); $list[] = anchor('doc/tablas', 'Tablas documentadas'); $attributes = array('class' => 'boldlist', 'id' => 'mylist'); $out = ul($list, $attributes); $data['content'] = $out; $data["head"] = script("jquery.pack.js") . script("jquery.treeview.pack.js") . $this->rapyd->get_head() . style('jquery.treeview.css'); $data['title'] = '<h1>Documentación</h1>'; $this->load->view('view_ventanas', $data); }
function index() { $out = '<table aling=\'center\' cellpadding=\'10\'><tr>'; foreach ($this->ser as $ind => $val) { $image_properties = array('src' => 'images/server.png', 'alt' => $val['titu'], 'border' => 0, 'title' => $val['titu']); $out .= '<td><a href="' . site_url('supervisor/monitoreo/monitor/' . $ind) . '">' . img($image_properties) . '</a>' . br() . $val['titu'] . '</td>'; } $out .= '</tr></table>'; $data['content'] = $out; $data['head'] = script('jquery.pack.js') . script('jquery.treeview.pack.js') . style('jquery.treeview.css'); $data['title'] = '<h1>Equipos monitoreables</h1>'; $this->load->view('view_ventanas', $data); }
function ingresarVentana() { $viene = $this->session->userdata('estaba'); $data['estilos'] = style("estilos.css"); $attributes = array('name' => 'ingresar_form'); $data['cuerpo'] = form_open('bienvenido/autentificar', $attributes); $attributes = array('name' => 'user', 'size' => '6'); $data['cuerpo'] .= '<table><tr><td>Usuario: </td><td>' . form_input($attributes) . '</td></tr>'; $attributes = array('name' => 'pws', 'size' => '6', 'type' => 'password'); $data['cuerpo'] .= '<tr><td> Clave: </td><td>' . form_input($attributes) . '</td></tr>'; $data['cuerpo'] .= '<tr><td></td><td>' . form_submit('usr_submit', 'Enviar') . form_close() . '</td></tr></table>'; // Build the thing $this->load->view('ingreso', $data); }
function index() { $this->rapyd->load("datagrid", "datafilter"); //echo $grid->db->last_query(); $data['script'] = "<script type='text/javascript'>\n\t\t\t\$(function(){\n\n\t\t\t\t// Accordion\n\t\t\t\t\$('#accordion').accordion({ header: 'h3' });\n\t\n\t\t\t\t// Tabs\n\t\t\t\t\$('#tabs').tabs();\n\t\n\n\t\t\t\t// Dialog\t\t\t\n\t\t\t\t\$('#dialog').dialog({\n\t\t\t\t\tautoOpen: true,\n\t\t\t\t\twidth: 600,\n\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t'Aceptar': function() { \n\t\t\t\t\t\t\t\$(this).dialog('close'); \n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t// Dialog Link\n\t\t\t\t\$('#dialog_link').click(function(){\n\t\t\t\t\t\$('#dialog').dialog('open');\n\t\t\t\t\treturn false;\n\t\t\t\t});\n\n\t\t\t\t// Datepicker\n\t\t\t\t\$('#datepicker').datepicker({\n\t\t\t\t\tinline: true\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t// Slider\n\t\t\t\t\$('#slider').slider({\n\t\t\t\t\trange: true,\n\t\t\t\t\tvalues: [17, 67]\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t// Progressbar\n\t\t\t\t\$('#progressbar').progressbar({\n\t\t\t\t\tvalue: 20 \n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t//hover states on the static widgets\n\t\t\t\t\$('#dialog_link, ul#icons li').hover(\n\t\t\t\t\tfunction() { \$(this).addClass('ui-state-hover'); }, \n\t\t\t\t\tfunction() { \$(this).removeClass('ui-state-hover'); }\n\t\t\t\t);\n\t\t\t\t\n\t\t\t});\n\t\t</script>"; $ddata = array('name' => 'cliente', 'id' => 'cliente', 'value' => '', 'maxlength' => '100', 'size' => '50'); $data['content'] = '<!-- ui-dialog --> <div id="dialog" title="Nombre"> <p><center><h2>Hagase usted mismo su presupuesto!</h2> Ingrese su nombre en el siguiente campo y siga las instrucciones' . form_input($ddata) . '</center></p> </div>'; //$data['content'] =''; $data["head"] = $this->rapyd->get_head() . script('jquery.js') . script('jquery-ui.js') . style('verde/jquery-ui.css'); $data['title'] = '<h1>Autoservicio</h1>'; $this->load->view('view_ventanas_sola', $data); }
function margenes() { $this->rapyd->load("dataedit", "dataform"); $script = ' <script language="javascript" type="text/javascript"> $(function(){ $(".inputnum").numeric("."); }); </script> '; $form = new DataForm("inventario/margenes_sinv/margenes/modifica"); $form->margen1 = new inputField2("Magen1", "margen1"); $form->margen1->size = 10; $form->margen1->maxlength = 8; $form->margen1->css_class = 'inputnum'; $form->margen1->rule = 'required|callback_chporcent'; $form->margen2 = new inputField2("Magen2", "margen2"); $form->margen2->size = 10; $form->margen2->maxlength = 8; $form->margen2->css_class = 'inputnum'; $form->margen2->rule = 'required|callback_chporcent'; $form->margen3 = new inputField2("Magen3", "margen3"); $form->margen3->size = 10; $form->margen3->maxlength = 8; $form->margen3->css_class = 'inputnum'; $form->margen3->rule = 'required|callback_chporcent'; $form->margen4 = new inputField2("Magen4", "margen4"); $form->margen4->size = 10; $form->margen4->maxlength = 8; $form->margen4->css_class = 'inputnum'; $form->margen4->rule = 'required|callback_chporcent'; $form->submit("btnsubmit", "MODIFICAR"); $form->build_form(); if ($form->on_success()) { set_time_limit(600); $margen1 = $_POST['margen1']; $margen2 = $_POST['margen2']; $margen3 = $_POST['margen3']; $margen4 = $_POST['margen4']; redirect("inventario/margenes_sinv/modifica/{$margen1}/{$margen2}/{$margen3}/{$margen4}"); //$this->procesa(); } $data['content'] = $form->output; $data['head'] = script('jquery.js') . script('jquery-ui.js') . script("plugins/jquery.numeric.pack.js") . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css') . $this->rapyd->get_head() . $script; $data['title'] = '<h1>Cambiar Margenes</h1>'; $this->load->view('view_ventanas', $data); }
function index() { $data['script'] = '<script type="text/javascript"> $(function() { $("#tree").treeview({ collapsed: true, animated: "medium", control:"#sidetreecontrol", persist: "location" }); }) </script>'; $data['content'] = '<div id="sidetreecontrol"><a href="?#">Contraer todos</a> | <a href="?#">Expandir todos</a> | <a href="?#">Invertir </a></div>' . $out; $data['head'] = script("jquery.pack.js") . script("jquery.treeview.pack.js") . $this->rapyd->get_head() . style('jquery.treeview.css'); $data['title'] = '<h1>Administración del Menú</h1>'; $this->load->view('view_ventanas', $data); }
function index() { /*SELECT a.modulo,a.titulo, IFNULL(b.acceso,'N') FROM intramenu AS a LEFT JOIN intrasida AS b ON a.modulo=b.modulo AND b.usuario='321' WHERE MID(a.modulo,1,1)!=0 ORDER BY a.modulo, a.panel*/ $data['script'] = '<script type="text/javascript"> $(function() { $("#tree").treeview({ collapsed: true, animated: "medium", control:"#sidetreecontrol", persist: "location" }); }) </script>'; $data['content'] = '<div id="sidetreecontrol"><a href="?#">Contraer todos</a> | <a href="?#">Expandir todos</a> | <a href="?#">Invertir </a></div>' . $out; $data["head"] = script("jquery.pack.js") . script("jquery.treeview.pack.js") . $this->rapyd->get_head() . style('jquery.treeview.css'); $data['title'] = '<h1>Administración del Menú</h1>'; $this->load->view('view_ventanas', $data); }
function dataedit() { $this->rapyd->load('dataobject', 'dataedit'); $script = ' $(document).ready(function(){ $(".inputnum").numeric("."); }); '; $do = new DataObject('utribu'); $edit = new DataEdit($this->t**s, $do); $edit->back_url = site_url($this->url . "filteredgrid"); $edit->script($script, 'create'); $edit->script($script, 'modify'); $edit->pre_process('insert', '_valida'); $edit->pre_process('update', '_valida'); $edit->pre_process('delete', '_pre_delete'); $edit->post_process('insert', '_post_insert'); $edit->post_process('update', '_post_update'); $edit->post_process('delete', '_post_delete'); $edit->ano = new inputField('Ano', 'ano'); $edit->ano->rule = 'trim|required|numeric'; $edit->ano->size = 12; $edit->ano->maxlength = 10; //$edit->ano->mode = 'autohide'; //$edit->ano->when =array('show','modify'); $edit->ano->css_class = 'inputnum'; $edit->valor = new inputField('Valor', 'valor'); $edit->valor->rule = 'trim|numeric'; $edit->valor->css_class = 'inputnum'; $edit->valor->size = 21; $edit->valor->maxlength = 19; $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back'); $edit->build(); $data['content'] = $edit->output; $data['head'] = $this->rapyd->get_head() . script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css'); $data['title'] = $this->t**s; $this->load->view('view_ventanas', $data); }
function centinelas() { $this->load->helper('directory'); $this->load->library('table'); $tmpl = array('row_start' => '<tr valign="top">'); $this->table->set_template($tmpl); $map = directory_map('./system/logs/'); $lista = array(); foreach ($map as $file) { if ($file != 'index.html') { $lista[] = "<a href='javascript:void(0)' onclick=\"carga('{$file}')\" >{$file}</a> <a href='javascript:void(0)' onclick=\"carga1('{$file}')\" ><h1>Eliminar</h1></a>"; } } $copy = "<br><a href='javascript:void(0)' class='mininegro' onclick=\"\$.copy('copy this text')\" >Copiar texto</a>"; $this->table->add_row(ol($lista), '<b id="fnom">Seleccione un archivo de centinela</b><div id="log" class="marco1" style="width: 550px; min-height: 400px" ></div>'); $link = site_url('supervisor/prueba/vercentinela'); $link1 = site_url('supervisor/prueba/eliminar'); $data['script'] = "<script>\n\t\t function carga(arch){\n\t\t link='{$link}'+'/'+arch;\n\t\t //alert(link);\n\t\t \$.clipboard(arch);\n\t\t \$('#fnom').text(arch);\n\t\t \$('#log').load(link);\n\t\t };\n\t\t function carga1(arch){\n\t\t link='{$link1}'+'/'+arch;\n\t\t //alert(link1);\n\t\t \$.clipboard(arch);\n\t\t \$('#fnom').text(arch);\n\t\t \$('#log').load(link1);\n\t\t };\n\t\t</script>"; $data['content'] = $this->table->generate(); $data['title'] = "<h1>Centinelas</h1>"; $data["head"] = script("jquery.pack.js") . script('plugins/jquery.clipboard.pack.js') . $this->rapyd->get_head() . style('marcos.css') . style('estilos.css'); $this->load->view('view_ventanas', $data); }
/** * 修改公告 */ public function edit() { $id = intval($GLOBALS['id']); if (isset($GLOBALS['submit'])) { $formdata = $GLOBALS['form']; $formdata['title'] = remove_xss($formdata['title']); $formdata['thumb'] = remove_xss($formdata['thumb']); $linkageid = $this->db->update('express', $formdata, array('eid' => $id)); MSG(L('operation success'), '?m=order&f=express&v=listing' . $this->su()); } else { $show_formjs = 1; $form = load_class('form'); load_function('admin'); $endtime = SYS_TIME + 86400 * 30; $endtime = date('Y-m-d'); $r = $this->db->get_one('express', array('eid' => $id)); $styles = style($r['css']); //color:#ff0000;font-weight:bold $font_weight = $styles['font-weight']; $color = $styles['color']; include $this->template('express_edit'); } }
function dataedit() { $this->rapyd->load('dataobject', 'dataedit'); $script = ' $(document).ready(function(){ $(".inputnum").numeric("."); }); '; $do = new DataObject('r_cerrar'); $edit = new DataEdit($this->t**s, $do); $edit->back_url = site_url($this->url . "filteredgrid"); $edit->script($script, 'create'); $edit->script($script, 'modify'); $edit->pre_process('insert', '_valida'); $edit->pre_process('update', '_valida'); $edit->pre_process('delete', '_pre_delete'); $edit->post_process('insert', '_post_insert'); $edit->post_process('update', '_post_update'); $edit->post_process('delete', '_post_delete'); $edit->id = new inputField('Id', 'id'); $edit->id->rule = 'trim'; $edit->id->size = 13; $edit->id->maxlength = 11; $edit->id->mode = 'autohide'; $edit->id->when = array('show', 'modify'); $edit->fecha = new dateField('Fecha', 'fecha'); $edit->fecha->rule = 'chfecha'; $edit->fecha->size = 10; $edit->fecha->maxlength = 8; $edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back'); $edit->build(); $data['content'] = $edit->output; $data['head'] = $this->rapyd->get_head() . script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css'); $data['title'] = $this->t**s; $this->load->view('view_ventanas', $data); }
<?php script('ownbackup', ['chosen.jquery.min', 'script']); style('ownbackup', ['chosen.min', 'style']); ?> <div id="ownbackup"> <div class="section"> <h2><?php p($l->t('OwnBackup')); ?> </h2> <h3> <label for="ownbackup-backup-date-select"><?php p($l->t('Your backups')); ?> </label> </h3> <div class="box"> <?php p($l->t('Select the backup you want to restore tables from.')); ?> </div> <select class="chosen-select" id="ownbackup-backup-date-select" name="timestamp" data-placeholder="<?php p($l->t('Select backup')); ?> "> <option value="0" selected=""></option> <?php foreach ($_['backupDateHash'] as $timestamp => $date) { ?>
<?php script('user_permission', 'script'); style('user_permission', 'style'); ?> <div id="app"> <div id="app-navigation"> <?php print_unescaped($this->inc('part.navigation')); ?> <?php print_unescaped($this->inc('part.settings')); ?> </div> <div id="app-content"> <div id="app-content-wrapper"> <?php print_unescaped($this->inc('part.content')); ?> </div> </div> </div>
* @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License, version 3, * along with this program. If not, see <http://www.gnu.org/licenses/> * */ style('core', 'lostpassword/resetpassword'); script('core', 'lostpassword'); ?> <form action="<?php print_unescaped($_['link']); ?> " id="reset-password" method="post"> <fieldset> <p> <label for="password" class="infield"><?php p($l->t('New password')); ?> </label> <input type="password" name="password" id="password" value="" placeholder="<?php p($l->t('New Password'));
<html> <head> <title>Sistemas DataSIS</title> <?php echo style("ventanas.css"); if (isset($head)) { echo $head; } if (isset($script)) { echo $script; } ?> </head> <body> <div id='contenido'> <table width="95%" border=0 align="center"> <tr> <td > <td > <?php if (isset($title)) { echo $title; } ?> </td> <td> </td> <td >
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Affero General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ $styles = ['../js/vendor/fullcalendar/dist/fullcalendar', '../js/vendor/jquery-timepicker/jquery.ui.timepicker', '../../../core/css/multiselect', 'globals', 'calendar', 'calendarlist', 'datepicker', 'eventdialog', 'settings']; foreach ($styles as $style) { style('calendar', $style); } $scripts = ['vendor/jquery-timepicker/jquery.ui.timepicker', 'vendor/ical.js/build/ical', 'vendor/jstzdetect/jstz.min', 'vendor/angular/angular', 'vendor/angular-route/angular-route', 'vendor/angular-bootstrap/ui-bootstrap.min', 'vendor/angular-bootstrap/ui-bootstrap-tpls.min', 'vendor/angular-ui-calendar/src/calendar', 'vendor/fullcalendar/dist/fullcalendar', 'vendor/davclient.js/lib/client', '../../../core/js/multiselect', 'public/app']; foreach ($scripts as $script) { script('calendar', $script); } ?> <div class="app" ng-app="Calendar" ng-controller="CalController"> <!-- The Left Calendar Navigation --> <div id="app-navigation"> <div ng-controller="DatePickerController" id="datepickercontainer"> <?php print_unescaped($this->inc('part.datepicker')); ?>
<?php /** * Copyright (c) 2011, Robin Appelman <*****@*****.**> * This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file. */ /** * @var array $_ * @var \OCP\IL10N $l * @var OC_Defaults $theme */ style('settings', 'settings'); script('settings', ['settings', 'admin', 'log']); script('core', ['multiselect', 'setupchecks']); vendor_script('select2/select2'); vendor_style('select2/select2'); $levels = ['Debug', 'Info', 'Warning', 'Error', 'Fatal']; $levelLabels = [$l->t('Everything (fatal issues, errors, warnings, info, debug)'), $l->t('Info, warnings, errors and fatal issues'), $l->t('Warnings, errors and fatal issues'), $l->t('Errors and fatal issues'), $l->t('Fatal issues only')]; $mail_smtpauthtype = ['' => $l->t('None'), 'LOGIN' => $l->t('Login'), 'PLAIN' => $l->t('Plain'), 'NTLM' => $l->t('NT LAN Manager')]; $mail_smtpsecure = ['' => $l->t('None'), 'ssl' => $l->t('SSL'), 'tls' => $l->t('TLS')]; $mail_smtpmode = ['php', 'smtp']; if ($_['sendmail_is_available']) { $mail_smtpmode[] = 'sendmail'; } if ($_['mail_smtpmode'] == 'qmail') { $mail_smtpmode[] = 'qmail'; } ?> <div id="app-navigation">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?php echo $page_title; ?> </title> <meta http-equiv="Content-Type" content="text/html"/> <meta charset="utf-8"/> <link rel="icon" type="image/ico" href="<?php echo image('favicon.ico'); ?> "/> <link rel='stylesheet' type='text/css' href="//fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/> <link rel="stylesheet" type="text/css" href="<?php echo style('style.css'); ?> ?2015-09-16-0000" title="default" media="screen,print"/> <link rel="stylesheet" type="text/css" href="<?php echo script('highlight/styles/github.css'); ?> "/> <?php if (isset($doxygen)) { echo '<link rel="stylesheet" type="text/css" href="' . root() . '/' . $docpath . 'doxygen.css" title="default" media="screen,print" />' . "\n" . '<script type="text/javascript" src="jquery.js"></script>' . "\n" . '<script type="text/javascript" src="dynsections.js"></script>' . "\n"; } ?> <!--[if (gte IE 9)|!(IE)]> <!--> <script type="text/javascript" src="<?php echo script('highlight/highlight.pack.js');
function ver($id = NULL) { if (empty($id)) { redirect("supervisor/tiketc/filteredgrid"); } $this->rapyd->load("datatable"); $query = $this->db->query("SELECT prioridad,estado FROM tiketc WHERE {$id}={$id}"); $estado = $prioridad = ''; if ($query->num_rows() > 0) { $row = $query->row(); $prioridad = $row->prioridad; $estado = $row->estado; } $link = $this->datasis->puede(908001) ? anchor('/supervisor/tiketc/dataedit/delete/<#id#>', 'borrar') : ''; $table = new DataTable(null); $table->cell_attributes = 'style="vertical-align:middle;"'; $select = array("usuario", "contenido", "prioridad", "estado", "estampa", "id", "padre"); $table->db->select($select); $table->db->from("tiketc"); $table->db->where("id={$id} OR pertenece={$id}"); $table->db->orderby("id"); $table->per_row = 1; $table->per_page = 50; $table->cell_template = "<div class='marco1' ><#contenido#><br><b class='mininegro'> <dbdate_to_human><#estampa#>|d/m/Y h:m:s</dbdate_to_human> Usuario: <#usuario#> {$link}</b></div><br>"; $table->build(); $prop = array('type' => 'button', 'value' => 'Agregar', 'name' => 'mas', 'onclick' => "javascript:window.location='" . site_url("supervisor/tiketc/dataedit/pertenece/{$id}/create") . "'"); $form = form_input($prop); $prop2 = array('type' => 'button', 'value' => 'Cambiar estado o prioridad', 'name' => 'mas', 'onclick' => "javascript:window.location='" . site_url("supervisor/tiketc/estapriori/modify/{$id}") . "'"); $form2 = form_input($prop2); $prop3 = array('type' => 'button', 'value' => 'Regresar', 'name' => 'mas', 'onclick' => "javascript:window.location='" . site_url("supervisor/tiketc/filteredgrid") . "'"); $form3 = form_input($prop3); $data['content'] = $table->output . $form . $form2 . $form3; $data["head"] = $this->rapyd->get_head() . style('marcos.css') . style('estilos.css'); $data['title'] = " tiketc Número: {$id} Prioridad: <b>" . $this->prioridad[$prioridad] . "</b>, Estado: <b>" . $this->estado[$estado] . "</b><br>"; $this->load->view('view_ventanas', $data); }
* version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Affero General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ /** @var $l OC_L10N */ /** @var $theme OC_Defaults */ /** @var $_ array */ script('activity', 'script'); style('activity', 'style'); ?> <?php $_['appNavigation']->printPage(); ?> <div id="app-content"> <div id="emptycontent" class="hidden"> <div class="icon-activity"></div> <h2><?php p($l->t('No activity yet')); ?> </h2> <p><?php p($l->t('This stream will show events like additions, changes & shares'));
function dataedit($status = '', $numero = '') { //$this->datasis->modulo_id(116,1); $this->rapyd->load('dataobject', 'datadetails'); $mSPRV = array('tabla' => 'sprv', 'columnas' => array('proveed' => 'Cóodigo', 'nombre' => 'Nombre', 'rif' => 'Rif', 'contacto' => 'Contacto'), 'filtro' => array('proveed' => 'Código', 'nombre' => 'Nombre', 'rif' => 'Rif'), 'retornar' => array('proveed' => 'cod_prov', 'nombre' => 'nombrep', 'reteiva' => 'reteiva_prov'), 'script' => array('cal_total()'), 'titulo' => 'Buscar Beneficiario'); $bSPRV2 = $this->datasis->modbus($mSPRV, "sprv"); $do = new DataObject("odirect"); $do->pointer('sprv', 'sprv.proveed = odirect.cod_prov', 'sprv.nombre as nombrep, sprv.rif rifp', 'LEFT'); $do->rel_one_to_many('itodirect', 'itodirect', array('numero' => 'numero')); $do->rel_pointer('itodirect', 'v_presaldo', 'itodirect.codigoadm=v_presaldo.codigoadm AND itodirect.fondo=v_presaldo.fondo AND itodirect.partida=v_presaldo.codigo ', "v_presaldo.denominacion as pdenominacion"); if ($status == "create" && !empty($numero)) { $do->load($numero); $do->set('status', 'C1'); $do->unset_pk(); } $edit = new DataDetails($this->t**s, $do); $edit->back_url = site_url($this->url . "filteredgrid/index"); $edit->set_rel_title('itodirect', 'Rubro <#o#>'); $edit->pre_process('update', '_valida'); $edit->pre_process('insert', '_valida'); $edit->pre_process('delete', '_pre_delete'); $edit->post_process('insert', '_post'); $edit->post_process('update', '_post'); $edit->post_process('insert', '_post_insert'); $edit->post_process('update', '_post_update'); $edit->post_process('delete', '_post_delete'); $edit->numero = new inputField("Número", "numero"); $edit->numero->rule = 'unique'; if ($this->datasis->traevalor('USANODIRECT') == 'S') { $edit->numero->when = array('show'); } else { $edit->numero->when = array('show', 'create', 'modify'); } $edit->tipo = new hiddenField("Orden de ", "tipo"); $edit->tipo->value = "Contrato"; $edit->fecha = new dateonlyField("Fecha", "fecha"); $edit->fecha->insertValue = date('Y-m-d'); $edit->fecha->size = 12; $lsnc = '<a href="javascript:consulsprv();" title="Proveedor" onclick="">Consulta/Agrega BENEFICIARIO</a>'; $edit->cod_prov = new inputField("Beneficiario", 'cod_prov'); $edit->cod_prov->db_name = "cod_prov"; $edit->cod_prov->size = 4; $edit->cod_prov->append($bSPRV2); $edit->cod_prov->append($lsnc); $edit->cod_prov->rule = "required"; $edit->nombrep = new inputField("Nombre", 'nombrep'); $edit->nombrep->size = 30; //$edit->nombrep->readonly = true; $edit->nombrep->pointer = true; $edit->rifp = new inputField("RIF", "rifp"); $edit->rifp->size = 10; $edit->rifp->pointer = true; $edit->rifp->db_name = 'rifp'; //if($status=='P') //$edit->rif->readonly = true; $edit->reteiva_prov = new inputField("% R.IVA", "reteiva_prov"); $edit->reteiva_prov->size = 2; $edit->reteiva_prov->readonly = true; $edit->reteiva_prov->when = array('modify', 'create'); $edit->reteiva_prov->onchange = 'cal_total();'; $edit->observa = new textAreaField("Concepto", 'observa'); $edit->observa->cols = 70; $edit->observa->rows = 3; $edit->tipoc = new dropdownField("Tipo de Pago", "tipoc"); $edit->tipoc->option("OT", "Otro"); $edit->tipoc->option("FA", "Fondo en anticipo"); $edit->factura = new inputField("Factura", "factura"); $edit->factura->size = 15; //$edit->factura->rule ="callback_chexiste_factura"; //$edit->factura->rule="required"; $edit->controlfac = new inputField("Control Fiscal", "controlfac"); $edit->controlfac->size = 15; //$edit->controlfac->rule="required"; $edit->fechafac = new dateonlyField("Fecha de Factura", "fechafac"); $edit->fechafac->insertValue = date('Y-m-d'); $edit->fechafac->size = 12; //$edit->fechafac->rule="required"; $edit->simptimbre = new checkboxField("1X1000", "simptimbre", "S", "N"); $edit->simptimbre->insertValue = "N"; $edit->simptimbre->onchange = 'cal_timbre();'; $edit->simpmunicipal = new checkboxField("I.Municipal", "simpmunicipal", "S", "N"); $edit->simpmunicipal->insertValue = "N"; $edit->simpmunicipal->onchange = 'cal_municipal();'; $edit->imptimbre = new inputField("Impuesto 1X1000", 'imptimbre'); $edit->imptimbre->size = 8; $edit->imptimbre->css_class = 'inputnum'; $edit->imptimbre->onchange = 'cal_total();'; $edit->fondo = new dropdownField("F. Financiamiento", "fondo"); $edit->fondo->rule = 'required'; $edit->fondo->db_name = 'fondo'; $edit->fondo->options("SELECT tipo,tipo a FROM presupuesto WHERE tipo<>'' GROUP BY tipo ORDER BY tipo desc"); $edit->fondo->style = "width:100px;"; $edit->total = new inputField("Monto a Pagar", 'total'); $edit->total->size = 8; $edit->total->css_class = 'inputnum'; $edit->impmunicipal = new inputField("Impuesto Municipal", 'impmunicipal'); $edit->impmunicipal->size = 8; $edit->impmunicipal->css_class = 'inputnum'; $edit->impmunicipal->onchange = 'cal_total();'; $edit->subtotal = new inputField("Total Base Imponible", 'subtotal'); $edit->subtotal->css_class = 'inputnum'; $edit->subtotal->size = 8; //$edit->subtotal->readonly=true; $edit->iva = new inputField("IVA", 'iva'); $edit->iva->css_class = 'inputnum'; $edit->iva->size = 8; $edit->iva->readonly = true; $edit->ivaa = new inputField("IVA Adicional", 'ivaa'); $edit->ivaa->css_class = 'inputnum'; $edit->ivaa->size = 8; $edit->ivaa->onchange = 'cal_total();'; $edit->ivag = new inputField("IVA General", 'ivag'); $edit->ivag->css_class = 'inputnum'; $edit->ivag->size = 8; $edit->ivag->onchange = 'cal_total();'; $edit->ivar = new inputField("IVA Reducido", 'ivar'); $edit->ivar->css_class = 'inputnum'; $edit->ivar->size = 8; $edit->ivar->onchange = 'cal_total();'; $edit->exento = new inputField("Exento", 'exento'); $edit->exento->css_class = 'inputnum'; $edit->exento->size = 8; $edit->exento->onchange = 'cal_total();'; $edit->reteiva = new inputField("Retencion IVA", 'reteiva'); $edit->reteiva->css_class = 'inputnum'; $edit->reteiva->size = 8; $edit->reteiva->onchange = 'cal_total();'; $edit->creten = new dropdownField("Codigo ISLR", "creten"); $edit->creten->options("SELECT codigo,CONCAT_WS(' ',codigo,activida) FROM rete ORDER BY codigo"); $edit->creten->style = "width:300px;"; $edit->creten->onchange = 'cal_total();'; $edit->reten = new inputField("Retención ISLR", 'reten'); $edit->reten->css_class = 'inputnum'; $edit->reten->size = 8; $edit->reten->onchange = 'cal_total();'; $edit->otrasrete = new inputField("Otras Deducciones", 'otrasrete'); $edit->otrasrete->css_class = 'inputnum'; $edit->otrasrete->size = 8; $edit->otrasrete->insertValue = 0; $edit->otrasrete->onchange = 'cal_total();'; $edit->total2 = new inputField("Total", 'total2'); $edit->total2->css_class = 'inputnum'; $edit->total2->size = 8; $edit->multiple = new dropDownField("Factura Multiple", 'multiple'); $edit->multiple->option('N', 'NO'); $edit->itocompra = new inputField("(<#o#>) Descripción", "ocompra_<#i#>"); $edit->itocompra->db_name = 'ocompra'; $edit->itocompra->size = 15; $edit->itocompra->rel_id = 'itodirect'; //$edit->itocompra->readonly =true; $edit->itocompra->type = 'inputhidden'; $edit->itcodigoadm = new inputField("Estructura\tAdministrativa", "itcodigoadm_<#i#>"); $edit->itcodigoadm->type = 'inputhidden'; $edit->itcodigoadm->db_name = 'codigoadm'; $edit->itcodigoadm->rel_id = 'itodirect'; $edit->itcodigoadm->rule = 'required'; $edit->itcodigoadm->autocomplete = false; $edit->itpartida = new inputField("(<#o#>) Partida", "partida_<#i#>"); //$edit->itpartida->rule='|required'; $edit->itpartida->type = 'inputhidden'; $edit->itpartida->db_name = 'partida'; $edit->itpartida->rel_id = 'itodirect'; $edit->itpartida->autocomplete = false; //$edit->itpartida->readonly =true; $edit->itdenominacion = new inputField("(<#o#>) Descripción", "denominacion_<#i#>"); $edit->itdenominacion->db_name = 'pdenominacion'; $edit->itdenominacion->type = 'inputhidden'; $edit->itdenominacion->rel_id = 'itodirect'; $edit->itdenominacion->pointer = true; $edit->itdenominacion->readonly = true; $edit->itprecio = new inputField("(<#o#>) Precio", "precio_<#i#>"); $edit->itprecio->css_class = 'inputnum'; $edit->itprecio->db_name = 'precio'; $edit->itprecio->rel_id = 'itodirect'; $edit->itprecio->rule = 'callback_positivo'; $edit->itprecio->onchange = 'cal_importe(<#i#>);'; $edit->itprecio->size = 8; $edit->status = new dropdownField("Estado", "status"); $edit->status->option("C", "Por Elaborar"); $edit->status->option("C2", "Causado"); $edit->status->option("C1", "Por Causar"); $edit->status->option("C3", "Pagado"); $edit->status->option("CA", "Anulada"); $edit->status->style = "width:150px"; $edit->status->mode = 'autohide'; $status = $edit->get_from_dataobjetct('status'); if ($status == 'C1') { $action = "javascript:window.location='" . site_url($this->url . 'actualizar/' . $edit->rapyd->uri->get_edited_id()) . "'"; $edit->button_status("btn_status", 'Causar', $action, "TR", "show"); $action = "javascript:btn_anulaf('" . $edit->rapyd->uri->get_edited_id() . "')"; if ($this->datasis->puede(156)) { $edit->button_status("btn_anular", 'Anular', $action, "TR", "show"); } $edit->buttons("modify", "save", "delete"); } elseif ($status == 'C2') { $action = "javascript:window.location='" . site_url('presupuesto/opago/modconc/odirect/modify/' . $edit->rapyd->uri->get_edited_id()) . "'"; $edit->button_status("btn_moconc", 'Modificar Concepto', $action, "TR", "show"); //$action = "javascript:window.location='" .site_url($this->url.'reversar/'.$edit->rapyd->uri->get_edited_id()). "'"; //$edit->button_status("btn_rever",'Reversar',$action,"TR","show"); $action = "javascript:btn_anulaf('" . $edit->rapyd->uri->get_edited_id() . "')"; if ($this->datasis->puede(156)) { $edit->button_status("btn_anular", 'Anular', $action, "TR", "show"); } } elseif ($status == 'C3') { $multiple = $edit->get_from_dataobjetct('multiple'); if ($multiple == "N") { $action = "javascript:window.location='" . site_url($this->url . 'camfac/dataedit/modify/' . $edit->rapyd->uri->get_edited_id()) . "'"; $edit->button_status("btn_camfac", 'Modificar Factura', $action, "TR", "show"); } } elseif ($status == "C") { $edit->buttons("modify", "save", "delete"); } elseif ($status == "CA") { $edit->buttons("delete"); } else { $edit->buttons("save"); } $edit->buttons("undo", "back", "add_rel"); $edit->build(); //SELECT codigo,base1,tari1,pama1 FROM rete $query = $this->db->query('SELECT codigo,base1,tari1,pama1 FROM rete'); $rt = array(); foreach ($query->result_array() as $row) { $pivot = array('base1' => $row['base1'], 'tari1' => $row['tari1'], 'pama1' => $row['pama1']); $rt['_' . $row['codigo']] = $pivot; } $rete = json_encode($rt); $conten['rete'] = $rete; $ivaplica = $this->ivaplica2(); $conten['ivar'] = $ivaplica['redutasa']; $conten['ivag'] = $ivaplica['tasa']; $conten['ivaa'] = $ivaplica['sobretasa']; $conten['imptimbre'] = $this->datasis->traevalor('IMPTIMBRE'); $conten['impmunicipal'] = $this->datasis->traevalor('IMPMUNICIPAL'); $smenu['link'] = barra_menu('129'); $data['smenu'] = $this->load->view('view_sub_menu', $smenu, true); $conten["form"] =& $edit; $data['content'] = $this->load->view('view_opagoc', $conten, true); //$data['content'] = $edit->output; $data['title'] = "{$this->t**s}"; $data["head"] = script('jquery.js') . script('jquery-ui.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.floatnumber.js') . script('plugins/jquery.meiomask.js') . style('vino/jquery-ui.css') . $this->rapyd->get_head(); $this->load->view('view_ventanas', $data); }