2023-01-08 20:46:58 +00:00
|
|
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
<?php $this->load->view('includes/header');?>
|
|
|
|
<div class="page-container">
|
|
|
|
<!-- start sidebar menu -->
|
|
|
|
<?php $this->load->view('includes/sidebar');?>
|
|
|
|
<!-- start page content -->
|
|
|
|
<div class="page-content-wrapper">
|
|
|
|
<div class="page-content">
|
|
|
|
<div class="page-bar">
|
|
|
|
<div class="page-title-breadcrumb">
|
|
|
|
<div class=" pull-left">
|
|
|
|
<div class="page-title">Add Project</div>
|
|
|
|
</div>
|
|
|
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
|
|
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
|
|
|
</li>
|
|
|
|
<li class="active">Project</li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Midium Model -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 col-sm-12">
|
|
|
|
<div class="card card-box">
|
|
|
|
<div class="card-head">
|
|
|
|
<header>Project</header>
|
|
|
|
</div>
|
|
|
|
<div class="card-body" id="bar-parent">
|
|
|
|
<form action="<?=base_url();?>add_project" method="post">
|
|
|
|
<div class="form-body">
|
|
|
|
<div class="form-group row">
|
|
|
|
<label class="control-label col-md-3"> Project Date
|
|
|
|
<span class="required"> * </span>
|
|
|
|
</label>
|
|
|
|
<div class="col-md-5">
|
|
|
|
<input type="date" name="date" data-required="1" class="form-control input-height formDatePicker">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
|
|
<label class="control-label col-md-3">Name
|
|
|
|
<span class="required"> * </span>
|
|
|
|
</label>
|
|
|
|
<div class="col-md-5">
|
|
|
|
<input name="projectName" type="text" placeholder="Enter Project Name" class="form-control input-height" /> </div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
|
|
<label class="control-label col-md-3">Faculty Name
|
|
|
|
<span class="required"> * </span>
|
|
|
|
</label>
|
|
|
|
<div class="col-md-5">
|
2023-01-11 07:17:57 +00:00
|
|
|
<select class="form-control input-height" name="faculty">
|
|
|
|
<option value="" selected="selected" id="faculty_id" >Select</option>
|
2023-01-08 20:46:58 +00:00
|
|
|
<?php
|
|
|
|
if(isset($fac) && $fac->num_rows()>0)
|
|
|
|
{
|
|
|
|
foreach($fac->result() as $faculty)
|
|
|
|
{
|
|
|
|
?> <option value="<?=$faculty->id;?>"><?=$faculty->name;?></option><?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
|
|
<label class="control-label col-md-3">Student
|
|
|
|
<span class="required"> * </span>
|
|
|
|
</label>
|
|
|
|
<div class="col-md-5">
|
2023-01-11 07:17:57 +00:00
|
|
|
<select class="form-control input-height" id="sudent_id" name="student">
|
2023-01-08 20:46:58 +00:00
|
|
|
<option value="" selected="selected">Select</option>
|
|
|
|
<?php
|
|
|
|
if(isset($stu) && $stu->num_rows()>0)
|
|
|
|
{
|
|
|
|
foreach($stu->result() as $student)
|
|
|
|
{
|
|
|
|
?> <option value="<?=$student->id;?>"><?=$student->name;?></option><?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
|
|
<label class="control-label col-md-3">Semester
|
|
|
|
<span class="required"> * </span>
|
|
|
|
</label>
|
|
|
|
<div class="col-md-5">
|
|
|
|
<input name="semester" type="text" placeholder="Enter semester" class="form-control input-height" /> </div>
|
|
|
|
</div>
|
2023-01-11 07:17:57 +00:00
|
|
|
<div class="form-group row">
|
|
|
|
<label class="control-label col-md-3">Subject Code
|
2023-01-08 20:46:58 +00:00
|
|
|
<span class="required"> * </span>
|
|
|
|
</label>
|
|
|
|
<div class="col-md-5">
|
2023-01-11 07:17:57 +00:00
|
|
|
<select class="form-control input-height" name="subject">
|
|
|
|
<option value="" selected="selected">Select</option>
|
|
|
|
<?php
|
|
|
|
if(isset($sub) && $sub->num_rows()>0)
|
|
|
|
{
|
|
|
|
foreach($sub->result() as $subject)
|
|
|
|
{
|
|
|
|
?> <option value="<?=$subject->id;?>"><?=$subject->code;?></option><?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</div>
|
2023-01-08 20:46:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
|
|
<label class="control-label col-md-3">Department.
|
|
|
|
<span class="required"> * </span>
|
|
|
|
</label>
|
|
|
|
<div class="col-md-5">
|
|
|
|
<select class="form-control input-height" id="departmentId" name="department">
|
|
|
|
<option value="" selected="selected">Select</option>
|
|
|
|
<?php
|
|
|
|
if(isset($dep) && $dep->num_rows()>0)
|
|
|
|
{
|
|
|
|
foreach($dep->result() as $depart)
|
|
|
|
{
|
|
|
|
?> <option value="<?=$depart->id;?>"><?=$depart->name;?></option><?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-11 07:17:57 +00:00
|
|
|
<div class="form-group row">
|
|
|
|
<label class="control-label col-md-3">Description
|
|
|
|
<span class="required"> * </span>
|
|
|
|
</label>
|
|
|
|
<div class="col-md-5">
|
|
|
|
<textarea name="description" placeholder=" Enter Designation" class="form-control" rows="5"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-08 20:46:58 +00:00
|
|
|
<div class="form-group row">
|
2023-01-11 07:17:57 +00:00
|
|
|
<label class="control-label col-md-3">Video
|
2023-01-08 20:46:58 +00:00
|
|
|
<span class="required"> * </span>
|
|
|
|
</label>
|
|
|
|
<div class="col-md-5">
|
|
|
|
<input name="vedio" type="text" placeholder="Enter Vedio Link" class="form-control input-height" /> </div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
|
|
<label class="control-label col-md-3">Drive Link
|
|
|
|
<span class="required"> * </span>
|
|
|
|
</label>
|
|
|
|
<div class="col-md-5">
|
2023-01-11 07:17:57 +00:00
|
|
|
<input name="drivelink" type="text" placeholder="Enter Drive Link" class="form-control input-height" /> </div>
|
2023-01-08 20:46:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group row">
|
2023-01-11 07:17:57 +00:00
|
|
|
<label class="control-label col-md-3">Project Image
|
2023-01-08 20:46:58 +00:00
|
|
|
</label>
|
|
|
|
<div class="col-md-5 compose-editor">
|
|
|
|
<input name="image" type="file" class="form-control default" multiple>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-actions">
|
|
|
|
<div class="row">
|
|
|
|
<div class="offset-md-3 col-md-9">
|
|
|
|
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
|
|
|
<button type="button" class="btn btn-default">Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Modal -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-11 07:17:57 +00:00
|
|
|
<?php $this->load->view('includes/footer');?>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
function initializeSelect2(selectElementObj) {
|
|
|
|
selectElementObj.select2({
|
|
|
|
width: "100%",
|
|
|
|
tags: true
|
|
|
|
});
|
|
|
|
}
|
|
|
|
$("#faculty").each(function() {
|
|
|
|
initializeSelect2($(this));
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
</script>
|