本文整理汇总了PHP中simbio_form_table_AJAX::addCheckbox方法的典型用法代码示例。如果您正苦于以下问题:PHP simbio_form_table_AJAX::addCheckbox方法的具体用法?PHP simbio_form_table_AJAX::addCheckbox怎么用?PHP simbio_form_table_AJAX::addCheckbox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类simbio_form_table_AJAX
的用法示例。
在下文中一共展示了simbio_form_table_AJAX::addCheckbox方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
}
/* Form Element(s) */
// item status code
$form->addTextField('text', 'itemStatusID', __('Item Status Code') . '*', $rec_d['item_status_id'], 'style="width: 20%;" maxlength="3"');
// item status name
$form->addTextField('text', 'itemStatus', __('Item Status Name') . '*', $rec_d['item_status_name'], 'style="width: 60%;"');
// item status rules
$rules = array();
if ($rec_d['no_loan']) {
$rules[] = NO_LOAN_TRANSACTION;
}
if ($rec_d['skip_stock_take']) {
$rules[] = SKIP_STOCK_TAKE;
}
$form->addCheckbox('rules', __('Rules'), $rules_option, $rules);
// edit mode messagge
if ($form->edit_mode) {
echo '<div class="infoBox">' . __('You are going to edit Item Status data') . ' : <b>' . $rec_d['item_status_name'] . '</b> <br />' . __('Last Update') . $rec_d['last_update'] . '</div>';
//mfc
}
// print out the form object
echo $form->printOut();
} else {
/* ITEM STATUS LIST */
// table spec
$table_spec = 'mst_item_status AS ist';
// create datagrid
$datagrid = new simbio_datagrid();
if ($can_read and $can_write) {
$datagrid->setSQLColumn('ist.item_status_id', 'ist.item_status_id AS \'' . __('Item Status Code') . '\'', 'ist.item_status_name AS \'' . __('Item Status Name') . '\'', 'ist.last_update AS \'' . __('Last Update') . '\'');
示例2: unserialize
if ($rec_q->num_rows > 0) {
$form->edit_mode = true;
// record ID for delete process
$form->record_id = $itemID;
// form record title
$form->record_title = $rec_d['item_status_name'];
// submit button attribute
$form->submit_button_attr = 'name="saveData" value="' . lang_sys_common_form_update . '" class="button"';
}
/* Form Element(s) */
// item status code
$form->addTextField('text', 'itemStatusID', lang_mod_masterfile_itemstatus_form_field_code . '*', $rec_d['item_status_id'], 'style="width: 20%;" maxlength="3"');
// item status name
$form->addTextField('text', 'itemStatus', lang_mod_masterfile_itemstatus_form_field_name . '*', $rec_d['item_status_name'], 'style="width: 60%;"');
// item status rules
$form->addCheckbox('rules', lang_mod_masterfile_itemstatus_form_field_rules, $rules_option, unserialize($rec_d['rules']));
// edit mode messagge
if ($form->edit_mode) {
echo '<div class="infoBox">' . lang_mod_masterfile_itemstatus_common_edit_info . ' : <b>' . $rec_d['item_status_name'] . '</b> <br />' . lang_mod_masterfile_itemstatus_common_last_update . $rec_d['last_update'] . '</div>';
}
// print out the form object
echo $form->printOut();
} else {
/* ITEM STATUS LIST */
// table spec
$table_spec = 'mst_item_status AS ist';
// create datagrid
$datagrid = new simbio_datagrid();
if ($can_read and $can_write) {
$datagrid->setSQLColumn('ist.item_status_id', 'ist.item_status_id AS \'' . lang_mod_masterfile_itemstatus_form_field_code . '\'', 'ist.item_status_name AS \'' . lang_mod_masterfile_itemstatus_form_field_name . '\'', 'ist.last_update AS \'' . lang_mod_masterfile_itemstatus_common_last_update . '\'');
} else {