Example #1
0
                    <img src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">
                    <h4>Label</h4>
                    <span class="text-muted">Something else</span>
                </div>
                <div class="col-xs-6 col-sm-3 placeholder">
                    <img src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">
                    <h4>Label</h4>
                    <span class="text-muted">Something else</span>
                </div>
            </div>

            <?php 
require_once 'database.php';
require_once 'table_generator.php';
$result = $conn->query("SELECT first_name As Actor FROM actor limit 10");
$table = tableGenerator($result);
if ($table != false) {
    echo "<h2 class='sub-header'>Medicines Received</h2>";
    echo "<div class='table-responsive'>";
    echo "<table class='table table-striped'>";
    echo $table;
    echo "</tbody>";
    echo "</table>";
    echo "</div>";
}
?>

        </div>
    </div>
</div>
Example #2
0
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary"><?php 
echo isset($_GET['doctor_id']) ? 'Update' : 'Submit';
?>
</button>
                    </div>
                </div>
            </form>


            <?php 
require_once 'database.php';
require_once 'table_generator.php';
$result = $conn->query("SELECT actor_id AS '#', first_name FROM actor limit 10");
$table = tableGenerator($result, array('delete' => "http://localhost/labdb/controllers/delete_recept.php?id=", 'edit' => "http://localhost/labdb/controllers/add_recept.php?id="));
if ($table != false) {
    echo "<h2 class='sub-header'>Open Receptions</h2>";
    echo "<div class='table-responsive'>";
    echo "<table class='table table-striped'>";
    echo $table;
    echo "</tbody>";
    echo "</table>";
    echo "</div>";
}
?>

        </div>
    </div>
</div>