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


PHP form_tag_for函数代码示例

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


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

示例1: include_partial



<div class="block" id="block-tables">

  <?php 
include_partial('idProject/sf_guard_create_menu', array('module_name' => 'permission'));
?>

  <div class="content">
    <h2 class="title"><?php 
echo __('Edit permission');
?>
</h2>
    <div class="inner">
      <?php 
echo form_tag_for($form, '@sf_guard_permission', array('class' => 'form'));
?>
      
        <?php 
include_partial('idProject/sf_guard_form_header', array('form' => $form, 'module_name' => 'permission'));
?>

        <table class="table">

         <?php 
include_partial('idProject/content_table', array('configuration' => $configuration, 'form' => $form));
?>

        </table>

        <?php 
开发者ID:kmatu,项目名称:phpcollab3,代码行数:29,代码来源:editSuccess.php

示例2: include_javascripts_for_form

<?php include_javascripts_for_form($form) ?>
<?php include_stylesheets_for_form($form) ?>


<?php echo form_tag_for($form, '@level', array('class'=>'form-horizontal') ) ?>
  <?php echo $form->renderGlobalErrors() ?>
  <?php echo $form->renderHiddenFields() ?>

  <fieldset>

    <?php echo $form['name']->renderRow() ?>

    <?php echo $form['abbreviation']->renderRow() ?>

    <?php echo $form['description']->renderRow() ?>


    <div class="form-actions">
      <input class="btn btn-success" type="submit" value="Speichern" />  
      <?php echo link_to('Abbrechen', 'level', array(), array(  'class' => 'btn') ) ?>  
<?php if ($sf_user->hasCredential('superuser')): ?>
  <?php echo link_to('Delete', 'level_delete', $ds_level, array(  'class' => 'delete',  'method' => 'delete',  'confirm' => 'Are You Sure?')) ?>

<?php endif; ?>
    </div>

  </fieldset>
</form>
开发者ID:romankallweit,项目名称:swingmachine,代码行数:28,代码来源:_form.php

示例3: include_stylesheets_for_form

<?php

include_stylesheets_for_form($form);
include_javascripts_for_form($form);
?>

<div class="sf_admin_form">
  <?php 
echo form_tag_for($form, '@garage');
?>
    <?php 
echo $form->renderHiddenFields();
?>

    <?php 
if ($form->hasGlobalErrors()) {
    ?>
      <?php 
    echo $form->renderGlobalErrors();
    ?>
    <?php 
}
?>

    <?php 
foreach ($configuration->getFormFields($form, $form->isNew() ? 'new' : 'edit') as $fieldset => $fields) {
    ?>
      <?php 
    include_partial('garage/form_fieldset', array('garage' => $garage, 'form' => $form, 'fields' => $fields, 'fieldset' => $fieldset));
    ?>
    <?php 
开发者ID:nacef,项目名称:Garage-Inc,代码行数:31,代码来源:_form.php

示例4: use_stylesheets_for_form

<?php

use_stylesheets_for_form($form);
use_javascripts_for_form($form);
?>

<div class="sf_admin_form">
  <?php 
echo form_tag_for($form, '@jobeet_category');
?>
    <?php 
echo $form->renderHiddenFields(false);
?>

    <?php 
if ($form->hasGlobalErrors()) {
    ?>
      <?php 
    echo $form->renderGlobalErrors();
    ?>
    <?php 
}
?>

    <?php 
foreach ($configuration->getFormFields($form, $form->isNew() ? 'new' : 'edit') as $fieldset => $fields) {
    ?>
      <?php 
    include_partial('category/form_fieldset', array('JobeetCategory' => $JobeetCategory, 'form' => $form, 'fields' => $fields, 'fieldset' => $fieldset));
    ?>
    <?php 
开发者ID:rdi0r,项目名称:dreamrc,代码行数:31,代码来源:_form.php

示例5: use_stylesheets_for_form

<?php

use_stylesheets_for_form($form);
use_javascripts_for_form($form);
?>

<?php 
echo form_tag_for($form, '@job');
?>
  <table id="job_form">
    <tfoot>
      <tr>
        <td colspan="2">
          <input type="submit" value="Preview your job" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php 
echo $form;
?>
    </tbody>
  </table>
</form>
开发者ID:AinhoaLM,项目名称:jobeet,代码行数:24,代码来源:_form.php

示例6: use_stylesheets_for_form

<?php

use_stylesheets_for_form($form);
use_javascripts_for_form($form);
?>

<div class="sf_admin_form">
  
  <?php 
echo form_tag_for($form, '@blog_ads');
?>
    <?php 
echo $form->renderHiddenFields(false);
?>

    <?php 
if ($form->hasGlobalErrors()) {
    ?>
      <?php 
    echo $form->renderGlobalErrors();
    ?>
    <?php 
}
?>
      
    <fieldset id="sf_fieldset_general">
      <div class="content_box_header">
        <h2><?php 
echo __('General');
?>
</h2>
开发者ID:ndachez,项目名称:acb,代码行数:31,代码来源:_form.php

示例7: use_stylesheets_for_form

<?php

use_stylesheets_for_form($form);
use_javascripts_for_form($form);
?>



<div class="sf_admin_form">
  <?php 
echo form_tag_for($form, '@shop');
?>
  <?php 
include_partial('shop/form_actions', array('shop' => $shop, 'form' => $form, 'configuration' => $configuration, 'helper' => $helper));
?>
  
    <?php 
echo $form->renderHiddenFields(true);
?>

    <?php 
if ($form->hasGlobalErrors()) {
    ?>
      <?php 
    echo $form->renderGlobalErrors();
    ?>
    <?php 
}
?>

	<table style="width:250px;">
开发者ID:vcgato29,项目名称:poff,代码行数:31,代码来源:_form.php

示例8: use_stylesheets_for_form

<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<?php use_helper('sfAsset') ?>
<?php echo init_asset_library() ?>

<div class="sf_admin_form">
  <?php echo form_tag_for($form, '@sf_simple_blog_post') ?>
    <?php echo $form->renderHiddenFields(false) ?>

    <?php if ($form->hasGlobalErrors()): ?>
      <?php echo $form->renderGlobalErrors() ?>
    <?php endif; ?>

    <?php foreach ($configuration->getFormFields($form, $form->isNew() ? 'new' : 'edit') as $fieldset => $fields): ?>
      <?php include_partial('sfSimpleBlogPostAdmin/form_fieldset', array('sf_simple_blog_post' => $sf_simple_blog_post, 'form' => $form, 'fields' => $fields, 'fieldset' => $fieldset)) ?>
    <?php endforeach; ?>

    <?php include_partial('sfSimpleBlogPostAdmin/form_actions', array('sf_simple_blog_post' => $sf_simple_blog_post, 'form' => $form, 'configuration' => $configuration, 'helper' => $helper)) ?>
  </form>
</div>
<?php if (!$form->isNew()): ?>
  <?php include_partial('versions', array('versions' => $form->getObject()->getAllVersions(), 'sf_simple_blog_post' => $sf_simple_blog_post)) ?>
<?php endif; ?>
开发者ID:nibsirahsieu,项目名称:sfSimpleBlog15Plugin,代码行数:23,代码来源:_form.php

示例9: use_stylesheets_for_form

<?php

use_stylesheets_for_form($form);
use_javascripts_for_form($form);
?>

<div class="sf_admin_form">
  <?php 
echo form_tag_for($form, '@sf_guard_user');
?>
    <?php 
echo $form->renderHiddenFields(false);
?>

    <?php 
if ($form->hasGlobalErrors()) {
    ?>
      <?php 
    echo $form->renderGlobalErrors();
    ?>
    <?php 
}
?>

    <?php 
foreach ($configuration->getFormFields($form, $form->isNew() ? 'new' : 'edit') as $fieldset => $fields) {
    ?>
      <?php 
    include_partial('sfGuardUser/form_fieldset', array('sf_guard_user' => $sf_guard_user, 'form' => $form, 'fields' => $fields, 'fieldset' => $fieldset));
    ?>
    <?php 
开发者ID:edulima1989,项目名称:Sistema-Radiotaxi,代码行数:31,代码来源:_form.php

示例10: form_tag_for

            echo $value;
            ?>
</li>
          <?php 
        }
    } else {
        ?>
            <li class="fr">FR</li>
          <?php 
    }
    ?>
      </ul>
    </section>
  
  <?php 
    echo form_tag_for($form, '@peanut_link');
    ?>
    <?php 
    echo $form->renderHiddenFields(false);
    ?>

    <?php 
    if ($form->hasGlobalErrors()) {
        ?>
      <?php 
        echo $form->renderGlobalErrors();
        ?>
    <?php 
    }
    ?>
      
开发者ID:ndachez,项目名称:emach,代码行数:30,代码来源:_form.php

示例11: use_stylesheets_for_form

<?php

use_stylesheets_for_form($form);
use_javascripts_for_form($form);
?>

<div class="sf_admin_form">
  <?php 
echo form_tag_for($form, '@fields');
?>
    <?php 
echo $form->renderHiddenFields(false);
?>

    <?php 
if ($form->hasGlobalErrors()) {
    ?>
      <?php 
    echo $form->renderGlobalErrors();
    ?>
    <?php 
}
?>

    <?php 
foreach ($configuration->getFormFields($form, $form->isNew() ? 'new' : 'edit') as $fieldset => $fields) {
    ?>
      <?php 
    include_partial('fields/form_fieldset', array('fields' => $fields, 'form' => $form, 'fields' => $fields, 'fieldset' => $fieldset));
    ?>
    <?php 
开发者ID:nurtai,项目名称:collegERP,代码行数:31,代码来源:_form.php

示例12: __

if ($form->isNew() && (!$sf_user->hasPermission('2') && !$sf_user->hasPermission('3') && !$sf_user->hasPermission('4') && !$sf_user->hasPermission('5'))) {
    echo '<div class="sorry sf_admin_form">';
    echo __('Sorry but you can not create page.', null, 'sfGuard');
    echo '.. Cheater!</div>';
} else {
    ?>

<?php 
    use_stylesheets_for_form($form);
    use_javascripts_for_form($form);
    ?>

<div class="sf_admin_form">
  
  <?php 
    echo form_tag_for($form, '@peanut_page');
    ?>
    <?php 
    echo $form->renderHiddenFields(false);
    ?>

    <?php 
    if ($form->hasGlobalErrors()) {
        ?>
      <?php 
        echo $form->renderGlobalErrors();
        ?>
    <?php 
    }
    ?>
      
开发者ID:ndachez,项目名称:dachez,代码行数:30,代码来源:_form.php

示例13: form_tag_for

<div class="note-form">
  <?php 
echo form_tag_for($note_form, '@notes');
?>
  <?php 
echo $note_form->renderGlobalErrors();
?>
  <?php 
echo $note_form->renderHiddenFields();
?>
  <?php 
echo $note_form;
?>
  <input type="submit" value="Save" />
</div>

<div class="notes">
<?php 
foreach ($notes as $note) {
    ?>
  <div class="note">
    <p><strong><?php 
    echo $note['CreatedBy'] ? $note['CreatedBy'] : 'Anonymus';
    ?>
</strong> on <?php 
    echo $note['created_at'];
    ?>
</p>
    <?php 
    echo simple_format_text($note['body']);
    ?>
开发者ID:nurihan007,项目名称:amaranto,代码行数:31,代码来源:_show_notes.php

示例14: use_stylesheets_for_form

<?php

use_stylesheets_for_form($form);
use_javascripts_for_form($form);
?>

<div class="sf_admin_form">
  <?php 
echo form_tag_for($form, '@company');
?>
    <?php 
echo $form->renderHiddenFields(false);
?>

    <?php 
if ($form->hasGlobalErrors()) {
    ?>
      <?php 
    echo $form->renderGlobalErrors();
    ?>
    <?php 
}
?>

    <?php 
foreach ($configuration->getFormFields($form, $form->isNew() ? 'new' : 'edit') as $fieldset => $fields) {
    ?>
      <?php 
    include_partial('company/form_fieldset', array('company' => $company, 'form' => $form, 'fields' => $fields, 'fieldset' => $fieldset));
    ?>
    <?php 
开发者ID:0xfaded,项目名称:webjam_booking,代码行数:31,代码来源:_form.php

示例15: include_javascripts_for_form

<?php include_javascripts_for_form($form) ?>
<?php include_stylesheets_for_form($form) ?>


<?php echo form_tag_for($form, '@ds_class_students', array('class'=>'form-horizontal')) ?>
  <?php echo $form->renderGlobalErrors() ?>
  <?php echo $form->renderHiddenFields() ?>
  
  <fieldset>
    
    <?php echo $form['role']->renderRow() ?>
  
    <?php echo $form['partner']->renderRow() ?>

    <?php echo $form['type']->renderRow() ?>

    <?php echo $form['waiting_since']->renderRow() ?>

    <?php echo $form['fee']->renderRow() ?>

    <?php echo $form['comment']->renderRow() ?>

    <div class="form-actions">
      <?php if ($form->isNew()): ?>
        <input class="btn btn-success" type="submit" value="<?php echo __('Save', array(), 'messages') ?>" />  
          <input class="btn btn-warning" type="submit" value="<?php echo __('Save and Add', array(), 'messages') ?>" name="_save_and_add" />  
        <?php #echo link_to(__('Cancel', array(), 'messages'), 'ds_class_students', array(), array(  'class' => 'btn',  'title' => __('Back to List', array(), 'messages'))) ?>  
        <?php echo link_to(__('Cancel', array(), 'messages'), $redirect, array(), array(  'class' => 'btn',  'title' => __('Back to List', array(), 'messages'))) ?>  

      <?php else: ?>
        <button class="btn btn-success" type="submit" value="<?php echo __('Save', array(), 'messages') ?>">Speichern</button>
开发者ID:romankallweit,项目名称:swingmachine,代码行数:31,代码来源:_form.php


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