File manager - Edit - /home/autoph/public_html/pms_v1/pages/topHeader.php
Back
<?php $userID = $_SESSION['userID']; ?> <div id="topHeader" class="container fluid col-12" style='background:#000 ;min-height:70px;border-bottom:2px solid red'> <div id="topLogo" style='background:#000;min-width:270px;height:70px;border-bottom:2px solid red'> <img src='./images/logo.png' style='width:150px;margin-left:10px;height:'></img> <i class="fa fa-bars" id="smallBars" style='float:right;margin-top:15px'></i> <button type="button" id="smButtonMail" class="btn btn-dark position-relative"> <i class="fa fa-envelope" style='margin-right:10px'></i> <span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger"> <?php $sqlCountMail = "SELECT * FROM pms_inbox WHERE deleted = 0 AND `read_unread`=0 AND `receiver_id`='$uID'"; $myMail = mysqli_query($conn,$sqlCountMail) or die("Bad query"); $mailUnreadCount = mysqli_num_rows($myMail); echo $mailUnreadCount; //$conn->close(); ?> <span class="visually-hidden"></span> </span> </button> <button type="button" id="smButtonAlert" class="btn btn-dark position-relative "> <i class="fa fa-bell" style='margin-right:10px'></i> <span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-Info"> <?php $sqlCountAlert = "SELECT * FROM pms_notification WHERE deleted = 0 AND `read_unread`=0 AND `receiver_id`='$uID'"; $alert = mysqli_query($conn,$sqlCountAlert) or die("Bad query"); $alertUnreadCount = mysqli_num_rows($alert); echo $alertUnreadCount; $conn->close(); ?> <span class="visually-hidden"></span> </span> </button> </div> <div id="topLogoB" style='background:#000;margin:5px;height:60px;padding:5px'> <div class="dropdown" style='background:#000;margin:5px'> <!--260221--> <button type="button" id="smButtonAlertA" class="btn btn-dark position-relative "> <i class="fa fa-users" style='margin-right:10px;color:#A6A4A6'> PMS Administration</i> <span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger text-white"> <?php echo $alertUnreadCount; ?> <span class="visually-hidden"></span> </span> </button> <button type="button" id="smButtonMailB" class="btn btn-dark position-relative" > <i class="fa fa-envelope" style='margin-right:10px;color:#A6A4A6'> My Inbox</i> <span id='inboxCount' class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger"> <?php echo $mailUnreadCount;?> <span class="visually-hidden"></span> </span> </button> <button type="button" class="btn btn-dark dropdown-toggle" data-toggle="dropdown" id="profileButton"> <i class="fa fa-user" style='margin-right:10px;color:#A6A4A6'><?php echo " ". strtoupper($uFname);?></i> </button> <div class="dropdown-menu bg-light" style="width:335px;height:400px;padding:20px;border-radius:50px;border:1px dashed gray"> <div class="profileImage" onclick='clickProfileImage()' style='background-image:url(./images/profile/<?php echo $imgF;?>);border-radius:110px;border:solid 1px red'> </div> <div class = 'bg-light'style="float:left;width:100%;height:30px;background:white;margin-top:10px"> <i class="fa fa-user-circle profileIcon" aria-hidden="true"></i> <span class="profileData"><?php echo strtoupper($uFname . ' '. $uLname);?></span> </div> <div class = 'bg-light' style="float:left;width:100%;height:30px;margin-top:1px"> <i class="fa fa-user-circle profileIcon" aria-hidden="true"></i> <span class="profileData"><?php echo strtoupper(getEmployeeEmpInformation($userID)[0]);?></span> </div> <div class = 'bg-light'style="float:left;width:100%;height:30px;background:white;margin-top:1px;margin-bottom:20px"> <i class="fa fa-user-circle profileIcon" aria-hidden="true"></i> <span class="profileData"><?php echo getCompanyName($compID)[0];?></span> <br><br><button type="button" class="btn btn-link"><a href="logout.php" class="fa fa-window-close text-danger" aria-hidden="true"> Logout</a> </button> <!--<input required type="file" name="ProfileImage" id='ProfileImage' onchange="uploadProfile()" class="btn btn-link" style='display:block'> --> <button type="button" id='uploadPicture' data-toggle="modal" data-target="#proPic" class="btn btn-link fa fa-upload">Upload</button> </div> </div> </div> </div> </div> <!--MODAL FORM FOR ADD NEW AREA--> <!-- The Modal --> <div class="modal fade " id="proPic"> <div class="modal-dialog modal-md"> <div class="modal-content"> <!-- Modal Header --> <div class="modal-header"> <h4 class="modal-title">Upload Photo</h4> <button type="button" class="close" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <div class="form-group"> <form id="uploadForm" enctype="multipart/form-data"> <input type="file" name="file" id="file"> <input type="hidden" name="userID" id="userID" value='<?php echo $uID;?>'> </div> </div> <div id="uploadStatus" class="p-3"></div> <!-- Modal footer <button class="btn btn-success pageUpperRightMenu " data-toggle="modal" data-target="#myModal"><span class="btn-label"><i class="fa fa-plus"> Add</i></button> --> <div class="modal-footer"> <button type="submit" class="btn btn-info"> <span class="btn-label"><i class="fa fa-close"> Upload</i></button> <button type="button" class="btn btn-danger" data-dismiss="modal"> <span class="btn-label"><i class="fa fa-close"> Close</i></button> </div> </form> </div> </div> </div> <script type="text/javascript" src="https://code.jquery.com/jquery-3.6.3.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script type="text/javascript" src="https://code.jquery.com/jquery-2.2.1.js"></script> <script language="javascript" type="text/javascript"> $(document).ready(function(){ $("#uploadForm").submit(function(e){ e.preventDefault(); var formData = new FormData(this); //alert('test'); $.ajax({ type: "POST", url: "ajaxCall/profilePicUpload.php", // The PHP script that handles file upload data: formData, processData: false, contentType: false, success: function(response){ $("#uploadStatus").html(response); } }); }); }); </script>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings