OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
award
/
process
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/20/2025 11:54:41 PM
rwxrwxrwx
📄
add.nominee.php
5.7 KB
12/02/2020 03:45:24 PM
rw-rw-r--
📄
chk.login.php
816 bytes
12/02/2020 03:45:24 PM
rw-rw-r--
📄
edit.nominee.php
15.99 KB
12/02/2020 03:45:24 PM
rw-rw-r--
📄
endorse.nominee.php
4.01 KB
12/02/2020 03:45:24 PM
rw-rw-r--
📄
forgot.password.php
1.9 KB
12/02/2020 03:45:25 PM
rw-rw-r--
📄
logout.php
105 bytes
12/02/2020 03:45:26 PM
rw-rw-r--
📄
register.php
3.04 KB
12/02/2020 03:45:26 PM
rw-rw-r--
📄
submit.nominee.php
18.61 KB
12/02/2020 03:45:26 PM
rw-rw-r--
📄
update.nominee.php
5.86 KB
12/02/2020 03:45:26 PM
rw-rw-r--
📄
view.endorsement.php
1.48 KB
12/02/2020 03:45:26 PM
rw-rw-r--
📄
view.nominee.php
10.59 KB
12/02/2020 03:45:27 PM
rw-rw-r--
Editing: edit.nominee.php
Close
<? // Edit Nominee include '../inc/validate.php'; include '../inc/utils.php'; $id = trim(isset($_POST["id"]) ? $_POST["id"] : ''); if ($id > 0) { $sql = "SELECT * FROM nomination WHERE id=$id AND nominatedby=$gUserId"; $result = mysqli_query($con, $sql); $numRows = mysqli_num_rows($result); if ($numRows > 0) { $row = mysqli_fetch_array($result); $nomineeId = $row["id"]; $nomineeSalutation = $row["salutation"]; $nomineeFirstName = $row["fname"]; $nomineeLastName = $row["sname"]; $nomineeAffiliation = $row["affiliation"]; $nomineeRole = $row["role"]; $nomineeAddress = $row["addr"]; $nomineeCity = $row["city"]; $nomineeCountry = $row["country"]; $nomineePincode = $row["pin"]; $nomineePhone = $row["phone"]; $nomineeEmail = $row["email"]; $nomineeDOB = $row["dob"]; $nomineeAcademic = $row["academic"]; $nomineePositions = $row["positions"]; $nomineeContributions = $row["contrib"]; $nomineeImpact = $row["impact"]; $nomineeRecognition = $row["recognition"]; $nomineePatents = $row["patents"]; $nomineePubs = $row["pubs"]; $nomineeTopPubs = $row["toppubs"]; $nomineeCitations = $row["cit"]; $sql = "SELECT * FROM endorser WHERE nominationid=$id AND nominatedby=$gUserId"; $result = mysqli_query($con, $sql); $row = mysqli_fetch_array($result); $endorserSalutation1 = $row["salutation"]; $endorserFirstName1 = $row["fname"]; $endorserLastName1 = $row["sname"]; $endorserPhone1 = $row["phone"]; $endorserEmail1 = $row["email"]; $row = mysqli_fetch_array($result); $endorserSalutation2 = $row["salutation"]; $endorserFirstName2 = $row["fname"]; $endorserLastName2 = $row["sname"]; $endorserPhone2 = $row["phone"]; $endorserEmail2 = $row["email"]; $row = mysqli_fetch_array($result); $endorserSalutation3 = $row["salutation"]; $endorserFirstName3 = $row["fname"]; $endorserLastName3 = $row["sname"]; $endorserPhone3 = $row["phone"]; $endorserEmail3 = $row["email"]; ?> <form id="frmNomination"> <h5 class="mt-4">Section 1: Nominee's Personal Details</h5> <div class="mb-4">All fields marked with <sup style="color:#cc0000">*</sup> are mandatory.</div> <div class="form-row mt-3"> <div class="form-group col-md-2 text-left"> <label for="nomineeSalutation">Salutation <sup>*</sup></label> <select class="form-control" id="nomineeSalutation" name="nomineeSalutation"> <option value="Mr."<? if ($nomineeSalutation == 'Mr.') {?> SELECTED<? } ?>>Mr</option> <option value="Ms."<? if ($nomineeSalutation == 'Ms.') {?> SELECTED<? } ?>>Ms</option> <option value="Dr."<? if ($nomineeSalutation == 'Dr.') {?> SELECTED<? } ?>>Dr</option> <option value="Prof."<? if ($nomineeSalutation == 'Prof.') {?> SELECTED<? } ?>>Prof</option> </select> </div> <div class="form-group col-md-5 text-left"> <label for="nomineeFirstName">First Name <sup>*</sup></label> <input type="text" class="form-control" id="nomineeFirstName" name="nomineeFirstName" maxlength="100" value="<?=$nomineeFirstName?>" /> </div> <div class="form-group col-md-5 text-left"> <label for="nomineeLastName">Last Name <sup>*</sup></label> <input type="text" class="form-control" id="nomineeLastName" name="nomineeLastName" maxlength="100" value="<?=$nomineeLastName?>" /> </div> </div> <div class="form-row"> <div class="form-group col-md-6 text-left"> <label for="nomineeAffiliation">Affiliation <sup>*</sup></label> <input type="text" class="form-control" id="nomineeAffiliation" name="nomineeAffiliation" maxlength="100" value="<?=$nomineeAffiliation?>" /> </div> <div class="form-group col-md-6 text-left"> <label for="nomineeRole">Role <sup>*</sup></label> <input type="text" class="form-control" id="nomineeRole" name="nomineeRole" maxlength="100" value="<?=$nomineeRole?>" /> </div> </div> <div class="form-row"> <div class="form-group col text-left"> <label for="nomineeAcademic">Academic qualifications <sup>*</sup></label> <textarea class="form-control rte" id="nomineeAcademic" name="nomineeAcademic"><?=$nomineeAcademic?></textarea> </div> </div> <div class="form-row"> <div class="form-group col text-left"> <label for="nomineeAddress">Address <sup>*</sup></label> <input type="text" class="form-control" id="nomineeAddress" name="nomineeAddress" maxlength="100" value="<?=$nomineeAddress?>" /> </div> </div> <div class="form-row"> <div class="form-group col-md-4 text-left"> <label for="nomineeCity">City <sup>*</sup></label> <input type="text" class="form-control" id="nomineeCity" name="nomineeCity" maxlength="50" value="<?=$nomineeCity?>" /> </div> <div class="form-group col-md-4 text-left"> <label for="nomineeCity">Country <sup>*</sup></label> <input type="text" class="form-control" id="nomineeCountry" name="nomineeCountry" maxlength="50" value="<?=$nomineeCountry?>" /> </div> <div class="form-group col-md-4 text-left"> <label for="nomineePincode">Pin Code <sup>*</sup></label> <input type="text" class="form-control" id="nomineePincode" name="nomineePincode" maxlength="10" value="<?=$nomineePincode?>" /> </div> </div> <div class="form-row"> <div class="form-group col-md-4 text-left"> <label for="nomineeDOB">Date of Birth <sup>*</sup></label> <input type="text" class="form-control" id="nomineeDOB" name="nomineeDOB" maxlength="20" style="background-color:#fff" value="<?=$nomineeDOB?>" /> </div> <div class="form-group col-md-4 text-left"> <label for="nomineePhone">Phone <sup>*</sup></label> <input type="text" class="form-control" id="nomineePhone" name="nomineePhone" maxlength="15" value="<?=$nomineePhone?>" /> </div> <div class="form-group col-md-4 text-left"> <label for="nomineeEmail">Email <sup>*</sup></label> <input type="text" class="form-control" id="nomineeEmail" name="nomineeEmail" maxlength="50" value="<?=$nomineeEmail?>" /> </div> </div> <h5 class="mt-4">Section 2: Professional Achievements</h5> <div class="form-row mt-3"> <div class="form-group col text-left"> <label for="nomineeProfRes">A. Professional Responsibilities/Positions held <sup>*</sup></label> <textarea class="form-control rte" id="nomineePositions" name="nomineePositions" placeholder="Use numbered bullets"><?=$nomineePositions?></textarea> <small class="form-text text-muted">Maximum: 400 words</small> </div> </div> <div class="form-row"> <div class="form-group col text-left"> <label for="nomineeContributions">B. Outstanding contributions of the Nominee <sup>*</sup></label> <textarea class="form-control rte" id="nomineeContributions" name="nomineeContributions" placeholder="Use numbered bullets"><?=$nomineeContributions?></textarea> <small class="form-text text-muted">Maximum: 400 words</small> </div> </div> <div class="form-row"> <div class="form-group col text-left"> <label for="nomineeImpact">C. Technical, professional, societal and/or economic impact of the Nominee's contributions <sup>*</sup></label> <textarea class="form-control rte" id="nomineeImpact" name="nomineeImpact" placeholder="Use numbered bullets"><?=$nomineeImpact?></textarea> <small class="form-text text-muted">Maximum: 400 words</small> </div> </div> <div class="form-row"> <div class="form-group col text-left"> <label for="nomineeRecognition">D. Nominee's Past Recognition / Honours / Awards <sup>*</sup></label> <textarea class="form-control rte" id="nomineeRecognition" name="nomineeRecognition" placeholder="Use numbered bullets"><?=$nomineeRecognition?></textarea> <small class="form-text text-muted">Maximum: 400 words</small> </div> </div> <div class="form-row"> <div class="form-group col text-left"> <label for="nomineePatents">E. Patents/Grants Received</label> <textarea class="form-control rte" id="nomineePatents" name="nomineePatents" placeholder="Use numbered bullets"><?=$nomineePatents?></textarea> <small class="form-text text-muted">Maximum: 400 words</small> </div> </div> <div class="form-row"> <div class="form-group col text-left"> <label for="nomineePubs">F. Publications of the Nominee in the past 5 years <sup>*</sup></label> <textarea class="form-control rte" id="nomineePubs" name="nomineePubs" placeholder="Use numbered bullets"><?=$nomineePubs?></textarea> </div> </div> <div class="form-row"> <div class="form-group col text-left"> <label for="nomineeTopPubs">G. In the Nominee's view which are the all time 3 top publications of the Nominee <sup>*</sup></label> <textarea class="form-control rte" id="nomineeTopPubs" name="nomineeTopPubs" placeholder="Use numbered bullets"><?=$nomineeTopPubs?></textarea> <small class="form-text text-muted">Maximum: 400 words</small> </div> </div> <div class="form-row"> <div class="form-group col text-left"> <label for="nomineeCitations">H. Proposed Citation <sup>*</sup></label> <textarea class="form-control rte" id="nomineeCitations" name="nomineeCitations" placeholder="Use numbered bullets"><?=$nomineeCitations?></textarea> <small class="form-text text-muted">Maximum: 400 words</small> </div> </div> <h5 class="mt-4">Section 3: Provide 3 Endorsers Names and Email ID</h5> <div class="card mt-3"> <div class="card-header text-left">Endorser 1</div> <div class="card-body"> <div class="form-row mt-3"> <div class="form-group col-md-2 text-left"> <label for="endorserSalutation1">Salutation <sup>*</sup></label> <select class="form-control" id="endorserSalutation1" name="endorserSalutation1"> <option value="Mr."<? if ($endorserSalutation1 == 'Mr.') {?> SELECTED<? } ?>>Mr</option> <option value="Ms."<? if ($endorserSalutation1 == 'Ms.') {?> SELECTED<? } ?>>Ms</option> <option value="Dr."<? if ($endorserSalutation1 == 'Dr.') {?> SELECTED<? } ?>>Dr</option> <option value="Prof."<? if ($endorserSalutation1 == 'Prof.') {?> SELECTED<? } ?>>Prof</option> </select> </div> <div class="form-group col-md-5 text-left"> <label for="endorserFirstName1">First Name <sup>*</sup></label> <input type="text" class="form-control" id="endorserFirstName1" name="endorserFirstName1" maxlength="50" value="<?=$endorserFirstName1?>" /> </div> <div class="form-group col-md-5 text-left"> <label for="endorserLastName1">Last Name <sup>*</sup></label> <input type="text" class="form-control" id="endorserLastName1" name="endorserLastName1" maxlength="50" value="<?=$endorserLastName1?>" /> </div> </div> <div class="form-row"> <div class="form-group col-md-6 text-left"> <label for="endorserEmail1">Phone <sup>*</sup></label> <input type="text" class="form-control" id="endorserPhone1" name="endorserPhone1" maxlength="15" value="<?=$endorserPhone1?>" /> </div> <div class="form-group col-md-6 text-left"> <label for="endorserEmail1">Email <sup>*</sup></label> <input type="text" class="form-control" id="endorserEmail1" name="endorserEmail1" maxlength="50" value="<?=$endorserEmail1?>" /> </div> </div> </div> </div> <div class="card mt-3"> <div class="card-header text-left">Endorser 2</div> <div class="card-body"> <div class="form-row mt-3"> <div class="form-group col-md-2 text-left"> <label for="endorserSalutation2">Salutation <sup>*</sup></label> <select class="form-control" id="endorserSalutation2" name="endorserSalutation2"> <option value="Mr."<? if ($endorserSalutation2 == 'Mr.') {?> SELECTED<? } ?>>Mr</option> <option value="Ms."<? if ($endorserSalutation2 == 'Ms.') {?> SELECTED<? } ?>>Ms</option> <option value="Dr."<? if ($endorserSalutation2 == 'Dr.') {?> SELECTED<? } ?>>Dr</option> <option value="Prof."<? if ($endorserSalutation2 == 'Prof.') {?> SELECTED<? } ?>>Prof</option> </select> </div> <div class="form-group col-md-5 text-left"> <label for="endorserFirstName2">First Name <sup>*</sup></label> <input type="text" class="form-control" id="endorserFirstName2" name="endorserFirstName2" maxlength="50" value="<?=$endorserFirstName2?>" /> </div> <div class="form-group col-md-5 text-left"> <label for="endorserLastName2">Last Name <sup>*</sup></label> <input type="text" class="form-control" id="endorserLastName2" name="endorserLastName2" maxlength="50" value="<?=$endorserLastName2?>" /> </div> </div> <div class="form-row"> <div class="form-group col-md-6 text-left"> <label for="endorserEmail1">Phone <sup>*</sup></label> <input type="text" class="form-control" id="endorserPhone2" name="endorserPhone2" maxlength="15" value="<?=$endorserPhone2?>" /> </div> <div class="form-group col-md-6 text-left"> <label for="endorserEmail2">Email <sup>*</sup></label> <input type="text" class="form-control" id="endorserEmail2" name="endorserEmail2" maxlength="50" value="<?=$endorserEmail2?>" /> </div> </div> </div> </div> <div class="card mt-3"> <div class="card-header text-left">Endorser 3</div> <div class="card-body"> <div class="form-row mt-3"> <div class="form-group col-md-2 text-left"> <label for="endorserSalutation3">Salutation <sup>*</sup></label> <select class="form-control" id="endorserSalutation3" name="endorserSalutation3"> <option value="Mr."<? if ($endorserSalutation3 == 'Mr.') {?> SELECTED<? } ?>>Mr</option> <option value="Ms."<? if ($endorserSalutation3 == 'Ms.') {?> SELECTED<? } ?>>Ms</option> <option value="Dr."<? if ($endorserSalutation3 == 'Dr.') {?> SELECTED<? } ?>>Dr</option> <option value="Prof."<? if ($endorserSalutation3 == 'Prof.') {?> SELECTED<? } ?>>Prof</option> </select> </div> <div class="form-group col-md-5 text-left"> <label for="endorserFirstName3">First Name <sup>*</sup></label> <input type="text" class="form-control" id="endorserFirstName3" name="endorserFirstName3" maxlength="50" value="<?=$endorserFirstName3?>" /> </div> <div class="form-group col-md-5 text-left"> <label for="endorserLastName1">Last Name <sup>*</sup></label> <input type="text" class="form-control" id="endorserLastName3" name="endorserLastName3" maxlength="50" value="<?=$endorserLastName3?>" /> </div> </div> <div class="form-row"> <div class="form-group col-md-6 text-left"> <label for="endorserEmail1">Phone <sup>*</sup></label> <input type="text" class="form-control" id="endorserPhone3" name="endorserPhone3" maxlength="15" value="<?=$endorserPhone3?>" /> </div> <div class="form-group col-md-6 text-left"> <label for="endorserEmail1">Email <sup>*</sup></label> <input type="text" class="form-control" id="endorserEmail3" name="endorserEmail3" maxlength="50" value="<?=$endorserEmail3?>" /> </div> </div> </div> </div> <input type="hidden" id="nomineeId" name="nomineeId" value="<?=$id?>" /> <div id="panelSubmitNomineeStatus"> <button class="btn btn-primary mt-4 mr-1" onclick="return chkNomineeUpdate()">Update Nomination details</button> <button class="btn btn-primary mt-4 mr-1" onclick="return chkNomineeSubmit()">Submit Nomination</button> <button class="btn btn-secondary mt-4" onclick="return closeNominee()">Go back</button> </div> </div> </div> </form> <script type="text/javascript"> var gEditors = []; $(function() { var allEditors = document.querySelectorAll('.rte'); for (var i = 0; i < allEditors.length; ++i) { ClassicEditor.create(allEditors[i], { toolbar: { items: ['heading','|','bold','italic','link','bulletedList','numberedList','|','indent','outdent','|','undo','redo'] }, language: 'en' }).then( editor => { gEditors.push(editor); window.editor = editor; }); } $('.Zebra_DatePicker').remove(); $('#nomineeDOB').Zebra_DatePicker({ format: 'M d, Y' }); }); </script> <? } }