本文整理汇总了PHP中DataEdit::build方法的典型用法代码示例。如果您正苦于以下问题:PHP DataEdit::build方法的具体用法?PHP DataEdit::build怎么用?PHP DataEdit::build使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataEdit
的用法示例。
在下文中一共展示了DataEdit::build方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dataedit
function dataedit()
{
$this->rapyd->load('dataedit');
$edit = new DataEdit($this->tits, 'local');
$edit->back_url = site_url($this->url . "filteredgrid");
$edit->post_process('insert', '_post_insert');
$edit->post_process('update', '_post_update');
$edit->post_process('delete', '_post_delete');
$edit->codigo = new inputField('Código', 'codigo');
$edit->codigo->rule = 'trim|max_length[2]|unique|required';
$edit->codigo->size = 4;
$edit->codigo->maxlength = 2;
$edit->codigo->mode = 'autohide';
$edit->codigo->when = array('create', 'show', 'modify');
$edit->nombre = new inputField('Nombre', 'nombre');
$edit->nombre->rule = 'max_length[20]';
$edit->nombre->size = 22;
$edit->nombre->maxlength = 20;
$edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
$edit->build();
$data['content'] = $edit->output;
$data['head'] = $this->rapyd->get_head();
$data['title'] = $this->tits;
$this->load->view('view_ventanas', $data);
}
示例2: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$edit = new DataEdit("Sucursal", "sucu");
$edit->back_url = site_url("supervisor/sucu/filteredgrid");
$edit->codigo = new inputField("Código", "codigo");
$edit->codigo->rule = "required";
$edit->codigo->mode = "autohide";
$edit->codigo->size = 4;
$edit->codigo->maxlength = 2;
$edit->sucursal = new inputField("Sucursal", "sucursal");
$edit->sucursal->rule = "strtoupper";
$edit->sucursal->size = 60;
$edit->sucursal->maxlength = 45;
$edit->url = new inputField("URL", "url");
$edit->url->size = 80;
$edit->url->maxlength = 200;
$edit->prefijo = new inputField("Prefijo", "prefijo");
$edit->prefijo->size = 5;
$edit->prefijo->maxlength = 3;
$edit->proteo = new inputField("Proteo", "proteo");
$edit->proteo->maxlength = 50;
$edit->proteo->size = 70;
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "<h1>Sucursal</h1>";
$data["head"] = script("jquery.pack.js") . script("plugins/jquery.numeric.pack.js") . script("plugins/jquery.floatnumber.js") . $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例3: dataedit
function dataedit()
{
$this->rapyd->load("dataobject", "dataedit");
// $link=site_url('finventario/bi_edificio/ultimo');
// $link2=site_url('finventario/bi_edificio/sugerir');
$edit = new DataEdit("Muebles", "bi_bienes");
$edit->back_url = site_url("bienes/bi_bienes/filteredgrid");
$edit->pre_process('insert', '_valida');
$edit->pre_process('update', '_valida');
$edit->id = new inputField("Id", "id");
$edit->id->mode = "autohide";
$edit->id->when = array('show');
$edit->nombre = new inputField("Nombre", "nombre");
$edit->nombre->size = 30;
$edit->nombre->maxlength = 30;
$edit->descrip = new textareaField("Descripción", "descrip");
$edit->descrip->rows = 4;
$edit->descrip->cols = 50;
$edit->modelo = new inputField("Modelo", "modelo");
$edit->modelo->size = 20;
$edit->modelo->maxlength = 30;
$edit->color = new inputField("Color", "color");
$edit->color->size = 20;
$edit->color->maxlength = 30;
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "Muebles";
$data["head"] = script("jquery.pack.js") . $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例4: dataedit
function dataedit()
{
$this->rapyd->load('dataedit');
$edit = new DataEdit($this->tits, 'tingresos');
$edit->back_url = site_url($this->url . "filteredgrid");
$edit->post_process('insert', '_post_insert');
$edit->post_process('update', '_post_update');
$edit->post_process('delete', '_post_delete');
$edit->codigo = new inputField('Código', 'codigo');
$edit->codigo->rule = 'trim|max_length[2]|required|unique';
$edit->codigo->size = 4;
$edit->codigo->maxlength = 2;
$edit->descrip = new inputField('Descripción', 'descrip');
$edit->descrip->rule = 'max_length[100]';
$edit->descrip->size = 102;
$edit->descrip->maxlength = 100;
$edit->grupo = new inputField('Grupo', 'grupo');
$edit->grupo->rule = 'max_length[1]';
$edit->grupo->size = 3;
$edit->grupo->maxlength = 1;
$edit->activo = new dropdownField('Activo', 'activo');
$edit->activo->option("S", "SI");
$edit->activo->option("N", "NO");
$edit->codigopres = new inputField('Codigo Presupuestario', 'codigopres');
$edit->codigopres->rule = 'max_length[100]';
$edit->codigopres->size = 40;
$edit->codigopres->maxlength = 100;
$edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
$edit->build();
$data['content'] = $edit->output;
$data['head'] = $this->rapyd->get_head();
$data['title'] = $this->tits;
$this->load->view('view_ventanas', $data);
}
示例5: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$edit = new DataEdit("Estructura Administrativa", "estruadm");
$edit->pre_process('delete', '_pre_delete');
$edit->back_url = "presupuesto/estruadm/index/filteredgrid";
$edit->codigo = new inputField("Código", "codigo");
$edit->codigo->rule = "trim|required|callback_chcodigo";
$edit->codigo->mode = "autohide";
$edit->codigo->size = 20;
$edit->codigo->maxlength = 15;
$edit->titulo = new inputField("Denominación", "denominacion");
$edit->titulo->rule = "required";
$edit->titulo->size = 50;
$edit->titulo->maxlength = 500;
//$edit->descrip = new inputField("Tipo", "tipo");
//$edit->descrip->size = 10;
//$edit->descrip->maxlength = 1;
$edit->uejecutora = new dropdownField("Unidad Ejecutora", "uejecutora");
$edit->uejecutora->option("", "");
$edit->uejecutora->size = 80;
$edit->uejecutora->options("SELECT codigo, CONCAT(codigo,' ', nombre) nombre FROM uejecutora ORDER BY nombre");
$edit->descripcion = new textAreaField("Descripcion", "descripcion");
$edit->descripcion->cols = 80;
$edit->descripcion->rows = 7;
$edit->buttons("add", "modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data["head"] = $this->rapyd->get_head();
$data['title'] = 'Estructura Administrativa';
$this->load->view('view_ventanas', $data);
}
示例6: dataedit
function dataedit()
{
$this->rapyd->load('dataedit', 'datagrid');
$script = '$(function() {$(".inputnum").numeric(".");});';
$edit = new DataEdit(" ", 'crm_tipos');
$edit->back_url = site_url('crm/tipos/index');
$edit->script($script, 'create');
$edit->script($script, 'modify');
$edit->post_process('insert', '_post_insert');
$edit->post_process('update', '_post_update');
$edit->post_process('delete', '_post_delete');
$edit->usuario = new autoUpdateField('usuario', $this->session->userdata('usuario'), $this->session->userdata('usuario'));
$edit->definicion = new dropdownField("Definición", "definicion");
$edit->definicion->option("", "Seleccione");
$edit->definicion->options("SELECT id,nombre FROM crm_definiciones ORDER BY nombre");
$edit->definicion->rule = 'required';
$edit->descrip = new inputField('Descripción', 'descrip');
$edit->descrip->size = 50;
$edit->descrip->maxlength = 200;
$edit->descrip->rule = 'trim|strtoupper|required';
$edit->buttons('modify', 'save', 'undo', 'delete', 'back');
$edit->build();
$data['content'] = $edit->output;
$data['title'] = '<h1>Tipos</h1>';
$data['head'] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例7: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$edit = new DataEdit("soporte", "soporte");
$edit->back_url = site_url("supervisor/sopor/filteredgrid");
//$edit->pre_process('delete','_pre_del');
$edit->usuario = new inputField("Usuario", "usuario");
$edit->usuario->mode = "autohide";
//$edit->rif->rule = "required";
//$edit->rif->maxlength=13;
$edit->usuario->size = 14;
$edit->estampa = new dateField("Estampa", "estampa", "d/m/Y");
$edit->estampa->size = 10;
$edit->estampa->mode = "autohide";
$edit->titulo = new inputField("Titulo", "titulo");
$edit->comentario = new textareaField("Comentario", "comentario");
$edit->comentario->cols = 70;
$edit->comentario->rows = 10;
if ($this->uri->segment(4) === "1") {
$edit->buttons("modify", "save", "undo", "back");
} else {
$edit->buttons("modify", "save", "undo", "delete", "back");
}
$edit->build();
//echo $edit->_dataobject->db->last_query();;
$data["edit"] = $edit->output;
$data["modulo"] = "";
$content["content"] = $this->load->view('rapyd/dataedit', $data, true);
$content["rapyd_head"] = $this->rapyd->get_head();
$content["code"] = "";
$content["lista"] = "\r\n\t\t\t<h3>Editar o Agregar</h3>\r\n\t\t\t<div>La identificacion del Grupo debe ser unica, la clase puede ser Cliente, Interna u Otros, en la Descripcion colocar que se quiere agrupar y la cuenta contable para el enlace contable</div>\r\n\t\t\t<div class='line'></div>\r\n\t\t\t<a href='#' onclick='window.close()'>Cerrar</a>\r\n\t\t\t<div class='line'></div>\n<br><br><br>\n";
$this->load->view('rapyd/tmpsolo', $content);
}
示例8: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$edit = new DataEdit("ARTICULO", "sinv");
$edit->back_url = site_url("inventario/cambiosinv/filteredgrid");
$edit->post_process('update', '_post_update');
$edit->codigo = new inputField("Codigo", "codigo");
$edit->codigo->size = 25;
$edit->codigo->mode = "autohide";
$edit->descrip = new inputField("Descripcion", "descrip");
$edit->descrip->size = 50;
$edit->descrip->mode = "autohide";
$edit->exmin = new inputField("Existencia Minima", "exmin");
$edit->exmin->size = 20;
$edit->exmax = new inputField("Existencia Maxima", "exmax");
$edit->exmax->size = 20;
$edit->existen = new inputField("Existencia", "existen");
$edit->existen->size = 20;
$edit->activo = new dropdownField("Activo", "activo");
$edit->activo->option("", "");
$edit->activo->option("S", "Si");
$edit->activo->option("N", "No");
$edit->activo->style = "width:50px";
$edit->buttons("modify", "save", "undo", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = " Almacenes ";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例9: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$edit = new DataEdit("", "prueba");
$edit->id = new inputField("Código", "id");
$edit->id->rule = "trim|required";
$edit->id->size = 16;
$edit->id->maxlength = 15;
$edit->html = new editorField("Contenido", "html");
$edit->html->rule = "required";
$edit->html->rows = 20;
//$edit->contenido->upload_path = $this->upload_path;
$edit->html->cols = 90;
$edit->html->when = array("modify");
//
//$edit->html2 = new htmlField("Codice HTML", "html");
//$edit->html2->cols = 70;
//$edit->html2->rows = 10;
$edit->iframe = new iframeField("related", "mpru/a", "500");
$edit->iframe->when = array("show");
//$edit->iframe->group = "Related Records";
//$edit->container = new containerField("alert","html");
//$edit->container->when = array("show");
//
//$edit->free = new freeField("Free Field","html","html");
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data["head"] = script("tabber.js") . script("prototype.js") . $this->rapyd->get_head() . script("scriptaculous.js") . script("effects.js");
$data['title'] = '<h1>Catalogos de Inventarios</h1>';
$this->load->view('view_ventanas', $data);
}
示例10: dataedit
function dataedit()
{
//$this->load->database('construc',TRUE);
$this->rapyd->load("dataedit");
$edit = new DataEdit("Partida", "obpa");
$edit->back_url = site_url("construccion/partida/filteredgrid");
$edit->post_process('insert', '_post_insert');
$edit->post_process('update', '_post_update');
$edit->post_process('delete', '_post_delete');
$edit->codigo = new inputField("Código", "codigo");
$edit->codigo->mode = "autohide";
$edit->codigo->rule = "required|callback_chexiste";
$edit->codigo->size = 7;
$edit->codigo->maxlength = 4;
$edit->descrip = new inputField("Descripción", "descrip");
$edit->descrip->rule = "strtoupper|required";
$edit->descrip->size = 50;
$edit->descrip->maxlength = 40;
$edit->grupo = new dropdownField("Grupo", "grupo");
$edit->grupo->option("", "");
$edit->grupo->options('SELECT grupo, nombre FROM obgp order by nombre');
$edit->comi = new inputField("Comisión", "comision");
$edit->comi->size = 8;
$edit->comi->maxlength = 5;
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "<h1>Partidas</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例11: dataedit
function dataedit()
{
$this->rapyd->load("dataobject", "dataedit");
$edit = new DataEdit($this->tits, $this->tabla);
$edit->back_url = site_url($this->url . "/filteredgrid");
//$edit->pre_process('insert' ,'_valida');
//$edit->pre_process('update' ,'_valida');
$edit->post_process('insert', '_post_insert');
$edit->post_process('update', '_post_update');
$edit->post_process('delete', '_post_delete');
$edit->grupo = new dropdownField("Grupo", "grupo");
$edit->grupo->option(2, "2 Muebles");
$edit->grupo->option(1, "1 Inmuebles");
$edit->codigo = new inputField("Código", "codigo");
$edit->codigo->mode = "autohide";
$edit->codigo->rule = 'required';
$edit->codigo->maxlength = 4;
$edit->codigo->size = 4;
$edit->descrip = new textareaField("Descripción", "descrip");
$edit->descrip->rows = 4;
$edit->descrip->cols = 50;
$edit->descrip->rule = "required";
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = $this->tits;
$data["head"] = script("jquery.js") . $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例12: dataedit
function dataedit()
{
$this->rapyd->load('dataedit');
$edit = new DataEdit($this->tits, 'usuario');
$edit->back_url = site_url($this->url . "filteredgrid");
$edit->post_process('insert', '_post_insert');
$edit->post_process('update', '_post_update');
$edit->post_process('delete', '_post_delete');
$edit->us_codigo = new inputField('Codigo', 'us_codigo');
$edit->us_codigo->rule = 'trim';
$edit->us_codigo->size = 14;
$edit->us_codigo->maxlength = 12;
$edit->us_codigo->mode = 'autohide';
$edit->us_nombre = new inputField('Nombre', 'us_nombre');
$edit->us_nombre->rule = 'trim';
$edit->us_nombre->size = 32;
$edit->us_nombre->maxlength = 30;
$edit->us_nombre->mode = 'autohide';
$edit->caja = new dropdownField("Caja", "cajas");
$edit->caja->option("", "");
$edit->caja->options("SELECT id,nombre FROM r_caja ");
$edit->caja->rule = 'trim';
$edit->caja->size = 13;
$edit->caja->maxlength = 11;
$edit->caja->db_name = 'caja';
$edit->buttons('modify', 'save', 'undo', 'back');
$edit->build();
$data['content'] = $edit->output;
$data['head'] = $this->rapyd->get_head() . script('jquery.js');
$data['title'] = $this->tits;
$this->load->view('view_ventanas', $data);
}
示例13: dataedit
function dataedit()
{
$this->rapyd->load('dataedit');
$edit = new DataEdit($this->tits, 'r_contador');
$edit->back_url = site_url($this->url . "filteredgrid");
$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->nombre = new inputField('Nombre', 'nombre');
$edit->nombre->rule = 'trim';
$edit->nombre->size = 13;
$edit->nombre->maxlength = 11;
$edit->proxnumero = new inputField('Proxnumero', 'proxnumero');
$edit->proxnumero->rule = 'trim';
$edit->proxnumero->size = 13;
$edit->proxnumero->maxlength = 11;
$edit->serie = new inputField('Serie', 'serie');
$edit->serie->rule = 'trim';
$edit->serie->size = 13;
$edit->serie->maxlength = 11;
$edit->buttons('add', 'modify', 'save', 'undo', 'delete', 'back');
$edit->build();
$data['content'] = $edit->output;
$data['head'] = $this->rapyd->get_head();
$data['title'] = $this->tits;
$this->load->view('view_ventanas', $data);
}
示例14: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$edit = new DataEdit("Zona", "zona");
$edit->back_url = site_url("ventas/zonaf/filteredgrid");
$edit->codigo = new inputField("codigo", "codigo");
$edit->codigo->size = 5;
$edit->codigo->rule = "required";
$edit->codigo->maxlength = 5;
$edit->pais = new dropdownField("País", "pais");
$edit->pais->style = "width:150px";
$edit->pais->option("", "Seleccionar");
$edit->pais->options("SELECT codigo, nombre FROM pais ORDER BY codigo");
$edit->pais->group = "Ubicación";
$edit->nombre = new inputField("Nombre", "nombre");
$edit->nombre->size = 38;
$edit->nombre->rule = "trim|required|strtoupper";
$edit->nombre->maxlength = 30;
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "<h1>Zona</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例15: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$qformato = $this->qformato = $this->datasis->formato_cpla();
$mCPLA = array('tabla' => 'cpla', 'columnas' => array('codigo' => 'Código', 'descrip' => 'Descripción'), 'filtro' => array('codigo' => 'Código', 'descrip' => 'Descripción'), 'retornar' => array('codigo' => 'cuenta'), 'titulo' => 'Buscar Cuenta', 'where' => "codigo LIKE \"{$qformato}\"");
$bcpla = $this->datasis->modbus($mCPLA);
$edit = new DataEdit("Grupo Menu", "grme");
$edit->back_url = site_url("hospitalidad/grupomenu/filteredgrid");
$edit->post_process('insert', '_post_insert');
$edit->post_process('update', '_post_update');
$edit->post_process('delete', '_post_delete');
$edit->grupo = new inputField("Grupo", "grupo");
$edit->grupo->rule = "trim|required|callback_chexiste";
$edit->grupo->size = 8;
$edit->grupo->maxlength = 5;
$edit->descri1 = new dropdownField("Descripción", "descri1");
$edit->descri1->option("", "");
$edit->descri1->options("SELECT grupo,descri1 FROM grme ORDER BY grupo ");
$edit->descri1->style = "width:180px";
$edit->cuenta = new inputField("Cuenta contable", "cuenta");
$edit->cuenta->rule = 'trim|existecpla';
$edit->cuenta->append($bcpla);
$edit->cuenta->size = 20;
$edit->cuenta->maxlength = 15;
$edit->observ = new inputField("Observación", "observ1");
$edit->observ->rule = 'trim';
$edit->observ->size = 45;
$edit->buttons("modify", "save", "undo", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "<h1>Grupo Menu</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}