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


PHP form_open_multipart函数代码示例

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


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

示例1: open

 function open($action, $multipart = FALSE, $params = array())
 {
     if ($this->options['auto_id'] == TRUE && isset($params['id']) && !empty($params['id'])) {
         $this->form_id = $params['id'];
     }
     if ($multipart == FALSE) {
         return "\n" . form_open($action, $params) . "\n";
     } else {
         return "\n" . form_open_multipart($action, $params) . "\n";
     }
 }
开发者ID:nsbingham,项目名称:CI-Starter,代码行数:11,代码来源:formbuilder.php

示例2: save_file

    function save_file()
    {
        $config['upload_path'] = 'picture';
        $config['encrypt_name'] = true;
        $config['allowed_types'] = 'jpg';
        $this->load->library('upload', $config);
        if (!$this->upload->do_upload()) {
            print_r($this->upload->display_errors());
            echo <<<EOF
<html>
<head>
<title>Upload Form</title>
</head>
<body>
EOF;
            echo form_open_multipart('debug/save_file');
            echo <<<EOF
<input type="file" name="userfile" size="20" />
<br /><br />
<input type="submit" value="upload" />
</form>
</body>
</html>
EOF;
        } else {
            print_r($this->upload->data());
            echo "Upload Success";
        }
    }
开发者ID:KIDJourney,项目名称:crashreport_service,代码行数:29,代码来源:debug.php

示例3: carga

 function carga()
 {
     $salida = '';
     //ini_set('upload_max_filesize','2000M');
     $salida .= form_open_multipart($this->url . 'guarda');
     $salida .= form_upload("archivo", "archivo");
     $salida .= form_submit('subir', 'Subir Archivos');
     $salida .= form_close();
     $data['content'] = $salida;
     $data['title'] = 'subedbfr Archivos .dbf Archivos dbf.';
     $this->load->view('view_ventanas_sola', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:12,代码来源:subedbf.php

示例4: edit_category

 /**
  * @param $cat_id - id of category
  */
 public function edit_category($cat_id)
 {
     $id = $this->security->xss_clean($cat_id);
     $category = $this->model_cms->getCategory($id);
     $message = array('flashdata-error' => $this->session->flashdata('error-message'), 'flashdata' => $this->session->flashdata('message'));
     $form = array('open' => form_open_multipart(site_url() . 'cms/categories/edit_category/' . $id, array('id' => 'edit-category-form')), 'close' => form_close());
     $set_value = array('name' => set_value('name'));
     $cat = array('id' => $id, 'name' => $category['name']);
     $this->smarty->assign('set_value', $set_value);
     $this->smarty->assign('cat', $cat);
     $this->smarty->assign('form', $form);
     $this->smarty->assign('message', $message);
     $this->form_validation->set_rules('name', 'Name', 'trim|required|xss_clean|min_length[3]');
     if ($this->form_validation->run() == false) {
         $this->smarty->assign('validation_errors', validation_errors());
         $this->data['content'] = $this->smarty->load('cms/editCategory', null, true);
         /* breadcrumbs */
         $this->breadcrumbs->unshift('Edit Category', site_url('cms/categories/edit_category'));
         $this->breadcrumbs->unshift('Categories Management', site_url('cms/categories'));
         $this->breadcrumbs->unshift('Admin Dashboard', site_url('cms/dashboard'));
         $this->load->view('cms/main', $this->data);
     } else {
         //check if admin choose a picture of category
         if (!is_uploaded_file($_FILES['userfile']['tmp_name'])) {
             $result = $this->model_cms->editCategory($id, $this->input->post('name'));
             if ($result) {
                 $this->session->set_flashdata('message', 'The ' . $this->input->post('name') . ' - name of category was successfully edited!');
             }
         } else {
             //upload the picture
             $this->do_upload($this->input->post('name'));
             $file_data = $this->upload->data();
             $result = $this->model_cms->editCategory($id, $this->input->post('name'), $file_data['file_name']);
             if ($result) {
                 $this->session->set_flashdata('message', 'The ' . $this->input->post('name') . ' - name and picture of category was successfully edited!');
             }
         }
         redirect('cms/categories/edit_category/' . $id);
     }
 }
开发者ID:sanekagr,项目名称:phoneshop,代码行数:43,代码来源:categories.php

示例5: profile

 public function profile($username)
 {
     //Reset the edit_profile_username session data
     unset($_SESSION['edit_profile_username']);
     //Set pagebody
     $this->data['pagebody'] = 'profile';
     //Will add an extra option if user can edit
     $this->data['edit'] = '';
     $this->data['delete'] = '';
     //Can the user accessing this page edit the profile?
     $can_edit = false;
     //If either it's an admin or own account, then can edit
     if (isset($_SESSION['admin']) && $_SESSION['admin']) {
         $can_edit = true;
     }
     if (isset($_SESSION['username']) && $_SESSION['username'] == $username) {
         $can_edit = true;
     }
     //Logic to see if you can edit the profile
     if ($can_edit) {
         $this->data['edit'] = '<br/>
             <a href="/Account/edit/"> Click here to change your password </a>';
         $this->data['delete'] = '<br/>
              <a href="/Account/delete/"> Click here to delete your profile </a>';
         $this->data['multi_part_upload'] = form_open_multipart('Account/do_upload');
         $_SESSION['edit_profile_username'] = $username;
     } else {
         //It's already set to empty string already
     }
     //query will hold the selected profile id
     $query = $this->users->get_by_username($username);
     $this->data['profile_pic'] = "<img src='" . base_url() . $query->profile_picture . "'>";
     $this->data['username'] = $query->username;
     $this->data['email'] = $query->email;
     //unset sign up error
     unset($_SESSION['signup_error']);
     //unset sign in error
     unset($_SESSION['login_error']);
     $this->render();
 }
开发者ID:Benier,项目名称:ProjectWebapp,代码行数:40,代码来源:Account.php

示例6: 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

示例7: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>Pengaturan</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("pengaturan");
     echo "\n\n        ";
     // line 15
     echo form_open_multipart("welcome/pengaturan", array("class" => "form-horizontal row-fluid"));
     echo "\n            <div class=\"control-group\">\n                <label class=\"control-label\">Nama sekolah <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"nama-sekolah\" class=\"span8\" value=\"";
     // line 19
     echo twig_escape_filter($this->env, set_value("nama-sekolah", get_pengaturan("nama-sekolah", "value")), "html", null, true);
     echo "\">\n                    <br>";
     // line 20
     echo form_error("nama-sekolah");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Alamat sekolah <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"alamat\" class=\"span8\" value=\"";
     // line 26
     echo twig_escape_filter($this->env, set_value("alamat", get_pengaturan("alamat", "value")), "html", null, true);
     echo "\">\n                    <br>";
     // line 27
     echo form_error("alamat");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Telpon</label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"telp\" class=\"span5\" value=\"";
     // line 33
     echo twig_escape_filter($this->env, set_value("telp", get_pengaturan("telp", "value")), "html", null, true);
     echo "\">\n                    <br>";
     // line 34
     echo form_error("telp");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Registrasi siswa</label>\n                <div class=\"controls\">\n                    <label class=\"radio inline\">\n                        <input type=\"radio\" name=\"registrasi-siswa\" value=\"1\" ";
     // line 41
     echo twig_escape_filter($this->env, set_radio("registrasi-siswa", "1", get_pengaturan("registrasi-siswa", "value") == "1" ? true : ""), "html", null, true);
     echo "> Tampilkan\n                    </label>\n                    <label class=\"radio inline\">\n                        <input type=\"radio\" name=\"registrasi-siswa\" value=\"0\" ";
     // line 44
     echo twig_escape_filter($this->env, set_radio("registrasi-siswa", "0", get_pengaturan("registrasi-siswa", "value") == "0" ? true : ""), "html", null, true);
     echo "> Sembuyikan\n                    </label>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Registrasi pengajar</label>\n                <div class=\"controls\">\n                    <label class=\"radio inline\">\n                        <input type=\"radio\" name=\"registrasi-pengajar\" value=\"1\" ";
     // line 52
     echo twig_escape_filter($this->env, set_radio("registrasi-pengajar", "1", get_pengaturan("registrasi-pengajar", "value") == "1" ? true : ""), "html", null, true);
     echo "> Tampilkan\n                    </label>\n                    <label class=\"radio inline\">\n                        <input type=\"radio\" name=\"registrasi-pengajar\" value=\"0\" ";
     // line 55
     echo twig_escape_filter($this->env, set_radio("registrasi-pengajar", "0", get_pengaturan("registrasi-pengajar", "value") == "0" ? true : ""), "html", null, true);
     echo "> Sembuyikan\n                    </label>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Info Registrasi</label>\n                <div class=\"controls\">\n                    <textarea name=\"info-registrasi\" class=\"tinymce\" style=\"width:100%; height:300px;\">";
     // line 62
     echo set_value("info-registrasi", get_pengaturan("info-registrasi", "value"));
     echo "</textarea>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Peraturan E-learning</label>\n                <div class=\"controls\">\n                    <textarea name=\"peraturan-elearning\" class=\"tinymce\" style=\"width:100%; height:300px;\">";
     // line 68
     echo set_value("peraturan-elearning", get_pengaturan("peraturan-elearning", "value"));
     echo "</textarea>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Email server</label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"email-server\" class=\"span5\" value=\"";
     // line 74
     echo twig_escape_filter($this->env, set_value("email-server", get_pengaturan("email-server", "value")), "html", null, true);
     echo "\">\n                    <br>";
     // line 75
     echo form_error("email-server");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <div class=\"controls\">\n                    <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n                </div>\n            </div>\n        ";
     // line 83
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
开发者ID:unregister,项目名称:new_elearning,代码行数:56,代码来源:7c6785edc4eca16ab1544d48104c49727a1d4b532f8759711570632a9508.php

示例8: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 10
     echo anchor("pengumuman", "Pengumuman");
     echo " / Buat Pengumuman</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("pengumuman");
     echo "\n\n        ";
     // line 15
     echo form_open_multipart("pengumuman/add", array("class" => "form-horizontal row-fluid"));
     echo "\n            <div class=\"control-group\">\n                <label class=\"control-label\">Judul <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"judul\" class=\"span12\" value=\"";
     // line 19
     echo twig_escape_filter($this->env, set_value("judul"), "html", null, true);
     echo "\">\n                    <br>";
     // line 20
     echo form_error("judul");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Tgl. Tampil <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"tgl_tampil\" class=\"span4\" value=\"";
     // line 26
     echo twig_escape_filter($this->env, set_value("tgl_tampil"), "html", null, true);
     echo "\" id=\"tgl-tampil\">\n                    <br>";
     // line 27
     echo form_error("tgl_tampil");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Konten <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <textarea name=\"konten\" id=\"konten\" style=\"height:400px;width:100%;\">";
     // line 33
     echo set_value("konten");
     echo "</textarea>\n                    ";
     // line 34
     echo form_error("konten");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Tampil Disiswa</label>\n                <div class=\"controls\">\n                    <label class=\"radio inline\"><input type=\"radio\" name=\"tampil_siswa\" value=\"1\" ";
     // line 40
     echo twig_escape_filter($this->env, set_radio("tampil_siswa", "1", true), "html", null, true);
     echo "> Ya</label>\n                    <label class=\"radio inline\"><input type=\"radio\" name=\"tampil_siswa\" value=\"0\" ";
     // line 41
     echo twig_escape_filter($this->env, set_radio("tampil_siswa", "0"), "html", null, true);
     echo "> Tidak</label>\n                    <br>";
     // line 42
     echo form_error("tampil_siswa");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Tampil Dipengajar</label>\n                <div class=\"controls\">\n                    <label class=\"radio inline\"><input type=\"radio\" name=\"tampil_pengajar\" value=\"1\" ";
     // line 48
     echo twig_escape_filter($this->env, set_radio("tampil_pengajar", "1", true), "html", null, true);
     echo "> Ya</label>\n                    <label class=\"radio inline\"><input type=\"radio\" name=\"tampil_pengajar\" value=\"0\" ";
     // line 49
     echo twig_escape_filter($this->env, set_radio("tampil_pengajar", "0"), "html", null, true);
     echo "> Tidak</label>\n                    <br>";
     // line 50
     echo form_error("tampil_pengajar");
     echo "\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 56
     echo twig_escape_filter($this->env, site_url("pengumuman"), "html", null, true);
     echo "\" class=\"btn btn-default\">Kembali</a>\n                </div>\n            </div>\n        ";
     // line 59
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:56,代码来源:58006a588f0a4ee0ad62ee15f16934eaa6e7702c279fed53fae5649b6dcf.php

示例9: index

 public function index()
 {
     if ($this->input->get("pw") !== $this->pw) {
         return redirect(get_link("home_url"));
     }
     if (isset($_FILES['image'])) {
         return $this->watermark();
     }
     echo form_open_multipart("watermark?pw=" . $this->pw, array());
     echo "<input type='file' name='image'/>";
     echo "<input type='submit' />";
     echo "</form>";
 }
开发者ID:NaszvadiG,项目名称:BurgeCMF,代码行数:13,代码来源:CE_Watermark.php

示例10: feedback

 public function feedback()
 {
     $urldata = $this->uri->uri_to_assoc(3);
     $id = $urldata['id'];
     $id = $id ? $id : message($this->lang->line('error'), 'message/manage');
     $data = $this->common->setConfig($this->common->configs, array('global.css'), array($this->common->js, 'validateMyForm/jquery.validateMyForm.1.0.js'));
     $this->load->helper(array('form'));
     $data['form'] = form_open_multipart('message/save', array('id' => 'form1'));
     $data['id'] = $id;
     $this->load->view('head', $data);
     $this->load->view('message_feedback');
     $this->load->view('foot');
 }
开发者ID:gukefei,项目名称:xcenter,代码行数:13,代码来源:message.php

示例11: showForm

 function showForm()
 {
     $this->output = form_open_multipart($this->data['segment'] . $this->data['id']);
     if (isset($this->data['id']) and $this->data['id'] != 0) {
         $this->output .= form_hidden('id', $this->data['id']);
     }
     foreach ($this->data['fields'] as $key => $value) {
         $this->output .= "\n" . '<div id="ssForm_' . $key . '">';
         switch ($value['type']) {
             case 'hidden':
                 $this->output .= "\n\t" . form_hidden($key, $value['value']);
                 break;
             case 'text':
                 $this->output .= "\n\t" . form_label($value['desc'], $key);
                 $this->output .= "\n\t" . form_input($key, $value['value']);
                 $this->output .= "\n" . form_error($key);
                 break;
             case 'date':
                 $this->output .= "\n\t" . form_label($value['desc'], $key);
                 $this->output .= "\n\t" . form_input($key, $value['value'], 'class="ssDate"');
                 $this->output .= "\n" . form_error($key);
                 break;
             case 'textarea':
                 $this->output .= "\n\t" . form_label($value['desc'], $key);
                 $this->output .= "\n\t" . form_textarea($key, $value['value']);
                 $this->output .= "\n" . form_error($key);
                 break;
             case 'dropdown':
                 $this->output .= "\n\t" . form_label($value['desc'], $key);
                 $this->output .= "\n\t" . form_dropdown($key, $value['options'], $value['value']);
                 $this->output .= "\n" . form_error($key);
                 break;
             case 'checkbox':
                 $this->output .= "\n\t" . form_label($value['desc'], $key);
                 $this->output .= "\n\t" . form_checkbox($key, $value['value'], $value['checked']);
                 $this->output .= "\n" . form_error($key);
                 break;
             case 'upload':
                 $this->output .= "\n\t" . form_label($value['desc'], $key);
                 $this->output .= "\n\t" . form_upload($key, $value['value']);
                 $this->output .= "\n" . is_array($this->upload_error) ? '<p>Err:' . $this->upload_error[$key] . '</p>' : '<p></p>';
                 break;
             default:
                 break;
         }
         $this->output .= '</div>';
     }
     $this->output .= "\n" . '<div>' . "\n\t" . form_submit('submit', $this->button, 'class="submit"') . "\n" . '</div>';
     $this->output .= "\n" . form_close();
     return $this->output;
 }
开发者ID:polarity,项目名称:CISSFormung,代码行数:51,代码来源:Formung.php

示例12: set_form_edit

 public function set_form_edit($MemberID)
 {
     $data = $this->get_user();
     $i_PersonalID = array('name' => 'PersonalID', 'value' => $data['PersonalID'], 'placeholder' => 'รหัสประจำตัวประชาชน', 'class' => 'form-control');
     $i_Username = array('name' => 'UserName', 'value' => $data['UserName'], 'placeholder' => 'ชื่อผู้ใช้', 'class' => 'form-control');
     $i_Password = array('name' => 'Password', 'value' => $data['Password'], 'placeholder' => 'รหัสผ่าน', 'class' => 'form-control');
     $i_Fname = array('name' => 'Fname', 'value' => $data['Fname'], 'placeholder' => 'ชื่อ', 'class' => 'form-control');
     $i_Lname = array('name' => 'Lname', 'value' => $data['Lname'], 'placeholder' => 'นามสกุล', 'class' => 'form-control');
     $i_MobilePhone = array('name' => 'MobilePhone', 'value' => $data['MobilePhone'], 'placeholder' => 'เบอร์โทรศัพท์', 'class' => 'form-control');
     $i_Email = array('name' => 'Email', 'value' => $data['Email'], 'placeholder' => 'อีเมล', 'class' => 'form-control');
     $i_ImageUserID = array('name' => "ImageUserID", 'value' => $data['ImageUserID'], 'placeholder' => 'รูปภาพ', 'type' => 'file', 'class' => '');
     $form_add = array('form_open' => form_open_multipart(base_url("user/edit/{$MemberID}"), array('class' => 'form-horizontal', 'id' => 'frm_user')), 'PersonalID' => form_input($i_PersonalID), 'UserName' => form_input($i_Username), 'Password' => form_input($i_Password), 'Fname' => form_input($i_Fname), 'Lname' => form_input($i_Lname), 'MobilePhone' => form_input($i_MobilePhone), 'Email' => form_input($i_Email), 'ImageUserID' => form_input($i_ImageUserID), 'form_close' => form_close());
     return $form_add;
 }
开发者ID:VoRDKW,项目名称:kw_smart,代码行数:14,代码来源:UserModel.php

示例13: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 10
     echo anchor("message", "Pesan");
     echo " / Tulis</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("msg");
     echo "\n\n        ";
     // line 15
     echo form_open_multipart("message/create/" . (!twig_test_empty(isset($context["login"]) ? $context["login"] : null) ? $this->getAttribute(isset($context["login"]) ? $context["login"] : null, "id") : ""), array("class" => "form-horizontal row-fluid"));
     echo "\n            <div class=\"control-group\">\n                <label class=\"control-label\">Penerima <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    ";
     // line 19
     if (twig_test_empty(isset($context["login"]) ? $context["login"] : null)) {
         // line 20
         echo "                        <input type=\"text\" name=\"penerima\" id=\"penerima\" data-role=\"tagsinput\" placeholder=\"Nama atau email\" value=\"";
         echo twig_escape_filter($this->env, html_entity_decode(set_value("penerima")), "html", null, true);
         echo "\">\n                        <br>";
         // line 21
         echo form_error("penerima");
         echo "\n                    ";
     } else {
         // line 23
         echo "                        <div style=\"margin-top: 5px;\"><b>";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["login"]) ? $context["login"] : null, "profil"), "nama"), "html", null, true);
         echo " </b> &lt;";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["login"]) ? $context["login"] : null, "username"), "html", null, true);
         echo "&gt;</div>\n                        <input type=\"hidden\" name=\"penerima\" value=\"";
         // line 24
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["login"]) ? $context["login"] : null, "profil"), "nama"), "html", null, true);
         echo " <";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["login"]) ? $context["login"] : null, "username"), "html", null, true);
         echo ">\">\n                    ";
     }
     // line 26
     echo "                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Isi Pesan <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <textarea name=\"content\" id=\"content\" style=\"height:300px;width:100%;\">";
     // line 31
     echo set_value("content");
     echo "</textarea>\n                    ";
     // line 32
     echo form_error("content");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <div class=\"controls\">\n                    <button type=\"submit\" class=\"btn btn-primary\">Kirim</button>\n                    <a href=\"";
     // line 38
     echo twig_escape_filter($this->env, site_url("message"), "html", null, true);
     echo "\" class=\"btn btn-default\">Batal</a>\n                </div>\n            </div>\n        ";
     // line 41
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:50,代码来源:a628a8ea04528ec1abe306796622093d88686157145f6e5721b5e7920beb.php

示例14: index

    public function index()
    {
        echo '<html>
<head>
<meta http-equiv="Content-Language" content="en" />
<meta name="GENERATOR" content="PHPEclipse 1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>title</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99">
' . form_open_multipart('api/customerV2/sendcomment/878') . '
  <input type="text" name="commentTo" value="111" />  <input type="text" name="contentid" value="111" />
<input type="text" name="comment" value="test"/><input type="text" name="type" value="topic"/>
 <input type="submit" name="name" value="测试"/>
' . form_close() . '</body></html>';
    }
开发者ID:sexseses,项目名称:meilimei_old_api,代码行数:16,代码来源:test.php

示例15: 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("akun");
     echo "\n\n        ";
     // line 11
     echo form_open_multipart("admin/ch_profil", array("class" => "form-horizontal row-fluid"));
     echo "\n            <div class=\"control-group\">\n                <label class=\"control-label\">Username (Email) <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"username\" class=\"span5\" value=\"";
     // line 15
     echo twig_escape_filter($this->env, set_value("username", $this->getAttribute(isset($context["login"]) ? $context["login"] : null, "username")), "html", null, true);
     echo "\">\n                    <br>";
     // line 16
     echo form_error("username");
     echo "\n                </div>\n            </div>\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=\"span5\" value=\"";
     // line 22
     echo twig_escape_filter($this->env, set_value("nama", $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama")), "html", null, true);
     echo "\">\n                    <br>";
     // line 23
     echo form_error("nama");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Alamat <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"alamat\" class=\"span9\" value=\"";
     // line 29
     echo twig_escape_filter($this->env, set_value("alamat", $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "alamat")), "html", null, true);
     echo "\">\n                    <br>";
     // line 30
     echo form_error("alamat");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Foto</label>\n                <div class=\"controls\">\n                    <?php if (!is_null(\$pengajar['foto']) AND !empty(\$pengajar['foto'])): ?>\n                    ";
     // line 37
     if ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "foto") != "") {
         // line 38
         echo "                        <img src=\"";
         echo twig_escape_filter($this->env, get_url_image($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "foto"), "medium"), "html", null, true);
         echo "\"><br><br>\n                        Ganti Foto\n                    ";
     }
     // line 41
     echo "                   <input type=\"file\" name=\"userfile\">\n                   <br>";
     // line 42
     echo isset($context["error_upload"]) ? $context["error_upload"] : null;
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <div class=\"controls\">\n                    <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n                </div>\n            </div>\n        ";
     // line 50
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:47,代码来源:c6e19ab5aa1efc7340cfc6a17cc0b1f6d796053dc5462caaf0b6db01fae0.php


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