Пример #1
0
function form_new_Request($aRec = array(), $formaction = '', $selchangeaction = '', $showsubmit = 1)
{
    /*
     * render request form, if user is ADMIN of some sort than verein_id=0 --> show a verein selector
     */
    global $dbi;
    $RS = DB_listWFRequestType($dbi, 1);
    $RET = '<form id=\'frequest\' name=\'frequest\' action=\'' . $formaction . '\' method=\'POST\'>';
    $RET = $RET . '<table width=\'100%\' cellpadding=\'2\' cellspacing=\'2\'>' . '<tr><td colspan=\'2\'>Welche Art von Anmeldung oder Anforderung m&ouml;chtest du erstellen ?</td></tr>';
    foreach ($RS as $a) {
        $RET = $RET . '<tr><td class=\'bluebox\'>' . $a[1] . '</td><td>' . $a[2] . '</td></tr>';
    }
    if ($aRec['verein_id'] == 0) {
        $RET = $RET . '<tr><td>' . Select_Verein('vid') . '</td><td>Hier <b>muss</b> ein antragstellender Verein gew&auml;hlt werden.(*)</td>';
    } else {
        $RET = $RET . '<tr><td>' . _input(2, 'vid', $aRec['verein_id']) . '</td><td>Antragstellende Verein</td>';
    }
    $RET = $RET . '<tr><td>' . Select_WfRequestType('wfreqtype', $aRec['wfrequesttype']) . '</td>';
    if ($showsubmit == 1) {
        $RET = $RET . '<td>' . _button('Erstellen') . '</td></tr>';
    }
    $RET = $RET . '</table></form>';
    return $RET;
}
Пример #2
0
<?php

/*
 * define the membership form to be used as an embedded child detail.
 * no action buttons, simple table
 */
$FRM = '<table width="100%" cellpadding="2" cellspacing="2">' . '<tr><td valign="top" class="bluebox">Pass Nr.</td>' . '<td><table><tr><td>' . _input(1, 'vpassnr', $aMEM['mpassnr'], 30, 10) . '</td><td>' . _button('Generate Pass', 'genautopass()') . '</td></tr></table></td>' . '<td valign="top" class="bluebox">Meldung</td>' . '<td>' . Select_Membertype('mtype', $aMEM['mtype'], 'setmdate(this)', 0) . '</td></tr>' . '<tr><tr><td valign="top" class="bluebox">Verein</td>' . '<td>' . Select_Verein('vid', $aMEM['mvereinid'], $usertoken['registermap'], '', 0) . '</td>' . '<td valign="top" class="bluebox">Beginn</td>' . '<td>' . _input(1, 'vmstart', $aMEM['mstart'], 14, 12) . '</td>' . '<td valign="top" class="bluebox">Ende</td>' . '<td>' . _input(1, 'vmend', $aMEM['mend'], 14, 12) . '</td></tr>' . '<tr><td colspan="2">Last modification by: ' . $aMEM['mcre_user'] . ' on ' . $aMEM['mcre_date'] . '</td>' . '<td>' . _input(0, 'vmid', $aMEM['mid']) . _input(0, 'vpid', $aMEM['mpid']) . '</td></tr>';
return $FRM . '</table>';
Пример #3
0
<?php

$OUT = "<table width=\"100%\" cellpadding=\"2\" cellspacing=\"2\">" . "<tr><td valign=\"top\" class=\"bluebox\" width=\"150\">Team ID</td>" . "<td width=\"200\">" . _input(2, 'tid', $aRec['id'], 10, 10) . "</td>" . "<td></td>" . "<td></td></tr>" . "<tr><td valign=\"top\" class=\"bluebox\">Liga *</td>" . "<td>" . Select_Event($idname = 'eventid', $aRec['tevent_id'], 1, '') . "</td>" . "<td valign=\"top\" class=\"bluebox\">Teamname *</td>" . '<td>' . _input(1, 'vtname', $aRec['tname'], 30, 50) . '</td></tr>' . '<tr><td valign=\'top\' class=\'bluebox\'>Verein *</td>' . '<td>' . Select_Verein('vverein', $aRec['tverein_id'], array(1, 2, 3, 4, 5, 6, 7, 8, 9)) . '</td>' . '<td valign=\'top\' class=\'bluebox\'>Heimlokal *</td>' . '<td>' . Select_Location('vlocid', '', $aRec['tlocation_id']) . '</td></tr>' . '<tr><td></td>' . '<td></td>' . '<td></td><td>' . _button('Team Daten Speichern') . '</td></tr>';
return $OUT . '</table>';