Parašė maxas66· 2009 Gru. 18 16:12:55
#4
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2009 Nick Jones
| http://www.php-fusion.co.uk/
| 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/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../../maincore.php";
require_once THEMES."templates/header.php";
error_reporting(E_ALL);
if (!iMEMBER) { redirect("index.php"); }
opentable('Draugiškų varžybų ieškiklis');
echo '<table border="1" width="100%" id="table1">
<tr>
<td width="125">Pasirinkite m<span lang="lt">ėnesį</span></td>
<td width="99">Kelis si<span lang="lt">ūlymus?</span></td>
<td> </td>
</tr>
<tr>
<td width="125" align="center"><select size="1" name="D1">;
<option value="1">Sausis</option>;
<option value="2">Vasaris</option>;
<option value="3">Kovas</option>;
<option value="4">Balandis</option>;
<option value="5">Gegužė</option>;
<option value="6">Birželis</option>;
<option value="7">Liepa</option>;
<option value="8">Rugpjūtis</option>;
<option value="9">Rugsėjis</option>;
<option value="10">Spalis</option>;
<option value="11">Lapkritis</option>;
<option value="12">Gruodis</option>;</select></td>
<td width="99" align="center">
<input type="text" name="T1" value="10" size="5"></td>
<td><p align="center"><input type="button" name="save" value="Nu ble..." /></td>
</tr>';
if (isset($_POST['save'])){
echo 'labas';
if ($_POST['T1']!="") {
$kiek=stripinput($_POST['T1']);
for ($j = 1; $j <= $kiek; $j++){
$komanda=rand(1,39359);
echo '<tr>
<td width="125"> </td>
<td colspan="2"><a href="http://hockey.powerplaymanager.com/lt/kalendorius.html?data='.$komanda.'">http://hockey.powerplaymanager.com/lt/kalendorius.html?data='.$komanda.'</a></td>
</tr>';
}
}
} else {
echo '</table>
<p align="left">Atminkit. Kad tarp rezultatų gali būti ir Lietuvos komandų</p>';
}
closetable();
require_once THEMES."templates/footer.php";
?>