Exemplo n.º 1
0
 function login()
 {
     if ($this->request->data) {
         $this->loadModel(USER);
         $data = $this->request->data;
         $data->password = sha1($data->password);
         $user = $this->User->findFirst(array('conditions' => array('login' => $data->login, 'password' => $data->password)));
         if (!empty($user)) {
             $date = new DateTime();
             $user->login_last = $date->format('Y-m-d H:i:s');
             $user->online = 1;
             $this->User->save($user);
             $this->Session->write(USER, $user);
             unset($_SESSION[USER]->password);
             $this->logger->LogInfo($this->request->controller, $this->request->action, $user->login, BackendTranslate::getLabel('login_success'));
         } else {
             $this->request->data->login = EMPTYSTRING;
             $this->logger->LogError($this->request->controller, $this->request->action, EMPTYSTRING, BackendTranslate::getLabel('login_failed'));
             $this->Session->setAlert(BackendTranslate::getLabel('login_failed'), DANGER);
         }
     }
     if ($this->Session->isLogged()) {
         if ($this->Session->user('category') <= 3 && $this->Session->user('category') >= 1) {
             $this->redirect('cockpit/dashboard/dashboard');
         } else {
             $this->redirect(EMPTYSTRING);
         }
     } else {
         $this->layout = 'site_default';
         $this->redirect('page/login_page');
     }
 }
Exemplo n.º 2
0
 function edit($id = null)
 {
     $this->permission(3);
     if ($id === null || !is_numeric($id)) {
         $this->redirect('cockpit/configuration');
         return false;
     }
     $this->loadModel('Configuration');
     $d['id'] = $id;
     $this->set($d);
     if ($this->request->data) {
         $key = $this->request->data->keyword;
         $this->request->data->value = $this->request->data->{$key};
         unset($this->request->data->{$key});
         $id = $this->Configuration->save($this->request->data);
         if (!is_numeric($id)) {
             $this->logger->LogError($this->request->controller, $this->request->action, $_SESSION[USER]->login, BackendTranslate::getLabel(DB) . '/id:' . $id);
             $this->Session->setAlert(BackendTranslate::getLabel(DB) . $id, DANGER);
             $this->redirect('cockpit/configuration/edit/' . $d['id']);
             return false;
         }
         $this->logger->LogInfo($this->request->controller, $this->request->action, $_SESSION[USER]->login, BackendTranslate::getLabel('updatedConfig') . '/id:' . $id);
         $this->redirect('cockpit/configuration');
         return false;
     } else {
         $this->request->data = $this->Configuration->findFirst(array('conditions' => array('id' => $id)));
     }
 }
Exemplo n.º 3
0
 function form()
 {
     if ($this->request->data) {
         $this->loadModel(CONTACT);
         $mail = new PHPMailer();
         $mail->From = $this->request->data->mail;
         $mail->FromName = $this->request->data->name;
         $message = $this->request->data->content;
         if ($this->request->data->sendcopy == 1) {
             $mail->AddAddress($this->request->data->mail);
             $message .= "<div><div dir=\"ltr\"><div><span style=\"color:rgb(11,83,148)\">Bien à vous,<i><b><br></b></span></span></div><div><span style=\"color:rgb(11,83,148)\"><i><b><br>WebPassions</b><br></span></span></div><div><span style=\"color:rgb(11,83,148)\">Lorge Vivian<br></span></div><div><span style=\"color:rgb(11,83,148)\"><i>0479/95.98.45</span><br></span></div><span style=\"color:rgb(11,83,148)\"><a target=\"_blank\" href=\"http://www.webpassions.be\"><i>http://www.webpassions.be</span></a></span><br><div><br><div><img width=\"96\" height=\"28\" src=\"http://www.webpassions.be/signature.png\"><br><br><br></div></div></div></div>";
         }
         $mail->IsHTML(true);
         $mail->CharSet = 'UTF-8';
         $mail->AddAddress($_SESSION['cmscontact']);
         $mail->AddReplyTo($_SESSION['cmscontact']);
         $mail->Subject = $_SESSION['cmscontactcategory'][$this->request->data->subject];
         $mail->Body = $message;
         if (!$mail->Send()) {
             $this->logger->LogError($this->request->controller, $this->request->action, $_SESSION[USER]->login, BackendTranslate::getLabel('send_error') . $mail->ErrorInfo);
             $this->Session->setAlert(BackendTranslate::getLabel('send_error') . $mail->ErrorInfo, DANGER);
         } else {
             $this->logger->LogInfo($this->request->controller, $this->request->action, $_SESSION[USER]->login, BackendTranslate::getLabel('send_mail'));
             $this->Session->setAlert(BackendTranslate::getLabel('send_mail'), SUCCESS);
         }
         unset($mail);
     }
 }
Exemplo n.º 4
0
 protected function init($name)
 {
     $buffer = EMPTYSTRING;
     $buffer .= '<div class="form-group' . $this->error($name) . '">';
     $buffer .= '<label for="input' . $name . '" class="col-sm-3 control-label">' . BackendTranslate::getLabel($name) . '</label>';
     $buffer .= '<div class="col-sm-9">';
     return $buffer;
 }
Exemplo n.º 5
0
 public function back($url)
 {
     $buffer = EMPTYSTRING;
     $buffer .= '<a href="' . Router::generateURL($url) . '" class="btn btn-primary btn-sm">';
     $buffer .= '<i class="fa fa-backward"></i>&nbsp;';
     $buffer .= BackendTranslate::getLabel(BACK);
     $buffer .= '</a>';
     return $buffer;
 }
Exemplo n.º 6
0
 public function send()
 {
     $buffer = EMPTYSTRING;
     $buffer .= '<button type="submit" class="btn btn-info btn-sm">';
     $buffer .= '<i class="fa fa-envelope"></i>&nbsp;';
     $buffer .= BackendTranslate::getLabel('send');
     $buffer .= '</button>';
     return $buffer;
 }
Exemplo n.º 7
0
 public function passwordPlaceHolder($name)
 {
     $value = isset($this->controller->request->data->{$name}) ? stripslashes($this->controller->request->data->{$name}) : EMPTYSTRING;
     $buffer = EMPTYSTRING;
     $buffer .= '<div class="form-group">';
     $buffer .= '<input type="password" id="input' . $name . '" name="' . $name . '" value="' . $value . '" class="form-control" placeholder="' . BackendTranslate::getLabel($name) . '" ' . $this->required(true) . '>';
     $buffer .= '</div>';
     return $buffer;
 }
Exemplo n.º 8
0
 public function passwordPlaceHolder($name)
 {
     $value = isset($this->controller->request->data->{$name}) ? stripslashes($this->controller->request->data->{$name}) : EMPTYSTRING;
     $buffer = EMPTYSTRING;
     $buffer .= '<div class="form-group' . $this->error($name) . '">';
     $buffer .= '<input type="password" id="input' . $name . '" name="' . $name . '" value="' . $value . '" class="form-control" placeholder="' . BackendTranslate::getLabel($name) . '" ' . $this->required(true) . '>';
     $error = $this->error($name);
     if (!empty($error)) {
         $buffer .= '<span class="help-block">' . $this->errors[$name] . '</span>';
     }
     $buffer .= '</div>';
     return $buffer;
 }
Exemplo n.º 9
0
 function view($id = null)
 {
     $this->loadModel(PAGE);
     if ($id === null || !is_numeric($id)) {
         $this->layout = 'site_home';
     } else {
         $d[PAGE] = $this->Page->findFirst(array('conditions' => array('online' => 1, 'id' => $id)));
         if (empty($d[PAGE])) {
             $this->e404(BackendTranslate::getLabel('page_not_found'));
         }
         $this->set($d);
     }
 }
Exemplo n.º 10
0
 public function visible($url, $online)
 {
     $buffer = EMPTYSTRING;
     if ($online == 1) {
         $buffer .= '<a href="' . Router::generateURL($url) . '" class="btn btn-xs btn-' . SUCCESS . '">';
     } else {
         $buffer .= '<a href="' . Router::generateURL($url) . '" class="btn btn-xs btn-' . DANGER . '">';
     }
     $buffer .= '<span class="glyphicon glyphicon-refresh"></span>&nbsp;';
     if ($online == 1) {
         $buffer .= BackendTranslate::getLabel('show');
     } else {
         $buffer .= BackendTranslate::getLabel('hide');
     }
     $buffer .= '</a>&nbsp;|&nbsp;';
     return $buffer;
 }
Exemplo n.º 11
0
?>
	</li>
</ol>

<?php 
echo $this->Session->getAlert();
?>

<form action="<?php 
echo Router::generateURL('cockpit/user/changePasswordIn');
?>
" method="post" class="form-horizontal">
	<div class="panel panel-warning">
		<div class="panel-heading">
			<h3 class="panel-title"><i class="fa fa-edit"></i> <?php 
echo BackendTranslate::getLabel('change_password');
?>
</h3>
		</div>
		<div class="panel-body">
			<?php 
echo $this->FormField->password('new_password', false, 'form-control');
?>
			<?php 
echo $this->FormField->password('verify', false, 'form-control');
?>
		</div>
		<div class="panel-footer text-right">
			<?php 
echo $this->FormSubmit->update();
?>
Exemplo n.º 12
0
	<div class="col-lg-12">
		<form action="<?php 
echo Router::generateURL('cockpit/blogtrip/add');
?>
" method="post" class="form-horizontal">
			<?php 
echo $this->FormField->hidden('creation');
echo $this->FormField->hidden('updated');
echo $this->FormField->hidden('updater');
echo $this->FormField->hidden('logical_delete');
?>
		
			<div class="panel panel-info">
				<div class="panel-heading">
					<span class="glyphicon glyphicon-plus"></span> <?php 
echo BackendTranslate::getLabel(ADD);
?>
				</div>
				<div class="panel-body">
					<?php 
echo $this->FormField->text('name', false, true);
echo $this->FormField->text('slug', false, true);
echo $this->FormField->lookup('image_path');
echo $this->FormField->text('introduction', false, true);
echo $this->FormField->textArea('content', false);
echo $this->FormField->checkBox('online', false);
echo $this->FormField->checkBox('favorite', false);
?>
				</div>
				<div class="panel-footer text-right">
					<?php 
Exemplo n.º 13
0
?>
					<span class="pull-right"><?php 
echo $this->FormLink->add('cockpit/portfolio/add');
?>
</span>
				</h3>
			</div>
			<div class="panel-body">		
				<table class="table table-hover table-bordered responsive nowrap" id="portfoliodata" style="width:100%;">
					<thead>
					<tr>
						<?php 
echo '<th>' . BackendTranslate::getLabel('name') . '</th>';
echo '<th style="width:15%;">' . BackendTranslate::getLabel('category') . '</th>';
echo '<th style="width:10%;">' . BackendTranslate::getLabel('creation') . '</a></th>';
echo '<th style="width:30%;" class="text-right">' . BackendTranslate::getLabel('action') . '</th>';
?>
					</tr>
					</thead>
					<tbody>
						<?php 
foreach ($Portfolio as $k => $v) {
    echo $v->logical_delete == 1 ? '<tr class="danger">' : '<tr>';
    echo '<td>';
    if (!empty($v->image_path)) {
        echo '<div class="btn-group">';
        echo '<button class="btn dropdown-toggle btn-primary btn-xs" data-toggle="dropdown"><span class="glyphicon glyphicon-camera"></span></button>';
        echo '<div class="dropdown-menu" style="margin:0;padding:0;border:0;">';
        echo '<img src="' . Router::webroot($v->image_path) . '" class="img-thumbnail" style="width:200px;"/>';
        echo '</div></div>&nbsp;|&nbsp;';
    }
Exemplo n.º 14
0
<!DOCTYPE html>
<html lang="fr"> 
	<head> 
		<meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">        
		<meta name="keywords" content="">
		<meta name="author" content="<?php 
echo BackendTranslate::getLabel('author_webpassions');
?>
">
		<link rel="shortcut icon" href="<?php 
echo Router::webroot('utils/img/favicon_cms.png');
?>
" />

		<title><?php 
echo TITLE_COCKPIT;
?>
</title>
		<link rel="stylesheet" href="<?php 
echo Router::webroot('utils/css/site_admin.css');
?>
" >
		
		<script type="text/javascript" src="<?php 
echo Router::webroot('utils/js/jquery-1.9.1.min.js');
?>
"></script>
		<script type="text/javascript" src="<?php 
Exemplo n.º 15
0
 function delete($id = null)
 {
     $this->permission(3);
     if ($id === null || !is_numeric($id)) {
         $this->redirect('cockpit/user');
         return false;
     }
     $this->loadModel(USER);
     $d['id'] = $id;
     $this->set($d);
     if ($this->request->data) {
         $this->request->data->logical_delete = 1;
         $id = $this->User->save($this->request->data);
         if (!is_numeric($id)) {
             $this->logger->LogError($this->request->controller, $this->request->action, $_SESSION[USER]->login, BackendTranslate::getLabel(DB) . '/id:' . $id);
             $this->Session->setAlert(BackendTranslate::getLabel(DB) . $id, DANGER);
             $this->redirect('cockpit/user');
             return false;
         }
         $this->logger->LogInfo($this->request->controller, $this->request->action, $_SESSION[USER]->login, BackendTranslate::getLabel('deleted') . '/id:' . $id);
         $this->Session->setAlert(BackendTranslate::getLabel('deleted'), SUCCESS);
         $this->redirect('cockpit/user');
     } else {
         $this->request->data = $this->User->findFirst(array('fields' => ProjectUtils::$table[USER] . ', UserRole.category', 'conditions' => array('User.id' => $id), 'join' => array('userrole as UserRole' => 'UserRole.id=User.category')));
     }
 }
Exemplo n.º 16
0
foreach ($_SESSION['cmsmodules'] as $module) {
    ?>
				<tr><td><?php 
    echo $module;
    ?>
</td></tr>
			<?php 
}
?>
			</tbody>
		</table>

		<table class="table  table-bordered table-hover table-vcenter" style="margin:20px 0;">
			<thead>
			<tr><th colspan="2"><?php 
echo BackendTranslate::getLabel('php_info');
?>
</th></tr>
			</thead>
			<tbody>
			<?php 
foreach ($phpinfo as $key => $value) {
    ?>
				<?php 
    if ($key == 'Apache Version ' || $key == 'memory_limit' || $key == 'post_max_size' || $key == 'upload_max_filesize' || $key == 'Default timezone ' || $key == 'memory_limit' || $key == 'HTTP_USER_AGENT ' || $key == 'SERVER_NAME ' || $key == 'SERVER_ADDR ' || $key == 'SERVER_PORT ' || $key == 'DOCUMENT_ROOT ' || $key == 'REDIRECT_URL ' || $key == 'REQUEST_URI ') {
        ?>
					<tr><td><?php 
        echo $key;
        ?>
</td><td><?php 
        echo $value;
Exemplo n.º 17
0
?>
                <?php 
echo $this->FormField->emailPlaceHolder('mail');
?>
			
				<?php 
echo $this->Session->getAlert();
?>
			
				<div class="form-groups text-center">			
					<button type="submit" class="btn btn-success btn-sm">
						<i class="fa fa-lock"></i>
						&nbsp;<?php 
echo BackendTranslate::getLabel('send');
?>
					</button>			
					 <a href="<?php 
echo Router::generateURL('user/login');
?>
" class="btn btn-info btn-sm">
						<i class="fa fa-backward"></i>
						&nbsp;<?php 
echo BackendTranslate::getLabel(BACK);
?>
					</a>
				</div>
				
			</form>
		</div>
	</div>
</div>
Exemplo n.º 18
0
<?php

$title_for_layout = BackendTranslate::getLabel('page_not_found');
?>

<div class="text-justify">

    <h2>
        <?php 
echo $title_for_layout;
?>
        <br/><br/>
        <small class="DANGER"><?php 
echo BackendTranslate::getLabel('e404');
?>
</small>
    </h2>

    <p><?php 
echo $message;
?>
</p>

</div>
Exemplo n.º 19
0
	</li>
	<li class="active">
		<?php 
echo BackendTranslate::getLabel(CONSULT);
?>
	</li>
</ol>

<form action="" method="post" class="form-horizontal">
	<?php 
echo $this->FormField->hidden('id');
?>
	<div class="panel panel-success">
		<div class="panel-heading">
			<h3 class="panel-title"><i class="fa fa-eye"></i> <?php 
echo BackendTranslate::getLabel(CONSULT);
?>
</h3>
		</div>
		<div class="panel-body">			
			<?php 
if ($this->Session->user('category') == 3) {
    ?>
				<?php 
    if ($this->request->data->logical_delete == 1) {
        echo $this->FormField->text('logical_delete', true, false);
    }
    ?>
				<?php 
    echo $this->FormField->dateText('creation', true, false);
    ?>
Exemplo n.º 20
0
            echo BackendTranslate::getLabel('jul');
            break;
        case "8":
            echo BackendTranslate::getLabel('aug');
            break;
        case "9":
            echo BackendTranslate::getLabel('sep');
            break;
        case "10":
            echo BackendTranslate::getLabel('oct');
            break;
        case "11":
            echo BackendTranslate::getLabel('nov');
            break;
        case "12":
            echo BackendTranslate::getLabel('dec');
            break;
    }
    ?>
</td>
                    <td><?php 
    echo $record->getNewvisits();
    ?>
</td>
                    <td><?php 
    echo $record->getVisits();
    ?>
</td>
                    <td><?php 
    echo $record->getPageviews();
    ?>
Exemplo n.º 21
0
</a>
			</li>
			<li class="active">
				<?php 
echo BackendTranslate::getLabel('log');
?>
			</li>
		</ol>
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-primary">
			<div class="panel-heading">
				<h3 class="panel-title"><span class="glyphicon glyphicon-list"></span> <?php 
echo BackendTranslate::getLabel('log');
?>
</h3>
			</div>
			<div class="panel-body">
				<pre><?php 
echo file_get_contents($log);
?>
</pre>
			</div>
			<div class="panel-footer text-right">
				<?php 
echo $this->FormLink->back(COCKPIT);
?>
			</div>
		</div>
Exemplo n.º 22
0
 protected function permission($category)
 {
     if ($this->Session->user('category') < $category) {
         $this->Session->setAlert(BackendTranslate::getLabel('right'), DANGER);
         $this->redirect('cockpit/dashboard');
         return false;
     }
     return true;
 }
Exemplo n.º 23
0
        echo BackendTranslate::getLabel($module);
        ?>
							</a>
						</li>
					<?php 
    }
    ?>
				<?php 
}
?>
				<li>                
					<a href="<?php 
echo Router::generateURL('utils/js/filemanager/dialog.php?type=0');
?>
">
						<?php 
echo BackendTranslate::getLabel('file_manager');
?>
					</a>
				</li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li><a style="background-color:transparent;color:#000;"><span class="glyphicon glyphicon-user"></span>&nbsp;<?php 
echo $this->Session->user('login');
?>
</a></li>
			</ul>
		</div>
	</div>
</nav>
Exemplo n.º 24
0
 function logout()
 {
     $this->loadModel(USER);
     $user = $_SESSION[USER];
     $user->online = 0;
     $this->User->save($user);
     $this->logger->LogInfo($this->request->controller, $this->request->action, $_SESSION[USER]->login, BackendTranslate::getLabel('logout'));
     unset($_SESSION[USER]);
     $this->redirect('');
 }
Exemplo n.º 25
0
	<?php 
echo $this->FormField->hidden('id');
?>
    <?php 
echo $this->FormField->hidden('updated');
?>
    <?php 
echo $this->FormField->hidden('updater');
?>
    <?php 
echo $this->FormField->hidden('online');
?>
	<div class="panel panel-danger">
		<div class="panel-heading">
			<h3 class="panel-title"><i class="fa fa-remove"></i> <?php 
echo BackendTranslate::getLabel(DELETE);
?>
</h3>
		</div>
		<div class="panel-body">
			<?php 
echo $this->FormField->text('teamname', true, false);
?>
			<?php 
echo $this->FormField->number('point', true, false);
?>
			<?php 
echo $this->FormField->number('win', true, false);
?>
			<?php 
echo $this->FormField->number('loose', true, false);
Exemplo n.º 26
0
    while (false !== ($folder = readdir($folders))) {
        if ($folder != '.' && $folder != '..' && $folder != 'config.php') {
            ?>
						<tr>
							<td><?php 
            echo $folder;
            ?>
</td>
							<td style="text-align: center;"><a href="<?php 
            echo Router::webroot('/media/restricted/documents/aide/' . $folder);
            ?>
" title="<?php 
            echo $folder;
            ?>
" target="_blank"><?php 
            echo BackendTranslate::getLabel('display');
            ?>
</a></td>
						</tr>
					<?php 
        }
    }
}
?>
			</tbody>
		</table>
	</div>
	<div class="panel-footer text-right">
		<?php 
echo $this->FormLink->back(COCKPIT);
?>
Exemplo n.º 27
0
			</thead>
			<tbody>
			<?php 
foreach ($Ranking as $k => $v) {
    ?>
				<?php 
    echo $v->logical_delete == 1 ? '<tr class="danger">' : '<tr>';
    ?>
					<td style="text-align: center;"><a href="<?php 
    echo Router::generateURL('cockpit/ranking/online/' . $v->id);
    ?>
" class="label label-<?php 
    echo $v->online == 1 ? SUCCESS : DANGER;
    ?>
"><?php 
    echo $v->online == 1 ? BackendTranslate::getLabel('yes') : BackendTranslate::getLabel('no');
    ?>
</a></td>
					<td><?php 
    echo $v->team;
    ?>
</td>
					<td><?php 
    echo truncateStringWords($v->teamname, 75);
    ?>
</td>
					<td><?php 
    echo $v->played;
    ?>
</td>
					<td><?php 
Exemplo n.º 28
0
<footer class="footer">
    <div class="container">
		<div class="col-lg-6 col-centered">
			<div class="copyright-text text-center">
				<?php 
echo BackendTranslate::getLabel('copyright');
?>
			</div>
		</div>
	</div>
</footer>

<script type="text/javascript" src="<?php 
echo Router::webroot('utils/js/jquery.fancybox.pack.js');
?>
"></script>

<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.9/js/dataTables.bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/responsive/1.0.7/js/dataTables.responsive.min.js"></script>

<script type="text/javascript">
    $('.iframe-btn').fancybox({	
        width: '80%',
        height: '90%',
        type: 'iframe',
        autoSize : false,
    });
	$('.iframe-auto').fancybox({	
        type: 'iframe'
Exemplo n.º 29
0
 function online($id = null)
 {
     if ($id === null || !is_numeric($id)) {
         $this->redirect('cockpit/blogtest');
         return false;
     }
     $this->loadModel(BLOG);
     $this->request->data = $this->Blog->findFirst(array('fields' => ProjectUtils::$tableExtend[BLOG], 'conditions' => array('Blog.id' => $id)));
     $this->request->data->online = $this->request->data->online == 1 ? 0 : 1;
     $id = $this->Blog->save($this->request->data);
     if (!is_numeric($id)) {
         $this->logger->LogError($this->request->controller, $this->request->action, $_SESSION[USER]->login, BackendTranslate::getLabel(DB) . '/id:' . $id);
         $this->Session->setAlert(BackendTranslate::getLabel(DB) . $id, DANGER);
         return false;
     }
     if ($this->request->data->online == 1) {
         $this->logger->LogInfo($this->request->controller, $this->request->action, $_SESSION[USER]->login, BackendTranslate::getLabel('online_updated') . '/id:' . $id);
         $this->Session->setAlert(BackendTranslate::getLabel('online_updated'), SUCCESS);
     } else {
         $this->logger->LogInfo($this->request->controller, $this->request->action, $_SESSION[USER]->login, BackendTranslate::getLabel('offline_updated') . '/id:' . $id);
         $this->Session->setAlert(BackendTranslate::getLabel('offline_updated'), SUCCESS);
     }
     $this->redirect('cockpit/blogtest');
 }
Exemplo n.º 30
0
	<?php 
echo $this->FormField->hidden('id');
?>
	<?php 
echo $this->FormField->hidden('updated');
?>
	<?php 
echo $this->FormField->hidden('updater');
?>
	<?php 
echo $this->FormField->hidden('logical_delete');
?>
	<div class="panel panel-warning">
		<div class="panel-heading">
			<h3 class="panel-title"><i class="fa fa-edit"></i> <?php 
echo BackendTranslate::getLabel(UPDATE);
?>
</h3>
		</div>
		<div class="panel-body">			
			<?php 
echo $this->FormField->text('player', false, true);
?>
			
			<?php 
echo $this->FormField->number('full', false, true);
?>
			<?php 
echo $this->FormField->number('up', false, true);
?>
			<?php