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

PHP textarea_field函数代码示例

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

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



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

示例1: render

 /**
  * Renders attachment based on Object type
  *
  * @param void
  * @return string
  */
 function render($element_name)
 {
     switch ($this->getRelObjectManager()) {
         case 'Companies':
         case 'Contacts':
         case 'ProjectFiles':
         case 'ProjectMessages':
         case 'ProjectMilestones':
         case 'ProjectTasks':
         case 'ProjectTaskLists':
         case 'ProjectTickets':
             return text_field($element_name, $this->getText());
             break;
         default:
             return textarea_field($element_name, $this->getText(), array('class' => 'short'));
             break;
     }
     // switch
 }
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:25,代码来源:PageAttachment.class.php


示例2: array_var

                            form['task[text]'].value = editor.getData();

                            return true;
                    };
                </script>
                <?php }else{?>
                <div>
                        <?php 
                            if(array_var($task_data, 'type_content') == "text"){
                                $content_text = array_var($task_data, 'text');
                            }else{
                                $content_text = html_to_text(html_entity_decode(nl2br(array_var($task_data, 'text')), null, "UTF-8"));
                            }   
                        ?>
                        <?php echo label_tag(lang('description'), $genid . 'taskListFormDescription') ?>
                        <?php echo textarea_field('task[text]', $content_text, array('class' => 'huge', 'id' => $genid . 'taskListFormDescription', 'tabindex' => '140')) ?>
                </div>
                <script>
                    og.setDescription = function() {
                            return true;
                    };
                </script>
                <?php }?>
	</div>

	<?php foreach ($categories as $category) { ?>
	<div <?php if (!$category['visible']) echo 'style="display:none"' ?> id="<?php echo $genid . $category['name'] ?>">
	<fieldset>
		<legend><?php echo lang($category['name'])?><?php if ($category['required']) echo ' <span class="label_required">*</span>'; ?></legend>
		<?php echo $category['content'] ?>
	</fieldset>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:add_task.php


示例3: label_tag

  
    <div>
      <?php 
echo label_tag(lang('massmailer subject'), 'massmailerFormRecipient', true);
?>
      <?php 
echo text_field('massmailer[subject]', array_var($massmailer_data, 'subject'), array('id' => 'massmailerFormRecipient', 'class' => 'title'));
?>
    </div>
    
    <div>
      <?php 
echo label_tag(lang('massmailer message'), 'massmailerFormMessage', true);
?>
      <?php 
echo textarea_field('massmailer[message]', array_var($massmailer_data, 'message'), array('id' => 'massmailerFormMessage', 'class' => 'editor'));
?>
    </div>
    
    <h2><?php 
echo lang('massmailer recipients');
?>
</h2>
    
<?php 
foreach ($grouped_users as $company_name => $company_details) {
    $company_id = $company_details['details']->getId();
    ?>
    <script type="text/javascript">
      App.modules.massmailerForm.controls['company_' + <?php 
    echo $company_id;
开发者ID:ukd1,项目名称:Project-Pier,代码行数:30,代码来源:tool_mass_mailer.php


示例4: label_tag

  <div>
    <?php 
echo label_tag(lang('test mail recipient'), 'testMailFormRecipient', true);
?>
    <?php 
echo text_field('test_mail[recipient]', array_var($test_mail_data, 'recipient'), array('id' => 'testMailFormRecipient', 'class' => 'long'));
?>
  </div>
  
  <div>
    <?php 
echo label_tag(lang('test mail message'), 'testMailFormMessage', true);
?>
    <?php 
echo textarea_field('test_mail[message]', array_var($test_mail_data, 'message'), array('id' => 'testMailFormMessage'));
?>
  </div>
  
  <?php 
echo submit_button(lang('submit'));
?>
</form>

<?php 
if (extension_loaded('sockets')) {
    ?>
<div>Socket functions are available so mailing is possible from PHP level</div>
<?php 
} else {
    ?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:30,代码来源:tool_test_email.php


示例5: label_tag

  <div>
    <?php 
echo label_tag(lang('priority'), 'projectFormPriority');
?>
    <?php 
echo input_field('project[priority]', array_var($project_data, 'priority'), array('class' => 'short', 'id' => 'projectFormPriority'));
?>
  </div>
    
  <div>
    <?php 
echo label_tag(lang('description'), 'projectFormDescription');
?>
    <?php 
echo textarea_field('project[description]', array_var($project_data, 'description'), array('id' => 'projectFormDescription'));
?>
  </div>
  
  <div>
    <?php 
echo label_tag(lang('show project desciption in overview'));
?>
    <?php 
echo yes_no_widget('project[show_description_in_overview]', 'projectFormShowDescriptionInOverview', array_var($project_data, 'show_description_in_overview'), lang('yes'), lang('no'));
?>
  </div>
<?php 
if ($project->isNew() && config_option('enable_efqm') == 'yes') {
    ?>
  <div>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:30,代码来源:add_project.php


示例6: label_tag

      <th>&nbsp;</th>
      <th>&nbsp;</th>
      <th>&nbsp;</th>
    </tr>
<?php 
    for ($i = 0; $i < 6; $i++) {
        ?>
    <tr class="<?php 
        echo $i % 2 ? 'odd' : 'even';
        ?>
">
      <td><?php 
        echo label_tag(lang('description'), null, false);
        ?>
        <?php 
        echo textarea_field("task_list[task{$i}][text]", array_var($task_list_data["task{$i}"], 'text'), array('class' => 'short'));
        ?>
      </td>
      <td><?php 
        echo label_tag(lang('start date'), null, false);
        ?>
       <div><?php 
        echo pick_date_widget("task_list_task{$i}_start_date", array_var($task_list_data["task{$i}"], 'start_date'));
        ?>
</div>
       <?php 
        echo label_tag(lang('due date'), null, false);
        ?>
       <?php 
        echo pick_date_widget("task_list_task{$i}_due_date", array_var($task_list_data["task{$i}"], 'due_date'));
        ?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:add_list.php


示例7: set_page_title

set_page_title(lang('files add revision'));
project_tabbed_navigation(PROJECT_TAB_FILES);
project_crumbs(array(array(lang('files'), get_url('files')), lang('files add revision')));
add_stylesheet_to_page('project/files.css');
?>
<form action="<?php 
echo $file->getAddRevisionUrl();
?>
" method="post" enctype="multipart/form-data">
  <div id="fileRevisionComment">
    <?php 
echo label_tag(lang('revision comment'), 'fileRevisionComment');
?>
    <?php 
echo textarea_field('revision[comment]', array_var($revision_data, 'comment'), array('class' => 'short', 'id' => 'fileRevisionComment'));
?>
  </div>
  <div class="hint">
    <div class="content">
      <div>
        <?php 
echo label_tag(lang('new file'), 'fileRevisionFile', true);
?>
        <?php 
echo file_field('file_file', null, array('id' => 'fileRevisionFile'));
?>
      </div>
    </div>
  </div>
  <?php 
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:30,代码来源:add_revision.php


示例8: label_tag

  <div>
    <?php 
echo label_tag(lang('name'), 'milestoneFormName', true);
?>
    <?php 
echo text_field('milestone[name]', array_var($milestone_data, 'name'), array('class' => 'long', 'id' => 'milestoneFormName'));
?>
  </div>
  
  <div>
    <?php 
echo label_tag(lang('description'), 'milestoneFormDesc');
?>
    <?php 
echo textarea_field('milestone[description]', array_var($milestone_data, 'description'), array('class' => 'short', 'id' => 'milestoneFormDesc'));
?>
  </div>
  
  <div>
    <?php 
echo label_tag(lang('due date'), null, true);
?>
    <?php 
echo pick_date_widget('milestone_due_date', array_var($milestone_data, 'due_date'));
?>
  </div>

<?php 
if (logged_user()->getProjectPermission($milestone->getProject(), 'milestones-edit_goal')) {
    ?>
开发者ID:federosky,项目名称:ProjectPier-Core,代码行数:30,代码来源:add_milestone.php


示例9: label_tag

				</table>
			</div>
		</div>
		<div class="clear"></div>
	
		<div class="input-container">
			<div id="<?php 
echo $genid;
?>
add_contact_notes">
				<?php 
echo label_tag(lang('notes'), $genid . 'profileFormNotes');
?>
				<div style="float:left;width:600px;" class="notes-container">
					<?php 
echo textarea_field('contact[comments]', array_var($contact_data, 'comments'), array('id' => $genid . 'profileFormNotes', 'style' => 'width: 100%;', 'rows' => 5));
?>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>

</div>

<script>

$(document).ready(function() {
	
	var is_new_contact = <?php 
echo $new_contact ? 'true' : 'false';
开发者ID:abhinay100,项目名称:feng_app,代码行数:31,代码来源:more_contact_data.php


示例10: clean

    echo clean($category->getName());
    ?>
</a></div>
<?php 
}
// if
?>
  </div>
  
  <div>
    <?php 
echo label_tag(lang('description'), 'categoryFormDescription');
if ($canEdit) {
    ?>
    <?php 
    echo textarea_field('category[description]', array_var($category_data, 'description'), array('id' => 'categoryFormDescription', 'class' => 'short'));
} else {
    ?>
    <div class="desc"><?php 
    echo clean($category->getDescription());
    ?>
</a></div>
<?php 
}
// if
?>
  </div>

<?php 
if ($canEdit) {
    ?>
开发者ID:469306621,项目名称:Languages,代码行数:31,代码来源:add_category.php


示例11: lang

		<fieldset>
			<legend><?php echo lang($category['name'])?><?php if ($category['required']) echo ' <span class="label_required">*</span>'; ?></legend>
			<?php echo $category['content'] ?>
		</fieldset>
		</div>
	<?php } ?>

	
	<?php if ($file->getType() == ProjectFiles::TYPE_WEBLINK) { ?>
	<div>
		<?php echo checkbox_field('file[version_file_change]', array_var($file_data, 'version_file_change', false), array('id' => $genid.'fileFormVersionChange', 'class' => 'checkbox', 'tabindex' => '70')) ?>
		<?php echo label_tag(lang('version file change'), $genid.'fileFormVersionChange', false, array('class' => 'checkbox'), '') ?>
	</div>
	<div id="<?php echo $genid ?>fileFormRevisionCommentBlock">
		<?php echo label_tag(lang('revision comment'), $genid.'fileFormRevisionComment', $comments_required) ?>
		<?php echo textarea_field('file[revision_comment]', array_var($file_data, 'revision_comment'), array('class' => 'long', 'tabindex' => '75', 'id' => $genid.'fileFormRevisionComment')) ?>
		<input type='hidden' id ="<?php echo $genid ?>RevisionCommentsRequired" value="<?php echo $comments_required? '1':'0'?>"/>
	</div>
	<?php } ?>

	<div id="<?php echo $genid ?>fileSubmitButton" style="display: inline">
		<input type="hidden" name="upload_id" value="<?php echo $genid ?>" />
		<?php
			if (!$file->isNew()) { //Edit file
				if (isset($checkin) && $checkin) {
					echo submit_button(lang('checkin file'),'s',array("id" => $genid.'add_file_submit2', 'tabindex' => '200'));
				} else {
					echo submit_button(lang('save changes'),'s',array("id" => $genid.'add_file_submit2', 'tabindex' => '200'));
				}
			} else { //New file
				echo submit_button(lang('add file'),'s',array("id" => $genid.'add_file_submit2', 'tabindex' => '200'));
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:add_file.php


示例12: label_tag

  
  <div>
    <?php 
echo label_tag(lang('url'), 'linkFormUrl', true);
?>
    <?php 
echo text_field('project_link[url]', array_var($project_link_data, 'url'), array('id' => 'linkFormUrl', 'class' => 'long'));
?>
  </div>

  <div>
    <?php 
echo label_tag(lang('description'), 'linkFormDescription', true);
?>
    <?php 
echo textarea_field('project_link[description]', array_var($project_link_data, 'description'), array('id' => 'linkFormDescription', 'class' => 'long'));
?>
  </div>

  <div>
    <?php 
echo label_tag(lang('folder'), 'linkFormFolder', true);
?>
    <?php 
echo select_project_folder('project_link[folder_id]', active_project(), array_var($project_link_data, 'folder_id'), array('id' => 'linkFormFolder'));
?>
  </div>

<?php 
if (plugin_active('tags')) {
    ?>
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:30,代码来源:edit_link.php


示例13: tpl_display

" method="POST">
<?php 
}
tpl_display(get_template_path('form_errors'));
?>

<div id="wiki-field-name">
<?php 
echo label_tag(lang('name'), 'wikiFormName', true);
echo text_field('wiki[name]', $revision->getName(), array('class' => 'long', 'id' => 'wikiFormName'));
?>
</div>
<div id="wiki-field-content">
<?php 
echo label_tag(lang('wiki page content'), 'wikiFormContent', true);
echo textarea_field('wiki[content]', $data['content'], array('cols' => 132, 'class' => 'shot', 'id' => 'wikiFormContent'));
echo submit_button(lang('preview'), 'p', array('name' => 'wiki[preview]'));
echo label_tag(lang('preview'), 'wikiFormPreview', false);
?>
<div class="preview"><?php 
echo do_textile(plugin_manager()->apply_filters('wiki_text', $data['preview_content']));
?>
</div>
</div>
<div id="wiki-field-log">
<?php 
echo label_tag(lang('wiki log message'), 'wikiFormLog');
echo text_field('wiki[log_message]', $page->isNew() ? lang('wiki page created') : '', array('class' => 'long', 'id' => 'wikiFormLog'));
if (plugin_active('tags')) {
    echo label_tag(lang('tags'), 'wikiFormTags');
    echo text_field('wiki[tags]', $tags, array('class' => 'long', 'id' => 'wikiFormTags'));
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:edit.php


示例14: submit_button

	</td><td style="text-align:right"><?php 
echo submit_button($timeslot->isNew() ? lang('add timeslot') : lang('save changes'), 's', array('style' => 'margin-top:0px;margin-left:10px'));
?>
</td></tr></table>
	</div>
	
	</div>
</div>
<div class="coInputSeparator"></div>
<div class="coInputMainBlock">
  <div class="formAddTimeslotDescription">
    <?php 
echo label_tag(lang('description'), 'addTimeslotDescription', false);
?>
    <?php 
echo textarea_field("timeslot[description]", array_var($timeslot_data, 'description'), array('class' => 'short', 'id' => 'addTimeslotDescription', 'tabindex' => '10'));
?>
  </div>
	<table>
		<tr>
			<td><b><?php 
echo lang("start date");
?>
:&nbsp;</b></td>
			<td align='left'><?php 
$start_time = new DateTimeValue($timeslot->getStartTime()->getTimestamp() + logged_user()->getTimezone() * 3600);
echo pick_date_widget2('timeslot[start_value]', $start_time, $genid, 20);
?>
</td>
		</tr>
		
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:30,代码来源:add_timeslot.php


示例15: textarea_field

             }
         }
         echo '<div id="value' . $count . '">';
         if ($customProp->getType() == 'memo') {
             echo textarea_field($name . '[]', '', array('tabindex' => $startTi + $ti, 'id' => $name . '[]'));
         } else {
             echo text_field($name . '[]', '', array('tabindex' => $startTi + $ti, 'id' => $name . '[]'));
         }
         echo '&nbsp;<a href="#" class="link-ico ico-add" onclick="og.addCPValue(' . $customProp->getId() . ',\'' . $isMemo . '\')">' . lang('add value') . '</a><br/>';
         echo '</div>';
         echo '</div>';
         echo "</td></tr></table>";
         $include_script = true;
     } else {
         if ($customProp->getType() == 'memo') {
             echo textarea_field($name, $default_value, array('tabindex' => $startTi + $ti, 'class' => 'short', 'id' => $genid . 'cp' . $customProp->getId()));
         } else {
             echo text_field($name, $default_value, array('tabindex' => $startTi + $ti, 'id' => $genid . 'cp' . $customProp->getId()));
         }
     }
     break;
 case 'boolean':
     break;
 case 'date':
     // dates from table are saved as a string in "Y-m-d H:i:s" format
     if ($customProp->getIsMultipleValues()) {
         $name .= '[]';
         $count = 0;
         $fieldValues = CustomPropertyValues::getCustomPropertyValues($_custom_properties_object->getId(), $customProp->getId());
         if (!is_array($fieldValues) || count($fieldValues) == 0) {
             $def_cp_value = new CustomPropertyValue();
开发者ID:rorteg,项目名称:fengoffice,代码行数:31,代码来源:object_custom_properties.php


示例16: editor_widget

/**
 * Return WYSIWYG editor widget
 *
 * @access public
 * @param string $name
 * @param string $value
 * @return string
 */
function editor_widget($name, $value = null, $attributes = null)
{
    $editor_attributes = is_array($attributes) ? $attributes : array();
    if (!isset($editor_attributes['class'])) {
        $editor_attributes['class'] = 'editor';
    }
    return textarea_field($name, $value, $editor_attributes);
}
开发者ID:rorteg,项目名称:fengoffice,代码行数:16,代码来源:form.php


示例17: label_tag

?>
	
	</div>



	<div id="<?php 
echo $genid;
?>
add_webpage_description_div" style="display: none">
		<fieldset><legend><?php 
echo label_tag(lang('description'), 'webpageFormDesc');
?>
</legend>
			<?php 
echo textarea_field('webpage[description]', array_var($webpage_data, 'description'), array('class' => 'long', 'id' => 'webpageFormDesc', 'tabindex' => '40'));
?>
		</fieldset>
	</div>
        
	<div id="<?php 
echo $genid;
?>
add_custom_properties_div" style="<?php 
echo $visible_cps > 0 ? "" : "display:none";
?>
">
            <fieldset>	
                <legend><?php 
echo lang('custom properties');
?>
开发者ID:rorteg,项目名称:fengoffice,代码行数:31,代码来源:add.php


示例18: pick_date_widget2

?>
			<?php 
echo pick_date_widget2('milestone[due_date_value]', array_var($milestone_data, 'due_date'), $genid, 90);
?>
			</div>

			<div id="<?php 
echo $genid;
?>
add_milestone_description_div" class="dataBlock">
				<label><?php 
echo lang("description");
?>
:</label>
				<?php 
echo textarea_field('milestone[description]', array_var($milestone_data, 'description'), array('class' => 'long', 'id' => $genid . 'milestoneFormDesc', 'tabindex' => '20'));
?>
			</div>
		</div>
	
  
	
		<div id="<?php 
echo $genid;
?>
add_reminders_div" class="form-tab" style="display:none;">
			<fieldset>
			<legend><?php 
echo lang('object reminders');
?>
</legend>
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:31,代码来源:add_template_milestone.php


示例19: render_context_help

if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_add_event_description_context_help', true, logged_user()->getId())) {
    ?>
			<div id="addEventPanelContextHelp" class="contextHelpStyle">
				<?php 
    render_context_help($this, 'chelp add event description', 'add_event_description');
    ?>
			</div>
		<?php 
}
?>
			<legend><?php 
echo lang('description');
?>
</legend>
				<?php 
echo textarea_field('event[description]', array_var($event_data, 'description'), array('id' => 'descriptionFormText', 'tabindex' => '30'));
?>
			</fieldset>
		</div>
		<div id="trap3"><fieldset id="fs3" style="height:0px;border:0px;padding:0px;display:none"><span style="color:#FFFFFF;"></span></fieldset></div>
		
<?php 
$occ = array_var($event_data, 'occ');
$rsel1 = array_var($event_data, 'rsel1');
$rsel2 = array_var($event_data, 'rsel2');
$rsel3 = array_var($event_data, 'rsel3');
$rnum = array_var($event_data, 'rnum');
$rend = array_var($event_data, 'rend');
?>
		
	<div id="<?php 
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:event.php


示例20: select_task_list

    ?>
    <?php 
    echo select_task_list('task[task_list_id]', active_project(), array_var($task_data, 'task_list_id'), false, array('id' => 'addTaskTaskList'));
    ?>
  </div>
<?php 
}
// if
?>

  <div>
    <?php 
echo label_tag(lang('text'), 'addTaskText', true);
?>
    <?php 
echo textarea_field("task[text]", array_var($task_data, 'text'), array('id' => 'addTaskText', 'class' => 'short'));
?>
  </div>
  <div>
    <label><?php 
echo lang('assign to');
?>
:</label>
    <?php 
echo assign_to_select_box("task[assigned_to]", active_project(), array_var($task_data, 'assigned_to'));
?>
  </div>
  
  <?php 
echo submit_button($task->isNew() ? lang('add task') : lang('edit task'));
?>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:add_task.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP textarea_row函数代码示例发布时间:2022-05-23
下一篇:
PHP textarea函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap