Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Miscellany
Monday, July 30th, 2007 at 6:45:13am MDT 

  1. <script language="javascript">
  2.  
  3. var teller      =     new Array();
  4. <?PHP
  5.  
  6. $dbres    = mysql_query("SELECT kogelsgekocht,lastkill, misdaad, wachttijd_autostelen, `oc`,`octijd`,UNIX_TIMESTAMP(`oc`) AS `oc` FROM `[users]` WHERE `login`='".$_SESSION['login']."'");
  7. $data      = mysql_fetch_assoc($dbres);
  8.  
  9. $dbres      = mysql_query("SELECT `opdruktijd1`, UNIX_TIMESTAMP(`opdruktijd`) AS `opdruktijd`, getaway FROM `[userinfo]` WHERE `login`='".$_SESSION['login']."'");
  10. $data2      = mysql_fetch_assoc($dbres);
  11.        
  12. ?>
  13.  
  14. teller[0]       =      <?php echo $data['misdaad']  + 120 - time(); ?>;
  15. teller[2]       =      <?php echo $data['wachttijd_autostelen'] + 240 - time(); ?>;
  16. teller[1]       =      <?php echo $data['oc'] + $data['octijd'] + 3600 - time(); ?>;
  17. teller[3]       =      <?php echo $data2['opdruktijd'] + $data2['opdruktijd1'] - time(); ?>;
  18. teller[4]       =      <?php echo $data2['getaway'] + 1800 - time(); ?>;
  19. teller[6]       =      <?php echo $data['kogelsgekocht'] + 900 - time(); ?>;
  20. teller[5]       =      <?php echo $data['lastkill'] + 1800 - time(); ?>;
  21.  
  22.         function countdown(){
  23.                 for(a = 0; a <= 6; a++){
  24.                 teller[a]       =      teller[a]-1;
  25.  
  26.                         if(teller[a] < 0)
  27.                         {
  28.                           document.getElementById('counter').value      =     "Ready!";
  29.                         } else {
  30.                          var tijd       =      teller[a];
  31.                          var uur                =       parseInt(tijd / 3600);
  32.                          tijd    = tijd - uur * 3600;
  33.                          var min                =       parseInt(tijd / 60);
  34.                          tijd      =  tijd - min * 60;
  35.                          var sec                =       tijd;
  36.                          document.getElementById('counter').value     = uur +":"+ min +":"+ sec;
  37.                         }
  38.                 }
  39.         }
  40.  
  41. setInterval("countdown()",1000);
  42. </script>
  43.  
  44. <form>
  45. <table width="100%" cellspacing="0" cellpadding="0" align="center">
  46.         <tr>
  47.                 <td colspan="4" align="center" class="titel">Bulletstar - Wachttijden van <?=$_SESSION['login'];?></td>
  48.         </tr>
  49.         <tr>
  50.                 <td class="tekstS" width="132">Misdaden</td>
  51.                 <td align="center" class="tekst2S" width="131"><input type="text" id="counter" class="secteller_wachttijden"></td>
  52.                 <td class="tekstS" width="191">Georganiseerde Misdaad</td>
  53.                 <td align="center" class="tekst2S" width="126"><input type="text" id="counter" class="secteller_wachttijden"></td>
  54.         </tr>
  55.         <tr>
  56.                 <td class="tekstS" width="132">Auto stelen</td>
  57.                 <td align="center" class="tekst2S" width="131"><input type="text" id="counter" class="secteller_wachttijden"></td>
  58.                 <td class="tekstS" width="191">Sportschool</td>
  59.                 <td align="center" class="tekst2S" width="126"><input type="text" id="counter" class="secteller_wachttijden"></td>
  60.         </tr>
  61.         <tr>
  62.                 <td class="tekstS" width="132">Heist</td>
  63.                 <td align="center" class="tekst2S" width="131"><input type="text" id="counter" class="secteller_wachttijden"></td>
  64.                 <td class="tekstS" width="191">Vermoorden</td>
  65.                 <td align="center" class="tekst2S" width="126"><input type="text" id="counter" class="secteller_wachttijden"></td>
  66.         </tr>
  67.     <tr>
  68.                 <td class="tekstS" width="132">Kogels kopen</td>
  69.                 <td align="center" class="tekst2S" width="131"><input type="text" id="counter" class="secteller_wachttijden"></td>
  70.                 <td class="tekstS" width="191">&nbsp;</td>
  71.                 <td align="center" class="tekst2S" width="126">&nbsp;</td>
  72.         </tr>
  73.         <tr>
  74.                 <td colspan="4" class="titel">&nbsp;</td>
  75.         </tr>
  76.  
  77. </table>
  78. </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.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

fantasy-obligation