예제 #1
0
		 <div style="height:40px"></div>
		
		 <input type="button" value="Checkin" onclick="checkinrecords()" style="color:#ff0000"/>
</form>
<?php 
} else {
    $recordJSON = $_POST["records"];
    $records = json_decode($recordJSON);
    $screenshot = $records->{"photo"};
    $location = $records->{"location"};
    $text = $records->{"text"};
    date_default_timezone_set("Asia/Shanghai");
    $currdate = date("Y-n-j G:i:s");
    require_once "library.php";
    $Records = new Records($location, $screenshot, $text, $currdate);
    $successfulStored = RecordsStore::store($Records);
    $_SESSION['Records'] = serialize($Records);
    ?>
<table border = 0>
<tr>
  <td><img alt="image generated from separate PHP" width="200" height="240" src="screenshot.php" />
  </td>
</tr>
<tr>
<td>
<font color="purple">
<i>
<div align="center">
<?php 
    echo "\"" . $text . "\"";
    ?>