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('/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/page/:page', array('controller' => 'user', 'action' => 'profil'),array("page" => "[0-9]+"));
|
||||
Router::connect('/profil/edit', array('controller' => 'user', 'action' => 'profil_edit'));
|
||||
|
|
|
@ -38,6 +38,19 @@ class DreamjobCompany extends AppModel {
|
|||
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){
|
||||
$dataSource = $this->getDataSource();
|
||||
$dataSource->begin();
|
||||
|
|
|
@ -38,6 +38,18 @@ class DreamjobWorker extends AppModel {
|
|||
*/
|
||||
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){
|
||||
$dataSource = $this->getDataSource();
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
echo $this->Form->end();
|
||||
echo "<br/>";
|
||||
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/>";
|
||||
}
|
||||
|
|
|
@ -14,6 +14,20 @@
|
|||
?>
|
||||
</head>
|
||||
<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 id="logo">
|
||||
<?=$this->Html->image('logo.png',array('url'=>array('controller'=>'home','action'=>'home'))); ?>
|
||||
|
@ -111,9 +125,8 @@
|
|||
</div>
|
||||
<!-- java script -->
|
||||
<?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 -->
|
||||
<?php
|
||||
$this->startIfEmpty('scriptEnd');
|
||||
|
|
|
@ -406,7 +406,9 @@ body.loading #container{
|
|||
color:black;
|
||||
box-shadow:none;
|
||||
}
|
||||
|
||||
.modal-body,.modal-title{
|
||||
color:black;
|
||||
}
|
||||
.infofield{
|
||||
color:black;
|
||||
}
|
||||
|
|
|
@ -4,26 +4,33 @@
|
|||
*/
|
||||
var global_load = null;
|
||||
!function($) {
|
||||
$(function() {
|
||||
$body = $("body");
|
||||
$(document).on({
|
||||
ajaxStart: function() { $body.addClass("loading"); },
|
||||
ajaxStop: function() { $body.removeClass("loading"); }
|
||||
});
|
||||
function event(where){
|
||||
$("#alert .alert").alert();
|
||||
$(where+'.dropdown-toggle').dropdown();
|
||||
$(function() {
|
||||
$body = $("body");
|
||||
$(document).on({
|
||||
ajaxStart: function() { $body.addClass("loading"); },
|
||||
ajaxStop: function() { $body.removeClass("loading"); }
|
||||
});
|
||||
function event(where){
|
||||
$("#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+" 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+'.dropdown-toggle').dropdown();
|
||||
|
||||
$(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' ){
|
||||
e.stopPropagation();
|
||||
//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)
|
||||
$('body').append('<iframe id="fileUpload" name="fileUpload" style="display:none" />');
|
||||
$(this).attr('target','fileUpload');
|
||||
|
@ -48,6 +55,7 @@
|
|||
});
|
||||
});
|
||||
});
|
||||
|
||||
$(where+" form.tableForm tbody").each(function(evt){
|
||||
var that = this;
|
||||
newRow = $(".new").html();
|
||||
|
|
Loading…
Reference in New Issue