本文整理汇总了PHP中DataEdit类的典型用法代码示例。如果您正苦于以下问题:PHP DataEdit类的具体用法?PHP DataEdit怎么用?PHP DataEdit使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DataEdit类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dataedit
function dataedit()
{
$this->datasis->modulo_id($this->id_modulo, 1);
$this->rapyd->load('dataedit');
$edit = new DataEdit('Carga de Publicidad', 'publicidad');
$edit->back_url = site_url('supervisor/publicidad/filteredgrid');
$edit->archivo = new uploadField('Adjunto', 'archivo');
$edit->archivo->upload_path = $this->upload_path;
$edit->archivo->allowed_types = 'jpg|gif|swf|png';
$edit->archivo->append('Puede adjuntar jpg,gif,png y swf');
$edit->bgcolor = new colorpickerField('Color de Fondo', 'bgcolor');
//$edit->bgcolor = new inputField("Color de Fondo", "bgcolor");
$edit->bgcolor->maxlength = 7;
$edit->bgcolor->size = 9;
$edit->prob = new inputField('Probabilidad de aparicion', 'prob');
$edit->prob->css_class = 'inputnum';
$edit->prob->maxlength = 8;
$edit->prob->size = 6;
//$edit->prob->rule="";
$edit->descrip = new textareaField('Descripción', 'descrip');
$edit->descrip->rows = 5;
$edit->buttons('modify', 'save', 'undo', 'back', 'delete');
$edit->build();
$data['content'] = $edit->output;
$data['title'] = '<h1>Registro de publicidad</h1>';
$data['head'] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例2: DataEdit
function DataEdit()
{
$this->rapyd->load("dataedit");
$edit = new DataEdit("Agregar Menu", "tmenus");
$edit->back_url = site_url("supervisor/tmenus/filteredgrid");
$edit->modulo = new inputField("Modulo", "modulo");
$edit->modulo->size = 12;
$edit->modulo->maxlength = 10;
$edit->secu = new inputField("Secuencia", "secu");
$edit->secu->size = 6;
$edit->secu->maxlength = 5;
$edit->titulo = new inputField("Titulo", "titulo");
$edit->titulo->size = 25;
$edit->titulo->maxlength = 20;
$edit->mensaje = new textareaField("Mensaje", "mensaje");
$edit->mensaje->rows = 4;
$edit->mensaje->cols = 90;
$edit->ejecutar = new inputField("Ejecutar", "ejecutar");
$edit->ejecutar->size = 80;
$edit->ejecutar->maxlength = 80;
$edit->buttons("modify", "save", "undo", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "<h1>Menu de Datasis</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例3: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$edit = new DataEdit("Inventario", "sinv");
$edit->back_url = site_url("nomina/pers/filteredgrid");
$edit->codigo = new inputField("Codigo", "codigo");
$edit->grupo = new inputField("Grupo", "grupo");
$edit->descrip = new inputField("Descripcion", "descrip");
$edit->descrip2 = new inputField("Descripcion2", "descrip2");
$edit->unidad = new inputField("Unidad", "unidad");
$edit->ubica = new inputField("Ubicación", "ubica");
$edit->tipo = new inputField(".", "tipo");
$edit->pvp_bs = new inputField("Pvp_bs", "pvp_bs");
$edit->pvpprc = new inputField("Pvpprc", "pvpprc");
$edit->contbs = new DateField("Contbs", "contbs");
$edit->contprc = new inputField("Contprc", "contprc");
$edit->mayobs = new DateField("Mayoobs", "mayobs");
$edit->mayoprc = new inputField("Mayoprc", "mayoprc");
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = " Inventario ";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例4: dataedit
function dataedit($sta, $id)
{
$this->rapyd->load('dataedit', 'datagrid');
$edit = new DataEdit('Ficha del cliente', 'scli');
$edit->back_url = site_url($this->url . 'filteredgrid');
$edit->cliente = new inputField('Cliente', 'cliente');
$edit->cliente->rule = 'trim|required|existesprv';
$edit->cliente->maxlength = 5;
$edit->cliente->size = 7;
$edit->cliente->mode = 'autohide';
$edit->nombre = new inputField('Nombre', 'nombre');
$edit->nombre->rule = 'trim';
$edit->nombre->maxlength = 40;
$edit->nombre->size = 40;
$edit->nombre->mode = 'autohide';
$edit->nombre->in = 'cliente';
$edit->rifci = new inputField('RIF/CI', 'rifci');
$edit->rifci->rule = 'trim';
$edit->rifci->maxlength = 40;
$edit->rifci->size = 40;
$edit->rifci->mode = 'autohide';
$edit->telefono = new inputField('Teléfono', 'telefono');
$edit->telefono->rule = 'trim';
$edit->telefono->maxlength = 40;
$edit->telefono->size = 40;
$edit->telefono->mode = 'autohide';
$edit->buttons('undo', 'back');
$edit->build();
$data['content'] = $edit->output;
$crm = $edit->_dataobject->get('crm');
if (empty($crm)) {
$dbdata['usuario'] = $this->secu->usuario();
$dbdata['status'] = 'A';
$dbdata['fecha'] = date('Ymd');
$dbdata['titulo'] = 'Callcenter';
$dbdata['cliente'] = $edit->_dataobject->get('cliente');
$dbdata['descripcion'] = '';
$mSQL = $this->db->insert_string('crm_contenedor', $dbdata);
$this->db->simple_query($mSQL);
$crm = $this->db->insert_id();
$mSQL = "UPDATE scli SET crm = {$crm} WHERE id={$id}";
$this->db->simple_query($mSQL);
}
$this->crm_back = site_url("crm/callcenter/dataedit/{$sta}/{$id}");
$adici = array($edit->_dataobject->pk['id']);
$this->prefijo = 'crm_';
$data['content'] .= Contenedor::_showAdjuntos($crm, 'crm/callcenter/adjuntos', $adici);
$data['content'] .= Contenedor::_showEventos($crm, 'crm/callcenter/eventos', $adici);
$data['content'] .= Contenedor::_showComentarios($crm, 'crm/callcenter/comentarios', $adici);
$data['style'] = style('redmond/jquery-ui.css');
$data['script'] = script('jquery.js');
$data['script'] .= script('jquery-ui.js');
$data['script'] .= script('plugins/jquery.floatnumber.js');
$data['script'] .= script('plugins/jquery.numeric.pack.js');
$data['script'] .= script('plugins/jquery.ui.autocomplete.autoSelectOne.js');
$data['script'] .= phpscript('nformat.js');
$data['head'] = $this->rapyd->get_head();
$data['title'] = heading('Callcenter');
$this->load->view('view_ventanas', $data);
}
示例5: 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);
}
示例6: 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);
}
示例7: 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);
}
示例8: dataedit
function dataedit()
{
$this->rapyd->load('dataedit');
$script = '
$(function() {
$(".inputnum").numeric(".");
});';
$edit = new DataEdit('Metas', 'metas');
$edit->back_url = site_url('ventas/metas/filteredgrid');
$edit->script($script, 'create');
$edit->script($script, 'modify');
$edit->fecha = new dateonlyField('Fecha', 'fecha', 'm/Y');
$edit->fecha->insertValue = date('Y-m-d');
$edit->fecha->dbformat = 'Ym';
$edit->fecha->size = 7;
$edit->fecha->append('mes/año');
$edit->fecha->rule = 'required';
$edit->codigo = new dropdownField('Producto', 'codigo');
$edit->codigo->option('', 'Seleccionar');
$edit->codigo->rule = 'required';
$edit->codigo->options('SELECT TRIM(codigo),CONCAT_WS("-",TRIM(codigo),TRIM(descrip)) AS valor FROM sinv ORDER BY codigo');
//$edit->codigo->style = 'width:150px';
$edit->codigo->rule = 'required';
$edit->cantidad = new inputField('Cantidad', 'cantidad');
$edit->cantidad->size = 12;
$edit->cantidad->maxlength = 12;
$edit->cantidad->rule = 'numeric|required|positive';
$edit->cantidad->css_class = 'inputnum';
$edit->buttons('modify', 'save', 'undo', 'delete', 'back', 'add');
$edit->build();
$data['content'] = $edit->output;
$data['title'] = heading('Metas');
$data['head'] = script('jquery.js') . script('plugins/jquery.numeric.pack.js') . script('plugins/jquery.floatnumber.js') . $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例9: 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);
}
示例10: 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);
}
示例11: dataedit
function dataedit()
{
$this->datasis->modulo_id(101, 1);
$this->rapyd->load("dataedit");
$script = '
$(".inputnum").numeric(".");
';
$edit = new DataEdit("Sector", "sectores");
$edit->script($script, "create");
$edit->back_url = site_url("presupuesto/sectores/filteredgrid");
$edit->sect_pres = new inputField("Código", "sect_pres");
$edit->sect_pres->size = 5;
$edit->sect_pres->maxlength = 2;
$edit->sect_pres->mode = "autohide";
$edit->sect_pres->css_class = 'inputnum';
$edit->nomb_sect = new inputField("Nombre", "nomb_sect");
$edit->nomb_sect->size = 40;
$edit->nomb_sect->maxlength = 80;
$edit->nomb_sect->rule = 'required';
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = " Sectores ";
$data["head"] = script("jquery.pack.js") . $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例12: dataedit
function dataedit()
{
$this->rapyd->load("dataedit");
$edit = new DataEdit("Carga de Publicidad", "publicidad");
$edit->back_url = site_url("supervisor/publicidad/filteredgrid");
$edit->archivo = new uploadField("Archivo", "archivo");
$edit->archivo->upload_path = $this->upload_path;
$edit->archivo->allowed_types = "jpg|gif|swf|png";
$edit->bgcolor = new inputField("Color de Fondo", "bgcolor");
$edit->bgcolor->maxlength = 7;
$edit->bgcolor->size = 9;
//$edit->bgcolor->rule="";
$edit->prob = new inputField("Probabilidad de aparicion", "prob");
$edit->prob->css_class = 'inputnum';
$edit->prob->maxlength = 8;
$edit->prob->size = 6;
//$edit->prob->rule="";
$edit->descrip = new textareaField("Descripción", "descrip");
$edit->descrip->rows = 5;
$edit->buttons("modify", "save", "undo", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = "<h1>Registro de publicidad</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例13: dataedit
function dataedit()
{
$this->rapyd->load('dataedit');
$edit = new DataEdit('Partidas', 'crm_partidas');
$edit->back_url = site_url('crm/partidas/');
$edit->codigo = new inputField('Código', 'codigo');
$edit->codigo->rule = 'trim|required|max_length[15]';
$edit->descripcion = new inputField('Descripción', 'descripcion');
$edit->descripcion->rule = 'trim|required|max_length[100]';
$edit->enlace = new inputField('Enlace Administrativo', 'enlace');
$edit->enlace->rule = 'trim|required|max_length[6]';
$edit->enlace->size = 7;
$edit->medida = new inputField('Medida', 'medida');
$edit->medida->rule = 'trim|required|max_length[5]';
$edit->medida->size = 6;
$edit->medida->max_size = 5;
$edit->iva = new inputField('Iva', 'iva');
$edit->iva->rule = 'trim|required|numeric';
$edit->buttons('modify', 'save', 'undo', 'delete', 'back');
$edit->build();
$data['content'] = $edit->output;
$data['title'] = '<h1>Partidas de Contratos</h1>';
$data['head'] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例14: dataedit
function dataedit()
{
$this->datasis->modulo_id(102, 1);
$this->rapyd->load("dataedit");
$script = '
$(".inputnum").numeric(".");
';
$edit = new DataEdit("Programas", "programas");
$edit->script($script, "create");
$edit->back_url = site_url("presupuesto/programas/filteredgrid");
$edit->sect_pres = new dropdownField("Sector", "sect_pres");
$edit->sect_pres->options("SELECT sect_pres, CONCAT_WS(' ',sect_pres,nomb_sect)AS nomb_sect FROM sectores ORDER BY sect_pres");
$edit->sect_pres->style = 'width:300px;';
$filter->id_prog = new inputField("Identificador", "id_prog");
$filter->id_prog->size = 5;
$edit->prog_pres = new inputField("Código Programa", "prog_pres");
$edit->prog_pres->size = 5;
$edit->prog_pres->maxlength = 2;
$edit->prog_pres->mode = "autohide";
$edit->prog_pres->css_class = 'inputnum';
$edit->prog_pres->rule = 'required';
$edit->nomb_prog = new inputField("Nombre Programa", "nomb_prog");
$edit->nomb_prog->size = 40;
$edit->nomb_prog->maxlength = 80;
$edit->nomb_prog->rule = 'required';
$edit->buttons("modify", "save", "undo", "delete", "back");
$edit->build();
$data['content'] = $edit->output;
$data['title'] = " Programas ";
$data["head"] = script("jquery.pack.js") . $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例15: 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);
}