Ejemplo n.º 1
0
<?php

//if(!isset($_SERVER['HTTP_REFERER'])){
//    header("location: ../../access_denied.php?data=You don't have direct access to this page");
//}
require_once 'db/faculty_designation_class.php';
require_once 'db/faculty_detail_class.php';
define('INCLUDE_CHECK', true);
if (isset($_GET['id'])) {
    $ti = $_GET['id'];
} else {
    die("First Go to faculty managemant page");
}
$a = faculty_designation_class::getAlldesig();
$b = faculty_detail_class::getFacultyObject($ti);
?>
<form method="post" id="updateform" enctype="multipart/form-data" action="server/faculty-detail/faculty_bupdate_server.php"> 
     
     <label for="faculty_id">Faculty ID<span style="color:red;">*</span>:</label>
     <input type="text" value="<?php 
echo $b->faculty_id;
?>
" id="faculty_id" class="text ui-widget-content ui-corner-all" name="faculty_id" required readonly="true"/>
    <label for="faculty_prefix">Faculty Prefix<span style="color:red;">*</span>:</label>
      <select name="faculty_prefix" id="faculty_prefix" class="text ui-widget-content ui-corner-all" required="true">    

        <option value="Mr." <?php 
if ($b->faculty_prefix == "Mr.") {
    echo "selected";
}
?>
Ejemplo n.º 2
0
<!--faculty profile-->
<?php 
if (isset($_POST['page'])) {
    $page = $_POST['page'];
} else {
    header('Location: index.php');
}
if (trim($page) == "profile") {
    if (isset($_POST['id'])) {
        $id = $_POST['id'];
    }
    require_once '../CMS/db/faculty_designation_class.php';
    require_once '../CMS/db/faculty_detail_class.php';
    require_once '../CMS/db/faculty_experience_class.php';
    require_once '../CMS/db/faculty_qualification_class.php';
    $faculty = faculty_detail_class::getFacultyObject($id);
    if ($faculty === 0) {
        die("No faculty exsist with this id.");
    }
    $descg = faculty_designation_class::getname($faculty->faculty_designation_id);
    $exp = faculty_experience_class::getAllExperienceOfFaculty($id);
    $qua = faculty_qualification_class::getAllQualificationOfFaculty($id);
    echo "<div class='cellbackground' id='profile'>\r\n    <a href='{$faculty->faculty_linkedin_id}' target='_blank'>\r\n                              <img src='../images/li.png' class='li-image' border='0'>\r\n                               </a>\r\n                             <h3>Faculty Profile</h3>                           \r\n                             <hr /> ";
    echo " <div id='facultyone'>";
    if ($faculty->faculty_image_url == NULL || $faculty->faculty_image_url == "") {
        echo "<img id='facultyimage' src='../CMS/facultyImages/facultyplaceholder.jpg'  class='imageborder'/>";
    } else {
        echo "<img id='facultyimage' src='../CMS/{$faculty->faculty_image_url}'  class='imageborder'/>";
    }
    echo "    <h2>{$faculty->faculty_prefix} {$faculty->faculty_name}</h2>\r\n       <h1>{$descg}</h1>       \r\n       <p>{$faculty->faculty_email}</p>";
    if ($qua != NULL) {
Ejemplo n.º 3
0
require_once '../../db/site_log_class.php';
require_once '../../db/user_class.php';
session_start();
function gen_random_string($length = 16)
{
    $chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
    //length:36
    $final_rand = '';
    for ($i = 0; $i < $length; $i++) {
        $final_rand .= $chars[rand(0, strlen($chars) - 1)];
    }
    return $final_rand;
}
if (isset($_POST['faculty_id'])) {
    $faculty_id = $_POST['faculty_id'];
    $obj = faculty_detail_class::getFacultyObject($faculty_id);
} else {
    die("id needed.");
}
if (isset($_POST['faculty_prefix'])) {
    $faculty_prefix = $_POST['faculty_prefix'];
} else {
    die("prefix needed.");
}
if (isset($_POST['faculty_name'])) {
    $faculty_name = $_POST['faculty_name'];
} else {
    die("faculty name needed.");
}
if (isset($_POST['faculty_uname'])) {
    $faculty_username = $_POST['faculty_uname'];