Commit 45ef4c54 authored by Tariq Khan's avatar Tariq Khan 💬

Update index.php

parent 30b3c0cf
......@@ -3,7 +3,7 @@ $url = strtok($_SERVER["REQUEST_URI"],'?');
require_once getcwd().'/oauth2.php';
$oauth2 = new Oauth2(array(
'occupieUrl' => 'https://api.occupie.com',
'client' => 'trustedclient',
'client' => 'trustedclient',
'clientSecret' => 'you-client-secret-key-goes-here',
'scope' => 'hubapi'));
?>
......@@ -62,28 +62,23 @@ $oauth2 = new Oauth2(array(
<form action="<?php echo $url; ?>?create" method="post">
<div>
<label for="name">Name:</label>
<input type="text" name="trackingdevicename" id="trackingdevicename"
required placeholder="Some string">
<input type="text" name="trackingdevicename" id="trackingdevicename" required placeholder="Some string">
</div>
<div>
<label for="">Type:</label>
<input type="text" name="trackingtype" id="trackingtype"
required placeholder="IN, OUT or IN/OUT">
<input type="text" name="trackingtype" id="trackingtype" required placeholder="IN, OUT or IN/OUT">
</div>
<div>
<label for="uid">Unique id:</label>
<input type="text" name="uniquedeviceid" id="uniquedeviceid"
required placeholder="Some string">
<input type="text" name="uniquedeviceid" id="uniquedeviceid" required placeholder="Some string">
</div>
<div>
<label for="siteid">Site id:</label>
<input type="text" name="siteid" id="siteid"
required placeholder="Some number">
<input type="text" name="siteid" id="siteid" required placeholder="Some number">
</div>
<div>
<label for="active">Active:</label>
<input type="text" name="active" id="active"
required placeholder="True or False">
<input type="text" name="active" id="active" required placeholder="True or False">
</div>
<input type="submit" name="create" value="Create" class="btn btn-default">
</form>
......@@ -114,18 +109,15 @@ $oauth2 = new Oauth2(array(
<form action="<?php echo $url; ?>?add=<?php echo $_GET['add']; ?>" method="post">
<div>
<label for="trackingentriesname">Name:</label>
<input type="text" name="trackingentriesname" id="trackingentriesname"
required placeholder="Some string">
<input type="text" name="trackingentriesname" id="trackingentriesname" required placeholder="Some string">
</div>
<div>
<label for="trackingtype">Type:</label>
<input type="text" name="trackingtype" id="trackingtype"
required placeholder="IN or OUT">
<input type="text" name="trackingtype" id="trackingtype" required placeholder="IN or OUT">
</div>
<div>
<label for="contactid">Contact id:</label>
<input type="text" name="contactid" id="contactid"
required placeholder="Some number">
<input type="text" name="contactid" id="contactid" required placeholder="Some number">
</div>
<input type="submit" name="add" value="Create" class="btn btn-default">
</form>
......@@ -147,12 +139,8 @@ $oauth2 = new Oauth2(array(
<tr>
<td><?php echo $value->trackingdeviceid; ?></td>
<td><?php echo $value->trackingdevicename; ?></td>
<td>
<a href="<?php echo $url; ?>?entries=<?php echo $value->trackingdeviceid; ?>">show entries</a>
</td>
<td>
<a href="<?php echo $url; ?>?add=<?php echo $value->trackingdeviceid; ?>">add entry</a>
</td>
<td><a href="<?php echo $url; ?>?entries=<?php echo $value->trackingdeviceid; ?>">show entries</a></td>
<td><a href="<?php echo $url; ?>?add=<?php echo $value->trackingdeviceid; ?>">add entry</a></td>
</tr>
<?php } ?>
</tbody>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment