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

PHP form_open函数代码示例

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

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



在下文中一共展示了form_open函数的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: 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


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


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


示例5: ana_kategori_ekle

    function ana_kategori_ekle()
    {
        $ozellikler = array('class' => 'kategoriEkleForm', 'id' => 'kategoriEkleForm');
        $html = form_open('kategoriler/kategori_ekle', $ozellikler);
        $html .= '<div class="col-md-4">';
        $html .= form_label('Kategori Adı', 'katAdi" class="label');
        $html .= form_input('katAdi" id="katAdi', '', 'onkeyup="seoOlustur(this.value); hCD(\'katAdi\'); kategoriMukerrerKontrol(this.value);" autocomplete="off"');
        $html .= form_label('Sef Link', 'sefLink" class="label');
        $html .= form_input('sefLink" id="sefLink', '', 'onkeyup="hCD(\'sefLink\');" autocomplete="off"');
        $html .= form_label('Title', 'title" class="label');
        $html .= form_input('title" id="title', '', 'onkeyup="hCD(\'title\');" autocomplete="off"');
        $html .= form_label('Description', 'description" class="label');
        $html .= form_input('description" id="description', '', 'onkeyup="hCD(\'description\');" autocomplete="off"');
        $html .= form_label('Keywords', 'keys" class="label');
        $html .= form_input('keys" id="keys', '', 'onkeyup="hCD(\'keys\');" autocomplete="off"');
        $html .= form_submit('kaydet" id="kaydetTus" onclick="return kategoriKaydetKontrol();', 'Kaydet');
        $html .= form_hidden('kategori_no', $this->input->post('kategori_no', true));
        $html .= '<div id="kayitSonuc">
					<img id="kaydediliyor" src="' . base_url() . 'resimler/loading.gif" />
					<div id="hataMesaji">Kaydediliyor !..</div>
				</div>';
        $html .= '</div>';
        $html .= form_close();
        echo $html;
    }
开发者ID:alyayazilim,项目名称:E-Ticaret-2015,代码行数:25,代码来源:Ajax_istekleri.php


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


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


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


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


示例10: checkStatus

function checkStatus($url, $id, $title)
{
    $CI =& get_instance();
    $ee = $title;
    $strStatus = '';
    $stat = 0;
    $btnSubmitStatus = '';
    switch ($CI->session->userdata("level")) {
        case 1:
            $btnSubmitStatus = "style='cursor:pointer;' onclick=formSubmit('f" . $id . "')";
            break;
        case 2:
            $btnSubmitStatus = "class='img_grey'";
            break;
        default:
            echo "Tahap Akses belum diset!!!";
            break;
    }
    $attributes = array('name' => 'f' . $id, 'id' => 'f' . $id);
    //open form with codeigniter to included CSRF
    $strStatus .= form_open($url, $attributes);
    $strStatus .= '<div align="center">';
    if ($ee == 1) {
        $strStatus .= "<img src='" . base_url() . "images/on.png'\n\t\t{$btnSubmitStatus} id='element' data-original-title='Enable Content'  />";
        $stat = 0;
    } else {
        $strStatus .= "<img src='" . base_url() . "images/off.png'\n\t{$btnSubmitStatus} alt='DELETE' id='element' data-original-title='Disable Content' />";
        $stat = 1;
    }
    $strStatus .= '<input name="hid_status" type="hidden" value="' . $stat . '">
	<input name="hid_id" type="hidden" value="' . $id . '">
	</div>
	</form>';
    return $strStatus;
}
开发者ID:NeroJz,项目名称:ekv,代码行数:35,代码来源:datatables_helper.php


示例11: display

 /**
  * Displays the details of the requested stock.
  */
 public function display()
 {
     $this->load->helper('form');
     if (!empty($this->input->post('stock'))) {
         $code = $this->input->post('stock');
         $this->data['src'] = "../assets/js/stock-history.js";
     } else {
         $code = $this->uri->segment(3);
         $this->data['src'] = "../../assets/js/stock-history.js";
     }
     $this->data['title'] = "Stocks ~ {$code}";
     $this->data['left-panel-content'] = 'stock/index';
     $this->data['right-panel-content'] = 'stock/sales';
     $this->data['stock_code'] = $code;
     $this->data['trans'] = $this->transactions->getSalesTransactions($code);
     $form = form_open('stock/display');
     $stock_codes = array();
     $stock_names = array();
     $stocks = $this->stocks->getAllStocks();
     $stock = $this->stocks->get($code);
     foreach ($stocks as $item) {
         array_push($stock_codes, $item->Code);
         array_push($stock_names, $item->Name);
     }
     $stocks = array_combine($stock_codes, $stock_names);
     $select = form_dropdown('stock', $stocks, $code, "class = 'form-control'" . "onchange = 'this.form.submit()'");
     $this->data['Name'] = $stock->Name;
     $this->data['Code'] = $stock->Code;
     $this->data['Category'] = $stock->Category;
     $this->data['Value'] = money_format("\$%i", $stock->Value);
     $this->data['form'] = $form;
     $this->data['select'] = $select;
     $this->render();
 }
开发者ID:khoanguyen96,项目名称:stock-ticker,代码行数:37,代码来源:Stock.php


示例12: display

 /**
  * Displays a Player based on an post request of the dropdown menu.
  */
 public function display()
 {
     $this->data['transactions'] = $this->transactions->getAllTransactions();
     $this->data['players'] = $this->players->getAllPlayers();
     $this->load->helper('form');
     $code = $this->input->post('player');
     $this->data['Playername'] = $code;
     $this->data['title'] = "Stock Ticker";
     $this->data['left-panel-content'] = 'player/players';
     $this->data['right-panel-content'] = 'player/transactions';
     $this->data['player_code'] = $code;
     $form = form_open('player/display');
     $player_cash = array();
     $player_names = array();
     $players = $this->players->getAllPlayers();
     foreach ($players as $item) {
         array_push($player_names, $item->Player);
         array_push($player_cash, $item->Cash);
     }
     $players = array_combine($player_names, $player_names);
     $select = form_dropdown('player', $players, $code, "class = 'form-control'" . "onchange = 'this.form.submit()'");
     $this->data['form'] = $form;
     $this->data['select'] = $select;
     $this->data['ptrans'] = $this->transactions->getPlayerTransactions($code);
     $this->data['holdings'] = $this->transactions->getCurrentHoldings($code);
     $this->render();
 }
开发者ID:khoanguyen96,项目名称:stock-ticker,代码行数:30,代码来源:Player.php


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


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


示例15: open

	/**
	 * Create form open
	 * @param array $data Data array
         * @return string HTML form open
	 */
	public function open($data=NULL) {
                $form_action = NULL;
                $uri = NULL;
                if (isset($this->uri)) {
                        $uri = $this->uri;
                } else {
                        $uri = $data['uri'];
                        if (empty($uri)) {
                                $uri = current_url();
                        }
                }
                if (isset($this->on_success)) {
                        $data['form_action'] = array('form_action' => 'auto');
                }
                $name = isset($this->name) ? $this->name : $data['name'];
                $data['name'] = $name;
		$data['id'] = isset($data['id']) ? $data['id'] : $data['name'];
                if (! $this->render) { 
                        $data['id'] = 'form_'.$data['id'];
                        $data['id'] = str_replace('form_form_', 'form_', $data['id']);
                        $data['uri'] = $uri;
                        $this->data[] = array('open' => $data);
                }
                $data = $this->_sanitize_param($data);
		$returns = form_open($uri, $data, $data['form_action']);
                $this->returns[] = $returns;
                return $returns;
	}
开发者ID:randidwiputra,项目名称:aplikasi-kasbon,代码行数:33,代码来源:Form.php


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


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


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


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


示例20: 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/mantenimient 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP form_open_multipart函数代码示例发布时间:2022-05-15
下一篇:
PHP form_multiselect函数代码示例发布时间: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