Exemple #1
0
function get($arr)
{
    if (isset($arr['id'], $arr['type'])) {
        $id = $arr['id'];
        $type = $arr['type'];
        switch ($type) {
            case 'plant':
                getPlant($id);
                break;
            case 'camera':
                getCamera($id);
                break;
        }
    } else {
        if (isset($arr['type'])) {
            $type = $arr['type'];
            switch ($type) {
                case 'plan':
                    getPlan();
                    break;
            }
        }
    }
}
Exemple #2
0
<?php

session_start();
require 'inc/database.php';
require 'inc/commons.php';
checkUserLoggedIn();
include 'inc/header.php';
$friend = getFriend($_GET["friendID"]);
$plant = getPlant($_GET["plantID"]);
?>
<div class="row">

  <div class="large-8 small-12 columns card">

    <div class="titleOnCard">
      Your Selection
    </div>
  <ul class="pricing-table">
    <li class="title"><?php 
echo $plant->name;
?>
</li>

    <li class="description">
      <div class="row">
        <div class="large-12 small-12 columns">
              <img src="<?php 
echo getPlantImage($plant->id);
?>
" />
        </div>