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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,14 @@
|
||||||
});
|
});
|
||||||
function event(where){
|
function event(where){
|
||||||
$("#alert .alert").alert();
|
$("#alert .alert").alert();
|
||||||
|
$("#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+'.dropdown-toggle').dropdown();
|
$(where+'.dropdown-toggle').dropdown();
|
||||||
|
|
||||||
$(where+" a").each(function(that){
|
$(where+" a").each(function(that){
|
||||||
|
@ -22,7 +30,6 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$(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();
|
||||||
|
@ -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