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


PHP html_hidden_field函数代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: Output

 function Output($params)
 {
     global $db;
     // load the report security tokens
     $rr_security = array();
     $result = $db->Execute("select reportid, params from " . TABLE_REPORT_FIELDS . " where entrytype = 'security'");
     while (!$result->EOF) {
         $rr_security[$result->fields['reportid']] = $result->fields['params'];
         $result->MoveNext();
     }
     // load the report list
     $query_raw = "select id, reporttype, description from " . TABLE_REPORTS . " order by description";
     $reports = $db->Execute($query_raw);
     $data_array = array(array('id' => '', 'text' => GEN_HEADING_PLEASE_SELECT));
     $type_array = array();
     while (!$reports->EOF) {
         $type_array[$reports->fields['id']] = $reports->fields['reporttype'];
         if (security_check($rr_security[$reports->fields['id']])) {
             $data_array[] = array('id' => $reports->fields['id'], 'text' => $reports->fields['description']);
         }
         $reports->MoveNext();
     }
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">';
     $control .= TEXT_REPORT . '&nbsp;' . html_pull_down_menu('report_id', $data_array);
     $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= html_submit_field('my_favorite_reports', 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 $id => $description) {
             $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;">';
             $contents .= '  <a href="index.php?cat=reportwriter&amp;module=' . ($type_array[$id] == 'frm' ? 'form_gen' : 'rpt_gen') . '&amp;ReportID=' . $id . '&amp;todo=open" target="_blank">' . $description . '</a>' . chr(10);
             $contents .= '</div>';
             $index++;
         }
     } else {
         $contents = CP_FAVORITE_REPORTS_NO_RESULTS;
     }
     return $this->build_div($this->title, $contents, $control);
 }
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:48,代码来源:favorite_reports.php

示例5: Output

 function Output($params)
 {
     global $db;
     $contents = '';
     $control = '';
     // load the report list
     $result = $db->Execute("select id, security, doc_title from " . TABLE_PHREEFORM . " \n\t\t  where doc_ext in ('rpt','frm') order by doc_title");
     $data_array = array(array('id' => '', 'text' => GEN_HEADING_PLEASE_SELECT));
     $type_array = array();
     while (!$result->EOF) {
         if (security_check($result->fields['security'])) {
             $data_array[] = array('id' => $result->fields['id'], 'text' => $result->fields['doc_title']);
         }
         $result->MoveNext();
     }
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">';
     $control .= TEXT_REPORT . '&nbsp;' . html_pull_down_menu('report_id', $data_array);
     $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= html_submit_field('sub_favorite_reports', TEXT_ADD);
     $control .= html_hidden_field('favorite_reports_rId', '');
     $control .= '</div></div>';
     // Build content box
     $contents = '';
     if (is_array($params)) {
         $index = 1;
         foreach ($params as $id => $description) {
             $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="index.php?module=phreeform&amp;page=popup_gen&amp;rID=' . $id . '" target="_blank">' . $description . '</a>' . chr(10);
             $contents .= '</div>';
             $index++;
         }
     } else {
         $contents = ACT_NO_RESULTS;
     }
     return $this->build_div('', $contents, $control);
 }
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:41,代码来源:favorite_reports.php

示例6: 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

示例7: html_input_field

		<tr><td class="dataTableContent">
		<?php 
echo SHIPPING_TEXT_DIMENSIONS . ' ' . TEXT_LENGTH;
echo html_input_field('pkg_length', $pkg->pkg_length, 'size="4"');
echo TEXT_WIDTH;
echo html_input_field('pkg_width', $pkg->pkg_width, 'size="4"');
echo TEXT_HEIGHT;
echo html_input_field('pkg_height', $pkg->pkg_height, 'size="4"') . '&nbsp;';
echo html_pull_down_menu('pkg_dimension_unit', gen_build_pull_down($shipping_defaults['dimension_unit']), $pkg->pkg_dimension_unit, $parameters = '', $required = false);
?>
		</td></tr>
		<tr><td class="dataTableContent">
		<?php 
echo TEXT_WEIGHT;
echo html_hidden_field('pkg_total', $pkg->pkg_total);
echo html_hidden_field('pkg_item_count', $pkg->pkg_item_count);
echo html_input_field('pkg_weight', $pkg->pkg_weight, 'size="5"') . '&nbsp;';
echo html_pull_down_menu('pkg_weight_unit', gen_build_pull_down($shipping_defaults['weight_unit']), $pkg->pkg_weight_unit, $parameters = '', $required = false) . '&nbsp;';
if (SHIPPING_DEFAULT_ADDITIONAL_HANDLING_SHOW) {
    echo html_checkbox_field('additional_handling', '1', $pkg->additional_handling);
    echo SHIPPING_ADDITIONAL_HANDLING;
} else {
    echo '&nbsp;';
}
?>
		</td></tr>
		<tr><td class="dataTableContent">
		<?php 
if (SHIPPING_DEFAULT_INSURANCE_SHOW) {
    echo html_checkbox_field('insurance', '1', $pkg->insurance);
    echo SHIPPING_INSURANCE_AMOUNT;
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:shipping_popup_main.php

示例8: Output

 function Output($params)
 {
     global $db;
     // Build control box form data
     $control = '<div class="row">';
     $control .= '  <div style="white-space:nowrap">';
     $control .= CP_MINI_FINANCIAL_NO_OPTIONS . '<br />';
     $control .= html_hidden_field($this->module_id . '_rId', '');
     $control .= '  </div>';
     $control .= '</div>';
     // Build content box
     $contents = '<table width="100%" border = "0">';
     $period = CURRENT_ACCOUNTING_PERIOD;
     // build assets
     $this->bal_tot_2 = 0;
     $this->bal_tot_3 = 0;
     $this->bal_sheet_data = array();
     $the_list = array(0, 2, 4, 6);
     $negate_array = array(false, false, false, false);
     $contents .= $this->add_bal_sheet_data($the_list, $negate_array, $period);
     $contents .= '<tr><td>&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_CURRENT_ASSETS) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_2) . '</td></tr>' . chr(10);
     $this->bal_tot_2 = 0;
     $the_list = array(8, 10, 12);
     $negate_array = array(false, false, false);
     $this->add_bal_sheet_data($the_list, $negate_array, $period);
     $contents .= '<tr><td>&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_PROP_EQUIP) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_2) . '</td></tr>' . chr(10);
     $contents .= '<tr><td>' . htmlspecialchars(RW_FIN_ASSETS) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_3) . '</td></tr>' . chr(10);
     $contents .= '<tr><td colspan="2">&nbsp;</td></tr>' . chr(10);
     // build liabilities
     $this->bal_tot_2 = 0;
     $this->bal_tot_3 = 0;
     $the_list = array(20, 22);
     $negate_array = array(true, true);
     $this->add_bal_sheet_data($the_list, $negate_array, $period);
     $contents .= '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_CUR_LIABILITIES) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_2) . '</td></tr>' . chr(10);
     $this->bal_tot_2 = 0;
     $the_list = array(24);
     $negate_array = array(true);
     $this->add_bal_sheet_data($the_list, $negate_array, $period);
     $contents .= '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_LT_LIABILITIES) . '</td>' . chr(10);
     $contents .= '<td align="right">&nbsp;&nbsp;' . $this->ProcessData($this->bal_tot_2) . '</td></tr>' . chr(10);
     $contents .= '<tr><td>&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_TOTAL_LIABILITIES) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_3) . '</td></tr>' . chr(10);
     // build capital
     $this->bal_tot_2 = 0;
     $the_list = array(40, 42, 44);
     $negate_array = array(true, true, true);
     $this->add_bal_sheet_data($the_list, $negate_array, $period);
     $contents .= $this->load_report_data($period);
     // retrieve and add net income value
     $this->bal_tot_2 += $this->ytd_net_income;
     $this->bal_tot_3 += $this->ytd_net_income;
     $contents .= '<tr><td>&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_NET_INCOME) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->ytd_net_income) . '</td></tr>' . chr(10);
     $contents .= '<tr><td>&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_CAPITAL) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_2) . '</td></tr>' . chr(10);
     $contents .= '<tr><td>' . htmlspecialchars(RW_FIN_TOTAL_LIABILITIES_CAPITAL) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_3) . '</td></tr>' . chr(10);
     $contents .= '</table>' . chr(10);
     return $this->build_div($this->title, $contents, $control);
 }
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:65,代码来源:mini_financial.php

示例9: while

?>
</th>
	<th><?php 
echo ORD_DELIVERY_DATES;
?>
</th>
	<th><?php 
echo ORD_NEW_DELIVERY_DATES;
?>
</th>
  </tr>
<?php 
$j = 1;
while (!$ordr_items->EOF) {
    $price = $currencies->format($level_info[0] ? $level_info[0] : ($i == 0 ? $full_price : 0));
    echo '<tr>' . chr(10);
    echo '  <td align="center">' . $ordr_items->fields['qty'] . '</td>' . chr(10);
    echo '  <td align="center">' . $ordr_items->fields['sku'] . '</td>' . chr(10);
    echo '  <td>' . $ordr_items->fields['description'] . '</td>' . chr(10);
    echo '  <td align="center">' . gen_date_short($ordr_items->fields['date_1']) . '</td>' . chr(10);
    echo '  <td align="center">';
    echo html_hidden_field('id_' . $j, $ordr_items->fields['id']) . chr(10);
    echo '  <script type="text/javascript">date_' . $j . '.writeControl(); date_' . $j . '.displayLeft=true; date_' . $j . '.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";</script>' . chr(10);
    echo '  </td>' . chr(10);
    echo '</tr>';
    $j++;
    $ordr_items->MoveNext();
}
?>
</table>
</form>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_main.php

示例10: html_form

// | modify it under the terms of the GNU General Public License as  |
// | published by the Free Software Foundation, either version 3 of  |
// | the License, or any later version.                              |
// |                                                                 |
// | This program is distributed in the hope that it will be useful, |
// | 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.                    |
// +-----------------------------------------------------------------+
//  Initially Written By: Harry Lu @ 2009/08/01
//  Path: /modules/payment/methods/linkpoint/pages/ccreview/template_main.php
//
// start the form
echo html_form('cc_view', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))) . chr(10);
// include hidden fields
echo html_hidden_field('action', '') . chr(10);
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['save']['show'] = false;
$toolbar->icon_list['delete']['show'] = false;
$toolbar->icon_list['print']['show'] = false;
// pull in extra toolbar overrides and additions
if (count($extra_toolbar_buttons) > 0) {
    foreach ($extra_toolbar_buttons as $key => $value) {
        $toolbar->icon_list[$key] = $value;
    }
}
// add the help file index and build the toolbar
$toolbar->search_period = $acct_period;
echo $toolbar->build_toolbar($add_search = true, $add_periods = true);
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_main.php

示例11: chr

    if ($post_date > $due_dates['early_date']) {
        $discount = 0;
    }
    // past the early date
    $extra_params = $query_result->fields['waiting'] == '1' ? 'readonly="readonly" ' : '';
    echo '<tr' . ($extra_params ? ' class="ui-state-error"' : '') . '>' . chr(10);
    echo '<td align="center">' . chr(10);
    echo gen_locale_date($query_result->fields['post_date']) . chr(10);
    // Hidden fields
    echo html_hidden_field('id_' . $idx, $query_result->fields['id']) . chr(10);
    echo html_hidden_field('bill_acct_id_' . $idx, $query_result->fields['bill_acct_id']) . chr(10);
    echo html_hidden_field('amt_' . $idx, $amount_due) . chr(10);
    echo html_hidden_field('inv_' . $idx, $query_result->fields['purchase_invoice_id']) . chr(10);
    echo html_hidden_field('origdisc_' . $idx, $currencies->clean_value($discount)) . chr(10);
    echo html_hidden_field('discdate_' . $idx, $due_dates['early_date']) . chr(10);
    echo html_hidden_field('acct_' . $idx, $query_result->fields['gl_acct_id']) . chr(10);
    // End hidden fields
    echo '</td>' . chr(10);
    echo '<td>' . htmlspecialchars($query_result->fields['bill_primary_name']) . '</td>' . chr(10);
    echo '<td align="center">' . $query_result->fields['purchase_invoice_id'] . '</td>' . chr(10);
    echo '<td align="center" style="text-align:right">' . $currencies->format($amount_due) . '</td>' . chr(10);
    echo '<td align="center">' . html_input_field('desc_' . $idx, $query_result->fields['purch_order_id'], $extra_params . 'size="32"') . '</td>' . chr(10);
    echo '<td align="center">' . gen_locale_date($due_dates['net_date']) . '</td>' . chr(10);
    echo '<td align="center">' . html_input_field('dscnt_' . $idx, $discount, $extra_params . 'size="11" maxlength="20" onchange="updateDiscTotal(' . $idx . ')" style="text-align:right"') . '</td>' . chr(10);
    echo '<td align="center">' . html_input_field('total_' . $idx, '', $extra_params . 'size="11" maxlength="20" onchange="updateLineTotal(' . $idx . ')" style="text-align:right"') . '</td>' . chr(10);
    echo '<td align="center">' . html_checkbox_field('pay_' . $idx, '1', false, '', ($extra_params ? 'disabled="disabled" ' : '') . 'onclick="bbUpdatePayValues(' . $idx . ')"') . '</td>' . chr(10);
    echo '</tr>' . chr(10);
    $idx++;
    $query_result->MoveNext();
}
?>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_main.php

示例12: BuildFieldList

function BuildFieldList($FieldListings)
{
    $CriteriaString = '';
    $i = 0;
    foreach ($FieldListings as $FieldValues) {
        $CriteriaString .= '<tr><td>';
        $CriteriaString .= html_hidden_field('id_' . $i, $FieldValues['id']);
        $CriteriaString .= html_hidden_field('seq_' . $i, $FieldValues['seqnum']);
        $CriteriaString .= $FieldValues['displaydesc'] . '</td>' . chr(10);
        // add the description
        $CriteriaString .= '<td align="center">' . html_checkbox_field('show_' . $i, '1', $FieldValues['visible'] ? true : false, '', 'onchange="calculateWidth()"') . '</td>' . chr(10);
        $CriteriaString .= '<td align="center">' . html_checkbox_field('break_' . $i, '1', $FieldValues['columnbreak'] ? true : false, '', 'onchange="calculateWidth()"') . '</td>' . chr(10);
        $CriteriaString .= '<td align="center">' . html_input_field('width_' . $i, $FieldValues['params']['columnwidth'] ? $FieldValues['params']['columnwidth'] : RW_DEFAULT_COLUMN_WIDTH, 'size="4" maxlength="3" onchange="calculateWidth()"') . '</td>' . chr(10);
        $CriteriaString .= '<td id="col_' . $i . '" align="center">&nbsp;</td>' . chr(10);
        $CriteriaString .= '<td id="tot_' . $i . '" align="center">&nbsp;</td>' . chr(10);
        $CriteriaString .= '<td align="center">';
        $CriteriaString .= html_icon('actions/go-up.png', TEXT_UP, 'small', 'onclick="exchange(' . $i . ', \'up\')"');
        $CriteriaString .= html_icon('actions/go-down.png', TEXT_DOWN, 'small', 'onclick="exchange(' . $i . ', \'down\')"');
        $CriteriaString .= '</td></tr>' . chr(10);
        $i++;
    }
    return $CriteriaString;
}
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:23,代码来源:generator_functions.php

示例13: html_form

// | This program is free software: you can redistribute it and/or   |
// | modify it under the terms of the GNU General Public License as  |
// | published by the Free Software Foundation, either version 3 of  |
// | the License, or any later version.                              |
// |                                                                 |
// | This program is distributed in the hope that it will be useful, |
// | 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.                    |
// +-----------------------------------------------------------------+
//  Path: /modules/phreebooks/pages/popup_convert/template_main.php
//
echo html_form('popup_convert', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))) . chr(10);
// include hidden fields
echo html_hidden_field('action', '') . chr(10);
echo html_hidden_field('id', $id) . chr(10);
// customize the toolbar actions
$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['delete']['show'] = false;
$toolbar->icon_list['print']['show'] = false;
if (count($extra_toolbar_buttons) > 0) {
    foreach ($extra_toolbar_buttons as $key => $value) {
        $toolbar->icon_list[$key] = $value;
    }
}
switch ($account_type) {
    case 'c':
        $toolbar->add_help('07.03.02.04');
        break;
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_main.php

示例14: display_ajax

 function display_ajax($page_name = 'list', $id = '')
 {
     $display_links = '';
     $pages_array = array();
     for ($i = 1; $i <= $this->total_num_pages; $i++) {
         $pages_array[] = array('id' => $i, 'text' => $i);
     }
     if ($this->total_num_pages > 1) {
         if ($this->current_page_number > 1) {
             $display_links .= html_icon('actions/media-skip-backward.png', TEXT_GO_FIRST, 'small', 'onclick="tabPage(\'' . $id . '\', \'go_first\')" style="cursor:pointer;"');
             $display_links .= html_icon('phreebooks/media-playback-previous.png', TEXT_GO_PREVIOUS, 'small', 'onclick="tabPage(\'' . $id . '\', \'go_previous\')" style="cursor:pointer;"');
         } else {
             $display_links .= html_icon('actions/media-skip-backward.png', '', 'small', '');
             $display_links .= html_icon('phreebooks/media-playback-previous.png', '', 'small', '');
         }
         if (!$this->jump_page_displayed) {
             // only diplay pull down once (the rest are not read by browser)
             $display_links .= sprintf(TEXT_RESULT_PAGE, html_pull_down_menu($page_name, $pages_array, $this->current_page_number, 'onchange="tabPage(\'' . $id . '\', \'go_page\')"'), $this->total_num_pages);
             $this->jump_page_displayed = true;
         } else {
             $display_links .= sprintf(TEXT_RESULT_PAGE, $this->current_page_number, $this->total_num_pages);
         }
         if ($this->current_page_number < $this->total_num_pages && $this->total_num_pages != 1) {
             $display_links .= html_icon('actions/media-playback-start.png', TEXT_GO_NEXT, 'small', 'onclick="tabPage(\'' . $id . '\', \'go_next\')" style="cursor:pointer;"');
             $display_links .= html_icon('actions/media-skip-forward.png', TEXT_GO_LAST, 'small', 'onclick="tabPage(\'' . $id . '\', \'go_last\')" style="cursor:pointer;"');
         } else {
             $display_links .= html_icon('actions/media-playback-start.png', '', 'small', '');
             $display_links .= html_icon('actions/media-skip-forward.png', '', 'small', '');
         }
     } else {
         $display_links .= sprintf(TEXT_RESULT_PAGE, $this->total_num_pages, $this->total_num_pages);
         $display_links .= html_hidden_field($page_name, '1');
     }
     return $display_links;
 }
开发者ID:TrinityComputers,项目名称:PhreeBooksERP,代码行数:35,代码来源:common_classes.php

示例15: html_form

// | 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/services/pages/ship_mgr/template_main.php
//
// start the form
echo html_form('ship_mgr', FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'post', 'enctype="multipart/form-data"', true) . chr(10);
// include hidden fields
echo html_hidden_field('todo', '') . chr(10);
echo html_hidden_field('rowSeq', '') . chr(10);
echo html_hidden_field('module_id', '') . chr(10);
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['save']['show'] = false;
$toolbar->icon_list['delete']['show'] = false;
$toolbar->icon_list['print']['show'] = false;
// pull in extra toolbar overrides and additions
if (count($extra_toolbar_buttons) > 0) {
    foreach ($extra_toolbar_buttons as $key => $value) {
        $toolbar->icon_list[$key] = $value;
    }
}
// add the help file index and build the toolbar
$toolbar->add_help('09');
echo $toolbar->build_toolbar($add_search = false, false, true);
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_main.php


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