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


PHP object_textarea_tag函数代码示例

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


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

示例1: dirname

 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
require_once dirname(__FILE__) . '/../../bootstrap/unit.php';
require_once $_test_dir . '/unit/sfContextMock.class.php';
require_once dirname(__FILE__) . '/TestObject.php';
require_once dirname(__FILE__) . '/../../../lib/helper/HelperHelper.php';
require_once dirname(__FILE__) . '/../../../lib/helper/TagHelper.php';
require_once dirname(__FILE__) . '/../../../lib/helper/FormHelper.php';
require_once dirname(__FILE__) . '/../../../lib/helper/ObjectHelper.php';
$t = new lime_test(10);
// object_textarea_tag()
$t->diag('object_textarea_tag()');
$obj1 = new TestObject();
$t->is(object_textarea_tag($obj1, 'getValue'), '<textarea name="value" id="value">value</textarea>');
$t->is(object_textarea_tag($obj1, 'getValue', 'size=60x10'), '<textarea name="value" id="value" rows="10" cols="60">value</textarea>');
// objects_for_select()
$t->diag('objects_for_select()');
$obj1 = new TestObject();
$obj2 = new TestObject();
$obj2->setText('text2');
$obj2->setValue('value2');
$actual = objects_for_select(array($obj1, $obj2), 'getValue', 'getText', 'value');
$expected = "<option value=\"value\" selected=\"selected\">text</option>\n<option value=\"value2\">text2</option>\n";
$t->is($expected, $actual);
$actual = objects_for_select(array($obj1, $obj2), 'getValue');
$expected = "<option value=\"value\">value</option>\n<option value=\"value2\">value2</option>\n";
$t->is($expected, $actual);
try {
    $actual = objects_for_select(array($obj1, $obj2), 'getNonExistantMethod');
    $t->is($expected, $actual);
开发者ID:bigcalm,项目名称:urlcatcher,代码行数:31,代码来源:ObjectHelperTest.php

示例2: ucwords

?>
:<br />      
            <?php 
echo ucwords(__('subject'));
?>
:
          </li>
          <li>
            <?php 
if ($message->getRecipientId()) {
    echo '<em>(' . $message->getSfGuardUserRelatedByRecipientId()->getProfile()->getFullName() . ')</em><br />' . input_hidden_tag('user_recipient', $message->getSfGuardUserRelatedByRecipientId()->getProfile()->getFullName());
} else {
    echo input_auto_complete_tag('user_recipient', '', 'user/autoMessageComplete?field=recipient', 'autocomplete=false', 'use_style=true') . '<br />';
}
?>
            <?php 
echo object_input_tag($message, 'getSubject', array('style' => 'width:100%;'));
?>
          </li>
        </ul>
        <hr class="clear" />
        <?php 
echo object_textarea_tag($message, 'getBody', array('style' => 'width:100%;', 'rows' => '10'));
?>
        <?php 
echo submit_tag(ucwords(__('send')), array('class' => 'pswipebutton'));
?>
      </div>
    </form>
  </div>
</div>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:composeSuccess.php

示例3: object_input_tag

        <td style="text-align:center; vertical-align:middle;">:</td>
        <td style="vertical-align:middle;">
            <?php 
echo object_input_tag($catalog, 'getPublishedYear', array('size' => 4, 'maxlength' => 4));
?>
        </td>
    </tr>
    <tr>
        <td style="vertical-align:middle;"><label><?php 
echo __('Synopsis');
?>
</label></td>
        <td style="text-align:center; vertical-align:middle;">:</td>
        <td style="vertical-align:middle;">
            <?php 
echo object_textarea_tag($catalog, 'getSynopsis', array('size' => '80x4'));
?>
<br>
            <!--img src="http://lekar.muhajirien.org/muslim/video/chatt_ym.jpg" border="0"-->
        </td>
    </tr>
    <tr>
        <td style="vertical-align: top;"><label><?php 
echo 'Upload Video';
?>
</label></td>
        <td style="text-align:center; vertical-align: top;">:</td>
        <td style="vertical-align: top;">
                <?php 
if (isset($catalog) && $catalog->getId()) {
    ?>
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:tmplAvSuccess.php

示例4: form_error

 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('tarea{descripcion}')) {
    ?>
    <?php 
    echo form_error('tarea{descripcion}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_textarea_tag($tarea, 'getDescripcion', array('size' => '50x3', 'control_name' => 'tarea[descripcion]'));
echo $value ? $value : '&nbsp;';
?>
    </div>
</div>

<div id="capa_evento" style="display:none;">

<div class="form-row">
  <?php 
echo label_for('tarea[id_estado_evento]', __($labels['tarea{id_estado_evento}']) . ":", '');
?>
  <div class="content<?php 
if ($sf_request->hasError('tarea{id_estado_evento}')) {
    ?>
 form-error<?php 
开发者ID:Esleelkartea,项目名称:legedia-ESLE,代码行数:31,代码来源:_edit_form.php

示例5: form_error

    ?>
 form-error<?php 
}
?>
">
      <?php 
if ($sf_request->hasError('sf_asset{description}')) {
    ?>
        <?php 
    echo form_error('sf_asset{description}', array('class' => 'form-error-msg'));
    ?>
      <?php 
}
?>
      <?php 
echo object_textarea_tag($sf_asset, 'getDescription', array('size' => '30x3', 'control_name' => 'sf_asset[description]'));
?>
    </div>
  </div>
  
  <div class="form-row">
    <?php 
echo label_for('sf_asset[author]', __('Author:', null, 'sfAsset'), '');
?>
    <div class="content<?php 
if ($sf_request->hasError('sf_asset{author}')) {
    ?>
 form-error<?php 
}
?>
">
开发者ID:rewrewby,项目名称:propertyx,代码行数:31,代码来源:_edit_form.php

示例6: object_textarea_tag

                        <td width="2%" style="text-align:center; vertical-align:top;">:</td>
                        <td style="vertical-align:top;">
                            <?php 
echo object_textarea_tag($grade_conversion, 'getDescription', array('rows' => 4, 'cols' => 30));
?>
                            <?php 
echo form_error('description');
?>
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align:top;"><label><?php 
echo __('Description');
?>
</label></td>
                        <td width="2%" style="text-align:center; vertical-align:top;">:</td>
                        <td style="vertical-align:top;">
                            <?php 
echo object_textarea_tag($grade_conversion, 'getDetail', array('rows' => 4, 'cols' => 30));
?>
                            <?php 
echo form_error('detail');
?>
                            <div class="tips">Khusus isian deskripsi dalam bahasa inggris</div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </td></tr>
</table>
</form>
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:editSuccess.php

示例7: select_tag

    echo select_tag('term', options_for_select(array('1' => '1', '2' => '2', '3' => '3', '4' => '4'), '', array('include_blank' => true)));
    ?>
                                </td>
                        </tr>
                <?php 
} else {
    ?>
                        <tr>
                                <td style="vertical-align:top;"><label><?php 
    echo __('Catatan / Komentar Walas');
    ?>
</label></td>
                                <td width="2%" style="text-align:center; vertical-align:top;">:</td>
                                <td style="vertical-align:top;">
                                        <?php 
    echo object_textarea_tag($student_note, 'getNote', array('size' => '50x3'));
    ?>
                                        <?php 
    echo form_error('note');
    ?>
<br>
                                        <div class="tips">(*Untuk Raport Semester jangan lupa mengisi Catatan / Komentar Walas Untuk Anak)</div>
                                </td>
                        </tr>
                <?php 
}
?>

                </tbody>
                </table>
                <div class="tips">**) Pilih Anak yang akan dicetak</div>
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:listRaportSuccess.php

示例8: label_for

?>
            <?php 
if ($sf_request->hasError('community_benefits')) {
    echo '<span class="form-error">' . $sf_request->getError('community_benefits') . '</span>';
}
?>
            <?php 
echo label_for('community_benefits', 'Describe how your project will benefit the community.'), object_textarea_tag($project, 'getCommunityBenefits', array('size' => '20x3'));
?>
            <?php 
if ($sf_request->hasError('student_reasons')) {
    echo '<span class="form-error">' . $sf_request->getError('student_reasons') . '</span>';
}
?>
            <?php 
echo label_for('student_reasons', 'Tell us why this is a good project for students.'), object_textarea_tag($project, 'getStudentReasons', array('size' => '20x3'));
?>
          </fieldset>
          <hr class="clear" />
        </div>
      </div>
    </div>
    <div style="width:25%;float:right;">
      <div style="background-color:#87B94D;color:white;padding:4px;">
        <p style="background-color:#E8B069;">
          Have questions, or unsure about how to describe your project to catch attention?<br />
          <?php 
echo link_to('Cothink can help!', '#');
?>
        </p>
        <br />
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:_descriptionForm.php

示例9: label_for

echo label_for('title', __('Image Title'));
?>
:</th>
  <td><?php 
echo object_input_tag($photo, 'getTitle', array('size' => 30));
?>
</td>
</tr>

<tr>
  <th><?php 
echo label_for('description', __('Image Description'));
?>
:</th>
  <td><?php 
echo object_textarea_tag($photo, 'getDescription', array('size' => '30x4'));
?>
</td>
</tr>

</tbody>
</table>
<?php 
echo $sf_user->getAttribute('referer');
?>
<hr />
<?php 
echo submit_tag(__('Upload Image'));
?>
</form>
开发者ID:sgrove,项目名称:cothinker,代码行数:30,代码来源:createSuccess.php

示例10: object_input_tag

  <td><?php 
echo object_input_tag($researcher, 'getEmail', array('size' => 80));
?>
</td>
</tr>
<tr>
  <th>Picture link:</th>
  <td><?php 
echo object_input_tag($researcher, 'getPictureLink', array('size' => 80));
?>
</td>
</tr>
<tr>
  <th>Bio statement:</th>
  <td><?php 
echo object_textarea_tag($researcher, 'getBioStatement', array('size' => '30x3'));
?>
</td>
</tr>
</tbody>
</table>
<hr />
<?php 
echo submit_tag('save');
if ($researcher->getId()) {
    ?>
  &nbsp;<?php 
    echo link_to('delete', 'researcher/delete?id=' . $researcher->getId(), 'post=true&confirm=Are you sure?');
    ?>
  &nbsp;<?php 
    echo link_to('cancel', 'researcher/show?id=' . $researcher->getId());
开发者ID:TheProjecter,项目名称:myisern-lime,代码行数:31,代码来源:editSuccess.php

示例11: __

                                        <td style="vertical-align:middle;"><label class="applicant"><?php 
    echo __('Alamat Rumah');
    ?>
</label></td>
                                        <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
                                        <td style="vertical-align:middle;">
                                             <?php 
    echo object_textarea_tag($father, 'getAddress', array('rows' => 2, 'cols' => 60, 'name' => 'father_address', 'id' => 'father_address'));
    ?>
                                             <?php 
    echo form_error('father_address');
    ?>
                                        </td>
                                        <td style="vertical-align:middle;">
                                             <?php 
    echo object_textarea_tag($mother, 'getAddress', array('rows' => 2, 'cols' => 60, 'name' => 'mother_address', 'id' => 'mother_address'));
    ?>
                                             <?php 
    echo form_error('mother_address');
    ?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="vertical-align:middle;"><label class="applicant"><?php 
    echo __('Handphone');
    ?>
</label></td>
                                        <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
                                        <td style="vertical-align:middle;">
                                              <?php 
    echo object_input_tag($father, 'getCellphone', array('size' => 24, 'name' => 'father_cellphone', 'id' => 'father_cellphone'));
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:editStudentSuccess.php

示例12: __

                </tr>
                
                <tr><td colspan="6"><div class="subtitle"><?php 
echo __('Employee Address');
?>
</div></td></tr>
                
                <tr>    
                    <td style="vertical-align:top;"><label><?php 
echo __('Address');
?>
</label></td>
                    <td style="text-align:center; vertical-align:top;">:</td>
                    <td style="vertical-align:middle;" colspan="4">
                        <?php 
echo object_textarea_tag($employee_detail, 'getAddress', array('rows' => 2, 'cols' => 60));
?>
                        <?php 
echo form_error('address');
?>
                    </td>
                </tr>
                
                <tr>    
                    <td style="vertical-align:middle;"><label  ><?php 
echo __('Phone');
?>
</label></td>
                    <td style="text-align:center; vertical-align:middle;">:</td>
                    <td style="vertical-align:middle;">
                         <?php 
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:editSuccess.php

示例13: object_select_tag

                        <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
                        <td style="vertical-align:middle;">
                            <?php 
echo object_select_tag($subject_descript, 'getSubjectCurrId', array('related_class' => 'SubjectCurr', 'include_blank' => true, 'text_method' => '__toName'));
?>
                            <?php 
echo form_error('subject_curr_id');
?>
                        </td>
                    </tr>   
                    <tr>
                        <td style="vertical-align:top;"><label><?php 
echo __('Description');
?>
</label></td>
                        <td width="2%" style="text-align:center; vertical-align:top;">:</td>
                        <td style="vertical-align:middle;">
                            <?php 
echo object_textarea_tag($subject_descript, 'getDescriptionInd', array('size' => '50x3'));
?>
                            <?php 
echo form_error('description_ind');
?>
                        </td>
                    </tr>   
                </tbody>
            </table>
        </td></tr>
</table>
</form>
开发者ID:taryono,项目名称:school,代码行数:30,代码来源:editSuccess.php

示例14: object_textarea_tag

  <td><?php 
echo object_textarea_tag($suggested_feature, 'getTitle', array('size' => '30x3'));
?>
</td>
</tr>
<tr>
  <th>Slug*:</th>
  <td><?php 
echo object_input_tag($suggested_feature, 'getSlug', array('size' => 80));
?>
</td>
</tr>
<tr>
  <th>Description:</th>
  <td><?php 
echo object_textarea_tag($suggested_feature, 'getDescription', array('size' => '30x3'));
?>
</td>
</tr>
<tr>
  <th>Status:</th>
  <td><?php 
echo object_input_tag($suggested_feature, 'getStatus', array('size' => 7));
?>
</td>
</tr>
<tr>
  <th>Type:</th>
  <td><?php 
echo object_input_tag($suggested_feature, 'getType', array('size' => 7));
?>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:editSuccess.php

示例15: __

?>
                                            <div class="tip"><?php 
echo __('Nama Salah Satu Orang Tua / Wali');
?>
</div>
                                        </td>
                                    </tr>
                                  <tr>
                                      <td style="vertical-align:top;"><label class="applicant"><?php 
echo __('Alamat');
?>
</label></td>
                                      <td style="text-align:center; vertical-align:top;">:</td>
                                      <td style="vertical-align:top;">
                                          <?php 
echo object_textarea_tag($ng_test_applicant, 'getAddress', array('rows' => 4, 'cols' => 60));
?>
                                          <?php 
echo form_error('address');
?>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td style="vertical-align:middle;"><label class="applicant"><?php 
echo __('Email');
?>
</label></td>
                                      <td style="text-align:center; vertical-align:middle;">:</td>
                                      <td style="vertical-align:middle;">
                                           <?php 
echo object_input_tag($ng_test_applicant, 'getEmail', array('size' => 30, 'maxlength' => 255));
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:createSuccess.php


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