本文整理汇总了PHP中inoform::checkBox_field方法的典型用法代码示例。如果您正苦于以下问题:PHP inoform::checkBox_field方法的具体用法?PHP inoform::checkBox_field怎么用?PHP inoform::checkBox_field使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类inoform
的用法示例。
在下文中一共展示了inoform::checkBox_field方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gettext
<td>
<?php echo $f->text_field_dsr('inv_transaction_id', 'lineId'); ?>
</td>
<td><?php $f->text_field_widsr('item_id_m'); ?></td>
<td><?php
$f->val_field_widm('item_number', 'item', 'item_number', '', 'vf_select_item_number');
echo $f->hidden_field_withCLass('transactable_cb', '1', 'popup_value');
?>
<i class="generic g_select_item_number select_popup clickable fa fa-search" data-class_name="item"></i></td>
<td><?php $f->text_field_widsr('revision_name'); ?></td>
<td><?php $f->text_field_wid('item_description'); ?></td>
<td>
<?php echo form::select_field_from_object('uom_id', uom::find_all(), 'uom_id', 'uom_name', $$class->uom_id, 'uom_id', $readonly); ?>
</td>
<td><?php form::text_field_widsm('quantity'); ?></td>
<td><?php echo $f->checkBox_field('kit_cb', $$class->kit_cb, '', 'dontCopy'); ?></td>
<td> <a class="popup popup-form view-item-config medium" href="form.php?class_name=bom_config_header&mode=9&window_type=popup"> <i class="fa fa-edit"></i></a></td>
<td><?php $f->text_field_widsr('bom_config_header_id'); ?></td>
</tr>
</tbody>
</table>
</div>
<div id="tabsLine-2" class="tabContent">
<table class="form_line_data_table">
<thead>
<th><?php echo gettext('From SubInv') ?></th>
<th><?php echo gettext('From Locator') ?></th>
<th><?php echo gettext('To SubInv') ?></th>
<th><?php echo gettext('To Locator') ?></th>
<th><?php echo gettext('Description') ?></th>
<th><?php echo gettext('Reason') ?></th>
示例2:
?>
</td>
<td><?php
echo $f->select_field_from_object('hr_job_id', hr_job::find_all(), 'hr_job_id', 'job_name', ${$class_fourth}->hr_job_id);
?>
</td>
<td><?php
echo $f->date_fieldAnyDay('start_date', ${$class_fourth}->start_date);
?>
</td>
<td><?php
echo $f->date_fieldAnyDay('end_date', ${$class_fourth}->end_date);
?>
</td>
<td><?php
echo $f->checkBox_field('chargeable_cb', ${$class_fourth}->chargeable_cb);
?>
</td>
<td><?php
echo $f->checkBox_field('billable_cb', ${$class_fourth}->billable_cb);
?>
</td>
</tr>
<?php
$count = $count + 1;
}
?>
</tbody>
</table>
</form>
</div>
示例3:
?>
<tr class="prj_event_line<?php
echo $count;
?>
">
<td><?php
$f->seq_field_d($count);
?>
</td>
<td><?php
$f->text_field_d2('description');
?>
</td>
<td><?php
echo $f->checkBox_field('billed_cb', ${$class_second}->billed_cb, '', '', 1);
?>
</td>
<td><?php
echo $f->checkBox_field('revenue_distributed_cb', ${$class_second}->revenue_distributed_cb, '', '', 1);
?>
</td>
<td><?php
$f->text_field_wid2r('reference_key_name', 'always_readonly');
?>
</td>
<td><?php
$f->text_field_wid2r('reference_key_value', 'always_readonly');
?>
</td>
</tr>
示例4:
?>
</td>
<td><?php
echo $f->select_field_from_object('currency', option_header::currencies(), 'option_line_code', 'option_line_value', ${$class_third}->currency);
?>
</td>
<td><?php
echo $f->text_field_wid3('amount');
?>
</td>
<td><?php
echo $f->text_field_wid3('percentage');
?>
</td>
<td><?php
$f->checkBox_field('active_cb', ${$class_third}->active_cb);
?>
</td>
</tr>
<?php
$count = $count + 1;
}
?>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
示例5:
<?php
$count = 0;
foreach ($sd_so_line_object as $sd_so_line) {
$sd_so_line->ar_transaction_number = null;
?>
<tr class="sd_so_line<?php
echo $count;
?>
">
<td><?php
$f->seq_field_d($count);
?>
</td>
<td><?php
echo $f->checkBox_field('kit_cb', ${$class_second}->kit_cb, '', 'dontCopy');
?>
</td>
<td><?php
echo $f->checkBox_field('kit_configured_cb', ${$class_second}->kit_configured_cb, '', 'dontCopy');
?>
</td>
<td><?php
$f->text_field_wid2r('bom_config_header_id');
?>
</td>
<td><?php
$f->text_field_wid2r('wip_wo_header_id');
?>
</td>
<td> <a class="popup popup-form-i view-item-config medium" href="form.php?class_name=bom_config_header&mode=9&window_type=popup"> <i class="fa fa-edit"></i></a></td>
示例6:
?>
</td>
<td><?php
$f->text_field_wid2l('reference_key_name', 'always_readonly');
?>
</td>
<td><?php
$f->text_field_wid2l('reference_key_value', 'always_readonly');
?>
</td>
<td><?php
$f->text_field_wid2r('gl_journal_header_id');
?>
</td>
<td><?php
echo $f->checkBox_field('gl_journal_interface_cb', ${$class_second}->gl_journal_interface_cb, '', 'always_readonly');
?>
</td>
</tr>
<?php
$count = $count + 1;
}
?>
</tbody>
</table>
</div>
</div>
</div>
</form>
</div>
示例7: array
<ul class="column three_column">
<li><label>Path Id : </label> <?php
echo $f->text_field_dr('path_id');
?>
</li>
<li><label>Path Value : </label><?php
echo $f->text_field_dl('path');
?>
</li>
<li><label>View : </label><a target='_blank' href="<?php
echo HOME_URL . ${$class}->path;
?>
"> Online </a></li>
<li><label>Update Parent : </label> <?php
echo $f->checkBox_field('update_parent_id_cb', ${$class}->update_parent_id_cb);
?>
</li>
<li><label>Add to menu with parent :</label>
<?php
echo $f->select_field_from_object('parent_id', path::find_all('name'), 'path_id', array('name', 'module_code'), ${$class}->parent_id, 'parent_id', '', '', 1);
?>
</li>
</ul>
</div>
</div>
<div id="tabsHeader-3" class="tabContent">
<div>
<ul class="column four_column">
<li><label>Custom Div Class : </label> <?php
示例8: switch
$field_value_key = $ce_table . '_value';
$qa_cp_element_value = $field_value_obj->{$field_value_key};
}
$label = !empty($qa_cp_element->element_name) ? $qa_cp_element->element_name : $qa_cp_element->sys_element_name;
echo "<li><label>{$label} </label>";
switch ($qa_cp_element->data_type) {
case 'LIST':
$qa_ce_lines = qa_collection_element_line::find_by_parent_id($qa_cp_element->qa_collection_element_header_id);
if (!empty($qa_ce_lines)) {
echo $f->select_field_from_object($qa_cp_element->sys_element_name, $qa_ce_lines, 'qa_collection_element_line_id', 'element_value', $qa_cp_element_value);
} else {
echo $f->text_field($qa_cp_element->sys_element_name, $qa_cp_element_value);
}
break;
case 'BOOLEAN':
echo $f->checkBox_field($qa_cp_element->sys_element_name, $qa_cp_element_value);
break;
case 'FILE':
$qa_cp_element_file_name = $qa_cp_element->sys_element_name . '_file';
$file_routing = file::find_by_fieldName_referenceTable_and_id($qa_cp_element->sys_element_name, 'wip_wo_routing_line', $routing_line->wip_wo_routing_line_id);
echo ino_attachement($file_routing, $qa_cp_element_file_name);
echo $f->hidden_field($qa_cp_element->sys_element_name, $qa_cp_element_value);
break;
case 'OPTION_LIST':
if (!empty($qa_cp_element->list_value_option_type)) {
echo $f->select_field_from_object($qa_cp_element->sys_element_name, option_line::find_by_parent_id($qa_cp_element->option_header_id), 'option_line_code', 'option_line_value', $qa_cp_element_value);
} else {
echo $f->text_field($qa_cp_element->sys_element_name, $qa_cp_element_value);
}
break;
default:
示例9:
</td>
<td><?php
$f->text_field_wid('item_description');
?>
</td>
<td>
<?php
echo form::select_field_from_object('uom_id', uom::find_all(), 'uom_id', 'uom_name', ${$class}->uom_id, 'uom_id', $readonly);
?>
</td>
<td><?php
form::text_field_widsm('quantity');
?>
</td>
<td><?php
echo $f->checkBox_field('kit_cb', ${$class}->kit_cb, '', 'dontCopy');
?>
</td>
<td> <a class="popup popup-form view-item-config medium" href="form.php?class_name=bom_config_header&mode=9&window_type=popup"> <i class="fa fa-edit"></i></a></td>
<td><?php
$f->text_field_widsr('bom_config_header_id');
?>
</td>
</tr>
</tbody>
</table>
</div>
<div id="tabsLine-2" class="tabContent">
<table class="form_line_data_table">
<thead>
<th><?php
示例10:
echo $f->text_field('field_name', ${$class_second}->field_name, '20');
} else {
echo $f->select_field_from_array('field_name', get_dbColumns_valIndex('item'), ${$class_second}->field_name, '', 'medium', 1, '', '', 1);
}
?>
</td>
<td><?php
echo $f->text_field('label', ${$class_second}->label);
?>
</td>
<td><?php
echo $f->select_field_from_array('value_type', cc_co_template_line::$value_type_a, ${$class_second}->value_type);
?>
</td>
<td><?php
echo $f->checkBox_field('required_cb', ${$class_second}->required_cb);
?>
</td>
<td><?php
echo $f->select_field_from_array('control_type', dbObject::$control_type_a, ${$class_second}->control_type);
?>
</td>
<td><?php
echo $f->text_field('control_value', ${$class_second}->control_value);
?>
</td>
<td><?php
echo $f->select_field_from_object('control_uom', uom::find_all(), 'uom_id', 'uom_name', ${$class_second}->control_uom, '', 'uom_id small');
?>
</td>
<td><?php