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

PHP html_input_field函数代码示例

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

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



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

示例1: Output

 function Output($params)
 {
     global $db;
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">';
     $control .= TEXT_NOTE . '&nbsp;' . html_input_field('my_note', '', 'size="50"') . '<br />';
     $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= html_submit_field('my_note_submit', TEXT_ADD);
     $control .= html_hidden_field($this->module_id . '_rId', '');
     $control .= '</div></div>';
     // Build content box
     $contents = '';
     if (is_array($params)) {
         $index = 1;
         foreach ($params as $my_note) {
             if ($_SESSION['admin_security'][SECURITY_ID_USERS] > 3) {
                 // only let delete if user permission is full
                 $contents .= '<div style="float:right; height:16px;">';
                 $contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->module_id . '\', ' . $index . ')"');
                 $contents .= '</div>';
             }
             $contents .= '<div style="height:16px;">- ' . $my_note . '</div>' . chr(10);
             $index++;
         }
     } else {
         $contents = CP_MY_NOTES_NO_RESULTS;
     }
     return $this->build_div($this->title, $contents, $control);
 }
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:30,代码来源:my_notes.php


示例2: Output

 function Output($params)
 {
     global $db;
     $contents = '';
     $control = '';
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">';
     $control .= TEXT_TITLE . '&nbsp;' . html_input_field('personal_links_field_0', '', 'size="40"') . '<br />';
     $control .= TEXT_URL . '&nbsp;' . html_input_field('personal_links_field_1', '', 'size="64"');
     $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= html_submit_field('sub_personal_links', TEXT_ADD);
     $control .= html_hidden_field('personal_links_rId', '');
     $control .= '</div></div>';
     // Build content box
     $contents = '';
     if (is_array($params)) {
         $index = 1;
         foreach ($params as $title => $hyperlink) {
             $contents .= '<div style="float:right; height:16px;">';
             $contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
             $contents .= '</div>';
             $contents .= '<div style="min-height:16px;">';
             $contents .= '<a href="' . $hyperlink . '" target="_blank">' . $title . '</a>' . chr(10);
             $contents .= '</div>';
             $index++;
         }
     } else {
         $contents = ACT_NO_RESULTS;
     }
     return $this->build_div('', $contents, $control);
 }
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:32,代码来源:personal_links.php


示例3: Output

 function Output($params)
 {
     global $db;
     $contents = '';
     $control = '';
     // Build control box form data
     $control = '  <div class="row">' . chr(10);
     $control .= '    <div style="white-space:nowrap">';
     $control .= TEXT_NOTE . '&nbsp;' . html_input_field('my_notes_field_0', '', 'size="64"') . '<br />';
     $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= html_submit_field('sub_my_notes', TEXT_ADD);
     $control .= html_hidden_field('my_notes_rId', '');
     $control .= '    </div>' . chr(10);
     $control .= '  </div>' . chr(10);
     // Build content box
     $contents = '';
     if (is_array($params)) {
         $index = 1;
         foreach ($params as $my_note) {
             $contents .= '  <div>';
             $contents .= '    <div style="float:right; height:16px;">';
             $contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
             $contents .= '    </div>' . chr(10);
             $contents .= '    <div style="min-height:16px;">&#9679; ' . $my_note . '</div>' . chr(10);
             $contents .= '  </div>' . chr(10);
             $index++;
         }
     } else {
         $contents = ACT_NO_RESULTS;
     }
     return $this->build_div('', $contents, $control);
 }
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:32,代码来源:my_notes.php


示例4: configure

 function configure($key)
 {
     switch ($key) {
         case 'MODULE_SHIPPING_TABLE_MODE':
             $temp = array(array('id' => 'price', 'text' => TEXT_PRICE), array('id' => 'weight', 'text' => TEXT_WEIGHT));
             $html .= html_pull_down_menu(strtolower($key), $temp, constant($key));
             break;
         default:
             $html .= html_input_field(strtolower($key), constant($key), '');
     }
     return $html;
 }
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:12,代码来源:table.php


示例5: selection

 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'module' => MODULE_PAYMENT_FIRSTDATA_TEXT_CATALOG_TITLE, 'fields' => array(array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CREDIT_CARD_OWNER, 'field' => html_input_field('firstdata_field_0', $order->firstdata_field_0)), array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CREDIT_CARD_NUMBER, 'field' => html_input_field('firstdata_field_1', $order->firstdata_field_1)), array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CREDIT_CARD_EXPIRES, 'field' => html_pull_down_menu('firstdata_field_2', $expires_month, $order->firstdata_field_2) . '&nbsp;' . html_pull_down_menu('firstdata_field_3', $expires_year, $order->firstdata_field_3)), array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CVV, 'field' => html_input_field('firstdata_field_4', $order->firstdata_field_4, 'size="4" maxlength="4"'))));
     return $selection;
 }
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:13,代码来源:firstdata.php


示例6: selection

 /**
  * Display Credit Card Information Submission Fields on the Checkout Payment Page
  *
  * @return array
  */
 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $j = $i < 10 ? '0' . $i : $i;
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => $j . '-' . strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'page' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER, 'field' => html_input_field('nova_xml_field_0', $this->field_0)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => html_input_field('nova_xml_field_1', $this->field_1)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => html_pull_down_menu('nova_xml_field_2', $expires_month, $this->field_2) . '&nbsp;' . html_pull_down_menu('nova_xml_field_3', $expires_year, $this->field_3)), array('title' => MODULE_PAYMENT_CC_TEXT_CVV, 'field' => html_input_field('nova_xml_field_4', $this->field_4, 'size="4" maxlength="4"' . ' id="' . $this->code . '-cc-cvv"') . ' ' . '<a href="javascript:popupWindow(\'' . html_href_link(FILENAME_POPUP_CVV_HELP) . '\')">' . TEXT_MORE_INFO . '</a>')));
     return $selection;
 }
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:19,代码来源:nova_xml.php


示例7: selection

 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $j = $i < 10 ? '0' . $i : $i;
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => $j . '-' . strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'page' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_PAYPAL_NVP_TEXT_CREDIT_CARD_OWNER, 'field' => html_input_field('paypal_nvp_field_0', $order->paypal_nvp_field_0, 'size="12" maxlength="25"') . '&nbsp;' . html_input_field('paypal_nvp_field_5', $order->paypal_nvp_field_5, 'size="12" maxlength="25"')), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => html_input_field('paypal_nvp_field_1', $order->paypal_nvp_field_1)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => html_pull_down_menu('paypal_nvp_field_2', $expires_month, $order->paypal_nvp_field_2) . '&nbsp;' . html_pull_down_menu('paypal_nvp_field_3', $expires_year, $order->paypal_nvp_field_3)), array('title' => MODULE_PAYMENT_CC_TEXT_CVV, 'field' => html_input_field('paypal_nvp_field_4', $order->paypal_nvp_field_4, 'size="4" maxlength="4"'))));
     return $selection;
 }
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:14,代码来源:paypal_nvp.php


示例8: configure

 function configure($key)
 {
     switch ($key) {
         case 'MODULE_PAYMENT_' . strtoupper($this->code) . '_OPEN_POS_DRAWER':
             $temp = array(array('id' => '0', 'text' => TEXT_NO), array('id' => '1', 'text' => TEXT_YES));
             return html_pull_down_menu(strtolower($key), $temp, constant($key));
         case 'MODULE_PAYMENT_' . strtoupper($this->code) . '_SHOW_IN_POS':
             $temp = array(array('id' => '0', 'text' => TEXT_NO), array('id' => '1', 'text' => TEXT_YES));
             return html_pull_down_menu(strtolower($key), $temp, constant($key));
         case 'MODULE_PAYMENT_' . strtoupper($this->code) . '_POS_GL_ACCT':
             return html_pull_down_menu(strtolower($key), gen_coa_pull_down(), constant($key));
         default:
             return html_input_field(strtolower($key), constant($key));
     }
 }
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:15,代码来源:payment.php


示例9: Output

 function Output($params)
 {
     global $db;
     $contents = '';
     $control = '';
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">';
     if ($_SESSION['admin_security'][SECURITY_ID_USERS] > 1) {
         // only show add new if user permission is set to add
         $control .= TEXT_TITLE . '&nbsp;' . html_input_field('company_links_field_0', '', 'size="40"') . '<br />';
         $control .= TEXT_URL . '&nbsp;' . html_input_field('company_links_field_1', '', 'size="64"');
         $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
         $control .= html_submit_field('sub_company_links', TEXT_ADD);
     }
     $control .= html_hidden_field('company_links_rId', '');
     $control .= '</div></div>';
     // Build content box
     $contents = '';
     if (is_array($params)) {
         $index = 1;
         foreach ($params as $title => $hyperlink) {
             if ($_SESSION['admin_security'][SECURITY_ID_USERS] > 3) {
                 // only let delete if user permission is full
                 $contents .= '<div style="float:right; height:16px;">';
                 $contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
                 $contents .= '</div>';
             }
             $contents .= '<div style="height:16px;">';
             $contents .= '  <a href="' . $hyperlink . '" target="_blank">' . $title . '</a>' . chr(10);
             $contents .= '</div>';
             $index++;
         }
     } else {
         $contents = ACT_NO_RESULTS;
     }
     return $this->build_div('', $contents, $control);
 }
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:38,代码来源:company_links.php


示例10: html_input_field

?>
';
var acct_period          = '<?php 
echo CURRENT_ACCOUNTING_PERIOD;
?>
';
var item_col_1_enable    = '<?php 
echo $item_col_1_enable ? '1' : '0';
?>
';
var item_col_2_enable    = '<?php 
echo $item_col_2_enable ? '1' : '0';
?>
';
var ship_search_HTML     = '<?php 
echo GEN_CUSTOMER_ID . " " . html_input_field("ship_search", $order->ship_short_name) . "&nbsp;" . html_icon("status/folder-open.png", TEXT_SEARCH, "small", 'align="top" style="cursor:pointer" title="' . TEXT_SEARCH . '" onclick="DropShipList(this)"');
?>
';
var delete_icon_HTML     = '<?php 
echo substr(html_icon("emblems/emblem-unreadable.png", TEXT_DELETE, "small", "onclick=\"if (confirm(\\'" . ORD_ROW_DELETE_ALERT . "\\')) removeInvRow("), 0, -2);
?>
';
var payments_installed   = <?php 
echo count($payment_choices) ? 'true' : 'false';
?>
;
var serial_num_prompt    = '<?php 
echo ORD_JS_SERIAL_NUM_PROMPT;
?>
';
var no_stock_a           = '<?php 
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:js_include.php


示例11: html_input_field

?>
</td>
		<td><?php 
echo html_input_field('payment_cc_number', $cInfo->payment_cc_number, 'size="20" maxlength="19"');
?>
</td>
	  </tr>
	  <tr>
	    <td><?php 
echo ACT_PAYMENT_CREDIT_CARD_EXPIRES;
?>
</td>
		<td><?php 
echo html_pull_down_menu('payment_exp_month', $expires_month, $cInfo->payment_exp_month) . '&nbsp;' . html_pull_down_menu('payment_exp_year', $expires_year, $cInfo->payment_exp_year);
?>
</td>
	  </tr>
	  <tr>
	    <td><?php 
echo ACT_PAYMENT_CREDIT_CARD_CVV2;
?>
</td>
		<td><?php 
echo html_input_field('payment_cc_cvv2', $cInfo->payment_cc_cvv2, 'size="5" maxlength="4"');
?>
</td>
	  </tr>
    </table>
  </fieldset>
</div>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:30,代码来源:template_c_payment.php


示例12: html_input_field

?>
</h1>
  <table>
    <tr>
	  <th nowrap="nowrap" colspan="2"><?php 
echo ASSETS_ENTER_ASSET_ID;
?>
</th>
    </tr>
    <tr>
	  <td align="right"><?php 
echo TEXT_ASSET_ID;
?>
</td>
	  <td><?php 
echo html_input_field('asset_id', $asset_id, 'size="17" maxlength="16"');
?>
</td>
    </tr>
    <tr>
	  <td align="right"><?php 
echo ASSETS_ENTRY_ASSET_TYPE;
?>
</td>
	  <td><?php 
echo html_pull_down_menu('asset_type', gen_build_pull_down($assets_types), isset($asset_type) ? $asset_type : 'vh');
?>
</td>
    </tr>
    <tr>
	  <td nowrap="nowrap" colspan="2"><?php 
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_id.php


示例13: html_pull_down_menu

echo ZENCART_TEXT_PRICE_SHEET;
?>
</td>
    <td><?php 
echo html_pull_down_menu('zencart_price_sheet', pull_down_price_sheet_list(), $price_sheet ? $price_sheet : '', '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo ZENCART_SHIP_ID;
?>
</td>
    <td><?php 
echo html_input_field('zencart_shipped_id', $shipped_id ? $shipped_id : '', 'size="3"');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo ZENCART_PARTIAL_ID;
?>
</td>
    <td><?php 
echo html_input_field('zencart_partial_id', $partial_id ? $partial_id : '', 'size="3"');
?>
</td>
  </tr>
</table>
</fieldset>
</form>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_main.php


示例14: html_input_field

?>
</td>
    <td><?php 
echo html_input_field('company_email', $_POST['company_email'] ? $_POST['company_email'] : COMPANY_EMAIL, '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo CD_01_14_DESC;
?>
</td>
    <td><?php 
echo html_input_field('company_website', $_POST['company_website'] ? $_POST['company_website'] : COMPANY_WEBSITE, '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo CD_01_15_DESC;
?>
</td>
    <td><?php 
echo html_input_field('tax_id', $_POST['tax_id'] ? $_POST['tax_id'] : TAX_ID, '');
?>
</td>
  </tr>
 </tbody>
</table>
</div>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:30,代码来源:template_tab_company.php


示例15: html_input_field

    <td><?php 
echo GEN_DISPLAY_NAME . ' ' . html_input_field('display_name', $uInfo->display_name, 'size="25"');
?>
</td>
   </tr>
   <tr>
    <td align="right"><?php 
echo TEXT_PASSWORD . ' ' . html_password_field('password_new', '');
?>
</td>
    <td><?php 
echo '&nbsp;';
?>
</td>
    <td><?php 
echo GEN_EMAIL . ' ' . html_input_field('admin_email', $uInfo->admin_email, 'size="33"');
?>
</td>
   </tr>
   <tr>
    <td align="right"><?php 
echo TEXT_CONFIRM_PASSWORD . ' ' . html_password_field('password_conf', '');
?>
</td>
    <td><?php 
echo '&nbsp;';
?>
</td>
    <td><?php 
echo GEN_ACCOUNT_LINK . ' ' . html_pull_down_menu('account_id', gen_get_contact_array_by_type('e'), $uInfo->account_id, '');
?>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_detail.php


示例16: html_radio_field

<?php 
echo html_radio_field('entry_type', $value = 'decimal', $cInfo->entry_type == 'decimal' ? true : false, '', $system_disable ? ' disabled ' : '');
echo '&nbsp;' . INV_LABEL_DECIMAL_FIELD;
?>
		</td>
		<td class="main">
<?php 
foreach ($decimal_lengths as $key => $value) {
    $decimal_pulldown_array[] = array('id' => $key, 'text' => $value);
}
echo INV_LABEL_DECIMAL_RANGE;
echo html_pull_down_menu('decimal_range', $decimal_pulldown_array, $cInfo->decimal_range, $system_disable ? ' disabled ' : '');
echo '<br>' . INV_LABEL_DEFAULT_DISPLAY_VALUE;
echo html_input_field('decimal_display', $cInfo->decimal_display, ($system_disable ? ' disabled ' : '') . 'size="6" maxlength="5"', false);
echo '<br>' . INV_LABEL_DEFAULT_TEXT_VALUE;
echo html_input_field('decimal_default', $cInfo->decimal_default, ($system_disable ? ' disabled ' : '') . 'size="16"', false);
?>
		</td>
	  </tr>
	  <tr>
		<td class="main" valign="top">
<?php 
echo html_radio_field('entry_type', $value = 'drop_down', $cInfo->entry_type == 'drop_down' ? true : false, '', $system_disable ? ' disabled ' : '');
echo '&nbsp;' . INV_LABEL_DROP_DOWN_FIELD;
echo '<br>' . html_radio_field('entry_type', $value = 'radio', $cInfo->entry_type == 'radio' ? true : false, '', $system_disable ? ' disabled ' : '');
echo '&nbsp;' . INV_LABEL_RADIO_FIELD;
?>
		</td>
		<td class="main">
<?php 
echo INV_LABEL_CHOICES;
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_detail.php


示例17: stripslashes

$toolbar->icon_list['cancel']['params'] = 'onclick="self.close()"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save\');"';
$toolbar->icon_list['print']['show'] = false;
$toolbar->icon_list['delete']['show'] = false;
if ($ShowReplace) {
    $toolbar->add_icon('rename', 'onclick="submitToDo(\'rename\')"', $order = 10);
}
$toolbar->add_help('11.02');
echo $toolbar->build_toolbar();
?>
<h2 align="center"><?php 
echo RW_TITLE_RPTFRM . stripslashes($Prefs['description']) . ' - ' . RW_TITLE_PAGESAVE;
?>
</h2>
  <table width="400" align="center" border="1" cellspacing="1" cellpadding="1">
	<tr>
	  <th><?php 
echo RW_RPT_RPTENTER;
?>
</th>
	</tr>
	<tr>
	  <td align="center"><?php 
echo html_input_field('ReportName', $Prefs['description'], 'size="32" maxlength="30"');
?>
</td>
	</tr>
  </table>
</form>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:30,代码来源:template_save.php


示例18: html_input_field

?>
</div>
  <table width="500" align="center" cellspacing="0" cellpadding="1">
    <tr>
	  <th nowrap="nowrap" colspan="2"><?php 
echo INV_ENTER_SKU;
?>
</th>
    </tr>
    <tr>
	  <td class="main" align="right"><?php 
echo TEXT_SKU;
?>
</td>
	  <td class="main"><?php 
echo html_input_field('sku', $sku, 'size="' . (MAX_INVENTORY_SKU_LENGTH + 2) . '" maxlength="' . MAX_INVENTORY_SKU_LENGTH . '"');
?>
</td>
    </tr>
    <tr>
	  <td class="main" align="right"><?php 
echo INV_ENTRY_INVENTORY_TYPE;
?>
</td>
	  <td class="main"><?php 
echo html_pull_down_menu('inventory_type', gen_build_pull_down($inventory_types), isset($inventory_type) ? $inventory_type : 'si', 'onchange="setSkuLength()"');
?>
</td>
    </tr>
    <tr>
	  <td class="main" align="right"><?php 
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_id.php


示例19: build_form_html

 function build_form_html($action, $id = '')
 {
     global $db;
     $sql = "select category_id, category_name, category_description, sort_order from " . $this->db_table . " where category_id = " . $id;
     $result = $db->Execute($sql);
     if ($action == 'new') {
         $cInfo = '';
     } else {
         $cInfo = new objectInfo($result->fields);
     }
     $output = '<table border="0" width="100%" cellspacing="0" cellpadding="1">' . chr(10);
     $output .= '  <tr class="dataTableHeadingRow">' . chr(10);
     $output .= '    <th colspan="2">' . ($action == 'new' ? INV_INFO_HEADING_NEW_CATEGORY : INV_INFO_HEADING_EDIT_CATEGORY) . '</th>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td colspan="2">' . ($action == 'new' ? INV_INFO_INSERT_INTRO : INV_EDIT_INTRO) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . INV_INFO_CATEGORY_NAME . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('category_name', $cInfo->category_name) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . INV_INFO_CATEGORY_DESCRIPTION . '</td>' . chr(10);
     $output .= '    <td>' . html_textarea_field('category_description', 30, 10, $cInfo->category_description) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . TEXT_SORT_ORDER . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('sort_order', $cInfo->sort_order) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '</table>' . chr(10);
     return $output;
 }
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:32,代码来源:inv_tabs.php


示例20: build_form_html

 function build_form_html($action, $id = '')
 {
     global $db, $project_cost_types;
     if ($action != 'new' && $this->error == false) {
         $sql = "select description_short, description_long, cost_type, inactive \n\t       from " . $this->db_table . " where cost_id = '" . $this->id . "'";
         $result = $db->Execute($sql);
         foreach ($result->fields as $key => $value) {
             $this->{$key} = $value;
         }
     }
     $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' ? SETUP_INFO_HEADING_NEW_PROJECT_COSTS : SETUP_INFO_HEADING_EDIT_PROJECT_COSTS) . '</th>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  </thead>' . "\n";
     $output .= '  <tbody class="ui-widget-content">' . "\n";
     $output .= '  <tr>' . chr(10);
     $output .= '    <td colspan="2">' . ($action == 'new' ? SETUP_PROJECT_COSTS_INSERT_INTRO : HR_EDIT_INTRO) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . SETUP_INFO_DESC_SHORT . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description_short', $this->description_short, 'size="17" maxlength="16"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . SETUP_INFO_DESC_LONG . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description_long', $this->description_long, 'size="50" maxlength="64"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . SETUP_INFO_COST_TYPE . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('cost_type', gen_build_pull_down($project_cost_types), $this->cost_type) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . TEXT_INACTIVE . '</td>' . chr(10);
     $output .= '    <td>' . html_checkbox_field('inactive', '1', $this->inactive ? true : false) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  </tbody>' . "\n";
     $output .= '</table>' . chr(10);
     return $output;
 }
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:40,代码来源:project_costs.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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