HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/bsadmin-portal/add-cutoff.php
<?php
	include("../classes/site_class.php");
	$obj = new Site();
	
	if($_SESSION['admin']['user_id']=='')
	{
		echo "<script>window.location.href='index.php'</script>";
	}
	
	if(isset($_REQUEST['Submit']) and !empty($_REQUEST['Submit']) and ($_REQUEST['Submit']=='Submit'))
	{
		$resp = $obj->addCutoff();
		if($resp==7)
		{
		   echo "<script>alert('Pdf / Word / Image file is greater then 15 MB')</script>";
		}
		if($resp==8)
		{
		  echo "<script>alert('Select file extension not Pdf / Word / Image')</script>";
		}
		if($resp==0)
		{
		  echo "<script>alert('Required parameter missing.')</script>";
		}
		if($resp==5)
		{
			echo "<script>alert('Cut Off Lists added successfully.')</script>";
			echo "<script>window.location.href='manage-cutoff.php'</script>";
		}
		if($resp==1 )
		{
			echo "<script>alert('Cut Off Lists is not save, Please try later.')</script>";
			echo "<script>window.location.href='add-cutoff.php'</script>";
		}
	}
?>
<!doctype html>
<html class="fixed">
	<head>
		<title>Cut Off Lists :: SBSC Admin</title>
		<?php include("inc-head.php");?>
	</head>
	<body>
		<section class="body">
			<!-- start: header -->
				<?php include("inc-header.php"); ?>
			<!-- end: header -->
			<div class="inner-wrapper">
				<!-- start: sidebar -->
					<?php include("inc-navigation.php"); ?>
				<!-- end: sidebar -->
				<section role="main" class="content-body">
					<header class="page-header">
						<h2>Cut Off Lists Management</h2>
						<div class="right-wrapper pull-right">
							<ol class="breadcrumbs">
								<li>
									<a href="dashboard.php"><i class="fa fa-home"></i></a>
								</li>
								<li><span>Cut Off Lists Management</span></li>
								<li><span>Add Cut Off Lists</span></li>
							</ol>
							<a class="sidebar-right-toggle"></a>
						</div>
					</header>
					<!-- start: page -->
					<section class="panel">
						<header class="panel-heading">
							<div class="panel-actions">
								<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
								<a href="#" class="panel-action panel-action-dismiss" data-panel-dismiss></a>
							</div>
							<h2 class="panel-title">Add Cut Off Lists</h2>
						</header>
						<div class="panel-body">
							<div class="row">
							
							</div>
							<form class="form-horizontal" name="cutoff_form" method="Post" action="" enctype="multipart/form-data">
								<div class="form-group">
									<label for="name" class="control-label col-sm-2">Academic Year*</label>
								    <div class="col-sm-10">
										<select name="year" class="form-control">
                                            <option value="">Select</option>
                                            <option value="2020-21">2020-21</option>
                                            <option value="2021-22">2021-22</option>
                                            <option value="2022-23">2022-23</option>
                                            <option value="2023-24">2023-24</option>
                                            <option value="2024-25">2024-25</option>
                                </select>
								    </div>
								</div>
								<div class="form-group">
									<label for="name" class="control-label col-sm-2">Cut Off Lists Title*</label>
								    <div class="col-sm-10">
										<input type="text" class="form-control" name="name">
								    </div>
								</div>
								<div class="form-group">
									<label class="col-md-2 control-label" for="inputDefault">Upload Pdf*</label>
									<div class="col-md-10">
										<input type="file" name="image" id="file" class="form-control" >
										<p class="hint">Select only PDF, Word file for upload</p>
									</div>
								</div>
								
								<div class="form-group">
									<div class="col-sm-offset-2 col-sm-10">
										<br/>
										<input type="submit" class="btn btn-primary" name="Submit" value="Submit" onclick="return Validate_AddCutoff();" />
								    </div>
								</div>
							</form>
						</div>
					</section>
					<!-- end: page -->
				</section>
			</div>
		</section>
		<?php include("inc-footer.php"); ?>
	</body>
</html>