function listClients() { $results = array(); $data = client::getList(); $results['clients'] = $data['results']; $results['totalRows'] = $data['totalRows']; $results['pageTitle'] = "Tutti i Clienti"; if (isset($_GET['error'])) { if ($_GET['error'] == "clientNotFound") { $results['errorMessage'] = "Errore: cliente non trovato."; } } if (isset($_GET['status'])) { if ($_GET['status'] == "changesSaved") { $results['statusMessage'] = "Le tue modifiche sono state salvate."; } if ($_GET['status'] == "clientDeleted") { $results['statusMessage'] = "Cliente eliminato."; } } require TEMPLATE_PATH . "/admin/listClients.php"; }
?> </b>. <a href="admin.php?action=logout" ? class="btn btn-primary" role="button">Log out</a></p> </div> </div> <h2><?php echo $results['pageTitle']; ?> </h2> <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="file" /> <select name="owner" id="owner" class="form-control"> <?php $results = array(); $data = client::getList(); $results['clients'] = $data['results']; $results['totalRows'] = $data['totalRows']; foreach ($results['clients'] as $client) { ?> <option value="<?php echo $client->username; ?> "> <?php echo $client->name; ?> <?php echo $client->surname; ?> </option>