154 lines
5.5 KiB
PHP
154 lines
5.5 KiB
PHP
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
|
<?php $this->load->view('includes/header');?>
|
|
<!--<style>
|
|
.input-group .input-group-addon {
|
|
border-radius: 0;
|
|
border-color: #d2d6de;
|
|
background-color: #fff;
|
|
border: 1px solid #d2d6de;
|
|
padding: 6px 12px;
|
|
}
|
|
.form-control{
|
|
width: 100%;
|
|
height: 34px;
|
|
padding: 6px 12px;
|
|
background-color: #fff;
|
|
border: 1px solid #c2cad8;
|
|
box-shadow: none!important;
|
|
outline: 0!important;
|
|
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
|
font-size: 14px;
|
|
line-height: 1.42857;
|
|
color: #555;
|
|
}
|
|
.fa{
|
|
padding-top:8px;
|
|
}
|
|
</style>-->
|
|
<div class="page-container">
|
|
<?php $this->load->view('includes/sidebar');?>
|
|
<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">Edit 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">Edit Project</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
<!-- Midium Model -->
|
|
<?php
|
|
if(isset($pro) && $pro->num_rows()>0)
|
|
{
|
|
$p=$pro->row();
|
|
$id=$p->id;
|
|
$date=$p->date;
|
|
$name=$p->projectName;
|
|
$student=$p->student;
|
|
$semester=$p->semester;
|
|
$department=$p->department;
|
|
$faculty=$p->faculty;
|
|
$image=$p->image;
|
|
|
|
} ?>
|
|
<div class="row">
|
|
<div class="col-md-12 col-sm-12">
|
|
<div class="card card-box">
|
|
<div class="card-head">
|
|
<header>Edit Project</header>
|
|
</div>
|
|
<div class="card-body" id="bar-parent">
|
|
<form action="<?=base_url();?>edit_project/<?=$id;?>" method="post" >
|
|
<div class="form-body">
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Date
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input type="text" value="<?=$date;?>" name="date" data-required="1" placeholder="Enter name" class="form-control input-height">
|
|
</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 type="text" value="<?=$name;?>" name="projectName" data-required="1" placeholder="Enter name" class="form-control input-height">
|
|
</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">
|
|
<input name="student" value="<?=$student;?>" type="text" placeholder="Enter hod" class="form-control error" />
|
|
</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" value="<?=$semester;?>" type="text" placeholder="Enter hod" class="form-control error" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Faculty
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input name="faculty" value="<?=$faculty;?>" type="text" placeholder="Enter hod" class="form-control error" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Department.
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<input name="department" value="<?=$department;?>" type="text" placeholder="Enter hod" class="form-control input-height" /> </div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Gender
|
|
<span class="required"> * </span>
|
|
</label>
|
|
<div class="col-md-5">
|
|
<select class="form-control input-height" name="gender">
|
|
<option value="">Select...</option>
|
|
<option value="Male">Male</option>
|
|
<option value="Female">Female</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="control-label col-md-3">Profile Img
|
|
</label>
|
|
<div class="compose-editor">
|
|
<input name="image" value="<?=$image;?>" type="file" class="form-control" >
|
|
</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>
|
|
<?php $this->load->view('includes/footer');?>
|