francarthAvatar border
TS
francarth
help me
<?php
include("../inc/cekS.php");
include("../inc/m.i.s.c.php");
$cur = "games";
$title = "Data Games :: ".WEBNAME;
include("../inc/header.php");
?>
<script language="javascript">
function tournamentSelected(val)
{
if (val != "0")
\t{
\t location.href = "games/informasi.tournament.php?t=" + val;
\t}
\telse
\t{
\t var tgl = document.getElementById("tglT");
\t tgl.innerHTML="";
\t}
}

function delT() {

\t\treturn confirm('Benarkah Anda akan menghapus Tournament ini ?'emoticon-Wink;

\t}
</script>
<?php if ($_GET['m'] == "" || $_GET['m'] == 1) { ?>
<div id="top-panel">
<a href="/igaseries/admin/games/index.php?m=1">Tournament</a> | <a href="/igaseries/admin/games/informasi.tournament.php">Team Player</a> | <a href="/igaseries/admin/games/index.php?m=3">Matchs</a></a> | <a href="/igaseries/admin/games/par.php">Par</a>
</div>
<div id="wrapper">
<div id="content2">
<div id="infowrap">
<div id="infobox3">
<form id="formT" action="" method="post" enctype="multipart/form-data">
<fieldset id="personal">
<legend>Informasi Tournament</legend>
<label for="ni">Nama Tournament : </label>
<select name="tournament" onchange="tournamentSelected(this.value);">
<option value="0">- Pilih -</option>
\t\t\t\t\t\t\t<?php
\t\t\t\t\t\t\t $tgl = "";
\t\t\t\t\t\t\t $data = ambilData("SELECT * FROM tournaments ORDER BY tournament_mulai DESC");
\t\t\t\t\t\t\t foreach ($data as $val) {
\t\t\t\t\t\t\t ?>
\t\t\t\t\t\t\t\t<option value="<?php echo $val["tournament_id"]; ?>" <?php if($val["tournament_id"]==$_GET['t']) { echo "selected"; } ?>>
\t\t\t\t\t\t\t\t <?php echo $val["tournament_name"]; ?>
</option>
\t\t\t\t\t\t\t<?php
\t\t\t\t\t\t\t if($val["tournament_id"]==$_GET['t']) {
\t\t\t\t\t\t\t\t $tgl = $val["tournament_mulai"]." s.d. ".$val["tournament_akhir"];
\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t?>
\t\t\t\t\t\t\t</select>
<br/>
<label for="ni">Tanggal Tournament : </label>
<div id="tglT" style="display:block;">
<?php echo $tgl; ?>
</div>\t\t\t\t\t\t\t \t\t\t\t\t\t
<br/>
</fieldset>
</form>
<?php
\t\t\t\t $games1 = "none";
\t\t\t\t\t $tglgame1 = "";
\t\t\t\t\t $games2 = "none";
\t\t\t\t\t $tglgame2 = "";
\t\t\t\t\t $games3 = "none";
\t\t\t\t\t $tglgame3 = "";
\t\t\t\t if ($_GET['t'] != "")
\t\t\t\t\t {
\t\t\t\t\t\t $gamedata = ambilData("SELECT game_id, tanggal FROM tournaments_games WHERE tournament_id = ".$_GET['t']." ORDER BY game_id");
\t\t\t\t\t\t foreach ($gamedata as $val) {
\t\t\t\t\t\t\tif ( $val["tournament_id"] == 1) {$games1 = "block"; $tglgame1 = $val["tanggal"];}
\t\t\t\t\t\t\tif ( $val["tournament_id"] == 2) {$games2 = "block"; $tglgame2 = $val["tanggal"];}
\t\t\t\t\t\t\tif ( $val["tournament_id"] == 3) {$games3 = "block"; $tglgame3 = $val["tanggal"];}
\t\t\t\t\t\t }
\t\t\t\t\t }\t
\t\t\t\t
\t\t\t\t ?>
<div id="games1" style="display:<?php echo $games1; ?>">Individu <?php echo $tglgame1; ?></div>
<br/>
<div id="games2" style="display:<?php echo $games2; ?>;">Foursome <?php echo $tglgame2; ?></div>
<br/>
<div id="games3" style="display:<?php echo $games3; ?>;">FourMix <?php echo $tglgame3; ?></div>
<br/>
</div>
</div>
</div>
</div>
<?php }
include("../inc/footer.php");
?>
maslhx dsni agan2.....ane pngen dipilih salah satu dari combo box dan hsilx itu dari pilihana combo box....contoh klo di combo box di pilih turnament 1 gtu yg isisx cman game 1 aja maka uyg kluar game 1 aja...klo di pilih turnamen 2 yg isisx ada 2 game makax yg kluar 2 game itu....dst...trims sblumx buat agan2,
0
1.5K
7
Thread Digembok
Urutan
Terbaru
Terlama
Thread Digembok
Komunitas Pilihan