<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.9.16.3429 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.9.16.3430 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
<!-- End of top image -->
<!-- Output errors -->
-{if !$errors->isEmpty()}
+{if $errors->yes()}
<table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
<tr>
<td class="error">
}
if (!ttValidEmail($cl_manager_email, true)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.email'));
- if ($errors->isEmpty()) {
+ if ($errors->no()) {
if (!ttUserHelper::getUserByLogin($cl_manager_login)) {
// Create a new team.
if (!defined('CURRENCY_DEFAULT')) define('CURRENCY_DEFAULT', '$');
// Validate user input.
if (!ttValidString($cl_field_name)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.thing_name'));
- if ($errors->isEmpty()) {
+ if ($errors->no()) {
$res = CustomFields::insertField($cl_field_name, $cl_field_type, $cl_required);
if ($res) {
header('Location: cf_custom_fields.php');
if (false === $field)
$errors->add($i18n->getKey('error.db'));
- if ($errors->isEmpty()) {
+ if ($errors->no()) {
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$id));
$form->addInput(array('type'=>'submit','name'=>'btn_delete','value'=>$i18n->getKey('label.delete')));
$form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->getKey('button.cancel')));
$errors->add($i18n->getKey('error.db'));
$form = new Form('fieldForm');
-if ($errors->isEmpty()) {
+if ($errors->no()) {
$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'name','value'=>$field['label']));
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
$form->addInput(array('type'=>'checkbox','name'=>'required','data'=>1,'value'=>$field['required']));
// Validate user input.
if (!ttValidString($cl_name)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.thing_name'));
- if ($errors->isEmpty()) {
+ if ($errors->no()) {
$res = CustomFields::updateField($cl_id, $cl_name, $cl_type, $cl_required);
if ($res) {
header('Location: cf_custom_fields.php');