Advertisement
adamsalem

Untitled

Aug 7th, 2011
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.74 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2.   "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  6. <link rel="stylesheet" href="../css/blueprint/screen.css" type="text/css" media="screen, projection">
  7. <link rel="stylesheet" href="../css/nav.css" type="text/css" media="screen, projection">
  8. <link rel="stylesheet" type="text/css" href="../css/anytime.css" />
  9.  
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="anytime.js"></script>
  12. <title>Capital Index</title>
  13. <style type="text/css">
  14. input.datetime
  15. {
  16.     background-image:url("images/calendar.png");
  17.     background-position:right center;
  18.     background-repeat:no-repeat;
  19.     border:1px solid #FFC030;
  20.     color:#3090C0;
  21.     font-weight:bold
  22. }
  23. label
  24. {
  25.     width: 15em;
  26.     float: left;
  27.     text-align: left;
  28.     margin-right: 0.5em;
  29.     display: block
  30. }
  31. .submit input
  32. {
  33.     margin-left: 5.5em;
  34. }
  35. </style>
  36. <script type="text/javascript">
  37. $(document).ready(function(){
  38.    $('input[class="datetime"]').AnyTime_picker({ format: "%d/%m/%y %H:%i", firstDOW: 1});
  39.  });
  40. </script>
  41. </head>                                                                
  42. <body>        
  43. <div class="container">
  44.     <div class="span-24">
  45.         <hr>
  46.         <h1>SOLST Capital Index</h1>
  47.         <?php include '../nav.php'; ?>
  48.     </div>
  49.     <?php
  50.         $database = new PDO('sqlite:capitalcalendar.sqlite');
  51.        
  52.         $obeliskdate = strtotime($_POST["obelisk"]);
  53.         $providencedate = strtotime($_POST["providence"]);
  54.         $morosdatedate = strtotime($_POST["moros"]);
  55.         $revelationdate = strtotime($_POST["revelation"]);
  56.         $thanatosdate = strtotime($_POST["thanatos"]);
  57.         $archondate = strtotime($_POST["archon"]);
  58.         $chimeradate = strtotime($_POST["chimera"]);
  59.         $nidhoggurdate = strtotime($_POST["nidhoggur"]);
  60.         $rorqualdate = strtotime($_POST["rorqual"]);
  61.         $orcadate = strtotime($_POST["orca"]);
  62.         $caprepdate = strtotime($_POST["caprep"]);
  63.         $capsbdate = strtotime($_POST["capsb"]);
  64.         $caprardate = strtotime($_POST["caprar"]);
  65.         $caprsbdate = strtotime($_POST["caprsb"]);
  66.         $capretdate = strtotime($_POST["capret"]);
  67.         $triagedate = strtotime($_POST["triage"]);
  68.         $siegedate = strtotime($_POST["siege"]);
  69.         $indycoredate = strtotime($_POST["indycore"]);
  70.         $dragonflydate = strtotime($_POST["dragonfly"]);
  71.         $firbolgdate = strtotime($_POST["firbolg"]);
  72.         $einherjidate = strtotime($_POST["einherji"]);
  73.         $templardate = strtotime($_POST["templar"]);
  74.        
  75.         if($_POST["obelisk"] != "")
  76.             {
  77.                 $query = "UPDATE calendar
  78.                 SET compdate = " . $obeliskdate .
  79.                 " WHERE id='obelisk';";
  80.                 $database->exec($query) or die(print_r($database->errorInfo(), true));
  81.             }
  82.         if($_POST["providence"] != "")
  83.             {
  84.                 $query = "UPDATE calendar
  85.                 SET compdate = " . $providencedate .
  86.                 " WHERE id='providence';";
  87.                 $database->exec($query) or die(print_r($database->errorInfo(), true));
  88.             }
  89.     ?>
  90.     <hr>
  91.     <div class="span-12">
  92.         <h2>New Price Form</h2>
  93.         <form name="minprices" method="POST" action="capitalcalendarupdate.php" style="margin-left:50px;">
  94.             <label for="obelisk">Obelisk </label><input type="text" class="datetime" id="obelisk" name="obelisk"><br>
  95.             <label for="providence">Providence</label> <input type="text" name="providence" class="datetime" id="providence"><br>
  96.             <label for="moros">Moros </label><input type="text" name="moros" class="datetime" id="moros"><br>
  97.             <label for="revelation">Revelation </label><input type="text" name="revelation" class="datetime" id="revelation"><br>
  98.             <label for="thanatos">Thanatos </label><input type="text" name="thanatos" class="datetime" id="thanatos"><br>
  99.             <label for="archon">Archon </label><input type="text" name="archon" class="datetime" id="archon"><br>
  100.             <label for="chimera">Chimera </label> <input type="text" name="chimera" class="datetime" id="chimera"><br>
  101.             <label for="nidhoggur">Nidhoggur </label> <input type="text" name="nidhoggur" class="datetime" id="nidhoggur"><br>
  102.             <label for="rorqual">Rorqual </label> <input type="text" name="rorqual" class="datetime" id="rorqual"><br>
  103.             <label for="orca">Orca </label> <input type="text" name="orca" class="datetime" id="orca"><br>
  104.             <label for="caprep">Capital Armor Repair </label> <input type="text" name="caprep" class="datetime" id="caprep"><br>
  105.             <label for="capsb">Capital Shield Booster </label> <input type="text" name="capsb" class="datetime" id="capsb"><br>
  106.             <label for="caprar">Capital Remote Armor Repair </label> <input type="text" name="caprar" class="datetime" id="caprar"><br>
  107.             <label for="caprsb">Capital Shield Transporter </label> <input type="text" name="caprsb" class="datetime" id="caprsb"><br>
  108.             <label for="capret">Capital Energy Transfer </label> <input type="text" name="capret" class="datetime" id="capret"><br>
  109.             <label for="triage">Triage Module </label> <input type="text" name="triage" class="datetime" id="triage"><br>
  110.             <label for="siege">Siege Module </label> <input type="text" name="siege" class="datetime" id="siege"><br>
  111.             <label for="indycore">Industrial Core </label> <input type="text" name="indycore" class="datetime" id="indycore"><br>
  112.             <label for="dragonfly">Dragonfly </label> <input type="text" name="dragonfly" class="datetime" id="dragonfly"><br>
  113.             <label for="firbolg">Firbolg </label> <input type="text" name="firbolg" class="datetime" id="firbolg"><br>
  114.             <label for="einherji">Einherji </label> <input type="text" name="einherji" class="datetime" id="einherji"><br>
  115.             <label for="templar">Templar </label> <input type="text" name="templar" class="datetime" id="templar"><br>
  116.             <br>
  117.             <label for="password">Password </label> <input type="password" name="password"><br>
  118.             <input type="submit" value="Submit">
  119.             </form>
  120.     </div>
  121. </div>
  122. </body>                                    
  123. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement