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


PHP form::open_multipart方法代码示例

本文整理汇总了PHP中form::open_multipart方法的典型用法代码示例。如果您正苦于以下问题:PHP form::open_multipart方法的具体用法?PHP form::open_multipart怎么用?PHP form::open_multipart使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在form的用法示例。


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

示例1: array

<style type="text/css">
  table th {background:#222; color:#fff; font-weight:normal; text-align:center;}
  table td {border:1px solid #ccc;}
  table td input {width:115px !important;}
</style>

<span class="on_close two">close-2</span>

<?php 
echo form::open_multipart("edit_showroom/bulk_edit?pid={$this->pid}", array('class' => 'custom_ajaxForm'));
?>

  <div id="common_tool_header" class="buttons">
    <button type="submit" class="jade_positive" accesskey="enter">Save Changes</button>
    <div id="common_title">Bulk Edit Showroom Items</div>
  </div>  

  <div class="common_full_panel">
    <div class="common_half_left" style="width:620px; height:400px; overflow:auto; background:#fff">
      
    </div>
    
    <div class="common_half_right" style="width:110px;">
      <br/><br/><b>Category</b>
      <div id="category_wrapper">
        <?php 
echo $categories;
?>
      </div>
    </div>
开发者ID:plusjade,项目名称:plusjade,代码行数:30,代码来源:bulk_edit.php

示例2: array

<span class="on_close two"><?php 
echo $js_rel_command;
?>
</span>

<?php 
echo form::open_multipart("tool/css/{$name_id}/{$tool->id}", array('class' => 'ajaxForm', 'rel' => 'no_disable'));
?>
	
	<div style="padding:5px;">		
		<div style="padding-top:10px; float:right;">			
			Add Class: <input type="text" name="attributes" value="<?php 
echo $tool->attributes;
?>
">
			 <button type="submit" name="save_css" class="jade_positive">Save</button>
			 <button type="submit" name="save_template" class="jade_positive" value="true">Save as Template</button>
		</div>	
		Tool: <em><?php 
echo $toolname;
?>
</em> - Type: <em><?php 
echo $tool->type;
?>
</em> - View: <em><?php 
echo $tool->view;
?>
</em></small>	
		<?php 
if (!empty($theme_sass)) {
开发者ID:plusjade,项目名称:plusjade,代码行数:30,代码来源:edit_css.php

示例3: with

{
  with(document.options) {
    for(var i=0; i<elements.length; i++) {
      if(elements[i].type=='checkbox' && elements[i].name=='active_overlays[]') {
        elements[i].checked = false;
      }
    }
  }
}
</script>
  
<hr>
<div>
<h2>Upload New Overlay</h2>
<?php 
echo form::open_multipart('admin/emboss/new_overlay');
echo access::csrf_form_field();
echo form::upload(array('name' => 'overlay', 'style' => 'margin: .5em 0 .5em 0'));
echo form::submit(array('name' => 'Upload', 'style' => 'display:block; float:none'), 'Upload');
?>
</form>
</div>
<hr>
<div>
<?php 
echo form::open('admin/emboss/update', array('name' => 'options'));
echo access::csrf_form_field();
?>
<h2>Available Overlays</h2>
<table style="margin:.5em 0 .5em 0">
  <tr>
开发者ID:webmatter,项目名称:gallery3-contrib,代码行数:31,代码来源:admin_emboss.html.php

示例4: __

<?php

/**
 * Venue edit
 *
 * @package    Venues
 * @author     Antti Qvickström
 * @copyright  (c) 2010 Antti Qvickström
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 */
?>

<?php 
echo form::open_multipart();
?>

	<fieldset>
		<legend><?php 
echo __('Basic information');
?>
</legend>
		<ul>

			<?php 
echo form::dropdown_wrap('venue_category_id', $form, $values, '', __('Category'), $errors);
?>

			<?php 
echo form::input_wrap(array('name' => 'name', 'maxlength' => 100), $values, '', __('Name'), $errors);
?>
开发者ID:anqqa,项目名称:Anqh,代码行数:30,代码来源:venue_edit.php

示例5: array

<span class="on_close"><?php 
echo $js_rel_command;
?>
</span>

<?php 
echo form::open_multipart("edit_navigation/settings?pid={$navigation->id}", array('class' => 'ajaxForm'));
?>

	<div id="common_tool_header" class="buttons">
		<button type="submit" name="add_item" class="jade_positive" accesskey="enter">Save Settings</button>
		<div id="common_title">Edit Navigation Settings</div>
	</div>	

	<div class="fieldsets">
		<b>List Name</b> <input type="text" name="name" value="<?php 
echo $navigation->name;
?>
"  maxlength="100" style="width:350px">	
	
		<p style="line-height:1.6em">
			A List Name displays at the top of your Navigation list between <b>&lt;h2 class="navigation_title"&gt; &lt;/h2&gt;</b> tags.
			<br>
			<br>Customize the look by editing this tool's CSS file.  Look for the "navigation_title" class =).
		</p>
	</div>
	
</form>
开发者ID:plusjade,项目名称:plusjade,代码行数:28,代码来源:settings.php

示例6: array

<span class="on_close two">close-2</span>

<?php 
echo form::open_multipart("edit_showroom/edit/{$item->id}", array('class' => 'custom_ajaxForm'));
?>
	<input type="hidden" name="images" value="<?php 
echo $item->images;
?>
">
	
	<div id="common_tool_header" class="buttons">
		<button type="submit" class="jade_positive" accesskey="enter"> Save Changes</button>
		<div id="common_title">Edit Showroom item</div>
	</div>	
	
	<div class="common_left_panel">	
		<ul id="showroom_toggle" class="ui-tabs-nav">
			<li><a href="#" rel="params" class="selected"><b>Attributes</b></span></a><li>
			<li><a href="#" rel="images"><b>Images</b></span></a><li>
			<li><a href="#" rel="intro"><b>Introduction</b></span></a><li>
			<li><a href="#" rel="desc"><b>Main Description</b></span></a><li>
		</ul>
	</div>

	<div class="common_main_panel">
	
		<div id="params" class="toggle fieldsets">
			<b>Item Name</b>
			<br><input type="text" name="name" value="<?php 
echo $item->name;
开发者ID:plusjade,项目名称:plusjade,代码行数:30,代码来源:edit_item.php

示例7: blockfields


//.........这里部分代码省略.........
         $query = $query->where($where_string);
         try {
             $rows = $query->get();
         } catch (Exception $e) {
             echo Kohana::debug('Error: ' . "\n" . $e->getMessage() . "\n");
             die;
         }
         //escribiendo los campos de acuerdo a sus propiedades
         $data = new StdClass();
         $types->base_uri = $this->base_uri;
         $valid_count = FALSE;
         foreach ($rows as $row) {
             foreach ($OTMSelect as $nameOTM) {
                 $row->{$nameOTM} = 'null';
             }
             foreach ($row as $name => $value) {
                 $valid_count = TRUE;
                 if ($this->_OnlyRead == TRUE) {
                     $data->{$name} = $value;
                 } else {
                     $types->field_value = $value;
                     //          Si el campo es un "OneToMany"
                     if ($types->fields->{$name}->typefield == 'OneToMany' or $types->fields->{$name}->typefield == 'TabularModel') {
                         if (@$OneToMany[$name]['table'] == '') {
                             $modtable = substr($types->fields->{$name}->model, 4);
                             $OneToMany[$name] = fpp::GetOTM($modtable, $this->_Table);
                         }
                         $OTMArr = null;
                         //              Tomo el campo primario y secundario
                         $OTMdb_field = $OneToMany[$name]['secondary'];
                         $OTMdb_pk = $OneToMany[$name]['primary'];
                         $valuelistOTM = null;
                         try {
                             $valuelistOTM = $this->db->from($OneToMany[$name]['table'])->select($OTMdb_field)->where(array($OTMdb_pk => $id))->get();
                         } catch (Exception $e) {
                             echo Kohana::debug('Error: ' . "\n" . $e->getMessage() . "\n");
                             die;
                         }
                         foreach ($valuelistOTM as $rowOTM) {
                             $OTMArr[] = $rowOTM->{$OTMdb_field};
                         }
                         $types->field_value = $OTMArr;
                     }
                     $types->field_name = $name;
                     $arrayorder[$name] = $types->ObjectField($name);
                 }
             }
             foreach ($this->meta as $fieldname => $props) {
                 $data->{$fieldname} = $arrayorder[$fieldname];
             }
         }
     } else {
         foreach ($items as $name) {
             $valid_count = TRUE;
             $types->field_name = $name;
             $types->field_value = NULL;
             $data->{$name} = $types->ObjectField($name);
         }
     }
     //VIRTUAL
     if ($this->virtual != null) {
         $dirf = dirname(__FILE__);
         include_once $dirf . '/types/' . $this->virtual . '.php';
         $data->virtualfield = new $this->virtual();
         $data->virtualfield->id_table = $id;
         $titles['virtualfield'] = $data->virtualfield->title;
     }
     if ($this->virtualclone != null) {
         $dirf = dirname(__FILE__);
         include_once $dirf . '/types/' . $this->virtualclone . '.php';
         $data->virtualfieldc = new $this->virtualclone();
         $data->virtualfieldc->id_table = $id;
         $titles['virtualfieldc'] = $data->virtualfieldc->title;
     }
     //VIRTUAL
     if ($valid_count == FALSE) {
         return NULL;
     }
     $this->retfields = $data;
     //Setting Ajax
     $form = null;
     $attrform = null;
     if (@$_GET['AJAX_NO_LOAD'] == TRUE) {
         $form .= '<script>$(document).ready(function(){$(".FORM_AJAX").submit(function(){ return post_ajax(this); })});</script>';
         $attrform = array("class" => 'FORM_AJAX');
     }
     $urlform = NULL;
     if ($id > 0) {
         $this->uri = URI::Instance();
         $urlform = str_replace("add", "edit/" . $id, $this->uri);
     }
     $form .= form::open_multipart($urlform, $attrform);
     if ($this->GetFieldAjax != NULL) {
         $FAjax = $this->GetFieldAjax;
         return $data->{$FAjax};
     }
     $view_info = $this->_TabView == TRUE ? 'tabmodel' : 'info';
     $str = View::factory($this->templatedir . $view_info)->set('msg', $msg)->set('data', $data)->set('form', $form)->set('only_read', $this->_OnlyRead)->set('titles', $titles)->set('tblname', $this->_Table)->render();
     return $str;
 }
开发者ID:brojasmeneses,项目名称:floreriarosabel,代码行数:101,代码来源:fpp.php

示例8: array



<?php 
echo form::open_multipart("utada/settings", array('class' => 'custom_ajaxForm'));
?>

	<div id="common_tool_header" class="buttons">
		<button type="submit" name="edit_text" class="jade_positive">Save Changes</button>
		<div id="common_title">Configure +Jade Settings</div>
	</div>	
	
	Serve Full Page Cache:
	<select name="serve_page_cache">
		<option value="yes">Yes</option>
<?php 
if (!Kohana::config('core.serve_page_cache')) {
    echo '<option value="no" selected="selected">No</option>';
} else {
    echo '<option value="no">No</option>';
}
?>
	</select>
	<br/>Non protected pages are <b>always<b/> fully cached.
	This option is whether or not we want to serve them.
	
	<br/><br/>
	<a href="/get/utada/clear_all_cache">Clear All Page Cache.</a>
	<br/>Clear the page cache files of EVERY site.
	(each site can clear its page cache separately via site/settings.
	
	<br/><br/>
开发者ID:plusjade,项目名称:plusjade,代码行数:29,代码来源:settings.php

示例9: array

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<?php 
echo $head;
?>
	<?php 
Event::run('s7n.admin.theme.head');
?>
</head>

<body>
	<div id="dialog" style="display: none;">Möchten Sie diese Seite inklusive der Unterseiten wirklich löschen?</div>
	<div id="uploader" style="display: none;">
		<?php 
echo form::open_multipart("admin/upload/save", array('id' => 'imageuploadform', "target" => "uploadiframe"));
?>
		<?php 
echo form::upload('picture');
?>
		<?php 
echo form::close();
?>
		<iframe id="uploadiframe" name="uploadiframe" src="#" style="display:none;"></iframe>
		<div id="uploadmessage"></div>
	</div>
	<div id="logoProgress"></div>
	
	<div id="header">
		S7Nadmin
		<div class="info">
开发者ID:googlecode-mirror,项目名称:s7ncms,代码行数:31,代码来源:template.php

示例10: array

<span class="on_close"><?php 
echo $js_rel_command;
?>
</span>

<?php 
echo form::open_multipart("edit_text/add?pid={$item->id}", array('class' => 'ajaxForm'));
?>

	<div id="common_tool_header" class="buttons">
		<button type="submit" name="edit_text" class="jade_positive">Save Changes</button>
		<div id="common_title">Edit Text</div>
	</div>	
	
	<textarea name="body" class="render_html"><?php 
echo $item->body;
?>
</textarea>

</form>
开发者ID:plusjade,项目名称:plusjade,代码行数:20,代码来源:add_item.php

示例11: array

<span class="on_close two">close-2</span>

<?php 
echo form::open_multipart("edit_showroom/add_item/{$tool_id}", array('class' => 'ajaxForm'));
?>
	<input type="hidden" name="images" value="<?php 
echo $item->images;
?>
">
	
	<div id="common_tool_header" class="buttons">
		<button type="submit" class="jade_positive" accesskey="enter">Add Item</button>
		<div id="common_title">Add New Showroom Item</div>
	</div>	

	<div class="common_left_panel">	
		<ul id="showroom_toggle" class="ui-tabs-nav">
			<li><a href="#" rel="params" class="selected"><b>Attributes</b></span></a><li>
			<li><a href="#" rel="images"><b>Images</b></span></a><li>
			<li><a href="#" rel="intro"><b>Introduction</b></span></a><li>
			<li><a href="#" rel="desc"><b>Main Description</b></span></a><li>
		</ul>
	</div>

	<div class="common_main_panel">
	
		<div id="params" class="toggle fieldsets">
			<b>Item Name</b>
			<br><input type="text" name="name" rel="text_req" maxlength="50" style="width:275px">
			<br>
开发者ID:plusjade,项目名称:plusjade,代码行数:30,代码来源:add_item.php

示例12: defined

<? 
/**
 *@package Base
 **/
?>
<?php 
defined('SYSPATH') or die('No direct access allowed.');
?>
<h2><?php 
echo Kohana::lang('gallery.add_image');
?>
</h2>

<? base::errors($errors); ?>

<?
echo form::open_multipart(NULL, array('class' => 'glForms'),array('redirect' => $form['redirect']));
echo form::label('image', Kohana::lang('gallery.select_image'));
echo form::upload(array('name' => 'image'), $form['image']);
echo '<br />';
echo form::label('submit', '&nbsp;');
echo form::submit('submit', Kohana::lang('gallery.add_image'),'class=button');
echo '<br />';
echo form::close();
?>
开发者ID:repli2dev,项目名称:re-eshop,代码行数:25,代码来源:add_image.php

示例13: array

<h2 class="pad">Add a new Project</h2>
<?php 
echo form::open_multipart(null, array('method' => 'post', 'class' => 'project-form'));
?>
<fieldset class="project-type">
    <legend>Project Type</legend>
    <?php 
foreach ($project_types as $type_id => $type_name) {
    ?>
        <label><input type="radio" name="project[project_type_id]" value="<?php 
    echo $type_id;
    ?>
" />
        <?php 
    echo $type_name;
    ?>
</label>
    <?php 
}
?>
</fieldset>


<?php 
echo form::open_fieldset(array('class' => 'required-info'));
?>
    <?php 
echo form::legend('Project Info');
?>
    
开发者ID:hdragomir,项目名称:ProjectsLounge,代码行数:29,代码来源:add.php

示例14: __videos

 private function __videos()
 {
     $html = form::open_multipart();
     $html .= form::upload(array("name" => "video"), 'path/to/local/file') . '<br/>';
     $html .= form::label('title', 'Title');
     $html .= form::input(array("name" => "title", "class" => "fullWidth"));
     $html .= form::submit(array("value" => "upload", "class" => "submit"));
     $html .= form::close();
     return $html;
 }
开发者ID:sydlawrence,项目名称:SocialFeed,代码行数:10,代码来源:media.php

示例15: array

<span class="on_close"><?php 
echo $js_rel_command;
?>
</span>

<?php 
echo form::open_multipart("edit_calendar/edit/{$item->id}", array('class' => 'ajaxForm'));
?>

	<div id="common_tool_header" class="buttons">
		<button type="submit" name="edit_item" class="jade_positive">Save Changes</button>
		<div id="common_title">Edit Calendar Event</div>
	</div>	

	
	<ul class="common_tabs_x ui-tabs-nav">
		<li><a href="#calendar_title" class="selected"><b>Date and Title</b></span></a><li>
		<li><a href="#calendar_desc"><b>Description</b></span></a><li>
	</ul>
	
	
	<div class="common_full_panel">
	
		<div id="calendar_title" class="toggle fieldsets">
			<b>Title</b>
			<br><input type="text" name="title" value="<?php 
echo $item->title;
?>
" rel="text_req" style="width:300px">	
		</div>
开发者ID:plusjade,项目名称:plusjade,代码行数:30,代码来源:edit_item.php


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