Esempio n. 1
0
require_once "classes/exportpage.php";
require_once 'include/xtempl.php';
$xt = new Xtempl();
$id = postvalue("id");
$id = $id != "" ? $id : 1;
$xt->assign("groupExcel", true);
//array of params for classes
$params = array();
$params["id"] = $id;
$params["xt"] =& $xt;
$params["tName"] = $strTableName;
$params["pageType"] = PAGE_EXPORT;
if (!$eventObj->exists("ListGetRowCount") && !$eventObj->exists("ListQuery")) {
    $params["needSearchClauseObj"] = false;
}
$pageObject = new ExportPage($params);
$pageObject->init();
//	Before Process event
if ($eventObj->exists("BeforeProcessExport")) {
    $eventObj->BeforeProcessExport($pageObject);
}
$strWhereClause = "";
$strHavingClause = "";
$strSearchCriteria = "and";
$selected_recs = array();
$options = true;
if (@$_REQUEST["a"] != "") {
    $options = false;
    $sWhere = "1=0";
    //	process selection
    $selected_recs = array();
Esempio n. 2
0
 /**
  * Shows the export page for this table.
  */
 public function actionExport()
 {
     $exportPage = new ExportPage('objects', $this->schema);
     $exportPage->setSelectedObjects('t:' . $this->table);
     $exportPage->run();
     $this->render('../global/export', array('model' => $exportPage));
 }