Index: branches/RC/core/units/admin/admin_tag_processor.php =================================================================== diff -u -r9359 -r9639 --- branches/RC/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 9359) +++ branches/RC/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 9639) @@ -783,7 +783,12 @@ return $this->Application->HREF($t, '', $vars, $index_file); } - + function MenuFrameWidth($params) + { + $w = $this->Application->ConfigValue('MenuFrameWidth'); + if (!$w) $w = 200; + return $w; + } function AdminSkin($params) { static $style; @@ -857,6 +862,46 @@ $this->Application->RemoveVar('compile_errors'); return $o; } + + function ExportData($params) + { + $export_helper =& $this->Application->recallObject('CSVHelper'); + /* @var $export_helper kCSVHelper */ + $result = $export_helper->ExportData( $this->SelectParam($params, 'var,name,field') ); + return ($result === false) ? '' : $result; + } + function ImportData($params) + { + $import_helper =& $this->Application->recallObject('CSVHelper'); + /* @var $import_helper kCSVHelper */ + $result = $import_helper->ImportData( $this->SelectParam($params, 'var,name,field') ); + return ($result === false) ? '' : $result; + } + + function PrintCSVNotImportedLines($params) + { + $import_helper =& $this->Application->recallObject('CSVHelper'); + /* @var $import_helper kCSVHelper */ + return $import_helper->GetNotImportedLines(); + } + + /** + * Returns input field name to + * be placed on form (for correct + * event processing) + * + * @param Array $params + * @return string + * @access public + */ + function InputName($params) + { + list($id, $field) = $this->prepareInputName($params); + + $ret = $this->getPrefixSpecial().'[0]['.$field.']'; // 0 always, as has no idfield + if( getArrayValue($params, 'as_preg') ) $ret = preg_quote($ret, '/'); + return $ret; + } } ?> \ No newline at end of file