started working on account_create
This commit is contained in:
parent
08cb78bf47
commit
d94cd213b9
@ -7,6 +7,7 @@ class default_page extends SYSTEM\PAGE\Page {
|
||||
'<script type="text/javascript" language="JavaScript" src="'.SYSTEM\WEBPATH(new PBOOTSTRAP(),'js/bootstrap.min.js').'"></script>'.
|
||||
'<script src="'.SYSTEM\WEBPATH(new PPAGE(),'default_page/js/timer.js').'"></script>'.
|
||||
'<script src="'.SYSTEM\WEBPATH(new PPAGE(),'default_page/js/loadtexts.js').'"></script>';
|
||||
'<script src="'.SYSTEM\WEBPATH(new PPAGE(),'default_page/js/account_create.js').'"></script>';
|
||||
}
|
||||
|
||||
public function generate_votelist(){
|
||||
@ -41,6 +42,7 @@ class default_page extends SYSTEM\PAGE\Page {
|
||||
$vars = array();
|
||||
$vars['js'] = $this->js();
|
||||
$vars['votelist'] = $this->generate_votelist();
|
||||
$vars['personaldata'] = $this->getuserpersonaldata();
|
||||
$vars['registerform'] = \SYSTEM\SECURITY\Security::isLoggedIn() ? $this->getloggedinform() : $this->exchange_registerform();
|
||||
$vars['PIC_PATH'] = SYSTEM\WEBPATH(new PPAGE(),'default_page/pics/');
|
||||
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/page.html'), $vars);
|
||||
|
||||
6
uVote/page/default_page/js/account_create.js
Normal file
6
uVote/page/default_page/js/account_create.js
Normal file
@ -0,0 +1,6 @@
|
||||
function getuserpersonaldata()
|
||||
{
|
||||
var userInput = document.getElementById("userInput").value;
|
||||
document.write(userInput);
|
||||
}
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
|
||||
@ -15,7 +15,16 @@ $(document).ready(function() {
|
||||
$('.btnvote_off').click(function () {
|
||||
vote_click($(this).attr('poll_ID'),3);
|
||||
});
|
||||
$('.getuserpersonaldata').click(function () {
|
||||
vote_click($(this).attr('inputEmail', 'inputPassword', 'inputPassword2'), array());
|
||||
});
|
||||
});
|
||||
function getuserpersonaldata(){
|
||||
$.get('./api.php?call=account&action=create&username=0&password_sha=' + inputPassword + '&email=' + inputEmail'&locale=' + deDE' {
|
||||
|
||||
});
|
||||
|
||||
|
||||
function vote_click (poll_ID, vote) {
|
||||
$.get('./api.php?call=vote&action=vote&poll_ID=' + poll_ID + '&vote=' + vote, function (data) {
|
||||
dataTmp = data;
|
||||
|
||||
@ -8,10 +8,10 @@
|
||||
<br>
|
||||
<input type="password" id="inputPassword" placeholder="Passwort" align="right">
|
||||
<br>
|
||||
<input type="password" id="inputPassword" placeholder="Passwort wiederholen" align="right">
|
||||
<input type="password" id="inputPassword2" placeholder="Passwort wiederholen" align="right">
|
||||
<br>
|
||||
|
||||
<button type="submit" class="btn" align="right">Account erstellen</button>
|
||||
<button type="submit" class="btn" align="right" $(personaldata)>Account erstellen</button>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user