<?php
include_once '../inc/functions.php';

$id=$_GET['id'];

$p = R::load('pharmacies',$id);


echo "<div class='col-sm-4 col-sm-offset-2'>
                            <div class='form-group'>
                                <label>Responsable</label>
                                <input class='form-control' id='responsable' value='$p->responsable'>
                            </div>
                        </div>

                        <div class='col-sm-4'>
                            <div class='form-group'>
                                <label>Tel</label>
                                <input type='tel' class='form-control' id='tel' value='$p->tel'>
                            </div>
                        </div>

                        <div class='col-sm-4 col-sm-offset-2'>
                            <div class='form-group'>
                                <label>Email</label>
                                <input type='email' class='form-control' id='email' value='$p->email'>
                            </div>
                        </div>

                        <div class='col-sm-4'>
                            <div class='form-group'>
                                <label>Region</label>
                                <select class='form-control' id='region'>
                                    <option id='0'>";
                                    regionOfPharmacy($id);
 echo "                             </option>
                                </select>
                            </div>
                        </div>

                        <div class='col-sm-4 col-sm-offset-4'>
                            <div class='form-group'>
                                <label>province</label>
                                <select class='form-control' id='province'>
                                    <option id='0'>";
                                    selectedProvinceOfPharmacy($id);
echo                                "</option>
                                </select>
                            </div>
                        </div>

                        <div class='col-sm-12 text-center' style='margin-top: 25px;'>
                            <div class='form-group'>
                                <button class='btn btn-success btn-flat' id='valider' type='button'>Valider</button>
                                <!-- /.input group -->
                            </div>
                        </div>";


?>