function printNavItem($currentSite, $pageId, $navLabel, $entity = '') { $url = '?site=' . $pageId; $active = $currentSite == $pageId; if (strlen($entity)) { $url .= '&entity=' . escapeOutput($entity); $active = isset($_REQUEST['entity']) && $_REQUEST['entity'] == $entity; } echo '<li'; if ($active) { echo ' class=\'active\''; } echo '><a href=\'' . $url . '\'>' . $navLabel . '</a></li>'; }
private function _renderInActivityPopup($row) { $popup = ''; $popup .= '<div id=\'actPopup' . $row['id'] . '\' class=\'modal hide fade\' tabindex=\'-1\' role=\'dialog\' aria-labelledby=\'actPopupLabel\' aria-hidden=\'true\'>'; $popup .= '<div class=\'modal-header\'><button type=\'button\' class=\'close\' data-dismiss=\'modal\' aria-hidden=\'true\' title=\'' . $this->_i18n->getMessage('button_close') . '\'>×</button>'; $popup .= '<h3 id=\'actPopupLabel' . $row['id'] . '\'>' . $this->_i18n->getMessage('entity_user_inactivity') . ': ' . escapeOutput($row['entity_users_nick']) . '</h3></div>'; $popup .= '<div class=\'modal-body\'>'; $gesamt = $row['entity_user_inactivity_login'] + $row['entity_user_inactivity_aufstellung'] + $row['entity_user_inactivity_transfer'] + $row['entity_user_inactivity_vertragsauslauf']; $popup .= '<table class=\'table table-bordered\'> <thead><tr> <th>' . $this->_i18n->getMessage('popup_user_inactivity_title_action') . '</th> <th>' . $this->_i18n->getMessage('entity_user_inactivity') . '</th> </tr></thead> <tbody><tr> <td><b>' . $this->_i18n->getMessage('entity_user_inactivity_login') . '</b><br> <small>' . $this->_i18n->getMessage('entity_users_lastonline') . ': ' . date('d.m.y, H:i', $row['entity_users_lastonline']) . '</small></td> <td style=\'text-align: center; font-weight: bold; color: ' . $this->_color($this->_format($row['entity_user_inactivity_login'])) . '\'>' . $this->_format($row['entity_user_inactivity_login']) . ' %</td> </tr> <tr> <td><b>' . $this->_i18n->getMessage('entity_user_inactivity_aufstellung') . '</b></td> <td style=\'text-align: center; font-weight: bold; color: ' . $this->_color($this->_format($row['entity_user_inactivity_aufstellung'])) . '\'>' . $this->_format($row['entity_user_inactivity_aufstellung']) . ' %</td> </tr> <tr> <td><b>' . $this->_i18n->getMessage('entity_user_inactivity_transfer') . '</b><br> <small>' . sprintf($this->_i18n->getMessage('entity_user_inactivity_transfer_check'), date('d.m.y, H:i', $row['entity_user_inactivity_transfer_check'])) . '</small></td> <td style=\'text-align: center; font-weight: bold; color: ' . $this->_color($this->_format($row['entity_user_inactivity_transfer'])) . '\'>' . $this->_format($row['entity_user_inactivity_transfer']) . ' %</td> </tr> <tr> <td><b>' . $this->_i18n->getMessage('entity_user_inactivity_vertragsauslauf') . '</b></td> <td style=\'text-align: center; font-weight: bold; color: ' . $this->_color($this->_format($row['entity_user_inactivity_vertragsauslauf'])) . '\'>' . $this->_format($row['entity_user_inactivity_vertragsauslauf']) . ' %</td> </tr></tbody> <tfoot> <tr> <td><b>' . $this->_i18n->getMessage('popup_user_inactivity_total') . '</b></td> <td style=\'text-align: center; font-weight: bold; color: ' . $this->_color($this->_format($gesamt)) . '\'>' . $this->_format($gesamt) . ' %'; if ($gesamt > 100) { $popup .= '<br/>(' . $gesamt . '%)'; } $popup .= '</td> </tr> </tfoot> </table>'; $popup .= '</div>'; $popup .= '<div class=\'modal-footer\'><button class=\'btn btn-primary\' data-dismiss=\'modal\' aria-hidden=\'true\'>' . $this->_i18n->getMessage('button_close') . '</button></div>'; $popup .= '</div>'; return $popup; }
/** * @param array $parameters assoc. array of parameters to add or replace in current URL. * @return string current URL with added parameters. */ public static function buildCurrentUrlWithParameters($parameters) { $url = $_SERVER['PHP_SELF'] . '?'; $first = TRUE; foreach ($parameters as $parameterName => $parameterValue) { if (!$first) { $url .= '&'; } $url .= $parameterName . '=' . $parameterValue; $first = FALSE; } foreach ($_GET as $parameterName => $parameterValue) { // skip overriden value if (!isset($parameters[$parameterName])) { $url .= '&' . $parameterName . '=' . $parameterValue; } } return escapeOutput($url); }
} ?> </select> <button type="submit" class="btn"><?php echo $i18n->getMessage("button_display"); ?> </button> </form> <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="post" class="form-horizontal"> <input type="hidden" name="show" value="save"> <input type="hidden" name="lang" value="<?php echo escapeOutput($selectedLang); ?> "> <input type="hidden" name="site" value="<?php echo $site; ?> "> <fieldset> <?php $formFields = array(); $terms = (string) $termsConfig[0]; $formFields["content"] = array("type" => "html", "value" => $terms, "required" => "true"); foreach ($formFields as $fieldId => $fieldInfo) { echo FormBuilder::createFormGroup($i18n, $fieldId, $fieldInfo, $fieldInfo["value"], "imprint_label_"); }
echo $_SERVER['PHP_SELF']; ?> ' method='post' class='form-horizontal'> <input type='hidden' name='show' value='complete'> <input type='hidden' name='id' value='<?php echo $id; ?> '> <input type='hidden' name='site' value='<?php echo $site; ?> '> <fieldset> <legend><?php echo escapeOutput($season['name']); ?> </legend> <?php $formFields = array(); $formFields['playerdisableage'] = array('type' => 'number', 'value' => 35, 'required' => 'false'); $formFields['target_missed_firemanager'] = array('type' => 'boolean', 'value' => 0, 'required' => 'false'); $formFields['target_missed_popularityreduction'] = array('type' => 'percent', 'value' => 20, 'required' => 'false'); $formFields['target_missed_penalty'] = array('type' => 'number', 'value' => 0, 'required' => 'false'); $formFields['target_accomplished_reward'] = array('type' => 'number', 'value' => 0, 'required' => 'false'); $formFields['youthplayers_age_delete'] = array('type' => 'number', 'value' => 19, 'required' => 'false'); foreach ($formFields as $fieldId => $fieldInfo) { echo FormBuilder::createFormGroup($i18n, $fieldId, $fieldInfo, $fieldInfo['value'], 'season_complete_label_'); } ?>
echo $i18n->getMessage('entity_club_finanz_budget'); ?> </th> <th><?php echo $i18n->getMessage('entity_player'); ?> </th> </tr> </thead> <tbody> <?php while ($row = $result->fetch_array()) { echo '<tr>'; echo '<td><input type=\'checkbox\' name=\'selectedteams[]\' value=\'' . $row['team_id'] . '\'/></td>'; echo '<td class=\'tableRowSelectionCell\'><a href=\'' . $website->getInternalUrl('team', 'id=' . $row['team_id']) . '\' target=\'_blank\'>' . escapeOutput($row['team_name']) . '</a></td>'; echo '<td class=\'tableRowSelectionCell\'><a href=\'' . $website->getInternalUrl('user', 'id=' . $row['user_id']) . '\' target=\'_blank\'>' . escapeOutput($row['user_nick']) . '</a></td>'; echo '<td class=\'tableRowSelectionCell\'>' . $website->getFormattedDate($row['user_lastonline']) . '</td>'; echo '<td class=\'tableRowSelectionCell\'>' . number_format($row['team_budget'], 0, ',', ' ') . '</td>'; echo '<td class=\'tableRowSelectionCell\'>' . $row['team_players'] . '</td>'; echo '</tr>' . PHP_EOL; } ?> </tbody> </table> <p><label class='checkbox'><input type='checkbox' name='selAll' value='1' onClick='selectAll()'><?php echo $i18n->getMessage('manage_select_all_label'); ?> </label></p> <p><input type='submit' class='btn btn-primary' accesskey='l' title='Alt + l' value='<?php
<td>' . escapeOutput($row[1]) . ' (' . escapeOutput($row[2]) . ')</td> <td>'; if ($row[3] == LOG_TYPE_EDIT) { echo '<span class=\'label label-info\'><i class=\'icon-white icon-pencil\'></i> ' . $i18n->getMessage('entitylogging_action_edit') . '</span>'; } elseif ($row[3] == LOG_TYPE_DELETE) { echo '<span class=\'label label-important\'><i class=\'icon-white icon-trash\'></i> ' . $i18n->getMessage('entitylogging_action_delete') . '</span>'; } else { echo $row[3]; } echo '</td> <td>' . $i18n->getMessage('entity_' . $row[4]) . ': { '; $itemFields = json_decode($row[5], TRUE); $firstField = TRUE; foreach ($itemFields as $fieldKey => $fieldValue) { if ($firstField) { $firstField = FALSE; } else { echo ', '; } echo $fieldKey . ': ' . escapeOutput($fieldValue); } echo ' }</td> </tr>'; } ?> </table> <?php } } }
</th> <th><?php echo $i18n->getMessage('all_logging_label_time'); ?> </th> </tr> <?php $file = file($datei); $lines = count($file); $min = $lines - 50; if ($min < 0) { $min = 0; } for ($i = $lines - 1; $i >= $min; $i--) { $line = $file[$i]; $row = explode(', ', $line); $n = $i + 1; echo '<tr> <td><b>' . $n . '</b></td> <td>' . escapeOutput($row[0]) . '</td> <td>' . escapeOutput($row[1]) . '</td> <td>' . escapeOutput($row[2]) . '</td> </tr>'; } ?> </table> <?php } } }
echo $i18n->getMessage("entity_club"); ?> </th> <th><?php echo $i18n->getMessage("entity_league"); ?> </th> </tr> </thead> <tbody> <?php foreach ($teams as $team) { echo "<tr>"; echo "<td><input type=\"checkbox\" name=\"teams[]\" value=\"" . $team["team_id"] . "\"></td>"; echo "<td class=\"tableRowSelectionCell\">" . escapeOutput($team["team_name"]) . "</td>"; echo "<td class=\"tableRowSelectionCell\">" . escapeOutput($team["league_name"] . " (" . $team["league_country"] . ")") . "</td>"; echo "</tr>\n"; } ?> </tbody> </table> </div> </fieldset> <div class="form-actions"> <input type="submit" class="btn btn-primary" accesskey="s" title="Alt + s" value="<?php echo $i18n->getMessage("button_save"); ?> "> <?php echo "<a href=\"?site=managecuprounds&cup=" . $round["cup_id"] . "\" class=\"btn\">" . $i18n->getMessage("button_cancel") . "</a>";
foreach ($players as $playerId => $playerName) { echo "<option value=\"" . $playerId . "\""; if ($match["match_" . $teamPrefix . "_sub" . $subNo . "_out"] == $playerId) { echo " selected"; } echo ">" . escapeOutput($playerName) . "</option>"; } echo "</select></td>"; // in echo "<td><select name=\"" . $teamPrefix . "_sub" . $subNo . "_in\"><option> </option>"; foreach ($players as $playerId => $playerName) { echo "<option value=\"" . $playerId . "\""; if ($match["match_" . $teamPrefix . "_sub" . $subNo . "_in"] == $playerId) { echo " selected"; } echo ">" . escapeOutput($playerName) . "</option>"; } echo "</select></td>"; // condition echo "<td><select name=\"" . $teamPrefix . "_sub" . $subNo . "_condition\"><option> </option>"; echo "<option value=\"Tie\""; if ($match["match_" . $teamPrefix . "_sub" . $subNo . "_condition"] == "Tie") { echo " selected"; } echo ">" . $i18n->getMessage("match_manage_substitutions_condition_tie") . "</option>"; echo "<option value=\"Leading\""; if ($match["match_" . $teamPrefix . "_sub" . $subNo . "_condition"] == "Leading") { echo " selected"; } echo ">" . $i18n->getMessage("match_manage_substitutions_condition_leading") . "</option>"; echo "<option value=\"Deficit\"";
function renderRound($roundNode) { global $i18n; global $website; global $hierarchy; global $site; global $cupid; global $cup; global $action; global $db; echo "<div class=\"cupround\">"; $showEditForm = FALSE; if ($action == "edit" && $_REQUEST["id"] == $roundNode["round"]["id"]) { $showEditForm = TRUE; // save changes of edit } elseif ($action == "edit-save" && $_REQUEST["id"] == $roundNode["round"]["id"]) { if (isset($admin["r_demo"]) && $admin["r_demo"]) { throw new Exception($i18n->getMessage("validationerror_no_changes_as_demo")); } $showEditForm = TRUE; $columns = array(); $columns["name"] = $_POST["name"]; $columns["finalround"] = isset($_POST["finalround"]) && $_POST["finalround"] == "1" ? 1 : 0; $columns["groupmatches"] = isset($_POST["groupmatches"]) && $_POST["groupmatches"] == "1" ? 1 : 0; $firstDateObj = DateTime::createFromFormat($website->getConfig("date_format") . ", H:i", $_POST["firstround_date_date"] . ", " . $_POST["firstround_date_time"]); $columns["firstround_date"] = $firstDateObj->getTimestamp(); if (isset($_POST["secondround_date_date"])) { $secondDateObj = DateTime::createFromFormat($website->getConfig("date_format") . ", H:i", $_POST["secondround_date_date"] . ", " . $_POST["secondround_date_time"]); $columns["secondround_date"] = $secondDateObj->getTimestamp(); } $db->queryUpdate($columns, $website->getConfig("db_prefix") . "_cup_round", "id = %d", $roundNode["round"]["id"]); // name has changed, so also update already existing matches if ($roundNode["round"]["name"] !== $_POST["name"]) { $db->queryUpdate(array("pokalrunde" => $_POST["name"]), $website->getConfig("db_prefix") . "_spiel", "pokalname = '%s' AND pokalrunde = '%s'", array($cup["name"], $roundNode["round"]["name"])); } // update local instance $result = $db->querySelect("*", $website->getConfig("db_prefix") . "_cup_round", "id = %d", $roundNode["round"]["id"]); $roundNode["round"] = $result->fetch_array(); $result->free(); $showEditForm = FALSE; } // display edit form if ($showEditForm) { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="post" class="form-horizontal"> <input type="hidden" name="action" value="edit-save"> <input type="hidden" name="site" value="<?php echo $site; ?> "> <input type="hidden" name="cup" value="<?php echo $cupid; ?> "> <input type="hidden" name="id" value="<?php echo $roundNode["round"]["id"]; ?> "> <?php $formFields = array(); $formFields["name"] = array("type" => "text", "value" => $roundNode["round"]["name"], "required" => "true"); $formFields["firstround_date"] = array("type" => "timestamp", "value" => $roundNode["round"]["firstround_date"], "required" => "true"); if ($roundNode["round"]["secondround_date"]) { $formFields["secondround_date"] = array("type" => "timestamp", "value" => $roundNode["round"]["secondround_date"], "required" => "false"); } $formFields["finalround"] = array("type" => "boolean", "value" => $roundNode["round"]["finalround"]); $formFields["groupmatches"] = array("type" => "boolean", "value" => $roundNode["round"]["groupmatches"]); foreach ($formFields as $fieldId => $fieldInfo) { echo FormBuilder::createFormGroup($i18n, $fieldId, $fieldInfo, $fieldInfo["value"], "managecuprounds_label_"); } ?> <div class="control-group"> <div class="controls"> <input type="submit" class="btn btn-primary" accesskey="s" title="Alt + s" value="<?php echo $i18n->getMessage("button_save"); ?> "> <a href="<?php echo "?site=" . $site . "&cup=" . $cupid; ?> " class="btn"><?php echo $i18n->getMessage("button_cancel"); ?> </a> </div> </div> </form> <?php // display details } else { echo "<p><strong>"; if ($roundNode["round"]["finalround"] == "1") { echo "<em>"; } echo escapeOutput($roundNode["round"]["name"]); if ($roundNode["round"]["finalround"] == "1") { echo "</em>"; } echo "</strong>"; echo " <a href=\"?site=" . $site . "&cup=" . $cupid . "&action=edit&id=" . $roundNode["round"]["id"] . "\" title=\"" . $i18n->getMessage("manage_edit") . "\"><i class=\"icon-pencil\"></i></a>"; echo " <a class=\"deleteLink\" href=\"?site=" . $site . "&cup=" . $cupid . "&action=delete&id=" . $roundNode["round"]["id"] . "\" title=\"" . $i18n->getMessage("manage_delete") . "\"><i class=\"icon-trash\"></i></a>"; echo "</p>"; echo "<ul>"; echo "<li><em>" . $i18n->getMessage("managecuprounds_label_firstround_date") . ":</em> " . date($website->getFormattedDatetime($roundNode["round"]["firstround_date"])) . "</li>"; if ($roundNode["round"]["secondround_date"]) { echo "<li><em>" . $i18n->getMessage("managecuprounds_label_secondround_date") . ":</em> " . date($website->getFormattedDatetime($roundNode["round"]["secondround_date"])) . "</li>"; } // show matches link $matchesUrl = "?site=manage&entity=match&" . http_build_query(array("entity_match_pokalname" => escapeOutput($cup["name"]), "entity_match_pokalrunde" => escapeOutput($roundNode["round"]["name"]))); echo "<li><a href=\"{$matchesUrl}\">" . $i18n->getMessage("managecuprounds_show_matches") . "</a></li>"; echo "</ul>"; // add matches links $addMatchUrl = "?site=manage&entity=match&show=add&" . http_build_query(array("pokalname" => escapeOutput($cup["name"]), "pokalrunde" => escapeOutput($roundNode["round"]["name"]), "spieltyp" => "Pokalspiel")); if (!$roundNode["round"]["groupmatches"]) { echo "<p><a href=\"{$addMatchUrl}\" class=\"btn btn-mini\"><i class=\"icon-plus-sign\"></i> " . $i18n->getMessage("managecuprounds_add_match") . "</a>"; echo " <a href=\"?site=managecuprounds-generate&round=" . $roundNode["round"]["id"] . "\" class=\"btn btn-mini\"><i class=\"icon-random\"></i> " . $i18n->getMessage("managecuprounds_generate_matches") . "</a>"; echo "</p>"; } else { echo "<p><a href=\"?site=managecuprounds-groups&round=" . $roundNode["round"]["id"] . "\" class=\"btn btn-mini\"><i class=\"icon-list\"></i> " . $i18n->getMessage("managecuprounds_manage_groups") . "</a>"; echo "</p>"; } if (isset($roundNode["winnerround"])) { echo "<p><em>" . $i18n->getMessage("managecuprounds_next_round_winners") . ":</em></p>\n"; renderRound($hierarchy[$roundNode["winnerround"]]); } if (isset($roundNode["looserround"])) { echo "<p><em>" . $i18n->getMessage("managecuprounds_next_round_loosers") . ":</em></p>\n"; renderRound($hierarchy[$roundNode["looserround"]]); } } echo "</div>"; }
?> </p> <form action='forgot-password.php' method='post' class='form-horizontal'> <div class='control-group<?php if (isset($errors['inputEmail'])) { echo ' error'; } ?> '> <label class='control-label' for='inputEmail'><?php echo $i18n->getMessage('sendpassword_admin_label_email'); ?> </label> <div class='controls'> <input type='email' name='inputEmail' id='inputEmail' placeholder='E-Mail' value='<?php echo escapeOutput($inputEmail); ?> '> </div> </div> <div class='control-group'> <div class='controls'> <button type='submit' class='btn'><?php echo $i18n->getMessage('sendpassword_admin_button'); ?> </button> </div> </div> </form> <p><a href='login.php'><?php
$columns["M.gast_w" . $subNo . "_condition"] = "guest_sub_" . $subNo . "_condition"; } $result = $db->querySelect($columns, $fromTable, "M.id = %d", $matchId); $matchinfo = $result->fetch_array(); $result->free(); // init default simulation strategry in order to include dependend constants. Yeah, refactor this once having to much time... $dummyVar = new DefaultSimulationStrategy($website); $matchModel = SimulationStateHelper::loadMatchState($website, $db, $matchinfo); // compute audience if ($website->getRequestParameter("computetickets")) { SimulationAudienceCalculator::computeAndSaveAudience($website, $db, $matchModel); } if ($matchinfo["type"] == "Pokalspiel") { SimulationCupMatchHelper::checkIfExtensionIsRequired($website, $db, $matchModel); } // complete match $observer = new DataUpdateSimulatorObserver($website, $db); $observer->onMatchCompleted($matchModel); // show success message echo createSuccessMessage($i18n->getMessage("match_manage_complete_success"), ""); } echo "<h3><a href=\"" . $website->getInternalUrl("team", "id=" . $match["match_home_id"]) . "\" target=\"_blank\">" . escapeOutput($match["match_home_name"]) . "</a> - <a href=\"" . $website->getInternalUrl("team", "id=" . $match["match_guest_id"]) . "\" target=\"_blank\">" . escapeOutput($match["match_guest_name"]) . "</a></h3>"; echo "<div class=\"well\">" . $i18n->getMessage("match_manage_complete_intro") . "</div>"; echo "<form action=\"" . $_SERVER['PHP_SELF'] . "\" method=\"post\" class=\"form-horizontal\">"; echo "<input type=\"hidden\" name=\"site\" value=\"{$site}\"/>"; echo "<input type=\"hidden\" name=\"action\" value=\"complete\"/>"; echo "<input type=\"hidden\" name=\"match\" value=\"{$matchId}\"/>"; echo FormBuilder::createFormGroup($i18n, "computetickets", array("type" => "boolean", "value" => "1"), "1", "match_manage_complete_"); echo "<div class=\"form-actions\">"; echo "<button type=\"submit\" class=\"btn btn-primary\">" . $i18n->getMessage("match_manage_complete_button") . "</button>"; echo "</div></form>";
/** * Renders a selection field for a data table entry. * Up to 20 items will be displayed as usual selection box. Above as Autocomplete field. * * @param I18n $i18n Messages context. * @param string $fieldId ID of field. * @param array $fieldInfo assoc. array with at least keys 'entity', 'jointable' and 'labelcolumns'. * @param int $fieldValue pre-selected ID. */ public static function createForeignKeyField($i18n, $fieldId, $fieldInfo, $fieldValue) { $website = WebSoccer::getInstance(); $db = DbConnection::getInstance(); $fromTable = $website->getConfig('db_prefix') . '_' . $fieldInfo['jointable']; // count total items $result = $db->querySelect('COUNT(*) AS hits', $fromTable, '1=1', ''); $items = $result->fetch_array(); $result->free(); // render usual selection box if ($items['hits'] <= 20) { echo '<select id=\'' . $fieldId . '\' name=\'' . $fieldId . '\'>'; echo '<option value=\'\'>' . $i18n->getMessage('manage_select_placeholder') . '</option>'; $whereCondition = '1=1 ORDER BY ' . $fieldInfo['labelcolumns'] . ' ASC'; $result = $db->querySelect('id, ' . $fieldInfo['labelcolumns'], $fromTable, $whereCondition, '', 2000); while ($row = $result->fetch_array()) { $labels = explode(',', $fieldInfo['labelcolumns']); $label = ''; $first = TRUE; foreach ($labels as $labelColumn) { if (!$first) { $label .= ' - '; } $first = FALSE; $label .= $row[trim($labelColumn)]; } echo '<option value=\'' . $row['id'] . '\''; if ($fieldValue == $row['id']) { echo ' selected'; } echo '>' . escapeOutput($label) . '</option>'; } $result->free(); echo '</select>'; // render AJAXified item picker } else { echo '<input type=\'hidden\' class=\'pkpicker\' id=\'' . $fieldId . '\' name=\'' . $fieldId . '\' value=\'' . $fieldValue . '\' data-dbtable=\'' . $fieldInfo['jointable'] . '\' data-labelcolumns=\'' . $fieldInfo['labelcolumns'] . '\' data-placeholder=\'' . $i18n->getMessage('manage_select_placeholder') . '\'>'; } echo ' <a href=\'?site=manage&entity=' . $fieldInfo['entity'] . '&show=add\' title=\'' . $i18n->getMessage('manage_add') . '\'><i class=\'icon-plus-sign\'></i></a>'; }
</tr> </table> <h3><?php echo $i18n->getMessage('home_projectinfo_title'); ?> </h3> <table class='table table-bordered' style='width: 500px;'> <tr> <td><b><?php echo $i18n->getMessage('home_projectinfo_name'); ?> </b></td> <td><?php echo escapeOutput($website->getConfig('projectname')); ?> </td> </tr> <tr> <td><b><?php echo $i18n->getMessage('home_projectinfo_adminemail'); ?> </b></td> <td><a href='mailto:<?php echo $website->getConfig('systememail'); ?> '><?php echo $website->getConfig('systememail'); ?> </a></td>
******************************************************/ $mainTitle = $i18n->getMessage('imprint_navlabel'); if (!$admin['r_admin'] && !$admin['r_demo'] && !$admin[$page['permissionrole']]) { throw new Exception($i18n->getMessage('error_access_denied')); } if (!$show) { ?> <h1><?php echo $mainTitle; ?> </h1> <p><?php echo escapeOutput($i18n->getMessage('imprint_introduction')); ?> </p> <form action='<?php echo $_SERVER['PHP_SELF']; ?> ' method='post' class='form-horizontal'> <input type='hidden' name='show' value='save'> <input type='hidden' name='site' value='<?php echo $site; ?> '> <fieldset> <?php
?> "> <input type="hidden" name="action" value="save"> <input type="hidden" name="id" value="<?php echo $id; ?> "> <input type="hidden" name="site" value="<?php echo $site; ?> "> <?php if (isset($_REQUEST["page"])) { ?> <input type="hidden" name="page" value="<?php echo escapeOutput($_REQUEST["page"]); ?> "> <?php } ?> <fieldset> <legend><?php echo $i18n->getMessage("manage_edit_title"); ?> </legend> <?php foreach ($formFields as $fieldId => $fieldInfo) { $fieldValue = $action == "save" && isset($_POST[$fieldId]) ? $_POST[$fieldId] : $row[$fieldId]; echo FormBuilder::createFormGroup($i18n, $fieldId, $fieldInfo, $fieldValue, $labelPrefix);
?> </h1> <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="post" class="form-horizontal"> <input type="hidden" name="show" value="save"> <input type="hidden" name="site" value="<?php echo $site; ?> "> <fieldset> <legend><?php echo escapeOutput($admin['name']); ?> </legend> <?php $formFields = array(); $formFields["email"] = array("type" => "email", "value" => $admin['email'], "required" => "true"); $formFields["newpassword"] = array("type" => "password", "value" => ""); $formFields["repeatpassword"] = array("type" => "password", "value" => ""); $formFields["language"] = array("type" => "select", "value" => $admin["lang"], "selection" => $website->getConfig("supported_languages")); foreach ($formFields as $fieldId => $fieldInfo) { echo FormBuilder::createFormGroup($i18n, $fieldId, $fieldInfo, $fieldInfo["value"], "profile_label_"); } ?> </fieldset> <div class="form-actions">
echo createInfoMessage("", $i18n->getMessage("match_manage_reportitems_noitems")); // list items } else { echo "<table class=\"table table-bordered table-striped table-hover\">"; echo "<thead>"; echo "<tr>"; echo "<th>" . $i18n->getMessage("match_manage_reportmsg_minute") . "</th>"; echo "<th>" . $i18n->getMessage("entity_matchtext_aktion") . "</th>"; echo "<th>" . $i18n->getMessage("entity_matchtext_nachricht") . "</th>"; echo "<th>" . $i18n->getMessage("match_manage_reportmsg_playernames") . "</th>"; echo "<th>" . $i18n->getMessage("match_manage_reportmsg_intermediateresult") . "</th>"; echo "</tr>"; echo "</thead>"; echo "<tbody>"; $homeTeam = escapeOutput($match["match_home_name"]); $guestTeam = escapeOutput($match["match_guest_name"]); foreach ($reportItems as $reportItem) { echo "<tr>"; echo "<td><a href=\"?site={$site}&action=delete&match={$matchId}&itemid=" . $reportItem["report_id"] . "\" title=\"" . $i18n->getMessage("manage_delete") . "\" class=\"deleteLink\"><i class=\"icon-trash\"></i></a> " . $reportItem["minute"] . "</td>"; echo "<td><small>"; if ($reportItem["active_home"]) { echo $homeTeam; } else { echo $guestTeam; } echo "</small><br>"; echo $i18n->getMessage("option_" . $reportItem["type"]); echo "</td>"; echo "<td>" . $reportItem["message"] . "</td>"; echo "<td>" . $reportItem["playerNames"] . "</td>"; echo "<td>" . $reportItem["goals"] . "</td>";
} elseif ($type == "boolean") { $iconName = $columnValue ? "icon-ok" : "icon-minus-sign"; $iconTooltip = $columnValue ? $i18n->getMessage("option_yes") : $i18n->getMessage("option_no"); echo "<i class=\"" . $iconName . "\" title=\"" . $iconTooltip . "\"></i>"; } elseif ($type == "number") { echo number_format($columnValue, 0, ",", " "); } elseif ($type == "percent") { echo $columnValue . "%"; } else { if ($i18n->hasMessage("option_" . $columnValue)) { $columnValue = $i18n->getMessage("option_" . $columnValue); } if ($first && $editEnabled) { echo "<a href=\"" . $editUrl . "\">"; } echo escapeOutput($columnValue); if ($first && $editEnabled) { echo "</a>"; } } echo "</td>"; $first = FALSE; } // action columns if ($editEnabled) { $url = "?site=" . $site . "&entity=" . $entity . "&show=edit&id=" . $row["id"]; echo "<td><a href=\"" . $url . "\" title=\"" . $editTooltip . "\"><i class=\"icon-pencil\"></i></a></td>"; } if ($deleteEnabled) { $url = "?site=" . $site . "&entity=" . $entity . "&action=delete&id=" . $row["id"]; echo "<td><a href=\"" . $url . "\" title=\"" . $deleteTooltip . "\" class=\"deleteLink\"><i class=\"icon-trash\"></i></a></td>";