Example #1
0
	</li>
	<li class="active">
		<?php 
echo UrgencyTranslate::getLabel('list');
?>
	</li>
</ol>

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

<div class="alert alert-primary">
	<button type="button" class="close" data-dismiss="alert">&times;</button>
	<?php 
echo UrgencyTranslate::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="urgencydata">
			<thead>
			<tr>
				<th style="width:8%;"><?php 
Example #2
0
	</li>
	<li class="active">
		<?php 
echo UrgencyTranslate::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 UrgencyTranslate::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');
    ?>
Example #3
0
<?php

$title_for_layout = UrgencyTranslate::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('utilsE/img/down_arrow.gif');
?>
" class="Scrollbar-Down" />
	</div>
	<div id="element" style="position:absolute; top:0;">
		<?php 
foreach ($Urgency 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 . '" />';
    }
Example #4
0
	<?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 UrgencyTranslate::getLabel(UPDATE);
?>
</h3>
		</div>
		<div class="panel-body">
			<?php 
echo $this->FormField->text('name', false, 'form-control');
?>
			<?php 
echo $this->FormField->number('phone', false, 'form-control');
?>
			<?php 
echo $this->FormField->text('information', false, 'form-control');
?>
			<?php 
echo $this->FormField->lookup('image_path');
Example #5
0
echo MenuTranslate::getLabel(HOME);
?>
</a>
	</li>
	<li>
		<a href="<?php 
echo Router::generateURL('cockpit/urgency');
?>
"><?php 
echo UrgencyTranslate::getLabel("title");
?>
</a>
	</li>
	<li class="active">
		<?php 
echo UrgencyTranslate::getLabel(ADD);
?>
	</li>
</ol>

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

<form action="<?php 
echo Router::generateURL('cockpit/urgency/add');
?>
" method="post" class="form-horizontal">
	<?php 
echo $this->FormField->hidden('creation');
?>
Example #6
0
 function online($id = null)
 {
     if ($id === null || !is_numeric($id)) {
         $this->redirect('cockpit/urgency');
         return false;
     }
     $this->loadModel(URGENCY);
     $this->request->data = $this->Urgency->findFirst(array('fields' => DBUtils::$tableExtend[URGENCY], 'conditions' => array('Urgency.id' => $id)));
     $this->request->data->online = $this->request->data->online == 1 ? 0 : 1;
     $id = $this->Urgency->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, UrgencyTranslate::getLabel('onlineUpdated') . '/id:' . $id);
         $this->Session->setAlert(UrgencyTranslate::getLabel('onlineUpdated'), SUCCESS);
     } else {
         $this->logger->LogInfo($this->request->controller, $this->request->action, $_SESSION[USER]->login, UrgencyTranslate::getLabel('offlineUpdated') . '/id:' . $id);
         $this->Session->setAlert(UrgencyTranslate::getLabel('offlineUpdated'), SUCCESS);
     }
     $this->redirect('cockpit/urgency');
 }