-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuser_edit_project.php
138 lines (127 loc) · 5.76 KB
/
user_edit_project.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
include_once 'userSession.php'; // interactive user such as name and all user session for the verifying that user exist or not....
include_once './Development/commonfiles/general_function.php';
?>
<?php
include_once './Development/commonfiles/header.php';
include_once './Development/commonfiles/searchbar.php';
include_once 'user_profile_tab.php';
?>
<title>User Edit Project</title>
<?php
$mode=$_GET['mode'];
if(isset($_GET['id'])!=null )
{
$autoid=$_GET['id'];
$query1= "SELECT * FROM `tbl_job_seeker_proj_details` WHERE `autoid` = '$autoid'";
$result1 = mysqli_query($conn, $query1);
$row1= mysqli_fetch_assoc($result1);
}
?>
<div class="container">
<div class="tab-pane fade in" id="tab2">
<div class="well">
<div class="tab-content">
<div class="tab-pane fade in active" id="tab1">
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
Project Information</a>
</H3>
</div>
<div id="collapseOne" class="panel-collapse collapse in">
<div class="panel-body">
<form id="defaultForm" class="form-horizontal fv-form fv-form-bootstrap" method="post" action="userEditProfileVerify.php">
<!-- Form Name -->
<input type="hidden" name="projid" value="<?php echo $autoid; ?>">
<input type="hidden" name="Mode" value="<?php echo $mode; ?>"/>
<!-- Text input-->
<div class="form-group">
<label class="col-md-3 control-label" for="textinput">Client</label>
<div class="col-md-6">
<input required="" id="textinput" name="userClient" placeholder="Enter Client name" class="form-control input-md" required="" type="text" value="<?php if ($mode=='N'){echo "";}else{echo $row1['client'];} ?>">
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-3 control-label" for="selectbasic">Project Title</label>
<div class="col-md-6">
<input id="textinput" name="userProjectTitle" placeholder="Enter Project Title" class="form-control input-md" required="" type="text" value="<?php if ($mode=='N'){echo "";}else{echo $row1['project_title'];} ?>">
</div>
</div>
<!-- Select Basic -->
<div class="form-group">
<label class="col-md-3 control-label" for="selectbasic">Duration</label>
<div class="col-md-2">
<?php
$query3= "SELECT * FROM `tbl_list_mst` WHERE `type`= 'Project_Duration' order by `autoid`";
$result3 = mysqli_query($conn,$query3);
echo "<select data-fv-notempty-message='The country is required' data-fv-notempty=''data-fv-field='country' id='selectbasic' name='userDuration' class='form-control'>";
$selectedid3=$row1['duration'];
while($re3=$result3->fetch_assoc())
{
$dropid3=$re3['autoid'];
$value3=$re3['Value'];
if($selectedid3==$dropid3)
echo'<option value="'.$dropid3.'" selected="selected">'.$value3.'</option>';
else
echo '<option value="'.$dropid3.'" >'.$value3.'</option>';
}
echo"</select>";
?>
</div>
<label class="col-md-1 control-label" for="textinput">Location</label>
<div class="col-md-3">
<input required="" id="textinput" name="userLocation" placeholder="Enter Project Location" class="form-control input-md" type="text" value="<?php if ($mode=='N'){echo "";}else{echo $row1['location'];} ?>">
</div>
</div>
<!-- Textarea -->
<div class="form-group">
<label class="col-md-3 control-label" for="text area">Project Details</label>
<div class="col-md-6">
<textarea required="" class="form-control" id="text area" name="userProjectDetails" value="<?php if ($mode=='N'){echo "";}else{echo $row1['project_details'];} ?>"><?php if ($mode=='N'){echo "";}else{echo $row1['project_details'];} ?></textarea>
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-3 control-label" for="textinput">Role</label>
<div class="col-md-2">
<input id="textinput" name="userRole" placeholder="Role played in Project" class="form-control input-md" type="text" value="<?php if ($mode=='N'){echo "";}else{echo $row1['Role'];} ?>">
</div>
<label class="col-md-1 control-label" for="textinput">Skill Used</label>
<div class="col-md-3">
<input id="textinput" name="userSkillUsed" placeholder="Used Skills in Project" class="form-control input-md" required="" type="text" value="<?php if ($mode=='N'){echo "";}else{echo $row1['skill_used'];} ?>">
</div>
</div>
<!-- Text input-->
<div class="form-group">
</div>
<!-- Button -->
<div class="form-group">
<label class="col-md-3 control-label" for="singlebutton"></label>
<div style="text-align: center;" class="col-md-5">
<button id="singlebutton" name="userProjectSaveButton" class="btn btn-primary">Save</button>
<button id="btnclear1" name="btnNext1" type="reset" class="btn btn-primary">Reset</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--<?php
$var = $_COOKIE['auth_username'];
echo $var;
echo "signed up";
?>-->
<?php
include_once './Development/commonfiles/footer.php';
include_once 'user_profile_data_fetch.php';
?>