triggerMessage("admin_specialization", "Account edited successfully!");
    }
    header("location:manage_specialization.php");
}
if (!empty($_POST['add'])) {
    $coursename = trim($_POST['coursename']);
    $pid = trim($_POST['pid']);
    if (!empty($coursename)) {
        $query = "INSERT INTO dup_specialization ( id, coursename, pid)\t\t\t\t\t\t\t  \r\n\t\t\t\t\t\t\t\t\tVALUES \r\n\t\t\t\t\t\t\t\t\t('','{$coursename}','{$pid}')";
        $res = mysql_query($query);
        if (!empty($res)) {
            triggerMessage("admin_specialization", "Created Record Successfully!");
        }
        header("location:manage_specialization.php");
    } else {
        triggerMessage("admin_specialization", "Please Enter Description!");
    }
}
if ($_GET['act'] == "edit") {
    $editid = $_GET['id'];
    $esql = mysql_query("select * from dup_specialization where id = '{$editid}' limit 1");
    $eresult = mysql_fetch_array($esql);
}
?>

<?php 
include "header.php";
?>
      <div style="width:770px; float:left;">
        <?php 
include "menu.php";
示例#2
0
include 'include/config.php';
include 'include/commonfunctions.php';
if (!empty($_POST['add'])) {
    $st_username = trim($_POST['st_username']);
    $st_pass = trim($_POST['st_pass']);
    $st_name = trim($_POST['st_name']);
    $st_email = trim($_POST['st_email']);
    $st_mobile = trim($_POST['st_mobile']);
    $st_location = trim($_POST['st_location']);
    if ($cn = ChkExists("dup_students", "st_username", $st_username, "err_student") == 0) {
        $query = "INSERT INTO dup_students ( st_id, st_username, st_pass, st_email,\r\n\t\t\t\t\t\t\t\tst_name, st_location, st_created, st_mobile,\r\n\t\t\t\t\t\t\t\tst_status)\t\t\t\t\t\t\t  \r\n\t\t\t\t\t\t\t\tVALUES \r\n\t\t\t\t\t\t\t\t('','{$st_username}','{$st_pass}','{$st_email}','{$st_name}',\r\n\t\t\t\t\t\t\t\t'{$st_location}', NOW(), '{$st_mobile}','active')";
        $res = mysql_query($query);
        if ($res) {
            header("location:student_afterreg.php");
        } else {
            triggerMessage("err_student", "Error: Registration Failed!");
        }
    }
}
include 'header.php';
?>
<script type="text/javascript">
$.validator.setDefaults({
	submitHandler: function() { this.submit(); }
});

$().ready(function() {
	
	
	// validate signup form on keyup and submit
	// validate signup form on keyup and submit
示例#3
0
        triggerMessage("admin_course", "Account edited successfully!");
    }
    header("location:manage_course.php");
}
if (!empty($_POST['add'])) {
    $coursename = trim($_POST['coursename']);
    $pid = trim($_POST['pid']);
    if (!empty($coursename)) {
        $query = "INSERT INTO dup_coursetypes ( id, coursename, pid)\t\t\t\t\t\t\t  \r\n\t\t\t\t\t\t\t\t\tVALUES \r\n\t\t\t\t\t\t\t\t\t('','{$coursename}','{$pid}')";
        $res = mysql_query($query);
        if (!empty($res)) {
            triggerMessage("admin_course", "Created Course Successfully!");
        }
        header("location:manage_course.php");
    } else {
        triggerMessage("admin_course", "Please Enter Course Description!");
    }
}
if ($_GET['act'] == "edit") {
    $editid = $_GET['id'];
    $esql = mysql_query("select * from dup_coursetypes where id = '{$editid}' limit 1");
    $eresult = mysql_fetch_array($esql);
}
?>

<?php 
include "header.php";
?>
      <div style="width:770px; float:left;">
        <?php 
include "menu.php";
示例#4
0
        triggerMessage("admin_create_ind", "Account edited successfully!");
    }
}
if (!empty($_POST['add'])) {
    $name = trim($_POST['name']);
    $locationstatus = trim($_POST['locationstatus']);
    if (!empty($name)) {
        if ($cn = ChkExists("dup_location", "name", $name, "admin_create_ind") == 0) {
            $query = "INSERT INTO dup_location ( locationid, name, locationstatus)\t\t\t\t\t\t\t  \r\n\t\t\t\t\t\t\t\t\tVALUES \r\n\t\t\t\t\t\t\t\t\t('','{$name}','{$locationstatus}')";
            $res = mysql_query($query);
            if (!empty($res)) {
                triggerMessage("admin_create_ind", "Record Created Successfully!");
            }
        }
    } else {
        triggerMessage("admin_create_ind", "Please Enter name!");
    }
}
if ($_GET['act'] == "edit") {
    $editid = $_GET['id'];
    $esql = mysql_query("select * from dup_location where locationid = '{$editid}' limit 1");
    $eresult = mysql_fetch_array($esql);
}
?>

<?php 
include "header.php";
?>
      <div style="width:770px; float:left;">
        <?php 
include "menu.php";
        $stexindustry = $_POST[$st_ex_industry];
        $stexsalary = $_POST[$st_ex_salary];
        $where = "`ex_st_id` = '" . $_SESSION['stUserID'] . "' and `ex_number` = '" . $i . "'";
        $ex_id = ChkRecordExists("dup_studentexp", $where, 'ex_id');
        if ($ex_id == 0) {
            if (!empty($stexduration)) {
                $sql2 = "INSERT INTO `dup_studentexp` (`ex_id`, `ex_st_id`, `ex_number`, `ex_duration`, `ex_function`, `ex_industry`, `ex_remuneration`) VALUES (NULL,'{$studentid}', '{$i}', '{$stexduration}', '{$stexfunction}', '{$stexindustry}', '{$stexsalary}')";
                mysql_query($sql2);
            }
        } else {
            $sql2 = "UPDATE `dup_studentexp` SET  `ex_number` = '{$i}', `ex_duration` = '{$stexduration}',\r\n\t\t\t\t `ex_function` = '{$stexfunction}', `ex_industry` = '{$stexindustry}', `ex_remuneration` = '{$stexsalary}' \r\n\t\t\t\t WHERE `ex_id` = '{$ex_id}' ";
            mysql_query($sql2);
        }
    }
    //print_r($_POST);
    triggerMessage("err_student", "Profile Updated!");
}
$select = mysql_query("select * from dup_students where st_id='{$studentid}' ");
$selectresult = mysql_fetch_array($select);
$maxnumber = 0;
$selectexp = mysql_query("select max(ex_number) as maxnumber from dup_studentexp where ex_st_id='{$studentid}' ");
$maxnres = mysql_fetch_array($selectexp);
$maxnumber = $maxnres['maxnumber'];
include 'studentheader.php';
?>

<script type="text/javascript">
// only for demo purposes
$.validator.setDefaults({
	submitHandler: function() {
		signupForm.submit();
    header('location:signin.php');
}
$studentid = $_SESSION['stUserID'];
if (!empty($_POST['editpass'])) {
    $oldpassword = trim(stripslashes($_POST['oldpassword']));
    $newpassword = trim(stripslashes($_POST['newpassword']));
    $repass = trim(stripslashes($_POST['repassword']));
    if ($newpassword != $repass) {
        triggerMessage("err_student", "Error: New Password does not match!! ");
    } else {
        $editsql = "UPDATE dup_students \r\n\t\t\t\t\t\t   SET\t\tst_pass='******'\r\n\t\t\t\t\t\t   WHERE\tst_id='{$studentid}'";
        $res = mysql_query($editsql);
        if (!empty($res)) {
            triggerMessage("err_student", "Password Changed Successfully");
        } else {
            triggerMessage("err_student", "Password Change Failed");
        }
    }
}
include 'studentheader.php';
?>
<script type="text/javascript">
// only for demo purposes
$.validator.setDefaults({
	submitHandler: function() {
		passForm.submit();
	}
});

$().ready(function() {
$("#passForm").validate();
示例#7
0
<?php

session_start();
include '../include/config.php';
include '../include/commonfunctions.php';
if (empty($_SESSION['adminID'])) {
    header("location:index.php");
}
if ($_GET['act'] == "delete") {
    $delid = $_GET['delid'];
    $delres = mysql_query("delete from dup_coursetypes where id = '{$delid}'");
    triggerMessage("admin_course", "Account deleted successfully!");
    //header("location:manage_course.php");
}
// select records
$sql = "select * from dup_coursetypes where pid !=0";
$res = mysql_query($sql);
include "header.php";
?>
      <div style="width:770px; float:left;">
        <?php 
include "menu.php";
?>


	<div align="left" class="adminright">

    <div style="width:600px; padding-top:5px;">

    <div style="width:600px; float:left;">
      
    $query = "update dup_admin  set\r\n\t\t\t\t\tuser_name = '{$user_name}', user_pass = '******',\r\n\t\t\t\t\tuser_email = '{$user_email}', user_class = '{$user_class}', user_mobile = '{$user_mobile}',\r\n\t\t\t\t\t\t\tuser_status = '{$user_status}' where user_id = '{$editid}'";
    $eres = mysql_query($query);
    if (!empty($eres)) {
        triggerMessage("admin_create_admin", "Account edited successfully!");
    }
}
if (!empty($_POST['add'])) {
    $user_name = trim($_POST['user_name']);
    $user_pass = trim($_POST['user_pass']);
    $user_class = trim($_POST['user_class']);
    $user_email = trim($_POST['user_email']);
    $user_mobile = trim($_POST['user_mobile']);
    $user_status = trim($_POST['user_status']);
    $query = "INSERT INTO dup_admin ( user_id, user_name, user_pass, user_email,\r\n\t                        user_class, user_permission, user_created, user_mobile,\r\n\t\t\t\t\t\t\tuser_status)\t\t\t\t\t\t\t  \r\n\t\t\t\t\t\t\tVALUES \r\n\t\t\t\t\t\t\t('','{$user_name}','{$user_pass}','{$user_email}','{$user_class}',\r\n\t\t\t\t\t\t\t'{$user_permission}', NOW(), '{$user_mobile}','{$user_status}')";
    $res = mysql_query($query);
    triggerMessage("admin_create_admin", "Admin Created Successfully!");
}
if ($_GET['act'] == "edit") {
    $editid = $_GET['id'];
    $esql = mysql_query("select * from dup_admin where user_id = '{$editid}' limit 1");
    $eresult = mysql_fetch_array($esql);
}
?>


<?php 
include "header.php";
?>

	
	<div style="width:770px; float:left;">
示例#9
0
        triggerMessage("admin_create_ind", "Account edited successfully!");
    }
}
if (!empty($_POST['add'])) {
    $salaryname = trim($_POST['salaryname']);
    $salarystatus = trim($_POST['salarystatus']);
    if (!empty($salaryname)) {
        if ($cn = ChkExists("dup_salary", "salaryname", $salaryname, "admin_create_ind") == 0) {
            $query = "INSERT INTO dup_salary ( salaryid, salaryname, salarystatus)\t\t\t\t\t\t\t  \r\n\t\t\t\t\t\t\t\t\tVALUES \r\n\t\t\t\t\t\t\t\t\t('','{$salaryname}','{$salarystatus}')";
            $res = mysql_query($query);
            if (!empty($res)) {
                triggerMessage("admin_create_ind", "Created salary Successfully!");
            }
        }
    } else {
        triggerMessage("admin_create_ind", "Please Enter salary description!");
    }
}
if ($_GET['act'] == "edit") {
    $editid = $_GET['id'];
    $esql = mysql_query("select * from dup_salary where salaryid = '{$editid}' limit 1");
    $eresult = mysql_fetch_array($esql);
}
?>

<?php 
include "header.php";
?>
      <div style="width:770px; float:left;">
        <?php 
include "menu.php";
示例#10
0
session_start();
if (empty($_SESSION['clUserID'])) {
    header("location:signin.php");
}
include 'include/config.php';
include 'include/commonfunctions.php';
foreach ($_POST as $key => $val) {
    ${$key} = stripslashes($val);
}
if (!empty($_POST['addjob'])) {
    $job_cl_id = $_SESSION['clUserID'];
    $sql = " INSERT INTO `dup_jobs` (\r\n\t`job_id` ,\r\n\t`job_cl_id`,\r\n\t`job_title` ,\r\n\t`job_description` ,\r\n\t`job_st_requirement` ,\r\n\t`job_highest_education` ,\r\n\t`job_experience` ,\r\n\t`job_industry` ,\r\n\t`job_function` ,\r\n\t`job_location` ,\r\n\t`job_salary` ,\r\n\t`job_clientname` ,\r\n\t`job_contact_person` ,\r\n\t`job_reference_id` ,\r\n\t`job_address` ,\r\n\t`job_phone1` ,\r\n\t`job_phone2` ,\r\n\t`job_email`\r\n\t)\r\n\tVALUES ( '' ,'{$job_cl_id}', '{$job_title}' ,'{$job_description}' , '{$job_st_requirement}' , '{$job_highest_education}' ,\r\n\t'{$job_experience}' , '{$job_industry}' ,'{$job_function}' ,'{$job_location}' , '{$job_salary}' , '{$job_clientname}' ,\r\n\t'{$job_contact_person}' , '{$job_reference_id}' ,'{$job_address}' ,'{$job_phone1}' ,'{$job_phone2}' ,'{$job_email}')";
    $res = mysql_query($sql);
    if (!empty($res)) {
        triggerMessage("err_jobpost", "New Job Posted Successfully!");
    }
}
include "clientheader.php";
?>

<script type="text/javascript">
// only for demo purposes
$.validator.setDefaults({
	submitHandler: function() {
		jobForm.submit();
	}
});

$().ready(function() {
$("#jobForm").validate();
<?php

session_start();
include '../include/config.php';
include '../include/commonfunctions.php';
if (empty($_SESSION['adminID'])) {
    header("location:index.php");
}
if ($_GET['act'] == "delete") {
    $delid = $_GET['delid'];
    $delres = mysql_query("delete from dup_specialization where id = '{$delid}'");
    triggerMessage("admin_specialization", "Account deleted successfully!");
}
// select records
$sql = "select * from dup_specialization where pid !=0";
$res = mysql_query($sql);
include "header.php";
?>
      <div style="width:770px; float:left;">
        <?php 
include "menu.php";
?>


	<div align="left" class="adminright">

    <div style="width:600px; padding-top:5px;">

    <div style="width:600px; float:left;">
      
	<table width="320" border="0" cellspacing="0" cellpadding="0">
示例#12
0
        triggerMessage("err_student", "Error: Login failed! Please use correct username and password!");
    }
}
if (isset($_POST['clogin'])) {
    $cl_username = trim(stripslashes($_POST['cl_username']));
    $cl_password = trim(stripslashes($_POST['cl_password']));
    $chksql = "SELECT * FROM dup_clients\r\n\t\t\t\t\t\t\t\tWHERE  cl_username='******' AND cl_password='******' limit 1";
    $chkres = mysql_query($chksql);
    $chknuum = mysql_num_rows($chkres);
    if ($chknuum > 0) {
        $chkarray = mysql_fetch_array($chkres);
        $_SESSION['clUser'] = $chkarray['cl_username'];
        $_SESSION['clUserID'] = $chkarray['cl_id'];
        header('location:clienthome.php');
    } else {
        triggerMessage("err_student", "Error: Login failed! Please use correct username and password!");
    }
}
include 'header.php';
?>

	<div align="left" style="text-align:justify; float:left; height:476px;"><img src="images/du-login.jpg" /><br /><br /><br /><br /><br /><br /><p style="width:700px; text-align:center;"><?php 
outputTrigger('err_student');
?>
</p><br />
	<table width="770" border="0" cellspacing="0" cellpadding="0">
      <tr>
	  <td align="right" valign="top">
	  <form action="" method="post" name="frm1">
	  <table width="350" border="0" cellspacing="0" cellpadding="0">
      <tr>