} else
$errors->add($i18n->getKey('error.db'));
}
-} // post
+} // POST
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.options'));
} else
$errors->add($i18n->getKey('error.user_exists'));
}
-}
+} // POST
$smarty->assign('auth_external', $auth->isPasswordExternal());
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
header('Location: admin_teams.php');
exit();
}
-}
+} // POST
$smarty->assign('team_to_delete', $team_name);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
} else
$errors->add($i18n->getKey('error.db'));
}
-}
+} // POST
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
} else
$errors->add($i18n->getKey('error.db'));
}
-}
+} // POST
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
} else
$errors->add($i18n->getKey('error.db'));
}
-}
+} // POST
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.optionAddForm.name.focus()"');
} else
$errors->add($i18n->getKey('error.db'));
}
-}
+} // POST
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.optionEditForm.name.focus()"');
exit();
}
}
-}
+} // POST
// Elements of chartForm.
$chart_form = new Form('chartForm');
} 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()"');
header('Location: clients.php');
exit();
}
-} // post
+} // POST
$smarty->assign('client_to_delete', $client_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$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'));
header('Location: expenses.php');
exit();
}
-}
+} // POST
$form = new Form('expenseItemForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
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);
'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))) {
$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) {
exit;
} else
$errors->add($i18n->getKey('error.sys'));
-}
+} // POST
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.export'));
$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') {
$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'));