MMCT TEAM
Server IP : 2a02:4780:3:1493:0:3736:a38e:7  /  Your IP : 216.73.216.139
Web Server : LiteSpeed
System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64
User : u926327694 ( 926327694)
PHP Version : 7.4.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u926327694/domains/smsoft.in/public_html/demo/src/../temp_db/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u926327694/domains/smsoft.in/public_html/demo/src/../temp_db/../Sub_Head.php
<?php 

    // First we execute our common code to connection to the database and start the session 
    require("common.php"); 
     
    // At the top of the page we check to see whether the user is logged in or not 
    if(empty($_SESSION['user'])) 
    { 
        // If they are not, we redirect them to the login page. 
        header("Location: login.php"); 
         
        // Remember that this die statement is absolutely critical.  Without it,    
        // people can view your members-only content without logging in. 
        die("Redirecting to login.php"); 
    } 
     
    // Everything below this point in the file is secured by the login system 
     
    // We can display the user's username to them by reading it from the session array.  Remember that because 
    // a username is user submitted content we must use htmlentities on it before displaying it to the user. 

?>


<?php include "config/config.php";
$r=mysqli_query($con,"select * from sub_head");
?>

<!DOCTYPE html>
<html lang="en">
<head>


	
	<!-- start: Meta -->
	<meta charset="utf-8">
	<title>Fees Management</title>	<meta name="description" content="Bootstrap Metro Dashboard">
	<meta name="author" content="Dennis Ji">
	<meta name="keyword" content="Metro, Metro UI, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
	<!-- end: Meta -->
	
	<!-- start: Mobile Specific -->
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- end: Mobile Specific -->
	<link href="src/selectstyle.css" rel="stylesheet">
	
	
	
	<!-- start: CSS -->
	<link id="bootstrap-style" href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
	<link id="base-style" href="css/style.css" rel="stylesheet">
	<link id="base-style-responsive" href="css/style-responsive.css" rel="stylesheet">
	<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,cyrillic-ext,latin-ext' rel='stylesheet' type='text/css'>
	<!-- end: CSS -->
	

	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<link id="ie-style" href="css/ie.css" rel="stylesheet">
	<![endif]-->
	
	<!--[if IE 9]>
		<link id="ie9style" href="css/ie9.css" rel="stylesheet">
	<![endif]-->
		
	<!-- start: Favicon -->
	<link rel="shortcut icon" href="img/favicon.ico">
	<!-- end: Favicon -->
    <style type="text/css">
     

<script src="src/selectstyle.js"></script>

<!--
.style4 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
    </style>
</head>

<body onLoad="hide()">
		<!-- start: Header -->
	<?php include "menu_f.php"; ?>
	<!-- start: Header -->
	
		<div class="container-fluid-full">
		<div class="row-fluid">
				
			<!-- start: Main Menu -->
			<div id="sidebar-left" class="span2">
				<div class="nav-collapse sidebar-nav">
					<ul class="nav nav-tabs nav-stacked main-menu">
						<li><a href="dashboard.php"><i class="icon-bar-chart"></i><span class="hidden-tablet"> Dashboard</span></a></li>	
						
						<?php include "menu.php"; ?>							
						
						
						
					</ul>
				</div>
			</div>
			<!-- end: Main Menu -->
			
			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript>
			
			<!-- start: Content -->
			<div id="content" class="span10">
			
			
			<ul class="breadcrumb">
				<li>
					<i class="icon-home"></i>
					<a href="dashboard.php">Home</a>
					<i class="icon-angle-right"></i> 
				</li>
				<li>
					<i class="icon-edit"></i>
					<a href="#">Sub head</a>
				</li>
			</ul>
				
			<div class="box-content">
				<div class="row-fluid sortable">
				    
			<div class="row-fluid sortable">
					<div class="box-content">
									<form class="form-horizontal" action="Sub_Head1.php" method="post"  id="customer_form" enctype="multipart/form-data">

						  <fieldset>
						      
						      <div class="box span12">
					<div class="box-header" data-original-title>
						<h2><i class="halflings-icon white edit"></i><span class="break"></span>Create Fee Name</h2>
						
					</div>
							<div class="control-group">
							  <label class="control-label" for="typeahead">Sub Head</label>
							  <div class="controls">
								<input type="text" name="Sub_Head" class="span6 txtSub_Head  typeahead SpecialNotAllow" id="typeahead"  data-provide="typeahead" data-items="4"  required >
								
							  </div>
							</div>
							<div class="control-group">
							  <label class="control-label" for="Sub_Amount">Amount</label>
							  <div class="controls">
						  <input type="text" name="Sub_Amount" class="span6 typeahead <?php echo is_decimal_school($decimalFeesSchool) ? "decimal" : "numeric"; ?>" id="Sub_Amount"  data-provide="Sub_Amount" data-items="4"  required>

							
								
							  </div>
							  <!--<div class="control-group">-->
							  <!--<label class="control-label" for="typeahead">Status</label>-->
							  <!--<div class="controls">-->
							  <!--<input type="text" name="Sub_Amount" class="span6 typeahead" id="typeahead"  data-provide="typeahead" data-items="4"  required>-->

							  
								
							  <!--</div>-->
							</div>
							

							          
							
							<div class="controls">
							  <button type="submit" class="btn btn-primary">Save </button>
							  <button type="reset" class="btn">Cancel</button>
							</div>
							<br />
						  </fieldset>
					</form>

					</div>
				</div><!--/span-->
			
			
			
			<div class="box ">
					<div class="box-header" data-original-title>
						<h2><i class="halflings-icon white edit"></i><span class="break"></span>Fees Name with status</h2>
			</div>	
				<div class="box-content">
<table class="table table-bordered custom-datatable" >
	<thead>
    <tr>
        <th>ID</th>
        <th>Fees Name</th>
        <th>Amount</th>
        <th>Delete</th>
    </tr>
    </thead>		
    <tbody>
	<?php
	include "config/config.php";
	$r=mysqli_query($con,"SELECT * FROM `sub_head` where Status!='D' order by Sub_Id asc");
	while($row3=mysqli_fetch_array($r))
	{
	?>

	<tr>
	    <td ><div align="left"><?php echo $row3['Sub_Id']; echo" "; ?></div></td>
	<td ><div align="left"><?php echo $row3['Name']; echo" "; ?></div></td>
    <td style="text-align:right;" translate="no"><?php echo $row3['Amount']; echo" "; ?></td>
    <td>
        <a href="subheaddelete.php?id=<?php echo $row3['Sub_Id']; ?>" onclick="return confirm('Are you sure want to delete this sub head?')"><img src="delete.png"  width="25px" height="25px"></a>
    </td>
        
  </tr>
  <?php
  }
  ?>
  </tbody>
</table><br>
</div>

			</div><!--/row--></form> 

			
				<div class="row-fluid sortable">
				<div class="box ">
					<div class="box-header" data-original-title>
						<h2><i class="halflings-icon white edit"></i><span class="break"></span>Alter Fees Name </h2>
						
					</div>
					<div class="box-content">
									<form class="form-horizontal" onSubmit="rusure()"; action="Sub_Head_update.php" method="post"  id="customer_form" enctype="multipart/form-data">

						  <fieldset>
							  <div >
								<label class="control-label" for="selectError2">Sub_Head</label>
								<div class="controls">
								<select id="s"  data-search="true" data-rel="chosen" name="sub_id" onChange="myFunction()" required class="select2" style="width:50%;" >
								<option></option>
						

								  <?php 
								  	$r1=mysqli_query($con,"SELECT * FROM `sub_head`");

									while($row=mysqli_fetch_array($r1))
									{
									?>
									
									<option value="<?php echo $row['Sub_Id']; ?>"><?php  echo $row['Sub_Id']; ?>/<?php  echo $row['Name']; ?>/<?php echo $row['Amount']; ?></option>
									<?php 
									}
									?>
									</select>
								</div>
							  </div>
							  <div class="control-group">
							  <label class="control-label" for="typeahead">Set New Name</label>
							  <div class="controls">
							  <input type="text" name="Sub_Head" id="myP1"  >

								
							  </div>
							</div>
							
							<div class="control-group">
							  <label class="control-label" for="typeahead">Amount</label>
							  <div class="controls">
							  <input type="text" name="Sub_Amount"  id="demo"    required>

								
							  </div>
							</div>
							

							          
							
							<div class="controls">
							  <button type="submit" class="btn btn-primary">Save </button>
							  <button type="reset" class="btn">Cancel</button>
							  
							</div>
						  </fieldset>
					</form>

					</div>
				</div><!--/span-->

			</div>
			
    <form class="form-horizontal" action="Sub_Head_excel.php" method="post"  id="customer_form" enctype="multipart/form-data">

<center>
				<div class="element-file">
	<label class="title">Upload Excel File</label>
	<a href="Downloads/feesImport.csv" download="feesImport.csv">CSV Format File Format</a>
	<div class="item-cont">
	<label class="large" >
	<input type="file" class="file_input" name="file" />
	<div class="file_text"></div><span class="icon-place"></span></label></div></div>
		<input type="submit" name="bulk" value="Submit"/></form>	
			
    </center>
</form>

	</div><!--/.fluid-container-->
	
			<!-- end: Content -->
		</div><!--/#content.span10-->
		</div><!--/fluid-row-->
		

	
	
	
		
<footer>
		<p>
			<span style="text-align:left;float:left">&copy; 2018 <a href="http://evisioninfotech.in" alt="Bootstrap_Metro_Dashboard">e vision infotech</a></span>
			
		</p>

	</footer>
	
	<!-- start: JavaScript-->
<script>
function hide()
{
 document.getElementById("myP1").style.visibility = "hidden";
 document.getElementById("demo").style.visibility = "hidden"; 
 
}
</script>
<script>
function myFunction() {
	
document.getElementById("myP1").style.visibility = 'visible';
document.getElementById("demo").style.visibility = 'visible';

	  var x =document.getElementById("s").value;


   document.getElementById("myP2").value =  x;
}


function rusure()
{
	alert("Are You Sure To Update");
}
</script>
	
	
		<script src="js/jquery-1.9.1.min.js"></script>
	<script src="js/jquery-migrate-1.0.0.min.js"></script>
	
		<script src="js/jquery-ui-1.10.0.custom.min.js"></script>
	
		<script src="js/jquery.ui.touch-punch.js"></script>
	
		<script src="js/modernizr.js"></script>
	
		<script src="js/bootstrap.min.js"></script>
	
		<script src="js/jquery.cookie.js"></script>
	
		<script src='js/fullcalendar.min.js'></script>
	
		<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
        <script src="https://cdn.datatables.net/buttons/1.5.1/js/dataTables.buttons.min.js"></script>
        <script src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.html5.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.5.1/css/buttons.dataTables.min.css" />

		<script src="js/excanvas.js"></script>
	<script src="js/jquery.flot.js"></script>
	<script src="js/jquery.flot.pie.js"></script>
	<script src="js/jquery.flot.stack.js"></script>
	<script src="js/jquery.flot.resize.min.js"></script>
	
		<script src="js/jquery.chosen.min.js"></script>
	
		<script src="js/jquery.uniform.min.js"></script>
		
		<script src="js/jquery.cleditor.min.js"></script>
	
		<script src="js/jquery.noty.js"></script>
	
		<script src="js/jquery.elfinder.min.js"></script>
	
		<script src="js/jquery.raty.min.js"></script>
	
		<script src="js/jquery.iphone.toggle.js"></script>
	
		<script src="js/jquery.uploadify-3.1.min.js"></script>
	
		<script src="js/jquery.gritter.min.js"></script>
	
		<script src="js/jquery.imagesloaded.js"></script>
	
		<script src="js/jquery.masonry.min.js"></script>
	
		<script src="js/jquery.knob.modified.js"></script>
	
		<script src="js/jquery.sparkline.min.js"></script>
	
		<script src="js/counter.js"></script>
	
		<script src="js/retina.js"></script>

		<script src="js/custom.js"></script>
	<!-- end: JavaScript-->
<script type="text/javascript">
    $(function () {
        $(".SpecialNotAllow").keypress(function (e) {
            var keyCode = e.keyCode || e.which;

            var regex = /^[A-Za-z0-9 ()-]+$/;
 
            //Validate TextBox value against the Regex.
            var isValid = regex.test(String.fromCharCode(keyCode));
            if (!isValid) {
                return false;
            }
 
            return isValid;
        });
        
         $(".numeric").keypress(function (e) {
            var keyCode = e.keyCode || e.which;

            var regex = /^[0-9]+$/;
            var isValid = regex.test(String.fromCharCode(keyCode));
            if (!isValid) {
                return false;
            }
 
            return isValid;
        });
        
        $(".decimal").keypress(function (e) {
            var keyCode = e.keyCode || e.which;
            var regex = /^[0-9.]+$/;
            var isValid = regex.test(String.fromCharCode(keyCode));
        
            if (!isValid) {
                return false;
            }
        
            if (keyCode === 46 && $(this).val().indexOf('.') !== -1) {
                return false;
            }
        
            return isValid;
        });
    });
    $(".txtSub_Head").focus();
</script>
<script>
        $(document).ready(function() {
    $('.custom-datatable').DataTable( {
        dom: 'Bfrtip',
        bFilter: true, 
        bInfo: true,
        paging:true,
        buttons: [
            //'copyHtml5',
            'excelHtml5',
            'csvHtml5',
            //'pdfHtml5'
        ]
    } );
} );
    </script>
	
</body>
</html>

MMCT - 2023