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 '
| '. $langs->trans("Ref").' | '. $langs->trans("Title") .' | '. $langs->trans("Type") .' | '. $langs->trans("Author") .' | '. $langs->trans("ExpireDate") .' | '. $langs->trans("NbOfVoters") .' | '."\n"; +print ' | |
| '. $langs->trans("Ref").' | '. $langs->trans("Title") .' | '. $langs->trans("Type") .' | '. $langs->trans("Author") .' | '. $langs->trans("ExpireDate") .' | '. $langs->trans("NbOfVoters") .' | '."\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''.$nbuser.' | '."\n"; - print ''; - - if ($user->rights->opensurvey->write) { - print 'id_sondage.'&action=delete">'.img_picto('', 'delete.png').''; - } - - print ' | '."\n"; print '