• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP form_close函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: editar

 public function editar($accion, $codigo = "")
 {
     $lista = new stdClass();
     if ($accion == "e") {
         $filter = new stdClass();
         $filter->tipoestudiociclo = $codigo;
         $tiposeestudiociclo = $this->tipoestudiociclo_model->obtener($filter);
         $lista->codigo = $tiposeestudiociclo->TIPCICLOP_Codigo;
         $lista->observacion = $tiposeestudiociclo->TIPCICLOC_Observacion;
         $lista->ciclo = $tiposeestudiociclo->CICLOP_Codigo;
         $lista->estado = $tiposeestudiociclo->TIPCICLOC_FlagEstado;
         $lista->tipoestudio = $tiposeestudiociclo->TIPP_Codigo;
     } elseif ($accion == "n") {
         $lista->codigo = "";
         $lista->observacion = "";
         $lista->ciclo = "";
         $lista->estado = 1;
         $lista->tipoestudio = "";
     }
     $arrEstado = array("0" => "::Seleccione::", "1" => "ACTIVO", "2" => "INACTIVO");
     $data['titulo'] = $accion == "e" ? "Editar Tipo de Estudio por ciclo" : "Crear Tipo de Estudio por ciclo";
     $data['form_open'] = form_open('', array("name" => "frmPersona", "id" => "frmPersona", "onsubmit" => "return valida_guiain();"));
     $data['form_close'] = form_close();
     $data['lista'] = $lista;
     $data['selestado'] = form_dropdown('estado', $arrEstado, $lista->estado, "id='estado' class='comboMedio'");
     $data['selciclo'] = form_dropdown('ciclo', $this->ciclo_model->seleccionar('0'), $lista->ciclo, "id='ciclo' class='comboMedio'");
     $data['seltipoestudio'] = form_dropdown('tipoestudio', $this->tipoestudio_model->seleccionar('0'), $lista->tipoestudio, "id='tipoestudio' class='comboMedio'");
     $data['oculto'] = form_hidden(array("accion" => $accion, "codigo_padre" => $codigo, "codigo" => $lista->codigo));
     $this->load->view("maestros/tipoestudiociclo_nuevo", $data);
 }
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:30,代码来源:tipoestudiociclo.php


示例2: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("mapel");
     echo "\n\n        ";
     // line 11
     echo form_open("admin/mapel/add", array("class" => "form-horizontal row-fluid"));
     echo "\n            <div class=\"control-group\">\n                <label class=\"control-label\">Nama <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"nama\" class=\"span8\" value=\"";
     // line 15
     echo twig_escape_filter($this->env, set_value("nama"), "html", null, true);
     echo "\">\n                    <br>";
     // line 16
     echo form_error("nama");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Deskripsi</label>\n                <div class=\"controls\">\n                    <textarea name=\"info\" class=\"span12\" rows=\"5\">";
     // line 22
     echo set_value("info");
     echo "</textarea>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <div class=\"controls\">\n                    <button type=\"submit\" class=\"btn btn-primary\">Simpan</button>\n                    <a href=\"";
     // line 28
     echo twig_escape_filter($this->env, site_url("admin/mapel"), "html", null, true);
     echo "\" class=\"btn\">Batal</a>\n                </div>\n            </div>\n        ";
     // line 31
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:29,代码来源:e77bfcb44e01e83cd758d3bf076b694ee0546ba32e73d1a1f758f2d79475.php


示例3: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<h4>Edit Kelas Aktif</h4>\n";
     // line 5
     echo get_flashdata("class");
     echo "\n\n";
     // line 7
     echo form_open("siswa/moved_class/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . (isset($context["siswa_id"]) ? $context["siswa_id"] : null), array("class" => "form-horizontal row-fluid"));
     echo "\n<table class=\"table table-striped\">\n    <tr>\n        <td>\n            <select class=\"span2\" name=\"kelas_id\">\n                <option value=\"\">--pilih--</option>\n                ";
     // line 13
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["kelas"]) ? $context["kelas"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
         // line 14
         echo "                    <option value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), "html", null, true);
         echo "\" ";
         echo $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id") == $this->getAttribute(isset($context["get_aktif"]) ? $context["get_aktif"] : null, "kelas_id") ? "selected" : "";
         echo ">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
         echo "</option>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 16
     echo "            </select>\n            <br>";
     // line 17
     echo form_error("kelas_id");
     echo "\n        </td>\n        <td>\n            <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n        </td>\n    </tr>\n</table>\n";
     // line 24
     echo form_close();
     echo "\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:35,代码来源:669a4f6e8c7dc02a4e11f673e2a6c35fc22a4b99b59d453296af0e9866a0.php


示例4: form

 /**
  * Get search form
  *
  * @subpackage	Helpers
  * @param	int
  * @return 	string
  */
 function form($data = '')
 {
     // Set the default options
     $defaults = array('show_categories' => 'no', 'class' => 'search_form', 'id' => '', 'style' => '');
     $options = $this->_ci->settings->get_params($data['attributes'], $defaults);
     $this->_ci->load->helper('form');
     // Should we load up the categories
     $cats = '';
     if ($options['show_categories'] == 'yes') {
         $this->_ci->load->library('categories/categories_library');
         $cats = $this->_ci->categories_model->get_categories();
         $this->_ci->categories_library->category_tree($cats);
         $cats = $this->_ci->categories_library->get_categories();
         $cat_options['0'] = lang('lang_search_all');
         foreach ($cats as $row) {
             $indent = $row['cat_parent'] != 0 ? repeater('&nbsp;&raquo;&nbsp;', $row['depth']) : '';
             $cat_options[$row['cat_id']] = $indent . $row['cat_name'];
         }
         $cats = form_dropdown('category', $cat_options, 'id="cats" class="category"');
     }
     $attributes = array('class' => $options['class'], 'id' => $options['id'], 'style' => $options['style']);
     $output = form_open('search/do_search', $attributes);
     $output .= str_replace('{kb:cats}', $cats, $data['content']);
     $output .= form_close();
     return $output;
 }
开发者ID:68kb,项目名称:68kb,代码行数:33,代码来源:Search_parser.php


示例5: get_newsletter_form

 public function get_newsletter_form()
 {
     /* BENCHMARK */
     $this->benchmark->mark('func_get_newsletter_form_start');
     $this->load->helper('data');
     $newsletter_html = '';
     // only make a newsletter form if users who are not site admins are signed in
     /*if ('super_admin'==$this->user['user_type'] or
           'admin_user'==$this->user['user_type'] or
           'supplier_user'==$this->user['user_type'])
       {
           $newsletter_html.='';
       }
       else
       {*/
     $attr = array('name' => 'newsletter_form', 'id' => 'newsletter_form', 'class' => 'form');
     $hidden = array('url' => uri_string());
     // reload url
     $newsletter_html .= form_open('newsletter/signup', $attr, $hidden);
     // email field
     $attr = array('name' => 'newsletter_email', 'id' => 'newsletter_email', 'class' => 'form_field', 'placeholder' => 'enter your email ...', 'value' => get_value(null, 'newsletter_email'));
     $newsletter_html .= form_input($attr, '');
     $newsletter_html .= form_input(array('name' => 'phone_number', 'class' => 'phone_number', 'style' => 'position:absolute;top:-10000px;'));
     // submit button
     $attr = array('name' => 'submit', 'id' => 'newsletter_submit', 'class' => 'checkout submit');
     $newsletter_html .= form_submit($attr, 'sign up');
     $newsletter_html .= form_close();
     /*}*/
     /* BENCHMARK */
     $this->benchmark->mark('func_get_newsletter_form_end');
     return $newsletter_html;
 }
开发者ID:toni-leigh,项目名称:core,代码行数:32,代码来源:newsletter_model.php


示例6: getLoginForm

        public function getLoginForm()
        {
			$this->CI->lang->load('basic', 'english');
            $this->CI->load->helper('form');

			$form = '<div id="LoginForm">';
			$form.= '<p>'.$this->CI->lang->line('login_text').'</p>';
			$form.= form_open(site_url('login'), array(
				'id' => 'Login'
			));
			$form.= form_fieldset();
			$form.= form_label('username');
			$form.= form_input(array(
				'maxlength' => 20,
				'name' => 'username'
			));
			$form.= form_label('password');
			$form.= form_input(array(
				'maxlength' => 20,
				'name' => 'password',
				'type' => 'password'
			));
			$form.= form_submit('login_submit', $this->CI->lang->line('login_button'));
			$form.= form_fieldset_close();
			$form.= form_close();
			$form.= '</div>';

			return $form;
        }
开发者ID:JohannesFischer,项目名称:adora-gallery,代码行数:29,代码来源:Content.php


示例7: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("kelas");
     echo "\n\n        <div class=\"panel panel-default\">\n            <div class=\"panel-heading\">\n                Tambah Kelas\n            </div>\n            <div class=\"panel-body\">\n                ";
     // line 16
     echo form_open("admin/kelas", array("class" => "form-horizontal row-fluid"));
     echo "\n                    <div class=\"control-group\">\n                        <label class=\"control-label\">Nama Kelas <span class=\"text-error\">*</span></label>\n                        <div class=\"controls\">\n                            <input type=\"text\" name=\"nama\" class=\"span5\" placeholder=\"Nama Kelas\" value=\"";
     // line 20
     echo twig_escape_filter($this->env, set_value("nama"), "html", null, true);
     echo "\">\n                            <button type=\"submit\" class=\"btn btn-primary\">Simpan</button>\n                            ";
     // line 22
     echo form_error("nama");
     echo "\n                        </div>\n                    </div>\n                ";
     // line 25
     echo form_close();
     echo "\n            </div>\n        </div>\n\n        <p><b>Note:</b> Kelas tidak dapat di hapus namun dapat di ubah menjadi tidak aktif</p>\n\n        ";
     // line 31
     echo isset($context["kelas_hirarki"]) ? $context["kelas_hirarki"] : null;
     echo "\n\n        <br>\n        <div id=\"response_update\"></div>\n        <button class=\"btn btn-primary\" id=\"update-hirarki\">Update Hirarki</button>\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:26,代码来源:e21e79c49e313b4c30919792b145d76ccb359710f0fc8fdd1add2842d09e.php


示例8: comments

function comments($comments, $object_id, $object, $usernames, $format, $return = 'agilan/index')
{
    $string = "";
    $string .= "<ol class='comments'>";
    if (isset($comments[$object_id]) && count($comments[$object_id]) > 0) {
        foreach ($comments[$object_id] as $kk => $ll) {
            $CID = $ll->user_id;
            $CU = $usernames[$ll->user_id];
            $stamp = mysql_to_unix($ll->created);
            $string .= "<li><b>" . $CU . ":</b> <small>" . $ll->comment . "<br/>" . mdate($format, $stamp) . "</small></li>";
        }
    } else {
        $string .= nbs();
    }
    $string .= "<li class='last'>";
    $string .= form_open('comments/index');
    $input = array('name' => 'comment', 'id' => 'comment', 'size' => 35);
    $string .= form_input($input);
    $string .= form_hidden('object', $object);
    $string .= form_hidden('object_id', $object_id);
    $string .= form_hidden('return_url', $return);
    $string .= form_submit('add comment', 'comment');
    $string .= form_close();
    $string .= "</li>";
    $string .= "</ol>";
    echo $string;
}
开发者ID:Ahmad-Hilali,项目名称:agilan,代码行数:27,代码来源:social_pi.php


示例9: login

 function login()
 {
     if ($this->form_validation->run() == TRUE) {
         $email = $this->input->post('email', TRUE);
         $password = md5($this->input->post('password', TRUE));
         $get_login = $this->login_model->retrieve(null, $email, $password, null, null, 1);
         if (empty($get_login)) {
             $this->session->set_flashdata('login', get_alert('warning', 'Akun tidak ditemukan'));
             redirect('admin/login');
         } else {
             //create session admin
             $get_pengajar = $this->pengajar_model->retrieve($get_login['pengajar_id']);
             //unset password admin
             unset($get_login['password']);
             $set_session['admin'] = array('login' => $get_login, 'pengajar' => $get_pengajar);
             $this->session->set_userdata($set_session);
             $_SESSION['KCFINDER'] = array();
             $_SESSION['KCFINDER']['disabled'] = false;
             $_SESSION['KCFINDER']['uploadURL'] = base_url('assets/uploads/');
             $_SESSION['KCFINDER']['uploadDir'] = "";
             redirect('admin');
         }
     } else {
         $data = array('web_title' => 'Login | Administrator', 'form_open' => form_open('admin/login', array('autocomplete' => 'off', 'class' => 'form-vertical')), 'form_close' => form_close());
         $data = array_merge(default_parser_item(), $data);
         $this->twig->display('admin-login.html', $data);
     }
 }
开发者ID:nicefirework,项目名称:new_elearning,代码行数:28,代码来源:admin.php


示例10: editar

 public function editar()
 {
     if (!($this->dados['infos'] = $this->curso_model->listar($this->id))) {
         redirect('../cursos/listar');
     }
     $dadosCurso = $this->dados['infos'][0];
     $form = form_open('#', array('class' => 'niceform'));
     $form .= '<table class="cadForm">';
     $form .= '<tr>';
     $form .= '<td>';
     $form .= form_label('Nome:', '', array('for' => 'email'));
     $form .= form_input('curso_nome', $dadosCurso['curso_nome'], array('size' => 30));
     $form .= form_hidden('curso_id', $dadosCurso['curso_id']);
     $form .= form_hidden('lixeira', $dadosCurso['lixeira']);
     $form .= '</td>';
     $form .= '<td>';
     $form .= form_label('Quantidade de aulas:', '', array('for' => 'email'));
     $form .= form_input('curso_qtd_aulas', $dadosCurso['curso_qtd_aulas'], array('size' => 20));
     $form .= '</td>';
     $form .= '</tr>';
     $form .= '<tr>';
     $form .= '<td></td>';
     $form .= '<td>';
     $form .= form_submit('cadastrar', 'Enviar', 'id="submit"');
     $form .= '</td>';
     $form .= '</tr>';
     $form .= '</table>';
     $form .= form_close();
     $form .= '<span class="obs">Todos os campos são obrigatórios.</span>';
     $this->dados['form'] = $form;
     $this->load->view('editar', $this->dados);
 }
开发者ID:adrisonluz,项目名称:syschool,代码行数:32,代码来源:Cursos.php


示例11: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("mapel");
     echo "\n\n        ";
     // line 11
     echo form_open("admin/mapel/edit/" . $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "id") . "/" . enurl_redirect(isset($context["uri_back"]) ? $context["uri_back"] : null), array("class" => "form-horizontal row-fluid"));
     echo "\n            <div class=\"control-group\">\n                <label class=\"control-label\">Nama <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"nama\" class=\"span8\" value=\"";
     // line 15
     echo twig_escape_filter($this->env, set_value("nama", $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "nama")), "html", null, true);
     echo "\">\n                    <br>";
     // line 16
     echo form_error("nama");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Deskripsi</label>\n                <div class=\"controls\">\n                    <textarea name=\"info\" class=\"span12\" rows=\"5\">";
     // line 22
     echo set_value("info", $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "info"));
     echo "</textarea>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Status</label>\n                <div class=\"controls\">\n                    <label class=\"checkbox inline\">\n                        <input type=\"checkbox\" value=\"1\" name=\"status\" ";
     // line 29
     echo twig_escape_filter($this->env, set_checkbox("status", "1", $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "aktif") == 1 ? true : false), "html", null, true);
     echo ">\n                        Aktif\n                    </label>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <div class=\"controls\">\n                    <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n                    <a href=\"";
     // line 37
     echo twig_escape_filter($this->env, isset($context["uri_back"]) ? $context["uri_back"] : null, "html", null, true);
     echo "\" class=\"btn\">Batal</a>\n                </div>\n            </div>\n        ";
     // line 40
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:32,代码来源:815802a5180dd7c8e97f6c0c40a1eabb2b4db23228355d8eabfd1a8cda19.php


示例12: import

 public function import($success = "")
 {
     $data['judul_besar'] = 'PHPExcel';
     $data['judul_kecil'] = 'Import';
     $data['output'] = "<h4>Sebelum mengupload, pastikan file anda berformat <strong>.xls/.xlsx</strong></h4>";
     $data['output'] .= form_open_multipart('php_excel/do_upload');
     $form = array('name' => 'userfile', 'style' => 'position:absolute;z-index:2;top:0;left:0;filter: alpha(opacity=0);-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0;background-color:transparent;color:transparent;', 'onchange' => "\$('#upload-file-info').html(\$(this).val());");
     $data['output'] .= "<div style='position:relative;'>";
     $data['output'] .= "<a class='btn btn-primary' href='javascript:;'>";
     $data['output'] .= "Browse… " . form_upload($form);
     $data['output'] .= "</a>";
     $data['output'] .= "&nbsp;";
     $data['output'] .= "<span class='label label-info' id='upload-file-info'></span>";
     $data['output'] .= "</div>";
     $data['output'] .= "<br>";
     $data['output'] .= form_submit('name', 'Go !', 'class = "btn btn-default"');
     $data['output'] .= form_close();
     if ($success) {
         $data['pesan'] = '<div class="alert alert-success alert-dismissible">';
         $data['pesan'] .= '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>';
         $data['pesan'] .= '<h4><i class="icon fa fa-check"></i> Alert!</h4>';
         $data['pesan'] .= 'Success alert preview. This alert is dismissable.';
         $data['pesan'] .= '</div>';
     }
     $this->load->view('welcome_message', $data, FALSE);
 }
开发者ID:heruprambadi,项目名称:ci_phpexcel,代码行数:26,代码来源:Php_excel.php


示例13: editar

 public function editar($acta = 0, $curso = 0)
 {
     $filter = new stdClass();
     $filter->acta = $acta;
     $filter->order_by = array("f.PERSC_ApellidoPaterno" => "asc", "f.PERSC_ApellidoMaterno" => "asc", "f.PERSC_Nombre" => "asc");
     $actaprofesores = $this->actaprofesor_model->listar($filter);
     $flgDetalle = 0;
     $item = 1;
     $lista = array();
     if (count($actaprofesores) > 0) {
         foreach ($actaprofesores as $indice => $value) {
             $lista[$indice] = new stdClass();
             $lista[$indice]->nombres = $value->PERSC_Nombre;
             $lista[$indice]->paterno = $value->PERSC_ApellidoPaterno;
             $lista[$indice]->materno = $value->PERSC_ApellidoMaterno;
             $lista[$indice]->codigo = $value->ACTAPROFP_Codigo;
             $lista[$indice]->profesor = $value->codprofesor;
             $lista[$indice]->hingreso = $value->ACTAPROFC_Hingreso;
             $lista[$indice]->hsalida = $value->ACTAPROFC_Hsalida;
             $lista[$indice]->observacion = $value->ACTAPROFC_Observacion;
             $lista[$indice]->curso = $value->PROD_Nombre;
         }
         $flgDetalle = 1;
     }
     $data['titulo'] = "Asistencia de profesores";
     $data['form_open'] = form_open('', array("name" => "frmPersona", "id" => "frmPersona", "onsubmit" => "return valida_guiain();"));
     $data['form_close'] = form_close();
     $data['lista'] = $lista;
     $data['flgDetalle'] = $flgDetalle;
     $data['oculto'] = form_hidden(array("curso" => $curso, "acta" => $acta, "flgDetalle" => $flgDetalle));
     $this->load->view("ventas/actaprofesor_nuevo", $data);
 }
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:32,代码来源:actaprofesor.php


示例14: editar

 public function editar($accion, $codigo = "")
 {
     $lista = new stdClass();
     if ($accion == "e") {
         $filter = new stdClass();
         $filter->ciclo = $codigo;
         $ciclos = $this->ciclo_model->obtener($filter);
         $lista->finicio = date_sql(substr($ciclos->CICC_FECHA_INICIO, 0, 10));
         $lista->ffin = date_sql(substr($ciclos->CICC_FECHA_FIN, 0, 10));
         $lista->descripcion = $ciclos->CICC_DESCRIPCION;
         $lista->codigo = $ciclos->CICLOP_Codigo;
         $lista->nombre = $ciclos->COMPC_Nombre;
         $lista->tipociclo = $ciclos->TIPOCICLOP_Codigo;
     } elseif ($accion == "n") {
         $lista->finicio = "";
         $lista->ffin = "";
         $lista->descripcion = "";
         $lista->codigo = "";
         $lista->nombre = "";
         $lista->tipociclo = "";
     }
     $arrTipociclo = array("0" => "::Seleccione::", "1" => "Ciclo 1", "2" => "Ciclo 2");
     $data['titulo'] = $accion == "e" ? "Editar Ciclo" : "Crear Ciclo";
     $data['form_open'] = form_open('', array("name" => "frmPersona", "id" => "frmPersona", "onsubmit" => "return valida_guiain();"));
     $data['form_close'] = form_close();
     $data['lista'] = $lista;
     $data['seltipociclo'] = form_dropdown('tipociclo', $arrTipociclo, $lista->tipociclo, "id='tipociclo' class='comboMedio'");
     $data['oculto'] = form_hidden(array("accion" => $accion, "codigo_padre" => $codigo, "codigo" => $lista->codigo));
     $this->load->view("maestros/ciclo_nuevo", $data);
 }
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:30,代码来源:course.php


示例15: test

 public function test()
 {
     $this->load->helper('form');
     //有一个破坏html的双引号
     $string = 'Here is a string containing "quoted" text.';
     $string2 = html_escape($string);
     echo '<input type="text" name="myfield" value="' . $string2 . '" />';
     echo '<br/>';
     //创建一个表单
     //<form action="http://cyy.com/ci_cms/email/send" method="post" accept-charset="utf-8">
     echo form_open('email/send');
     echo form_close();
     echo '<br/>';
     //增加了属性
     //<form action="http://cyy.com/ci_cms/email/send" class="email" id="myform" method="post" accept-charset="utf-8">
     $attributes = array('class' => 'email', 'id' => 'myform');
     echo form_open('email/send', $attributes);
     echo form_close();
     echo '<br/>';
     //给表单添加隐藏域
     //
     $hidden = array('username' => 'Joe', 'member_id' => '234');
     echo form_open('email/send', '', $hidden);
     echo form_close();
     echo '<br/>';
 }
开发者ID:yunkaiyueming,项目名称:ci_cms,代码行数:26,代码来源:Helper_form_test.php


示例16: index

 public function index($type = null)
 {
     switch ($type) {
         case null:
             $this->load->library('form_validation');
             $this->form_validation->set_rules('verify', 'Verification Code', 'required|xss_clean|max_length[111]');
             if ($this->form_validation->run() !== false) {
                 redirect('verify/code/' . $this->input->post('verify'));
             }
             $this->load->view('header');
             echo form_open('verify');
             echo form_label('Verify:', 'verify');
             echo form_input('verify', '', 'id="verify_input"');
             echo form_submit('submit', 'Verify');
             echo form_close();
             $this->load->view('footer');
             break;
         case 'newAccount':
             echo "<h1>Verify New Account</h1>";
             echo anchor('verify/send/newAccount', 'Send Confirmation Email', 'title="Send Confirmation Email"');
             break;
         case 'connectAccounts':
             echo "<h1>Connect Accounts</h1><h2>An account with that email already exists.</h2>";
             echo anchor('verify/send/connectAccounts', 'Connect Accounts', 'title="Connect Accounts"');
             break;
     }
 }
开发者ID:AnchorActivism,项目名称:poetrystorm,代码行数:27,代码来源:verify.php


示例17: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"btn-group pull-right\">\n    <a class=\"btn btn-primary btn-small\" href=\"";
     // line 5
     echo twig_escape_filter($this->env, site_url("tugas/tambah_soal/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id")), "html", null, true);
     echo "\">Tambah Pertanyaan</a>\n    ";
     // line 6
     if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type_id") == 3) {
         // line 7
         echo "    <a class=\"btn btn-primary btn-small\" href=\"";
         echo twig_escape_filter($this->env, site_url("tugas/tambah_pilihan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "id")), "html", null, true);
         echo "\">Tambah Pilihan</a>\n    ";
     }
     // line 9
     echo "</div>\n\n<h4>Edit Pertanyaan ke ";
     // line 11
     echo twig_escape_filter($this->env, isset($context["no_pertanyaan"]) ? $context["no_pertanyaan"] : null, "html", null, true);
     echo "</h4>\n";
     // line 12
     echo get_flashdata("tugas");
     echo "\n\n";
     // line 14
     echo form_open("tugas/edit_soal/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "id"));
     echo "\n<table class=\"table table-striped\" style=\"margin-top:20px;\">\n    <tbody>\n        <tr>\n            <td>\n                <textarea name=\"pertanyaan\" id=\"pertanyaan\" style=\"height:400px;width:100%;\">";
     // line 19
     echo set_value("pertanyaan", html_entity_decode($this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "pertanyaan")));
     echo "</textarea>\n                ";
     // line 20
     echo form_error("pertanyaan");
     echo "\n            </td>\n        <tr>\n        <tr>\n            <td colspan=\"2\">\n                <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n            </td>\n        </tr>\n    </tbody>\n</table>\n";
     // line 30
     echo form_close();
     echo "\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:35,代码来源:71d49f7a78df3c2ae25b319519e77a446f8d21fcf0672fd1a09ecb88bc5d.php


示例18: close

 function close()
 {
     $output = form_close() . "\n";
     if ($this->form_id) {
         $output .= "<!-- closing " . $this->form_id . " -->\n";
     }
     return $output;
 }
开发者ID:nsbingham,项目名称:CI-Starter,代码行数:8,代码来源:formbuilder.php


示例19: index

 function index()
 {
     $this->rapyd->load('dataform', 'datatable', 'datagrid');
     $this->load->library('table');
     $base_process_uri = $this->rapyd->uri->implode_uri("base_uri", "gfid", "orderby");
     $filter = new DataForm($this->rapyd->uri->add_clause($base_process_uri, "search"));
     $filter->title('Elija una tabla');
     $filter->attributes = array('onsubmit' => 'is_loaded()');
     $filter->tabla = new dropdownField("Tabla", "tabla");
     $filter->tabla->option("pers", "Personal");
     $filter->tabla->option("nomina", "Nomina");
     $filter->tabla->option("sprv", "Proveedores");
     $filter->tabla->option("abonotros", "Abono Otros");
     $filter->tabla->clause = "";
     //$filter->obra = new dropdownField("Obra", "depto");
     //$filter->obra->db_name='depto';
     //$filter->obra->clause="where";
     //$filter->obra->option(" ","Todos");
     //$filter->obra->options("SELECT depto, descrip FROM dpto ORDER BY depto ");
     //$filter->obra->operator="=";
     //$filter->status = new dropdownField("Status","status");
     //$filter->status->option("","Todos");
     //$filter->status->option("A","Activos");
     //$filter->status->option("I","Inactivos");
     //$filter->status->style='width:100px';
     $filter->submit('btnsubmit', 'Descargar');
     $filter->build_form();
     if ($this->rapyd->uri->is_set("search")) {
         $table = $filter->tabla->newValue;
         $mSQL = "DESCRIBE {$table}";
         $query = $this->db->query($mSQL);
         if ($query->num_rows() > 0) {
             foreach ($query->result_array() as $row) {
                 $data[] = $row;
             }
         }
         function ractivo($field)
         {
             $data2 = array('name' => 'campos[]', 'id' => 'c' . $field, 'value' => $field, 'checked' => FALSE, 'style' => 'margin:5px');
             $retorna = form_checkbox($data2);
             return $retorna;
         }
         $grid = new DataGrid("Resultados", $data);
         $grid->use_function('ractivo', 'ucwords');
         $grid->column('Campos', '<ucwords><#Field#></ucwords>');
         $grid->column('Mostrar', "<ractivo><#Field#></ractivo>", 'align="center"');
         $grid->build();
         $tabla = $grid->output;
         $filter->build_form();
         $conten = $filter->output . form_open("nomina/rpers/crear/{$table}") . $tabla . form_submit('mysubmit', 'Generar') . form_close();
     } else {
         $conten = $filter->output;
     }
     $data['content'] = $conten;
     $data['title'] = heading('Reporte');
     $data["head"] = script("jquery.js") . $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:58,代码来源:rpers.php


示例20: classform

 public function  

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP form_comment函数代码示例发布时间:2022-05-15
下一篇:
PHP form_checkbox_cell函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap