if ($totcnt % MAXTABLESIZE == MAXTABLESIZE - 1) { break; } $cnt++; $totcnt++; } insert($w, block("<p>")); $vars = ""; $printed = 0; while ($row = $result->FetchRow()) { $totcnt++; $vars = DisplayBlock($w, $row, $totcnt, "&domain=" . urlencode($domain) . "&cust=" . $cust . "&expr={$expr}&descrip=" . urlencode($descrip), "domain"); if (!empty($vars) and !$printed) { insert($ck, anchor($vars, ">>")); $printed = 1; } } insert($w, block("<p>")); if ($cnt) { insert($w, anchor($_SERVER["PHP_SELF"] . "?cust={$cust}&dataid=0&action=export", my_("Export all changed DNS Zones"), $ipplanParanoid ? array("onclick" => "return confirm('" . my_("Are you sure to Export?") . "')") : FALSE)); } else { myError($w, $p, my_("Search found no DNS Zone entries"), FALSE); } insert($w, $f = form(array("method" => "post", "action" => "modifydnsform.php?cust={$cust}&action=add"))); insert($f, submit(array("value" => my_("Add a DNS Zone")))); $result->Close(); // create the export view form $expression = $export->translateExpr($expr); $export->setInfo(array(array("customer_ID", "customer_description", "search_criterion", "search_expression"), array($cust, $ds->getCustomerDescrip($cust), $expression, $descrip))); $export->createExportForm($w, $template); printhtml($p);
} insert($w, block("<p>")); insert($w, text(my_("Total records:") . " " . $cnt)); /* include_once('../adodb/adodb-pager.inc.php'); $sql = "SELECT userid, action, dt FROM auditlog ORDER BY dt DESC"; function callback($buffer) { return ($buffer); } // need to print at this stage as display data is cached via layout template // buffer the output and do some tricks to place system call output in correct // place ob_start("callback"); $pager = new ADODB_Pager($ds->ds,$sql); //$pager->htmlSpecialChars = false; $pager->gridAttributes = "class=outputtable"; $pager->Render($rows_per_page=MAXTABLESIZE); $buf=ob_get_contents(); ob_end_clean(); insert($w,block($buf)); */ // create the export view form $expression = $export->translateExpr($expr); $export->setInfo(array(array("total_records", "search_criterion", "search_expression"), array($cnt, $expression, $descrip))); $export->createExportForm($w, NULL); printhtml($p);