150 lines
6.7 KiB
PHP
150 lines
6.7 KiB
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>TEAM</title>
|
|
<link rel="stylesheet" type="text/css" href="asset/css/bootstrap.css" />
|
|
<link rel="stylesheet" type="text/css" href="asset/css/style.css" />
|
|
<script src="asset/js/jquery.js"></script>
|
|
<script>
|
|
$(document).ready(function(){
|
|
var teknik = ["Informatika","Telekomunikasi","Elektro","Industri"];
|
|
var manajemen = ["Bisnis","Informatika","Ekonomi","Akutansi"];
|
|
var desain = ["A","B","C","D"];
|
|
|
|
$('#fakultas').on('change', function() {
|
|
var fakultas = this.value;
|
|
$('#jurusan').empty().append('<option value="none">--Pilih Jurusan/Prodi--</option>');
|
|
var jurusan = [];
|
|
switch (fakultas) {
|
|
case 'Teknik' :
|
|
jurusan = teknik;
|
|
break;
|
|
case 'Manajemen' :
|
|
jurusan = manajemen;
|
|
break;
|
|
case 'Desain' :
|
|
jurusan = desain;
|
|
break;
|
|
}
|
|
$.each( jurusan, function( intValue, a ) {
|
|
$('#jurusan').append("<option value="+a+">"+a+"</option>");
|
|
});
|
|
});
|
|
})
|
|
//$(this).append('<option value="Option Value">Option Name</option>');
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-default" role="navigation">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<a class="navbar-brand" href="<?php echo base_url ?>" style="height:50px;padding:2px 15px;font-family:Modern;"><img src="asset/image/pic_0000_Group-1-copy.png" height="100%"/> Socmed Campus</a>
|
|
</div>
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li><a href="home.php"><img src="asset/image/home.png" width="20px" title="Home"></a></li>
|
|
<li><a href="<?php base_url ?>home.php?action=logout" id="com"><img src="asset/image/logout.png" title="Logout" width="20px"></a></li>
|
|
</li>
|
|
</ul>
|
|
</div><!-- /.navbar-collapse -->
|
|
</div><!-- /.container-fluid -->
|
|
</nav>
|
|
|
|
<?php if(isset($_SESSION['notif-alert'])) { ?>
|
|
<div class="alert alert-warning notif" id="alert" style="height:100%;padding:3px;padding-left:6px;width:94%;"><?php echo $_SESSION['notif-alert'] ?></div>
|
|
<?php } ?>
|
|
|
|
<div class="rows">
|
|
<div class="container">
|
|
<div class=col-lg-4>
|
|
</div>
|
|
<div class=col-lg-4>
|
|
<?php if(isset($_GET['action'])) { ?>
|
|
<form role="form" action="<?php echo base_url.'profile.php?action=cedit'?>" method="post" enctype="multipart/form-data">
|
|
<?php }else{ ?>
|
|
<form role="form" action="<?php echo base_url.'home.php?action=regis'?>" method="post" enctype="multipart/form-data">
|
|
<?php } ?>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Name</label>
|
|
<input type="text" class="form-control" maxlength="20" value="<?php if(isset($data))echo $data['nama']; ?>" name="name" placeholder="Enter Name" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Date of Birth</label>
|
|
<input type="date" value="<?php if(isset($data))echo $data['dob']; ?>" class="form-control" name="dob" placeholder="YYYY-MM-DD" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputPassword1">Telp</label>
|
|
<input type="telp" class="form-control" maxlength="15" value="<?php if(isset($data))echo $data['telp']; ?>" name="telp" placeholder="telp" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputPassword1">Address</label>
|
|
<input type="text" class="form-control" value="<?php if(isset($data))echo $data['address']; ?>" name="address" placeholder="Enter Address" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputPassword1">Hometown</label>
|
|
<input type="text" class="form-control" value="<?php if(isset($data))echo $data['hometown']; ?>" name="hometown" placeholder="Enter Hometown" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputPassword1">Faculty</label>
|
|
<select name="fakultas" class="form-control" id="fakultas" required>
|
|
<option value="none">--Pilih Fakultas--</option>
|
|
<option value="Teknik" <?php if(isset($data) && $data['Fakultas'] == "Teknik") echo "selected"; ?>>Teknik</option>
|
|
<option value="Manajemen" <?php if(isset($data) && $data['Fakultas'] == "Manajemen") echo "selected"; ?>>Manajemen</option>
|
|
<option value="Desain" <?php if(isset($data) && $data['Fakultas'] == "Desain") echo "selected"; ?>>Desain</option>
|
|
<option value="Ilmu terapan" <?php if(isset($data) && $data['Fakultas'] == "Ilmu terapan") echo "selected"; ?>>Ilmu Terapan</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputPassword1">Jurusan/Prodi</label>
|
|
<select name="jurusan" class="form-control" id='jurusan' required>
|
|
<?php if(isset($data)) { ?>
|
|
<option value="<?php echo $data['Jurusan'] ?>"><?php echo $data['Jurusan'] ?></option>
|
|
<?php }else {?>
|
|
<option value="none">--Pilih Jurusan/Prodi--</option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputPassword1">Year</label>
|
|
<input type="number" class="form-control" name="angkatan" value="<?php if(isset($data))echo $data['Angkatan']; ?>" placeholder="Enter Year" max="2020" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputPassword1">Class</label>
|
|
<input type="text" class="form-control" value="<?php if(isset($data))echo $data['Kelas']; ?>" name="kelas" maxlength="2" placeholder="Enter Class" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputPassword1">Relationship Status</label>
|
|
<select name="relati" class="form-control" required>
|
|
<option value="1" <?php if(isset($data) && $data['relationship'] == 1) echo "selected"; ?>>Lajang</option>
|
|
<option value="2" <?php if(isset($data) && $data['relationship'] == 2) echo "selected"; ?>>Berpacaran</option>
|
|
<option value="3" <?php if(isset($data) && $data['relationship'] == 3) echo "selected"; ?>>Menikah</option>
|
|
<option value="4" <?php if(isset($data) && $data['relationship'] == 4) echo "selected"; ?>>Di PHP</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputFile">File Foto</label>
|
|
<?php if(isset($_GET['action'])) { ?>
|
|
<img src="<?php echo $data['avatar'];?>" width="100px"></br></br>
|
|
<input type="hidden" value="<?php echo $data['id'] ?>" name="idprof">
|
|
<?php } ?>
|
|
<input type="file" name="file">
|
|
<p class="help-block">Maksimal ukuran 40x40 pixel</p>
|
|
</div>
|
|
<button type="submit" class="btn btn-default">Submit</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</br>
|
|
|
|
<!--footer-->
|
|
<div id="footer" style="background-color:#222;color:#fff;padding:10px;box-sizing:border-box;">
|
|
<div class="container">
|
|
<p class="text-muted">copyright by IFTeam</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|