Skip to content

Commit

Permalink
Modified relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicjprice committed Jul 18, 2017
1 parent 6544c7a commit e79de49
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions admin/visualisation-picker.php
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
<?php

require_once( '../../../../wp-load.php');
require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php');

$db = new Hn_TS_Database();

$timestreams = $db->hn_ts_getTimestreams();

?>
<form name="timestreampicker" id="timestreamForm" action="#">
<table class="form-table">


<tr>
<th>Select a Timestream</th>
<td>
<select id="timestream" name="timestream">
<option value=""> - Select - </option>
<?php

foreach($timestreams as $timestream)
{
echo "<option value=\"$timestream->timestream_id\">$timestream->name</option>";
}

?>
</select>
</td>
</tr>

<tr>
<th>Select a Visualisation</th>
<td>
<select id="viz" name="viz">
<option value=""> - Select - </option>
<?php

$visDir = "../visualisations/";
$visDirs = glob($visDir . "*", GLOB_ONLYDIR);

foreach($visDirs as $viz)
{
$vizName = basename($viz);
Expand All @@ -52,7 +52,7 @@
</table>
</form>


<p class="submit">
<input type="button" class="button-primary" value="Insert Visualisation" onclick="insert()" />
</p>
Expand Down

0 comments on commit e79de49

Please sign in to comment.