public static function format_email($info, $format) { //set the root $root = $_SERVER['DOCUMENT_ROOT'] . '/mis.unijos.edu.ng/app_transcript_template'; //grab the template content $template = file_get_contents($root . '/mail_templates/signup_template.' . $format); //replace all the tags $template = ereg_replace('{APPLICANT}', "Applicant", $template); $template = ereg_replace('{EMAIL}', customEncrypt($info['email']), $template); $template = ereg_replace('{KEY}', $info['key'], $template); $template = ereg_replace('{SITEPATH}', 'http://localhost/mis.unijos.edu.ng/app_transcript_template', $template); //return the html of the template return $template; }
$credits = $db->query("SELECT * FROM credits WHERE status='active' ORDER BY credit_id ASC"); $numrows = $db->num_rows($credits); $passport_path = "documents" . DS . "credit_passports" . DS; $serial_no = 1; $numrows; while ($row = $db->fetch_array($credits)) { $mail = str_replace("@", "[at]", $row["email"]); if (empty($numrows)) { echo '<tr><td colspan="5" align="center">No Information Uploaded for the developer\'s Team</td></tr>'; } else { echo '<tr> <td>' . $serial_no . '</td> <td><div class="thumbnail" style="width: 100px; height: 133px;"><img src="' . $passport_path . $row["passport"] . '" width="100px" height="90px"></div></td> <td>' . $row["fullname"] . '</td> <td>' . $mail . '</td> <td><a href="developer_details.php?id=' . customEncrypt($row["credit_id"]) . '" class="btn">More...</a></td> </tr>'; $serial_no++; } } ?> <tr><td colspan="5" align="center"><a href="index.php" class="btn btn-info">Back to Home Page</a></td></tr> </tbody> </table> </div> <!--The Main Content Here Please--> <?php include_layout_template("footer.php"); ?>
<div class="container-fluid"> <div class="row-fluid"> <div class="span3"> <?php include_layout_template("left_menu.php"); ?> </div><!--/span--> <div class="span8"> <div class="hero-unit"> <h4 align="center">Where do you want to go?</h4> <hr class="line"> <center> <a class="btn btn-danger" href="payment.php">Pay for New Form</a> <a class="btn btn-success" href="<?php echo "apply.php?app_no=" . customEncrypt($application_no); ?> ">Continue Transcript Application</a> </center> <hr class="line"> </div> </div><!--/span--> </div><!--/row--> </div><!--/.fluid-container--> <div id="displayinfo" class="modal hide" tabindex="-1" data-backdrop="static" data-keyboard="false" style="display: none;"> <div class="modal-body ajax_data"></div> <div class="modal-footer"> <a href="#" class="btn" id="close">Close</a> </div> </div> <!--The Main Content Here Please-->
//html PNG location prefix $PNG_WEB_DIR = 'inc/qrcode/temp/'; include "inc/qrcode/qrlib.php"; //ofcourse we need rights to create temp dir if (!file_exists($PNG_TEMP_DIR)) { mkdir($PNG_TEMP_DIR); } $filename = $PNG_TEMP_DIR . 'test.png'; $errorCorrectionLevel = 'H'; $matrixPointSize = 4; // $naira = ₦ // remove before going live //$server = 'http://196.220.226.128'; $stud_id = $session->applicant_id; //$url = $server."/app_form_template/ajiya.php?ajiya=".customEncrypt($programmedetails['form_id']); $url = $_SERVER['DOCUMENT_ROOT'] . "/app_form_template/ajiya.php?ajiya=" . customEncrypt($programmedetails['form_id']); //$data = $url; $data .= $programmedetails['surname'] . ' ' . $programmedetails['first_name'] . ' ' . $programmedetails['middle_name']; $data .= ' ' . $paymentdetails['pin'] . $paymentdetails['amount']; // user data $filename = $PNG_TEMP_DIR . 'test' . md5($_REQUEST['data'] . '|' . $errorCorrectionLevel . '|' . $matrixPointSize . '|' . $programmedetails['form_id']) . '.png'; QRcode::png($data, $filename, $errorCorrectionLevel, $matrixPointSize, 2); $imgqrcode = '<img src="' . $PNG_WEB_DIR . basename($filename) . '" />'; // Transactions amount $trans = 100; ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>University of Jos, Nigeria</title>
</tr> </thead> <tbody>'; } echo '<form action="view_applicant_notification.php" method="POST"> <tr> <td>' . $serialno . '</td> <td>' . $row["surname"], $row["first_name"], $row["middle_name"] . '</td> <td>' . $row["title"] . '</td> <td>' . $row["notification_date"] . '</td> <td>' . $row["notification_time"] . '</td> <td><button type="submit" class="btn btn-info" name="read_notification">View Message</button></td> </tr> <input type="hidden" name="nid" value="' . customEncrypt($row["notification_id"]) . '" /> <input type="hidden" name="from" value="' . customEncrypt($file) . '" /> </form>'; if ($serialno % $max == 0) { echo '</tbody>'; echo '</table>'; echo '</div>'; $pagecounter++; } elseif ($serialno == $number_of_notifications) { echo '</tbody>'; echo '</table>'; echo '</div>'; } $serialno++; } echo '</div> </div>';
$icon = '<i class="icon-user"></i>'; break; default: $icon = '<i class="icon-user"></i>'; break; } ?> <p align="justify" > <span class=""><?php //echo $icon; ?> </span> <a href="all_news.php?id=<?php echo customEncrypt($item->id); ?> "> <h4 style ="color:#006699;"> <?php echo $item->title; ?> </h4> <strong> <?php echo $item->display_line; ?> </strong><br> </a> <?php if (strlen($item->content) >= 200) { echo substr($item->content, 0, 200) . '...'; } else {
$matrixPointSize = 4; // if (isset($_REQUEST['size'])) // $matrixPointSize = min(max((int)$_REQUEST['size'], 1), 10); // if (isset($_REQUEST['data'])) { //it's very important! // if (trim($_REQUEST['data']) == '') // die('data cannot be empty! <a href="?">back</a>'); // $programmedetails['form_id']; $paymentdetails['pin']; //$naira = ₦ // server // $server = $_SERVER['SERVER_ADDR']; //$server = $_SERVER['SERVER_NAME']; $server = 'http://196.220.226.128'; $stud_id = $session->applicant_id; //$url = "localhost/mis.unijos.edu.ng/"; $url = $server . "/mis.unijos.edu.ng/app_form_template/ajiya.php?ajiya=" . customEncrypt($programmedetails['form_id']); $data = $url; // $data .= $programmedetails['surname'].' '.$programmedetails['first_name'].' '.$programmedetails['middle_name']; //$data .= ' '. $paymentdetails['pin'] . $paymentdetails['amount']; // user data $filename = $PNG_TEMP_DIR . 'test' . md5($_REQUEST['data'] . '|' . $errorCorrectionLevel . '|' . $matrixPointSize) . '.png'; QRcode::png($data, $filename, $errorCorrectionLevel, $matrixPointSize, 2); // } else { // //default data // echo 'You can provide data in GET parameter: <a href="?data=like_that">like that</a><hr/>'; // QRcode::png('PHP QR Code :)', $filename, $errorCorrectionLevel, $matrixPointSize, 2); // } //display generated file $imgqrcode = '<img src="' . $PNG_WEB_DIR . basename($filename) . '" />'; //config form // echo '<form action="index.php" method="post">
</div> </div> <div class="control-group"> <label class="control-label" for="inputEmail">Message: </label> <div class="controls"> <div class="input-prepend"> <textarea class="textarea" style="width: 610px; height: 200px" name="message" id="message"></textarea> </div> </div> </div> <div class="control-group"> <div class="controls"> <input type="hidden" value="<?php echo customEncrypt($admin_details->surname . ' ' . $admin_details->othernames); ?> " id="sender" name="sender" /> </div> </div> <div class="control-group"> <div class="controls"> <button type="submit" class="btn btn-primary" id="send_mail">Send Mail</button> </div> </div> </form> </div> </div> <!-- //Content -->
</thead>'; echo '<tbody>'; } echo ' <tr>'; // if($role == 1 || $role == 6){ // echo '<td><input type="checkbox" name="applicant_id_'.$serialno.'" value="'.customEncrypt($result['applicant_id']).'"> </td>'; // } echo '<td>' . $serialno . '</td> <td>' . $record["student_id"] . '</td> <td>' . $record["ResponseCode"] . '</td> <td>' . $record["ResponseDescription"] . '</td> <td>' . $record["Amount"] . '</td> <td>' . $record["PaymentReference"] . '</td> <td>' . $record["Interswitch_date"] . '</td> <td><a href="view_log.php?q=' . customEncrypt($record["student_id"]) . '" class="btn">View</a></td> </tr>'; if ($serialno % $max == 0) { echo '</tbody>'; echo '</table>'; echo '</div>'; $pagecounter++; } elseif ($serialno == $number_of_records) { echo '</tbody>'; echo '</table>'; echo '</div>'; } $serialno++; } echo '</div>'; echo '</div>';
public function sendRefereeMail($applicant_name) { //$pop = new POP3(); //$pop->Authorise('mail.unijos.edu.ng', 25, false, '*****@*****.**', 'application1234form', 1); $mail = new PHPMailer(); $mail->IsSMTP(); //$mail->SMTPDebug = 1; $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "tls"; // sets the prefix to the servier $mail->Host = "mail.unijos.edu.ng"; // sets GMAIL as the SMTP server $mail->Port = 25; $mail->Username = '******'; $mail->Password = '******'; $mail->SetFrom('*****@*****.**', 'University Of Jos'); $mail->AddReplyTo('*****@*****.**', 'University of Jos'); $mail->Subject = 'Referee Notification'; $verification_link = 'http://' . $_SERVER['HTTP_HOST'] . '/app_form_template/referee.php?' . md5('id') . '=' . customEncrypt($this->referees_id); $MSG = ' <style type="text/css"> .codrops-top{ line-height: 55px; font-size: 30px; /*background: rgba(255, 255, 255, 0.4);*/ background:#069; /*text-transform: uppercase;*/ z-index: 9999; position: relative; box-shadow: 1px 0px 2px rgba(0,0,0,0.2); } .codrops-top span.left{ float: left; margin-top:10px; margin-left: 20px; } .codrops-top span.nxt{ float: center; margin-top:10px; /*margin-left: 20px;*/ } .codrops-top span.right{ float: center; } .message { width:600px; min-height:500px; padding:10px; margin-top:10px; margin:auto; text-align:justify; font-size:16px; } .verify_link{ margin:auto; text-align:center; } .verify_link a { margin:auto; text-decoration:none; color:blue; font-weight:bold; font-size:24px; } .verify_link a:hover { color:#f00; border-bottom:1px solid #f00; } </style> <div class="codrops-top"> <span class="left"><img src="http://mis.unijos.edu.ng/images/logo.png" width="80" height="90" alt="University of Jos Logo"></span> <span class="right"><center><font color="#FFFFFF">UNIVERSITY OF JOS - NIGERIA</font></center></span> <div class="nxt"><center><font color="#FFFFFF">Corporate Information System (CIS)</font></center></div> <div class="clr"></div> </div> <div class="message"> Hi ' . $this->referee_name . ',<br/> <p>You have been selected as a referee by ' . $applicant_name . '. Please follow the link below to fill in the referee form.</p> <p>Note: The information will be verified and any false input will jeopardize the candidate\'s chances of getting admission</p> <p>Use the link below to referee the application</p> <div class="verify_link"><a href="' . $verification_link . '" >Referee Form</a></div> </div>'; $mail->MsgHTML($MSG); $mail->AddAddress($this->referee_email, $this->referee_name); if (!$mail->Send()) { return false; } else { return true; } }
<th>Amount</th> <th>Status</th> <th></th> </tr> </thead>'; echo '<tbody>'; } echo ' <tr>'; echo '<td>' . $serialno . '</td> <td>' . $record["jamb_rem_no"] . '</td> <td>' . ucwords($record["surname"]) . ' ' . ucwords($record["first_name"]) . ' ' . ucwords($record["middle_name"]) . '</td> <td>' . $record["department_name"] . '</td> <td>' . $record["amount"] . '</td> <td>' . $record["student_status"] . '</td> <td><a href="view_payment.php?q=' . customEncrypt($record["jamb_rem_no"]) . '" class="btn">View</a></td> </tr>'; if ($serialno % $max == 0) { echo '</tbody>'; echo '</table>'; echo '</div>'; $pagecounter++; } elseif ($serialno == $number_of_records) { echo '</tbody>'; echo '</table>'; echo '</div>'; } $serialno++; } echo '</div>'; echo '</div>';
<textarea class="textarea" id="aboutyou" placeholder="...Detail information about you." name="aboutyou" style="width: 610px; height: 200px" disabled><?php if (isset($credit->aboutyou)) { echo $credit->aboutyou; } ?> </textarea> </div> </div> </div> <!--Save Button--> <div id="accept_terms"> <div class="control-group"> <div class="controls"> <a href="credit.php?id=<?php echo customEncrypt($credit->credit_id); ?> " class="btn btn-default" name="back" id="back">Back</a> </div> </div> </div> <!-- End of Save Button--> </form> </div> <!--The Main Content Here Please--> <?php include_layout_template("footer.php"); ?> </body> </html>
<tr class="rowlink"> <td>Amount</td> <td><?php echo "₦" . $amount; ?> </td> </tr> </tbody> </table> <center> <a href='<?php echo "apply.php?app_no=" . customEncrypt($application_no); ?> ' class='btn btn-success'>CONTINUE WITH APPLICATION</a> <a href='<?php echo "invoice.php?tranx_no=" . customEncrypt($orderId); ?> ' class='btn btn-primary'>CLICK HERE TO PRINT YOUR INVOICE</a> </center> <img src='images/logo.png' class='imgg'> <?php } else { ?> <h4><p class="label label-info">Payment Failed</p></h4> <table class="table table-hover table-striped table-bordered"> <tbody data-provides="rowlink"> <tr class="rowlink"> <td>The Payment with Transaction ID: </td> <td><?php $msg = $transctiondetails['orderId']; echo output_message($msg);
</div> </div> </div> <div class="control-group"> <textarea class="textarea" name="content" id="content" style="width: 610px; height: 120px"><?php if (isset($requirement->content)) { echo $requirement->content; } ?> </textarea> </div> <div class="control-group"> <input type="hidden" name="rid" value="<?php echo customEncrypt($requirement->id); ?> "> <button type="submit" class="btn btn-primary" name="update_requirements" id="update_requirements">Update Admission Requirements</button> </div> </form> </div> </div> <!-- //Content --> <?php include_layout_template("footer.php"); ?> </body>
<td>' . $result["department_name"] . '</td> <td>' . date('Y-m-d', $result["time_completed_application"]) . '</td> <td>' . admission_status($result["status"]) . '</td> <td> <a href="applicant_details.php?' . md5('applicant_id') . '=' . customEncrypt($result['applicant_id']) . '" class="btn btn-primary">View</a> </td> </tr>'; if ($serialno % 10 == 0) { echo '</tbody>'; echo '</table>'; echo '</div>'; $pagecounter++; } elseif ($serialno == $number_of_applicants) { echo '</tbody>'; echo '</table>'; echo '</div>'; } $serialno++; } echo '</div>'; echo '</div>'; echo 'pagenumber=' . $number_of_pages; echo 'export=' . customEncrypt($sql); /*<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a> <a class="carousel-control right" href="#myCarousel" data-slide="next">›</a> </div>';*/ } else { echo '<h4 align="center">No Applicant Found</h4>'; echo 'pagenumber=0'; }
</td> <td><?php if (isset($content)) { echo $content; } ?> </td> <td><?php if (isset($note->updated_at)) { echo $note->updated_at; } ?> </td> <td class="nolink"><a href="my_notification_details.php?note=<?php echo customEncrypt($note->id); ?> "> Details </a></td> </tr> </tbody> <?php $serial_no++; } } ?> </table> <div class="pagination " style="clear: both;"> <ul> <?php if ($pagination->total_pages() > 1) {
public function registrationConfirmationMail() { //$pop = new POP3(); //$pop->Authorise('mail.unijos.edu.ng', 25, false, '*****@*****.**', 'application1234form', 1); $mail = new PHPMailer(); $mail->IsSMTP(); //$mail->SMTPDebug = 1; $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "tls"; // sets the prefix to the servier $mail->Host = "mail.unijos.edu.ng"; // sets GMAIL as the SMTP server $mail->Port = 25; $mail->Username = '******'; $mail->Password = '******'; $mail->SetFrom('*****@*****.**', 'University Of Jos'); $mail->AddReplyTo('*****@*****.**', 'University of Jos'); $mail->Subject = 'Registration Confirmation'; $verification_link = 'http://' . $_SERVER['HTTP_HOST'] . '/mis.unijos.edu.ng/app_form_template/verify.php?' . md5('email') . '=' . customEncrypt($this->email); $MSG = ' <style type="text/css"> .codrops-top{ line-height: 55px; font-size: 30px; /*background: rgba(255, 255, 255, 0.4);*/ background:#069; /*text-transform: uppercase;*/ z-index: 9999; position: relative; box-shadow: 1px 0px 2px rgba(0,0,0,0.2); } .codrops-top span.left{ float: left; margin-top:10px; margin-left: 20px; } .codrops-top span.nxt{ float: center; margin-top:10px; /*margin-left: 20px;*/ } .codrops-top span.right{ float: center; } .message { width:600px; min-height:500px; padding:10px; margin-top:10px; margin:auto; text-align:justify; font-size:16px; } .verify_link { width:120px; height:50px; font-size:16px; text-align:center; margin-top:30px; background:#069; margin:auto; border-radius:5px; color:#fff; padding-top:10px; } .verify_link a { text-decoration:none; color:#fff; font-weight:bold; font-size:24px; } .verify_link a:hover { border-bottom:1px solid #fff; } </style> <div class="codrops-top"> <span class="left"><img src="http://mis.unijos.edu.ng/images/logo.png" width="80" height="90" alt="University of Jos Logo"></span> <span class="right"><center><font color="#FFFFFF">UNIVERSITY OF JOS - NIGERIA</font></center></span> <div class="nxt"><center><font color="#FFFFFF">Corporate Information System (CIS)</font></center></div> <div class="clr"></div> </div> <div class="message"> Hi, ' . $this->surname . ' ' . $this->first_name . ' ' . $this->middle_name . '<br/> <p>Thank you for completing your registration for admission into University of Jos, Jos Nigeria.</p> <p>This is a confirmation email that your application into ' . $this->programme_applied_id . ', you can always login to track your admission status.</p> <p>Thnak yo once more for applying into University of Jos, Jos Nigeria</p> </div>'; $mail->MsgHTML($MSG); $mail->AddAddress($this->email, $this->surname . ' ' . $this->first_name . ' ' . $this->middle_name); if (!$mail->Send()) { return false; } else { return true; } }
<?php if ($role == 1) { ?> <!-- Set Admission Status --> <h4 align="center" class="alert alert-success">Set Admission Status</h4> <form method="POST" class="admission"> <div id="admission_status_wrapper" class="input-prepend span4 offset2"> <span class="add-on"><i class="icon-chevron-down"></i></span> <select class="input-xlarge" name="admission_status" id="admission_status" > <option value="4">Not offered Admission</option> <option value="5">Offered Admission</option> </select> </div> <input type="hidden" name="aid" value="<?php echo customEncrypt($applicant_id); ?> " /> <button id="set_admission_status" type="submit" class="btn btn-primary">Set Admission Status</button> </form> <?php } ?> <!-- end of applicant details --> </div> </div> <div id="displayinfo" class="modal hide" tabindex="-1" data-backdrop="static" data-keyboard="false" style="display: none;"> <div class="modal-body ajax_data"></div> <div class="modal-footer"> <a href="#" class="btn" id="close">Close</a>
?> </td> <td><?php if (isset($user_application_history->application_no)) { echo $user_application_history->application_no; } ?> </td> <td><?php if (isset($user_application_history->updated_at)) { echo $user_application_history->updated_at; } ?> </td> <td class="nolink"><a href="check_application_status.php?app=<?php echo customEncrypt($user_application_history->application_no); ?> ">Details </a></td> </tr> </tbody> <?php $serial_no++; } } ?> </table> <div class="pagination " style="clear: both;"> <ul> <?php if ($pagination->total_pages() > 1) {
<input type="hidden" name="signature2" id="signature2" value="<?php echo customEncrypt($registra->id); ?> " required /> <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a> </div> </div> </div> </div> <div class="control-group"> <button type="submit" class="btn btn-primary" name="update_registra" id="update_registra">Update Registra</button> <button type="button" class="btn btn-danger" name="del_registra" id="del_registra">Delete</button> </div> <input type="hidden" name="rid" value="<?php echo customEncrypt($registra->id); ?> " /> </form> </div> </div> <!-- //Content --> <?php include_layout_template("footer.php"); ?> </body> </html>
<td>' . $row->display_line . '</td> <td>' . $row->created_year . '</td> <td>' . $row->created_time . '</td>'; if ($row->visible == 1) { echo '<td><span class="label label-success">Active</span></td>'; } else { if ($row->visible == 2) { echo '<td><span class="label label-warning">Unverified</span></td>'; } else { echo '<td><span class="label label-important">Inactive</span></td>'; } } echo '<td><button type="submit" class="btn btn-info" name="edit_news">Edit</button></td> </tr> <input type="hidden" name="nid" value="' . customEncrypt($row->id) . '" /> </form>'; if ($serialno % $max == 0) { echo '</tbody>'; echo '</table>'; echo '</div>'; $pagecounter++; } elseif ($serialno == $number_of_notifications) { echo '</tbody>'; echo '</table>'; echo '</div>'; } $serialno++; } echo '</div> </div>';
</tr> </thead> <tbody>'; } echo '<form action="edit_admin_user.php" method="POST"> <tr> <td>' . $serialno . '</td> <td>' . $row["staff_id"] . '</td> <td>' . $row["surname"] . ' ' . $row["othernames"] . '</td> <td>' . $row["rank"] . '</td> <td>' . $row["email"] . '</td> <td>' . $row["admin_role_name"] . '</td> <td><button type="submit" class="btn btn-info" name="view_admin_user">View User</button></td> </tr> <input type="hidden" name="uid" value="' . customEncrypt($row["user_id"]) . '" /> </form>'; if ($serialno % $max == 0) { echo '</tbody>'; echo '</table>'; echo '</div>'; $pagecounter++; } elseif ($serialno == $number_of_users) { echo '</tbody>'; echo '</table>'; echo '</div>'; } $serialno++; } echo '</div> </div>';
<?php # Check completion of a transcript application if ($history->application_flag == 0) { ?> <td><span class="label label-important">Incompleted</span></td> <td><a class="btn btn-info" href="<?php echo "invoice.php?tranx_no=" . customEncrypt($tranx_record->jamb_rem_no); ?> "> Invoice </a></td> <td><a class="btn btn-success" href="confirm.php">Complete</a></td> <?php } else { ?> <td><span class="label label-success">Completed</span></td> <td colspan="2"><a class="btn btn-info" href="<?php echo "invoice.php?tranx_no=" . customEncrypt($tranx_record->jamb_rem_no); ?> "> Invoice </a></td> <?php } ?> </tr> </tbody> <?php $serial_no++; } } ?> </table> <div class="pagination " style="clear: both;">
require_once "inc/initialize.php"; ?> <?php $sql = "SELECT * FROM requirements ORDER BY `id` DESC "; $require_contents = Requirements::find_by_sql($sql); ?> <ul> <?php foreach ($require_contents as $require_content) { ?> <li> <a href='programs_details.php?id=<?php echo customEncrypt($require_content->id); ?> '> <i class="icon-hand-right"></i> <?php echo htmlentities($require_content->name); ?> </a> </li> <?php } ?> </ul>
</td> <td><?php if (isset($comment)) { echo $comment; } ?> </td> <td><?php if (isset($feed->updated_at)) { echo $feed->updated_at; } ?> </td> <td class="nolink"><a href="my_feedbacks_details.php?feed=<?php echo customEncrypt($feed->id); ?> "> Details </a></td> </tr> </tbody> <?php $serial_no++; } } ?> </table> <div class="pagination " style="clear: both;"> <ul> <?php if ($pagination->total_pages() > 1) {
<input type="hidden" value="<?php echo $user->department_id; ?> " id="department_from_db" /> <select class="input-xlarge" name="department_id" id="department_id" > <option value="">--Select Course--</option> <div id="department_id"></div> </select> </div> </div> </div> </div> <input type="hidden" name="uid" value="<?php if (isset($user->user_id)) { echo customEncrypt($user->user_id); } ?> " /> <div id="accept_terms"> <div class="control-group"> <div class="controls"> <button type="submit" class="btn btn-primary" id="submit" >Update</button> <button type="button" onClick="document.location.href='index.php';" class="btn">Cancel</button> </div> </div> </div> </form> </div>