$bSelectLimit = $archives->Export == "" && $archives->SelectLimit; if (!$bSelectLimit) { $rs = LoadRecordset(); } $nTotalRecs = $bSelectLimit ? $archives->SelectRecordCount() : $rs->RecordCount(); $nStartRec = 1; if ($nDisplayRecs <= 0) { $nDisplayRecs = $nTotalRecs; } // Display all records if (!$bExportAll) { SetUpStartRec(); } // Set up start record position if ($bSelectLimit) { $rs = LoadRecordset($nStartRec - 1, $nDisplayRecs); } ?> <?php if ($archives->Export == "") { if ($Security->IsLoggedIn()) { ?> <form name="farchiveslistsrch" id="farchiveslistsrch" action="archiveslist.php" > <div class="menuhead">实时检索</div> <table class="ewBasicSearch"> <tr> <td width="60"> <label for="<?php echo EW_TABLE_BASIC_SEARCH; ?>
$bSelectLimit = $posts->Export == "" && $posts->SelectLimit; if (!$bSelectLimit) { $rs = LoadRecordset($lastwhere); } $nTotalRecs = $bSelectLimit ? $posts->SelectRecordCount() : $rs->RecordCount(); $nStartRec = 1; if ($nDisplayRecs <= 0) { $nDisplayRecs = $nTotalRecs; } // Display all records if (!$bExportAll) { SetUpStartRec(); } // Set up start record position if ($bSelectLimit) { $rs = LoadRecordset($nStartRec - 1, $nDisplayRecs, $lastwhere); } } ?> <?php if ($posts->Export == "") { if ($Security->IsLoggedIn()) { ?> <form name="fpostslistsrch" id="fpostslistsrch" action="postslistsorted.php" > <div class="menuhead">实时检索</div> <?php $keywords = trim($posts->getBasicSearchKeyword()); $arKeyword = explode(" ", trim($keywords)); $sql = ""; foreach ($arKeyword as $sKeyword) {
} switch ($logs->CurrentAction) { case "D": // Delete $logs->SendEmail = TRUE; // Send email on delete success if (DeleteRows()) { // delete rows $_SESSION[EW_SESSION_MESSAGE] = "Delete Successful"; // Set up success message Page_Terminate($logs->getReturnUrl()); // Return to caller } } // Load records for display $rs = LoadRecordset(); $nTotalRecs = $rs->RecordCount(); // Get record count if ($nTotalRecs <= 0) { // No record found, exit $rs->Close(); Page_Terminate($logs->getReturnUrl()); // Return to caller } include "header.php"; ?> <script type="text/javascript"> <!-- var EW_PAGE_ID = "delete"; // Page id var EW_SHOW_HIGHLIGHT = "Show highlight"; var EW_HIDE_HIGHLIGHT = "Hide highlight";
$nTotalRecs = ($bSelectLimit) ? $posts->SelectRecordCount() : $rs->RecordCount(); $nStartRec = 1; if ($nDisplayRecs <= 0) $nDisplayRecs = $nTotalRecs; // Display all records if (!$bExportAll) SetUpStartRec(); // Set up start record position if ($bSelectLimit) $rs = LoadRecordset($nStartRec-1, $nDisplayRecs); }else { // Load recordset $bExportAll = (defined("EW_EXPORT_ALL") && $posts->Export <> ""); $bSelectLimit = ($posts->Export == "" && $posts->SelectLimit); if (!$bSelectLimit) $rs = LoadRecordset(); $nTotalRecs = ($bSelectLimit) ? $posts->SelectRecordCount() : $rs->RecordCount(); $nStartRec = 1; if ($nDisplayRecs <= 0) $nDisplayRecs = $nTotalRecs; // Display all records if (!$bExportAll) SetUpStartRec(); // Set up start record position if ($bSelectLimit) $rs = LoadRecordset($nStartRec-1, $nDisplayRecs); } ?> <?php if ($posts->Export == "") { ?> <?php if ($Security->IsLoggedIn()) { ?> <form name="fpostslistsrch" id="fpostslistsrch" action="postslist.php" > <div class="menuhead">实时检索</div> <?php $sAdvance = ""; if($sSrchAdvanced <> "") { $sWhere = "(".$posts->getSearchWhere()." AND id IN(SELECT id FROM `posts` WHERE (".$sSrchAdvanced."))"; }else {