function navi_lsdb($eventid) { # # display some navigation buttons, icons ... # this is called inside a TABLE Definition # BH v1 12.2005 global $lastdate, $usertoken; # level 0,1 = public # level 2 = write, edit # level 3 = master # hdlClick() 1 = team, 2=match, 3=schedule,4=stats $AccCode = 0; if ($eventid > 0) { if (sizeof($usertoken) > 5) { if (sizeof($usertoken['eventmap']) > 0) { $AccCode = $usertoken['eventmap'][$eventid]; } } } echo '<form id="frmEvSel" name="frmEvSel" action="" method="post">'; echo Select_Event($idname = 'eventid', $eventid, 1, 'selLigaChange()') . '</form>'; echo '<br/>' . _button('Teams / Aufstellung', 'lsdbbtnclick(1)'); if ($AccCode == 3) { echo '<br/>' . _button('Team NEU', 'lsdbbtnclick(9)'); } echo '<br/>' . _button('Alle Spielorte', 'lsdbbtnclick(6)'); echo '<br/>' . _button('Spielplan / Berichte', 'lsdbbtnclick(3)'); if ($AccCode > 1) { echo '<br/>' . _button('Spielbericht NEU', 'lsdbbtnclick(2)'); } echo '<br/>' . _button('Tabelle', 'lsdbbtnclick(5)'); echo '<br/>' . _button('Spieler Statistik', 'lsdbbtnclick(4)'); echo '<br/>' . _button('Team Statistik', 'lsdbbtnclick(8)'); # Show Current ACCESS CODE if eventid>0 .. # debug(AC: '.$AccCode); }
<?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>';