Exemplo n.º 1
0
 }
 $registryname = $manageData->getParam("registryname");
 $savedquery = $manageData->getParam("savedquery");
 if (strlen($manageData->getParam("table")) > 0) {
     $table = $manageData->getParam("table");
 }
 $primary_key_var = $manageData->getParam("primarykeyvar");
 if (!empty($primarykeyvar)) {
     $primary_key_value = $manageData->getParam("primary_key_var");
 } else {
     $primary_key_value = $manageData->getParam("id" . $table);
 }
 if (!empty($table) || !empty($savedquery)) {
     $form = new ReportForm($conx);
     $form->setUrlNext(urldecode($goto));
     $form->setEventControl($cfg_eventcontroler);
     if (!empty($registryname)) {
         $form->setRegistry($registryname);
     }
     if ($primarykey != "") {
         $form->squery = new sqlQuery($conx);
         $primarykey = stripslashes($primarykey);
         $form->squery->query("select * from " . $table . " where " . $primarykey);
         $form->setLogRun(true);
         $form->setDefault($table);
     } elseif (!empty($savedquery)) {
         $form->setSavedQuery($savedquery);
         $form->setQuery();
         $form->setDefault();
     } else {
         $form->setQuery($table, $primary_key_value, $primary_key_var);