$userButtons[] = array('label' => 'Custom Export', 'call_back_fun' => array(&$this,'customExport'), 'pass_id_array' => true, 'update_html' => false, 'no_update' => true);
$this->Editor->setConfig('userButtons',$userButtons);
function customExport($info)
{
$this->Editor->sqlFilters = "id in ('".implode("','",$info)."')";
$_SESSION['mate_custom_export'] = $this->Editor->exportInfo();
$this->Editor->sqlFilters = null;
$this->Editor->formatWhereClause();
$this->Editor->retArr[] = array('where' => 'javascript', 'value' => 'window.location="'.$_SERVER['PHP_SELF'].'?export=1&custom=1";');
}
echo $this->Editor->exportInfo();
if(isset($_GET['custom']))
{
echo $_SESSION['mate_custom_export'];
$_SESSION['mate_custom_export'] = '';
}
else
{
echo $this->Editor->exportInfo();
}
Users browsing this forum: No registered users and 18 guests