Пример #1
0
 function getSelf($param = "", $with_start_item = true){
     $url_params = "foo=" . DbView::get_uniqid();
     if ($this->mode) $url_params .= "&mode=" . $this->mode;
     if ($with_start_item) $url_params .= "&start_item_id=" . $this->start_item_id;
     if ($param) $url_params .= '&' . $param;
     return parent::getSelf($url_params);
 }
Пример #2
0
 function getSelf($param = false)
 {
     $url_params = "foo=" . DbView::get_uniqid();
     if ($this->mode) {
         $url_params .= "&mode=" . $this->mode;
     }
     if ($param) {
         $url_params .= '&' . $param;
     }
     return parent::getSelf($url_params);
 }
Пример #3
0
PageLayout::setTitle(_('Evaluations-Auswertung'));
PageLayout::setHelpKeyword('Basis.Evaluationen');
Navigation::activateItem('/tools/evaluation');
// Extract variables from request
$eval_id = Request::option('eval_id');
$template_id = Request::option('template_id');
// Überprüfen, ob die Evaluation existiert oder der Benutzer genügend Rechte hat
$eval = new Evaluation($eval_id);
$eval->check();
if (EvaluationObjectDB::getEvalUserRangesWithNoPermission($eval) == YES || count($eval->errorArray) > 0) {
    throw new Exception(_("Diese Evaluation ist nicht vorhanden oder Sie haben nicht ausreichend Rechte!"));
}
// Store settings
if (Request::submitted('store')) {
    if (!$template_id) {
        $template_id = DbView::get_uniqid();
        $query = "INSERT INTO eval_templates_eval (eval_id, template_id)\n                      VALUES (?, ?)";
        $statement = DBManager::get()->prepare($query);
        $statement->execute(array($eval_id, $template_id));
    }
    $show_questions = Request::int('show_questions');
    $show_total_stats = Request::int('show_total_stats');
    $show_graphics = Request::int('show_graphics');
    $show_questionblock_headline = Request::int('show_questionblock_headline');
    $show_group_headline = Request::int('show_group_headline');
    $polscale_gfx_type = Request::option('polscale_gfx_type');
    $likertscale_gfx_type = Request::option('likertscale_gfx_type');
    $mchoice_scale_gfx_type = Request::option('mchoice_scale_gfx_type');
    $query = "INSERT INTO eval_templates\n                      (template_id, user_id, name,\n                       show_questions, show_total_stats, show_graphics,\n                       show_questionblock_headline, show_group_headline,\n                       polscale_gfx_type, likertscale_gfx_type, mchoice_scale_gfx_type)\n                  VALUES (?, ?, 'nix', ?, ?, ?, ?, ?, ?, ?, ?)\n                  ON DUPLICATE KEY UPDATE show_questions = VALUES(show_questions),\n                                          show_total_stats = VALUES(show_total_stats),\n                                          show_graphics = VALUES(show_graphics),\n                                          show_questionblock_headline = VALUES(show_questionblock_headline),\n                                          show_group_headline = VALUES(show_group_headline),\n                                          polscale_gfx_type = VALUES(polscale_gfx_type),\n                                          likertscale_gfx_type = VALUES(likertscale_gfx_type),\n                                          mchoice_scale_gfx_type = VALUES(mchoice_scale_gfx_type)";
    $statement = DBManager::get()->prepare($query);
    $statement->execute(array($template_id, $GLOBALS['user']->id, $show_questions, $show_total_stats, $show_graphics, $show_questionblock_headline, $show_group_headline, $polscale_gfx_type, $likertscale_gfx_type, $mchoice_scale_gfx_type));