$pen = "pen"; echo "<label id='h' style='cursor:pointer;' onmouseover='pophouse()' onmouseout='hideprompt()'> House "; echo $pig->getCurrentHouse($_GET['pig']); echo "</label>"; echo "<label id='p' style='cursor:pointer;' onmouseover='poppen()' onmouseout='hideprompt()'> Pen "; echo $pig->getCurrentPen($_GET['pig']); echo "</label>"; ?> </label> <div class="col-sm-4 col-md-4 col-lg-4"> <?php $last = $db->getLastMovement($_GET['pig']); $first = $db->getFirstMovement($_GET['pig']); $diff = $last - $first + 1; $db->getWeekDateMvmnt($_GET['pig'], $first); $db->getPigMvmnt($_GET['pig']); ?> <button type="button" onclick="drawVisualization()" title="Click this button to view weight details of selected pig." class="btn btn-default btn-sm" id="btnVisualize" onmouseover="pop('movement')" onmouseout="hideprompt()">Visualize</button> </div> </div> </form> <div id="movement_tbl" style="width:60%; height:150px; overflow:auto;float:left;"> <table class="table table-striped table-bordered" > <thead> <tr> <th>Date</th> <th>Time</th> <th>Location</th> </tr> </thead>