You should have received a copy of the GNU Affero General Public License along with Surveyticket plugin. If not, see <http://www.gnu.org/licenses/>. ------------------------------------------------------------------------ @package Surveyticket plugin @author David Durieux @copyright Copyright (c) 2012-2013 Surveyticket plugin team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.indepnet.net/projects/surveyticket @since 2012 ------------------------------------------------------------------------ */ include "../../../inc/includes.php"; Html::header("surveyticket", $_SERVER["PHP_SELF"], "plugins", "surveyticket", "surveyquestion"); $psSurveyQuestion = new PluginSurveyticketSurveyQuestion(); if (isset($_POST["add"])) { if ($_POST['plugin_surveyticket_questions_id'] > 0) { $psSurveyQuestion->add($_POST); } Html::back(); } else { if (isset($_POST["delete"])) { $psSurveyQuestion->delete($_POST); Html::back(); } } Html::footer();
function startSurvey($plugin_surveyticket_surveys_id) { $psSurveyQuestion = new PluginSurveyticketSurveyQuestion(); $a_questions = $psSurveyQuestion->find("`plugin_surveyticket_surveys_id`='" . $plugin_surveyticket_surveys_id . "'", "`order`"); foreach ($a_questions as $data) { $this->displaySurvey($data['plugin_surveyticket_questions_id']); } }