</select> </div> <div class="form-group"> <label for="color_label">Sucursal: </label> <?php getBranchs(); ?> </div> </div> <button type="button" id="saveEmployee" class="btn btn-primary">Guardar</button> </form> </div> <div role="tabpanel" class="tab-pane fade" id="tableEmployee"> <?php getAllEmployees(); ?> </div> </div> </div> </div> </div> </div> </div> <?php include "footer.php"; ?> <?php include "js.php"; ?>
<?php //connect mysql_connect("mysql18.ezhostingserver.com", "hagan", "P@ssW0rd") or die(mysql_error()); mysql_select_db("employee") or die(mysql_error()); //call if (function_exists($_GET['method'])) { echo $_GET['method']; if ($_GET['method'] = 'getAllEmployees') { if (isset($_GET['end'])) { $end = $_GET['end']; } getAllEmployees($end); } if ($_GET['method'] = 'deleteEmployee') { if (isset($_GET['id'])) { $id = $_GET['id']; } deleteEmployee($id); } } //methods function getAllEmployees($end) { $query = "select * from employees WHERE isDeleted = `0` LIMIT " . $end; $employee_sql = mysql_query($query); $employees = array(); while ($employee = mysql_fetch_assoc($employee_sql)) { $employees[] = $employee; } $employees = json_encode($employees);
<?php include_once '../inc/config.php'; include_once '../inc/header.php'; ?> <div id="content" class="large-8 large-push-2 columns"> <div class="title"> Wall of Fame <span class="smaller">See all nominees, most recent first.</span> </div> <div id="winnerswall" class="row mCustomScrollbar height605" data-mcs-theme="dark-2"> <?php if (function_exists('getAllEmployees')) { $employees = getAllEmployees(); if ($employees != 0) { foreach ($employees as $employee) { $class = str_replace(' ', '', $employee["BeliefID"]); if ($employee["Type"] == 'Team') { ?> <div class="callout panel tableColumn-3 <?php echo $class; ?> "> <div class="mouseOver" id="wallT<?php echo $employee["ID"]; ?> "> <div class="nominateEmployeeImage"> <i class="icon-icons_mail right sendTeamMail"> <input type="hidden" id="sender" value="<?php echo $_SESSION['user']->EmpNum; ?>