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


PHP HTML::textareaField方法代码示例

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


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

示例1:

    <p><label for="countries_iso_code_2"><?php 
echo OSCOM::getDef('field_iso_code_2');
?>
</label><?php 
echo HTML::inputField('countries_iso_code_2', $OSCOM_ObjectInfo->get('countries_iso_code_2'));
?>
</p>
    <p><label for="countries_iso_code_3"><?php 
echo OSCOM::getDef('field_iso_code_3');
?>
</label><?php 
echo HTML::inputField('countries_iso_code_3', $OSCOM_ObjectInfo->get('countries_iso_code_3'));
?>
</p>
    <p><label for="address_format"><?php 
echo OSCOM::getDef('field_address_format');
?>
</label><?php 
echo HTML::textareaField('address_format', $OSCOM_ObjectInfo->get('address_format'));
?>
<br /><i>:name</i>, <i>:street_address</i>, <i>:suburb</i>, <i>:city</i>, <i>:postcode</i>, <i>:state</i>, <i>:state_code</i>, <i>:country</i></p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>

  </form>
</div>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:edit.php

示例2:

echo OSCOM::getLink(null, null, 'Contact&Process');
?>
" method="post">

<div class="moduleBox">
  <div class="content">
    <ol>
      <li><?php 
echo HTML::label(OSCOM::getDef('contact_name_title'), 'name') . HTML::inputField('name');
?>
</li>
      <li><?php 
echo HTML::label(OSCOM::getDef('contact_email_address_title'), 'email') . HTML::inputField('email');
?>
</li>
      <li><?php 
echo HTML::label(OSCOM::getDef('contact_enquiry_title'), 'enquiry') . HTML::textareaField('enquiry', null, 50, 15);
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
  <?php 
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
?>
</div>

</form>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:contact.php

示例3: array

      <li><?php 
    echo HTML::label(ENTRY_NAME, 'customer_name') . HTML::inputField('customer_name');
    ?>
</li>
      <li><?php 
    echo HTML::label(OSCOM::getDef('field_customer_email_address'), 'customer_email_address') . HTML::inputField('customer_email_address');
    ?>
</li>

<?php 
}
?>

      <li><?php 
echo HTML::textareaField('review', null, null, 15, 'style="width: 98%;"');
?>
</li>
      <li><?php 
echo OSCOM::getDef('field_review_rating') . ' ' . OSCOM::getDef('review_lowest_rating_title') . ' ' . HTML::radioField('rating', array('1', '2', '3', '4', '5')) . ' ' . OSCOM::getDef('review_highest_rating_title');
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons">
  <span style="float: right;"><?php 
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
?>
</span>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:reviews_write.php

示例4: isset

  <fieldset>
    <p><label for="key"><?php 
echo OSCOM::getDef('field_definition_key');
?>
</label><?php 
echo HTML::inputField('key');
?>
</p>
    <p><label><?php 
echo OSCOM::getDef('field_definition_value');
?>
</label>

<?php 
foreach ($OSCOM_Language->getAll() as $l) {
    echo '<br />' . $OSCOM_Language->showImage($l['code']) . '<br />' . HTML::textareaField('value[' . $l['id'] . ']');
}
?>

    </p>
    <p><label for="defgroup"><?php 
echo OSCOM::getDef('field_definition_group');
?>
</label><?php 
echo HTML::inputField('defgroup', isset($_GET['group']) ? $_GET['group'] : null);
?>
</p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id'] . (isset($_GET['group']) ? '&group=' . $_GET['group'] : '')), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:definitions_new.php

示例5: isset

}
?>

    </table>
  </div>
</div>

<div class="moduleBox">
  <h6><?php 
echo OSCOM::getDef('add_comment_to_order_title');
?>
</h6>

  <div class="content">
    <?php 
echo HTML::textareaField('comments', isset($_SESSION['comments']) ? $_SESSION['comments'] : null, null, null, 'style="width: 98%;"');
?>
  </div>
</div>

<br />

<div class="moduleBox">
  <div class="content">
    <div style="float: right;">
      <?php 
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
?>
    </div>

    <?php 
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:billing.php

示例6: ObjectInfo

</h3>

  <form name="lDefineBatch" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'BatchSaveDefinitions&Process&id=' . $_GET['id'] . '&group=' . $_GET['group']);
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_edit_language_definitions');
?>
</p>

  <fieldset>

<?php 
foreach ($_POST['batch'] as $id) {
    $OSCOM_ObjectInfo = new ObjectInfo(Languages::getDefinition($id));
    echo '<p><label for="def[' . $OSCOM_ObjectInfo->getProtected('definition_key') . ']">' . $OSCOM_ObjectInfo->getProtected('definition_key') . '</label>' . HTML::textareaField('def[' . $OSCOM_ObjectInfo->get('definition_key') . ']', $OSCOM_ObjectInfo->get('definition_value')) . HTML::hiddenField('batch[]', $OSCOM_ObjectInfo->getInt('id')) . '</p>';
}
?>

  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id'] . '&group=' . $_GET['group']), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>

  </form>
</div>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:definitions_batch_edit.php

示例7: sprintf

    echo sprintf(OSCOM::getDef('error_configuration_file_not_writeable'), OSCOM::BASE_DIRECTORY . 'Config/settings.ini');
    ?>
</p>

      <p align="right"><?php 
    echo HTML::button(array('icon' => 'refresh', 'title' => OSCOM::getDef('button_retry')));
    ?>
</p>

      <p><?php 
    echo OSCOM::getDef('error_configuration_file_alternate_method');
    ?>
</p>

      <?php 
    echo HTML::textareaField('contents', $file_contents, 60, 5, 'readonly="readonly" style="width: 100%; height: 120px;"', false);
    ?>
    </div>

<?php 
    foreach ($_POST as $key => $value) {
        if ($key != 'x' && $key != 'y') {
            if (is_array($value)) {
                for ($i = 0, $n = count($value); $i < $n; $i++) {
                    echo HTML::hiddenField($key . '[]', $value[$i]);
                }
            } else {
                echo HTML::hiddenField($key, $value);
            }
        }
    }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:step_3.php

示例8:

?>
</li>
    </ol>
  </div>
</div>

<div class="moduleBox">
  <h6><?php 
echo OSCOM::getDef('tell_a_friend_message');
?>
</h6>

  <div class="content">
    <ol>
      <li><?php 
echo HTML::textareaField('message', null, 40, 8, 'style="width: 98%;"');
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons">
  <span style="float: right;"><?php 
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
?>
</span>

  <?php 
echo HTML::button(array('href' => OSCOM::getLink(null, null, $OSCOM_Product->getKeyword()), 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back')));
?>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:tell_a_friend.php

示例9: foreach

<?php
  foreach ( $OSCOM_Language->getAll() as $l ) {
    echo '<li>' . HTML::link('#languageTabs_' . $l['code'], $OSCOM_Language->showImage($l['code']) . '&nbsp;' . $l['name']) . '</li>';
  }
?>

      </ul>

<?php
  foreach ( $OSCOM_Language->getAll() as $l ) {
?>

      <div id="languageTabs_<?php echo $l['code']; ?>">
        <fieldset>
          <p><label for="<?php echo 'products_name[' . $l['id'] . ']'; ?>"><?php echo OSCOM::getDef('field_name'); ?></label><?php echo HTML::inputField('products_name[' . $l['id'] . ']', (!$new_product && isset($products_name[$l['id']]) ? $products_name[$l['id']] : null)); ?></p>
          <p><label for="<?php echo 'products_description[' . $l['id'] . ']'; ?>"><?php echo OSCOM::getDef('field_description'); ?></label><?php echo HTML::textareaField('products_description[' . $l['id'] . ']', (!$new_product && isset($products_description[$l['id']]) ? $products_description[$l['id']] : null)); ?></p>
          <p><label for="<?php echo 'products_keyword[' . $l['id'] . ']'; ?>"><?php echo OSCOM::getDef('field_keyword'); ?></label><?php echo HTML::inputField('products_keyword[' . $l['id'] . ']', (!$new_product && isset($products_keyword[$l['id']]) ? $products_keyword[$l['id']] : null)); ?></p>
          <p><label for="<?php echo 'products_tags[' . $l['id'] . ']'; ?>"><?php echo OSCOM::getDef('field_tags'); ?></label><?php echo HTML::inputField('products_tags[' . $l['id'] . ']', (!$new_product && isset($products_tags[$l['id']]) ? $products_tags[$l['id']] : null)); ?></p>
          <p><label for="<?php echo 'products_url[' . $l['id'] . ']'; ?>"><?php echo OSCOM::getDef('field_url'); ?></label><?php echo HTML::inputField('products_url[' . $l['id'] . ']', (!$new_product && isset($products_url[$l['id']]) ? $products_url[$l['id']] : null)); ?></p>
        </fieldset>
      </div>

<?php
  }
?>

    </div>
  </div>
</div>

<script>
开发者ID:haraldpdl,项目名称:oscommerce,代码行数:31,代码来源:section_general.php

示例10: osc_cfg_set_textarea_field

function osc_cfg_set_textarea_field($default, $key = null)
{
    $name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value';
    return HTML::textareaField($name, $default, 35, 5);
}
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:5,代码来源:osc_cfg_set_textarea_field.php

示例11:

    <p><label for="countries_iso_code_2"><?php 
echo OSCOM::getDef('field_iso_code_2');
?>
</label><?php 
echo HTML::inputField('countries_iso_code_2');
?>
</p>
    <p><label for="countries_iso_code_3"><?php 
echo OSCOM::getDef('field_iso_code_3');
?>
</label><?php 
echo HTML::inputField('countries_iso_code_3');
?>
</p>
    <p><label for="address_format"><?php 
echo OSCOM::getDef('field_address_format');
?>
</label><?php 
echo HTML::textareaField('address_format');
?>
<br /><i>:name</i>, <i>:street_address</i>, <i>:suburb</i>, <i>:city</i>, <i>:postcode</i>, <i>:state</i>, <i>:state_code</i>, <i>:country</i></p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>

  </form>
</div>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:new.php

示例12: testTextareaField

 public function testTextareaField()
 {
     $this->assertEquals('<textarea name="description" cols="6" rows="65" id="taDescription">Description</textarea>', HTML::textareaField('description', 'Description', 6, 65, 'id="taDescription"'));
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:4,代码来源:HTMLTest.php

示例13:

  <form name="lDefine" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'EditDefinition&Process&id=' . $_GET['id'] . '&group=' . $_GET['group']);
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_edit_language_definitions');
?>
</p>

  <fieldset>
    <p><label for="def[<?php 
echo $OSCOM_ObjectInfo->getProtected('definition_key');
?>
]"><?php 
echo $OSCOM_ObjectInfo->getProtected('definition_key');
?>
</label><?php 
echo HTML::textareaField('def[' . $OSCOM_ObjectInfo->get('definition_key') . ']', $OSCOM_ObjectInfo->get('definition_value'));
?>
</p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id'] . '&group=' . $_GET['group']), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>

  </form>
</div>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:definitions_edit.php


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