- Miscellany
- Monday, July 30th, 2007 at 6:45:13am MDT
- <script language="javascript">
- var teller = new Array();
- <?PHP
- $dbres = mysql_query("SELECT kogelsgekocht,lastkill, misdaad, wachttijd_autostelen, `oc`,`octijd`,UNIX_TIMESTAMP(`oc`) AS `oc` FROM `[users]` WHERE `login`='".$_SESSION['login']."'");
- $data = mysql_fetch_assoc($dbres);
- $dbres = mysql_query("SELECT `opdruktijd1`, UNIX_TIMESTAMP(`opdruktijd`) AS `opdruktijd`, getaway FROM `[userinfo]` WHERE `login`='".$_SESSION['login']."'");
- $data2 = mysql_fetch_assoc($dbres);
- ?>
- teller[0] = <?php echo $data['misdaad'] + 120 - time(); ?>;
- teller[2] = <?php echo $data['wachttijd_autostelen'] + 240 - time(); ?>;
- teller[1] = <?php echo $data['oc'] + $data['octijd'] + 3600 - time(); ?>;
- teller[3] = <?php echo $data2['opdruktijd'] + $data2['opdruktijd1'] - time(); ?>;
- teller[4] = <?php echo $data2['getaway'] + 1800 - time(); ?>;
- teller[6] = <?php echo $data['kogelsgekocht'] + 900 - time(); ?>;
- teller[5] = <?php echo $data['lastkill'] + 1800 - time(); ?>;
- function countdown(){
- for(a = 0; a <= 6; a++){
- teller[a] = teller[a]-1;
- if(teller[a] < 0)
- {
- document.getElementById('counter').value = "Ready!";
- } else {
- var tijd = teller[a];
- var uur = parseInt(tijd / 3600);
- tijd = tijd - uur * 3600;
- var min = parseInt(tijd / 60);
- tijd = tijd - min * 60;
- var sec = tijd;
- document.getElementById('counter').value = uur +":"+ min +":"+ sec;
- }
- }
- }
- setInterval("countdown()",1000);
- </script>
- <form>
- <table width="100%" cellspacing="0" cellpadding="0" align="center">
- <tr>
- <td colspan="4" align="center" class="titel">Bulletstar - Wachttijden van <?=$_SESSION['login'];?></td>
- </tr>
- <tr>
- <td class="tekstS" width="132">Misdaden</td>
- <td align="center" class="tekst2S" width="131"><input type="text" id="counter" class="secteller_wachttijden"></td>
- <td class="tekstS" width="191">Georganiseerde Misdaad</td>
- <td align="center" class="tekst2S" width="126"><input type="text" id="counter" class="secteller_wachttijden"></td>
- </tr>
- <tr>
- <td class="tekstS" width="132">Auto stelen</td>
- <td align="center" class="tekst2S" width="131"><input type="text" id="counter" class="secteller_wachttijden"></td>
- <td class="tekstS" width="191">Sportschool</td>
- <td align="center" class="tekst2S" width="126"><input type="text" id="counter" class="secteller_wachttijden"></td>
- </tr>
- <tr>
- <td class="tekstS" width="132">Heist</td>
- <td align="center" class="tekst2S" width="131"><input type="text" id="counter" class="secteller_wachttijden"></td>
- <td class="tekstS" width="191">Vermoorden</td>
- <td align="center" class="tekst2S" width="126"><input type="text" id="counter" class="secteller_wachttijden"></td>
- </tr>
- <tr>
- <td class="tekstS" width="132">Kogels kopen</td>
- <td align="center" class="tekst2S" width="131"><input type="text" id="counter" class="secteller_wachttijden"></td>
- <td class="tekstS" width="191"> </td>
- <td align="center" class="tekst2S" width="126"> </td>
- </tr>
- <tr>
- <td colspan="4" class="titel"> </td>
- </tr>
- </table>
- </form>
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.