Şuanki Dizin: /home/wwwdreamtechnolo/public_html/kitchenfoodrecipes.com/disha/disha-foundation/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/kitchenfoodrecipes.com/disha/disha-foundation/follow-up.php |
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $succ_flag=0; require_once('lib/function.php'); $db = new login_function(); if(isset($_GET['delete_id'])) { $delete_id = $_GET['delete_id']; if($db->delete_follow_up_record($delete_id)) { $flag = 3; } } if(isset($_GET['update_id'])) { $up_id = $_GET['update_id']; $_SESSION['current_update_id'] = $up_id; } else if(isset($_SESSION['current_update_id'])) { $up_id = $_SESSION['current_update_id']; } if(isset($_POST['add'])) { $follow_id = $up_id ; $title = $_POST['title']; $desc = $_POST['desc']; $next_follow_date = $_POST['next_follow_date']; if($db->save_follow_up_data($follow_id,$title,$desc,$next_follow_date)) { $flag = 1; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width initial-scale=1.0"> <title>Scrap</title> <!-- GLOBAL MAINLY STYLES--> <link href="css/bootstrap.min.css" rel="stylesheet" /> <link href="css/font-awesome.min.css" rel="stylesheet" /> <link href="css/line-awesome.min.css" rel="stylesheet" /> <link href="css/themify-icons.css" rel="stylesheet" /> <link href="css/animate.min.css" rel="stylesheet" /> <link href="css/toastr.min.css" rel="stylesheet" /> <link href="css/bootstrap-select.min.css" rel="stylesheet" /> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"> <!-- THEME STYLES--> <link href="css/main.min.css" rel="stylesheet" /> <link href="datatable/datatables.min.css" rel="stylesheet" /> <link href="css/animate.css" rel="stylesheet" type="text/css" media="all"> <script src="js/wow.min.js"></script> </head> <body class="fixed-navbar"> <div class="page-wrapper" style="min-height:500px;"> <?php include('header.php'); ?> <?php include('side-bar.php'); ?> <div class="content-wrapper"> <div class="row" style="padding:0px; margin:0px; margin-top:15px; border-radius:15px;"> <?php if($succ_flag == 1) { ?> <div class="alert alert-success"> Next Follow Up Added Successful </div> <?php } if($succ_flag == 2) { ?> <div class="alert alert-warning"> Failed to Add. </div> <?php } if($succ_flag == 3) { ?> <div class="alert alert-warning"> This already assigned to this site </div> <?php } ?> <div class="ibox" style="border-radius:5px; padding:7px; width:100%;"> <form class="form-pink" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" name="myForm" onsubmit="return validateForm()" autocomplete="off" enctype="multipart/form-data"> <div class="ibox-head"> <div class="ibox-title"><i class="fas fa-user-tie" style="margin-right:10px;"></i>Add Follow Up</div> </div> <div class="ibox-body"> <div class="row"> <!-- <div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6"> <label class="form-group mb-4 set-row label_marg"><b>Follow Up Id</b></label> <div class="input-group-icon input-group-icon-left set-row"> <span class="input-icon input-icon-left"><i class="fas fa-user"></i></span> <input type="text" name="follow_id" class="form-control form-control-air" placeholder="Follow Up Id" /></td> </div> </div> --> <div class="col-sm-2 col-md-2 col-lg-2 form-group mb-2"> <label class="form-group mb-4 set-row label_marg"><b>Title</b></label> <div class="input-group-icon input-group-icon-left set-row"> <span class="input-icon input-icon-left"><i class="fas fa-user"></i></span> <input type="text" name="title" class="form-control form-control-air" placeholder="Enter Title" /></td> </div> </div> <div class="col-sm-2 col-md-2 col-lg-2 form-group mb-2"> <label class="form-group mb-4 set-row label_marg"><b>Description</b></label> <div class="input-group-icon input-group-icon-left set-row"> <span class="input-icon input-icon-left"><i class="fas fa-user"></i></span> <input type="text" name="desc" class="form-control form-control-air" placeholder="Enter Description" /></td> </div> </div> <div class="col-sm-2 col-md-2 col-lg-2 form-group mb-2"> <label class="form-group mb-4 set-row label_marg"><b>Next Follow Up Date</b></label> <div class="input-group-icon input-group-icon-left set-row"> <span class="input-icon input-icon-left"><i class="fas fa-user"></i></span> <input type="date" name="next_follow_date" class="form-control form-control-air" placeholder="Enter Next Follow Up Date" /></td> </div> </div> <div class="col-sm-6 form-group mb-6" style="text-align:center; padding-left:0px; padding-right:0px; padding-top:20px;"> <div class="col-sm-4 form-group mb-4" style="margin:auto;"> <button class="btn btn-pink btn-air" type="submit" name="add" style="width:100%;">SAVE DETAILS</button> </div> </div> </div> <!-- <center><a href="scrap-report.php" style="color:red;font-weight:bold;">Back To List</a> </center> --> </div> </form> </div> <div class="ibox" style="border-radius:5px; padding:7px;"> <div class="ibox-body" style="padding:7px; padding-top:0px;"> <div class="ibox-head"> <div class="ibox-title"><i class="fas fa-user-tie" style="margin-right:10px;"></i>Follow Up Report</div> </div> <br /> <div class="flexbox mb-4"> <div class="input-group-icon input-group-icon-left mr-3"> <span class="input-icon input-icon-right font-16"><i class="fas fa-search"></i></span> <input class="form-control form-control-rounded form-control-solid" id="key-search" type="text" placeholder="Search ..."> </div> </div> <div class="table-responsive row"> <table class="table table-bordered table-hover" id="example" style="overflow-x:auto;overflow-y:auto;" cellpadding=0 cellspacing=0> <thead class="thead-default thead-lg"> <tr> <th>Sr No</th> <th>Follow Up Id</th> <th>Title</th> <th>Description</th> <th>Follow Up Date</th> <th>date</th> <th>time</th> <th class="text-center">Edit</th> <th class="text-center">Delete</th> </tr> </thead> <tbody> <?php $data = array(); $data = $db->get_all_follow_up_details( $up_id); $counter = 1; if(!empty($data)) { foreach($data as $record) { $res_id = $record[0]; $follow_id = $record[1]; $titel = $record[2]; $desc = $record[3]; $next_follow_date = $record[4]; $date = $record[5]; $time = $record[6]; ?> <tr class="odd gradeX"> <td class=""><?php echo $counter++; ?></td> <td class=""><?php echo $follow_id; ?></td> <td class=""><?php echo $titel; ?></td> <td class=""><?php echo $desc; ?></td> <td class=""><?php echo $next_follow_date; ?></td> <td class=""><?php echo $date; ?></td> <td class=""><?php echo $time; ?></td> <td class="center"><a href="edit-follow-up.php?update_id=<?php echo $id;?>"> <i class="far fa-edit" style="color:blue;margin-left:20px;"></i></a> </td> <td class="center"><a href="<?php echo $_SERVER['PHP_SELF']."?delete_id=".$res_id; ?>" onclick="return confirm('Are you sure?');"><i class="fas fa-trash-alt" style="color:red; margin-left:20px;"></i></a> </td> </tr> <?php $counter++; } }else { ?> <td colspan="7">No Data Found..</td> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </body> </div> </div> </div> </div> <?php include('footer.php'); ?> </div> </div> <?php //include('search.php'); ?> <div class="sidenav-backdrop backdrop"></div> <div class="preloader-backdrop"> <div class="page-preloader">Loading</div> </div> <script src="js/jquery.min.js"></script> <script src="js/popper.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/metisMenu.min.js"></script> <script src="js/jquery.slimscroll.min.js"></script> <script src="js/idle-timer.min.js"></script> <script src="js/toastr.min.js"></script> <script src="js/jquery.validate.min.js"></script> <script src="js/bootstrap-select.min.js"></script> <script src="datatable/datatables.min.js"></script> <script src="js/app.min.js"></script> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4