function verband_form() { global $dbi; if (isset($_REQUEST['vcode'])) { $vcode = strip_tags($_REQUEST['vcode']); } if (isset($_REQUEST['vname'])) { $vname = strip_tags($_REQUEST['vname']); } if (isset($_REQUEST['vlogic'])) { $vlogic = strip_tags($_REQUEST['vlogic']); } if (isset($_REQUEST['vactive'])) { $vactive = strip_tags($_REQUEST['vactive']); } $vcode = ''; $vname = ''; $vlogic = ''; $vactive = ''; if (isset($_REQUEST['vid']) && !empty($_REQUEST['vid'])) { $vid = $_REQUEST['vid']; $verband_result = sql_query('SELECT v.id, v.vcode, v.vname, v.vlogic, v.vactive FROM tverband v WHERE v.id = ' . $vid, $dbi); list($id, $vcode, $vname, $vlogic, $vactive) = sql_fetch_row($verband_result, $dbi); $vid = '&vid=' . $vid; } $ret = '<form action="admin_verband_management.php?op=new_verband_creation' . $vid . '" method="post">'; $ret = $ret . '<h3>Verband und berecht</h3><table border="0" cellpadding="0" align="left">'; $ret = $ret . '<tr><td>Verband name: </td><td>' . _input(1, 'vname', $vname, 50, 50) . '</td></tr>'; $ret = $ret . '<tr><td>Verband code: </td><td>' . _input(1, 'vcode', $vcode, 50, 50) . '</td></tr>'; $ret = $ret . '<tr><td>Verband logic:</td><td>' . _input(1, 'vlogic', $vlogic, 50, 50) . '</td></tr>'; $ret = $ret . '<tr><td>Active:</td><td><select id="vactive" name="vactive">'; $ret = $ret . '<option value="1" ' . ($vactive == 1 ? 'selected="selected"' : '') . '>Active</option>'; $ret = $ret . '<option value="0" ' . ($vactive == 0 ? 'selected="selected"' : '') . '>Inactive</option>'; $ret = $ret . '</select></td></tr>'; $ret = $ret . '</table>' . _button(!empty($_REQUEST['vid']) ? 'Update verband' : 'Create verband') . '</form>'; return $ret; }
function save_user_list() { $usr = $this->data; $id = $this->input->post('id'); $data = _input($this->input->post()); if ($data['username'] && $data['nama']) { $check = $this->model_basic->get_data($this->tbl_user, array('where_array' => array('username' => $data['username'])))->row(); if ($id) { if ($check && $check->id != $id) { $this->returnJson(array('message' => lang('msg_username_invalid'), 'status' => 'error')); die; } $data['update_by'] = $usr['user_id']; $data['update_date'] = date('Y-m-d'); $save = $this->model_basic->update_data($this->tbl_user, $data, 'id', $id); if ($save) { $save = $id; } } else { if ($check) { $this->returnJson(array('message' => lang('msg_username_invalid'), 'status' => 'error')); die; } $data['create_by'] = $usr['user_id']; $data['create_date'] = date('Y-m-d'); $save = $this->model_basic->update_data($this->tbl_user, $data); } if ($save) { $this->returnJson(array('message' => lang('msg_data_has_been_saved'), 'status' => 'ok', 'href' => $this->modul_setting . '/' . $this->controller_user . '/photo/' . $save)); } else { $this->returnJson(array('message' => lang('msg_data_not_saved'), 'status' => 'error')); } } else { $this->returnJson(array('message' => lang('msg_insert_not_completed'), 'status' => 'error')); } }
<?php /* * make sure that idnames are syncronized between player,wfplayer,membership forms * some js-functions are shared ... */ if (isset($WFPLAYERFORM_READONLY)) { $input_flag = 2; } else { $input_flag = 1; } $OUT = "<table width=\"100%\" cellpadding=\"2\" cellspacing=\"2\">" . "<tr><td valign=\"top\" class=\"bluebox\" width=\"150\">PID / WFPID</td>" . "<td width=\"200\">" . _input(2, 'pid', $obj['pid'], 6, 6) . _input(2, 'wfpid', $obj['wfplayer_id'], 6, 6) . '</td>' . "<td valign=\"top\" class=\"bluebox\" width=\"150\">Meldeart *</td>" . "<td>" . Select_Membertype('mtype', $obj['ttypemember_id']) . '</td></tr>'; $OUT = $OUT . '<tr><td valign="top" class="bluebox">Neuer Pass</td>' . '<td>' . _button('Generate Pass', 'genautopass()') . '</td>' . '<td valign="top" class="bluebox">Auto PassNr.</td>' . '<td>' . _input(2, 'vpassnr', $obj['ppassnr'], 12, 20) . '</td></tr>'; $OUT = $OUT . "<tr><td valign=\"top\" class=\"bluebox\">Vorname *</td>" . "<td>" . _input($input_flag, 'wffname', $obj['pfname'], 30, 40) . '</td>' . "<td valign=\"top\" class=\"bluebox\">Nachname *</td>" . "<td>" . _input($input_flag, 'wflname', $obj['plname'], 30, 40) . "</td></tr>" . "<tr><td valign=\"top\" class=\"bluebox\">Geb. Datum * (yyyy-mm-dd)</td>" . "<td>" . _input($input_flag, 'wfbirthdate', $obj['pbirthdate'], 30, 20) . '</td>' . "<td valign=\"top\" class=\"bluebox\" width=\"150\">Geschlecht (H/D/J)</td>" . "<td width=\"200\">" . Select_Gender('vgender', $obj['pgender']) . "</td></tr>" . "<tr><td colspan=\"4\"><hr></td></tr>" . "<tr><td valign=\"top\" class=\"bluebox\">PLZ</td>" . "<td>" . _input($input_flag, 'wfplz', $obj['pplz'], 30, 20) . '</td>' . "<td valign=\"top\" class=\"bluebox\">Stadt</td>" . "<td>" . _input($input_flag, 'wftown', $obj['ptown'], 30, 40) . "</td></tr>" . "<tr>" . "<td valign=\"top\" class=\"bluebox\">Strasse</td>" . "<td colspan=3>" . _input($input_flag, 'wfstreet', $obj['pstreet'], 60, 40) . "</td></tr>" . "<tr><td valign=\"top\" class=\"bluebox\">Tel</td>" . "<td>" . _input($input_flag, 'wftel1', $obj['ptel1'], 30, 20) . '</td>' . "<td valign=\"top\" class=\"bluebox\">E-mail</td>" . "<td>" . _input($input_flag, 'wfemail', $obj['pemail'], 30, 40) . "</td></tr>" . '<tr>' . '<td valign="top" class="bluebox">Kommentar</td>' . '<td colspan="2">' . _input($input_flag, 'pcomment', $obj['pcomment'], 60, 60) . '</td>' . '<td></td></tr>'; $OUT = $OUT . '</table><div id="check"><table class="tchild" id="lineupP' . $obj['pid'] . '" name="lineupP' . $obj['pid'] . '">'; # ////////////////////// inject the master child table here ...' #$RS1=DB_listEventWFTeamPlayers($dbi,1,$obj['pid']); #$RS2=DB_listEventTeamWFPlayers($dbi,1,$obj['pid']); #$RS=array_merge($RS1,$RS2); #if (!sizeof($RS)>0) return ('<font color=green>Keine Mannschaftsmeldungen für Spieler:'.$obj['pid'].'</font>'); #$aTH=array('LigaGruppe','Bewerb / Liga','Saison','Teamname','Vorname','Nachname',); #$OUT=$OUT.''; #$OUT=$OUT.ArrayToTableHead($aTH); #$OUT=$OUT.RecordsetToDataTable($RS,array(1,3,4,6,8,9)); # //////////////////// return $OUT . '</table></div>';
<?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>';
// form post rules $post_rules = incoming_post_rules_get(); // sandbox match receiver number and sender ID $select_match_sender_id = _yesno('sandbox_match_sender_id', $post_rules['match_sender_id'], '', '', '', 'playsms-sandbox-match-sender-id', 'form-control'); // sandbox prefix unset($params); $params = array('size' => '100%', 'maxlength' => 30, 'placeholder' => _('Insert keyword')); $input_prefix = _input('text', 'sandbox_prefix', $post_rules['insert_prefix'], $params, 'playsms-sandbox-prefix', 'form-control'); // sandbox forward to users unset($params); $params = array('width' => '100%', 'placeholder' => _('Select users')); $select_users = themes_select_users_multi('uids', $post_rules['forward_to'], $params, 'playsms-route-to-users'); // sandbox forward to URL unset($params); $params = array('size' => '100%', 'maxlength' => 255, 'placeholder' => _('URL')); $input_url = _input('text', 'forward_to_url', $post_rules['forward_to_url'], $params, 'playsms-forward-to-url', 'form-control'); $form_post_rules = array(array('id' => 'playsms-sandbox-match-sender-id', 'label' => _('Route all sandbox SMS with matched sender ID'), 'input' => $select_match_sender_id, 'help' => _('Route to user inbox if receiver number matched with user sender ID')), array('id' => 'playsms-route-to-users', 'label' => _('Route all sandbox SMS to users'), 'input' => $select_users, 'help' => _('Route all sandbox SMS to one or more users')), array('id' => 'playsms-forward-to-url', 'label' => _('Forward all sandbox SMS to a URL'), 'input' => $input_url, 'help' => _('Example') . ': <br />http://external.app/handler.php?json={SANDBOX_PAYLOAD}&dt={SANDBOX_DATETIME}&s={SANDBOX_SENDER}&m={SANDBOX_MESSAGE}&r={SANDBOX_RECEIVER}&smsc={SANDBOX_SMSC}')); // form settings $settings = incoming_settings_get(); // settings to leave copy on sandbox $settings_leave_copy_sandbox = _yesno('settings_leave_copy_sandbox', $settings['leave_copy_sandbox'], '', '', '', 'settings_leave_copy_sandbox', 'form-control'); // settings to match with all approved sender ID $settings_match_all_sender_id = _yesno('settings_match_all_sender_id', $settings['match_all_sender_id'], '', '', '', 'settings_match_all_sender_id', 'form-control'); $form_settings = array(array('id' => 'playsms-settings-leave-copy', 'label' => _('Leave a copy in sandbox SMS page'), 'input' => $settings_leave_copy_sandbox, 'help' => _('Leaving a copy in sandbox SMS page may be useful for audit or reviews')), array('id' => 'playsms-settings-match-all', 'label' => _('Match with all approved sender ID'), 'input' => $settings_match_all_sender_id, 'help' => _('Receiver number can be matched with default sender ID or with all approved sender ID'))); $tpl = array('name' => 'incoming', 'vars' => array('DIALOG_DISPLAY' => _dialog(), 'PAGE_TITLE' => _('Route incoming SMS'), 'ACTION_URL' => _u('index.php?app=main&inc=feature_incoming&op=incoming_save'), 'HTTP_PATH_THEMES' => _HTTP_PATH_THEMES_, 'HINT_PRE_RULES' => _hint(_('Rules applied before incoming SMS processed')), 'HINT_POST_RULES' => _hint(_('Rules applied after incoming SMS processed')), 'Pre rules' => _('Pre rules'), 'Post rules' => _('Post rules'), 'Settings' => _('Settings'), 'Save' => _('Save')), 'loops' => array('form_pre_rules' => $form_pre_rules, 'form_post_rules' => $form_post_rules, 'form_settings' => $form_settings), 'injects' => array('core_config')); _p(tpl_apply($tpl)); break; case "incoming_save": // form pre rules // scan message for @username $pre_rules['match_username'] = (int) $_REQUEST['incoming_match_username'];
function _blank() { # # // show the controls # // description + pair of date selector - delete and create buttons # // show table with a group by statement counted by date as feedback control ... # global $statcodeSSI, $statcodeFEDAM, $statcodeWDV, $statcodeFEDAD, $thisfile; echo "<h3>Spieler Statistik Administration</h3>"; echo "<p>Zugang zu diesen Funktionen haben nur Administratoren mit Level 3 aus dem Liga System oder der SSI Wertung. Diese Funktionen hier dienen der Erstellung einer statischen Rangliste für einen gewissen Zeitpunkt. Die Werte aus diesen statischen Listen werden dann an unterschiedlichen Stellen angezeigt und auch verwendet.<br>Alle auf den Statistik Seiten der Ligen angezeigte Listen oder Auswertungen können als statische Listen mit einem Datum versehen gespeichert werden.</p>"; ## FEDA MIXED echo "<table width=100%><tr><td width=30% valign=top>Existing FEDA Mixed Werte<br>"; OpenTable(); echo _retEntryCounts($statcodeFEDAM); CloseTable(); echo "</td><td width=70% valign=top>"; echo "<form action=\"{$thisfile}\" method=\"post\">" . "<fieldset><legend>FEDA MIX Ranking Erzeugen</legend>"; echo Select_StatDate($statcodeFEDAM, '', 'vindexdate'); echo _input(0, "func", "runfedacalc"); echo _input(0, "statcode", $statcodeFEDAM); echo _button("Create"); echo "<p>Erzeugt eine neue FEDA MIX Rangliste für <b>alle</b> Spieler die jemals an diesem Bewerb teilgenommen haben. Werden für das letzte Jahr keine LEGS gefunden so wird kein Statistik Wert gespeichert. Nach dem Erzeugen der neuen Werte wird in allen Ranglisten automatisch immer auf den aktuellen Wert Bezug genommen</p>"; echo "</fieldset></form>"; echo "<form action=\"{$thisfile}\" method=\"post\">" . "<fieldset><legend>FEDA MIX Ranking Löschen</legend>"; echo Select_StatDate($statcodeFEDAM, '', 'vindexdate'); echo _input(0, "func", "delfedacalc"); echo _input(0, "statcode", $statcodeFEDAM); echo _button("Delete"); echo "<p>Bist du sicher dass du alle FEDA Ranglisten Werte aller Spieler für ein bestimmtes Datum <b>löschen</b> willst ?? Anschliessend muss die Rangliste wieder berechnet werden sonst kann keine Aktuelle angezeigt werden.<br><i>Diese Funktion dient ausschliesslich zum Software-Debugen oder bei krassen Fehleingaben ...</i></p>"; echo "</fieldset></form>"; echo "</td></tr></table>"; ## FEDA DAMEN echo "<table width=100%><tr><td width=30% valign=top>Existing FEDA Damen Werte<br>"; OpenTable(); echo _retEntryCounts($statcodeFEDAD); CloseTable(); echo "</td><td width=70% valign=top>"; echo "<form action=\"{$thisfile}\" method=\"post\">" . "<fieldset><legend>FEDA Damen Ranking Erzeugen</legend>"; echo Select_StatDate($statcodeFEDAD, '', 'vindexdate'); echo _input(0, "func", "runfedacalc"); echo _input(0, "statcode", $statcodeFEDAD); echo _button("Create"); echo "<p>Erzeugt eine neue FEDA DAMEN Rangliste für <b>alle</b> Spielerinnen die jemals an diesem Bewerb teilgenommen haben. Werden für das letzte Jahr keine LEGS gefunden so wird kein Statistik Wert gespeichert. Nach dem Erzeugen der neuen Werte wird in allen Ranglisten automatisch immer auf den aktuellen Wert Bezug genommen</p>"; echo "</fieldset></form>"; echo "<form action=\"{$thisfile}\" method=\"post\">" . "<fieldset><legend>FEDA Damen Ranking Löschen</legend>"; echo Select_StatDate($statcodeFEDAD, '', 'vindexdate'); echo _input(0, "func", "delfedacalc"); echo _input(0, "statcode", $statcodeFEDAD); echo _button("Delete"); echo "<p>Bist du sicher dass du alle FEDA Ranglisten Werte aller Spieler für ein bestimmtes Datum <b>löschen</b> willst ?? Anschliessend muss die Rangliste wieder berechnet werden sonst kann keine Aktuelle angezeigt werden.<br><i>Diese Funktion dient ausschliesslich zum Software-Debugen oder bei krassen Fehleingaben ...</i></p>"; echo "</fieldset></form>"; echo "</td></tr></table>"; ## SSI echo "<table width=100%><tr><td width=30% valign=top>Existing SSI Values<br>"; OpenTable(); echo _retEntryCounts($statcodeSSI); CloseTable(); echo "</td><td width=70% valign=top>"; echo "<form action=\"{$thisfile}\" method=\"post\">" . "<fieldset><legend>SSI Ranking Erzeugen</legend>"; echo Select_StatDate($statcodeSSI, '', 'vindexdate'); echo _input(0, "statcode", $statcodeSSI); echo _input(0, "func", "runssicalc"); echo _button("Create"); echo "<p>Nach dem Erzeugen der neuen Werte wird in allen Ranglisten automatisch immer auf den aktuellen Wert Bezug genommen</p>"; echo "</fieldset></form>"; echo "<form action=\"{$thisfile}\" method=\"post\">" . "<fieldset><legend>SSI Ranking Löschen</legend>"; echo Select_StatDate($statcodeSSI, '', 'vindexdate'); echo _input(0, "func", "delssicalc"); echo _input(0, "statcode", $statcodeSSI); echo _button("Delete"); echo "<p>Bist du sicher dass du alle SSI Werte aller Spieler ab einem bestimmten Datum <b>löschen</b> willst ?? Anschliessend müssen alle Stichtage wieder manuell berechnet werden, bzw <b>alle eingeschätzten</b> Spieler mit neuen Werten versehen werden.<br><i>Diese Funktion dient ausschliesslich zum Software-Debugen oder bei krassen Fehleingaben ...</i></p>"; echo "</fieldset></form>"; echo "</td></tr></table>"; }
function _showmatch($vmkey, $eventid) { #//select gid,ggameid,gmatchid,gvereinid,vname,gplayerid,pfname,plname from tblgame,tverein,tplayer where gvereinid=vid and gplayerid=pid # // display a typical matchcard # // adminmode = selectboxes and input fields # // usermode = readonly controls # // v1 bh 1.2006 initial version read only # // v2 using the matchkey and eventID # // v3 corrected gamewon counter to respect event - sgllegs/dbllegs # // v4 corrected bug in sending eventid to purge proc # // v4.1 changed code to use the input sub # // v4.2 added the vereins-access layer # // v43 complete rework: changed to codesharing with the lsdb backend , added POSTback buttons global $dbi, $event, $redpic, $greenpic, $LS_LEVEL; $editmode = 0; $thismatcheditmode = 0; $hometeam = 0; $awayteam = 0; # // v4.2 team-access-layer ... # we dont give full access in here just make sure the DETAIL links are in place ... and the MatchSave does work $thismatcheditmode = retAccessThisMatchKey($vmkey); if ($LS_LEVEL > 1 || $thismatcheditmode == 1) { $editmode = 1; # (can be 2,3,4) echo '<script type="text/javascript" src="code/MatchCode.js"></script>'; } echo setPageTitle('Resultat der Begegnung'); echo '<div id="maincontent">'; $precord = sql_query('select mid,mkey,mround,mdate,mlocation,mthome,mstatus,mcomment,T.id,T.tname' . ' FROM tblmatch M,tblmatchteam MT,tblteam T' . ' WHERE M.MKEY=MT.MTMKEY and MT.MTTID=T.ID and M.MKEY="' . $vmkey . '" order by MT.MTHOME desc', $dbi); $lastmid = 0; $matchdate = ''; while (list($mid, $mkey, $mround, $mdate, $mlocation, $mthome, $mstatus, $mcomment, $tid, $tname) = sql_fetch_row($precord, $dbi)) { if ($lastmid != $mid) { $hometeam = $tid; $hometeamName = $tname; } else { $awayteam = $tid; $awayteamName = $tname; } $lastmid = $mid; $matchdate = $mdate; $match_round = $mround; $match_comment = $mcomment; } /* * OUTPUT HEADER Section,make header box with 40:10:10:40 */ OpenTable('mhead'); echo '<tr><td colspan="4" align="center">' . $event['evname'] . 'Saison ' . $event['evyear'] . ' Runde ' . $match_round . '</td></tr><tr><td width="40%"><h3>' . $hometeamName . '</h3></td><td width="10%"></td>'; echo '<td width="10%"></td><td width="40%"><h3>' . $awayteamName . '</h3></td></tr>'; CloseTable(); echo _input(0, 'mkey', $vmkey) . _input(0, 'eid', $eventid) . '<br/>'; /* * SECTION Explanations, legend, and Quicklinks ... */ if ($editmode == 1) { // this is accessible by LigaAdmins + Vereinsaccounts ... OpenTable('mcontrol'); echo '<table><tr><td>-- Player unknown/missing -- </td><td>Dieser Eintrag ist zu wählen wenn das Spiel stattgefunden hat, der betreffende Spieler jedoch nicht in der Teamliste oder im System aufscheint.</td></tr>'; echo '<tr><td>-- #WO (nicht angetreten) --</td><td>Dieser Eintrag ist zu wählen wenn kein Spieler anwesend war (zB Unterzahl). Das Spiel wird dann automatisch mit zu null für den anwesenden Gegner gewertet. Sind beide Spieler nicht anwesend, so sind beide mit WO zu markieren, dieses Spiel wird dann überhaupt nicht gewertet.</td></tr>'; echo '<tr><td colspan="2"><table width="100%"><tr>' . '<td width="50%" align="center">'; echo renderWOMatchForm($eventid, $vmkey, $hometeam, $awayteam, $hometeamName); echo '</td><td width="50%" align="center"><form action="ls_system.php" method="post">'; echo renderWOMatchForm($eventid, $vmkey, $awayteam, $hometeam, $awayteamName); echo '</td></tr></table></td></tr></table>'; CloseTable(); echo '<br/>'; } /* * REPLACE in v5 by reading the event.config.blocks */ OpenTable('mbody'); # // =============================================== # // ========= SINGLES ====================== # // =============================================== $precord = sql_query('select gid,gmkey,gtype,gstatus,gpid,gppid,pfname,plname' . ' FROM tblgame G,tblgameplayer GP left join tplayer P on GP.gppid=P.pid' . ' WHERE G.gid=GP.gpgid and G.gmkey="' . $vmkey . '" and gtype=1 order by gid,gpid', $dbi); $lastgameid = 0; while (list($gid, $gmkey, $gtype, $gstatus, $gpid, $gppid, $pfname, $plname) = sql_fetch_row($precord, $dbi)) { if ($lastgameid != $gid) { $PH = array($gid, $gmkey, $gtype, $gstatus, $gpid, $gppid, $pfname, $plname, $hometeam); } else { $PA = array($gid, $gmkey, $gtype, $gstatus, $gpid, $gppid, $pfname, $plname, $awayteam); echo '<tr><td><div id="trg' . $gid . '">'; echo _LS_renderSingleGameRow($event, $editmode, $matchdate, $PH, $PA); echo '</div><div id="trged' . $gid . '"></div></td><td valign="top">'; if ($editmode == 1) { echo '<table cellpadding=0><tr><td>' . _imgButton('save', 'saveGame(' . $gid . ')') . '</td>'; echo '<td>' . _imgButton('edit', 'editGame(' . $gid . ')') . '</td>'; echo '<td>' . _imgButton('detail', 'getGame(' . $gid . ')') . '</td>' . '<td>' . _imgButton('cancel', 'resetGame(' . $gid . ')') . '</td></tr></table>'; } echo '</td></tr><tr><td align="right"><div id="msg' . $gid . '"></div></td></tr>'; // close the game Table + Game DIV and the Tablerow } $lastgameid = $gid; } // END WHILE singles ... # // =============================================== # // ========= PAIRS ======================== # // =============================================== # # $precord = sql_query('select G.gid,G.gmkey,G.gtype,G.gstatus,GP.gpid,GP.gppid,P.pfname,P.plname' . ' FROM tblgame G,tblgameplayer GP left JOIN tplayer P on GP.gppid=P.pid' . ' WHERE G.gid=GP.gpgid AND G.gmkey="' . $vmkey . '" and G.gtype=2 order by G.gid,GP.gpid', $dbi); $aAllGames = array(); while (list($gid, $gmkey, $gtype, $gstatus, $gpid, $gppid, $pfname, $plname) = sql_fetch_row($precord, $dbi)) { $aAllGames[] = array($gid, $gmkey, $gtype, $gstatus, $gpid, $gppid, $pfname, $plname); } /* * since we have pairs - we split Recordset into chunks of 4 */ $aAllGames = array_chunk($aAllGames, 4); foreach ($aAllGames as $aThisGame) { /* * for every chunk we have this should be a pairs game * assign the team ID and => lets render */ $aThisGame[0][8] = $hometeam; $aThisGame[1][8] = $hometeam; $aThisGame[2][8] = $awayteam; $aThisGame[3][8] = $awayteam; $gid = $aThisGame[0][0]; echo '<tr><td><div id="trg' . $gid . '">'; echo _LS_renderPairsGameRow($event, $editmode, $matchdate, $aThisGame); echo '</div><br/><div id="trged' . $gid . '"></div></td><td valign="top">'; if ($editmode == 1) { echo '<table><tr><td>' . _imgButton('save', 'saveGameD(' . $gid . ')') . '</td>'; #echo '<td>'._imgButton('edit','editGame('.$gid.')').'</td>'; echo '<td>' . _imgButton('detail', 'getGame(' . $gid . ')') . '</td>'; echo '<td>' . _imgButton('cancel', 'resetGame(' . $gid . ')') . '</td></tr></table>'; } echo '</td></tr><tr><td align="right"><div id="msg' . $gid . '"></div></td></tr>'; // close the game Table + Game DIV and the Tablerow } /* * Can we somehow have a summary ROW ??? with generated values ??? */ $setshometeam = 0; $setsawayteam = 0; $legshometeam = 0; $legsawayteam = 0; #echo '<tr><td align="center"><h3>'.$setshometeam.':'.$setsawayteam.'<br/>('.$legshometeam.'):('.$legsawayteam.')</h3></td></tr>'; CloseTable(); /** * =========== END of the Match Sheet Body =========== **/ /** * =========== START Admin Section =========== * a) create this match -->generates the empty tblgameplayer entries ... * b) save this match --> updates the tblmatchteam with results and sets status according to the userType */ echo '<br/>'; if ($LS_LEVEL > 1 || $editmode == 1) { // now this is for ADMINS only ..... OpenTable('madmin'); echo '<table><tr><td colspan=3>'; echo '<div id="mcomment">'; echo '<table><tr><td valign="top"><image src="images/detail.png" align="left">Speichere einen Kommentar</br>zu diesem Match (max 200)</td>'; echo '<td valign="top">' . _input(1, 'f23', $match_comment, 90) . '</td>'; echo '<td valign="top">' . _button('Speichern', 'savemcomment()') . '<div id="resp4"></div>'; echo '</td></tr></table></div></td></tr><tr>'; // render save section here in RW mode echo '<td valign="top" width="250px"><div id="msum">'; echo _LS_renderSaveMatchBox($LS_LEVEL, $setshometeam, $setsawayteam, $legshometeam, $legsawayteam, 0); echo '</div><div>' . _button('1. Addieren', 'calcResult()') . _button('2. Resultat Speichern', 'saveMatchA()') . '</div>'; echo '</td>'; if ($LS_LEVEL > 1) { // history button echo '<td valign="top" width="33%"><div id="mhist">'; echo '<image src="images/detail.png" align="left">Lade die Bearbeitungs Historie für dieses Match. Die Anzeige erfolgt unterhalb.<br/>' . _button('Show History', 'historymatch()'); echo '</div>'; echo '</td>'; } if ($LS_LEVEL > 2) { // delete button $STROUT = '<td valign="top" width="33%"><div id="mdel"><form action="ls_system.php" method="post">' . _input(0, 'func', 'purgematch') . _input(0, 'vmkey', $vmkey) . _input(0, 'eventid', $eventid) . '<table><tr><td><image src="images/stop.gif" align="left"><b>Achtung</b> Mit dem Button LÖSCHEN kannst du dieses Spiel neu anlegen, dabei werden sämtliche Spieldaten und Resultate <b>gelöscht</b>. Diese Aktion ist unwiederbringlich ...</td></tr>' . '<tr><td>' . _button('Löschen') . '</td></tr></table></form></div></td>'; echo $STROUT; } echo '</tr></table>'; CloseTable(); echo '<br/><div id="hmatch"></div>'; } /** * =========== END of the Match ADMIN Section =========== **/ echo '</div>'; # close maincontent-div }
case "incoming": // form pre rules $pre_rules = incoming_pre_rules_get(); // scan message for @username $select_match_username = _yesno('incoming_match_username', $pre_rules['match_username'], '', '', '', 'playsms-incoming-match-username', 'form-control'); // scan message for #groupcode $select_match_groupcode = _yesno('incoming_match_groupcode', $pre_rules['match_groupcode'], '', '', '', 'playsms-incoming-match-groupcode', 'form-control'); $form_pre_rules = array(array('id' => 'playsms-incoming-match-username', 'label' => _('Scan incoming SMS for @username'), 'input' => $select_match_username, 'help' => _('Copy the message to user inbox when incoming SMS contains @username')), array('id' => 'playsms-incoming-match-groupcode', 'label' => _('Scan incoming SMS for #groupcode'), 'input' => $select_match_groupcode, 'help' => _('Send SMS to groups with found group codes in the incoming SMS'))); // form post rules $post_rules = incoming_post_rules_get(); // sandbox match receiver number and sender ID $select_match_sender_id = _yesno('sandbox_match_sender_id', $post_rules['match_sender_id'], '', '', '', 'playsms-sandbox-match-sender-id', 'form-control'); // sandbox prefix unset($params); $params = array('size' => '100%', 'maxlength' => 30, 'placeholder' => _('Insert keyword')); $input_prefix = _input('text', 'sandbox_prefix', $post_rules['insert_prefix'], $params, 'playsms-sandbox-prefix', 'form-control'); // sandbox forward to users unset($params); $params = array('width' => '100%', 'placeholder' => _('Select users')); $select_users = themes_select_users_multi('uids', $post_rules['forward_to'], $params, 'playsms-route-to-users'); $form_post_rules = array(array('id' => 'playsms-sandbox-match-sender-id', 'label' => _('Route all sandbox SMS with matched sender ID'), 'input' => $select_match_sender_id, 'help' => _('Route to user inbox if receiver number matched with user sender ID')), array('id' => 'playsms-route-to-users', 'label' => _('Route all sandbox SMS to users'), 'input' => $select_users, 'help' => '')); // form settings $settings = incoming_settings_get(); // settings to leave copy on sandbox $settings_leave_copy_sandbox = _yesno('settings_leave_copy_sandbox', $settings['leave_copy_sandbox'], '', '', '', 'settings_leave_copy_sandbox', 'form-control'); // settings to match with all approved sender ID $settings_match_all_sender_id = _yesno('settings_match_all_sender_id', $settings['match_all_sender_id'], '', '', '', 'settings_match_all_sender_id', 'form-control'); $form_settings = array(array('id' => 'playsms-settings-leave-copy', 'label' => _('Leave a copy in sandbox SMS page'), 'input' => $settings_leave_copy_sandbox, 'help' => _('Leaving a copy in sandbox SMS page may be useful for audit or reviews')), array('id' => 'playsms-settings-match-all', 'label' => _('Match with all approved sender ID'), 'input' => $settings_match_all_sender_id, 'help' => _('Receiver number can be matched with default sender ID or with all approved sender ID'))); $tpl = array('name' => 'incoming', 'vars' => array('DIALOG_DISPLAY' => _dialog(), 'PAGE_TITLE' => _('Route incoming SMS'), 'ACTION_URL' => _u('index.php?app=main&inc=feature_incoming&op=incoming_save'), 'HTTP_PATH_THEMES' => _HTTP_PATH_THEMES_, 'HINT_PRE_RULES' => _hint(_('Rules applied before incoming SMS processed')), 'HINT_POST_RULES' => _hint(_('Rules applied after incoming SMS processed')), 'Pre rules' => _('Pre rules'), 'Post rules' => _('Post rules'), 'Settings' => _('Settings'), 'Save' => _('Save')), 'loops' => array('form_pre_rules' => $form_pre_rules, 'form_post_rules' => $form_post_rules, 'form_settings' => $form_settings), 'injects' => array('core_config')); _p(tpl_apply($tpl)); break;
function new_admin_liga() { global $dbi; if (isset($_REQUEST['name'])) { $name = strip_tags($_REQUEST['name']); } if (isset($_REQUEST['uname'])) { $uname = strip_tags($_REQUEST['uname']); } if (isset($_REQUEST['liganame'])) { $liganame = strip_tags($_REQUEST['liganame']); } if (isset($_REQUEST['accesstype'])) { $accesstype = strip_tags($_REQUEST['accesstype']); } if (isset($_REQUEST['active'])) { $active = strip_tags($_REQUEST['active']); } if (isset($_REQUEST['comment'])) { $comment = strip_tags($_REQUEST['comment']); } if (isset($_REQUEST['aid']) && !empty($_REQUEST['aid'])) { $aid = $_REQUEST['aid']; $sql = 'SELECT a.access_id, a.aevactive, a.auid_id, a.cre_date, a.aevcode_id, a.acomment FROM tbladminliga a WHERE id = ' . $aid; $admin_liga_result = sql_query($sql, $dbi); list($accesstype, $aevactive, $uname, $cre_date, $liganame, $comment) = sql_fetch_row($admin_liga_result, $dbi); } $user_query_result = sql_query('SELECT u.id, u.uname FROM tuser u ORDER BY uname', $dbi); $liga_query_result = sql_query('SELECT e.id, e.evname, e.evyear FROM tblevent e ORDER BY evname', $dbi); $accs_query_result = sql_query('SELECT a.access_id, a.acdesc FROM tligaaccesscode a', $dbi); $ret = '<form action="admin_division_rights_to_users.php?op=new_liga_user_right_creation&aid=' . $aid . '" method="post">'; $ret = $ret . '<table><tr><td>User name:</td><td>'; $ret = $ret . '<select id="uname" name="uname">'; while (list($id, $name) = sql_fetch_row($user_query_result, $dbi)) { $selected = strcmp($uname, $id) == 0 ? 'selected="selected"' : ''; $ret = $ret . '<option ' . $selected . ' value="' . $id . '">' . $name . '</option>'; } $ret = $ret . '</select></td></tr><tr><td>League:</td><td>'; $ret = $ret . '<select id="liganame" name="liganame">'; while (list($id, $name, $evyear) = sql_fetch_row($liga_query_result, $dbi)) { $selected = strcmp($liganame, $id) == 0 ? 'selected="selected"' : ''; $ret = $ret . '<option ' . $selected . ' value="' . $id . '">' . $name . ' ' . $evyear . '</option>'; } $ret = $ret . '</select></td></tr><tr><td>Access type:</td><td>'; $ret = $ret . '<select id="accesstype" name="accesstype">'; while (list($id, $name) = sql_fetch_row($accs_query_result, $dbi)) { $selected = strcmp($accesstype, $id) == 0 ? 'selected="selected"' : ''; $ret = $ret . '<option ' . $selected . ' value="' . $id . '">' . $name . '</option>'; } $ret = $ret . '</select></td></tr><tr><td>Active:</td><td>'; $ret = $ret . '<select id="active" name="active">'; $ret = $ret . '<option value="1" ' . ($aevactive == 1 ? 'selected' : '') . '>Yes</option>'; $ret = $ret . '<option value="0" ' . ($aevactive == 0 ? 'selected' : '') . '>No</option></select>'; $ret = $ret . '</td></tr><tr><td>Comment:</td><td>'; $ret = $ret . _input(1, 'comment', $comment, 50, 50); $ret = $ret . '</td></tr><tr><td>Create date:</td><td>'; $ret = $ret . (empty($aid) ? date('l jS \\of F Y h:i:s A') : $cre_date); $ret = $ret . '</td></tr><tr><td></td><td>'; $ret = $ret . _button(empty($aid) ? 'Create right' : 'Edit right', '', 'admin_division_rights_to_users.php?op=new_liga_user_right_creation'); $ret = $ret . '</td></tr></table></form>'; return $ret; }
/** * purpose: fetch a complete match -> render as schedule ROW+active input boxes * params: match_key * returns: HTML TABLE * security: none -> public result view .... */ function _getMatchRow($match_key) { global $dbi; $RS = DB_listMatches($dbi, 1, 0, 0, '', '', '', '', 'logic', $match_key); if (!sizeof($RS) == 1) { die_red('E119:Match:Match not found'); } /* * structure = array 5 -> 13, identical to schedule Page,$R[2]= match ID */ foreach ($RS as $R) { $ROW = '<tr><td width="80px">' . $R[5] . '</td><td width="140px">' . $R[6] . '</td><td width="120px">' . $R[7] . '</td><td>' . _input(0, 'mkey' . $R[2], $match_key) . _input(1, 'sh' . $R[2], $R[8], 3, 2) . '</td><td>' . _input(1, 'lh' . $R[2], $R[9], 3, 2) . '</td>' . '<td>:</td><td>' . _input(1, 'sa' . $R[2], $R[10], 3, 2) . '</td><td>' . _input(1, 'la' . $R[2], $R[11], 3, 2) . '</td><td width="120px">' . $R[12] . '</td><td>' . matchStatusToImage($R[13]) . '</td></tr>'; } return '<table>' . $ROW . '</table>'; }
<?php /* * this is always a read only form just for information ... * fields must be present since the are read by js-code */ /* $OUT ='<p align="right"><table width="50%" cellpadding="2" cellspacing="2">'; $OUT=$OUT.'<tr><td valign=\'top\' class=\'bluebox\'>Request / Type</td>'; $OUT=$OUT.'<td>'._input(2,'id',$obj['wfrequest_id'],5,5) ._input(2,'object',$obj['wfobject'],15,15).'</td>'; $OUT=$OUT.'<td valign=\'top\' class=\'bluebox\'>RKey / Verein</td>'; $OUT=$OUT.'<td>'._input(2,'rkey',$obj['rkey'],20,20)._input(2,'vid',$obj['verein_id'],5,5).'</td></tr>'; $OUT=$OUT.'</table></p>'; */ $OUT = '<p style="color:#aaaaaa;border: 1pt solid #cccccc;background-color: #eeeeee;text-align: right">'; $OUT = $OUT . 'R:' . $obj['wfrequest_id'] . '-T:' . $obj['wfobject'] . '-K:' . $obj['rkey'] . '-V' . $obj['verein_id']; $OUT = $OUT . _input(0, 'id', $obj['wfrequest_id'], 5, 5) . _input(0, 'object', $obj['wfobject'], 15, 15) . _input(0, 'rkey', $obj['rkey'], 10, 10) . _input(0, 'vid', $obj['verein_id'], 5, 5); $OUT = $OUT . '</p>'; return $OUT;
<?php $OUT = "<table width=\"100%\" cellpadding=\"2\" cellspacing=\"2\">" . "<tr><td valign=\"top\" class=\"bluebox\" width=\"150\">Melde ID</td>" . "<td width=\"200\">" . _input(1, 'wfteamid', $obj['wfteam_id'], 5, 5) . "</td>" . "<td></td>" . "<td></td></tr>" . "<tr><td valign=\"top\" class=\"bluebox\">Liga *</td>" . "<td>" . Select_WFEvent('wfeventid', $obj['wfevent_id'], 1, '') . "</td>" . "<td valign=\"top\" class=\"bluebox\">Teamname *</td>" . "<td>" . _input(1, 'tname', $obj['teamname'], 30, 50) . "</td></tr>" . "<tr><td valign=\"top\" class=\"bluebox\">Verein</td>" . "<td>" . _input(2, 'vereinid', $obj['verein_id'], 5, 5) . "</td>" . "<td valign=\"top\" class=\"bluebox\">Heimlokal *</td>" . "<td>" . Select_Location('locid', '', $obj['location_id']) . "</td></tr>" . "<tr>" . "<td valign=\"top\" class=\"bluebox\">Kommentar</td>" . "<td colspan=3>" . _input(1, 'tcomment', $obj['tcomment'], 60, 60) . "</td></tr>"; return $OUT . "</table>";
<?php $OUT = 'Key-1: ' . $aP['pfkey1'] . ' / Key-2: ' . $aP['pfkey2']; $OUT = $OUT . "<table width=\"100%\" cellpadding=\"2\" cellspacing=\"2\">" . "<tr><td valign=\"top\" class=\"bluebox\" width=\"150\">System ID</td>" . "<td width=\"200\">" . $aP['pid'] . '</td>' . "<td valign=\"top\" class=\"bluebox\">Aktiv (1/0)</td></td>" . '<td><input type=text size=3 maxlength=1 name=\'vactive\' value=' . $aP['pactive'] . '></td></tr>' . "<tr><td valign=\"top\" class=\"bluebox\">Vorname *</td>" . "<td>" . _input(1, 'vfname', $aP['pfname'], 30, 180) . '</td>' . "<td valign=\"top\" class=\"bluebox\">Nachname *</td>" . "<td>" . _input(1, 'vlname', $aP['plname'], 30, 180) . '</td></tr>' . "<tr><td valign=\"top\" class=\"bluebox\">Geb. Datum * (yyyy-mm-dd)</td>" . "<td>" . _input(1, 'vbirthdate', $aP['pbirthdate'], 30, 20) . '</td>' . "<td valign=\"top\" class=\"bluebox\" width=\"150\">Geschlecht (H/D/J)</td>" . "<td width=\"200\">" . Select_Gender('vgender', $aP['pgender']) . '</td></tr>' . "<tr><td colspan=\"4\"><hr></td></tr>" . "<tr><td valign=\"top\" class=\"bluebox\">Nationalität</td>" . "<td>" . _input(1, 'vnation', $aP['pnationality'], 30, 30) . '</td>' . "<td valign=\"top\" class=\"bluebox\">Stadt</td>" . "<td>" . _input(1, 'vtown', $aP['ptown'], 30, 180) . '</td></tr>' . "<tr><td valign=\"top\" class=\"bluebox\">PLZ</td>" . "<td>" . _input(1, 'vplz', $aP['pplz'], 30, 20) . '</td>' . "<td valign=\"top\" class=\"bluebox\">Strasse</td>" . "<td>" . _input(1, 'vstreet', $aP['pstreet'], 30, 255) . '</td></tr>' . "<tr><td valign=\"top\" class=\"bluebox\">Tel Privat</td>" . "<td>" . _input(1, 'vtel1', $aP['ptel1'], 30, 20) . '</td>' . "<td valign=\"top\" class=\"bluebox\">Tel Mobil</td>" . "<td>" . _input(1, 'vtel2', $aP['ptel2'], 30, 20) . '</td></tr>' . "<tr><td valign=\"top\" class=\"bluebox\">E-mail</td>" . "<td>" . _input(1, 'vemail', $aP['pemail'], 30, 40) . '</td>' . "<td valign=\"top\"></td>" . "<td></td></tr>" . "<tr><td valign=\"top\" class=\"bluebox\">Kommentar</td>" . "<td>" . _input(1, "vcomment", $aP['pcomment'], 30, 100) . '</td>' . "<td valign=\"top\"></td>" . '<td></td></tr>' . "<tr><td colspan=2>Last modification by: " . $aP['pupd_user'] . " on " . $aP['pupd_date'] . '</td>' . "<td colspan=2 align=\"right\">" . _button('Spieler Daten Speichern') . '</td></tr>'; return $OUT . '</table>';
<?php $OUT = "<table border=\"0\">" . "<tr><td>e-mail für system nachrichten:</td><td>" . _input(1, "newemail", $useremail, 20, 50) . "</td></tr>" . "<tr><td>Neues Passwort:</td><td>" . _input(1, "newpass1") . "</td></tr>" . "<tr><td>Neues Passwort (Bestätigung):</td><td>" . _input(1, "newpass2") . "</td></tr>" . "<tr><td>" . _input(0, "op", "chgpwd") . "</td><td>" . "<input type=\"submit\" value=\"Ändern\"></td></tr>"; return $OUT . "</table>";
function save_team_leader($id_employee = 0) { $employee = $this->model_basic->get_data($this->tbl_employee, array('where_array' => array('id' => $id_employee)))->row(); $data = _input($this->input->post()); $data['id_user'] = $employee->id; $data['id_zona'] = $employee->id_zona; $data['id_area'] = $employee->id_area; $data['tanggal'] = date('d F Y'); $data['jam'] = date('H:i:s'); $data['jabatan'] = $employee->jabatan; $data['create_date'] = date('Y-m-d H:i:s'); $save = $this->model_basic->insert_data($this->tbl_team_leader, $data); if ($save) { $rs['status'] = 'ok'; $rs['id'] = $save; } else { $rs['status'] = 'error'; } $this->returnJson($rs); }
function new_admin_verband() { global $dbi, $usertoken; if (isset($_REQUEST['uname'])) { $uname = strip_tags($_REQUEST['uname']); } if (isset($_REQUEST['verbandname'])) { $verbandname = strip_tags($_REQUEST['verbandname']); } if (isset($_REQUEST['accesstype'])) { $accesstype = strip_tags($_REQUEST['accesstype']); } if (isset($_REQUEST['active'])) { $active = strip_tags($_REQUEST['active']); } if (isset($_REQUEST['comment'])) { $comment = strip_tags($_REQUEST['comment']); } if (isset($_REQUEST['vid']) && !empty($_REQUEST['vid'])) { $vid = $_REQUEST['vid']; $sql = 'SELECT rm.reg_id, rm.tactive, rm.user_id, rm.cre_date, rm.cre_user, rm.verband_id, rm.comment FROM tregistermap rm WHERE rm.regmap_id = ' . $vid; $admin_verband_result = sql_query($sql, $dbi); list($accesstype, $aevactive, $uname, $cre_date, $cre_user, $verbandname, $comment) = sql_fetch_row($admin_verband_result, $dbi); } $user_query_result = sql_query('SELECT u.id, u.uname FROM tuser u ORDER BY u.uname', $dbi); $verb_query_result = sql_query('SELECT v.id, v.vname FROM tverband v ORDER BY v.vname', $dbi); $accs_query_result = sql_query('SELECT rac.id, rac.regdesc FROM tregisteraccesscode rac', $dbi); $ret = '<form action="admin_verband_rights_to_users.php?op=new_verband_user_right_creation&vid=' . $vid . '" method="post">'; $ret = $ret . '<table><tr><td>User name:</td><td>'; $ret = $ret . '<select id="uname" name="uname">'; while (list($id, $name) = sql_fetch_row($user_query_result, $dbi)) { $selected = strcmp($uname, $id) == 0 ? 'selected="selected"' : ''; $ret = $ret . '<option ' . $selected . ' value="' . $id . '">' . $name . '</option>'; } $ret = $ret . '</select></td></tr><tr><td>Verband:</td><td>'; $ret = $ret . '<select id="verbandname" name="verbandname">'; while (list($id, $name) = sql_fetch_row($verb_query_result, $dbi)) { $selected = strcmp($verbandname, $id) == 0 ? 'selected="selected"' : ''; $ret = $ret . '<option ' . $selected . ' value="' . $id . '">' . $name . ' ' . $evyear . '</option>'; } $ret = $ret . '</select></td></tr><tr><td>Access type:</td><td>'; $ret = $ret . '<select id="accesstype" name="accesstype">'; while (list($id, $name) = sql_fetch_row($accs_query_result, $dbi)) { $selected = strcmp($accesstype, $id) == 0 ? 'selected="selected"' : ''; $ret = $ret . '<option ' . $selected . ' value="' . $id . '">' . $name . '</option>'; } $ret = $ret . '</select></td></tr><tr><td>Active:</td><td>'; $ret = $ret . '<select id="active" name="active">'; $ret = $ret . '<option value="1" ' . ($active == 1 ? 'selected' : '') . '>Yes</option>'; $ret = $ret . '<option value="0" ' . ($active == 0 ? 'selected' : '') . '>No</option></select>'; $ret = $ret . '</td></tr><tr><td>Comment:</td><td>'; $ret = $ret . _input(1, 'comment', $comment, 50, 50); $ret = $ret . '</td></tr><tr><td>Create date:</td><td>'; $ret = $ret . (empty($vid) ? date('l jS \\of F Y h:i:s A') : $cre_date); $ret = $ret . '</td></tr>'; $ret = $ret . '<tr><td>Created by:</td><td>'; $ret = $ret . (empty($vid) ? $usertoken['uname'] : $cre_user); $ret = $ret . '</td></tr>'; $ret = $ret . '<tr><td></td><td>'; $ret = $ret . _button(empty($vid) ? 'Create right' : 'Edit right', '', 'admin_division_rights_to_users.php?op=new_liga_user_right_creation'); $ret = $ret . '</td></tr></table></form>'; return $ret; }
function _LS_renderSaveMatchBox($LS_LEVEL, $setshometeam, $setsawayteam, $legshometeam, $legsawayteam, $match_status) { /* * this renders a SUMMARY form to the end of a matchsheet. * either in full admin mode with SAVE or in Submit mode for the MsgSystem * param: $LS_LEVEL = 0,1,2,3 => we either show the status selector or not ... */ $STROUT = '<table><tr>' . '<td><image src="images/save.png" align="left">Mit <b>Addieren</b> wird das Matchresultat aus den gespeicherten Spielen ermittelt. Mit <b>Speichern</b> wird dieses Resultat (Sets/Legs) im Spielplan und für die Tabelle freigegeben. Der entsprechende Eintrag wird unterhalb eingeblendet.</td></tr>' . '<tr><td align="center">Heim / Auswärts</td></tr>' . '<tr><td align="center">Sets:' . _input(1, "sh", $setshometeam, 4, 2) . _input(1, "sa", $setsawayteam, 4, 2) . '</td></tr><tr><td align="center">Legs:' . _input(1, "lh", $legshometeam, 4, 2) . _input(1, "la", $legsawayteam, 4, 2) . '</td></tr>'; if ($LS_LEVEL > 1) { $STROUT = $STROUT . '<tr><td align="center">' . Select_MatchStatus('mstatus', $match_status, '', 0) . '</td></tr>'; } $STROUT = $STROUT . '</table>'; return $STROUT; }
<?php $OUT = _input(0, 'eventid', $eventid); $OUT = $OUT . '<table>'; $OUT = $OUT . '<tr><td>Runde: </td><td>' . Select_EventRound('rnum', 0, $eventid) . '</td></tr>'; $OUT = $OUT . '<tr><td>Location: </td><td>' . Select_Location('mlocation', '', $mlocation) . '</td></tr>'; $OUT = $OUT . '<tr><td>Datum: (YYYY-MM-DD)</td><td>' . _input(1, 'vdate', '2009-12-31', 10, 10) . '</td></tr>' . '<tr><td>Heimmannschaft</td><td>Gastmannschaft</td></tr>' . '<tr><td>' . Select_Team('hteam', '', 0, $eventid) . '</td><td>' . Select_Team('ateam', '', 0, $eventid) . '</td></tr>'; //$OUT=$OUT.'<tr><td>Punkte / Sätze / Legs</td><td>Punkte / Sätze / Legs</td></tr>' // .'<tr><td>'._input(1,"vpoints[]","",4,4)._input(1,"vsets[]","",4,4)._input(1,"vlegs[]","",4,4)."</td>" // .'<td>'._input(1,"vpoints[]","",4,4)._input(1,"vsets[]","",4,4)._input(1,"vlegs[]","",4,4).'</td></tr>'; $OUT = $OUT . '<tr><td></td></tr>'; $OUT = $OUT . '<tr><td></td><td>' . _button('Erstellen') . '</td></tr>'; return $OUT = $OUT . "</table>";
/** * purpose: show form as a testbed for the FEDA Index calculation * params: all params for FEDACalc * returns: PAGE View */ function _showFEDACalculationForm($eventid, $vdistance = 501, $vroundscore = 0, $vrest = 0, $vroundcheck = 0, $fedaIDX = '') { echo _MakeStatPageHeader($eventid, 0); echo '<h3>FEDA Ranglisten Berechnung</h3>'; echo '<p>Setze deine Werte für ein Leg ein - drücke die Schaltfläche und du bekommst den berechneten FEDA Index für dieses eine Leg angezeigt.<br>Ein Wert von -1 bedeutet dass für dieses Leg kein ScoreIndex/CheckIndex berechnet wird. </p>'; OpenTable(); echo "<form action=\"ls_stats.php?func=calcfedaindex&eventid={$eventid}\" method=\"post\">" . "<tr><td width=25%>Distanz</td><td width=25%>Scorerunde < 159</td><td width=25%>Rest</td><td width=25%>Checkrunde</td></tr>" . "<tr><td><select name=\"vdistance\" size=1><option>501</option></select></td><td>" . _input(1, "vroundscore", $vroundscore, 3, 3) . "</td><td>" . _input(1, "vrest", $vrest, 3, 3) . "</td><td>" . _input(1, "vroundcheck", $vroundcheck, 3, 3) . "</td></tr>" . "<tr><td>" . _button("Rechnen") . "</td></tr>" . "</form>"; echo "<tr><td colspan=2><b>Scorezahl</b></td><td colspan=2><b>Checkzahl</b></td></tr>"; list($a, $b, $c) = split(":", $fedaIDX); echo "<tr><td colspan=2><b>{$a}</b></td><td colspan=2><b>{$b}</b></td></tr>"; CloseTable(); }
/** * purpose: display process action buttons according to object and wfstate of object * params: $item (player,lineup,team),$processstate(1..6) * returns: HTML TABLE with lsdb_buttons and comment field */ function _show_process_buttons($item, &$obj) { global $usertoken; #debug($usertoken); $adm = 0; $processstate = $obj['wfstate_id']; switch ($usertoken['usertype_id']) { case 4: #TODO replace by Access Lookup ... ==> Message Group Membership !! #TODO is member of ligaadmin level 3 ??? break; case 5: case 6: $adm = $usertoken['id']; break; default: $adm = 0; } // layout = table with max of 4 cols, 1-row is requestcomment 2-row is button 3-row is explain $RS = array(); #$r1=array(); $r2 = array(); $r3 = array(); switch ($processstate) { case 1: case 4: $r2[] = _button('Save', 'save' . $item . '()'); $r2[] = _button('Submit', 'submit' . $item . '()'); $r3[] = 'Speichert das Formular <b>ohne</b> es abzuschicken, dieses Formular kann später weiter bearbeitet werden.'; $r3[] = 'Schliesst die Bearbeitung ab und <b>sendet</b> den Antrag an die Liga Verwaltung, der Antrag liegt zur Begutachtung vor und kann erst bei einer Ablehnung wieder bearbeitet werden.'; $r2[] = _button('Delete', 'deleterequest()'); $r3[] = 'Diesen Antrag <b>löschen</b> und aus dem System entfernen.'; break; case 2: if ($adm == 0) { $r2[] = _button('Save', 'save' . $item . '()'); $r3[] = 'Speichert das Formular mit <b>aktualisierten</b> Daten.'; } else { $r2[] = _button('Accept', 'accept' . $item . '()'); $r3[] = 'Den Antrag in dieser Form <b>akzeptieren</b>, alle Daten vorhanden'; $r2[] = _button('Reject', 'reject' . $item . '()'); $r3[] = 'Antrag ist fehlerhat - <b>abweisen</b> und dem Benutzer wieder als zurückgewiesen freischalten.'; } break; case 3: if ($adm > 0) { $r2[] = _button('Process', 'process' . $item . '()'); $r3[] = 'Aktion durchführen und in das Ligasystem <b>übernehmen</b> - Spieler anlegen bzw. Team anlegen usw ...'; $r2[] = _button('Reject', 'reject' . $item . '()'); $r3[] = 'Antrag ist fehlerhat - <b>abweisen</b> und dem Benutzer wieder als zurückgewiesen freischalten.'; } break; case 5: // If the request is processed, user controls shows invoice ... if ($adm > 0) { $r2[] = _button('Close', 'close' . $item . '()'); $r3[] = 'Bearbeitung dieses Antrages beenden und als geschlossen ablegen.'; $r2[] = _button('Delete', 'deleterequest()'); $r3[] = 'Diesen Antrag <b>löschen</b> und aus dem System entfernen.'; } else { $r2[] = _button('Rechnung', 'invoice' . $item . '()'); $r3[] = 'Für diesen Antrag eine Rechnung erstellen.'; } break; case 6: if ($adm > 0) { $r2[] = _button('Open', 'reject' . $item . '()'); $r3[] = 'Antrag erneut öffnen und dem Benutzer wieder als zurückgewiesen freischalten.'; $r2[] = _button('Archive', 'archive' . $item . '()'); $r3[] = 'Diesen Antrag archivieren.'; $r2[] = _button('Delete', 'deleterequest()'); $r3[] = 'Diesen Antrag <b>löschen</b> und aus dem System entfernen.'; } else { $r2[] = _button('Rechnung', 'invoice' . $item . '()'); $r3[] = 'Für diesen Antrag eine Rechnung erstellen.'; } break; } if ($adm > 0) { $r2[] = _button('History', 'historywf()'); $r3[] = 'Zeige die Bearbeitung dieses Antrages in einem neuen Fenster.'; } $RS[] = $r2; $RS[] = $r3; // OUTPUT // $OUT = '<div id="pmsg"></div><table><tr><td valign=\'top\' class=\'bluebox\'>Kommentar</td>'; $OUT = $OUT . '<td>' . _input(1, 'rcomment', $obj['reqcomment'], 80, 100) . '</td></table>'; return $OUT = $OUT . '<table>' . RecordsetToDataTable($RS, array(0, 1, 2, 3)) . '</table>'; }
<?php /** * purpose: email formular (from / to / msg) * params: $obj=array() * returns: html formular */ $OUT = "<table border=\"0\">" . "<tr><td></td><td>" . _input(0, "op", "send") . "</td></tr>" . "<tr><td>Sender:</td><td>" . _input(1, "mailfrom", $obj['mailfrom'], 50, 50) . "</td></tr>" . "<tr><td>Recipient:</td><td>" . Select_MessageGroup('mailgrp', $obj['mailgrp']) . "</td></tr>" . "<tr><td>Message:</td><td>" . _input(3, "mailmsg", $obj['mailmsg'], 50) . "</td></tr>" . "<tr><td>Sys URL:</td><td>" . _input(1, "sysurl", $obj['sysurl'], 50, 50) . "</td></tr>"; return $OUT . "</table>";
<?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>';
<?php $OUT = ""; $OUT = "<table cellspacing=2>"; $OUT = $OUT . "<tr><td class=\"bluebox\">Player</td><td id=\"select_player\" name=\"select_player\">" . Select_Player('spid', 0) . "</td></tr>"; $OUT = $OUT . "<tr><td class=\"bluebox\">Statistik Gruppe</td><td id=\"select_statcode\" name=\"select_statcode\">" . Select_StatGroup('scode', 3, 'getdates(this)') . "</td></tr>"; $OUT = $OUT . "<tr><td class=\"bluebox\">Stichtag</td><td id=\"select_statdate\" name=\"select_statdate\">" . Select_StatDate(0, '', 'sdate') . "</td></tr>"; $OUT = $OUT . "<tr><td class=\"bluebox\">Value</td><td id=\"input_statval\" name=\"input_statval\">" . _input(1, 'sval', '', 8, 8) . "</td></tr>"; $OUT = $OUT . "<tr><td class=\"bluebox\">Anzahl Legs</td><td id=\"input_statlegs\" name=\"input_statlegs\">" . _input(1, 'slegs', '', 4, 4) . "</td></tr>"; $OUT = $OUT . "<tr><td class=\"bluebox\">Anzahl Sets</td><td id=\"input_statsets\" name=\"input_statsets\">" . _input(1, 'ssets', '', 4, 4) . "</td></tr>"; $OUT = $OUT . "</table>"; return $OUT;
function LS_uploaddialog($caption, $action, $btncaption, $add_element = '') { $OUT = "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"POST\" ACTION=\"{$action}\">" . '<fieldset><legend>' . $caption . '</legend><table><tr>' . '<td>' . _input(4, 'uploadfile', '', 40, 3) . '</td><td>' . $add_element . '</td>' . '<td>' . _button($btncaption) . '</td></tr></table></fieldset></FORM>'; return $OUT; }
<?php $OUT = '<table width=\'100%\' cellpadding=\'2\' cellspacing=\'2\'>' . '<tr><td valign=\'top\' class=\'bluebox\' width=\'150\'>Melde ID</td>' . '<td width=\'200\'>' . _input(1, 'wfmid', $obj['wfmessage_id'], 5, 5) . '</td>' . '<td valign=\'top\' class=\'bluebox\' width=\'150\'>Empfänger</td>' . '<td>' . Select_MessageGroup('mgroup', $obj['mgroup_id'], 1, $obj['verband_id']) . '</td></tr>' . '<tr>' . '<td valign=\'top\' class=\'bluebox\'>Nachricht</td>' . '<td colspan=3>' . _input(3, 'wfcomment', $obj['wfcomment'], 60, 255) . '</td></tr>'; return $OUT . '</table>';
function user_form() { global $dbi, $usertoken; if (isset($_REQUEST['name'])) { $name = strip_tags($_REQUEST['name']); } if (isset($_REQUEST['uname'])) { $uname = strip_tags($_REQUEST['uname']); } if (isset($_REQUEST['pass'])) { $pass = strip_tags($_REQUEST['pass']); } if (isset($_REQUEST['email'])) { $email = strip_tags($_REQUEST['email']); } if (isset($_REQUEST['utype'])) { $utype = strip_tags($_REQUEST['utype']); } if (isset($_REQUEST['organisation'])) { $organisation = strip_tags($_REQUEST['organisation']); } if (isset($_REQUEST['location'])) { $location = strip_tags($_REQUEST['location']); } if (isset($_REQUEST['uactive'])) { $uactive = strip_tags($_REQUEST['uactive']); } $name = ''; $uname = ''; $pass = ''; $useraclevel = ''; $utype = ''; $email = ''; $organisation = ''; $theme = ''; $uactive = ''; $failcount = ''; $location_id = ''; $player_id = ''; $uid = ''; if (isset($_REQUEST['uid']) && !empty($_REQUEST['uid'])) { $uid = $_REQUEST['uid']; $user_result = sql_query('SELECT fullname, uname, pass, useraclevel, usertype_id, email, verein_id, theme, uactive, failcount, location_id, player_id FROM tuser WHERE id = ' . $uid, $dbi); list($name, $uname, $pass, $useraclevel, $utype, $email, $organisation, $theme, $uactive, $failcount, $location_id, $player_id) = sql_fetch_row($user_result, $dbi); $uid = '&uid=' . $uid; } $utype_query_result = sql_query('SELECT t.id, t.typename FROM ttypeuser t WHERE id <= ' . $usertoken["usertype_id"] . ' ORDER BY id', $dbi); $organ_query_result = sql_query('SELECT v.vid, v.vname FROM tverein v ORDER BY vname', $dbi); $locat_query_result = sql_query('SELECT l.id, l.lname FROM tbllocation l ORDER BY lname', $dbi); $playr_query_result = sql_query('SELECT p.pid, p.pfname, p.plname FROM tplayer p ORDER BY p.plname', $dbi); $ret = '<form action="admin_system_users.php?op=new_user_creation' . $uid . '" method="post">'; $ret = $ret . '<table><tr><td>Surname and name:</td><td>'; $ret = $ret . _input(1, 'name', $name, 50, 50); $ret = $ret . '</td></tr><tr><td>User name:</td><td>'; $ret = $ret . _input(1, 'uname', $uname, 50, 50); $ret = $ret . '</td></tr><tr><td>Password:</td><td>'; $ret = $ret . '<input type="text" size="50" id="pass" name="pass" value="' . $pass . '" ' . (empty($uid) ? '' : 'disabled') . ' />'; $ret = $ret . '<input type="hidden" size="50" id="passHidden" name="passHidden" />'; $ret = $ret . '<input type="hidden" size="50" value="' . $useraclevel . '" name="aclevel" />'; $ret = $ret . '<input type="checkbox" onclick="enablePasswordEdit(this);" />'; $ret = $ret . 'Click to unlock password editintg.'; $ret = $ret . '</td></tr><tr><td>Email:</td><td>'; $ret = $ret . _input(1, 'email', $email, 50, 50); $ret = $ret . '</td></tr><tr><td>User type:</td><td>'; $ret = $ret . '<select id="utype" name="utype" onchange="userTypeChange(this.options[this.selectedIndex].value);">'; while (list($id, $name) = sql_fetch_row($utype_query_result, $dbi)) { $selected = strcmp($utype, $id) == 0 ? 'selected="selected"' : ''; $ret = $ret . '<option ' . $selected . ' value="' . $id . '">' . $name . '</option>'; } $ret = $ret . '</select>'; $ret = $ret . '</td></tr><tr><td id="playeridlbl">Player data connected:</td><td>'; $ret = $ret . '<select id="playerid" name="playerid">'; while (list($id, $fname, $lname) = sql_fetch_row($playr_query_result, $dbi)) { $selected = strcmp($player_id, $id) == 0 ? 'selected="selected"' : ''; $ret = $ret . '<option ' . $selected . ' value="' . $id . '">' . $lname . ' ' . $fname . '</option>'; } $ret = $ret . '</select>'; $ret = $ret . '</td></tr><tr><td>Verein:</td><td>'; $ret = $ret . '<select id="organisation" name="organisation">'; while (list($id, $name) = sql_fetch_row($organ_query_result, $dbi)) { $selected = strcmp($organisation, $id) == 0 ? 'selected="selected"' : ''; $ret = $ret . '<option ' . $selected . ' value="' . $id . '">' . $name . '</option>'; } $ret = $ret . '</select>'; $ret = $ret . '</td></tr><tr><td>Location:</td><td>'; $ret = $ret . '<select id="location" name="location">'; while (list($id, $name) = sql_fetch_row($locat_query_result, $dbi)) { $selected = strcmp($location_id, $id) == 0 ? 'selected="selected"' : ''; $ret = $ret . '<option ' . $selected . ' value="' . $id . '">' . $name . '</option>'; } $ret = $ret . '</select>'; $ret = $ret . '</td></tr>'; $ret = $ret . '<tr><td>Active:</td><td><select id="uactive" name="uactive">'; $ret = $ret . '<option value="1" ' . ($uactive == '1' ? 'selected="selected"' : '') . '>Active</option>'; $ret = $ret . '<option value="0" ' . ($uactive == '0' ? 'selected="selected"' : '') . '>Inactive</option>'; $ret = $ret . '</select></td></tr>'; $ret = $ret . '<tr><td></td><td>' . _button(!empty($_REQUEST['uid']) ? 'Update user' : 'Create user'); $ret = $ret . '</td></tr></table>'; $ret = $ret . '</form><script> $("#playerid").hide(); $("#playeridlbl").hide(); </script>'; #hide player data chooser until player user type is choosen return $ret; }
/** * return a horizontal leg row according to the values passed and the event-config * this is a legrow for individual leg data * currently SINGLE only .. **/ function _LS_legrow($objEvent, $data = array()) { // data structure from api_rs: // G.gid,G.gtype,GP.gpid,GP.gpsetwon,GP.gplegswon,GP.gptid,P.pid,P.pfname,P.plname // [L.lid,L.lstart,L.ldarts,(501-L.lscore),L.lfinish,L.lhighscore] // [L.lid,L.lstart,L.lroundscore,L.lroundcheck,(501-L.lscore),L.lfinish,L.lhighscore] #if (sizeof($data)<10){$idname="RES";} else {$idname="L".$data[8];} if (sizeof($data) > 9) { $legID = $data[9]; } else { $legID = 0; } $strret = '<tr id="' . $legID . '"><td>' . _imgButton('remove', 'remLeg(' . $legID . ',' . $data[0] . ')') . '</td>'; if ($objEvent['evsgldarts'] == 1) { if ($objEvent['evsglstart'] == 1) { $strret = $strret . '<td>' . _checkbox('B', $data[10]) . '</td>'; } if ($objEvent['evsgldarts'] == 1) { $strret = $strret . '<td>' . _input(1, 'D', $data[11], 3, 3) . '</td>'; } if ($objEvent['evsglrest'] == 1) { $strret = $strret . '<td>' . _input(1, 'R', $data[12], 3, 3) . '</td>'; } if ($objEvent['evsglfinish'] == 1) { $strret = $strret . '<td>' . _input(1, 'F', $data[13], 3, 3) . '</td>'; } if ($objEvent['evsglhighscore'] == 1) { $strret = $strret . '<td>' . _input(1, 'M', $data[14], 3, 3) . '</td>'; } if ($objEvent['evsglhighscore171'] == 1) { $strret = $strret . '<td>' . _input(1, 'M171', $data[15], 3, 3) . '</td>'; } } elseif ($objEvent['evsglroundcheck'] == 1) { if ($objEvent['evsglstart'] == 1) { $strret = $strret . '<td>' . _checkbox('B', $data[10]) . '</td>'; } if ($objEvent['evsglroundscore'] == 1) { $strret = $strret . '<td>' . _input(1, 'S', $data[11], 3, 3) . '</td>'; } if ($objEvent['evsglrest'] == 1) { $strret = $strret . '<td>' . _input(1, 'R', $data[13], 3, 3) . '</td>'; } if ($objEvent['evsglroundcheck'] == 1) { $strret = $strret . '<td>' . _input(1, 'C', $data[12], 3, 3) . '</td>'; } if ($objEvent['evsglfinish'] == 1) { $strret = $strret . '<td>' . _input(1, 'F', $data[14], 3, 3) . '</td>'; } if ($objEvent['evsglhighscore']) { $strret = $strret . '<td>' . _input(1, 'M', $data[15], 3, 3) . '</td>'; } } else { $strret = $strret . '<td>Keine Leg Statistik konfiguriert</td>'; } return $strret . '</tr>'; }
function save_submaster($parent_id = 0) { $usr = $this->data; $id = $this->input->post('id'); $data = _input($this->input->post()); if ($data['kategori'] && $data['kode']) { $check = $this->model_basic->get_data($this->inv_master, array('where_array' => array('kode' => $data['kode'], 'parent_id' => $parent_id)))->row(); if ($id) { if ($check && $check->id != $id) { $this->returnJson(array('message' => lang('msg_code_invalid'), 'status' => 'error')); die; } $data['update_by'] = $usr['user_id']; $data['update_date'] = date('Y-m-d H:i:s'); $save = $this->model_basic->update_data($this->inv_master, $data, 'id', $id); } else { if ($check) { $this->returnJson(array('message' => lang('msg_code_invalid'), 'status' => 'error')); die; } $data['parent_id'] = $parent_id; $data['create_by'] = $usr['user_id']; $data['create_date'] = date('Y-m-d H:i:s'); $save = $this->model_basic->insert_data($this->inv_master, $data); } if ($save) { $this->returnJson(array('message' => lang('msg_data_has_been_saved'), 'status' => 'ok')); } else { $this->returnJson(array('message' => lang('msg_data_not_saved'), 'status' => 'error')); } } else { $this->returnJson(array('message' => lang('msg_insert_not_completed'), 'status' => 'error')); } }
// $option_credit = "<tr><td>" . _('Credit') . "</td><td><input type=text maxlength=14 name=up_credit value=\"$credit\"></td></tr>"; if ($is_parent) { $button_delete = "<input type=button class=button value='" . _('Delete') . "' onClick=\"javascript: ConfirmURL('" . _('Are you sure you want to delete subuser ?') . " (" . _('username') . ": " . $c_username . ")','index.php?app=main&inc=core_user&route=subuser_mgmnt&op=subuser_del" . $url_uname . "')\">"; $button_back = _back('index.php?app=main&inc=core_user&route=subuser_mgmnt&op=subuser_list'); } else { $button_delete = "<input type=button class=button value='" . _('Delete') . "' onClick=\"javascript: ConfirmURL('" . _('Are you sure you want to delete user ?') . " (" . _('username') . ": " . $c_username . ")','index.php?app=main&inc=core_user&route=user_mgmnt&op=user_del" . $url_uname . "&view=" . $view . "')\">"; $button_back = _back('index.php?app=main&inc=core_user&route=user_mgmnt&op=user_list&view=' . $view); } } else { $form_title = _('User configuration'); // fixme anton - now disabled since plugin/feature/credit exists // $option_credit = "<tr><td>" . _('Credit') . "</td><td>$credit</td></tr>"; } // get access control list $c_option_acl = array_flip(acl_getall()); $option_acl = _input('text', '', acl_getname($acl_id), array('readonly')); if (auth_isadmin()) { $option_acl = _select('up_acl_id', $c_option_acl, $acl_id); } if ($user_edited['status'] == 4) { $parent_id = user_getparentbyuid($user_edited['uid']); if ($parent_id == $user_config['uid']) { $c_option_acl = array_flip(acl_getallbyuid($user_config['uid'])); $option_acl = _select('up_acl_id', $c_option_acl, $acl_id); } } // additional user's config available on registry $data = registry_search($c_uid, 'core', 'user_config'); // credit unicodes messages as single message $option_enable_credit_unicode = _options(array(_('yes') => 1, _('no') => 0), $data['core']['user_config']['enable_credit_unicode']); if (auth_isadmin()) {
function _showEVENTIndexReallyALLPlayers($indexdate, $evstatcode) { # # this shows the ranking points of all players who belong # to a specific Statistics-Group $evstatcode # a) retrieve all legs belonging to this listnumber form all events for the specified period # b) check on legacy table and include data # global $dbi, $tdbg, $event; $fromdate = fnc_date_calc($indexdate, -365); echo "<h3>Fiktive Rangliste berechnet aus allen Spielen von {$fromdate} bis {$indexdate} der Statistik-Gruppe {$evstatcode}</h3>"; echo '<form action=\'ls_debug.php?func=allranking&vindexdate=' . $indexdate . '\' method=\'post\'>'; echo '<p>Beliebigen Stichtag wählen (YYYY-MM-DD). Für diesen Tag wird ein FEDA Wert pro Spieler erstellt der die letzten 365 Tage berücksichtigt.<br>Im Gegensatz zur offiziell sichtbaren Liste werden hier wirklich ALLE Spieler angezeigt die jemals in dieser Ligagruppe tätig waren, unabhängig davon ob sie jetzt bei einer aktiven Mannschaft tätig sind .... (kann etwas dauern ... das ist eine LIVE Berechnung mit tausenden legs ...)<br>Es werden auch nur die Spieler angezeigt für die mind. 1 Leg gefunden wurde...</p>'; echo '<table><tr><td>' . _input(1, "vindexdate", $indexdate, 12, 12) . '</td>'; echo '<td>' . Select_StatGroup('evstatcode', $evstatcode) . '</td>'; echo '<td>' . _button("Rangliste bis Stichtag") . '</td>'; echo "</tr></table></form>"; if ($evstatcode > 0) { generateStaticFEDAStatisticEntries($evstatcode, $indexdate, 'no'); } }