Пример #1
0
                                                    array("icon" => Icon::create('info', 'clickable'),
                                                                "text" => $info_no_default
                                                    )
                                    )),
                                    array("kategorie" => "Aktion:",
                                            "eintrag" => array(
                                                    array("icon" => Icon::create('infopage', 'clickable'),
                                                                "text" => $info_further_info,
                                                    ),
                                                    array("icon" => Icon::create('checkbox-unchecked', 'clickable'),
                                                                "text" => $info_set_default
                                                    ))
                                    ));
} else {
    $info_content = array(
                                    array("kategorie" => "Information:",
                                                "eintrag" => array(
                                                    array("icon" => Icon::create('info', 'clickable'),
                                                                "text" => $info_max_configs
                                                    )
                                    )));
}

print_infobox($info_content, "sidebar/institute-sidebar.png");
print_footer();

$template = $GLOBALS['template_factory']->open('layouts/base.php');
$template->content_for_layout = ob_get_clean();
echo $template->render();
page_close();
Пример #2
0
 /**
  * creates the infobox
  */
 function createInfoBox($eval, $voted)
 {
     $info1 = array("icon" => EVAL_PIC_EXCLAIM, "text" => EvalShow::getAnonymousText($eval, $voted));
     $info2 = array("icon" => EVAL_PIC_TIME, "text" => EvalShow::getStopdateText($eval, $voted));
     $info3 = array("icon" => EVAL_PIC_HELP, "text" => sprintf(_("Mit %s gekennzeichnete Fragen müssen beantwortet werden."), "<b><span class=\"eval_error\">**</span></b>"));
     $infos = $voted || $GLOBALS["mandatories"] == 0 ? array($info1, $info2) : array($info1, $info2, $info3);
     $infobox = array(array("kategorie" => _("Information:"), "eintrag" => $infos));
     return print_infobox($infobox, NULL, YES);
 }
 /**
  * Creates an infobox with image
  * @access public
  * @param  string  $imgLogo  The big logo at the top
  */
 function createInfoBox($imgLogo)
 {
     /* Define infobox text ------------------------------------------------ */
     $info1 = array("icon" => Icon::create('test', 'clickable'), "text" => _("Auf dieser Seite haben Sie eine Übersicht aller in dem ausgewählten Bereich existierenden Evaluationen sowie Ihrer eigenen Evaluationsvorlagen."));
     $info2 = array("icon" => Icon::create('info', 'clickable'), "text" => _("Sie können eine Evaluation aufklappen und dann Bereichen zuordnen und ihre Laufzeit bestimmen."));
     $infobox = array(array("kategorie" => _("Information:"), "eintrag" => array($info1, $info2)));
     /* ------------------------------------------------------- end: infobox */
     return print_infobox($infobox, $imgLogo, YES);
 }
 /**
  * creates the infobox
  *
  */
 function createInfoBox($command)
 {
     global $evalID, $rangeID;
     $id = Request::option("itemID");
     $level = EvaluationObjectDB::getType($id);
     #      echo $level;
     switch ($level) {
         case "0":
         case "Evaluation":
             $infoMain = array("icon" => Icon::create('test', 'info')->asImagePath(16), "text" => _("Links können Sie die Grundattribute der Evaluation definieren und neue Gruppierungsblöcke anlegen."));
             break;
         case "EvaluationGroup":
             $group = new EvaluationGroup($id);
             switch ($group->getChildType()) {
                 case "":
                 case "EvaluationGroup":
                     $infoMain = array("icon" => EVAL_PIC_TREE_GROUP, "text" => _("Links können Sie den ausgewählten Gruppierungsblock bearbeiten und darin Fragenblöcke oder weitere Gruppierungsblöcke anlegen."));
                     break;
                 case "EvaluationQuestion":
                     $infoMain = array("icon" => EVAL_PIC_TREE_QUESTIONGROUP, "text" => _("Links können Sie den ausgewählten Fragenblock bearbeiten und darin Fragen des zugeordneten Vorlagentyps anlegen.<br>Sie können auch den Vorlagentyp ändern. Dies wirkt sich auf alle Fragen aus."));
                     break;
             }
     }
     $previewLink = EvalCommon::createEvalShowLink($evalID, _("Vorschau"), YES, NO);
     $previewLink .= " " . _("der Evaluation");
     $infoTemplates = array("icon" => Icon::create('info', 'info')->asImagePath(16), "text" => _("Der rechte Bereich dient der Bearbeitung von Antwortenvorlagen."));
     $infoPreview = array("icon" => Icon::create('question-circle', 'info')->asImagePath(16), "text" => $previewLink);
     if (get_Username($rangeID)) {
         $rangeID = get_Username($rangeID);
     }
     if (empty($rangeID)) {
         $rangeID = get_Username($user->id);
     }
     $infoOverviewText = sprintf(_("Zurück zur %s Evaluations-Verwaltung %s"), "<a href=\"" . URLHelper::getLink('admin_evaluation.php?page=overview' . "&check_abort_creation_button=1&evalID={$evalID}&rangeID={$rangeID}") . "\">", "</a>");
     $infoOverview = array("icon" => Icon::create('link-intern', 'info')->asImagePath(16), "text" => $infoOverviewText);
     if ($command) {
         $infobox = array(array("kategorie" => _("Aktionen:"), "eintrag" => array($infoPreview, $infoOverview)));
     } else {
         $infobox = array(array("kategorie" => _("Information:"), "eintrag" => array($infoMain, $infoTemplates, $infoPreview, $infoOverview)));
     }
     #      ob_start();
     return print_infobox($infobox, false, YES);
     #      $html = ob_get_contents();
     #      ob_end_clean();
     #      return $html;
 }
Пример #5
0
        else
            echo ELearningUtils::getCMSSelectbox(_("Wählen Sie ein angebundenes System für die Suche:"));
    }

// Cachen der SOAP-Daten
    if (is_array($connected_cms))
        foreach($connected_cms as $system)
            $system->terminate();


    ?>
    </td></tr></table>

        </td>
        <td width="270" class="blank" align="right" valign="top">
        <? print_infobox($infobox, "sidebar/learnmodule-sidebar.png"); ?>
        </td>
    </tr>
       <tr>
                <td class="blank" colspan="3">&nbsp;
                </td>
        </tr>
    </table>
<?

// terminate objects
    if (is_array($connected_cms))
        foreach($connected_cms as $system)
            $system->terminate();

}