<th>Team</th> <th>MatchPlayed?</th> <th>Batted?</th> <th>Bowled?</th> </tr> </thead> <tbody> <?php $i = 1; for ($j = 0; $j < $nteams; $j++) { $result = mysqli_query($con, "select * from players where team='{$teams[$j]}'"); while ($row = mysqli_fetch_array($result)) { echo '<tr><td><input class="read" type="text" name="pid' . $i . '" value="' . $row["player_id"] . '" readonly></td>'; echo '<td><input class="read" type="text" name="pname' . $i . '" value="' . $row["name"] . '" readonly></td>'; echo '<td><input class="read" type="text" name="skill' . $i . '" value="' . $row["skill"] . '" readonly></td>'; echo '<td><input class="read" type="text" name="team' . $i . '" value="' . team($row["team"]) . '" readonly></td>'; echo '<td><input type="checkbox" name="match' . $i . '" id="match' . $i . '" value="1" onclick="call(' . $i . ')"></td>'; echo '<td><input type="checkbox" class="play' . $i . '" name="bat' . $i . '" id="bat' . $i . '" value="1" style="visibility:hidden" onclick="callbat(' . $i . ')"></td>'; echo '<td><input type="checkbox" class="play' . $i . '" name="bwl' . $i . '" id="bwl' . $i . '" value="1" style="visibility:hidden" onclick="callbwl(' . $i . ')"></td></tr>'; $i++; } } echo '</tbody></table><br/><br/><br/></div>'; ?> <div class="right"> <table> <thead> <tr> <th>NotOut</th> <th>RunsScored</th> <th>BallsFaced</th>
document.getElementById("myDiv").innerHTML=xmlhttp.responseText; expandread(); } } xmlhttp.open("GET","update_form.php?fixid="+str,true); xmlhttp.send(); } </script> </head> <body> <form action="update.php" method="post" name="theform"> <?php echo '<select name="fix" onchange="load(this.value)"><option value="0">SELECT Fixture</option>'; $result = mysqli_query($con, "SELECT * from fixtures where updated=false AND actual_time<>0 Order by actual_time"); while ($row = mysqli_fetch_array($result)) { echo '<option value="' . $row["fixture_id"] . '">' . $row["fixture_id"] . ' - ' . team($row["team1"]) . ' - VS - ' . team($row["team2"]) . ' ON ' . date("F d, Y", $row["actual_time"]) . '</option>'; } echo '</select>'; ?> <br/><br/> <div id="myDiv"> </div> </form> <button onclick="check()" style="display:none;" id="button">Submit</button> <script type="text/javascript"> function check () { var temp = confirm("Please Review Your Contents Again !!! Changes later on is impossible\nIf you want to Continue,Press OK"); if(temp==true) { document.theform.submit();
<td class="data-w">' . $row4["runscore"] . ' ' . $no . '</td> <td class="data-w">' . $row4["ballfaced"] . '</td> <td class="data-l">' . $row4["four"] . '</td> <td class="data-l">' . $row4["six"] . '</td> <td class="data-pts">' . $row4["strrate"] . '</td> <td class="data-pts">' . $row4["point"] . '</td></tr>'; } ?> </tbody> </table> </div> </div> <br/> <div class="title" style="padding: 17px 10px;background: #b81e1f;text-align: center;margin: 0 0 10px;"> <h4 style="color: #fff;margin: 0;text-transform: uppercase;"><?php echo team($row["team1"]); ?> Bowling</h4> </div> <div class="vc_clearfix"> <div class="vc_league_table sp-table-wrapper sp-scrollable-table-wrapper"> <table class="sp-league-table sp-data-table sp-responsive-table sp-sortable-table sp-paginated-table" data-sp-rows="11"> <thead> <tr> <th class="data-name">Player</th> <th class="data-w">O</th> <th class="data-w">M</th> <th class="data-l">R</th> <th class="data-l">W</th> <th class="data-pts">Econ</th> <th class="data-pts">Pts</th>
echo 'No more fixtures'; } $row = mysqli_fetch_array($query); ?> </div> <div class="commands"> <div class="command"> <h5><a href="javascript:void(0);"><?php echo team($row["team1"]); ?> </a></h5> </div> <div class="command_vs"><span>-</span> VS <span>-</span></div> <div class="command"> <h5><a href="javascript:void(0);"><?php echo team($row["team2"]); ?> </a></h5> </div> </div> <div class="match_info"><?php if (mysqli_num_rows($query) > 2) { echo date("F d, Y | H:i", $row["actual_time"]); } else { echo 'No more fixtures'; } ?> </div> </div> </div> </div>
return $a[0]->text(); } function data($url) { $document = new Document($url, true); $a = $document->find('.game-info p'); return $a[1]->text(); } $result = allurl(); $t = array(); foreach ($result as $post) { //echo $post->attr('href'), "\n"; $tmp = array(); $url = $post->attr('href'); $tmp['teamFirst'] = team($url, true); $tmp['secondFirst'] = team($url, false); $tmp['score'] = scoreMatch($url); $tmp['status'] = statusMatch($url); $tmp['data'] = data($url); array_push($t, $tmp); } //echo json_encode($t); $file = 'match.json'; file_put_contents($file, json_encode($t)); echo "Ок"; /* $url='http://www.sports.ru/khl/dinamo-hockey-ska/21-09-2015/#online'; echo team($url,true); echo data($url); echo scoreMatch($url); echo team($url,false); echo statusMatch($url);
require_once basePath . "/inc/menu-functions/shout.php"; require_once basePath . "/inc/menu-functions/teamspeak.php"; require_once basePath . "/inc/menu-functions/kalender.php"; require_once basePath . "/inc/menu-functions/team.php"; ## SETTINGS ## $time_start = generatetime(); lang($language); $dir = "sites"; ## SECTIONS ## if (!isset($_GET['i'])) { $action = ""; } else { $action = $_GET['i']; } switch ($action) { case 'kalender': echo kalender($_GET['month'], $_GET['year']); break; case 'teams': echo team($_GET['tID']); break; case 'server': echo '<table class="hperc" cellspacing="0">' . server($_GET['serverID']) . '</table>'; break; case 'shoutbox': echo '<table class="hperc" cellspacing="1">' . shout(1) . '</table>'; break; case 'teamspeak': echo '<table class="hperc" cellspacing="0">' . teamspeak(1) . '</table>'; break; }
# figure this mess out later } else { if (array_count_values($arrangement)[-1] == 1) { $arrangement = distribute($arrangement); } } $multiple = verify($arrangement); if ($multiple !== true) { # we have an unresolveable conflict return array(-1, -1, -1, -1, -1); } return $arrangement; } $region = "NA1"; $id = $_GET['id']; //$data = json_decode(file_get_contents("https://na.api.pvp.net/observer-mode/rest/consumer/getSpectatorGameInfo/$region/$id?api_key=$key"), true); $data = json_decode(file_get_contents("json/testfile.json"), true); $champname = json_decode(file_get_contents("json/champions.json"), true); $spellname = json_decode(file_get_contents("json/spells.json"), true); $champions = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $spells = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); foreach ($data['participants'] as $key => $player) { $champions[$key] = $player['championId']; $spells[$key * 2] = $player['spell1Id']; $spells[$key * 2 + 1] = $player['spell2Id']; } for ($i = 0; $i < 10; $i++) { echo $champname[$champions[$i]]['name'] . " " . $spellname[$spells[$i * 2]]['name'] . " " . $spellname[$spells[$i * 2 + 1]]['name'] . "</br>"; } print_r(team(array_slice($champions, 0, 5), array_slice($spells, 0, 10)));
?> <li> <div class="event_date"> <div class="date"> <?php echo date('d', $row['actual_time']) . '<span>' . date('F', $row['actual_time']) . '</span>'; ?> </div> </div> <div class="commands"> <h3><?php echo team($row['team1']); ?> <span>-VS-</span><?php echo team($row['team2']); ?> </h3> <div class="time"><i class="fa fa-clock-o"></i><?php echo date('h:i', $row['actual_time']); ?> </div> <div class="stadium"><i class="fa fa-map-marker"></i>VESIT GROUND</div></div> <div class="read_more"> <a class="btn btn-info btn-lg white" <?php echo 'href="../../scorecard.php?fixture=' . $row['fixture_id'] . '"'; ?> >View Scorecard</a> </div>