From f7809906d91daf62445ed38e9d08a8b4f5571e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Sun, 5 Jan 2014 19:38:39 +0100 Subject: [PATCH] Removed massive deletion feature of polls as it is not a common case --- htdocs/opensurvey/list.php | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/htdocs/opensurvey/list.php b/htdocs/opensurvey/list.php index 745bee3a22c..53a200b2d65 100644 --- a/htdocs/opensurvey/list.php +++ b/htdocs/opensurvey/list.php @@ -42,28 +42,6 @@ $limit = $conf->liste_limit; $offset = $limit * $page; -/* - * Actions - */ - -if ($action == 'delete_confirm') -{ - // Security check - if (!$user->rights->opensurvey->write) accessforbidden(); - - require_once DOL_DOCUMENT_ROOT.'/opensurvey/class/opensurveysondage.class.php'; - - $db->begin(); - - $object=new Opensurveysondage($db); - - $result=$object->delete($user,'',$numsondage); - - $db->commit(); -} - - - /* * View */ @@ -77,16 +55,9 @@ print '
'."\n"; print_fiche_titre($langs->trans("OpenSurveyArea")); - -if ($action == 'delete') -{ - print $form->formconfirm($_SERVER["PHP_SELF"].'?&id='.$id, $langs->trans("RemovePoll"), $langs->trans("ConfirmRemovalOfPoll",$id), 'delete_confirm', '', '', 1); -} - - // tableau qui affiche tous les sondages de la base print ''."\n"; -print ''."\n"; +print ''."\n"; $sql = "SELECT id_sondage, mail_admin, format, date_fin, titre, nom_admin"; $sql.= " FROM ".MAIN_DB_PREFIX."opensurvey_sondage as p"; @@ -134,13 +105,6 @@ while ($i < min($num,$limit)) print ''; print''."\n"; - print ''."\n"; print ''."\n"; $i++;
'. $langs->trans("Ref").''. $langs->trans("Title") .''. $langs->trans("Type") .''. $langs->trans("Author") .''. $langs->trans("ExpireDate") .''. $langs->trans("NbOfVoters") .' 
'. $langs->trans("Ref").''. $langs->trans("Title") .''. $langs->trans("Type") .''. $langs->trans("Author") .''. $langs->trans("ExpireDate") .''. $langs->trans("NbOfVoters") .''.$nbuser.''; - - if ($user->rights->opensurvey->write) { - print ''.img_picto('', 'delete.png').''; - } - - print '