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


PHP html_checkbox_field函数代码示例

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


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

示例1: build_form_html

 public function build_form_html($action, $id = '')
 {
     $output = parent::build_form_html($action, $id = '');
     $output .= '<table style="border-collapse:collapse;width:100%;">' . chr(10);
     $output .= '  <thead class="ui-widget-header"><tr><th>' . TEXT_OPTIONS . "</th></tr></thead>\n";
     $output .= '  <tbody class="ui-widget-content"><tr><td>' . "\n";
     $output .= html_checkbox_field('use_in_inventory_filter', true, $this->use_in_inventory_filter, '') . '&nbsp;' . TEXT_USE_IN_FILTER . "<br />\n";
     $output .= '  </td></tr></tbody>' . "\n";
     $output .= "</table>\n";
     return $output;
 }
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:11,代码来源:inventory_fields.php

示例2: html_checkbox_field

?>
</td>
	  <td><?php 
echo html_checkbox_field('jID_18', '1', false);
?>
</td>
	  <td><?php 
echo GEN_ADM_TOOLS_J18;
?>
</td>
	</tr>
	<tr>
	  <td colspan="2">&nbsp;</td>
	  <td colspan="2">&nbsp;</td>
	  <td><?php 
echo html_checkbox_field('jID_20', '1', false);
?>
</td>
	  <td><?php 
echo GEN_ADM_TOOLS_J20;
?>
</td>
	  <td colspan="2" align="right"><?php 
echo html_button_field('repost', GEN_ADM_TOOLS_BTN_REPOST, 'onclick="if (confirm(\'' . GEN_ADM_TOOLS_REPOST_CONFIRM . '\')) submitToDo(\'repost\')"');
?>
</td>
	</tr>
  </tbody>
 </table>
</fieldset>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:30,代码来源:template_main.php

示例3: html_input_field

    <td><?php 
echo ZENCART_TAX_CLASS;
?>
</td>
    <td><?php 
echo html_input_field('zencart_tax_class', $tax_class ? $tax_class : '', 'size="40"');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo ZENCART_USE_PRICES;
?>
</td>
    <td><?php 
echo html_checkbox_field('zencart_use_prices', '1', $use_prices ? true : false, '', 'onclick="togglePriceSheets()"');
?>
</td>
  </tr>
  <tr id="price_sheet_row">
    <td><?php 
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 
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_main.php

示例4: chr

    $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();
}
?>
	</tbody>
  </table>
</div>
</form>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_main.php

示例5: html_checkbox_field

}
?>
		<?php 
if (SHIPPING_DEFAULT_RETURN_SERVICE_SHOW) {
    echo '<tr><td class="dataTableContent">';
    echo html_checkbox_field('return_service', '1', $pkg->return_service);
    echo SHIPPING_TEXT_RETURN_SERVICES;
    echo html_pull_down_menu('return_service_value', gen_build_pull_down($shipping_defaults['return_label']), $pkg->return_service_value, $parameters = '', $required = false);
    echo '</td></tr>';
}
?>
	</table></td>
  </tr>
  <tr>
	<td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <th colspan="2" align="center"><?php 
echo SHIPPING_TEXT_METHODS;
?>
</th>
  </tr>
<?php 
foreach ($module_list as $value) {
    echo '  <tr><td colspan="2" class="dataTableContent">';
    echo html_checkbox_field('ship_method_' . $value['id'], '1', $action == 'back' ? '' : $value['checked']) . ' ' . $value['text'];
    echo '</td></tr>' . chr(10);
}
?>
  </tr>
</table>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:shipping_popup_main.php

示例6: html_checkbox_field

	</table>
	<table class="ui-widget" style="border-collapse:collapse;width:100%">
	 <thead class="ui-widget-header">
	  <tr><th colspan="4"><?php 
echo TEXT_PAYMENT_TERMS;
?>
</th></tr>
	 </thead>
	 <tbody class="ui-widget-content">
	  <tr>
	    <td><?php 
echo CD_03_11_DESC;
?>
</td>
	    <td><?php 
echo html_checkbox_field('ap_use_credit_limit', $inc_chart, $_POST['ap_use_credit_limit'] ? $_POST['ap_use_credit_limit'] : AP_USE_CREDIT_LIMIT, '');
?>
</td>
	    <td><?php 
echo sprintf(CD_03_12_DESC, DEFAULT_CURRENCY);
?>
</td>
	    <td><?php 
echo html_input_field('ap_credit_limit_amount', $_POST['ap_credit_limit_amount'] ? $_POST['ap_credit_limit_amount'] : AP_CREDIT_LIMIT_AMOUNT, 'style="text-align:right"');
?>
</td>
	  </tr>
	  <tr>
	    <td colspan="2"><?php 
echo CD_02_10_DESC;
?>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_tab_vendors.php

示例7: foreach

	  </td>
      <td class="main">&nbsp;</td>
      <td class="main">&nbsp;</td>
      <td class="main">&nbsp;</td>
      <td class="main">&nbsp;</td>
    </tr>
    <tr>
	  <td class="main" align="right"><?php 
echo TEXT_EMPLOYEE_ROLES;
?>
</td>
	  <?php 
$col_count = 1;
foreach ($employee_types as $key => $value) {
    $preset = $action == 'new' && $key == 'e' || strpos($cInfo->gl_type_account, $key) !== false ? '1' : '0';
    echo '<td class="main">' . html_checkbox_field('gl_type_account[' . $key . ']', '1', $preset) . '&nbsp;' . $value . '</td>';
    $col_count++;
    if ($col_count == 6) {
        echo '</tr><tr>' . chr(10);
        echo '<td class="main">&nbsp;</td>';
        $col_count = 1;
    }
}
?>
    </tr>
  </table>
  </fieldset>

<?php 
// *********************** Mailing/Main Address (only one allowed) ******************************
?>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_e_general.php

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

示例9: date

    case 7:
        $req_date = date(DATE_FORMAT, time());
        $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . '&nbsp;' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"'));
        $template_options['waiting'] = array('title' => ORD_WAITING_FOR_INVOICE, 'field' => html_checkbox_field('waiting', '1', $order->waiting ? true : false, '', ''));
        break;
    case 9:
        $req_date = date(DATE_FORMAT, time());
        $template_options['terminal_date'] = array('title' => constant('ORD_TEXT_' . JOURNAL_ID . '_EXPIRES'), 'field' => '<script type="text/javascript">dateRequired.writeControl(); dateRequired.displayLeft=true; dateRequired.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";</script>');
        $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . '&nbsp;' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"'));
        $template_options['closed'] = array('title' => TEXT_CLOSE, 'field' => html_checkbox_field('closed', '1', $order->closed ? true : false, '', ''));
        break;
    case 10:
        $req_date = date(DATE_FORMAT, time());
        $template_options['terminal_date'] = array('title' => constant('ORD_TEXT_' . JOURNAL_ID . '_EXPIRES'), 'field' => '<script type="text/javascript">dateRequired.writeControl(); dateRequired.displayLeft=true; dateRequired.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";</script>');
        $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . '&nbsp;' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"'));
        $template_options['closed'] = array('title' => TEXT_CLOSE, 'field' => html_checkbox_field('closed', '1', $order->closed ? true : false, '', ''));
        break;
    case 12:
        $req_date = date(DATE_FORMAT, time());
        $template_options['terminal_date'] = array('title' => constant('ORD_TEXT_' . JOURNAL_ID . '_EXPIRES'), 'field' => '<script type="text/javascript">dateRequired.writeControl(); dateRequired.displayLeft=true; dateRequired.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";</script>');
        $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . '&nbsp;' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"'));
        break;
    case 13:
    case 19:
    case 21:
        $req_date = date(DATE_FORMAT, time());
        break;
    default:
}
$include_header = true;
$include_footer = true;
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:pre_process.php

示例10: foreach

</th>
	    <th width="20%"><?php 
echo TEXT_ALL_DATA;
?>
</th>
	  </tr>
<?php 
foreach ($loaded_modules as $mod) {
    // load modules and query for copy
    if ($mod == 'phreedom') {
        continue;
    }
    ?>
	  <tr>
		<td><?php 
    echo html_checkbox_field($mod, '1', !in_array($mod, $core_modules) && $error && !isset($_POST[$mod]) ? false : true, '', in_array($mod, $core_modules) ? 'disabled="disabled"' : '') . '&nbsp;' . TEXT_MODULE . ': ' . $mod;
    ?>
</td>
		<td align="center"><?php 
    echo html_radio_field($mod . '_action', 'core', $_POST[$mod . '_action'] == 'core' ? true : false, '', $parameters = '');
    ?>
</td>
		<td align="center"><?php 
    echo html_radio_field($mod . '_action', 'demo', $_POST[$mod . '_action'] == 'demo' ? true : false, '', $parameters = '');
    ?>
</td>
		<td align="center"><?php 
    echo html_radio_field($mod . '_action', 'data', !isset($_POST[$mod . '_action']) || $_POST[$mod . '_action'] == 'data' ? true : false, '', $parameters = '');
    ?>
</td>
	  </tr>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_tab_manager.php

示例11: html_pull_down_menu

      <td align="center"><?php 
echo html_pull_down_menu('title1fontcolor', $kFontColors, $Prefs['title1fontcolor']);
?>
</td>
      <td align="center"><?php 
echo html_pull_down_menu('title1fontalign', $kFontAlign, $Prefs['title1fontalign']);
?>
</td>
    </tr>
    <tr>
      <td nowrap="nowrap" colspan="3"><?php 
echo RW_RPT_PGTITL2 . ' ' . html_input_field('title2desc', $Prefs['title2desc'], 'size="30" maxlength="50"');
?>
</td>
	  <td align="center"><?php 
echo html_checkbox_field('title2show', '1', $Prefs['title2show'] == '1' ? true : false);
?>
</td>
      <td align="center"><?php 
echo html_pull_down_menu('title2font', $kFonts, $Prefs['title2font']);
?>
</td>
      <td align="center"><?php 
echo html_pull_down_menu('title2fontsize', $kFontSizes, $Prefs['title2fontsize']);
?>
</td>
      <td align="center"><?php 
echo html_pull_down_menu('title2fontcolor', $kFontColors, $Prefs['title2fontcolor']);
?>
</td>
      <td align="center"><?php 
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_filter.php

示例12: foreach

echo CP_ADD_REMOVE_BOXES;
?>
</div>
<table border="1" width="100%" cellspacing="0" cellpadding="1">
  <tr>
	<th><?php 
echo TEXT_SHOW;
?>
</th>
	<th><?php 
echo TEXT_TITLE;
?>
</th>
	<th><?php 
echo TEXT_DESCRIPTION;
?>
</th>
  </tr>
	<?php 
foreach ($the_list as $value) {
    if (!$value['security'] || $_SESSION['admin_security'][$value['security']] > 0) {
        // make sure user can view this control panel element
        echo '<tr><td align="center">';
        $checked = in_array($value['module_id'], $my_profile) ? ' selected' : '';
        echo html_checkbox_field($value['module_id'], '1', $checked, '', $parameters = '');
        echo '</td><td>' . $value['title'] . '</td><td>' . $value['description'] . '</td></tr>';
    }
}
?>
</table>
</form>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_main.php

示例13: html_input_field

?>
	  </td>
	  <td>
	    <?php 
echo TEXT_SOURCE_LANGUAGE . ' ' . html_input_field('source_lang', 'en_us');
?>
	  </td>
	</tr>
	<tr><th colspan="2"><?php 
echo TEXT_OPTIONS;
?>
</th></tr>
	<tr>
	  <td>
	  	<?php 
echo html_checkbox_field('replace', '1', false);
?>
		<?php 
echo TRANSLATOR_NEW_OVERRIDE . '&nbsp;';
?>
	  </td>
	  <td><?php 
echo html_input_field('history_lang', DEFAULT_LANGUAGE);
?>
</td>
	</tr>
	<tr>
	  <td colspan="2" align="right"><?php 
echo html_button_field('new', TEXT_CREATE_NEW_TRANSLATION, 'onclick="submitToDo(\'create_new\')"');
?>
</td>
开发者ID:TrinityComputers,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_new.php

示例14: htmlspecialchars

</td>
			  <td width="15%" class="dataTableContent" align="right"><?php 
                echo $detail['dep_amount'] ? $currencies->format($detail['dep_amount']) : '&nbsp;';
                ?>
</td>
			  <td width="15%" class="dataTableContent" align="right"><?php 
                echo $detail['pmt_amount'] ? $currencies->format($detail['pmt_amount']) : '&nbsp;';
                ?>
</td>
			  <td width="30%" class="dataTableContent"><?php 
                echo htmlspecialchars($detail['name']);
                ?>
</td>
			  <td width="7%" class="dataTableContent" align="center">
			    <?php 
                echo html_checkbox_field('chk[' . $i . ']', '1', $detail['cleared'] == 1 ? true : false, '', 'onclick="updateDetail(' . $ref . ')"') . chr(10);
                ?>
			    <?php 
                echo html_hidden_field('id[' . $i . ']', $detail['id']) . chr(10);
                ?>
			    <?php 
                echo html_hidden_field('pmt_' . $i, $detail['payment']) . chr(10);
                ?>
			  </td>
			  <td id="<?php 
                echo 'disp_' . $ref . '_' . $j;
                ?>
" width="7%"><?php 
                echo '&nbsp;';
                ?>
</td>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_main.php

示例15: html_checkbox_field

}
echo $toolbar->build_toolbar();
// Build the page
?>
<div class="pageHeading"><?php 
echo ORD_CONVERT_TO_PO;
?>
</div>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
  <tr>
	<td class="main"> <?php 
echo ORD_DROP_SHIP;
?>
</td>
	<td class="main"> <?php 
echo html_checkbox_field('drop_ship', '1', $drop_ship ? true : false);
?>
</td>
  </tr>
  <tr>
	<td class="main"><?php 
echo ORD_TEXT_4_NUMBER;
?>
</td>
	<td class="main"><?php 
echo html_input_field('po_num', $purchase_invoice_id, '');
?>
</td>
  </tr>
</table>
<?php 
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_main.php


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