public function store_action($version) { $body = Request::get('body'); if (Request::isXhr()) { $body = studip_utf8decode($body); } submitWikiPage($this->keyword, $version, $body, $GLOBALS['user']->id, $this->range_id); $latest_version = getLatestVersion($this->keyword, $this->range_id); if (Request::isXhr()) { $this->render_json(array('version' => $latest_version['version'], 'body' => $latest_version['body'], 'messages' => implode(PageLayout::getMessages()) ?: false, 'zusatz' => getZusatz($latest_version))); } else { // Yeah, wait for the whole trailification of the wiki... } }
<?php foreach (PageLayout::getMessages() as $message) { ?> <?php echo $message; } ?> <form action="<?php echo $controller->url_for('presenting/follow_release/' . $release->getId()); ?> " method="post" data-dialog class="default"> <p class="info"> <?php echo _("Immer aktuell bleiben mit automatischen Updates! Sie finden in Ihrem eigenen Stud.IP in der Pluginverwaltung rechts neben dem Plugin ein Icon, das Sie zu einem Popup führt. Geben Sie dort die unten stehende Download-URL ein und geben Sie hier die URL ein, die Sie danach dort in Ihrer Pluginverwaltung sehen. Sind beide Systeme korrekt konfiguriert, wird der Marktplatz dann eine jede neue Version dieses Releases automatisch in ihrem Stud.IP installieren."); ?> </p> <fieldset> <legend><?php echo _("Konfigurieren Sie Ihr Stud.IP"); ?> </legend> <label> <?php echo _("Download-URL - geben Sie diese URL in Ihrem Stud.IP in der Pluginverwaltung ein"); ?> <input type="text" readonly value="<?php echo $controller->absolute_url_for('presenting/download/' . $release->getId()); ?> "> </label>
<? if (Request::isXhr()) : ?> <? foreach (PageLayout::getMessages() as $messagebox) : ?> <?php echo $messagebox; ?> <? endforeach ?> <? endif ?>
<? foreach(PageLayout::getMessages() as $pm) : ?> <?php echo $pm; ?> <? endforeach; ?> <?php echo $form->getFormStart($controller->url_for('resources/helpers/resource_message/' . $resource->getId()), array('data-dialog' => '')); ?> <div style="font-weight:bold;padding-top:5px;"> <?php echo $form->getFormFieldCaption('start_day'); ?> : </div> <div> <?php echo $form->getFormField('start_day'); ?> </div> <div style="font-weight:bold;padding-top:5px;"> <?php echo $form->getFormFieldCaption('end_day'); ?> : </div> <div> <?php echo $form->getFormField('end_day'); ?> </div>
<?php echo implode(PageLayout::getMessages()); echo $content_for_layout;
$navigation = new Navigation(_('Anpassen')); $navigation->addSubNavigation('edit_types', new Navigation(_('Typen verwalten'), 'resources.php', array('view' => 'edit_types'))); $navigation->addSubNavigation('edit_properties', new Navigation(_('Eigenschaften verwalten'), 'resources.php', array('view' => 'edit_properties'))); $navigation->addSubNavigation('edit_settings', new Navigation(_('globale Einstellungen verwalten'), 'resources.php', array('view' => 'edit_settings'))); if ($perm->have_perm('root')) { $navigation->addSubNavigation('edit_perms', new Navigation(_('globale Rechte verwalten'), 'resources.php', array('view' => 'edit_perms'))); } $resources_nav->addSubNavigation('settings', $navigation); } //load content, text, pictures and stuff include ("$RELATIVE_PATH_RESOURCES/views/page_intros.inc.php"); //save messages from $pmessages = PageLayout::getMessages(); ob_start(); ?> <script type="text/javascript"> function check_opener(obj){ if (window.opener && obj.href){ window.opener.location.href = obj.href; window.opener.focus(); return false; } return true; } </script> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <? if (!Request::get('print_view')): ?> <tr>