if($_SESSION['acl']['superuser'] != 'Y') { echo(mkerror(_('Only superusers allowed.'))."
\n"); echo("" . _('Go back to Management Interface') . "\n"); return; } $sids = array(); if(!empty($_POST['list'])) { while(list(,$sid) = each($_POST['list'])) { array_push($sids, intval($sid)); } survey_purge($sids); } // $sql = " //SELECT s.id,s.name,s.title,s.status,s.owner,s.realm,COUNT(q.id) as count //FROM survey s LEFT JOIN question q ON $sql = " SELECT s.id,s.name,s.title,s.status,s.owner,s.realm,COUNT(q.id) as count FROM ".$GLOBALS['ESPCONFIG']['survey_table']." s LEFT JOIN ".$GLOBALS['ESPCONFIG']['question_table']." q ON s.id = q.survey_id AND q.deleted = 'N' GROUP BY s.id, s.name, s.title, s.status, s.owner, s.realm ORDER BY s.id DESC"; $result = execute_sql($sql); $bg = $ESPCONFIG['bgalt_color2']; ?>

completely removes everything about a survey from the database forever. All question info, general info, results, etc. are purged from the database. Do not do anything here that you are not completely certain about. There is no confirmation, there is no turning back.')); ?>

" . _('Go back to Management Interface') . "\n"); ?> MoveNext(); if($status & STATUS_DELETED) { $stat = _('Archived'); } elseif($status & STATUS_DONE) { $stat = _('Ended'); } elseif($status & STATUS_ACTIVE) { $stat = _('Active'); } elseif($status & STATUS_TEST) { $stat = _('Testing'); } else { $stat = _('Editing'); } if($bg != $ESPCONFIG['bgalt_color1']) $bg = $ESPCONFIG['bgalt_color1']; else $bg = $ESPCONFIG['bgalt_color2']; ?>
 
" . _('Go back to Management Interface') . "\n"); ?>