Exemplo n.º 1
0
    <?php 
echo ForumHelpers::replace(Studip\LinkButton::createAccept(_('Kategorie speichern'), "javascript:STUDIP.Forum.saveCategoryName('%%%- category_id ###');"));
?>
    <?php 
echo ForumHelpers::replace(Studip\LinkButton::createCancel(_('Abbrechen'), "javascript:STUDIP.Forum.cancelEditCategoryName('%%%- category_id ###')"));
?>
</span>
</script>

<script type="text/template" class="edit_area">
<span class="edit_area">
    <input type="text" name="name" size="20" maxlength="255" style="width: 100%;" value="<%- name %>" onClick="jQuery(this).focus()"><br>
    <textarea name="content" style="height: 3em;" onClick="jQuery(this).focus()"><%- content %></textarea>

    <?php 
echo ForumHelpers::replace(Studip\LinkButton::createAccept(_('Speichern'), "javascript:STUDIP.Forum.saveArea('%%%- area_id ###');"));
?>
    <?php 
echo ForumHelpers::replace(Studip\LinkButton::createCancel(_('Abbrechen'), "javascript:STUDIP.Forum.cancelEditArea('%%%- area_id ###');"));
?>
</span>
</script>

<script type="text/template" class="add_area">
<tr class="new_area">
    <td class="areaentry"></td>
    <td class="areaentry">
        <form class="add_area_form">
            <?php 
echo CSRFProtection::tokenTag();
?>
Exemplo n.º 2
0
        <div>
        (<?php 
echo sprintf(_("max. Teilnehmeranzahl: %s / Anzahl der Anmeldungen: %s"), $priocourses->admission_turnout, $num_claiming);
?>
)
        </div>
    <? endif ?>
    <div data-dialog-button>
    <?php 
echo Studip\Button::createCancel(_("Schließen"), 'cancel');
?>
    </div>
    <?php 
echo CSRFProtection::tokenTag();
?>
    </form>
<? endif ?>
<? if (!$priocourses && !$admission_form) :?>
    <div data-dialog-button>
    <? if ($enrol_user) : ?>
        <?php 
echo Studip\LinkButton::createAccept(_('Zur Veranstaltung'), URLHelper::getScriptURL('seminar_main.php', array('auswahl' => $course_id)));
?>
    <? else : ?>
        <?php 
echo Studip\LinkButton::createAccept(_('OK'), URLHelper::getScriptURL('dispatch.php/course/details/', array('sem_id' => $course_id)));
?>
    <? endif ?>
    </div>
<? endif ?>
<script>STUDIP.enrollment();</script>