Server IP : 92.204.138.22 / Your IP : 18.226.150.44 Web Server : Apache System : Linux ns1009439.ip-92-204-138.us 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : internationaljou ( 1019) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/internationaljou/public_html/admin/ |
Upload File : |
<?php include("header.php"); include"config.php"; include("left-menu.php");?> <script src="jquery-3.2.1.min.js" type="text/javascript"></script> <noscript> <div class="alert alert-block col-md-12"> <h4 class="alert-heading">Warning!</h4> <p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p> </div> </noscript> <script> //bkLib.onDomLoaded(function() {new nicEditor({fullPanel : true}).panelInstance('conference');}); function validation() { //var nicInstance = nicEditors.findEditor('conference'); //var messageContent = nicInstance.getContent(); var shortname = document.getElementById("shortname").value; var department = document.getElementById("department").value; var part = document.getElementById("part").value; var year = document.getElementById("year").value; /* if(messageContent=="<br>") { alert("Conference Name required"); document.spform.conference.focus(); return false; } */ if( shortname ===''){ alert("Shortform required"); return false; } else if( department ===''){ alert("Department required"); return false; } else if( part ===''){ alert("Part required"); return false; } else if( year ===''){ alert("Year required"); return false; } else { return true; } } </script> <script> function getYears(val) { $.ajax({ type: "POST", url: "getYears.php", data:'shortform_id='+val, success: function(data){ //alert(data); $("#year").html(data); } }); } </script> <div id="content" class="col-lg-10 col-sm-10"> <!-- content starts --> <div> <ul class="breadcrumb"> <li> <a href="#">Home</a> </li> <li> <a href="#"> Add New Special Issue - Articles</a> </li> </ul> </div> <div class="row"> <div class="box col-md-12"> <div class="box-inner homepage-box"> <div class="box-header well"> <h2><i class="glyphicon glyphicon-home"></i> Special Issue - Articles Information</h2> <div class="box-icon"> <a href="#" class="btn btn-setting btn-round btn-default"><i class="glyphicon glyphicon-cog"></i></a> <a href="#" class="btn btn-minimize btn-round btn-default"><i class="glyphicon glyphicon-chevron-up"></i></a> <a href="#" class="btn btn-close btn-round btn-default"><i class="glyphicon glyphicon-remove"></i></a> </div> </div> <div class="box-content"> <ul class="nav nav-tabs" id="myTab"> <li class="active"><a href="#info">Articles Information</a></li> </ul> <form action="class.php" name="spform" method="post" enctype="multipart/form-data" > <div id="myTabContent" class="tab-content"> <div class="tab-pane active" id="info"> <Br /><Br /> <div class="col-md-3 col-xs-12"> <select class="form-control" id="shortname" name="shortname" onChange="getYears(this.value);"> <option value="">--- Select Short Name ---</option> <?php $shortnamelist = mysqli_query($conn,"select * from specialissue_conference"); while($fetchnamelist = mysqli_fetch_array($shortnamelist)) { ?> <option value="<?php echo $fetchnamelist['sp_id'];?>"><?php echo $fetchnamelist['shortform'];?></option> <?php } ?> </select> </div> <div class="col-md-3 col-xs-12"> <select class="form-control" id="department" name="department" required> <option value="">--- Select Department ----</option> <?php $departmentname = mysqli_query($conn,"select * from article_department order by department_name asc"); while($fetchdepartment = mysqli_fetch_array($departmentname)) { ?> <option value="<?php echo $fetchdepartment['dp_id'];?>"><?php echo $fetchdepartment['department_name'];?></option> <?php } ?> </select> </div> <div class="col-md-3 col-xs-12"> <select class="form-control" id="part" name="part" required> <option value="">--- Select Part ----</option> <option value="Part1">Part 1</option> <option value="Part2">Part 2</option> <option value="Part3">Part 3</option> <option value="Part4">Part 4</option> <option value="Part5">Part 5</option> <option value="Part6">Part 6</option> <option value="Part7">Part 7</option> <option value="Part8">Part 8</option> <option value="Part9">Part 9</option> <option value="Part10">Part 10</option> </select> </div> <div class="col-md-3 col-xs-12"> <!-- <input type="text" class="form-control" name="year" id="year" placeholder="Year" autocomplete="off" required > --> <?php //echo date('Y');?> <!-- <select class="form-control" id="year" name="year" required> <option value="">--- Select Year ----</option> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> <option value="2016">2016</option> <option value="2017">2017</option> <option value="2018" <?php if(date('Y')==2018) { echo "selected"; }?>>2018</option> <option value="2019" <?php if(date('Y')==2019) { echo "selected"; }?>>2019</option> <option value="2020" <?php if(date('Y')==2020) { echo "selected"; }?>>2020</option> <option value="2021" <?php if(date('Y')==2021) { echo "selected"; }?>>2021</option> <option value="2022" <?php if(date('Y')==2022) { echo "selected"; }?>>2022</option> <option value="2023" <?php if(date('Y')==2023) { echo "selected"; }?>>2023</option> <option value="2024" <?php if(date('Y')==2024) { echo "selected"; }?>>2024</option> <option value="2025" <?php if(date('Y')==2025) { echo "selected"; }?>>2025</option> </select> --> <select class="form-control" id="year" name="year" required> <option value="">--- Select Year ----</option> </select> </div> <br /><Br /><br /> <table class="table" id="dynamic_field" border="0"> <tr> <td> <input type="text" class="form-control" name="title[]" id="title" placeholder="Enter Title" autocomplete="off" required> </td> <td> <input type="text" class="form-control" name="author[]" id="author" placeholder="Enter Author Name" autocomplete="off" required> </td> <td> <input type="file" class="form-control" name="pdf[]" id="pdf" placeholder="pdf" autocomplete="off" accept=".pdf" required> </td> <td> <button type="button" name="add" id="add" class="btn btn-success">Add More</button> </td> </tr> </table> </div> <div class="col-md-3 col-xs-12"></div> <div class="col-md-4 col-xs-12"> <button type="submit" name="add_specialissue_articles" value="Save" onclick="validation()" class="btn btn-success" >save</button> <a href="add_specialissue_articles.php"><button type="button" class="btn btn-success" >cancel</button></a> </div> </div> </form> </div> </div> </div> </div> <script> $(document).ready(function(){ var i=1; $('#add').click(function(){ i++; $('#dynamic_field').append('<tr id="row'+i+'"><td><input type="text" name="title[]" placeholder="Enter Title" class="form-control name_list" required/></td><td><input type="text" name="author[]" placeholder="Enter Author Name" class="form-control name_list" required /></td><td><input type="file" class="form-control" name="pdf[]" id="pdf" placeholder="author" autocomplete="off" required></td><td><button type="button" name="remove" id="'+i+'" class="btn btn-danger btn_remove"> Remove </button></td></tr>'); }); $(document).on('click', '.btn_remove', function(){ var button_id = $(this).attr("id"); $('#row'+button_id+'').remove(); }); /* $('#submit').click(function(){ $.ajax({ url:"class.php", method:"POST", data:$('#add_name').serialize(), success:function(data) { alert(data); $('#add_name')[0].reset(); } }); }); */ }); </script> <?php include("footer.php"); ?>