<li class="dropdown dropdown-user dropdown-dark"> <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> <span class="glyphicon glyphicon-circle-arrow-down"></span> <?php if (protectThis("2")) { //CLINIC ADMIN echo $full_name . " Admin"; } if (protectThis("3")) { //USER echo $full_name; } ?> </a> <ul class="dropdown-menu dropdown-menu-default"> <li> <a href="profile_account.php"> <i class="icon-user"></i> My Profile </a> </li> <!-- <li> <a href="page_calendar.html"> <i class="icon-calendar"></i> My Calendar </a> </li> <li> <a href="inbox.html"> <i class="icon-envelope-open"></i> My Inbox <span class="badge badge-danger"> 3 </span> </a>
<a href="home.php?t=w">Home</a><i class="fa fa-circle"></i> </li> <li> <a href="#">Admin</a> <i class="fa fa-circle"></i> </li> <li class="active"> User List </li> </ul> <!-- END PAGE BREADCRUMB --> <!-- BEGIN PAGE CONTENT INNER --> <div class="row"> <div class="col-md-12"> <?php if (protectThis("1,2")) { ?> <!-- BEGIN USERS TABLE PORTLET--> <div class="portlet light"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-cogs font-green-sharp"></i> <span class="caption-subject font-green-sharp bold uppercase">Users</span> </div> <div class="tools"> <a href="javascript:;" class="collapse"> </a> <a href="javascript:;" onclick="Xcrud.reload()" class="reload"> </a>
$file_ext = $ftp_file_ext; $email = $email; $folder = $ftp_folder; //echo $file_ext; //echo "<br>" .$email; //echo "<br>" .$folder; //echo "<br>" .$branch; $target_dir = "/var/www/html/notify/IMPORT/upload/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $target_filename = basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $action = $_POST['action']; $imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); $mimes = array('text/csv', 'text/plain', 'application/csv', 'text/comma-separated-values', 'application/excel', 'application/vnd.ms-excel', 'application/vnd.msexcel', 'text/anytext', 'application/octet-stream', 'application/txt'); include 'xcrud/xcrud.php'; if (protectThis("1")) { } ?> <!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <!-- BEGIN HEAD --> <head> <?php include 'inc/_tracking_js.php'; ?>
<?php include 'header.php'; protect("*"); require 'classes/config.php'; if (protectThis("2")) { //CLINIC ADMIN $stmt = $db->prepare('SELECT * FROM accounts WHERE `user_id`=:user_id'); $stmt->bindValue(':user_id', $user_id); $branch = $user_id; } $stmt->bindValue(':user_id', $user_id); $stmt->execute(); $rs = $stmt->fetchAll(); foreach ($rs as $user_values) { $email = $user_values['email']; $ftp_folder = $user_values['ftp_folder']; $ftp_file_ext = $user_values['ftp_file_ext']; $ftp_cutoff = $user_values['ftp_cutoff']; } $file_ext = $ftp_file_ext; $email = $email; $folder = $ftp_folder; //echo $file_ext; //echo "<br>" .$user_id; //echo "<br>" .$email; //echo "<br>" .$folder; //echo "<br>" .$branch; //echo "<br>" .$ftp_cutoff; $currentDate = date("Y-m-d"); include 'xcrud/xcrud.php';