/in_progress.php
PHP | 80 lines | 76 code | 4 blank | 0 comment | 0 complexity | d09fb716ef0f2aaa1b10f9a77fed22b3 MD5 | raw file
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <?php include("validate_session.php")?>
- <?php
- $act = $_GET['act'];
- $goal = $_GET['goal'];
- $title = $_GET['title'];
- $title = sprintf("'%s'",$title);
- ?>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Dowhat</title>
- <!-- jQuery -->
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
- <!-- jQuery calendar stuff -->
- <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
- <!-- Stylesheet -->
- <link href = "/css/main.css" rel = "stylesheet" type="text/css" />
- <script src="/scripts/main.js"></script>
- <script>
- jQuery(function(){
- var act = <?php echo $act;?>;
- var goal = <?php echo $goal;?>;
- var title = String(<?php echo $title;?>);
- in_progress_ready(act,title,goal);
- $("#timeform").click(function(){
- $("#s_span").fadeToggle();
- $("#s").fadeToggle();
- });
- });
- </script>
- </head>
- <body>
- <div id="container">
- <div id="header">
- <img src="/images/logo.png" alt="keyPOW" width="200px"/>
- </div>
- <div id="sidebar">
- <p>
- <a href="/keypow.html">Home</a>
- </p>
- <p>
- <a href="/main.php">Enter Log</a>
- </p>
- <p>
- <a href="/view_log.php">View Logs</a>
- </p>
- <p>
- <a href="/logout.php">Log out</a>
- </p>
- </div>
- <div id="content">
- <div class="box">
- <form>
- <fieldset class="controls">
- <h1><span id="activity_title"></span></h1></br>
- Elapsed Time:</br>
- <div class="scooter">
- <input class="ticker" wdisabled="true" value="0" id="h"></input>Hrs
- <input class="ticker" disabled="true" value="0" id="m"></input>Min
- <input class="ticker" disabled="true" value="0" id="s"></input>Sec
- </div>
- <p>
- <input type="button" class="myBtn" value="Cancel" id="cancel" onclick="cancel_log()"/>
- </p>
- <p>
- <input type="button" class="myBtn" value="Stop and Log" id="log" onclick="inprog_log()"/>
- </p>
- </fieldset>
- </form>
- </div>
- </div>
- </div>
- </body>
- </html>