registration gui
This commit is contained in:
parent
dc18f41c9c
commit
5bbd0872bb
|
@ -31,6 +31,10 @@
|
||||||
Router::connect('/agb', array('controller' => 'home', 'action' => 'agb'));
|
Router::connect('/agb', array('controller' => 'home', 'action' => 'agb'));
|
||||||
Router::connect('/contact', array('controller' => 'home', 'action' => 'contact'));
|
Router::connect('/contact', array('controller' => 'home', 'action' => 'contact'));
|
||||||
|
|
||||||
|
Router::connect('/registration', array('controller' => 'registration', 'action' => 'main'));
|
||||||
|
Router::connect('/registration/user', array('controller' => 'registration', 'action' => 'worker'));
|
||||||
|
Router::connect('/registration/company', array('controller' => 'registration', 'action' => 'company'));
|
||||||
|
|
||||||
Router::connect('/profil', array('controller' => 'user', 'action' => 'profil'));
|
Router::connect('/profil', array('controller' => 'user', 'action' => 'profil'));
|
||||||
Router::connect('/profil/page/:page', array('controller' => 'user', 'action' => 'profil'),array("page" => "[0-9]+"));
|
Router::connect('/profil/page/:page', array('controller' => 'user', 'action' => 'profil'),array("page" => "[0-9]+"));
|
||||||
Router::connect('/profil/edit', array('controller' => 'user', 'action' => 'profil_edit'));
|
Router::connect('/profil/edit', array('controller' => 'user', 'action' => 'profil_edit'));
|
||||||
|
|
|
@ -38,6 +38,19 @@ class DreamjobCompany extends AppModel {
|
||||||
public $displayField = 'djaccount_ptr_id';
|
public $displayField = 'djaccount_ptr_id';
|
||||||
|
|
||||||
|
|
||||||
|
public function registration($data){
|
||||||
|
$dataSource = $this->getDataSource();
|
||||||
|
$dataSource->begin();
|
||||||
|
if ($result) {
|
||||||
|
$dataSource->commit();
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
$dataSource->rollback();
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public function saveSettings($data){
|
public function saveSettings($data){
|
||||||
$dataSource = $this->getDataSource();
|
$dataSource = $this->getDataSource();
|
||||||
$dataSource->begin();
|
$dataSource->begin();
|
||||||
|
|
|
@ -38,6 +38,18 @@ class DreamjobWorker extends AppModel {
|
||||||
*/
|
*/
|
||||||
public $displayField = 'djaccount_ptr_id';
|
public $displayField = 'djaccount_ptr_id';
|
||||||
|
|
||||||
|
public function registration($data){
|
||||||
|
$dataSource = $this->getDataSource();
|
||||||
|
$dataSource->begin();
|
||||||
|
if ($result) {
|
||||||
|
$dataSource->commit();
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
$dataSource->rollback();
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public function saveSettings($data){
|
public function saveSettings($data){
|
||||||
$dataSource = $this->getDataSource();
|
$dataSource = $this->getDataSource();
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
echo $this->Form->end();
|
echo $this->Form->end();
|
||||||
echo "<br/>";
|
echo "<br/>";
|
||||||
if(!$isLoggedin){
|
if(!$isLoggedin){
|
||||||
echo $this->Html->link(__('dreamjob.registration.to'),array('controller'=>'home', 'action'=>'home'),array("class" => "btn btn-primary"));
|
echo $this->Html->link(__('dreamjob.registration.to'),array('controller'=>'registration', 'action'=>'main'),array("class" => "btn btn-primary"));
|
||||||
echo "<br/>";
|
echo "<br/>";
|
||||||
echo "<br/>";
|
echo "<br/>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,20 @@
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="modal fade" id="popup" tabindex="-1" role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
|
<h4 class="modal-title"></h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body"></div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-primary" data-dismiss="modal"><?=__('dreamjob.close');?></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="bg" id="logo_bar">
|
<div class="bg" id="logo_bar">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
<?=$this->Html->image('logo.png',array('url'=>array('controller'=>'home','action'=>'home'))); ?>
|
<?=$this->Html->image('logo.png',array('url'=>array('controller'=>'home','action'=>'home'))); ?>
|
||||||
|
@ -111,9 +125,8 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- java script -->
|
<!-- java script -->
|
||||||
<?php
|
<?php
|
||||||
echo $this->Html->script(array('jquery.min','bootstrap.min','dreamjob'));
|
echo $this->Html->script(array('jquery.min', 'bootstrap.min', 'jquery-ui', 'dreamjob'));
|
||||||
?>
|
?>
|
||||||
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
|
|
||||||
<!-- extraScript -->
|
<!-- extraScript -->
|
||||||
<?php
|
<?php
|
||||||
$this->startIfEmpty('scriptEnd');
|
$this->startIfEmpty('scriptEnd');
|
||||||
|
|
|
@ -406,7 +406,9 @@ body.loading #container{
|
||||||
color:black;
|
color:black;
|
||||||
box-shadow:none;
|
box-shadow:none;
|
||||||
}
|
}
|
||||||
|
.modal-body,.modal-title{
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
.infofield{
|
.infofield{
|
||||||
color:black;
|
color:black;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,26 +4,33 @@
|
||||||
*/
|
*/
|
||||||
var global_load = null;
|
var global_load = null;
|
||||||
!function($) {
|
!function($) {
|
||||||
$(function() {
|
$(function() {
|
||||||
$body = $("body");
|
$body = $("body");
|
||||||
$(document).on({
|
$(document).on({
|
||||||
ajaxStart: function() { $body.addClass("loading"); },
|
ajaxStart: function() { $body.addClass("loading"); },
|
||||||
ajaxStop: function() { $body.removeClass("loading"); }
|
ajaxStop: function() { $body.removeClass("loading"); }
|
||||||
});
|
});
|
||||||
function event(where){
|
function event(where){
|
||||||
$("#alert .alert").alert();
|
$("#alert .alert").alert();
|
||||||
$(where+'.dropdown-toggle').dropdown();
|
$("#popup").modal({'remote':false,'show':false});
|
||||||
|
$("#popup").on('show.bs.modal',function(e){
|
||||||
|
$.ajax({url:$(e.relatedTarget).attr("href"),success:function(data){
|
||||||
|
$("#popup .modal-title").html($(e.relatedTarget).attr("title"));
|
||||||
|
$("#popup .modal-body").html($("#container div.box",data).html());
|
||||||
|
} ,error:function(data){}});
|
||||||
|
});
|
||||||
|
|
||||||
$(where+" a").each(function(that){
|
$(where+'.dropdown-toggle').dropdown();
|
||||||
if($(this).attr("rel")!=="external" && $(this).attr("ref")!=="eventOff")
|
|
||||||
$(this).click(function(e){
|
|
||||||
load($(this).attr('href'),{},($(this).attr('rel')=="tab"));
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
|
$(where+" a").each(function(that){
|
||||||
|
if($(this).attr("rel")!=="external" && $(this).attr("ref")!=="eventOff")
|
||||||
|
$(this).click(function(e){
|
||||||
|
load($(this).attr('href'),{},($(this).attr('rel')=="tab"));
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
$(where+" form").submit(function(e){
|
$(where+" form").submit(function(e){
|
||||||
if(!$(this).hasClass("hide-form") && $(this).attr('enctype')!='multipart/form-data' ){
|
if(!$(this).hasClass("hide-form") && $(this).attr('enctype')!='multipart/form-data' ){
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
//e.preventDefault();
|
//e.preventDefault();
|
||||||
|
@ -36,7 +43,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("form[ enctype *= 'multipart/form-data' ]").each(function(evt){
|
$(where+" form[ enctype *= 'multipart/form-data' ]").each(function(evt){
|
||||||
if (!$('#fileUpload').length)
|
if (!$('#fileUpload').length)
|
||||||
$('body').append('<iframe id="fileUpload" name="fileUpload" style="display:none" />');
|
$('body').append('<iframe id="fileUpload" name="fileUpload" style="display:none" />');
|
||||||
$(this).attr('target','fileUpload');
|
$(this).attr('target','fileUpload');
|
||||||
|
@ -48,6 +55,7 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$(where+" form.tableForm tbody").each(function(evt){
|
$(where+" form.tableForm tbody").each(function(evt){
|
||||||
var that = this;
|
var that = this;
|
||||||
newRow = $(".new").html();
|
newRow = $(".new").html();
|
||||||
|
|
Loading…
Reference in New Issue