当前位置: 首页>>代码示例>>PHP>>正文


PHP script函数代码示例

本文整理汇总了PHP中script函数的典型用法代码示例。如果您正苦于以下问题:PHP script函数的具体用法?PHP script怎么用?PHP script使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了script函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $this->rapyd->uri->keep_persistence();
     $filter = new DataFilter("", 'valores');
     $filter->nombre = new inputField("Nombre", "nombre");
     $filter->nombre->size = 35;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('supervisor/valores/dataedit/show/<raencode><#nombre#></raencode>', '<#nombre#>');
     $grid = new DataGrid("");
     $grid->order_by("nombre", "asc");
     $grid->column_orderby("Nombre", $uri, "nombre");
     $grid->column_orderby("Valor", "valor", "valor");
     $grid->column_orderby("Descripci&oacute;n", "descrip", "descrip", "align='left'NOWRAP");
     $grid->add("supervisor/valores/dataedit/create");
     $grid->build();
     //$data['content'] = $filter->output.$grid->output;
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['script'] = script("jquery.js") . "\n";
     $data['title'] = " Valores ";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:25,代码来源:valores.php

示例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&oacute;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);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:30,代码来源:sucu.php

示例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&oacute;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);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:31,代码来源:bi_bienes.php

示例4: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $filter = new DataFilter("", 'prof');
     $filter->codigo = new inputField("Codigo", "codigo");
     $filter->codigo->size = 20;
     $filter->codigo->maxlength = 8;
     $filter->profesion = new inputField("Profesion", "profesion");
     $filter->profesion->size = 20;
     $filter->profesion->maxlength = 40;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('nomina/prof/dataedit/show/<#codigo#>', '<#codigo#>');
     $grid = new DataGrid("");
     $grid->per_page = 15;
     $grid->column_orderby("Codigo", $uri, "codigo");
     $grid->column_orderby("Profesiones", "profesion", "profesion", "align='left'NOWRAP");
     $grid->add("nomina/prof/dataedit/create");
     $grid->build();
     //$data['content'] = $filter->output.$grid->output;
     $data['title'] = "Profesiones";
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['script'] = script("jquery.js") . "\n";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:27,代码来源:prof.php

示例5: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter', 'datagrid');
     $filter = new DataFilter($this->titp, 'tingresos');
     $filter->codigo = new inputField('Codigo', 'codigo');
     $filter->codigo->rule = 'max_length[2]';
     $filter->codigo->size = 4;
     $filter->codigo->maxlength = 2;
     $filter->descrip = new inputField('Descripci&oacute;n', 'descrip');
     $filter->descrip->rule = 'max_length[100]';
     $filter->descrip->size = 102;
     $filter->descrip->maxlength = 100;
     $filter->grupo = new inputField('Grupo', 'grupo');
     $filter->grupo->rule = 'max_length[1]';
     $filter->grupo->size = 3;
     $filter->grupo->maxlength = 1;
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor($this->url . 'dataedit/show/<raencode><#codigo#></raencode>', '<#codigo#>');
     $grid = new DataGrid('');
     $grid->order_by('codigo');
     $grid->per_page = 40;
     $grid->column_orderby('C&oacute;digo', "{$uri}", 'codigo', 'align="left"');
     $grid->column_orderby('Descripci&oacute;n', "descrip", 'descrip', 'align="left"');
     $grid->column_orderby('Grupo', "grupo", 'grupo', 'align="left"');
     $grid->add($this->url . 'dataedit/create');
     $grid->build();
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['head'] = $this->rapyd->get_head() . script('jquery.js');
     $data['title'] = $this->titp;
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:33,代码来源:tingresos.php

示例6: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter', 'datagrid');
     $filter = new DataFilter($this->titp, 'negocio');
     $filter->codigo = new inputField('Codigo', 'codigo');
     $filter->codigo->rule = 'max_length[5]';
     $filter->codigo->size = 7;
     $filter->codigo->maxlength = 5;
     $filter->nombre = new inputField('Nombre', 'nombre');
     $filter->nombre->rule = 'max_length[20]';
     $filter->nombre->size = 22;
     $filter->nombre->maxlength = 20;
     $filter->monto = new inputField('Monto', 'monto');
     $filter->monto->rule = 'max_length[8]';
     $filter->monto->size = 10;
     $filter->monto->maxlength = 8;
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor($this->url . 'dataedit/show/<raencode><#codigo#></raencode>', '<#codigo#>');
     $grid = new DataGrid('');
     $grid->order_by('codigo');
     $grid->per_page = 40;
     $grid->column_orderby('Codigo', "{$uri}", 'codigo', 'align="left"');
     $grid->column_orderby('Nombre', "nombre", 'nombre', 'align="left"');
     $grid->column_orderby('Monto', "<nformat><#monto#></nformat>", 'monto', '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.js');
     $data['title'] = $this->titp;
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:33,代码来源:negocio.php

示例7: centinelas

 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);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:25,代码来源:mantenimiento.php

示例8: 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&oacute;digo", "codigo");
     $edit->codigo->mode = "autohide";
     $edit->codigo->rule = 'required';
     $edit->codigo->maxlength = 4;
     $edit->codigo->size = 4;
     $edit->descrip = new textareaField("Descripci&oacute;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);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:29,代码来源:bi_subgrupo.php

示例9: index

 function index()
 {
     $this->rapyd->load("datagrid", "datafilter2");
     $this->rapyd->uri->keep_persistence();
     $filter = new DataFilter2("", 'cpla');
     $filter->codigo = new inputField("C&oacute;digo", "codigo");
     $filter->codigo->size = 15;
     //$filter->codigo->clause="likerigth";
     $filter->denominacion = new inputField("Denominaci&oacute;n", "denominacion");
     $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 = 20;
     $grid->column_orderby("C&oacute;digo", $uri, "codigo", "align='left'  NOWRAP");
     $grid->column_orderby("Denomina&oacute;n", "denominacion", "denominacion", "align='left'  NOWRAP");
     //$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['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data["head"] = $this->rapyd->get_head();
     $data['script'] = script("jquery.js") . "\n";
     $data['title'] = 'Plan Patrimonial';
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:29,代码来源:cpla.php

示例10: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $filter = new DataFilter("", 'usuario');
     $filter->us_codigo = new inputField("C&oacute;digo Usuario", "us_codigo");
     $filter->us_codigo->size = 15;
     $filter->us_nombre = new inputField("Nombre", "us_nombre");
     $filter->us_nombre->size = 15;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('supervisor/usuarios/dataedit/show/<#us_codigo#>', '<#us_codigo#>');
     $uri2 = anchor('supervisor/usuarios/cclave/modify/<#us_codigo#>', 'Cambiar clave');
     $uri3 = anchor('accesos/crear/<#us_codigo#>', 'Asignar Accesos');
     $grid = new DataGrid("");
     $grid->order_by("us_codigo", "asc");
     $grid->per_page = 20;
     $grid->column_ORDERBY("C&oacute;digo", $uri, "us_codigo ");
     $grid->column_ORDERBY("Nombre", "us_nombre", "us_nombre ", "align='left'NOWRAP");
     $grid->column_ORDERBY("Supervisor", "supervisor", "supervisor", 'align="center"    ');
     $grid->column("Cambio clave", $uri2, 'align="center"');
     $grid->column("Asignar Accesos", $uri3, 'align="center"');
     $grid->add("supervisor/usuarios/dataedit/create");
     $grid->build();
     //$data['content'] =$filter->output.$grid->output;
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['script'] = script("jquery.js") . "\n";
     $data['title'] = " Usuarios ";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:31,代码来源:usuarios.php

示例11: 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);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:32,代码来源:r_usuario.php

示例12: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter', 'datagrid');
     $filter = new DataFilter($this->titp, 'r_negocio');
     $filter->descrip = new inputField('Descripcion', 'descrip');
     $filter->descrip->rule = 'max_length[100]';
     $filter->descrip->size = 40;
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor($this->url . 'dataedit/show/<raencode><#id#></raencode>', '<#id#>');
     $grid = new DataGrid('');
     $grid->order_by('id');
     $grid->per_page = 40;
     $grid->column_orderby('Ref', "{$uri}", 'id', 'align="left"');
     $grid->column_orderby('Descripcion', "descrip", 'descrip', 'align="left"');
     $grid->column_orderby('Monto', "<nformat><#monto#></nformat>", 'monto', 'align="right"');
     $grid->column_orderby('Monto2', "<nformat><#monto2#></nformat>", 'monto2', '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.js');
     $data['title'] = $this->titp;
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:25,代码来源:r_negocio.php

示例13: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter', 'datagrid');
     $filter = new DataFilter($this->titp, 'rv_modelo');
     $filter->db->select(array('rv_modelo.id', 'rv_modelo.descrip', 'rv_marca.descrip marca'));
     $filter->db->join("rv_marca", "rv_modelo.id_marca=rv_marca.id");
     $filter->id = new inputField('id', 'id');
     $filter->id->rule = 'max_length[11]';
     $filter->id->size = 13;
     $filter->id->maxlength = 11;
     $filter->id_marca = new dropDownField('id_marca', 'id_marca');
     $filter->id_marca->option("", "");
     $filter->id_marca->options("SELECT id,descrip FROM rv_marca ORDER BY descrip");
     $filter->descrip = new inputField('descrip', 'descrip');
     $filter->descrip->rule = 'max_length[100]';
     $filter->descrip->size = 40;
     $filter->descrip->maxlength = 100;
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor($this->url . 'dataedit/show/<raencode><#id#></raencode>', '<#id#>');
     $grid = new DataGrid('');
     $grid->order_by('rv_modelo.id');
     $grid->per_page = 40;
     $grid->column_orderby('Ref.', "{$uri}", 'id', 'align="left"');
     $grid->column_orderby('Marca', "marca", 'id_marca', 'align="left"');
     $grid->column_orderby('Descripcion', "descrip", 'descrip', 'align="left"');
     $grid->add($this->url . 'dataedit/create');
     $grid->build();
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['head'] = $this->rapyd->get_head() . script('jquery.js');
     $data['title'] = $this->titp;
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:34,代码来源:rv_modelo.php

示例14: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter', 'datagrid');
     $filter = new DataFilter($this->titp);
     $sel = array('a.id', 'a.descripcion', 'b.nombre');
     $filter->db->select($sel);
     $filter->db->from('edifubica AS a ');
     $filter->db->join('edif AS b', 'a.id_edif=b.id');
     $filter->descripcion = new inputField('Descripci&oacute;n', 'descripcion');
     $filter->descripcion->rule = 'max_length[50]';
     $filter->descripcion->size = 52;
     $filter->descripcion->maxlength = 50;
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor($this->url . 'dataedit/show/<raencode><#id#></raencode>', '<#id#>');
     $grid = new DataGrid('');
     $grid->order_by('id');
     $grid->per_page = 40;
     $grid->column_orderby('Id', $uri, 'id', 'align="left"');
     $grid->column_orderby('Edificaci&oacute;n', 'nombre', 'nombre');
     $grid->column_orderby('Descripcion', 'descripcion', 'descripcion', 'align="left"');
     $grid->add($this->url . 'dataedit/create');
     $grid->build();
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['head'] = $this->rapyd->get_head() . script('jquery.js');
     $data['title'] = heading($this->titp);
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:29,代码来源:edifubica.php

示例15: 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&oacute;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&oacute;dulo", "modulo");
     $grid->column("Descripci&oacute;n", "descripcion");
     $grid->column('Generar', $checkbox, 'align="center"');
     $grid->build();
     $form = new DataForm('contabilidad/generar/procesar');
     $form->title('Rango de fecha para la Generaci&oacute;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);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:35,代码来源:generar.php


注:本文中的script函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。