Teams Structure v2.0
|
Borek |
Dodany dnia 30.12.2010 06:56:31
|
Bywalec
Postów: 399 Pomógł: 64
v7.02.05 Data rejestracji: 28.06.2009 19:38
|
Pobrane z oficjalnego angielskiego Supportu. Wtyczka pozwalająca mieć na stronie listę klubów wraz z zawodnikami oraz wyświetlić tabelę ligi. Dostępna jest tylko jedna liga. Każdego zawodnika każdej drużyny można szczegółowo opisać. Spolszczone.
Dodatkowo proszę, czy mógłby ktoś to tak przerobić, aby można było dodawać ligi?
Borek dodał/a następującą plik:
Edytowane przez Pieka dnia 30.12.2010 12:37:11
Nie pomagam przez GG, PW itp. Tylko tutaj.
|
|
|
|
Wścibski Gość |
Dodany dnia 21.11.2024 16:27:57
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
konfiteor |
Dodany dnia 30.12.2010 13:06:13
|
Początkujący
Postów: 112 Pomógł: 2 Ostrzeżeń: 3
Data rejestracji: 21.03.2007 13:31
|
Fajna wtyczka!
Ja też mam prośbę i propozycje by do drożyn można było dodawać loga ?
Tak aby były widoczne obok nazwy drużyny w panelu i na podstronach
Rób swoje ryzyko jest Twoje...
|
|
|
|
Chrzano |
Dodany dnia 30.07.2012 18:28:59
|
Przedszkolak
Postów: 35 Ostrzeżeń: 6
Data rejestracji: 14.05.2011 07:53
|
Witam
Zainstalowałem na stronie www.1-liga.pl wtyczkę Team Structure v 4.0 kompatybilną z PHP-Fusion v7.xx
Moje problemy:
1. http://1-liga.pl/...d_list.php
Jak widać, tabela rozjeżdża się w drugim i trzecim wersie, po prostu liczby nie są pod odpowiednimi literami u góry.
Poprawnie: http://www.dev.ru...d_list.php
2. Nie mogę dodać zdjęcia zawodnika, w panelu dodawania zawodnika jest część: dodaj zdjęcie i wybieram sobie fotkę z mojego dysku, później jednak wyskakuje no photo:
http://www.1-liga...?team_id=1
3. Tabelę chciałbym dostosować pod rozgrywki siatkówki, w tym celu muszę usunąć remisy, oznaczone literą T w pierwszym linku.
Wtyczkę pobrałem z oficjalnego supportu:
http://www.php-fu...don_id=156 |
|
|
|
bogdan |
Dodany dnia 30.07.2012 18:55:44
|
Ekspert
Postów: 2451 Pomógł: 164
v7.02.07 Data rejestracji: 21.07.2009 12:55
|
Tu masz wersję -> v5.0, dostosowaną do PHP-Fusion v7.02.xx.
Nie wiem jakie są locale, ale zakładam, że angielskie są.
Nie szukaj Szczęścia, lecz dawaj Je innym, a wtedy samo do Ciebie przyjdzie.
Nie ma mnie na GG.
|
|
|
|
Chrzano |
Dodany dnia 30.07.2012 19:13:55
|
Przedszkolak
Postów: 35 Ostrzeżeń: 6
Data rejestracji: 14.05.2011 07:53
|
OK dzięki, naprawiło to punkt drugi, ale nadal tabela jest rozjechana ; /
http://www.1-liga...d_list.php |
|
|
|
bogdan |
Dodany dnia 30.07.2012 19:40:34
|
Ekspert
Postów: 2451 Pomógł: 164
v7.02.07 Data rejestracji: 21.07.2009 12:55
|
Modyfikowałeś pliki?
Nie znam tej wtyczki, ale mnie się wyświetla jedno pod drugim.
Sprawdź jak to wygląda na innej skórce.
Nie szukaj Szczęścia, lecz dawaj Je innym, a wtedy samo do Ciebie przyjdzie.
Nie ma mnie na GG.
|
|
|
|
Chrzano |
Dodany dnia 30.07.2012 20:33:43
|
Przedszkolak
Postów: 35 Ostrzeżeń: 6
Data rejestracji: 14.05.2011 07:53
|
Na innej skórce wyświetla się poprawnie. ; /
Gdy jednak rozciągam stronę z powrotem na 100% szerokości, działa poprawnie, ale wolałbym tego uniknąć, czy jest jakieś wyjście?
Edytowane przez bogdan dnia 30.07.2012 21:23:58
|
|
|
|
Piotrroger |
Dodany dnia 30.07.2012 21:57:50
|
Bywalec
Postów: 998 Pomógł: 19
v7.02.03 Data rejestracji: 27.04.2006 18:29
|
Pokaż na screenie jak jest źle i jak ma być żeby było dobrze, bo nie bardzo rozumiem :]
|
|
|
|
bogdan |
Dodany dnia 30.07.2012 22:01:51
|
Ekspert
Postów: 2451 Pomógł: 164
v7.02.07 Data rejestracji: 21.07.2009 12:55
|
Spróbuj się pobawić w pliku teams_board_list.php.
Procenty popróbuj wymienić na piksele.
Szczególnie tam gdzie są "50%"
Pomiędzy liniami 27 - 95:
opentable($locale['team_104']);
$result = dbquery("SELECT * FROM ".DB_TEAM_BOARD." ORDER BY team_board_id ASC LIMIT 0,20");
if (dbrows($result)) {
echo "<table cellpadding='0' cellspacing='0' width='50%' align='center'><tr>\n";
echo "<td align='left' width='59%'> </td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='6%'><b>".$locale['team_632']."</b></td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='6%'><b>".$locale['team_633']."</b></td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='6%'><b>".$locale['team_634']."</b></td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='6%'><b>".$locale['team_635']."</b></td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='6%'><b>".$locale['team_636']."</b></td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='6%'><b>".$locale['team_637']."</b></td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='10%'><b>".$locale['team_631']."</b></td>\n";
echo "</tr></table>\n";
echo "<hr width='50%'>\n";
echo "<table cellpadding='0' cellspacing='0' width='50%' align='center'>\n";
while ($data = dbarray($result)) {
echo "<tr>\n";
echo "<td align='center' width='5%'><b>".$data['team_board_order']."</b></td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='left' width='54%'><b>".$data['team_board_name']."</b></td>\n";
echo "<td align='center' width='6%'>".$data['team_board_games']."</td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='6%'>".$data['team_board_wins']."</td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='6%'>".$data['team_board_ties']."</td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='6%'>".$data['team_board_losses']."</td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='6%'>".$data['team_board_gs']."</td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='6%'>".$data['team_board_ga']."</td>\n";
echo "<td width='10px'> </td>\n";
echo "<td align='center' width='5%'>".$data['team_board_points']."</td>\n";
echo "</tr>\n";
}
echo "</table>";
echo "<hr width='50%'>\n";
echo "<table cellpadding='0' cellspacing='0' width='50%' align='center'><tr>\n";
echo "<td align='center'><b>".$locale['team_632']."</b></td>\n";
echo "<td align='left'>".$locale['team_616']."</td>\n";
echo "<td align='center'><b>".$locale['team_636']."</b></td>\n";
echo "<td align='left'>".$locale['team_628']."</td>\n";
echo "<tr></tr>\n";
echo "<td align='center'><b>".$locale['team_633']."</b></td>\n";
echo "<td align='left'>".$locale['team_620']."</td>\n";
echo "<td align='center'><b>".$locale['team_637']."</b></td>\n";
echo "<td align='left'>".$locale['team_629']."</td>\n";
echo "<tr></tr>\n";
echo "<td align='center'><b>".$locale['team_634']."</b></td>\n";
echo "<td align='left'>".$locale['team_622']."</td>\n";
echo "<td align='center'><b>".$locale['team_631']."</b></td>\n";
echo "<td align='left'>".$locale['team_602a']."</td>\n";
echo "<tr></tr>\n";
echo "<td align='center'><b>".$locale['team_635']."</b></td>\n";
echo "<td align='left'>".$locale['team_624']."</td>\n";
echo "<td align='center'></td>\n";
echo "<td align='left'></td>\n";
echo "</tr></table>\n";
} else {
echo "<div style='text-align:center'>".$locale['team_551']."</div>\n";
}
closetable();
U mnie się zmieniało.
Jak nic nie da, o proponuję modyfikować skórkę, ale to już w innym wątku.
Edytowane przez bogdan dnia 30.07.2012 22:16:38
Nie szukaj Szczęścia, lecz dawaj Je innym, a wtedy samo do Ciebie przyjdzie.
Nie ma mnie na GG.
|
|
|
|
Chrzano |
Dodany dnia 03.08.2012 11:14:14
|
Przedszkolak
Postów: 35 Ostrzeżeń: 6
Data rejestracji: 14.05.2011 07:53
|
A co Wy na to, jeżeli w ustawieniach tabeli wypełniam wszystkim drużynom normalnie pola: punkty, gole itp. a także ustawiam ich pozycję w tabeli, a po zapisie pozycja w tabeli zmienia się np. z 1 na 10 lub z 4 na 17 i wszystko się rozwala tak jak po prawej stronie www.1-liga.pl
Połączony z 05 sierpień 2012 20:32:
Czy ktoś może pomóc?
Edytowane przez Chrzano dnia 05.08.2012 20:32:38
|
|
|
|
Rafee |
Dodany dnia 16.04.2016 22:01:05
|
Początkujący
Postów: 229 Pomógł: 13 Ostrzeżeń: 4
Data rejestracji: 24.10.2006 09:08
|
Witam serdecznie,
nie mogę sobie poradzić z dodaniem daty do profilu, ciągle mi nie chce zapisać...
co robię źle?
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright ? 2002 - 2011 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Name: team_goals.php
| Author: jikaka
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../../maincore.php";
require_once THEMES."templates/admin_header.php";
require_once INFUSIONS."teams_structure/infusion_db.php";
require_once INCLUDES."html_buttons_include.php";
if (!checkrights("FLP") || !defined("iAUTH") || $_GET['aid'] != iAUTH) { redirect("../index.php"); }
if (file_exists(INFUSIONS."teams_structure/locale/".$settings['locale'].".php")) {
include INFUSIONS."teams_structure/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."teams_structure/locale/English.php";
}
if (isset($_GET['status']) && !isset($message)) {
if ($_GET['status'] == "sn") {
$message = $locale['team_220'];
} elseif ($_GET['status'] == "su") {
$message = $locale['team_221'];
} elseif ($_GET['status'] == "dely") {
$message = $locale['team_222'];
}
if ($message) { echo "<div class='admin-message'>".$message."</div>\n"; }
}
opentable ($locale['team_442']);
require_once INFUSIONS."teams_structure/inc/panel_tab.php";
closetable();
$result = dbquery("SELECT * FROM ".DB_TEAM_CAT."");
if (dbrows($result)) {
if (isset($_GET['action']) && $_GET['action'] == "refresh") {
$i = 1;
$result = dbquery("SELECT * FROM ".DB_COACH." ORDER BY team_coach_order");
while ($data = dbarray($result)) {
$result2 = dbquery("UPDATE ".DB_COACH." SET team_coach_order='$i' WHERE team_coach_id='".$data['team_coach_id']."'");
$i++;
}
redirect(FUSION_SELF.$aidlink);
} elseif (isset($_POST['cancel'])) {
redirect(FUSION_SELF.$aidlink);
} elseif ((isset($_GET['action']) && $_GET['action'] == "moveup") && (isset($_GET['team_coach_id']) && isnum($_GET['team_coach_id']))) {
$data = dbarray(dbquery("SELECT * FROM ".DB_COACH." WHERE team_coach_order='".$_GET['order']."'"));
$result = dbquery("UPDATE ".DB_COACH." SET team_coach_order=team_coach_order+1 WHERE team_coach_id='".$data['team_coach_id']."'");
$result = dbquery("UPDATE ".DB_COACH." SET team_coach_order=team_coach_order-1 WHERE team_coach_id='".$_GET['team_coach_id']."'");
redirect(FUSION_SELF.$aidlink);
} elseif ((isset($_GET['action']) && $_GET['action'] == "movedown") && (isset($_GET['team_coach_id']) && isnum($_GET['team_coach_id']))) {
$data = dbarray(dbquery("SELECT * FROM ".DB_COACH." WHERE team_coach_order='".$_GET['order']."'"));
$result = dbquery("UPDATE ".DB_COACH." SET team_coach_order=team_coach_order-1 WHERE team_coach_id='".$data['team_coach_id']."'");
$result = dbquery("UPDATE ".DB_COACH." SET team_coach_order=team_coach_order+1 WHERE team_coach_id='".$_GET['team_coach_id']."'");
redirect(FUSION_SELF.$aidlink);
} elseif ((isset($_GET['action']) && $_GET['action'] == "delete") && (isset($_GET['team_coach_id']) && isnum($_GET['team_coach_id']))) {
$data = dbarray(dbquery("SELECT * FROM ".DB_COACH." WHERE team_coach_id='".$_GET['team_coach_id']."'"));
$result = dbquery("UPDATE ".DB_COACH." SET team_coach_order=team_coach_order-1 WHERE team_coach_order>'".$data['order']."'");
$result = dbquery("DELETE FROM ".DB_COACH." WHERE team_coach_id='".$_GET['team_coach_id']."'");
redirect(FUSION_SELF.$aidlink);
} elseif (isset($_POST['team_coach_submit'])) {
if ($_POST['team_coach_team'] != "" && $_POST['team_coach_surname'] != "" && $_POST['team_coach_birthdate'] != "") {
$team_coach_order = trim(stripinput($_POST['team_coach_order']));
$team_coach_surname = trim(stripinput($_POST['team_coach_surname']));
$team_coach_name = trim(stripinput($_POST['team_coach_name']));
$team_coach_team = trim(stripinput($_POST['team_coach_team']));
$team_coach_stan = trim(stripinput($_POST['team_coach_stan']));
$team_coach_birthdate = trim(stripinput($_POST['team_coach_birthdate']));
$team_coach_birth = trim(stripinput($_POST['team_coach_birth']));
$team_coach_info = trim(stripinput($_POST['team_coach_info']));
$team_coach_phone = trim(stripinput($_POST['team_coach_phone']));
$team_coach_email = trim(stripinput($_POST['team_coach_email']));
$result = dbquery("SELECT * FROM ".DB_COACH." WHERE team_coach_id='".$data['team_coach_id']."'");
if ($team_coach_id=="") {
$result = dbquery("SELECT MAX(team_coach_id) AS last_id FROM ".DB_COACH."");
if (dbrows($result)) {$data = dbarray($result);$team_coach_id = $data['last_id']+1;}
}
if ($team_coach_team != "" && $team_coach_surname != "" && $team_coach_birthdate != "") {
if ((isset($_GET['action']) && $_GET['action'] == "edit") && (isset($_GET['team_coach_id']) && isnum($_GET['team_coach_id']))) {
$result = dbquery("UPDATE ".DB_COACH." SET team_coach_surname='$team_coach_surname', team_coach_name='$team_coach_name', team_coach_team='$team_coach_team', team_coach_stan='$team_coach_stan', team_coach_birthdate='$team_coach_birthdate', team_coach_birth='$team_coach_birth', team_coach_info='$team_coach_info', team_coach_phone='$team_coach_phone', team_coach_email='$team_coach_email' WHERE team_coach_id='".$_GET['team_coach_id']."'");
} else {
if(!$team_coach_order) $team_coach_order=dbresult(dbquery("SELECT MAX(team_coach_order) FROM ".DB_COACH.""),0)+1;
$result = dbquery("UPDATE ".DB_COACH." SET team_coach_order=team_coach_order+1 WHERE team_coach_order>='".$_GET['order']."'");
$result = dbquery("INSERT INTO ".DB_COACH." VALUES('$team_coach_id', '$team_coach_order', '$team_coach_surname', '$team_coach_name', '$team_coach_team', '$team_coach_stan', '$team_coach_birthdate', '$team_coach_birth', '$team_coach_info', '$team_coach_phone', '$team_coach_email')");
}
}
redirect(FUSION_SELF.$aidlink);
} else {
opentable($locale['team_708c']);
echo "<div align='center'><b>".$locale['team_557']."</b><br />\n<span class='small'>";
echo $locale['team_558']."</span></div>\n";
closetable();
}
} else {
if ((isset($_GET['action']) && $_GET['action'] == "edit") && (isset($_GET['team_coach_id']) && isnum($_GET['team_coach_id']))) {
$result = dbquery("SELECT * FROM ".DB_COACH." WHERE team_coach_id='".$_GET['team_coach_id']."'");
if (dbrows($result)) {
$data = dbarray($result);
$team_coach_order = $data['team_coach_order'];
$team_coach_surname = $data['team_coach_surname'];
$team_coach_name = $data['team_coach_name'];
$team_coach_team = $data['team_coach_team'];
$team_coach_stan = $data['team_coach_stan'];
$team_coach_birthdate = explode("-", $data['team_coach_birthdate']);
$team_coach_birth = $data['team_coach_birth'];
$team_coach_info = $data['team_coach_info'];
$team_coach_phone = $data['team_coach_phone'];
$team_coach_email = $data['team_coach_email'];
$formaction = FUSION_SELF.$aidlink."&action=edit&team_coach_id=".$data['team_coach_id'];
opentable($locale['team_707c']);
} else { $formaction = FUSION_SELF.$aidlink; }
} else {
$team_coach_order = "";
$team_coach_surname = "";
$team_coach_name = "";
$team_coach_team = "";
$team_coach_stan = "";
$team_coach_birthdate = "";
$team_coach_birth = "";
$team_coach_info = "";
$team_coach_phone = "";
$team_coach_email = "";
$formaction = FUSION_SELF.$aidlink;
opentable($locale['team_700c']);
}
$editlist = "";
$bi = "";
$sel = "";
$k = "";
$k1 ="";
$k2 ="";
$result2 = dbquery("SELECT * FROM ".DB_TEAM_CAT." ORDER BY team_cat_name");
if (dbrows($result2) != 0) {
while ($data2 = dbarray($result2)) {
if (isset($_GET['action']) && $_GET['action'] == "edit") { $sel = ($data['team_coach_team'] == $data2['team_cat_name'] ? " selected='selected'='selected'" : ""); }
$editlist .= "<option value='".$data2['team_cat_name']."'$sel>".$data2['team_cat_name']."</option>\n";
}
}
echo "<form name='inputform' method='post' action='$formaction' enctype='multipart/form-data'>\n";
echo "<table cellpadding='0' cellspacing='0' width='490' class='center'><tr>\n";
echo "<td class='tbl'>".$locale['team_201']."</td>\n";
echo "<td class='tbl'><input type='text' name='team_coach_surname' value='$team_coach_surname' class='textbox' style='width:200px' maxlength='50' /></td>\n";
echo "</tr><tr>\n";
echo "<td class='tbl'>".$locale['team_202']."</td>\n";
echo "<td class='tbl'><input type='text' name='team_coach_name' value='$team_coach_name' class='textbox' style='width:200px' maxlength='50' /></td>\n";
echo "</tr><tr>\n";
echo "<td class='tbl'>".$locale['team_706c']."</td>\n";
echo "<td class='tbl'><input type='text' name='team_coach_stan' value='$team_coach_stan' class='textbox' style='width:250px' /></td>\n";
echo "</tr><tr>\n";
echo "<td class='tbl'>".$locale['team_705c']."</td>\n";
echo "<td class='tbl'><select name='team_coach_team' class='textbox'>\n".$editlist."</select></td>\n";
echo "</tr><tr>\n";
echo "<td class='tbl'>".$locale['team_703c']."</td>\n";
echo "<td class='tbl'>";
echo "<select name='mday' class='textbox'>\n";
for ($i=1 ; $i <=31 ; $i++) { $k = (isset($team_coach_birthdate) && $i == $team_coach_birthdate[2] ? " selected='selected'" : ""); echo "<option value='".$i."' $k>$i</option>"; }
echo "</select>
<select name='mon' class='textbox'>\n";
for ($i=1 ; $i <=12 ; $i++) { $k1 = (isset($team_coach_birthdate) && $i == $team_coach_birthdate[1] ? " selected='selected'" : ""); echo "<option value='".$i."' $k1>$i</option>"; }
echo "</select>
<select name='year' class='textbox'>\n";
for ($i=1970 ; $i <=date('Y') ; $i++) { $k2 = (isset($team_coach_birthdate) && $i == $team_coach_birthdate[0] ? " selected='selected'" : ""); echo "<option value='".$i."' $k2>$i</option>"; }
echo "</select>";
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td class='tbl'>".$locale['team_704c']."</td>\n";
echo "<td class='tbl'><input type='text' name='team_coach_birth' value='$team_coach_birth' class='textbox' style='width:150px' /></td>\n";
echo "</tr><tr>\n";
echo "<td valign='top' width='200' class='tbl'>Informacje o trenerze:</td>\n";
echo "<td class='tbl'><textarea name='team_coach_info' cols='60' rows='10' class='textbox' style='width:420px;'>".$team_coach_info."</textarea></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl'></td><td class='tbl'>\n";
echo display_html("inputform", "team_coach_info", true)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl'>Telefon:</td>\n";
echo "<td class='tbl'><input type='text' name='team_coach_phone' value='$team_coach_phone' class='textbox' style='width:150px' maxlength='11' /></td>\n";
echo "</tr><tr>\n";
echo "<td class='tbl'>Kontakt e-mail:</td>\n";
echo "<td class='tbl'><input type='text' name='team_coach_email' value='$team_coach_email' class='textbox' style='width:250px' /></td>\n";
echo "</tr></table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0'><tr>\n";
echo "<td class='tbl'> </td>\n";
echo "<td colspan='2' align='center' class='tbl'><br /><input type='submit' name='team_coach_submit' value='".$locale['team_605']."' class='button' /> \n";
if (isset($_GET['action']) && $_GET['action'] == "edit") {
echo "<input type='submit' name='cancel' value='".$locale['team_606']."' class='button' />\n";
}
echo "</td></tr></table></form>\n";
closetable();
}
opentable($locale['team_702c']);
$result = dbquery("SELECT * FROM ".DB_COACH."");
$rows = dbrows($result);
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }
if ($rows != 0) {
if (iADMIN) {echo "<center>[<a href='".FUSION_SELF.$aidlink."&action=refresh'>".$locale['team_612']."</a>]</center><br />";}
echo "<table cellpadding='0' cellspacing='0' width='100%' class='tbl-border center'><tr>\n";
echo "<td align='center' class='tbl2' width='5%'> </td>\n";
echo "<td align='center' class='tbl2' width='20%'><b>".$locale['team_709c']."</b></td>\n";
echo "<td align='right' class='tbl2' width=''><b>".$locale['team_442']."</b></td>\n";
echo "</tr></table><br />\n";
$i = 1;
$result = dbquery("SELECT * FROM ".DB_COACH." ORDER BY team_coach_order LIMIT ".$_GET['rowstart'].",20");
$numrows = dbrows($result);
while ($data = dbarray($result)) {
echo "<table cellpadding='0' cellspacing='0' width='100%' align='center'><tr>\n";
echo "<td align='center' class='small' width='5%'>".$data['team_coach_order']."</td>\n";
echo "<td class='small' width='20%'>".$data['team_coach_name']." ".$data['team_coach_surname']."</td>\n";
echo "<td align='right' width=''>\n";
if ($rows != 1) {
$up = $data['team_coach_order'] - 1;
$down = $data['team_coach_order'] + 1;
if ($data['team_coach_order'] == 1) {
echo "<a href='".FUSION_SELF.$aidlink."&action=movedown&order=$down&team_coach_id=".$data['team_coach_id']."'><img src='".THEME."images/down.gif' alt='".$locale['team_610']."' title='".$locale['team_610']."' style='border:0px;' /></a> ";
} elseif ($data['team_coach_order'] < $rows) {
echo "<a href='".FUSION_SELF.$aidlink."&action=moveup&order=$up&team_coach_id=".$data['team_coach_id']."'><img src='".THEME."images/up.gif' alt='".$locale['team_611']."' title='".$locale['team_611']."' style='border:0px;' /></a> ";
echo "<a href='".FUSION_SELF.$aidlink."&action=movedown&order=$down&team_coach_id=".$data['team_coach_id']."'><img src='".THEME."images/down.gif' alt='".$locale['team_610']."' title='".$locale['team_610']."' style='border:0px;' /></a> ";
} else {
echo "<a href='".FUSION_SELF.$aidlink."&action=moveup&order=$up&team_coach_id=".$data['team_coach_id']."'><img src='".THEME."images/up.gif' alt='".$locale['team_611']."' title='".$locale['team_611']."' style='border:0px;' /></a> ";
}
}
echo " [<a href='".FUSION_SELF.$aidlink."&action=edit&team_coach_id=".$data['team_coach_id']."'>".$locale['team_608']."</a>] | [<a href='".FUSION_SELF.$aidlink."&action=delete&team_coach_id=".$data['team_coach_id']."' onClick='return DeleteMessage();'>".$locale['team_609']."</a>]";
echo "</td></tr></table>\n";
if ($i != $numrows) echo "<br />\n";
$i++;
}
} else {
echo "<table cellpadding='0' cellspacing='0' width='50%' class='tbl-border center'><tr>\n";
echo "<td align='center' class='tbl1'>".$locale['team_701c']."</td>\n";
echo "</tr></table>\n";
}
require_once INFUSIONS."teams_structure/inc/copy.php";
closetable();
if ($rows != 0) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($_GET['rowstart'],20,$rows,3,FUSION_SELF.$aidlink."&")."\n</div>\n";
echo "<script>
function DeleteMessage() {
return confirm(\"".$locale['team_614']."\");
}
</script>\n";
} else {
opentable($locale['team_550']);
echo "<div style='text-align:center'>".$locale['team_551']."<br />\n".$locale['team_560']."<br /><br />\n";
echo "<a href='team_admin.php".$aidlink."'>".$locale['team_553']."</a>".$locale['team_554']."</div>\n";
closetable();
}
require_once THEMES."templates/footer.php";
?> Kliknij i zaczekaj na załadowanie kodu ...
Ok poradziłem sobie, post do usunięcia :)
Edytowane przez Rafee dnia 20.04.2016 19:58:59
|
|
|