<?php $config = new Config(); $url = new URL(); $obj = new Volunteer(); $item_list = $obj->getVolunteers(); $id = $url->getRequestedItem(); echo Comman::loadView('admin-header'); if ($url->getRequestedFunction() != 'edit') { ?> <div class="container"> <div class="row"> <div class="col-md-4 col-md-offset-4"> <div class="panel"> <div class="panel-heading"> <div class="panel-title">Add Volunteer</div> </div> <div class="panel-body"> <form action="<?php echo Comman::getController('volunteer'); ?> ?action=create" method="post"> <label for="name">Name</label> <input type="text" required name="name" id="name" placeholder="Name" class="form-control"> <input type="hidden" name="return_path" value="<?php echo $url->getRequestedUri(); ?> /edit/"> <button type="submit" class="btn btn-primary" style="margin-top: 10px;">Add</button> </form> </div>
<?php $config = new Config(); $volunteer = new Volunteer(); $client = new Clients(); $Volunteers = $volunteer->getVolunteers(); $clients = $client->getClinets(); $pm = new PageManager(); ?> <!DOCTYPE html> <html ng-app="WomenLine" lang="en"> <head> <meta charset="UTF-8"> <base href="<?php echo $config->site_address; ?> "> <script src="<?php echo assets; ?> pace/pace.min.js"></script> <link href="<?php echo assets; ?> pace/pace.css" rel="stylesheet" /> <meta name="viewport" content="width=device-width,initial-scale=1.0"/> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <meta name="description" content="WomenLine" /> <meta name="keywords" content="building,business,construction,cleaning,transport,workshop" /> <meta name="author" content="WomenLine" /> <title>Loading...</title>
<?php /** * Created by PhpStorm. * User: Asus * Date: 5/30/2015 * Time: 1:28 PM */ require_once "../../includes/loader.php"; $volunteers = new Volunteer(); header("Content-type: application/json; charset=utf-8"); echo json_encode($volunteers->getVolunteers());