本文整理汇总了PHP中DataGrid::column方法的典型用法代码示例。如果您正苦于以下问题:PHP DataGrid::column方法的具体用法?PHP DataGrid::column怎么用?PHP DataGrid::column使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataGrid
的用法示例。
在下文中一共展示了DataGrid::column方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter", "datagrid");
$this->rapyd->uri->keep_persistence();
$filter = new DataFilter("Filtro de Tablas");
$filter->db->from('doc_tablas');
$filter->db->join('doc_campos', 'doc_tablas.nombre=doc_campos.tabla');
$filter->db->groupby('doc_tablas.nombre');
$filter->nombre = new inputField("Nombre", "nombre");
$filter->nombre->size = 20;
$filter->campo = new inputField("Campo", "campo");
$filter->campo->size = 20;
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('doc/tablas/dataedit/show/<#nombre#>', '<#nombre#>');
$grid = new DataGrid("Lista de Tablas");
$grid->order_by("nombre", "asc");
$grid->per_page = 15;
$grid->column("Nombre", $uri);
$grid->column("Campo", "campo");
$grid->column("Descripción", "referen");
$grid->column("Comentario campo", "dcomment");
$grid->add($this->url . "dataedit/create");
$grid->build();
//echo $grid->db->last_query();
$data['content'] = $filter->output . $grid->output;
$data['title'] = "Documentación de Tablas";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例2: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter", "datagrid");
$filter = new DataFilter("Filtro de Sucursales", 'sucu');
$filter->codigo = new inputField("Código", "codigo");
$filter->codigo->size = 10;
$filter->sucursal = new inputField("Sucursal", "sucursal");
$filter->sucursal->size = 20;
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('supervisor/sucu/dataedit/show/<#codigo#>', '<#codigo#>');
$grid = new DataGrid("Lista de Sucursales");
$grid->order_by("codigo", "asc");
$grid->per_page = 15;
$grid->column("Sucursal", $uri);
$grid->column("Nombre", "sucursal");
$grid->column("URL", "url");
$grid->column("Prefijo", "prefijo");
$grid->column("Proteo", "proteo");
$grid->add("supervisor/sucu/dataedit/create");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data['title'] = "<h1>Sucursal</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例3: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter2", "datagrid");
$mSPRV = array('tabla' => 'sprv', 'columnas' => array('proveed' => 'Cóodigo', 'nombre' => 'Nombre', 'contacto' => 'Contacto'), 'filtro' => array('proveed' => 'Código', 'nombre' => 'Nombre'), 'retornar' => array('proveed' => 'proveed'), 'titulo' => 'Buscar Beneficiario');
$bSPRV = $this->datasis->modbus($mSPRV);
$filter = new DataFilter2("Filtro por Producto", 'sinv');
$filter->codigo = new inputField("Código", "codigo");
$filter->descrip = new inputField("Descripción", "descrip");
$filter->descrip->db_name = 'CONCAT_WS(" ",descrip,descrip2)';
$filter->clave = new inputField("Clave", "clave");
$filter->proveed = new inputField("Beneficiario", "proveed");
$filter->proveed->append($bSPRV);
$filter->proveed->clause = "in";
$filter->proveed->db_name = '( prov1, prov2, prov3 )';
$filter->marca = new dropdownField("Marca", "marca");
$filter->marca->option("", "Todas");
$filter->marca->options("SELECT TRIM(marca) AS clave, TRIM(marca) AS valor FROM marc ORDER BY marca");
$filter->buttons("reset", "search");
$filter->build();
$link = anchor('/inventario/barras/dataedit/modify/<#id#>', '<#codigo#>');
$grid = new DataGrid("Lista de Artículos");
$grid->order_by("codigo", "asc");
$grid->per_page = 20;
$grid->use_function('str_replace');
$grid->column("Código", $link);
$grid->column("Descripción", "descrip");
$grid->column("Precio 1", "precio1");
$grid->column("Barras", "barras");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data['title'] = " Lista de Artículos ";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例4: filteredgrid
function filteredgrid()
{
$this->datasis->modulo_id(102, 1);
$this->rapyd->load("datafilter", "datagrid");
$filter = new DataFilter("Filtro por Programas", "programas");
$filter->sect_pres = new dropdownField("Sector", "sect_pres");
$filter->sect_pres->option("", "");
$filter->sect_pres->options("SELECT sect_pres, CONCAT_WS(' ',sect_pres,nomb_sect) AS nomb_sect FROM sectores ORDER BY sect_pres");
$filter->sect_pres->style = 'width:300px;';
$filter->id_prog = new inputField("Identificador", "id_prog");
$filter->id_prog->size = 5;
$filter->prog_pres = new inputField("Código Programa", "prog_pres");
$filter->prog_pres->size = 5;
$filter->prog_pres->maxlength = 2;
$filter->nomb_prog = new inputField("Nombre Programa", "nomb_prog");
$filter->nomb_prog->size = 40;
$filter->nomb_prog->maxlength = 80;
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('presupuesto/programas/dataedit/show/<#id_prog#>', '<#id_prog#>');
$grid = new DataGrid("Lista de Programas");
$grid->order_by("prog_pres", "asc");
$grid->column("Identificador", $uri, "align='left'");
$grid->column("Sector", "sect_pres", "align='left'");
$grid->column("Programa ", "prog_pres", "align='left'");
$grid->column("Nombre", "nomb_prog", "align='left'");
$grid->add("presupuesto/programas/dataedit/create");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data['title'] = " Programas ";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例5: detalles
function detalles($numero = NULL)
{
$this->rapyd->load("datagrid");
$mSQL = "SELECT numero,DATE_FORMAT(fecha, '%d/%m/%Y')as fecha,vd,cod_cli,rifci,nombre,direc,dire1,presup, anticipo,iva,totals,referen,totalg,DATE_FORMAT(vence, '%d/%m/%Y')as vence FROM pfac WHERE numero='{$numero}'";
$query = $this->db->query($mSQL);
if ($query->num_rows() > 0) {
$pdata = $query->row_array();
}
$grid = new DataGrid();
$grid->db->select = array('codigoa', 'desca', 'cana', 'preca', 'tota');
$grid->db->from('itpfac');
$grid->db->where('numa', $numero);
$grid->order_by("codigoa", "desc");
//$grid->per_page = 15;
$uri = anchor("/ventas/agregarnd/mdetalle/<#id#>/modify/", '<#codigoa#>');
$grid->column("Código", $uri);
$grid->column("Descripción", "desca");
$grid->column("Cantidad", "cana", "align='right'");
$grid->column("Precio", "preca", "align='right'");
$grid->column("Importe", "tota", "align='right'");
$grid->add("ventas/agregarped/mdetalle/{$numero}/create");
$grid->build();
$pdata['items'] = $grid->output;
$data['content'] = $this->load->view('view_agpedidos', $pdata, true);
$data["head"] = $this->rapyd->get_head();
$data['title'] = '<h1>Agregar Artículos</h1>';
$this->load->view('view_ventanas', $data);
}
示例6: index
function index()
{
$this->rapyd->load("datagrid", "datafilter");
$filter = new DataFilter("Filtro de Plan de cuentas", 'cpla');
$filter->codigo = new inputField("Código", "codigo");
$filter->codigo->like_side = 'after';
$filter->codigo->size = 15;
$filter->descrip = new inputField("Descripción", "descrip");
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('contabilidad/cpla/dataedit/show/<#codigo#>', '<#codigo#>');
$grid = new DataGrid();
$grid->order_by("codigo", "asc");
$grid->per_page = 15;
$grid->column("Código", $uri);
$grid->column("Descripción", "descrip");
$grid->column("Usa Departamento", "departa", "align='center'");
$grid->column("Cuenta Monetaria", "moneta", "align='center'");
$grid->add("contabilidad/cpla/dataedit/create");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data["head"] = $this->rapyd->get_head();
$data['title'] = '<h1>Plan de Cuentas</h1>';
$this->load->view('view_ventanas', $data);
}
示例7: index
function index()
{
$this->rapyd->load("datafilter", "datagrid");
$this->rapyd->uri->keep_persistence();
$filter = new DataFilter('Filtro');
$select = array("a.definicion", "b.nombre", "a.descrip", "a.id");
$filter->db->select($select);
$filter->db->from('crm_tipos AS a');
$filter->db->join('crm_definiciones AS b', 'a.definicion=b.id');
$filter->definicion = new dropdownField("DefiniciÓn", "definicion");
$filter->definicion->option("", "Seleccione");
$filter->definicion->options("SELECT id,nombre FROM crm_definiciones ORDER BY nombre");
$filter->definicion->rule = 'required';
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('crm/tipos/dataedit/show/<#id#>', '<#id#>');
$grid = new DataGrid('Lista');
$grid->order_by('a.id', 'asc');
$grid->per_page = 7;
$grid->column('id', $uri);
$grid->column_orderby('Definición', 'nombre', 'nombre');
$grid->column('Descripción', 'descrip');
$grid->add('crm/tipos/dataedit/create');
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data['title'] = '<h1>Tipos</h1>';
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例8: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter", "datagrid");
$this->rapyd->uri->keep_persistence();
$filter = new DataFilter("Filtro de Cambio de IVA", 'civa');
$filter->fecha = new dateonlyField("Fecha", "fecha", 'd/m/Y');
$filter->fecha->clause = $filter->fecha->clause = "where";
$filter->fecha->size = 12;
$filter->tasa = new inputField("Tasa", "Tasa");
$filter->tasa->size = 12;
$filter->tasa->maxlength = 6;
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('finanzas/civa/dataedit/show/<#fecha#>', '<dbdate_to_human><#fecha#></dbdate_to_human>');
$grid = new DataGrid("Lista de Cambio de IVA");
$grid->order_by("fecha", "asc");
$grid->per_page = 20;
$grid->column("Fecha", $uri);
$grid->column("Tasa", "tasa");
$grid->column("Tasa Reducida", "redutasa");
$grid->column("Tasa Adicional", "sobretasa");
$grid->add("finanzas/civa/dataedit/create");
$grid->build();
//echo $grid->db->last_query();
$data['content'] = $filter->output . $grid->output;
$data['title'] = "<h1>Cambio de Iva</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例9: filteredgrid
function filteredgrid()
{
$this->rapyd->load("dataform", "datagrid");
$modbus = array('tabla' => 'usuario', 'columnas' => array('us_codigo' => 'Código', 'us_nombre' => 'Nombre'), 'filtro' => array('us_nombre' => 'nombre'), 'retornar' => array('us_codigo' => 'usuario'), 'titulo' => 'Buscar Usuario');
$filter = new DataForm('/supervisor/trabajo/filteredgrid/search/osp');
$filter->mes = new dateonlyField("Mes", "mes", 'm/Y');
$filter->mes->clause = "where";
$filter->mes->operator = "=";
$filter->mes->size = 8;
$filter->mes->dbformat = 'Ym';
$filter->mes->insertValue = date("Y-m-d");
$filter->usuario = new inputField("Código de usuario", "usuario");
$filter->usuario->size = 11;
$filter->usuario->append($this->datasis->modbus($modbus));
$filter->submit('manda', 'Buscar');
$filter->build_form();
/*
$mSQL="(SELECT fecha, count(*) AS cant FROM bitacora WHERE usuario='DAVID' GROUP BY fecha ) UNION
(SELECT a.fecha, 0 AS cant FROM dim_tiempo AS a LEFT JOIN bitacora as b ON a.fecha=b.fecha AND b.usuario='DAVID'
WHERE a.fecha BETWEEN (SELECT MIN(fecha) FROM bitacora) AND (SELECT MAX(fecha) FROM bitacora) AND b.fecha IS NULL) ORDER BY fecha";
*/
$content = '';
if ($this->input->post('manda')) {
$usr = $this->input->post('usuario') ? ' AND b.usuario="' . $this->input->post('usuario') . '"' : '';
$fechad = '(SELECT MIN(fecha) FROM bitacora)';
$fechah = '(SELECT MAX(fecha) FROM bitacora)';
if ($this->input->post('mes')) {
$acum = explode('/', $filter->mes->value);
$fechad = $acum[1] . $acum[0] . '01';
$fechah = $acum[1] . $acum[0] . '31';
}
$mSQL = "SELECT a.fecha, semana FROM dim_tiempo AS a LEFT JOIN bitacora as b ON a.fecha=b.fecha {$usr} WHERE a.fecha BETWEEN {$fechad} AND {$fechah} AND b.fecha IS NULL";
//echo $mSQL;
$sema = array('Lunes', 'Martes', 'Miercoles', 'Jueves', 'Viernes', 'Sabado', 'Domingo');
$query = $this->db->query($mSQL);
$data = array();
foreach ($query->result() as $row) {
$pasa = array();
$pasa['fecha'] = $row->fecha;
if ($row->semana > 5) {
$pasa['cant'] = $sema[$row->semana - 1];
} else {
$pasa['cant'] = '<b>' . $sema[$row->semana - 1] . '</b>';
}
$data[] = $pasa;
}
$query->free_result();
//grid
$grid = new DataGrid("Lista de Bitacora", $data);
$grid->per_page = 31;
$grid->column("Fecha", "<dbdate_to_human><#fecha#></dbdate_to_human>");
$grid->column("Semana", "<#cant#>");
$grid->build();
$content = $grid->output;
}
$data['content'] = $filter->output . $content;
$data["head"] = $this->rapyd->get_head();
$data['title'] = ' Dias NO trabajados ';
$this->load->view('view_ventanas', $data);
}
示例10: filteredgrid
function filteredgrid()
{
$this->datasis->modulo_id(101, 1);
$this->rapyd->load("datafilter", "datagrid");
//
$filter = new DataFilter("Filtro por Sectores", "sectores");
$filter->id_sect = new inputField("Identificador", "id_sect");
$filter->id_sect->size = 5;
$filter->sect_pres = new inputField("Código Sector", "sect_pres");
$filter->sect_pres->size = 5;
$filter->nomb_sect = new inputField("Nombre", "nomb_sect");
$filter->nomb_sect->size = 40;
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('presupuesto/sectores/dataedit/show/<#id_sect#>', '<#id_sect#>');
$grid = new DataGrid("Lista de Sectores");
$grid->order_by("sect_pres", "asc");
$grid->column("Identificador", $uri, "align='left'");
$grid->column("Sector", "sect_pres", "align='left'");
$grid->column("Nombre", "nomb_sect", "align='left'");
$grid->add("presupuesto/sectores/dataedit/create");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data['title'] = " Sectores ";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例11: filteredgrid
function filteredgrid()
{
$this->bSINV = $this->datasis->modbus($this->sinv);
$this->rapyd->load("datafilter2", "datagrid");
//$this->rapyd->uri->keep_persistence();
rapydlib("prototype");
$filter = new DataFilter2("Filtro por Producto", 'catalogo');
$filter->codigo = new inputField("Código", "codigo");
$filter->codigo->size = 15;
$filter->codigo->append($this->bSINV);
$filter->buttons("reset", "search");
$filter->build();
$grid = new DataGrid("Lista de Artículos");
$grid->add("inventario/catalogo/dataedit/create");
$grid->order_by("codigo", "asc");
$grid->per_page = 20;
$link = anchor('/inventario/catalogo/dataedit/show/<#id#>', '<#codigo#>');
$grid->use_function('str_replace');
$grid->column("Código", $link);
$grid->column("Fecha", "<dbdate_to_human><#estampa#></dbdate_to_human>");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data["head"] = script("tabber.js") . script("prototype.js") . $this->rapyd->get_head() . script("scriptaculous.js") . script("effects.js");
$data['title'] = ' Lista de Artículos ';
$this->load->view('view_ventanas', $data);
}
示例12: index
function index()
{
$this->datasis->modulo_id($this->modulo, 1);
$this->rapyd->load("datagrid", "dataform", "fields");
$control = $this->uri->segment(4);
$checkbox = '<input type="checkbox" name="genera[]" value="<#modulo#>" CHECKED>';
$grid = new DataGrid('Seleccione los módulos que desea generar');
$grid->db->select('modulo, descripcion');
$grid->db->from('`reglascont`');
$grid->db->groupby('modulo');
$grid->db->orderby('modulo,regla');
$grid->column("Módulo", "modulo");
$grid->column("Descripción", "descripcion");
$grid->column('Generar', $checkbox, 'align="center"');
$grid->build();
$form = new DataForm('contabilidad/generar/procesar');
$form->title('Rango de fecha para la Generación');
$form->fechai = new dateonlyField("Fecha Desde", "fechai", "d/m/Y");
$form->fechaf = new dateonlyField("Fecha Hasta", "fechaf", "d/m/Y");
$form->fechaf->size = $form->fechai->size = 10;
$form->fechai->insertValue = $this->input->post('fechai') ? $this->input->post('fechai') : date("Ymd");
$form->fechaf->insertValue = $this->input->post('fechaf') ? $this->input->post('fechaf') : date("Ymd");
$form->tabla = new containerField('tabla', $grid->output);
if ($control) {
$form->control = new containerField('control', 'Contabilidad Generada');
}
//$form->submit("btn_submit","Generar Depurado");
$form->build_form();
$data['script'] = "<script type='text/javascript'>\n\t\tvar handlerFunc = function(t) {\n\t\t\tdocument.getElementById('preloader').style.display='none';\n\t\t\tnew Effect.Opacity('contenido', {duration:0.5, from:0.3, to:1.0});\n\t\t\talert(t.responseText);\n\t\t}\n\n\t\tvar errFunc = function(t) {\n\t\t\tdocument.getElementById('preloader').style.display='none';\n\t\t\tnew Effect.Opacity('contenido', {duration:0.5, from:0.3, to:1.0});\n\t\t\talert('Error ' + t.status + ' -- ' + t.statusText);\n\t\t}\n\n\t\tfunction generar() {\n\t\t\tnew Effect.toggle('preloader', 'appear');\n\t\t\tnew Effect.Opacity('contenido', {duration:0.5, from:1.0, to:0.3});\n\t\t\tnew Ajax.Request('" . site_url('contabilidad/generar/procesar') . "',{\n\t\t\t method: 'post',\n\t\t\t parameters : Form.serialize('df1'),\n\t\t\t onSuccess:handlerFunc,\n\t\t\t onFailure:errFunc});\n\t\t}\n\t\t</script>";
$data['extras'] = "<div id='preloader' style='display: none;\tposition:absolute; left:40%; top:40%; font-family:Verdana, Arial, Helvetica, sans-serif;'>\n\t\t\t<center>" . image("loading4.gif") . "<br>" . image("loadingBarra.gif") . "<br>\n\t\t\t<b>Generando . . . </b>\n\t\t\t</center>\n\t\t</div>";
$data['content'] = $form->output . "<input type=button value='Generar' onclick='generar()'>";
$data["head"] = $this->rapyd->get_head() . script("prototype.js") . script("scriptaculous.js") . script("effects.js");
$data['title'] = "<h1>Generar Contabilidad</h1>";
$this->load->view('view_ventanas', $data);
}
示例13: datafilter
function datafilter()
{
$this->rapyd->load("datafilter", "datagrid");
$this->rapyd->uri->keep_persistence();
$filter = new DataFilter("Filtro de Conversiones", 'conv');
$filter->fecha = new dateonlyField("Fecha", "fecha");
$filter->fecha->size = 15;
$filter->fecha->maxlength = 15;
$filter->fecha->rule = "trim";
$filter->numero = new inputField("Número", "numero");
$filter->numero->size = 15;
$filter->almacen = new inputField("Almacen", "almacen");
$filter->almacen->size = 15;
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('inventario/conversiones/dataedit/show/<#numero#>', '<#numero#>');
$grid = new DataGrid("Lista de Conversiones");
$grid->use_function('dbdate_to_human');
$grid->order_by("numero", "asc");
$grid->per_page = 10;
$grid->column("Número", $uri);
$grid->column("Fecha", "<dbdate_to_human><#fecha#></dbdate_to_human>");
$grid->column("Almacen", "almacen");
$grid->column("Usuario", "usuario");
$grid->add("inventario/conversiones/dataedit/create");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data['title'] = "<h1>Conversiones</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例14: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter2", "datagrid");
$this->rapyd->uri->keep_persistence();
$filter = new DataFilter2("Filtro por Cargo", 'carg');
$filter->cargo = new inputField("Código", "cargo");
$filter->cargo->size = 3;
$filter->cargo->clause = "likerigth";
$filter->descrip = new inputField("Descripción", "descrip");
$filter->cargo->clause = "likerigth";
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('nomina/carg/dataedit/show/<#cargo#>', '<#cargo#>');
$grid = new DataGrid("Lista de Cargos");
$grid->order_by("cargo", "asc");
$grid->per_page = 10;
$grid->column("Cargo", $uri);
$grid->column("Descripción", "descrip");
$grid->column("Sueldo", "<number_format><#sueldo#>|2|,|.</number_format>", "align='right'");
$grid->add("nomina/carg/dataedit/create");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data['title'] = "<h1>Cargos</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例15: detalles
function detalles($control = NULL)
{
$this->rapyd->load("datagrid");
$mSQL = "SELECT * FROM scst WHERE control='{$control}'";
$query = $this->db->query($mSQL);
if ($query->num_rows() > 0) {
$pdata = $query->row_array();
}
$grid = new DataGrid();
$grid->db->select = array('codigo', 'descrip', 'cantidad', 'costo', 'importe');
$grid->db->from('itscst');
$grid->db->where('control', $control);
$grid->order_by("codigo", "desc");
//$grid->per_page = 15;
$uri = anchor("/compras/agregar/mdetalle/{$control}/modify/<#id#>", '<#codigo#>');
$grid->column("Código", $uri);
$grid->column("Descripción", "descrip");
$grid->column("Cantidad", "cantidad", "align='right'");
$grid->column("Precio", "costo", "align='right'");
$grid->column("Importe", "importe", "align='right'");
$grid->add("compras/agregar/mdetalle/{$control}/create");
$grid->add("compras/agregar/encab/modify/{$control}/", 'Modificar encabezado');
$grid->build();
$pdata['items'] = $grid->output;
$data['content'] = $this->load->view('view_agcompras', $pdata, true);
$data["head"] = $this->rapyd->get_head();
$data['title'] = '<h1>Agregar Artículos</h1>';
$this->load->view('view_ventanas', $data);
}