本文整理汇总了PHP中ino_attachement函数的典型用法代码示例。如果您正苦于以下问题:PHP ino_attachement函数的具体用法?PHP ino_attachement怎么用?PHP ino_attachement使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ino_attachement函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ino_attachement
$f->l_text_field_d('description');
?>
</li>
<li><?php
$f->l_checkBox_field_d('primary_cb');
?>
</li>
<li><?php
$f->l_status_field_d('status');
?>
</li>
</ul>
</div>
<div id="tabsHeader-2" class="tabContent">
<div> <?php
echo ino_attachement($file);
?>
</div>
</div>
<div id="tabsHeader-3" class="tabContent">
<div>
<div id="comments">
<div id="comment_list">
<?php
echo !empty($comments) ? $comments : "";
?>
</div>
<div id ="display_comment_form">
<?php
$reference_table = 'uom';
$reference_id = ${$class}->uom_id;
示例2: switch
switch ($ef->field_type) {
case 'LIST':
if (!empty($ef->list_values)) {
$arr = unserialize($ef->list_values);
echo $f->select_field_from_array($ef->sys_field_name, $arr, $ef_value);
} else {
echo $f->text_field($ef->sys_field_name, $ef_value);
}
break;
case 'BOOLEAN':
echo $f->checkBox_field($ef->sys_field_name, $ef_value);
break;
case 'FILE':
$ef_file_name = $ef->sys_field_name . '_file';
$file_routing = file::find_by_fieldName_referenceTable_and_id($ef->sys_field_name, 'wip_wo_routing_line', $routing_line->wip_wo_routing_line_id);
echo ino_attachement($file_routing, $ef_file_name);
echo $f->hidden_field($ef->sys_field_name, $ef_value);
break;
case 'OPTION_LIST':
if (!empty($ef->list_value_option_type)) {
echo $f->select_field_from_object($ef->sys_field_name, option_line::find_by_parent_id($ef->list_value_option_type), 'option_line_code', 'option_line_value', $ef_value);
} else {
echo $f->text_field($ef->sys_field_name, $ef_value);
}
break;
default:
echo $f->text_field($ef->sys_field_name, $ef_value);
break;
}
echo '</li>';
}
示例3: ino_attachement
<div id="comments">
<div id="comment_list">
<?php echo!(empty($comments)) ? $comments : ""; ?>
</div>
<div id ="display_comment_form">
<?php
$reference_table = 'po_header';
$reference_id = $$class->po_header_id;
?>
</div>
<div id="new_comment">
</div>
</div>
</div>
<div id="tabsHeader-5" class="tabContent">
<div> <?php echo ino_attachement($file) ?> </div>
</div>
<div id="tabsHeader-6" class="tabContent">
<div>
<ul class="column four_column">
<li id="document_print"><label><?php echo gettext('Document Print') ?></label>
<a class="button" target="_blank"
href="<?php echo HOME_URL ?>form.php?class_name=po_header&router=pdf_print&po_header_id=<?php echo!(empty($$class->po_header_id)) ? $$class->po_header_id : ""; ?>" >Print PO</a>
</li>
<li><label>Action</label>
<?php
echo $f->select_field_from_array('action', $$class->action_a, '', 'action', '', '', $readonly, $action_readonly)
?>
</li>
</ul>
示例4: switch
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:
echo $f->text_field($qa_cp_element->sys_element_name, $qa_cp_element_value);
break;
}
echo '</li>';
}