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


PHP html_textarea_field函数代码示例

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


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

示例1: build_form_html


//.........这里部分代码省略.........
     $output .= '	<td>' . TEXT_DESCRIPTION . '</td>' . chr(10);
     $output .= '	<td>' . html_input_field('description', $this->description, 'size="65" maxlength="64"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . TEXT_SORT_ORDER . '</td>' . chr(10);
     $output .= '	<td>' . html_input_field('sort_order', $this->sort_order, 'size="65" maxlength="64"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . TEXT_GROUP . '</td>' . chr(10);
     $output .= '	<td>' . html_input_field('group_by', $this->group_by, 'size="65" maxlength="64"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     if (is_array($this->type_array)) {
         $output .= '  <tr>' . chr(10);
         $output .= '	<td>' . $this->type_desc . '</td>' . chr(10);
         $output .= '	<td>';
         while ($type = array_shift($this->type_array)) {
             if (!is_array($choices)) {
                 $output .= html_checkbox_field('type_' . $type['id'], true, false, '', '') . $type['text'];
                 $output .= '<br />';
             } elseif (in_array($type['id'], $choices)) {
                 $output .= html_checkbox_field('type_' . $type['id'], true, true, '', '') . $type['text'];
                 $output .= '<br />';
             } else {
                 $output .= html_checkbox_field('type_' . $type['id'], true, false, '', '') . $type['text'];
                 $output .= '<br />';
             }
         }
         $output .= '	</td>';
         $output .= '</tr>' . chr(10);
     }
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . INV_CATEGORY_MEMBER . '</td>' . chr(10);
     $output .= '	<td>' . html_pull_down_menu('tab_id', $tab_list, $this->tab_id, $disabled) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="ui-widget-header">' . chr(10);
     $output .= '	<th colspan="2">' . TEXT_PROPERTIES . '</th>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>';
     $output .= html_radio_field('entry_type', 'text', $this->entry_type == 'text' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_TEXT_FIELD . '<br />';
     $output .= html_radio_field('entry_type', 'html', $this->entry_type == 'html' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_HTML_TEXT_FIELD . '</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_MAX_NUM_CHARS;
     $output .= '<br />' . html_input_field('length', $this->length ? $this->length : DEFAULT_TEXT_LENGTH, $readonly . 'size="10" maxlength="9"');
     $output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE . '<br />' . INV_LABEL_MAX_255;
     $output .= '<br />' . html_textarea_field('text_default', 35, 6, $this->text_default, $readonly);
     $output .= '	</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="ui-widget-content">' . chr(10);
     $output .= '	<td>';
     $output .= html_radio_field('entry_type', 'hyperlink', $this->entry_type == 'hyperlink' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_HYPERLINK . '<br />';
     $output .= html_radio_field('entry_type', 'image_link', $this->entry_type == 'image_link' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_IMAGE_LINK . '<br />';
     $output .= html_radio_field('entry_type', 'inventory_link', $this->entry_type == 'inventory_link' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_INVENTORY_LINK;
     $output .= '	</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_FIXED_255_CHARS;
     $output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE;
     $output .= '<br />' . html_textarea_field('link_default', 35, 3, $this->link_default, $readonly);
     $output .= '	</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . html_radio_field('entry_type', 'integer', $this->entry_type == 'integer' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_INTEGER_FIELD . '</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_INTEGER_RANGE;
     $output .= '<br />' . html_pull_down_menu('integer_range', gen_build_pull_down($integer_lengths), $this->integer_range, $disabled);
     $output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE . html_input_field('integer_default', $this->integer_default, $readonly . 'size="16"');
     $output .= '	</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="ui-widget-content">' . chr(10);
     $output .= '	<td>' . html_radio_field('entry_type', 'decimal', $this->entry_type == 'decimal' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_DECIMAL_FIELD . '</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_DECIMAL_RANGE;
     $output .= html_pull_down_menu('decimal_range', gen_build_pull_down($decimal_lengths), $this->decimal_range, $disabled);
     $output .= '<br />' . INV_LABEL_DEFAULT_DISPLAY_VALUE . html_input_field('decimal_display', $this->decimal_display ? $this->decimal_display : DEFAULT_REAL_DISPLAY_FORMAT, $readonly . 'size="6" maxlength="5"');
     $output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE . html_input_field('decimal_default', $this->decimal_default, $readonly . 'size="16"');
     $output .= '	</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>';
     $output .= html_radio_field('entry_type', 'multi_check_box', $this->entry_type == 'multi_check_box' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_MULTI_SELECT_FIELD . '<br />';
     $output .= html_radio_field('entry_type', 'drop_down', $this->entry_type == 'drop_down' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_DROP_DOWN_FIELD . '<br />';
     $output .= html_radio_field('entry_type', 'data_list', $this->entry_type == 'data_list' ? true : false, '', $disabled) . '&nbsp;' . TEXT_DATA_LIST . '<br />';
     $output .= html_radio_field('entry_type', 'radio', $this->entry_type == 'radio' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_RADIO_FIELD;
     $output .= '	</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_CHOICES . '<br />' . html_textarea_field('radio_default', 35, 6, $this->radio_default, $readonly) . '<br />';
     $output .= INV_LABEL_RADIO_EXPLANATION . '<br />' . TEXT_DATA_LIST_EXPLANATION . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="ui-widget-content">' . chr(10);
     $output .= '	<td>' . html_radio_field('entry_type', 'check_box', $this->entry_type == 'check_box' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_CHECK_BOX_FIELD . '</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_DEFAULT_TEXT_VALUE . html_pull_down_menu('check_box_range', gen_build_pull_down($check_box_choices), $this->check_box_range, $disabled) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '   <td>';
     $output .= html_radio_field('entry_type', 'date', $this->entry_type == 'date' ? true : false, '', $disabled) . '&nbsp;' . TEXT_DATE . '<br />';
     $output .= html_radio_field('entry_type', 'time', $this->entry_type == 'time' ? true : false, '', $disabled) . '&nbsp;' . TEXT_TIME . '<br />';
     $output .= html_radio_field('entry_type', 'date_time', $this->entry_type == 'date_time' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_DATE_TIME_FIELD . '<br />';
     $output .= html_radio_field('entry_type', 'time_stamp', $this->entry_type == 'time_stamp' ? true : false, '', $disabled) . '&nbsp;' . INV_LABEL_TIME_STAMP_FIELD;
     $output .= '   </td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_TIME_STAMP_VALUE . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  </tbody>' . "\n";
     $output .= '</table>' . chr(10);
     return $output;
 }
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:101,代码来源:fields.php

示例2: html_radio_field

?>
	    <?php 
echo TEXT_NO . ' ' . html_radio_field('capa_closed', 'n', $cInfo->capa_closed == 'n' ? true : false);
?>
	  </td>
	  <td align="right"><?php 
echo TEXT_NEW_CAPA_NUMBER;
?>
</td>
	  <td><?php 
echo html_input_field('next_capa_num', $cInfo->next_capa_num, 'size="12" maxlength="10"');
?>
</td>
	</tr>
	<tr>
	  <td align="right" valign="top"><?php 
echo TEXT_AUDIT_NOTES;
?>
</td>
	  <td colspan="4"><?php 
echo html_textarea_field('notes_audit', 80, 3, $cInfo->notes_audit, '', true);
?>
</td>
	</tr>
  </table>
</fieldset>
<?php 
echo $hidden_fields;
?>
</form>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:30,代码来源:template_detail.php

示例3: html_input_field

	  <td class="main" align="right"><?php 
echo TEXT_RECEIVE_TRACKING_NUM;
?>
</td>
	  <td class="main"><?php 
echo html_input_field('receive_tracking', $cInfo->receive_tracking);
?>
 </td>
	</tr>
	<tr>
	  <td class="main" align="right" valign="top"><?php 
echo TEXT_RECEIVE_NOTES;
?>
</td>
	  <td colspan="3" class="main"><?php 
echo html_textarea_field('receive_notes', true, 60, 3, $cInfo->receive_notes, '', $reinsert_value = true);
?>
</td>
	</tr>
  </table>
  <table border="0" cellspacing="0" cellpadding="0"><tr>
	<td id="productList" class="formArea">
	  <table id="item_table" width="100%" border="1" cellpadding="1" cellspacing="1">
        <tr>
          <th class="dataTableHeadingContent" align="center"><?php 
echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small');
?>
</th>
          <th class="dataTableHeadingContent" align="center"><?php 
echo TEXT_QUANTITY;
?>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_detail.php

示例4: elseif

} elseif ($security_level > 1 && !$locked) {
    $docbar->icon_list['lock'] = array('show' => true, 'icon' => 'actions/system-lock-screen.png', 'params' => 'onclick="docAction(\'lock\')"', 'text' => TEXT_LOCK_DOC, 'order' => 50);
}
if ($security_level > 2 && !$checked_out) {
    $docbar->icon_list['check_out'] = array('show' => true, 'icon' => 'actions/mail-forward.png', 'params' => 'onclick="submitSeq(' . $id . ',\'check_out\', true)"', 'text' => TEXT_CHECKOUT_DOC, 'order' => 60);
}
if ($security_level > 3 && $checked_out && $checkout_id == $_SESSION['admin_id']) {
    $docbar->icon_list['del_checkout'] = array('show' => true, 'icon' => 'actions/mail-mark-not-junk.png', 'params' => 'onclick="submitSeq(' . $id . ',\'del_checkout\')"', 'text' => TEXT_CANCEL_CHECKOUT, 'order' => 65);
}
$fieldset_content .= $docbar->build_toolbar() . chr(10);
$fieldset_content .= html_hidden_field('id', $doc_details->fields['id']) . chr(10);
$fieldset_content .= TEXT_DOCUMENT . html_input_field('title', $doc_details->fields['title'], 'size="64"') . chr(10);
// build the table contents
$fieldset_content .= '<table width="100%" cellspacing="0" cellpadding="4">' . chr(10);
$fieldset_content .= '<tr><td colspan="2">' . $dir_path . '</td></tr>' . chr(10);
$fieldset_content .= '<tr><td colspan="2">' . html_textarea_field('description', 75, 3, $doc_details->fields['description'], '', true) . '</td></tr>' . chr(10);
$fieldset_content .= '<tr><td colspan="2">' . TEXT_UPLOAD_FILE . ' ' . html_file_field('docfile') . '</td></tr>' . chr(10);
// column 1
$fieldset_content .= '<tr><td width="50%" valign="top">' . chr(10);
$fieldset_content .= '  <table class="ui-widget" style="border-collapse:collapse;width:100%">';
$fieldset_content .= '  <thead class="ui-widget-header">' . chr(10);
$fieldset_content .= '  <tr>' . chr(10);
$fieldset_content .= '    <th colspan="2">' . TEXT_PROPERTIES . '</th>' . chr(10);
$fieldset_content .= '  </tr>' . chr(10);
$fieldset_content .= '  </thead>' . chr(10);
$fieldset_content .= '  <tbody class="ui-widget-content">' . chr(10);
$fieldset_content .= '  <tr>' . chr(10);
$fieldset_content .= '    <td>' . TEXT_FILENAME . '</td>' . chr(10);
$fieldset_content .= '    <td>' . $doc_details->fields['file_name'] . '</td>' . chr(10);
$fieldset_content .= '  </tr><tr>' . chr(10);
$fieldset_content .= '    <td>' . TEXT_OWNER . '</td>' . chr(10);
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:tab_document.php

示例5: html_textarea_field

// | but WITHOUT ANY WARRANTY; without even the implied warranty of  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// |                                                                 |
// | The license that is bundled with this package is located in the |
// | file: /doc/manual/ch01-Introduction/license.html.               |
// | If not, see http://www.gnu.org/licenses/                        |
// +-----------------------------------------------------------------+
//  Path: /modules/accounts/pages/main/template_j_notes.php
//
?>
<div id="cat_notes" class="tabset_content">
  <h2 class="tabset_label"><?php 
echo TEXT_NOTES;
?>
</h2>
  <fieldset class="formAreaTitle">
    <legend><?php 
echo TEXT_NOTES;
?>
</legend>
    <table border="0" width="100%" cellspacing="6" cellpadding="0">
	  <tr>
	    <td><?php 
echo html_textarea_field('jm_notes', 120, 30, $cInfo->jm_notes);
?>
</td>
	  </tr>
	</table>
  </fieldset>
</div>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_j_notes.php

示例6: build_form_html

 function build_form_html($action, $id = '')
 {
     global $db, $messageStack;
     global $integer_lengths, $decimal_lengths, $check_box_choices;
     $cInfo = '';
     if ($action != 'new') {
         $result = $db->Execute("select id, entry_type, field_name, description, id, params \n\t    from " . TABLE_EXTRA_FIELDS . " where id = '" . $id . "'");
         $params = unserialize($result->fields['params']);
         foreach ($params as $key => $value) {
             $result->fields[$key] = $value;
         }
         $form_array = xtra_field_prep_form($result->fields);
         $cInfo = new objectInfo($form_array);
     }
     // build the tab list
     $tab_list = gen_build_pull_down(xtra_field_get_tabs('assets'));
     array_shift($tab_list);
     if ($action == 'new' && sizeof($tab_list) < 1) {
         $messageStack->add(EXTRA_FIELDS_ERROR_NO_TABS, 'error');
         echo $messageStack->output();
     }
     $output = '<table style="border-collapse:collapse;margin-left:auto; margin-right:auto;">' . chr(10);
     $output .= '  <thead class="ui-widget-header">' . "\n";
     $output .= '  <tr>' . chr(10);
     $output .= '    <th colspan="2">' . ($action == 'new' ? TEXT_NEW_FIELD : TEXT_EDIT_FIELD) . '</th>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  </thead>' . "\n";
     $output .= '  <tbody class="ui-widget-content">' . "\n";
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . INV_FIELD_NAME . '</td>' . chr(10);
     $output .= '	<td>' . html_input_field('field_name', $cInfo->field_name, 'size="33" maxlength="32"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td colspan="2">' . INV_FIELD_NAME_RULES . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . TEXT_DESCRIPTION . '</td>' . chr(10);
     $output .= '	<td>' . html_input_field('description', $cInfo->description, 'size="65" maxlength="64"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . INV_CATEGORY_MEMBER . '</td>' . chr(10);
     $output .= '	<td>' . html_pull_down_menu('tab_id', $tab_list, $cInfo->tab_id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="ui-widget-header">' . chr(10);
     $output .= '	<th colspan="2">' . TEXT_PROPERTIES . '</th>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>';
     $output .= html_radio_field('entry_type', 'text', $cInfo->entry_type == 'text' ? true : false) . '&nbsp;' . INV_LABEL_TEXT_FIELD . '<br />';
     $output .= html_radio_field('entry_type', 'html', $cInfo->entry_type == 'html' ? true : false) . '&nbsp;' . INV_LABEL_HTML_TEXT_FIELD . '</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_MAX_NUM_CHARS;
     $output .= '<br />' . html_input_field('text_length', $cInfo->text_length ? $cInfo->text_length : DEFAULT_TEXT_LENGTH, 'size="10" maxlength="9"');
     $output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE . '<br />' . INV_LABEL_MAX_255;
     $output .= '<br />' . html_textarea_field('text_default', 35, 6, $cInfo->text_default);
     $output .= '	</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>';
     $output .= html_radio_field('entry_type', 'hyperlink', $cInfo->entry_type == 'hyperlink' ? true : false) . '&nbsp;' . INV_LABEL_HYPERLINK . '<br />';
     $output .= html_radio_field('entry_type', 'image_link', $cInfo->entry_type == 'image_link' ? true : false) . '&nbsp;' . INV_LABEL_IMAGE_LINK . '<br />';
     $output .= html_radio_field('entry_type', 'inventory_link', $cInfo->entry_type == 'inventory_link' ? true : false) . '&nbsp;' . INV_LABEL_INVENTORY_LINK;
     $output .= '	</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_FIXED_255_CHARS;
     $output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE;
     $output .= '<br />' . html_textarea_field('link_default', 35, 3, $cInfo->link_default);
     $output .= '	</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . html_radio_field('entry_type', 'integer', $cInfo->entry_type == 'integer' ? true : false) . '&nbsp;' . INV_LABEL_INTEGER_FIELD . '</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_INTEGER_RANGE;
     $output .= '<br />' . html_pull_down_menu('integer_range', gen_build_pull_down($integer_lengths), $cInfo->integer_range);
     $output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE . html_input_field('integer_default', $cInfo->integer_default, 'size="16"');
     $output .= '	</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . html_radio_field('entry_type', 'decimal', $cInfo->entry_type == 'decimal' ? true : false) . '&nbsp;' . INV_LABEL_DECIMAL_FIELD . '</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_DECIMAL_RANGE;
     $output .= html_pull_down_menu('decimal_range', gen_build_pull_down($decimal_lengths), $cInfo->decimal_range);
     $output .= '<br />' . INV_LABEL_DEFAULT_DISPLAY_VALUE . html_input_field('decimal_display', $cInfo->decimal_display ? $cInfo->decimal_display : DEFAULT_REAL_DISPLAY_FORMAT, 'size="6" maxlength="5"');
     $output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE . html_input_field('decimal_default', $cInfo->decimal_default, 'size="16"');
     $output .= '	</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>';
     $output .= html_radio_field('entry_type', 'drop_down', $cInfo->entry_type == 'drop_down' ? true : false) . '&nbsp;' . INV_LABEL_DROP_DOWN_FIELD . '<br />';
     $output .= html_radio_field('entry_type', 'radio', $cInfo->entry_type == 'radio' ? true : false) . '&nbsp;' . INV_LABEL_RADIO_FIELD;
     $output .= '	</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_CHOICES . '<br />' . html_textarea_field('radio_default', 35, 6, $cInfo->radio_default) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . html_radio_field('entry_type', 'check_box', $cInfo->entry_type == 'check_box' ? true : false) . '&nbsp;' . INV_LABEL_CHECK_BOX_FIELD . '</td>' . chr(10);
     $output .= '	<td>' . INV_LABEL_DEFAULT_TEXT_VALUE . html_pull_down_menu('check_box_range', gen_build_pull_down($check_box_choices), $cInfo->check_box_range) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . html_radio_field('entry_type', 'date', $cInfo->entry_type == 'date' ? true : false) . '&nbsp;' . TEXT_DATE . '</td>' . chr(10);
     $output .= '	<td>&nbsp;</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '	<td>' . html_radio_field('entry_type', 'time', $cInfo->entry_type == 'time' ? true : false) . '&nbsp;' . TEXT_TIME . '</td>' . chr(10);
     $output .= '	<td>&nbsp;</td>' . chr(10);
//.........这里部分代码省略.........
开发者ID:TrinityComputers,项目名称:PhreeBooksERP,代码行数:101,代码来源:fields.php

示例7: html_textarea_field

	  <td class="main"><?php 
echo '&nbsp;';
?>
</td>
	  <td class="main"><?php 
echo '&nbsp;';
?>
</td>
	</tr>
	<tr>
	  <td class="main" valign="top"><?php 
echo ASSETS_ENTRY_ASSETS_DESC_PURCHASE;
?>
</td>
	  <td colspan="3" class="main"><?php 
echo html_textarea_field('description_long', true, 75, 3, $cInfo->description_long, '', $reinsert_value = true);
?>
</td>
	</tr>
	<tr>
	  <td class="main"><?php 
echo ASSETS_ENTRY_ACCT_SALES;
?>
</td>
	  <td class="main"><?php 
echo html_pull_down_menu('account_asset', $gl_array_list, $cInfo->account_asset);
?>
</td>
	  <td class="main"><?php 
echo ASSETS_DATE_ACCOUNT_CREATION;
?>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_detail.php

示例8: html_checkbox_field

?>
</td>
	<td><?php 
echo html_checkbox_field('closed', '1', $closed ? true : false) . ($closed ? ' ' . gen_locale_date($close_date) : '');
?>
</td>
  </tr>
  <tr>
    <td colspan="6"><?php 
echo TEXT_SPECIAL_NOTES;
?>
</td>
  </tr>
  <tr>
	<td colspan="6"><?php 
echo html_textarea_field('notes', 80, 3, $notes, $params = '');
?>
</td>
  </tr>
</tbody>
</table>
<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto">
 <thead class="ui-widget-header">
	<tr>
	  <th><?php 
echo TEXT_STEP;
?>
</th>
	  <th><?php 
echo TEXT_TASK_NAME;
?>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_new.php

示例9: html_textarea_field

echo TEXT_DETAILS;
?>
</legend>
  <p><?php 
echo RMA_DISPOSITION_DESC;
?>
</p>
<table class="ui-widget" style="border-style:none;margin-left:auto;margin-right:auto">
 <tbody class="ui-widget-content">
   <tr>
	<td align="right" valign="top"><?php 
echo TEXT_NOTES;
?>
</td>
	<td><?php 
echo html_textarea_field('close_notes', 60, 3, $cInfo->close_notes, '', true);
?>
</td>
   </tr>
   <tr>
	<td colspan="2">
	 <table class="ui-widget" style="border-collapse:collapse;width:100%">
	  <thead class="ui-widget-header">
        <tr>
          <th><?php 
echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small');
?>
</th>
          <th><?php 
echo TEXT_QUANTITY;
?>
开发者ID:TrinityComputers,项目名称:PhreeBooksERP,代码行数:31,代码来源:tab_disposition.php

示例10: html_textarea_field

    </tr>
    <tr>
      <td colspan="8" width="100%"><?php 
echo html_textarea_field('narrative', 80, 3, $myrow['narrative'], '');
?>
</td>
    </tr>
    <tr>
      <th colspan="8"><?php 
echo RW_EMAIL_MSG_DETAIL;
?>
</th>
    </tr>
    <tr>
      <td colspan="8" width="100%"><?php 
echo html_textarea_field('email_msg', 80, 3, $myrow['email_msg'], '');
?>
</td>
    </tr>
<?php 
if ($show['layout']) {
    if ($show['serial']) {
        ?>
    <tr>
      <td colspan="1" align="center"><?php 
        echo html_checkbox_field('serialform', '1', $myrow['serialform'] ? true : false, '', '');
        ?>
</td>
      <td colspan="7"><?php 
        echo RW_SERIAL_FORM;
        ?>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_page_setup.php

示例11: xtra_field_build_entry

function xtra_field_build_entry($param_array, $cInfo)
{
    $output = '<tr><td>' . $param_array['description'] . '</td>';
    $params = unserialize($param_array['params']);
    switch ($params['type']) {
        case 'text':
        case 'html':
            if ($params['length'] < 256) {
                $length = $params['length'] > 120 ? 'size="120"' : 'size="' . $params['length'] . '"';
                $output .= '<td>' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], $length) . '</td></tr>';
            } else {
                $output .= '<td>' . html_textarea_field($param_array['field_name'], DEFAULT_INPUT_FIELD_LENGTH, 4, $cInfo->{$param_array}['field_name']) . '</td></tr>';
            }
            break;
        case 'data_list':
            $length = $params['length'] > 120 ? 'size="120"' : 'size="' . $params['length'] . '"';
            $output .= '<td>' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], $length . " list='{$param_array['field_name']}'") . '</td>';
            $output .= "<datalist id='{$param_array['field_name']}'>";
            $choices = explode(',', $params['default']);
            while ($choice = array_shift($choices)) {
                $values = explode(':', $choice);
                if ($values[0] != '') {
                    $output .= "<option value='{$values['0']}'>";
                }
            }
            $output .= '</datalist></tr>';
            break;
        case 'hyperlink':
        case 'image_link':
        case 'inventory_link':
            $output .= '<td>' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], 'size="' . DEFAULT_INPUT_FIELD_LENGTH . '"') . '</td></tr>';
            break;
        case 'integer':
        case 'decimal':
            $output .= '<td>' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], 'size="13" maxlength="12" style="text-align:right"') . '</td></tr>';
            break;
        case 'date':
        case 'time':
        case 'date_time':
            $output .= '<td>' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], 'size="21" maxlength="20"') . '</td></tr>';
            break;
        case 'drop_down':
        case 'enum':
            $choices = explode(',', $params['default']);
            $pull_down_selection = array();
            $default_selection = '';
            while ($choice = array_shift($choices)) {
                $values = explode(':', $choice);
                $pull_down_selection[] = array('id' => $values[0], 'text' => $values[1]);
                if ($cInfo->{$param_array}['field_name'] == $values[0]) {
                    $default_selection = $values[0];
                }
            }
            $output .= '<td>' . html_pull_down_menu($param_array['field_name'], $pull_down_selection, $default_selection) . '</td></tr>';
            break;
        case 'radio':
            $output .= '<td>';
            $choices = explode(',', $params['default']);
            while ($choice = array_shift($choices)) {
                $values = explode(':', $choice);
                $output .= html_radio_field($param_array['field_name'], $values[0], $cInfo->{$param_array}['field_name'] == $values[0] ? true : false);
                $output .= '<label for="' . $param_array['field_name'] . '_' . $values[0] . '"> ' . $values[1] . '</label>';
            }
            $output .= '</td></tr>';
            break;
        case 'multi_check_box':
            $output .= '<td>';
            $output .= '<table frame="border"><tr>';
            $choices = explode(',', $params['default']);
            $selected = explode(',', $cInfo->{$param_array}['field_name']);
            $i = 1;
            while ($choice = array_shift($choices)) {
                $values = explode(':', $choice);
                $output .= '<td>';
                $output .= html_checkbox_field($param_array['field_name'] . $values[0], $values[0], in_array($values[0], $selected) ? true : false);
                $output .= '<label for="' . $param_array['field_name'] . $values[0] . '"> ' . $values[1] . '</label>';
                $output .= '</td>';
                if ($i == 4) {
                    $output .= '</tr><tr>';
                    $i = 0;
                }
                $i++;
            }
            $output .= '</tr></table>';
            $output .= '</td></tr>';
            break;
        case 'check_box':
            $output .= '<td>' . html_checkbox_field($param_array['field_name'], '1', $cInfo->{$param_array}['field_name'] == 1 ? true : false) . '</td></tr>';
            break;
        case 'time_stamp':
        default:
            $output = '';
    }
    return $output;
}
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:95,代码来源:common_functions.php

示例12: htmlspecialchars

        ?>
</td>
	    <td><?php 
        echo htmlspecialchars($crm_actions[$value->action]);
        ?>
</td>
	   </tr>
	   <tr id="tr_crm_b_<?php 
        echo $value->log_id;
        ?>
">
	    <td colspan="4"><?php 
        echo htmlspecialchars($value->notes);
        ?>
</td>
	   </tr>
<?php 
    }
} else {
    echo '<tr><td colspan="4">' . ACT_NO_RESULTS . '</td></tr>';
}
?>
	  </tbody>
	 </table>
	</div>
    <div style="width:50%"><?php 
echo html_textarea_field('address[' . $type . 'm][notes]', 60, 30, $cInfo->address[$type . 'm']['notes']);
?>
</div>
  </fieldset>
</div>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_notes.php

示例13: cfg_textarea_small

function cfg_textarea_small($text, $key = '')
{
    $name = $key ? 'configuration[' . $key . ']' : 'configuration_value';
    return html_textarea_field($name, 35, 1, $text);
}
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:5,代码来源:setup.php

示例14: html_pull_down_menu

	  <td><?php 
echo TEXT_REASON_FOR_RETURN;
?>
</td>
	  <td><?php 
echo TEXT_NOTES;
?>
</td>
	</tr>
	<tr>
	  <td valign="top"><?php 
echo html_pull_down_menu('return_code', gen_build_pull_down($reason_codes), $cInfo->return_code);
?>
</td>
	  <td><?php 
echo html_textarea_field('caller_notes', 60, 3, $cInfo->caller_notes, '', true);
?>
</td>
	</tr>
  </tbody>
 </table>
</div>
</fieldset>
<?php 
// *********************** Attachments  *************************************
?>
   <fieldset>
   <legend><?php 
echo TEXT_ATTACHMENTS;
?>
</legend>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:tab_general.php

示例15: removeVendorRow

?>
\')) removeVendorRow('+rowId+');"');
	newCell = newRow.insertCell(-1);
	newCell.innerHTML = cell;
	<?php 
if (isset($cInfo->vendor_id)) {
    echo "cell  ='" . str_replace("'", "\\'", html_pull_down_menu('vendor_id_array[]', gen_get_contact_array_by_type('v'), $cInfo->vendor_id)) . "';" . chr(13);
} else {
    echo "cell  ='';" . chr(13);
}
?>
	newCell = newRow.insertCell(-1);
	newCell.innerHTML = cell;
	<?php 
if (isset($cInfo->description_purchase)) {
    echo "cell  ='" . str_replace("'", "\\'", html_textarea_field('description_purchase_array[]', 75, 2, $cInfo->description_purchase, '', $reinsert_value = true)) . "';" . chr(13);
} else {
    echo "cell  ='';" . chr(13);
}
?>
	newCell = newRow.insertCell(-1);
	newCell.innerHTML = cell;
	<?php 
if (isset($cInfo->item_cost)) {
    echo "cell  ='" . str_replace("'", "\\'", html_input_field('item_cost_array[]', $cInfo->item_cost, 'onchange="what_to_update();" size="15" maxlength="20" style="text-align:right"', false)) . "';" . chr(13);
} else {
    echo "cell  ='';" . chr(13);
}
?>
	newCell = newRow.insertCell(-1);
	newCell.innerHTML = cell;
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:js_include.php


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