Skip to content

Commit

Permalink
Add skills and roles and change in login page
Browse files Browse the repository at this point in the history
  • Loading branch information
hvudeshi committed Nov 3, 2021
1 parent ffb49f2 commit ee66b0b
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 37 deletions.
74 changes: 48 additions & 26 deletions Code/Database/schema/srijas.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,20 @@ INSERT INTO `job_master` (`job_id`, `job_title`, `is_active`, `created_by`, `cre
(2, 'Software Developer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(3, 'Software Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(4, 'Software Developer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(5, 'Software Engineer', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(6, 'Software Developer', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(7, 'Software Engineer Intern', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(8, 'Software Developer Intern', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40');
(5, 'Cloud Platform Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(6, 'Cloud Platform Engineer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(7, 'DevOps Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(8, 'DevOps Engineer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(9, 'Full Stack Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(10, 'Full Stack Engineer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(11, 'Machine Learning Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(12, 'Machine Learning Engineer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(13, 'Data Science Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(14, 'Data Scientist', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(15, 'Data Analytics Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(16, 'Data Analyst', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(17, 'Big Data Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(18, 'Big Data Engineer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31');

-- --------------------------------------------------------

Expand Down Expand Up @@ -142,25 +152,40 @@ INSERT INTO `skill_master` (`skill_id`, `skill_title`, `is_active`, `created_by`
(18, 'Perl', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(19, 'MATLAB', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(20, 'Fortran', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(21, 'C', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(22, 'Java', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(23, 'Python', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(24, 'C++', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(25, 'C#', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(26, 'Visual Basic', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(27, 'JavaScript', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(28, 'Assembly Language', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(29, 'PHP', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(30, 'SQL', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(31, 'Classic Visual Basic', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(32, 'Delphi/Object Pascal', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(33, 'Ruby', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(34, 'Go', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(35, 'Swift', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(36, 'R', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(37, 'Groovy', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(38, 'Perl', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'),
(39, 'MATLAB', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40');
(21, 'AWS', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(22, 'Azure', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(23, 'GCP', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(24, 'MATLAB', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(25, 'Terraform', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(26, 'Ansible', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(27, 'node.js', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(28, 'React', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(29, 'Angular', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(30, 'Splunk', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(31, 'Jenkins', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(32, 'Git', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(33, 'Jira', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(34, 'Flask', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(35, 'Django', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(36, 'Angular', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(37, 'Splunk', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(38, 'OpenCV', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(39, 'Tensorflow', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(40, 'Scikit-learn', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(41, 'Keras', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(42, 'Linux', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(43, 'Ruby on Rails', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(44, 'SQL', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(45, 'MySQL', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(46, 'MSSQL', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(47, 'GraphSQL', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(48, 'MongoDB', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(49, 'PostGreSQL', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(50, 'Hadoop', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(51, 'Kafka', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(52, 'Cassandra', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'),
(53, 'Elasticeearch', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31');


-- --------------------------------------------------------

Expand All @@ -186,9 +211,6 @@ CREATE TABLE `user_master` (
-- Dumping data for table `user_master`
--

INSERT INTO `user_master` (`user_id`, `user_fname`, `user_lname`, `user_email`, `user_password`, `user_preferred_job_id`, `is_active`, `created_by`, `created_at`, `updated_by`, `updated_at`) VALUES
(1, 'Hardik', 'Udeshi', '[email protected]', '', 1, b'1', -1, '2021-11-02 14:08:50', NULL, '2021-11-02 14:08:50');

-- --------------------------------------------------------

--
Expand Down
13 changes: 7 additions & 6 deletions Code/Web_app/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,22 @@
if ($_POST['inputEmail'] != "" && $_POST['inputPassword'] != ""){
echo "in if";
$sql_query = "select count(*) as cntUser from user_master where user_email='".$_POST['inputEmail']."' and user_password='".$_POST['inputPassword']."'";
$result = $conn->query($sql);
echo "result";
echo $result;
// echo $sql_query;
$result = $conn->query($sql_query);
// var_dump($result);
$row = $result->fetch_assoc();

// var_dump($row);
$count = $row['cntUser'];
// var_dump($count);

// echo "run query";
echo "run query";

if($count > 0){
echo "count>0";
$_SESSION['uname'] = $_POST['inputEmail'];
header('Location: home.php');
}else{
// echo "Invalid username and password";
echo "Invalid username and password";
}

}
Expand Down
11 changes: 6 additions & 5 deletions Code/Web_app/sendData.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* that indicate respectively whether the resume table code test cases
* and the user table code test cases have passed. 1-> pass, 0-> fail
*/
function executer($inputName, $inputEmail, $inputJobTypeId, $target_file){
function executer($inputName, $inputEmail, $inputPassword, $inputJobTypeId, $target_file){
/**
* Include the autoload.php file from the PdfParser application for
* reading the text from the pdf.
Expand Down Expand Up @@ -132,10 +132,10 @@ function executer($inputName, $inputEmail, $inputJobTypeId, $target_file){
* This segment of the code uses a prepared statement to insert the form data
* into the user_master table
*/
$stmt = $conn->prepare("INSERT INTO user_master (user_fname, user_lname, user_email, user_preferred_job_id, is_active, created_by)
VALUES (?, ?, ?, ?, ?, ?)");
$stmt = $conn->prepare("INSERT INTO user_master (user_fname, user_lname, user_email, user_password, user_preferred_job_id, is_active, created_by)
VALUES (?, ?, ?, ?, ?, ?, ?)");

$stmt->bind_param("sssiii", $firstName, $lastName, $inputEmail, $inputJobTypeId, $active, $created_by);
$stmt->bind_param("ssssiii", $firstName, $lastName, $inputEmail, $inputPassword, $inputJobTypeId, $active, $created_by);
$stmt->execute();
$stmt->close();

Expand Down Expand Up @@ -334,6 +334,7 @@ function executer($inputName, $inputEmail, $inputJobTypeId, $target_file){
$inputName = $_POST["inputName"];
$inputEmail = $_POST["inputEmail"];
$inputJobTypeId = $_POST["inputJobTypeId"];
$inputPassword = $_POST["inputPassword"];


$target_dir = "uploads/";
Expand Down Expand Up @@ -361,7 +362,7 @@ function executer($inputName, $inputEmail, $inputJobTypeId, $target_file){
}

try{
executer($inputName, $inputEmail, $inputJobTypeId, $target_file);
executer($inputName, $inputEmail, $inputPassword, $inputJobTypeId, $target_file);
}catch(Exception $e){
echo "Code did not execute - caught exception in function call->function executer: ".$e->getMessage()."<br>";
}
Expand Down

0 comments on commit ee66b0b

Please sign in to comment.