aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/helpers/CinisisDisplayHelper.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/classes/helpers/CinisisDisplayHelper.php b/classes/helpers/CinisisDisplayHelper.php
index 8a795e8..72e51b2 100644
--- a/classes/helpers/CinisisDisplayHelper.php
+++ b/classes/helpers/CinisisDisplayHelper.php
@@ -70,11 +70,18 @@ class CinisisDisplayHelper {
* @param $name
* Input name.
*
+ * @param $default
+ * Default value.
+ *
* @return
* Rendered text input.
*/
- function form_input_text($name) {
- return ucfirst($name) .': <input name="'. $name .'" type="text" />';
+ function form_input_text($name, $default = null) {
+ if ($default) {
+ $default = 'value="'. $default .'"';
+ }
+
+ return ucfirst($name) .': <input name="'. $name .'" type="text" '. $default .'/>';
}
/**
@@ -88,6 +95,9 @@ class CinisisDisplayHelper {
*
* @param $action
* Page action.
+ *
+ * @param $extra
+ * Extra parameters.
*/
function navbar($entry, $entries, $action = 'index.php', $extra = NULL) {
// First / prev links.