-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmigrantForm.php.old
More file actions
94 lines (83 loc) · 5.52 KB
/
migrantForm.php.old
File metadata and controls
94 lines (83 loc) · 5.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
if(isset($_POST["language"])){
$language = $_POST["language"];
}else{
$language = "en";
}
require_once ('vendor/autoload.php');
use \Statickidz\GoogleTranslate;
$migrant_account__header_text = 'Edit Profile';
$migrant_account__title_text = 'Migrant Profile';
$migrant_account__first_name_text = 'First Name:';
$migrant_account__last_name_text = 'Last Name:';
$migrant_account__age_text = 'Age:';
$migrant_account__gender_text = 'Gender:';
$migrant_account__location_text = 'Location:';
$migrant_account__nationality_text = 'Nationality:';
$migrant_account__religion_text = 'Religion:';
$migrant_account__marital_stat_text = 'Marital Status:';
$migrant_account__married_button = 'Married:';
$migrant_account__single_button = 'Single:';
$migrant_account__family_textarea = 'Tell us about your family...';
$migrant_account__language_textarea = 'What languages do you speak...';
$migrant_account__hobbies_textarea = 'What are some of your hobbies...';
$migrant_account__outcome_textarea = 'What are you hoping to get out of this?';
$migrant_account__picture_text = 'Insert a Picture:';
$trans = new GoogleTranslate();
$migrant_account__header_text = $trans->translate("en", $language, $migrant_account__header_text);
$migrant_account__title_text = $trans->translate("en", $language, $migrant_account__title_text);
$migrant_account__first_name_text = $trans->translate("en", $language, $migrant_account__first_name_text);
$migrant_account__last_name_text = $trans->translate("en", $language, $migrant_account__last_name_text);
$migrant_account__age_text = $trans->translate("en", $language, $migrant_account__age_text);
$migrant_account__gender_text = $trans->translate("en", $language, $migrant_account__gender_text);
$migrant_account__location_text = $trans->translate("en", $language, $migrant_account__location_text);
$migrant_account__nationality_text = $trans->translate("en", $language, $migrant_account__nationality_text);
$migrant_account__religion_text = $trans->translate("en", $language, $migrant_account__religion_text);
$migrant_account__marital_stat_text = $trans->translate("en", $language, $migrant_account__marital_stat_text);
$migrant_account__married_button = $trans->translate("en", $language, $migrant_account__married_button);
$migrant_account__single_button = $trans->translate("en", $language, $migrant_account__single_button);
$migrant_account__family_textarea = $trans->translate("en", $language, $migrant_account__family_textarea);
$migrant_account__language_textarea = $trans->translate("en", $language, $migrant_account__language_textarea);
$migrant_account__hobbies_textarea= $trans->translate("en", $language, $migrant_account__hobbies_textarea);
$migrant_account__outcome_textarea = $trans->translate("en", $language, $migrant_account__outcome_textarea);
$migrant_account__picture_text = $trans->translate("en", $language, $migrant_account__picture_text);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php echo $migrant_account__title_text; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/theme.css">
<script src="js/main.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
</head>
<body class="center">
<header>
<div class="title"><?php echo $migrant_account__header_text; ?></div>
</header>
<main>
<div class="content">
<form action="mainPage.php" method="post">
<?php echo $migrant_account__first_name_text; ?><input type="text" name="fname"><br>
<?php echo $migrant_account__last_name_text; ?><input type="text" name="lname"><br>
<?php echo $migrant_account__age_text; ?><input type="text" name="age"><br>
<?php echo $migrant_account__gender_text; ?><input type="text" name="gender"><br>
<?php echo $migrant_account__location_text; ?><input type="text" name="location"><br>
<?php echo $migrant_account__nationality_text; ?><input type="text" name="nationality"><br>
<?php echo $migrant_account__religion_text; ?><input type="text" name="Religion"><br>
<?php echo $migrant_account__marital_stat_text; ?><input type="radio" name="maritalStat" value="married"><?php echo $migrant_account__married_button;?>
<input type="radio" name="maritalStat" value="single"> <?php echo $migrant_account__single_button; ?><br>
<textarea rows="6" cols="50" name="family"><?php echo $migrant_account__family_textarea; ?></textarea><br>
<textarea rows="4" cols="50" name="languages"><?php echo $migrant_account__language_textarea; ?></textarea><br>
<textarea rows="4" cols="50" name="hobbies"><?php echo $migrant_account__hobbies_textarea; ?></textarea><br>
<textarea rows="4" cols="50" name="outcome"><?php echo $migrant_account__outcome_textarea; ?></textarea><br>
<?php echo $migrant_account__picture_text; ?><input type="file" name="pic1" accept="image/*"><br>
<?php echo $migrant_account__picture_text; ?><input type="file" name="pic2" accept="image/*"><br>
<?php echo $migrant_account__picture_text; ?><input type="file" name="pic3" accept="image/*"><br>
<input type="submit" value="Submit">
</form>
</div>
</main>
</body>
</html>