-
Notifications
You must be signed in to change notification settings - Fork 0
/
bpe.php
174 lines (161 loc) · 6.95 KB
/
bpe.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?php
session_start();
include('DBConnect.php');
include('form_process/rpacProcess.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Research Publication </title>
<?php
include('cssLinks.php');
include('jsLinks.php');
?>
<style type="text/css">
/* Custom Styles */
ul.nav-tabs{
width: 230px;
margin-top: 20px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.067);
}
ul.nav-tabs li a{
padding: 8px 16px;
}
ul.nav-tabs li.active a, ul.nav-tabs li.active a:hover{
color: #fff;
background: #0088cc;
border: 1px solid #0088cc;
}
.nav-tabs.affix{
top: 30px; /* Set the top position of pinned element */
}
</style>
</head>
<body data-spy="scroll" data-target="#myNav">
<?php
if(isset($_SESSION['username']) and isset($_SESSION['pbasYear'])){
include('header.php');
?>
<div class="container">
<div style="box-shadow:5px 5px 5px 5px #888888; padding:3px 3px 3px 3px;" class="text-primary">
<center><h4><b>Research Publication And Academic Contribution</b></h4></center>
</div><!--end of box-shadow-->
<div class="row-fluid">
<div class="col-md-4" id="myNav">
<br><br>
<div class="panel panel-primary" >
<ul class="nav nav-tabs nav-stacked" data-offset-top="190" style="width:100%;">
<li><a href="ppij.php">Published Papers in Journals<div class="pull-right"><i class="icon-chevron-right" ></i></div></a> </li>
<li><a href="apb.php">Articles/ Chapters published in Books <div class="pull-right"><i class="icon-chevron-right" ></i></div></a></li>
<li><a href="fcp.php">Full papers in Conference Proceedings<div class="pull-right"><i class="icon-chevron-right" ></i></div> </a></li>
<li class="active"><a href="bpe.php">Books published as single author or as editor<div class="pull-right"><i class="icon-chevron-right" ></i></div> </a></li>
<li><a href="opc.php">Ongoing Projects/ Consultancies<div class="pull-right"><i class="icon-chevron-right" ></i></div></a></li>
<li><a href="cpc.php">Completed Projects/ Consultancies<div class="pull-right"><i class="icon-chevron-right" ></i></div></a></li>
<li><a href="rg.php">Research Guidance <div class="pull-right"><i class="icon-chevron-right" ></i></div></a></li>
<li><a href="fdp.php">Training Courses, Teaching-Learning-Evaluation Technology, Faculty Development Programmes<div class="pull-right"><i class="icon-chevron-right" ></i></div></a></li>
<li><a href="ppc.php">Papers presented in Conferences, Seminars, Workshops, Symposia<div class="pull-right"><i class="icon-chevron-right" ></i></div></a></li>
<li><a href="ilc.php"> Invited Lectures and Chairmanship at National or International Conference/ Seminar<div class="pull-right"><i class="icon-chevron-right" ></i></div></a></li>
</ul>
</div><!--end of panel-->
</div>
<div class="col-md-8">
<br>
<!--"Books Published" Panel started --><br>
<div class="panel panel-primary" style="padding:3px 3px 3px 3px;">
<div class="panel-heading">
<h4 id="books" class="panel-title" align="center">Books Published as Single Author or as a Editor</h4>
</div><br>
<form id="booksForm" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post">
<input class="btn btn-md btn-primary" type="submit" value="Save" name="bpe_save" />
<select name="bp" onChange="showUser(this.value, this.name)">
<option>--Title--</option>
<?php
$uname=$_SESSION['username'];
$year=$_SESSION['pbasYear'];
$sql4 = mysqli_query($con,"SELECT * from teach_bpe where User_Id='$uname' and year='$year'");
while($row = mysqli_fetch_assoc($sql4)){
?><option><?php echo $row['Teach_BPE_TPN']; ?></option>
<?php } ?>
</select>
<input class="btn btn-md btn-primary" type="submit" value="Delete" name="bpe_delete" />
<input type="reset" class="btn btn-primary" value="Reset" name="reset" /> <br/><br/>
<div id="bookPublished">
<label>Title With Page Numbers</label>
<input class="form-control" type="text" name="BPE_TPN">
<label>Type of Book And Authorship</label>
<input class="form-control" type="text" name="BPE_TBA">
<label>Publisher And ISSN / ISBN No</label>
<input class="form-control" type="text" name="BPE_PISSN" />
<label> Whether Peer Reviewed</label>
<input class="form-control" type="text" name="BPE_WPR" />
<label>No. of Co-authors</label>
<input class="form-control" type="text" name="BPE_NOC" /> <br/>
<label>Whether you are the main Author</label>
<input type="radio" name="BPE_YN" />Yes <input type="radio" name="BPE_YN"/>No<br /> <br/>
<label>API Score</label> <input class="form-control" type="text" name="BPE_API" id="bpetooltip" />
</div><br />
<input class="btn btn-md btn-primary" type="submit" value="Save" name="bpe_save" />
<select name="bp" onChange="showUser(this.value, this.name)">
<option>--Title--</option>
<?php
$uname=$_SESSION['username'];
$year=$_SESSION['pbasYear'];
$sql4 = mysqli_query($con,"SELECT * from teach_bpe where User_Id='$uname' and year='$year'");
while($row = mysqli_fetch_assoc($sql4)){
?><option><?php echo $row['Teach_BPE_TPN']; ?></option>
<?php } ?>
</select>
<input class="btn btn-md btn-primary" type="submit" value="Delete" name="bpe_delete" />
<input type="reset" class="btn btn-primary" value="Reset" name="reset" />
</form>
</div><!--end of panel-->
</div><!--End Of col-md-6 -->
</div><!--End Of row-fluid Class -->
</div>
<!--End Of container -->
<?php
include('jsLinks.php');
}
else{
header('location:index.php');
}
?>
<!--JavaScript code for dynamically showing records using AJAX-->
<script>
$(document).ready(function () {
$('#bpetooltip').tooltip({'trigger':'focus', 'title': 'Put the API on tooltip accordingly'});
});
function showUser(value, name)
{
if (value=="")
{
document.getElementById("apb").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
if(name == 'bp'){
document.getElementById("bookPublished").innerHTML=xmlhttp.responseText;
}
}
}
xmlhttp.open("GET","form_process/rpac_show.php?val="+value+"&name="+name,true);
xmlhttp.send();
}
</script>
</body>
</html>