Revize 2043
Přidáno uživatelem David Raška před asi 11 roky(ů)
freenetis/branches/1.1/application/controllers/log_queues.php | ||
---|---|---|
'limit_results' => $limit_results,
|
||
'filter' => $filter_form->html()
|
||
));
|
||
|
||
$grid->add_new_button(
|
||
'log_queues/close_logs/'.server::query_string(), 'Set state closed'
|
||
);
|
||
|
||
$grid->order_field('id')
|
||
->label('ID');
|
||
... | ... | |
$this->redirect('log_queues/show/', $log_queue_id);
|
||
}
|
||
|
||
public function close_logs()
|
||
{
|
||
$filter_form = new Filter_form();
|
||
|
||
$filter_form->autoload();
|
||
|
||
$where = $filter_form->as_sql();
|
||
|
||
$lq_model = new Log_queue_Model();
|
||
|
||
if (!empty($where))
|
||
{
|
||
$logs = $lq_model->where($where)->find_all();
|
||
}
|
||
else
|
||
{
|
||
$logs = $lq_model->find_all();
|
||
}
|
||
|
||
$logs->count();
|
||
$count = 0;
|
||
|
||
|
||
foreach ($logs as $log)
|
||
{
|
||
if ($log->state == Log_queue_Model::STATE_CLOSED)
|
||
{
|
||
continue;
|
||
}
|
||
|
||
try
|
||
{
|
||
$log->transaction_start();
|
||
|
||
// set data
|
||
$log->state = Log_queue_Model::STATE_CLOSED;
|
||
$log->closed_at = date('Y-m-d H:i:s');
|
||
$log->closed_by_user_id = $this->user_id;
|
||
$log->save_throwable();
|
||
|
||
$log->transaction_commit();
|
||
|
||
$count++;
|
||
}
|
||
catch (Exception $e)
|
||
{
|
||
$log->transaction_rollback();
|
||
Log::add_exception($e);
|
||
}
|
||
}
|
||
|
||
status::success('Log queues has been closed (%d / %d)', TRUE, array($count, $logs->count()));
|
||
|
||
$this->redirect('log_queues/show_all/'.server::query_string());
|
||
}
|
||
}
|
freenetis/branches/1.1/application/helpers/callback.php | ||
---|---|---|
{
|
||
if (condition::is_applicant_registration($item))
|
||
{
|
||
echo form::checkbox('toapprove[]', $item->id);
|
||
echo form::checkbox('toapprove[]', $item->id, FALSE, 'class="checkbox"');
|
||
}
|
||
}
|
||
|
freenetis/branches/1.1/application/i18n/cs_CZ/texts.php | ||
---|---|---|
'errors and logs' => 'Chyby a záznamy činnosti',
|
||
'log in to freenetis system' => 'Přihlásit do systému Freenetis',
|
||
'log queue has been closed' => 'Záznam činnosti byl uzavřen.',
|
||
'log queues has been closed (%d / %d)' => 'Záznamy činnosti byly uzavřeny (%d / %d)',
|
||
'logged user' => 'Přihlášený uživatel',
|
||
'logging' => 'Logování',
|
||
'logging state' => 'Stav logování',
|
Také k dispozici: Unified diff
Nove:
- closes #662 - Moznost uzavrit vsechny neuzavrene zadosti o cinnosti
Opravy:
- Oprava zobrazeni checkboxu u hromadneho prijimani zajemcu