Viewing file: r_buld.php (57.31 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include 'header.php';
?>
<link rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.min.css">
<style type="text/css">
.details a button{
border: 1px solid #1654b4;
color: #1654b4;
font-size: 17px;
}
.details a button:hover{
border: 1px solid #1654b4;
background-color: #0e45b3;
font-size: 17px;
}
.my-packages{
height: 99%;
}
#span1,#span2{
color: red;
}
.tips
{
float: right;color: #2d64b7;cursor: pointer;
}
.add
{
background: #2d64b7;
color: #FFF;
border-radius: 50px;
font-size: 13px;
padding: 5px 16px;
line-height: 28px;
cursor: pointer;
letter-spacing: 0.3px;
border: 1px solid #fff;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<div class="container">
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<!-- <button type="button" class="close" data-dismiss="modal">×</button> -->
<h4 class="modal-title">Core Competency</h4>
</div>
<div class="modal-body">
<table>
<tr>
<td> C </td>
<td>
<input type="checkbox" name="" value="C">
</td>
</tr>
<tr>
<td> C++ </td>
<td>
<input type="checkbox" name="C++" value="C++">
</td>
</tr><tr>
<td> C# </td>
<td>
<input type="checkbox" name="" value="C#">
</td>
</tr><tr>
<td> Java </td>
<td>
<input type="checkbox" name="" value="Java">
</td>
</tr><tr>
<td> Python </td>
<td>
<input type="checkbox" name="" value="Python">
</td>
</tr>
<tr>
<td> PHP </td>
<td>
<input type="checkbox" name="" value="PHP">
</td>
</tr>
<tr>
<td> ASP.NET </td>
<td>
<input type="checkbox" name="" value="ASP.NET">
</td>
</tr>
<tr>
<td> Ruby </td>
<td>
<input type="checkbox" name="" value="Ruby">
</td>
</tr>
<tr>
<td> SQL </td>
<td>
<input type="checkbox" name="" value="SQL">
</td>
</tr>
<tr>
<td> HTML </td>
<td>
<input type="checkbox" name="" value="HTML">
</td>
</tr>
<tr>
<td> CSS </td>
<td>
<input type="checkbox" name="" value="CSS">
</td>
</tr>
<tr>
<td> Javascript </td>
<td>
<input type="checkbox" name="" value="Javascript">
</td>
</tr>
<tr>
<td> Acrobat </td>
<td>
<input type="checkbox" name="" value="Acrobat">
</td>
</tr>
<tr>
<td> Corel Draw </td>
<td>
<input type="checkbox" name="" value="Corel Draw">
</td>
</tr>
<tr>
<td> Photoshop </td>
<td>
<input type="checkbox" name="" value="Photoshop">
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<input type="hidden" name="skills_added" id="skills_added" >
<button style="margin-left: 200px;" class="add" id="skills_add" data-dismiss="modal">ADD</button>
</td>
</tr>
</table>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal_1" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<!-- <button type="button" class="close" data-dismiss="modal">×</button> -->
<h4 class="modal-title">Strengths</h4>
</div>
<div class="modal-body">
<table>
<tr>
<td> Punctuality </td>
<td>
<input type="checkbox" value="Punctuality">
</td>
</tr>
<tr>
<td> Work Ethic </td>
<td>
<input type="checkbox" value="Work Ethic">
</td>
</tr><tr>
<td> Flexibility </td>
<td>
<input type="checkbox" value="Flexibility">
</td>
</tr><tr>
<td> Adaptability </td>
<td>
<input type="checkbox" value="Adaptability">
</td>
</tr><tr>
<td> Time management </td>
<td>
<input type="checkbox" value="Time management ">
</td>
</tr>
<tr>
<td> Teamwork </td>
<td>
<input type="checkbox" value="Teamwork">
</td>
</tr>
<tr>
<td> Effective communication </td>
<td>
<input type="checkbox" value="Effective communication">
</td>
</tr>
<tr>
<td> Problem solving </td>
<td>
<input type="checkbox" value="Problem solving">
</td>
</tr>
<tr>
<td> Critical thinking </td>
<td>
<input type="checkbox" value="Critical thinking">
</td>
</tr>
<tr>
<td> Decision making </td>
<td>
<input type="checkbox" value="Decision making">
</td>
</tr>
<tr>
<td> Quick Learner </td>
<td>
<input type="checkbox" value="Quick Learner">
</td>
</tr>
<tr>
<td> Leadership </td>
<td>
<input type="checkbox" value="Leadership">
</td>
</tr>
<tr>
<td> Goal Oriented </td>
<td>
<input type="checkbox" value="Goal Oriented">
</td>
</tr>
<tr>
<td> Prioritizing Task </td>
<td>
<input type="checkbox" value="Prioritizing Task">
</td>
</tr>
<tr>
<td> Accuracy </td>
<td>
<input type="checkbox" value="Accuracy">
</td>
</tr>
<tr>
<td> Loyality </td>
<td>
<input type="checkbox" value="Loyality">
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<input type="hidden" name="skills_added" id="strength_added" >
<button style="margin-left: 200px;" class="add" id="strength_add" data-dismiss="modal">ADD</button>
</td>
</tr>
</table>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal_2" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<!-- <button type="button" class="close" data-dismiss="modal">×</button> -->
<h4 class="modal-title">Interests</h4>
</div>
<div class="modal-body">
<table>
<tr>
<td> Volunteering and community involvement </td>
<td>
<input type="checkbox" value="Volunteering and community involvement">
</td>
</tr>
<tr>
<td> Writing </td>
<td>
<input type="checkbox" value="Writing">
</td>
</tr><tr>
<td> Blogging </td>
<td>
<input type="checkbox" value="Blogging">
</td>
</tr><tr>
<td> Podcasting </td>
<td>
<input type="checkbox" value="Podcasting">
</td>
</tr><tr>
<td> Marketing </td>
<td>
<input type="checkbox" value="Marketing">
</td>
</tr>
<tr>
<td> Learning languages </td>
<td>
<input type="checkbox" value="Learning languages">
</td>
</tr>
<tr>
<td> Photography </td>
<td>
<input type="checkbox" value="Photography">
</td>
</tr>
<tr>
<td> Cooking </td>
<td>
<input type="checkbox" value="Cooking">
</td>
</tr>
<tr>
<td> Reading </td>
<td>
<input type="checkbox" value="Reading">
</td>
</tr>
<tr>
<td> Music </td>
<td>
<input type="checkbox" value="Music">
</td>
</tr>
<tr>
<td> Javascript </td>
<td>
<input type="checkbox" value="Javascript">
</td>
</tr>
<tr>
<td> Art </td>
<td>
<input type="checkbox" value="Art">
</td>
</tr>
<tr>
<td> Sports </td>
<td>
<input type="checkbox" value="Sports">
</td>
</tr>
<tr>
<td> Dancing </td>
<td>
<input type="checkbox" value="Dancing">
</td>
</tr>
<tr>
<td> Gardening </td>
<td>
<input type="checkbox" value="Gardening">
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<input type="hidden" name="skills_added" id="interest_added" >
<button style="margin-left: 200px;" class="add" id="interest_add" data-dismiss="modal">ADD</button>
</td>
</tr>
</table>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal_3" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<!-- <button type="button" class="close" data-dismiss="modal">×</button> -->
<h4 class="modal-title">Experience</h4>
</div>
<div class="modal-body">
<table >
<thead>
<tr><th>Company Name</th>
<th>Position</th>
<th>Duration</th>
</tr>
</thead>
<tbody>
<tr>
<td>Srishti Innovative</td>
<td>Internship</td>
<td>6 Months</td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<input type="hidden" name="skills_added" id="interest_added" >
<button style="margin-left: 200px;margin-top: 30px;" class="add" id="Experience_add" data-dismiss="modal">ADD</button>
</td>
</tr>
</tbody>
</table>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<section class="project-banner">
<div class="container">
<div class="banner-sec">
<div class="projectheading btn_right">
<h3>CREATE CV </h3>
<!-- <button class="btn backbtn" onclick="history.go(-1);">Back </button> -->
</div>
</div>
</div>
</section>
<section class="dashboard">
<div class="container">
<div class="row">
<div class="details" style="margin-left: 0%;padding: 0% 1% 1%;">
<p>Use our free resume builder to create attractive resumes in effortless and hassle-free process. Our free online resume builder generates professional resumes that can improve your chances of getting hired. Our attractive and professional resume templates can help you secure the recruiters’ attention. We guarantee you a professional and representative resume that can realize your career dreams. Just acquaint us with your skillsets and experience, we will craft a resume that perfectly suits your expectations. Our free resume builder lets you download the resume in a quick trouble free manner. Experience the magic of our resume wizard in easy steps!! <b>Your dream job is just a resume away!!!!!</b></p>
<!-- <a href="dashboard.php" class="view-training"><button type="button" class="btn btn-outline-primary">Skip</button></a> -->
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="my-packages">
<section>
<div class="container">
<div class="row justify-content-center">
<div class="col-12 col-md-10 col-lg-10 col-xl-8">
<form action="profile_outer_update_action.php" method="post" autocomplete="off" class="form-horizontal" enctype="multipart/form-data">
<input type="hidden" name="stud_id" value="">
<div class="row align-items-center mt-4">
<div class="col" style="color: #2d64b7;border-bottom: dotted 1px #2d64b7;">
<label style="font-size: 24px;font-weight: 20px;font-family:'Times New Roman', Times, serif;">Personal Details<span id="span2" >*</span></label>
</div>
</div>
<div class="row align-items-center">
<div class="col mt-4">
<input type="text" class="form-control" placeholder="Name" required name="studName" id="studName" value="">
</div>
</div>
<!-- <div class="row align-items-center mt-4">
<div class="col ">
<input type="text" class="form-control" placeholder="Date of Birth" name="dob" id="dob" value="">
</div>
<div class="col">
<input type="text" class="form-control" placeholder="Age" name="age" id="age" value="">
</div>
</div> -->
<div class="row align-items-center mt-4">
<div class="col">
<span id="span2"></span>
<input type="email" class="form-control" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" placeholder="Email" required name="email" id="emailval" value="">
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<span id="span1"></span>
<input type="text" class="form-control" maxlength="10" pattern="[0-9]+" placeholder="Mobile Number" required name="mobile" id="mobile" value="">
</div>
<div class="col">
<input type="text" class="form-control" maxlength="10" pattern="[0-9]+" placeholder="Alternate Mobile Number" name="altmobile" id="altmobile" value="">
</div>
</div>
<div class="row align-items-center">
<label style="margin-left: 15px;margin-top: 30px;color: #2d64b7;">Profile Image</label><br>
<div class="col mt-4">
<input type="file" class="form-control" placeholder="Upload Image" name="fileToUpload" id="fileToUpload" value="">
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col" style="color: #2d64b7;border-bottom: dotted 1px #2d64b7;">
<label style="font-size: 24px;font-weight: 20px;font-family:'Times New Roman', Times, serif;">Permanent Address</label>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<input type="text" class="form-control" placeholder="Address Line1" name="address1" id="address1" value="">
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<input type="text" class="form-control" placeholder="Address Line2" name="address2" id="address2" value="">
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<input type="text" class="form-control" placeholder="Address Line3" name="address3" id="address3" value="">
</div>
<div class="col">
<input type="text" class="form-control" placeholder="Pincode" name="pincode" id="pincode" value=>
</div>
</div>
<!-- <div class="row align-items-center mt-4">
<div class="col">
<input type="checkbox" class="checkbox" name="check" id="check" value="1" >
<label>Same as Permanent Address</label>
</div>
</div> -->
<!-- <div class="row align-items-center mt-4">
<div class="col" style="color: #2d64b7;border-bottom: dotted 1px #2d64b7;">
<label style="font-size: 24px;font-weight: 20px;font-family:'Times New Roman', Times, serif;">Present Address</label>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<input type="text" class="form-control" placeholder="Address Line 1" name="paddress1" id="paddress1" value="">
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<input type="text" class="form-control" placeholder="Address Line 2" name="paddress2" id="paddress2" value="">
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<input type="text" class="form-control" placeholder="Address Line 3" name="paddress3" id="paddress3" value="">
</div>
<div class="col">
<input type="text" class="form-control" placeholder="Pincode" name="ppincode" id="ppincode" value="">
</div>
</div> -->
<div class="row align-items-center mt-4">
<div class="col" style="color: #2d64b7;border-bottom: dotted 1px #2d64b7;">
<label style="font-size: 24px;font-weight: 20px;font-family:'Times New Roman', Times, serif;">Education Details<span id="span2" >*</span></label>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="field_wrapper col ">
<div class="table-responsive">
<table class="table table-bordered table-striped table-highlight" style="margin-left: 0px;width: 100%">
<thead>
<tr>
<th style="width: 133px;">Course</th>
<th style="width: 133px;">Board</th>
<th style="width: 133px;">Year</th>
<th style="width: 167px;">Specification</th>
<th style="width: 90px;">Mark</th>
<th style="width: 5px;"><a href="javascript:void(0);" class="add_button" title="Add field" style="font-size: 29px;color: black;text-align: center;">+</a></th>
</tr>
</thead>
<tbody>
<tr>
<td> <input type="text" name="course[]" id='course1' class="form-control" placeholder="Course" size="12" value="" required/></td>
<td><input type="text" name="board[]" id='board1' class="form-control" placeholder="Board" size="12" value="" required/></td>
<td><input type="text" name="passyear[]" id='passyear1' class="form-control" placeholder="Year" size="12" value="" required/></td>
<td><input type="text" name="specification[]" id='specification1' class="form-control" placeholder="Specification" size="18" value="" required/></td>
<td><input type="text" name="mark[]" id='mark1' class="form-control" placeholder="marks" size="5" value="" required/></td>
<td><a href="javascript:void(0);" id="" class="edu1" title="Add field" style="font-size: 29px;color: black;text-align: center;">-</a></td>
</tr></tbody>
</table>
</div>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col" style="color: #2d64b7;border-bottom: dotted 1px #2d64b7;">
<label style="font-size: 24px;font-weight: 20px; font-family:'Times New Roman', Times, serif;"> Core Competency</label>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<span class="tips" data-toggle="modal" id="tips1" data-target="#myModal" >Tips</span>
<input type="text" class="form-control" name="skills" id="skills" value="">
<input type="hidden" name="tips_num" id="tips_num">
</div>
</div>
<div id="exp1">
<div class="row align-items-center mt-4" >
<div class="col" style="color: #2d64b7;border-bottom: dotted 1px #2d64b7;">
<label style="font-size: 24px;font-weight: 20px; font-family:'Times New Roman', Times, serif;"> Experience</label>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="field_wrapper1 col">
<span class="tips" data-toggle="modal" id="tips4" data-target="#myModal_3" >Tips</span>
<div class="table-responsive">
<table class="table table-bordered table-striped table-highlight" style="margin-left: 0px;width: 100%">
<thead>
<tr><th style="width: 218px;">Company Name</th>
<th style="width: 218px;">Position</th>
<th style="width: 218px;">Duration</th>
<th><a href="javascript:void(0);" class="add_button1" title="Add field" style="font-size: 29px;color: black;text-align: center;">+</a></th></tr>
</thead>
<tbody>
<tr>
<td> <input type="text" name="companyname[]" id='companyname1' class="form-control" placeholder="Company Name" size="10.5" value="" />
</td>
<td><input type="text" name="position[]" id='position2' class="form-control" placeholder="Position" size="11" value=""/></td><td><input type="text" name="duration[]" id='duration3' class="form-control" placeholder="Duration" size="10" value="" /></td><td><a href="javascript:void(0);" class="exp" id="" title="Add field" style="font-size: 29px;color: black;text-align: center;">-</a></td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col" style="color: #2d64b7;border-bottom: dotted 1px #2d64b7;">
<label style="font-size: 24px;font-weight: 20px;font-family:'Times New Roman', Times, serif;"> Acadamic Projects
</label>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="field_wrapper2 col">
<div class="table-responsive">
<table class="table table-bordered table-striped table-highlight" style="margin-left: 0px;width: 100%">
<thead><tr><th style="width: 188px;">Project Name</th>
<th style="width: 188px;">Description</th>
<th style="width: 151px;">Technology</th>
<th style="width: 135px;">Acadamic/Not</th><th><a href="javascript:void(0);" class="add_button2" title="Add field" style="font-size: 25px;color: black;text-align: center;width: 10px;">+</a></th></tr></thead>
<tbody>
<tr>
<td> <textarea name="projectName[]" id='projectName1' class="form-control" placeholder="Project Name" size="10" /></textarea>
</td><td><textarea name="description[]" id='description1' class="form-control" placeholder="Description" size="10" /></textarea></td><td><input type="text" name="technology[]" id='technology1' class="form-control" placeholder="Technology" size="15" value=""/></td><td>
<select name="acadamic[]" id='acadamic' class="form-control">
<option value="">Select</option>
<option >Academic</option>
<option >Non Academic</option>
</select>
</td><td><a href="javascript:void(0);" class="pro" id="" title="Add field" style="font-size: 29px;color: black;text-align: center;">-</a></td>
</tr></tbody>
</table>
</div>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col" style="color: #2d64b7;border-bottom: dotted 1px #2d64b7;">
<label style="font-size: 24px;font-weight: 20px; font-family:'Times New Roman', Times, serif;"> Achievements
</label>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="field_wrapper3 col">
<div class="table-responsive">
<table class="table table-bordered table-striped table-highlight" style="margin-left: 0px;width: 100%">
<thead><tr><th style="width: 600px;">Achievement</th><th><a href='javascript:void(0);' class='add_button3' title='Add field' style='font-size: 29px;color: black;text-align: center;'>+</a></th></tr></thead>
<tbody>
</tbody></table>
</div>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col" style="color: #2d64b7;border-bottom: dotted 1px #2d64b7;">
<label style="font-size: 24px;font-weight: 20px; font-family:'Times New Roman', Times, serif;">Strengths
</label>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<span class="tips" data-toggle="modal" id="tips2" data-target="#myModal_1" >Tips</span>
<input type="text" class="form-control" name="strengths" id="strengths" value="">
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col" style="color: #2d64b7;border-bottom: dotted 1px #2d64b7;">
<label style="font-size: 24px;font-weight: 20px;font-family:'Times New Roman', Times, serif;"> Interests
</label>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<span class="tips" data-toggle="modal" id="tips3" data-target="#myModal_2" >Tips</span>
<input type="text" class="form-control" name="interests" id="interests" value="">
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col" style="color: #2d64b7;border-bottom: dotted 1px #2d64b7;">
<label style="font-size: 24px;font-weight: 20px;font-family:'Times New Roman', Times, serif;">Career Objective
</label>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<textarea class="form-control" placeholder="" name="career_objective" id="career_objective"></textarea>
</div>
</div>
<div class="row align-items-center mt-4">
<div class="col">
<input type="checkbox" onclick="myFunction()" id="public_profile" checked name="public_profile" > I hereby agree to make my profile public for future interview purpose
<input type="hidden" name="public_profile_val" id="public_profile_val" name="public_profile_val" value="true">
</div>
</div>
<div class="row justify-content-start mt-4">
<div class="col">
<a class="signup log" href="#" data-toggle="modal" data-target="#exampleModal1">Download</a>
<button style="display:none ;" class="btn btn-primary mt-4" id="profile_submit" style="background-color: #2d64b7; border:2px solid #2d64b7; margin-bottom:25px; ">Download</button>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
</div>
</section>
<?php include 'footer_new.php'; ?>
<script>
function myFunction(){
var result = document.getElementById("public_profile").checked;
//alert(result);
$("#public_profile_val").val(result);
}
$(document).ready(function () {
var checkboxes = $('input[class="acadamic"]:checked').length;
$('.edu1').click(function(){
var del_id= $(this).attr('id');
$.ajax({
url:"delete_edu.php",
type:"get",
data:{id:del_id},
success:function(n){
window.location.reload();
}
});
});
$('.exp').click(function(){
var del_id= $(this).attr('id');
$.ajax({
url:"delete_experience.php",
type:"get",
data:{id:del_id},
success:function(n){
window.location.reload();
}
});
});
$('.pro').click(function(){
var del_id= $(this).attr('id');
$.ajax({
url:"delete_project.php",
type:"get",
data:{id:del_id},
success:function(n){
window.location.reload();
}
});
});
$('#mobile').keyup(function(){
// alert('hai');
var mobile=$('#mobile').val();
$.ajax({
url: "getPhone.php",
type: "get",
data:{phone:mobile},
success:function(n){
if(n==1){
$('#span1').text('Phone number already exist') ;
}
else{
$('#span1').text('') ;
}
}
});
});
$('#emailval').keyup(function(){
var email=$('#emailval').val();
$.ajax({
url: "getEmail.php",
type: "get",
data:{email1:email},
success:function(n){
// alert(n);
if(n==1){
$('#span2').text('Email already exist') ;
}
else{
$('#span2').text('') ;
}
}
});
});
var x = 1;
var maxField = 6;
//Input fields increment limitation
var addButton = $('.add_button'); //Add button selector
var wrapper = $('.field_wrapper'); //Input field wrapper
var c = 2
//New input field html
//Initial field counter is 1
//Once add button is clicked
$(addButton).click(function () {
//Check maximum number of input fields
var fieldHTML = '<div class="table-responsive" style="margin-top:-15px;"><table class="table table-bordered table-striped table-highlight" style="margin-left: 0px;width: 100%" ><tbody> <tr><td><input type="text" name="course[]" class="form-control" placeholder="Course" id="course' + c + '" size="10" /></td><td><input type="text" name="board[]" class="form-control" id="board' + c + '" value="" placeholder="Board" size="10" /></td><td><input type="text" name="passyear[]" value="" class="form-control" id="passyear' + c + '" placeholder="Year" size="10" /></td><td> <input type="text" name="specification[]" class="form-control" value="" id="specification' + c + '" placeholder="Specification" size="15" ></td><td> <input type="text" name="mark[]" class="form-control" value="" id="mark' + c + '" placeholder="Mark" size="5" ></td><td><a href="javascript:void(0);" class="remove_button" style="font-size: 29px;color: black;text-align: center;">-</a></td></tr></tbody></table></div>';
if (x <= maxField) {
x = x + 1;
c++; //Increment field counter
$(wrapper).append(fieldHTML); //Add field html
}
});
//Once remove button is clicked
$(wrapper).on('click', '.remove_button', function (e) {
e.preventDefault();
$(this).parents('table').remove(); //Remove field html
x--;
//Decrement field counter
});
var x1 = 1;
var maxField1 = 10;
//Input fields increment limitation
var addButton1 = $('.add_button1'); //Add button selector
var wrapper1 = $('.field_wrapper1'); //Input field wrapper
var c1 = 4
//New input field html
//Initial field counter is 1
//Once add button is clicked
$(addButton1).click(function () {
//Check maximum number of input fields
var fieldHTML1 = '<div class="table-responsive" style="margin-top:-15px;" ><table class="table table-bordered table-striped table-highlight" style="margin-left: 0px;width: 100%"></tbody> <tr><td><input type="text" name="companyname[]" class="form-control" placeholder="Company Name" id="companyname' + c1 + '" size="10" /></td><td><input type="text" name="position[]" class="form-control" id="position' + c1 + '" value="" placeholder="Position" size="10" /></td><td><input type="text" name="duration[]" value="" class="form-control" id="duration' + c1 + '" placeholder="Duration" size="10" /></td><td> <a href="javascript:void(0);" class="remove_button1" style="font-size: 29px;color: black;text-align: center;">-</a></td></tr></tbody></table></div>';
if (x1 != maxField1) {
x1 = x1 + 1;
c1++; //Increment field counter
$(wrapper1).append(fieldHTML1); //Add field html
}
});
//Once remove button is clicked
$(wrapper1).on('click', '.remove_button1', function (e) {
e.preventDefault();
$(this).parents('table').remove(); //Remove field html
x1--;
c1--; //Decrement field counter
});
var x2 = 1;
var maxField2 = 60;
// //Input fields increment limitation
var addButton2 = $('.add_button2'); //Add button selector
var wrapper2 = $('.field_wrapper2'); //Input field wrapper
var c2 = checkboxes+2;
//New input field html
//Initial field counter is 1
//Once add button is clicked
$(addButton2).click(function () {
//Check maximum number of input fields
var fieldHTML2 = '<div class="table-responsive" style="margin-top:-15px;"><table class="table table-bordered table-striped table-highlight" style="margin-left: 0px;width: 100%"><tbody> <tr><td><textarea name="projectName[]" class="form-control" placeholder="Project Name" id="projectName' + c2 + '" size="10" /></textarea></td><td><textarea name="description[]" class="form-control" id="description' + c2 + '" value="" placeholder="Description" size="10" /></textarea></td><td><input type="text" name="technology[]" value="" class="form-control" id="technology' + c2 + '" placeholder="Technology" size="15"/></td><td> <select class="form-control" name="acadamic[]" id="acadamic'+c2+'"><option value="">Select</option><option>Academic</option><option>Non Academic</option></select><td> <a href="javascript:void(0);" class="remove_button2" style="font-size: 29px;color: black;text-align: center;width:100px;">-</a></td></tr></tbody></table></div>';
if (x2 != maxField2) {
x2 = x2 + 1;
c2++; //Increment field counter
$(wrapper2).append(fieldHTML2); //Add field html
}
});
//Once remove button is clicked
$(wrapper2).on('click', '.remove_button2', function (e) {
e.preventDefault();
$(this).parents('table').remove(); //Remove field html
x2--;
c2--; //Decrement field counter
});
var x3 = 1;
var maxField3 = 10;
//Input fields increment limitation
var addButton3 = $('.add_button3'); //Add button selector
var wrapper3 = $('.field_wrapper3'); //Input field wrapper
var c3 = 4
//New input field html
//Initial field counter is 1
//Once add button is clicked
$(addButton3).click(function () {
//Check maximum number of input fields
var fieldHTML3 = '<div class="table-responsive" style="margin-top:-15px;"><table class="table table-bordered table-striped table-highlight" style="margin-left: 0px;width: 100%"> <tbody><tr><td><input type="text" name="achievements[]" class="form-control" placeholder="Achievements" id="achievements' + c3 + '" size="16.5"/><td> <a href="javascript:void(0);" class="remove_btn" title="Add field" style="font-size: 29px;color: black;text-align: center;">-</a></tr></tbody</table></div>';
if (x3 != maxField3) {
x3 = x3 + 1;
c3++; //Increment field counter
$(wrapper3).append(fieldHTML3); //Add field html
}
});
$(wrapper3).on('click', '.remove_btn', function (e) {
e.preventDefault();
$(this).parents('table').remove(); //Remove field html
x3--;
c3--; //Decrement field counter
});
//Once remove button is clicked
$(wrapper3).on('click', '.remove_button3', function (e) {
e.preventDefault();
$(this).parents('tr').remove(); //Remove field html
x3--;
c3--; //Decrement field counter
});
$('#check').click(function () {
if ($(this).is(':checked')) {
var address1 = $('#address1').val();
var address2 = $('#address2').val();
var address3 = $('#address3').val();
var pincode = $('#pincode').val();
$('#paddress1').val(address1);
$('#paddress2').val(address2);
$('#paddress3').val(address3);
$('#ppincode').val(pincode);
} else {
$('#paddress1').val('');
$('#paddress2').val('');
$('#paddress3').val('');
$('#ppincode').val('');
}
});
$('input[name="acadamic[]"]').change(function(){
var checkboxes = $('input[name="acadamic[]"]').length;
var searchIDs = $('input[name="acadamic[]"]').map(function(){
return this.value;
}).toArray();
$('#textInput').val(searchIDs);
});
});
$(document).ready(function () {
// var userLang = navigator.language || navigator.userLanguage;
// var options = $.extend({},
// $.datepicker.regional["en"], {
// dateFormat: "dd/mm/yy",
// changeMonth: true,
// changeYear: true,
// highlightWeek: true,
// yearRange: "1930:2031"
// }
// );
// $("#dob").datepicker(options);
$('#dob').datepicker({
altField: '#member_birthday',
altFormat: 'dd-mm-yy',
changeMonth: true,
changeYear: true,
dateFormat: 'dd/mm/yy',
showAnim: 'slideDown',
yearRange: '-125:+0',
onChangeMonthYear:function(y, m, i){
var d = i.selectedDay;
$(this).datepicker('setDate', new Date(y, m-1, d));
}
});
});
$("#profile_submit").click(function()
{
$(".pageloader").fadeIn();
});
$("#skills_add").click(function()
{
});
$('input[type="checkbox"]').click(function () {
var inputValue = $(this).attr("value");
// alert(inputValue);
var tips_num=$("#tips_num").val();
if(tips_num==1)
{
var skills_added=$("#skills_added").val();
if(skills_added=='')
{
var skills_added=inputValue;
$("#skills_added").val(skills_added);
}
else
{
var skills_added=skills_added+','+inputValue;
$("#skills_added").val(skills_added);
}
}
if(tips_num==2)
{
var strength_added=$("#strength_added").val();
if(strength_added=='')
{
var strength_added=inputValue;
$("#strength_added").val(strength_added);
}
else
{
var strength_added=strength_added+','+inputValue;
$("#strength_added").val(strength_added);
}
}
if(tips_num==3)
{
var interest_added=$("#interest_added").val();
if(interest_added=='')
{
var interest_added=inputValue;
$("#interest_added").val(interest_added);
}
else
{
var interest_added=interest_added+','+inputValue;
$("#interest_added").val(interest_added);
}
}
});
$("#tips1").click(function()
{
$("#tips_num").val('1');
});
$("#tips2").click(function()
{
$("#tips_num").val('2');
});
$("#tips3").click(function()
{
$("#tips_num").val('3');
});
$("#tips4").click(function()
{
$("#tips_num").val('4');
});
$("#skills_add").click(function()
{
var skills_added=$("#skills_added").val();
$("#skills").val(skills_added);
});
$("#strength_add").click(function()
{
var strength_added=$("#strength_added").val();
$("#strengths").val(strength_added);
});
$("#interest_add").click(function()
{
var interest_added=$("#interest_added").val();
$("#interests").val(interest_added);
});
$("#Experience_add").click(function()
{
$("#companyname1").val('Srishti Innovative');
$("#position2").val('Internship');
$("#duration3").val('6 Months');
});
</script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
|