echo MenuTranslate::getLabel(HOME); ?> </a> </li> <li> <a href="<?php echo Router::generateURL('cockpit/employe'); ?> "><?php echo EmployeTranslate::getLabel("title"); ?> </a> </li> <li class="active"> <?php echo EmployeTranslate::getLabel(ADD); ?> </li> </ol> <?php echo $this->Session->getAlert(); ?> <form action="<?php echo Router::generateURL('cockpit/employe/add'); ?> " method="post" class="form-horizontal"> <?php echo $this->FormField->hidden('creation'); ?>
function online($id = null) { if ($id === null || !is_numeric($id)) { $this->redirect('cockpit/employe'); return false; } $this->loadModel(EMPLOYE); $this->request->data = $this->Employe->findFirst(array('fields' => DBUtils::$tableExtend[EMPLOYE], 'conditions' => array('Employe.id' => $id))); $this->request->data->online = $this->request->data->online == 1 ? 0 : 1; $id = $this->Employe->save($this->request->data); if (!is_numeric($id)) { $this->logger->LogError($this->request->controller, $this->request->action, $_SESSION[USER]->login, ErrorsTranslate::getLabel(DB) . '/id:' . $id); $this->Session->setAlert(ErrorsTranslate::getLabel(DB) . $id, DANGER); return false; } if ($this->request->data->online == 1) { $this->logger->LogInfo($this->request->controller, $this->request->action, $_SESSION[USER]->login, EmployeTranslate::getLabel('onlineUpdated') . '/id:' . $id); $this->Session->setAlert(EmployeTranslate::getLabel('onlineUpdated'), SUCCESS); } else { $this->logger->LogInfo($this->request->controller, $this->request->action, $_SESSION[USER]->login, EmployeTranslate::getLabel('offlineUpdated') . '/id:' . $id); $this->Session->setAlert(EmployeTranslate::getLabel('offlineUpdated'), SUCCESS); } $this->redirect('cockpit/employe'); }
<?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"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> <?php echo EmployeTranslate::getLabel(DELETE); ?> </h3> </div> <div class="panel-body"> <?php echo $this->FormField->text('name', true, 'form-control'); ?> <?php echo $this->FormField->text('function', true, 'form-control'); ?> <?php echo $this->FormField->image('image_path'); ?> <?php echo $this->FormField->checkBox('online', true);
</li> <li class="active"> <?php echo EmployeTranslate::getLabel('list'); ?> </li> </ol> <?php echo $this->Session->getAlert(); ?> <div class="alert alert-primary"> <button type="button" class="close" data-dismiss="alert">×</button> <?php echo EmployeTranslate::getLabel(SEARCH); ?> </div> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title"><span class="glyphicon glyphicon-list" aria-hidden="true"></span> <?php echo UserTranslate::getLabel('list'); ?> </h3> </div> <div class="panel-body"> <table class="table table-hover table-bordered" id="employedata"> <thead> <tr> <th style="width:8%;"><?php
</li> <li class="active"> <?php echo EmployeTranslate::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"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> <?php echo EmployeTranslate::getLabel(CONSULT); ?> </h3> </div> <div class="panel-body"> <?php if ($this->Session->user('category') == 3) { ?> <?php if ($this->request->data->logicaldelete == 1) { echo $this->FormField->text('logicaldelete', true, 'form-control'); } ?> <?php echo $this->FormField->text('creation', true, 'form-control'); ?>
<?php echo $this->FormField->hidden('id'); ?> <?php echo $this->FormField->hidden('updated'); ?> <?php echo $this->FormField->hidden('updater'); ?> <?php echo $this->FormField->hidden('logicaldelete'); ?> <div class="panel panel-warning"> <div class="panel-heading"> <h3 class="panel-title"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> <?php echo EmployeTranslate::getLabel(UPDATE); ?> </h3> </div> <div class="panel-body"> <?php echo $this->FormField->text('name', false, 'form-control'); ?> <?php echo $this->FormField->text('function', false, 'form-control'); ?> <?php echo $this->FormField->lookup('image_path'); ?> <?php echo $this->FormField->checkBox('online', false);
<?php $title_for_layout = EmployeTranslate::getLabel("title"); ?> <div id="staff"> <div id="Scrollbar-Container"> <img src="<?php echo Router::webroot('utils/img/up_arrow.gif'); ?> " class="Scrollbar-Up" /> <div class="Scrollbar-Track"> <img src="<?php echo Router::webroot('utils/img/scrollbar_handle.gif'); ?> " class="Scrollbar-Handle" /> </div> <img src="<?php echo Router::webroot('utils/img/down_arrow.gif'); ?> " class="Scrollbar-Down" /> </div> <div id="element" style="position:absolute; top:0;"> <?php foreach ($Employe as $k => $v) { echo '<div class="img">'; if (!empty($v->image_path)) { echo '<img src="' . Router::webroot($v->image_path) . '" alt="Pharmacie Renard-Thauvin - ' . $v->name . '" />'; } else { echo '<img src="' . Router::webroot('utils/img/non_image.gif') . '" alt="Pharmacie Renard-Thauvin - ' . $v->name . '" />'; }