Server IP : 92.204.138.22 / Your IP : 18.189.178.117 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/ssrg-22-02-2024-correct files/admin/ |
Upload File : |
<?php include("header.php"); include("left-menu.php"); include"config.php"; $cid = $_REQUEST['cid']; $sql = mysqli_query($conn,"select * from upcoming_conference where conference_id='".$cid."'"); $row = mysqli_fetch_array($sql); ?> <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> </div> </noscript> <script> function validation(){ var conferencename = document.getElementById("conferencename").value; var lastdate = document.getElementById("lastdate").value; var multipleconferencedate = document.getElementById("multipleconferencedate").value; var conferencedate = document.getElementById("conferencedate").value; var papersubmitemail = document.getElementById("papersubmitemail").value; var lastdate_registration = document.getElementById("lastdate_registration").value; var venue = document.getElementById("venue").value; var conferenceimage = document.getElementById("conferenceimage").value; var conferenceimage_old = document.getElementById("conferenceimage_old").value; var contact = document.getElementById("contact").value; var name = document.getElementById("name").value; var designation = document.getElementById("designation").value; var collegename = document.getElementById("collegename").value; if( conferencename ===''){ alert("Conference Name required"); //document.getElementById("conferencename").focus(); return false; } else if( lastdate ===''){ alert("Last Date for Paper Submission required"); return false; } else if( multipleconferencedate ===''){ alert("Multiple Conference Date required"); return false; } else if( conferencedate ===''){ alert("Conference Date required"); return false; } else if( papersubmitemail ===''){ alert("Paper submit email required"); return false; } else if( lastdate_registration ===''){ alert("Last Date Registration required"); return false; } else if( venue ===''){ alert("Venue required"); return false; } else if( conferenceimage ===''){ if(conferenceimage_old=='') { alert("Conference image required"); return false; } } else if( contact ===''){ alert("Contact required"); return false; } /* else if( conferencebrochure ===''){ if(conferencebrochure_old=='') { alert("Conference Brochure required"); return false; } } */ else if( name ===''){ alert("Name required"); return false; } else if( designation ===''){ alert("Designation required"); return false; } else if( collegename ===''){ alert("College Name required"); return false; } else { return true; } } </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="edit_upcoming_conference.php">Edit Conference</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> Upcoming Conference</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">Conference Details</a></li> <li><a href="#conference">Aim of Conference</a></li> <li><a href="#fees">Registration Fees</a></li> <li><a href="#location">Visiting Locations</a></li> <li><a href="#status">Committee Members</a></li> </ul> <form action="class.php" name="form" method="post" enctype="multipart/form-data" > <div id="myTabContent" class="tab-content"> <div class="tab-pane active" id="info"> <div class="col-md-6 col-xs-12"> <br> <div class="form-group"> <label for=" Name" class="control-label col-md-4 col-xs-4">Conference Name:</label> <div class="col-md-8 col-xs-8"> <input type="text" class="form-control" name="conferencename" id="conferencename" placeholder="" value="<?php echo $row['conferencename'];?>"> <div id="msg1" style="color:#FF0000"></div> </div> </div> <br><br> <div class="form-group"> <label for=" Name" class="control-label col-md-4 col-xs-4">Last Date for Paper Submission:</label> <div class="col-md- 8 col-xs-8"> <input type="text" class="form-control" name="lastdate" id="lastdate" placeholder="" value="<?php echo $row['lastdate'];?>" required > <div id="msg2" style="color:#FF0000"></div> </div> </div> <br><br> <div class="form-group"> <label for="Address" class="control-label col-md-4 col-xs-4">Mulitple Conference Date:</label> <div class="col-md- 8 col-xs-8"> <input type="text" class="form-control" name="multipleconferencedate" id="multipleconferencedate" placeholder="" value="<?php echo $row['multipleconferencedate'];?>" required > </div> </div> <br /><br /> <div class="form-group"> <label for="Address" class="control-label col-md-4 col-xs-4">Conference Date:</label> <div class="col-md- 8 col-xs-8"> <input type="text" class="form-control" name="conferencedate" id="conferencedate" value="<?php echo $row['conferencedate'];?>" placeholder="" required > <div id="msg3" style="color:#FF0000"></div> </div> </div> <br /><br /> <div class="form-group"> <label for=" Type" class="control-label col-md-4 col-xs-4">Submit your paper:</label> <div class="col-md-8 col-xs-8"> <input type="email" class="form-control" name="papersubmitemail" id="papersubmitemail" value="<?php echo $row['papersubmitemail'];?>" placeholder="example@gmail.com" required > </div> </div><BR /><br /> <div class="form-group"> <label for=" Type" class="control-label col-md-4 col-xs-4">Status</label> <div class="col-md-8 col-xs-8"> <input type="radio" name="status" value="C" <?php if($row['Status']=='C') { ?> checked="checked" <?php } ?>/>Open <input type="radio" name="status" value="D" <?php if($row['Status']=='D') { ?> checked="checked" <?php } ?>/>Closed <input type="radio" name="status" value="U" <?php if($row['Status']=='U') { ?> checked="checked" <?php } ?>/>Use Later </div> </div><br /><br /> </div> <div class="col-md-6 col-xs-12" > <br> <div class="form-group"> <label for=" Type" class="control-label col-md-4 col-xs-4">Last Date of Registration:</label> <div class="col-md- 8 col-xs-8"> <input type="text" class="form-control" name="lastdate_registration" id="lastdate_registration" placeholder="" value="<?php echo $row['lastdate_registration'];?>" required > </div> </div> <br /><br /> <div class="form-group"> <label for=" Type" class="control-label col-md-4 col-xs-4">Venue:</label> <div class="col-md- 8 col-xs-8"> <input type="text" class="form-control" name="venue" id="venue" value="<?php echo $row['venue'];?>" placeholder="" required > </div> </div> <Br /><br /> <div class="form-group"> <label for="ContactNo" class="control-label col-md-4 col-xs-4"> Conference Image</label> <div class="col-md- 8 col-xs-8"> <input type="file" name="conferenceimage" id="conferenceimage"> <input type="hidden" name="conferenceimage_old" id="conferenceimage_old" value="<?php echo $row['conferenceimage'];?>"> <?php echo $row['conferenceimage'];?> </div> </div> <br /><br /> <div class="form-group"> <label for=" Type" class="control-label col-md-4 col-xs-4">Contact Any Queries:</label> <div class="col-md- 8 col-xs-8"> <input type="text" class="form-control" name="contact" id="contact" value="<?php echo $row['contact'];?>" placeholder="Moible Number" required > </div> </div><br /><br /> <div class="form-group"> <label for="ContactNo" class="control-label col-md-4 col-xs-4"> Conference Brochure</label> <div class="col-md- 8 col-xs-8"> <input type="file" name="conferencebrochure" id="conferencebrochure"> <input type="hidden" name="conferencebrochure_old" id="conferencebrochure_old" value="<?php echo $row['conferencebrochure'];?>"> <?php echo $row['conferencebrochure'];?> </div> </div> </div> </div> <div class="tab-pane" id="conference"><br> <div class="form-group" style="padding-left:30px;"> <label for=" Type" class="col-md-12 col-xs-12 " style="padding-bottom:10px;color:rgb(76, 158, 217);"><br><br>Aim of Conference : </label> <div class="col-md-12 col-xs-12"> <textarea name="aimofconference" class="ckeditor"><?php echo $row['aimofconference'];?></textarea> </div> </div> </div> <div class="tab-pane" id="location"> <label for=" Type" class="col-md-12 col-xs-12 " style="padding-bottom:10px;color:rgb(76, 158, 217);"><br><br>Topics : </label> <div class="col-md-12 col-xs-12"> <textarea name="topics" class="ckeditor" ><?php echo $row['topics'];?></textarea> </div> <label for=" Type" class="col-md-12 col-xs-12 " style="padding-bottom:10px;color:rgb(76, 158, 217);"><br><br>Instruction : </label> <div class="col-md-12 col-xs-12"> <textarea name="instruction" class="ckeditor" ><?php echo $row['instruction'];?></textarea> </div> <label for=" Type" class="col-md-12 col-xs-12 " style="padding-bottom:10px;color:rgb(76, 158, 217);"><br><br>Visiting Locations:</label> <div class="col-md-12 col-xs-12"> <textarea name="visitinglocation" class="ckeditor" ><?php echo $row['visitinglocation'];?></textarea> </div> </div> <div class="tab-pane" id="fees"> <div class="form-group" style="padding-left:30px;"> <label for=" Type" class="col-md-12 col-xs-12 " style="padding-bottom:10px;color:rgb(76, 158, 217);"><br><br>Registration Fees: </label> <div class="col-md-6 col-xs-12"> <br> <div class="form-group"> <label for="UG/PG Student" class="control-label col-md-4 col-xs-4">UG/PG Student </label> <div class="col-md- 8 col-xs-8"> <input type="text" class="form-control" name="ugpg" id="ugpg" value="<?php echo $row['ugpg'];?>" placeholder="" > </div> </div> <br><br> <div class="form-group"> <label for=" Research Scholar/Staff" class="control-label col-md-4 col-xs-4">Research Scholar/Staff :</label> <div class="col-md- 8 col-xs-8"> <input type="text" class="form-control" name="staff_researchscholar" id="staff_researchscholar" value="<?php echo $row['staff_researchscholar'];?>" placeholder="" > </div> </div> <br><br> <div class="form-group"> <label for="Corporate people" class="control-label col-md-4 col-xs-4">Corporate people:</label> <div class="col-md- 8 col-xs-8"> <input type="text" class="form-control" name="corporatepeople" id="corporatepeople" value="<?php echo $row['corporatepeople'];?>" placeholder="" > </div> </div> <br><br> <div class="form-group"> <label for="Active Listener" class="control-label col-md-4 col-xs-4">Active Listener:</label> <div class="col-md- 8 col-xs-8"> <input type="text" class="form-control" name="activelistener" id="activelistener" value="<?php echo $row['activelistener'];?>" placeholder="" > </div> </div> <br><br> <div class="form-group"> <label for="Participants" class="control-label col-md-4 col-xs-4">Participants:</label> <div class="col-md- 8 col-xs-8"> <input type="text" class="form-control" name="participants" id="participants" value="<?php echo $row['participants'];?>" placeholder="" > </div> </div> </div> </div> </div> <div class="tab-pane" id="status"> <div class="form-group" style="padding-left:30px;"> <div class="col-md-12 col-xs-12"> <table class="table table-bordered" id="dynamic_field"> <tbody> <?php $i = 0; $sql = mysqli_query($conn,"select * from committee_member where conferenceid='".$cid."'"); while($fetchsql = mysqli_fetch_array($sql)) { $numrows = mysqli_num_rows($sql); ?> <tr> <td><i class="glyphicon glyphicon-move"></i></td> <td><input type="text" name="name[]" id="name" placeholder="Enter your Name" class="form-control name_list" value="<?php echo $fetchsql['name'];?>" required/></td> <td> <input type="text" name="designation[]" id="designation" placeholder="Enter your Designation" class="form-control name_list" value="<?php echo $fetchsql['designation'];?>" required/></td> <td><input type="text" name="collegename[]" id="collegename" placeholder="Enter your College Name" class="form-control name_list" value="<?php echo $fetchsql['collegename'];?>" required/></td> <?php if($i==0) { ?> <td><button type="button" name="add" id="add" class="btn btn-success">Add More</button></td> <?php } ?> </tr> <?php $i++; }?> </tbody> </table> </div> <!-- add more id div close--> </div> <div class="col-md-6 col-xs-12"> <center> <br><br> <table> <tr> <td class="r1"> <input type="hidden" name="conferenceid" id="conferenceid" class="form-control name_list" value="<?php echo $row['conference_id'];?>" /> <button type="submit" name="edit_upcoming" value="Update" onclick="validation()" class="btn btn-success" >Update</button> </td> <td class="r1"><a href="upcoming_conference.php"><button type="button" class="btn btn-success" >cancel</button></a></td> </tr> </table> </center> </div> </div> </div> </form> </div> </div> </div> </div> <script> $( function() { $('#lastdate').datepicker({ dateFormat: 'dd/mm/yy', }); } ); $( function() { $('#conferencedate').datepicker({ dateFormat: 'dd/mm/yy', }); } ); $( function() { $('#lastdate_registration').datepicker({ dateFormat: 'dd/mm/yy', }); } ); </script> <script> $(document).ready(function(){ var i=1; $('#add').click(function(){ i++; $('#dynamic_field').append('<tr id="row'+i+'"><td></td><td><input type="text" name="name[]" placeholder="Enter your Name" class="form-control name_list" required /></td><td><input type="text" name="designation[]" placeholder="Enter your Designation" class="form-control name_list" required/></td><td><input type="text" name="collegename[]" placeholder="Enter your College Name" class="form-control name_list" 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> <script> $( function() { $( "#lastdate" ).datepicker(); } ); /* $( function() { $( "#conferencedate" ).datepicker(); } ); */ $( function() { $( "#lastdate_registration" ).datepicker(); } ); </script> <script> jQuery(function(){ var counter = 1; var rowCount = 1; jQuery('button.add-author').click(function(event){ event.preventDefault(); rowCount ++; var newRow = jQuery('<tr class="rowCount'+rowCount+'"><td class="r1" >'+rowCount+'</td><td class="r1" ><textarea class="form-control" rows="3" name="details[]" id="details" ></textarea></td><td class="r1" ><button type="button" class="btn btn-danger" onclick="removeRow('+rowCount+');"> X </button></td></tr>'); counter++; jQuery('table.addroom').append(newRow); }); }); </script> <script type="text/javascript"> var rowCount = 1; function removeRow(removeNum) { jQuery('.rowCount'+removeNum).remove(); } var abc = 0; // Declaring and defining global increment variable. $(document).ready(function() { // To add new input file field dynamically, on click of "Add More Files" button below function will be executed. $('#add_more').click(function() { if(abc <10){abc += 1; $(this).before($("<div/>", { id: 'filediv' }).fadeIn('slow').append($("<input/>", { name: '[]', type: 'file', id: 'file' }), $("")));} }); // Following function will executes on change event of file input to select different file. $('body').on('change', '#file', function() { if (this.files && this.files[0]) { //abc += 1; // Incrementing global variable by 1. var z = abc - 1; var x = $(this).parent().find('#previewimg' + z).remove(); $(this).before("<div id='abcd" + abc + "' class='col-md-2 col-sm-3 abcd'><img id='previewimg" + abc + "' src=''/></div>"); var reader = new FileReader(); reader.onload = imageIsLoaded; reader.readAsDataURL(this.files[0]); $(this).hide(); $("#abcd" + abc).append($("<img/>", { id: 'img', src: 'multiple_image/x.png', alt: 'delete' }).click(function() { $(this).parent().parent().remove(); })); } }); // To Preview Image function imageIsLoaded(e) { $('#previewimg' + abc).attr('src', e.target.result); }; $('#upload').click(function(e) { var name = $(":file").val(); if (!name) { alert("First Image Must Be Selected"); e.preventDefault(); } }); }); </script> <!-- Bootstrap & Core Scripts --> <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <script src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js"></script> <script src="https://getbootstrap.com/dist/js/bootstrap.min.js"></script> <script type="text/javascript"> $('tbody').sortable(); </script> <script> CKEDITOR.replace( 'aimofconference' ); CKEDITOR.replace( 'topics' ); CKEDITOR.replace( 'instruction' ); CKEDITOR.replace( 'visitinglocation' ); $("form").submit( function(e) { var aimtLength = CKEDITOR.instances['aimofconference'].getData().replace(/<[^>]*>/gi, '').length; var topicsLength = CKEDITOR.instances['topics'].getData().replace(/<[^>]*>/gi, '').length; var instructionLength = CKEDITOR.instances['instruction'].getData().replace(/<[^>]*>/gi, '').length; var visitingLength = CKEDITOR.instances['visitinglocation'].getData().replace(/<[^>]*>/gi, '').length; if( !aimtLength ) { alert( 'Aim of Conference required' ); e.preventDefault(); } else if(!topicsLength) { alert( 'Topics required' ); e.preventDefault(); } else if(!instructionLength) { alert( 'Instruction required' ); e.preventDefault(); } else if(!visitingLength) { alert( 'Visiting Location required' ); e.preventDefault(); } else { } }); </script> <?php include("footer.php"); ?>