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


PHP textarea_field函数代码示例

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


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


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