]> wagnertech.de Git - timetracker.git/commitdiff
Cosmetic - improved comments
authorNik Okuntseff <support@anuko.com>
Sun, 20 Mar 2016 22:44:32 +0000 (15:44 -0700)
committerNik Okuntseff <support@anuko.com>
Sun, 20 Mar 2016 22:44:32 +0000 (15:44 -0700)
16 files changed:
admin_options.php
admin_team_add.php
admin_team_delete.php
cf_custom_field_add.php
cf_custom_field_edit.php
cf_dropdown_option_add.php
cf_dropdown_option_edit.php
charts.php
client_add.php
client_delete.php
client_edit.php
expense_delete.php
expense_edit.php
expenses.php
export.php
import.php

index 42c10bbed478e2a8aef2271ad6a5eb74518ee010..2a44e3e2e2be486fbe6e289632a79ff6956432e5 100644 (file)
@@ -62,7 +62,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.db'));
   }
-} // post
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.options'));
index 258f6cafec8f139ed4653f690a5ff89d5703e23c..3ce0e662a7874e67dcd1353a5e8f3c0c74ef9e5c 100644 (file)
@@ -93,7 +93,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.user_exists'));
   }
-}
+} // POST
 
 $smarty->assign('auth_external', $auth->isPasswordExternal());
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index b53c5e929817a66b88d75840238ca6841f9a609c..2b308e54537322168f9d2b6b11bfbb5d7a440e17 100644 (file)
@@ -58,7 +58,7 @@ if ($request->getMethod() == 'POST') {
     header('Location: admin_teams.php');
     exit();
   }
-}
+} // POST
 
 $smarty->assign('team_to_delete', $team_name);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index 3af6c3a2781b58b4f8db00e83c2ea3b4132e91b9..056ce531abe9910b92d2e7cad0a3478fc09838e6 100644 (file)
@@ -65,7 +65,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.db'));
   }
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
index 3d92d94502e4d8dc1a6d9d4ad289670f75e6c377..15146db67b00db3665c2a6b5d6320455bb87cbef 100644 (file)
@@ -70,7 +70,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.db'));
   }
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
index 26ede87854a43aea2b5144452490170e01b389ff..2ffb83f6fef4279609c59f91e627811bd92081b2 100644 (file)
@@ -62,7 +62,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.db'));
   }
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.optionAddForm.name.focus()"');
index b46a3a539cbb6e65e5f5c57f1840f0bf02bcc18c..f61225bcc0f12fc3480c17d730e2d01be4ee0b58 100644 (file)
@@ -64,7 +64,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.db'));
   }
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.optionEditForm.name.focus()"');
index a7d0887d3972c5eadce5d3fd07401a3723d75a8a..a58c3d86c2376cc5088f6abd503285c7cd9c5c22 100644 (file)
@@ -117,7 +117,7 @@ if ($request->getMethod( )== 'POST') {
       exit();
     }
   }
-}
+} // POST
 
 // Elements of chartForm.
 $chart_form = new Form('chartForm');
index b7187056942573a7ee111bef43d12e0bf818305e..4aef5ab7e07f7a764e8d15e799a56ce90491047d 100644 (file)
@@ -80,7 +80,7 @@ if ($request->getMethod() == 'POST') {
      } else
        $errors->add($i18n->getKey('error.client_exists'));
   }
-} // post
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.clientForm.name.focus()"');
index 8d3f65ef0c9de4e8e994378f3a08a4d9a2b9aad3..cdc20b6fbe9f270ad8736fdd793a54420246f317 100644 (file)
@@ -64,7 +64,7 @@ if ($request->getMethod() == 'POST') {
     header('Location: clients.php');
     exit();
   }
-} // post
+} // POST
 
 $smarty->assign('client_to_delete', $client_to_delete);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index c24a427eb4b1373f84ce95c3766b0ee9fe5fab78..747ed2b8a68593294fc10c3ee27830adb072bcad 100644 (file)
@@ -113,7 +113,7 @@ if ($request->getMethod() == 'POST') {
         $errors->add($i18n->getKey('error.client_exists'));
     }
   }
-} // post
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.edit_client'));
index 2f531266c10d28b187585254e2191cd97d0d7b01..69ceb66302861c9352f31ee0b250139ec7d45397 100644 (file)
@@ -75,7 +75,7 @@ if ($request->getMethod() == 'POST') {
     header('Location: expenses.php');
     exit();
   }
-}
+} // POST
 
 $form = new Form('expenseItemForm');
 $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
index 8ae677215c1f4d050158c5d1a23f27aab4ecd1f5..89ca38c40cf1db4759d09099f228c77f014a192d 100644 (file)
@@ -203,7 +203,7 @@ if ($request->getMethod() == 'POST') {
     header("Location: expense_delete.php?id=$cl_id");
     exit();
   }
-} // End of if ($request->getMethod() == "POST")
+} // POST
 
 $smarty->assign('client_list', $client_list);
 $smarty->assign('project_list', $project_list);
index 8943fa99f05d6c3baa19758099449b73eaaa65b4..0f93b3bf91b62d488beb2b1f8b4e4e7ed92ca572 100644 (file)
@@ -98,8 +98,7 @@ if (MODE_PROJECTS == $user->tracking_mode || MODE_PROJECTS_AND_TASKS == $user->t
     'value'=>$cl_project,
     'data'=>$project_list,
     'datakeys'=>array('id','name'),
-    'empty'=>array(''=>$i18n->getKey('dropdown.select'))
-  ));
+    'empty'=>array(''=>$i18n->getKey('dropdown.select'))));
 
   // Dropdown for clients if the clients plugin is enabled.
   if (in_array('cl', explode(',', $user->plugins))) {
@@ -134,7 +133,7 @@ $form->addInput(array('type'=>'calendar','name'=>'date','highlight'=>'expenses',
 $form->addInput(array('type'=>'hidden','name'=>'browser_today','value'=>'')); // User current date, which gets filled in on btn_submit click.
 $form->addInput(array('type'=>'submit','name'=>'btn_submit','onclick'=>'browser_today.value=get_date()','value'=>$i18n->getKey('button.submit')));
 
-// Determine lock date. Time entries earlier than lock date cannot be created or modified. 
+// Determine lock date. Time entries earlier than lock date cannot be created or modified.
 $lock_interval = $user->lock_interval;
 $lockdate = 0;
 if ($lock_interval > 0) {
index 3c46a5b5c2552db6c773f3b7352de489254d4409..9f3694ca6a5371896f1268fc32643ac440bc69a6 100644 (file)
@@ -75,7 +75,7 @@ if ($request->getMethod() == 'POST') {
     exit;
   } else
     $errors->add($i18n->getKey('error.sys'));
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.export'));
index a76af182d45a880880b2f6d548dce44819f5c284..7d61e038e7773f357017b69ba8bd716dd4d01faf 100644 (file)
@@ -38,7 +38,7 @@ if (!ttAccessCheck(right_administer_site)) {
 
 $form = new Form('importForm');
 $form->addInput(array('type'=>'upload','name'=>'xmlfile','value'=>'browse','maxsize'=>16777216)); // 16 MB file upload limit.
-// Note: for the above limit to work make sure to set upload_max_filesize and post_max_size in php.ini to at least 16M. 
+// Note: for the above limit to work make sure to set upload_max_filesize and post_max_size in php.ini to at least 16M.
 $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->getKey('button.import')));
 
 if ($request->getMethod() == 'POST') {
@@ -47,7 +47,7 @@ if ($request->getMethod() == 'POST') {
   $import->importXml();
   if ($errors->isEmpty())
     $messages->add($i18n->getKey('form.import.success'));
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()) );
 $smarty->assign('title', $i18n->getKey('title.import'));