Beispiel #1
0
$vs_context_id = $this->getVar('_context_id');
// used to restrict idno uniqueness checking to within the current list
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'ListItemEditorForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), 'administrate/setup/list_item_editor', 'ListItemEditor', 'Edit/' . $this->request->getActionExtra(), array('item_id' => $vn_item_id)), '', intval($vn_item_id) > 0 ? caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'administrate/setup/list_item_editor', 'ListItemEditor', 'Delete/' . $this->request->getActionExtra(), array('item_id' => $vn_item_id)) : '');
?>
	<div class="sectionBox">
<?php 
print caFormTag($this->request, 'Save/' . $this->request->getActionExtra() . '/item_id/' . $vn_item_id, 'ListItemEditorForm', null, 'POST', 'multipart/form-data');
$va_form_elements = $t_item->getBundleFormHTMLForScreen($this->request->getActionExtra(), array('request' => $this->request, 'formName' => 'ListItemEditorForm', 'context_id' => $vs_context_id), $va_bundle_list);
print join("\n", $va_form_elements);
print $vs_control_box;
?>
			<input type='hidden' name='_context_id' value='<?php 
print $this->getVar('_context_id');
?>
'/>
			<input type='hidden' name='item_id' value='<?php 
print $vn_item_id;
?>
'/>
			<input type='hidden' name='above_id' value='<?php 
print $vn_above_id;
?>
'/>
		</form>
	</div>

	<div class="editorBottomPadding"><!-- empty --></div>
	
	<?php 
print caEditorFieldList($this->request, $va_bundle_list);
Beispiel #2
0
/**
 * 
 *
 * @param array $pa_bundle_list 
 * @param array $pa_options Optional array of options. Supported options are:
 *		NONE
 *
 * @return string 
 */
function caSetupEditorScreenOverlays($po_request, $pt_subject, $pa_bundle_list, $pa_options = null)
{
    $vs_buf = '';
    if ($pt_subject && $pt_subject->isHierarchical()) {
        $vs_buf .= caEditorHierarchyOverview($po_request, $pt_subject->tableName(), $pt_subject->getPrimaryKey(), $pa_options);
    }
    $vs_buf .= caEditorFieldList($po_request, $pt_subject, $pa_bundle_list, $pa_options);
    return $vs_buf;
}
Beispiel #3
0
// used to restrict idno uniqueness checking to within the current list
$t_ui = $this->getVar('t_ui');
print $vs_control_box = caFormControlBox(caFormSubmitButton($this->request, __CA_NAV_BUTTON_SAVE__, _t("Save"), 'RelationshipTypeEditorForm') . ' ' . caNavButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t("Cancel"), 'administrate/setup/relationship_type_editor', 'RelationshipTypeEditor', 'Edit/' . $this->request->getActionExtra(), array('type_id' => $vn_type_id)), '', intval($vn_type_id) > 0 ? caNavButton($this->request, __CA_NAV_BUTTON_DELETE__, _t("Delete"), 'administrate/setup/relationship_type_editor', 'RelationshipTypeEditor', 'Delete/' . $this->request->getActionExtra(), array('type_id' => $vn_type_id)) : '');
?>
	<div class="sectionBox">
<?php 
print caFormTag($this->request, 'Save/' . $this->request->getActionExtra() . '/type_id/' . $vn_type_id, 'RelationshipTypeEditorForm', null, 'POST', 'multipart/form-data');
$va_form_elements = $t_item->getBundleFormHTMLForScreen($this->request->getActionExtra(), array('request' => $this->request, 'formName' => 'RelationshipTypeEditorForm'), $va_bundle_list);
print join("\n", $va_form_elements);
print $vs_control_box;
?>
			<input type='hidden' name='_context_id' value='<?php 
print $this->getVar('_context_id');
?>
'/>
			<input type='hidden' name='type_id' value='<?php 
print $vn_type_id;
?>
'/>
			<input type='hidden' name='above_id' value='<?php 
print $vn_above_id;
?>
'/>
		</form>
	</div>

	<div class="editorBottomPadding"><!-- empty --></div>
	
	<?php 
print caEditorFieldList($va_bundle_list);