} else
$err->add($i18n->getKey('error.db'));
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.options'));
header('Location: admin_teams.php');
exit();
}
-} // POST
+} // isPost
$smarty->assign('team_to_delete', $team_name);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
header('Location: admin_teams.php');
exit();
}
-} // POST
+} // isPost
$smarty->assign('auth_external', $auth->isPasswordExternal());
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
} else
$err->add($i18n->getKey('error.db'));
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
} else
$err->add($i18n->getKey('error.db'));
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
} else
$err->add($i18n->getKey('error.db'));
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.optionAddForm.name.focus()"');
} else
$err->add($i18n->getKey('error.db'));
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.optionEditForm.name.focus()"');
exit();
}
}
-} // POST
+} // isPost
// Elements of chartForm.
$chart_form = new Form('chartForm');
} else
$err->add($i18n->getKey('error.client_exists'));
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.clientForm.name.focus()"');
header('Location: clients.php');
exit();
}
-} // POST
+} // isPost
$smarty->assign('client_to_delete', $client_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$err->add($i18n->getKey('error.client_exists'));
}
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.edit_client'));
header('Location: expenses.php');
exit();
}
-} // POST
+} // isPost
$form = new Form('expenseItemForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
header("Location: expense_delete.php?id=$cl_id");
exit();
}
-} // POST
+} // isPost
$smarty->assign('client_list', $client_list);
$smarty->assign('project_list', $project_list);
exit;
} else
$err->add($i18n->getKey('error.sys'));
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.export'));
$import->importXml();
if ($err->no())
$messages->add($i18n->getKey('form.import.success'));
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()) );
$smarty->assign('title', $i18n->getKey('title.import'));
}
$err->add($i18n->getKey('error.db'));
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.invoiceForm.number.focus()"');
header('Location: invoices.php');
exit();
}
-} // POST
+} // isPost
$smarty->assign('invoice_to_delete', $invoice_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
else
$err->add($i18n->getKey('error.mail_send'));
}
-} // POST
+} // isPost
$smarty->assign('title', $i18n->getKey('title.send_invoice'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
} else
$err->add($i18n->getKey('error.auth'));
}
-} // POST
+} // isPost
if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams())
$err->add($i18n->getKey('error.no_teams'));
} else
$err->add($i18n->getKey('error.auth'));
}
-} // POST
+} // isPost
if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams())
$err->add($i18n->getKey('error.no_teams'));
$err->add($i18n->getKey('error.db'));
}
}
-} // POST
+} // isPost
$smarty->assign('next_date', $next_date);
$smarty->assign('prev_date', $prev_date);
header('Location: time.php');
exit();
}
-} // POST
+} // isPost
$form = new Form('timeRecordForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
header("Location: time_delete.php?id=$cl_id");
exit();
}
-} // POST
+} // isPost
$smarty->assign('client_list', $client_list);
$smarty->assign('project_list', $project_list);
exit();
}
}
-} // POST
+} // isPost
$week_total = ttTimeHelper::getTimeForWeek($user->getActiveUser(), $cl_date);
$smarty->assign('week_total', $week_total);
} else
$err->add($i18n->getKey('error.db'));
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.add_notification'));
header('Location: notifications.php');
exit();
}
-} // POST
+} // isPost
$smarty->assign('notification_to_delete', $notification_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
} else
$err->add($i18n->getKey('error.db'));
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.add_notification'));
$err->add($i18n->getKey('error.auth'));
}
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName() => $form->toArray()));
$smarty->assign('title', $i18n->getKey('title.change_password'));
$smarty->assign('result_message', $res ? $i18n->getKey('form.reset_password.message') : $i18n->getKey('error.mail_send'));
}
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.resetPasswordForm.login.focus()"');
} else
$err->add($i18n->getKey('error.db'));
}
-} // POST
+} // isPost
$smarty->assign('auth_external', $auth->isPasswordExternal());
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
} else
$err->add($i18n->getKey('error.project_exists'));
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.projectForm.project_name.focus()"');
header('Location: projects.php');
exit();
}
-} // POST
+} // isPost
$smarty->assign('project_to_delete', $project_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$err->add($i18n->getKey('error.project_exists'));
}
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.projectForm.name.focus()"');
} else
$err->add($i18n->getKey('error.user_exists'));
}
-} // POST
+} // isPost
$smarty->assign('title', $i18n->getKey('title.create_team'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
// Re-display this form.
header('Location: report.php');
exit();
-} // POST
+} // isPost
$group_by = $bean->getAttribute('group_by');
exit();
}
}
-} // POST
+} // isPost
$smarty->assign('project_list', $project_list);
$smarty->assign('task_list', $task_list);
} else
$err->add($i18n->getKey('error.task_exists'));
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.taskForm.name.focus()"');
header('Location: tasks.php');
exit();
}
-} // POST
+} // isPost
$smarty->assign('task_to_delete', $task_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$err->add($i18n->getKey('error.task_exists'));
}
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.edit_task'));
exit();
}
}
-} // POST
+} // isPost
$week_total = ttTimeHelper::getTimeForWeek($user->getActiveUser(), $selected_date);
header('Location: time.php');
exit();
}
-} // POST
+} // isPost
$form = new Form('timeRecordForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
header("Location: time_delete.php?id=$cl_id");
exit();
}
-} // POST
+} // isPost
$smarty->assign('client_list', $client_list);
$smarty->assign('project_list', $project_list);
} else
$err->add($i18n->getKey('error.user_exists'));
}
-} // POST
+} // isPost
$smarty->assign('auth_external', $auth->isPasswordExternal());
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
header('Location: users.php');
exit();
}
-} // POST
+} // isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.delete_user'));
} else
$err->add($i18n->getKey('error.user_exists'));
}
-} // POST
+} // isPost
$rates = ttProjectHelper::getRates($user_id);
$smarty->assign('rates', $rates);