From eb55e2f8ca3859482a389795e03b45283e14ef36 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Tue, 22 Mar 2016 11:20:00 -0700 Subject: [PATCH] A better comment --- admin_options.php | 2 +- admin_team_delete.php | 2 +- admin_team_edit.php | 2 +- cf_custom_field_add.php | 2 +- cf_custom_field_edit.php | 2 +- cf_dropdown_option_add.php | 2 +- cf_dropdown_option_edit.php | 2 +- charts.php | 2 +- client_add.php | 2 +- client_delete.php | 2 +- client_edit.php | 2 +- expense_delete.php | 2 +- expense_edit.php | 2 +- export.php | 2 +- import.php | 2 +- invoice_add.php | 2 +- invoice_delete.php | 2 +- invoice_send.php | 2 +- login.php | 2 +- mobile/login.php | 2 +- mobile/time.php | 2 +- mobile/time_delete.php | 2 +- mobile/time_edit.php | 2 +- mobile/timer.php | 2 +- notification_add.php | 2 +- notification_delete.php | 2 +- notification_edit.php | 2 +- password_change.php | 2 +- password_reset.php | 2 +- profile_edit.php | 2 +- project_add.php | 2 +- project_delete.php | 2 +- project_edit.php | 2 +- register.php | 2 +- report.php | 2 +- reports.php | 2 +- task_add.php | 2 +- task_delete.php | 2 +- task_edit.php | 2 +- time.php | 2 +- time_delete.php | 2 +- time_edit.php | 2 +- user_add.php | 2 +- user_delete.php | 2 +- user_edit.php | 2 +- 45 files changed, 45 insertions(+), 45 deletions(-) diff --git a/admin_options.php b/admin_options.php index a7e567f6..05fa4800 100644 --- a/admin_options.php +++ b/admin_options.php @@ -62,7 +62,7 @@ if ($request->isPost()) { } else $err->add($i18n->getKey('error.db')); } -} // POST +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('title', $i18n->getKey('title.options')); diff --git a/admin_team_delete.php b/admin_team_delete.php index 19de9a7e..987543c5 100644 --- a/admin_team_delete.php +++ b/admin_team_delete.php @@ -58,7 +58,7 @@ if ($request->isPost()) { header('Location: admin_teams.php'); exit(); } -} // POST +} // isPost $smarty->assign('team_to_delete', $team_name); $smarty->assign('forms', array($form->getName()=>$form->toArray())); diff --git a/admin_team_edit.php b/admin_team_edit.php index 84057b0e..09ef866d 100644 --- a/admin_team_edit.php +++ b/admin_team_edit.php @@ -112,7 +112,7 @@ if ($request->isPost()) { header('Location: admin_teams.php'); exit(); } -} // POST +} // isPost $smarty->assign('auth_external', $auth->isPasswordExternal()); $smarty->assign('forms', array($form->getName()=>$form->toArray())); diff --git a/cf_custom_field_add.php b/cf_custom_field_add.php index 656cb9bd..965c2aba 100644 --- a/cf_custom_field_add.php +++ b/cf_custom_field_add.php @@ -65,7 +65,7 @@ if ($request->isPost()) { } 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()"'); diff --git a/cf_custom_field_edit.php b/cf_custom_field_edit.php index f368515c..196d85fa 100644 --- a/cf_custom_field_edit.php +++ b/cf_custom_field_edit.php @@ -70,7 +70,7 @@ if ($request->isPost()) { } 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()"'); diff --git a/cf_dropdown_option_add.php b/cf_dropdown_option_add.php index a8de8e5c..20da6eef 100644 --- a/cf_dropdown_option_add.php +++ b/cf_dropdown_option_add.php @@ -62,7 +62,7 @@ if ($request->isPost()) { } 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()"'); diff --git a/cf_dropdown_option_edit.php b/cf_dropdown_option_edit.php index bf5b17e8..78fc279c 100644 --- a/cf_dropdown_option_edit.php +++ b/cf_dropdown_option_edit.php @@ -64,7 +64,7 @@ if ($request->isPost()) { } 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()"'); diff --git a/charts.php b/charts.php index a58c3d86..f6391102 100644 --- a/charts.php +++ b/charts.php @@ -117,7 +117,7 @@ if ($request->getMethod( )== 'POST') { exit(); } } -} // POST +} // isPost // Elements of chartForm. $chart_form = new Form('chartForm'); diff --git a/client_add.php b/client_add.php index 7a90d22b..275a65ee 100644 --- a/client_add.php +++ b/client_add.php @@ -80,7 +80,7 @@ if ($request->isPost()) { } 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()"'); diff --git a/client_delete.php b/client_delete.php index e22704fa..201d02ca 100644 --- a/client_delete.php +++ b/client_delete.php @@ -64,7 +64,7 @@ if ($request->isPost()) { header('Location: clients.php'); exit(); } -} // POST +} // isPost $smarty->assign('client_to_delete', $client_to_delete); $smarty->assign('forms', array($form->getName()=>$form->toArray())); diff --git a/client_edit.php b/client_edit.php index c64618d1..c7ad1581 100644 --- a/client_edit.php +++ b/client_edit.php @@ -113,7 +113,7 @@ if ($request->isPost()) { $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')); diff --git a/expense_delete.php b/expense_delete.php index d0b11cc8..14e70887 100644 --- a/expense_delete.php +++ b/expense_delete.php @@ -75,7 +75,7 @@ if ($request->isPost()) { header('Location: expenses.php'); exit(); } -} // POST +} // isPost $form = new Form('expenseItemForm'); $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id)); diff --git a/expense_edit.php b/expense_edit.php index 1703c176..abd5c39c 100644 --- a/expense_edit.php +++ b/expense_edit.php @@ -203,7 +203,7 @@ if ($request->isPost()) { header("Location: expense_delete.php?id=$cl_id"); exit(); } -} // POST +} // isPost $smarty->assign('client_list', $client_list); $smarty->assign('project_list', $project_list); diff --git a/export.php b/export.php index fb0e7567..f0469497 100644 --- a/export.php +++ b/export.php @@ -75,7 +75,7 @@ if ($request->isPost()) { 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')); diff --git a/import.php b/import.php index e4a74eea..d86628b6 100644 --- a/import.php +++ b/import.php @@ -47,7 +47,7 @@ if ($request->isPost()) { $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')); diff --git a/invoice_add.php b/invoice_add.php index 347f6b43..4a1c4834 100644 --- a/invoice_add.php +++ b/invoice_add.php @@ -89,7 +89,7 @@ if ($request->isPost()) { } $err->add($i18n->getKey('error.db')); } -} // POST +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.invoiceForm.number.focus()"'); diff --git a/invoice_delete.php b/invoice_delete.php index 579155ab..0d473595 100644 --- a/invoice_delete.php +++ b/invoice_delete.php @@ -63,7 +63,7 @@ if ($request->isPost()) { header('Location: invoices.php'); exit(); } -} // POST +} // isPost $smarty->assign('invoice_to_delete', $invoice_to_delete); $smarty->assign('forms', array($form->getName()=>$form->toArray())); diff --git a/invoice_send.php b/invoice_send.php index fba99ca3..4ec28bcf 100644 --- a/invoice_send.php +++ b/invoice_send.php @@ -92,7 +92,7 @@ if ($request->isPost()) { 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())); diff --git a/login.php b/login.php index 886800c3..19b88eac 100644 --- a/login.php +++ b/login.php @@ -78,7 +78,7 @@ if ($request->isPost()) { } else $err->add($i18n->getKey('error.auth')); } -} // POST +} // isPost if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams()) $err->add($i18n->getKey('error.no_teams')); diff --git a/mobile/login.php b/mobile/login.php index 7e5d8719..91a5241e 100644 --- a/mobile/login.php +++ b/mobile/login.php @@ -82,7 +82,7 @@ if ($request->isPost()) { } else $err->add($i18n->getKey('error.auth')); } -} // POST +} // isPost if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams()) $err->add($i18n->getKey('error.no_teams')); diff --git a/mobile/time.php b/mobile/time.php index f353948e..4eca3dee 100644 --- a/mobile/time.php +++ b/mobile/time.php @@ -286,7 +286,7 @@ if ($request->isPost()) { $err->add($i18n->getKey('error.db')); } } -} // POST +} // isPost $smarty->assign('next_date', $next_date); $smarty->assign('prev_date', $prev_date); diff --git a/mobile/time_delete.php b/mobile/time_delete.php index 4dde97d0..9e818e78 100644 --- a/mobile/time_delete.php +++ b/mobile/time_delete.php @@ -90,7 +90,7 @@ if ($request->isPost()) { header('Location: time.php'); exit(); } -} // POST +} // isPost $form = new Form('timeRecordForm'); $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id)); diff --git a/mobile/time_edit.php b/mobile/time_edit.php index 7130b8cd..46c89d92 100644 --- a/mobile/time_edit.php +++ b/mobile/time_edit.php @@ -333,7 +333,7 @@ if ($request->isPost()) { header("Location: time_delete.php?id=$cl_id"); exit(); } -} // POST +} // isPost $smarty->assign('client_list', $client_list); $smarty->assign('project_list', $project_list); diff --git a/mobile/timer.php b/mobile/timer.php index 6e3a4479..f2101575 100644 --- a/mobile/timer.php +++ b/mobile/timer.php @@ -287,7 +287,7 @@ if ($request->isPost()) { exit(); } } -} // POST +} // isPost $week_total = ttTimeHelper::getTimeForWeek($user->getActiveUser(), $cl_date); $smarty->assign('week_total', $week_total); diff --git a/notification_add.php b/notification_add.php index 80bd33ea..80f46bb2 100644 --- a/notification_add.php +++ b/notification_add.php @@ -84,7 +84,7 @@ if ($request->isPost()) { } 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')); diff --git a/notification_delete.php b/notification_delete.php index cd0d748e..a8a2e498 100644 --- a/notification_delete.php +++ b/notification_delete.php @@ -59,7 +59,7 @@ if ($request->isPost()) { header('Location: notifications.php'); exit(); } -} // POST +} // isPost $smarty->assign('notification_to_delete', $notification_to_delete); $smarty->assign('forms', array($form->getName()=>$form->toArray())); diff --git a/notification_edit.php b/notification_edit.php index f1452080..30a9d8fe 100644 --- a/notification_edit.php +++ b/notification_edit.php @@ -89,7 +89,7 @@ if ($request->isPost()) { } 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')); diff --git a/password_change.php b/password_change.php index 0c512800..f07b8b61 100644 --- a/password_change.php +++ b/password_change.php @@ -87,7 +87,7 @@ if ($request->isPost()) { $err->add($i18n->getKey('error.auth')); } } -} // POST +} // isPost $smarty->assign('forms', array($form->getName() => $form->toArray())); $smarty->assign('title', $i18n->getKey('title.change_password')); diff --git a/password_reset.php b/password_reset.php index 9c2ed4e9..f98421a5 100644 --- a/password_reset.php +++ b/password_reset.php @@ -110,7 +110,7 @@ if ($request->isPost()) { $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()"'); diff --git a/profile_edit.php b/profile_edit.php index a4c9db6c..e538fce5 100644 --- a/profile_edit.php +++ b/profile_edit.php @@ -258,7 +258,7 @@ if ($request->isPost()) { } else $err->add($i18n->getKey('error.db')); } -} // POST +} // isPost $smarty->assign('auth_external', $auth->isPasswordExternal()); $smarty->assign('forms', array($form->getName()=>$form->toArray())); diff --git a/project_add.php b/project_add.php index c2a30c5c..1c825d9f 100644 --- a/project_add.php +++ b/project_add.php @@ -86,7 +86,7 @@ if ($request->isPost()) { } 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()"'); diff --git a/project_delete.php b/project_delete.php index b8a482a5..ac918a97 100644 --- a/project_delete.php +++ b/project_delete.php @@ -59,7 +59,7 @@ if ($request->isPost()) { header('Location: projects.php'); exit(); } -} // POST +} // isPost $smarty->assign('project_to_delete', $project_to_delete); $smarty->assign('forms', array($form->getName()=>$form->toArray())); diff --git a/project_edit.php b/project_edit.php index 7f2cd342..9cca73e5 100644 --- a/project_edit.php +++ b/project_edit.php @@ -124,7 +124,7 @@ if ($request->isPost()) { $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()"'); diff --git a/register.php b/register.php index 03d77b64..9984460c 100644 --- a/register.php +++ b/register.php @@ -100,7 +100,7 @@ if ($request->isPost()) { } 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())); diff --git a/report.php b/report.php index a34238fb..dd4b9be3 100644 --- a/report.php +++ b/report.php @@ -80,7 +80,7 @@ if ($request->isPost()) { // Re-display this form. header('Location: report.php'); exit(); -} // POST +} // isPost $group_by = $bean->getAttribute('group_by'); diff --git a/reports.php b/reports.php index 894526d2..90b12b2b 100644 --- a/reports.php +++ b/reports.php @@ -312,7 +312,7 @@ if ($request->isPost()) { exit(); } } -} // POST +} // isPost $smarty->assign('project_list', $project_list); $smarty->assign('task_list', $task_list); diff --git a/task_add.php b/task_add.php index 15e8e7f5..ff98c977 100644 --- a/task_add.php +++ b/task_add.php @@ -75,7 +75,7 @@ if ($request->isPost()) { } 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()"'); diff --git a/task_delete.php b/task_delete.php index d4321fb2..1c089197 100644 --- a/task_delete.php +++ b/task_delete.php @@ -59,7 +59,7 @@ if ($request->isPost()) { header('Location: tasks.php'); exit(); } -} // POST +} // isPost $smarty->assign('task_to_delete', $task_to_delete); $smarty->assign('forms', array($form->getName()=>$form->toArray())); diff --git a/task_edit.php b/task_edit.php index bdd99b5f..943e9a92 100644 --- a/task_edit.php +++ b/task_edit.php @@ -106,7 +106,7 @@ if ($request->isPost()) { $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')); diff --git a/time.php b/time.php index c79315d7..08a79ebd 100644 --- a/time.php +++ b/time.php @@ -350,7 +350,7 @@ if ($request->isPost()) { exit(); } } -} // POST +} // isPost $week_total = ttTimeHelper::getTimeForWeek($user->getActiveUser(), $selected_date); diff --git a/time_delete.php b/time_delete.php index 538d9c7a..26b1793c 100644 --- a/time_delete.php +++ b/time_delete.php @@ -89,7 +89,7 @@ if ($request->isPost()) { header('Location: time.php'); exit(); } -} // POST +} // isPost $form = new Form('timeRecordForm'); $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id)); diff --git a/time_edit.php b/time_edit.php index 7e4f7bf2..2dca2447 100644 --- a/time_edit.php +++ b/time_edit.php @@ -393,7 +393,7 @@ if ($request->isPost()) { header("Location: time_delete.php?id=$cl_id"); exit(); } -} // POST +} // isPost $smarty->assign('client_list', $client_list); $smarty->assign('project_list', $project_list); diff --git a/user_add.php b/user_add.php index 26cbe695..59300859 100644 --- a/user_add.php +++ b/user_add.php @@ -164,7 +164,7 @@ if ($request->isPost()) { } else $err->add($i18n->getKey('error.user_exists')); } -} // POST +} // isPost $smarty->assign('auth_external', $auth->isPasswordExternal()); $smarty->assign('forms', array($form->getName()=>$form->toArray())); diff --git a/user_delete.php b/user_delete.php index 092dcb43..1f0a40de 100644 --- a/user_delete.php +++ b/user_delete.php @@ -91,7 +91,7 @@ if ($request->isPost()) { header('Location: users.php'); exit(); } -} // POST +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('title', $i18n->getKey('title.delete_user')); diff --git a/user_edit.php b/user_edit.php index 1183b767..1d588e8e 100644 --- a/user_edit.php +++ b/user_edit.php @@ -223,7 +223,7 @@ if ($request->isPost()) { } else $err->add($i18n->getKey('error.user_exists')); } -} // POST +} // isPost $rates = ttProjectHelper::getRates($user_id); $smarty->assign('rates', $rates); -- 2.20.1