This file was deleted.

@@ -95,17 +95,17 @@
<f:FormElement label="Birthday">
<f:fields>
<DatePicker
id="DP2"
id="DatePicker"
value="{/user/0/birthday}" valueFormat="dd-MM-yyyy" displayFormat="long"
change="handleChange"
change="handleDateChange"
class="sapUiSmallMarginBottom"/>
</f:fields>
</f:FormElement>
<f:FormElement label="Interests">
<f:fields>
<MultiComboBox selectionChange="handleSelectionChange" selectionFinish="handleSelectionFinish" id="comboBreaker"
items="{/interest_category}">
<core:Item key="{name}" text="{name}" />
<core:Item key="{id}" text="{name}" />
</MultiComboBox>
</f:fields>
</f:FormElement>
@@ -1,5 +1,5 @@
<?php
include_once '../db.php';
include_once '../db.php';

$oldemail = $_GET['oldemail'];
$email = $_GET['email'];
@@ -13,14 +13,18 @@

$tmp = json_encode(sql("SELECT * FROM `user` WHERE email = '$email'"));

if ($email = $oldemail){
$tmp = "[]";
}

if ($tmp == "[]") {
$sql = "UPDATE `user` SET `firstname` = '$firstname', `lastname` = '$lastname', `email` = '$email', `internalCurrencyCount` = '$internalCurrencyCount', `password` = '$password', `gender` = '$gender', `birthday` = '$birthday', `address` = '$address') WHERE `user`.`email` = '$oldemail'";
$sql = "UPDATE `user` SET `firstname` = '$firstname', `lastname` = '$lastname', `email` = '$email', `internalCurrencyCount` = '$internalCurrencyCount', `password` = '$password', `gender` = '$gender', `birthday` = '$birthday', `address` = '$address' WHERE `user`.`email` = '$oldemail'";
sql($sql);
echo "success";
}else {
echo "new email already taken";
}




?>
@@ -0,0 +1,131 @@
<mvc:View
height="100%"
controllerName="storm.controller.UserUI.ChangePersonalInfo"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m"
xmlns:l="sap.ui.layout"
xmlns:f="sap.ui.layout.form"
xmlns:core="sap.ui.core">
<Page
id="page"
showHeader="false" >
<VBox class="sapUiSmallMargin">
<f:Form id="FormChange"
editable="true">
<f:title>
<core:Title text="Your Data" />
</f:title>
<f:layout>
<f:GridLayout/>
</f:layout>
<f:formContainers>
<f:FormContainer title="Account">
<f:formElements>
<f:FormElement label="Mail Address">
<f:fields>
<Input value="{/user/0/email}" id="mailInput" type="Email"/>
</f:fields>
</f:FormElement>
<f:FormElement label="Current Password">
<f:fields>
<Input value="" id="currentPasswordInput" type="Password"/>
</f:fields>
</f:FormElement>
<f:FormElement label="New Password">
<f:fields>
<Input value="" id="newPasswordInput" type="Password"/>
</f:fields>
</f:FormElement>
<f:FormElement label="Repeat New Password">
<f:fields>
<Input value="" id="repeatNewPasswordInput" type="Password"/>
</f:fields>
</f:FormElement>
</f:formElements>
</f:FormContainer>

<f:FormContainer title="Address">
<f:formElements>
<f:FormElement label="Street">
<f:fields>
<Input id="streetInput"/>
</f:fields>
</f:FormElement>
<f:FormElement label="Number">
<f:fields>
<Input type="Number" id="numberInput"/>
</f:fields>
</f:FormElement>
<f:FormElement label="ZIP Code">
<f:fields>
<Input type="Number" id="zipInput"/>
</f:fields>
</f:FormElement>
<f:FormElement label="City">
<f:fields>
<Input id="cityInput"/>
</f:fields>
</f:FormElement>
<f:FormElement label="State">
<f:fields>
<Input id="stateInput"/>
</f:fields>
</f:FormElement>
</f:formElements>
</f:FormContainer>

<f:FormContainer title="Personal Information">
<f:formElements>
<f:FormElement label="Firstname">
<f:fields>
<Input id="firstNameInput" value="{/user/0/firstname}"/>
</f:fields>
</f:FormElement>
<f:FormElement label="Lastname">
<f:fields>
<Input id="lastNameInput" value="{/user/0/lastname}"/>
</f:fields>
</f:FormElement>
<f:FormElement label="Gender">
<f:fields>
<RadioButtonGroup columns="3" width="100%" id="radioButtons">
<buttons>
<RadioButton id="Female" text="Female"/>
<RadioButton id="Male" text="Male"/>
<RadioButton id="Other" text="Other"/>
</buttons>
</RadioButtonGroup>
</f:fields>
</f:FormElement>
<f:FormElement label="Birthday">
<f:fields>
<DatePicker
id="datePicker"
value="{/user/0/birthday}" valueFormat="dd-MM-yyyy" displayFormat="long"
change="handleDateChange"
class="sapUiSmallMarginBottom"/>
</f:fields>
</f:FormElement>
<f:FormElement label="Interests">
<f:fields>
<MultiComboBox selectionChange="handleSelectionChange" selectionFinish="handleSelectionFinish" id="comboBreaker"
items="{/interest_category}">
<core:Item key="{id}" text="{name}" />
</MultiComboBox>
</f:fields>
</f:FormElement>
</f:formElements>
</f:FormContainer>
</f:formContainers>
</f:Form>
</VBox>
<footer>
<Bar>
<contentRight>
<Button id="cancel" text="Cancel" press="handleCancelPress" />
<Button id="save" text="Save" type="Accept" press="handleSavePress" />
</contentRight>
</Bar>
</footer>
</Page>
</mvc:View>
@@ -1,102 +1,103 @@
<mvc:View
height="100%"
controllerName="storm.controller.UserUI.DisplayPersonalInfo"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m"
xmlns:l="sap.ui.layout"
xmlns:f="sap.ui.layout.form"
xmlns:mvc="sap.ui.core.mvc"
xmlns:core="sap.ui.core">
<VBox class="sapUiSmallMargin">
<f:Form id="FormDisplay354wideDual"
editable="false">
<f:title>
<core:Title text="Your Data" />
</f:title>
<f:layout>
<f:ResponsiveGridLayout
labelSpanXL="4"
labelSpanL="3"
labelSpanM="4"
labelSpanS="12"
adjustLabelSpan="false"
emptySpanXL="0"
emptySpanL="4"
emptySpanM="0"
emptySpanS="0"
columnsXL="2"
columnsL="1"
columnsM="1"
singleContainerFullSize="false" />
</f:layout>
<f:formContainers>
<f:FormContainer title="Account">
<f:formElements>
<f:FormElement label="Mail Address">
<f:fields>
<Text text="{/user/0/email}"/>
</f:fields>
</f:FormElement>
</f:formElements>
</f:FormContainer>

<f:FormContainer title="Address">
<f:formElements>
<f:FormElement label="Street">
<f:fields>
<Text id="streetText"/>
</f:fields>
</f:FormElement>
<f:FormElement label="Number">
<f:fields>
<Text id="numberText"/>
</f:fields>
</f:FormElement>
<f:FormElement label="ZIP Code">
<f:fields>
<Text id="zipText"/>
</f:fields>
</f:FormElement>
<f:FormElement label="City">
<f:fields>
<Text id="cityText"/>
</f:fields>
</f:FormElement>
<f:FormElement label="State">
<f:fields>
<Text id="stateText"/>
</f:fields>
</f:FormElement>
</f:formElements>
</f:FormContainer>

<f:FormContainer title="Personal Information">
<f:formElements>
<f:FormElement label="Firstname">
<f:fields>
<Text text="{/user/0/firstname}" />
</f:fields>
</f:FormElement>
<f:FormElement label="Lastname">
<f:fields>
<Text text="{/user/0/lastname}" />
</f:fields>
</f:FormElement>
<f:FormElement label="Gender">
<f:fields>
<Text text="{/user/0/gender}" />
</f:fields>
</f:FormElement>
<f:FormElement label="Birthday">
<f:fields>
<Text text="{/user/0/birthday}" />
</f:fields>
</f:FormElement>
<f:FormElement label="Interests">
<f:fields>
<Text id="interestsString"/>
</f:fields>
</f:FormElement>
</f:formElements>
</f:FormContainer>
</f:formContainers>
</f:Form>
</VBox>
<Page
id="page"
showHeader="false" >
<VBox
class="sapUiSmallMargin">
<f:Form id="FormDisplay354wideDual"
editable="false">
<f:title>
<core:Title text="Your Data" />
</f:title>
<f:layout>
<f:GridLayout/>
</f:layout>
<f:formContainers>
<f:FormContainer title="Account">
<f:formElements>
<f:FormElement label="Mail Address">
<f:fields>
<Text text="{/user/0/email}"/>
</f:fields>
</f:FormElement>
</f:formElements>
</f:FormContainer>

<f:FormContainer title="Address">
<f:formElements>
<f:FormElement label="Street">
<f:fields>
<Text id="streetText"/>
</f:fields>
</f:FormElement>
<f:FormElement label="Number">
<f:fields>
<Text id="numberText"/>
</f:fields>
</f:FormElement>
<f:FormElement label="ZIP Code">
<f:fields>
<Text id="zipText"/>
</f:fields>
</f:FormElement>
<f:FormElement label="City">
<f:fields>
<Text id="cityText"/>
</f:fields>
</f:FormElement>
<f:FormElement label="State">
<f:fields>
<Text id="stateText"/>
</f:fields>
</f:FormElement>
</f:formElements>
</f:FormContainer>

<f:FormContainer title="Personal Information">
<f:formElements>
<f:FormElement label="Firstname">
<f:fields>
<Text text="{/user/0/firstname}" />
</f:fields>
</f:FormElement>
<f:FormElement label="Lastname">
<f:fields>
<Text text="{/user/0/lastname}" />
</f:fields>
</f:FormElement>
<f:FormElement label="Gender">
<f:fields>
<Text text="{/user/0/gender}" />
</f:fields>
</f:FormElement>
<f:FormElement label="Birthday">
<f:fields>
<Text text="{/user/0/birthday}" />
</f:fields>
</f:FormElement>
<f:FormElement label="Interests">
<f:fields>
<Text id="interestsString"/>
</f:fields>
</f:FormElement>
</f:formElements>
</f:FormContainer>
</f:formContainers>
</f:Form>
</VBox>
<footer>
<Bar>
<contentRight>
<Button id="edit" text="Edit" press="handleEditPress" />
</contentRight>
</Bar>
</footer>
</Page>
</mvc:View>
@@ -1,6 +1,5 @@
<mvc:View
height="100%"
controllerName="storm.controller.UserUI.PersonalInfo"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<Page