From c5cc2821311012a8a4385a304a043c4b41f2afbb Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 31 Aug 2009 19:05:21 +0000 Subject: All line endings are now Unix-style. git-svn-id: https://code.elgg.org/elgg/trunk@3451 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/failsafe/input/access.php | 100 ++++++++++++++++++------------------ views/failsafe/input/checkboxes.php | 78 ++++++++++++++-------------- views/failsafe/input/longtext.php | 38 +++++++------- views/failsafe/input/pulldown.php | 70 ++++++++++++------------- views/failsafe/input/text.php | 38 +++++++------- 5 files changed, 162 insertions(+), 162 deletions(-) (limited to 'views/failsafe/input') diff --git a/views/failsafe/input/access.php b/views/failsafe/input/access.php index d83b265ce..74fc56ddf 100644 --- a/views/failsafe/input/access.php +++ b/views/failsafe/input/access.php @@ -1,51 +1,51 @@ - 0) { - -?> - - - - 0) { + +?> + + + + \ No newline at end of file diff --git a/views/failsafe/input/checkboxes.php b/views/failsafe/input/checkboxes.php index 46894c5cb..0e394af55 100644 --- a/views/failsafe/input/checkboxes.php +++ b/views/failsafe/input/checkboxes.php @@ -1,49 +1,49 @@ - $option) { - //if (!in_array($option,$vars['value'])) { - if (is_array($vars['value'])) { - if (!in_array($option,$vars['value'])) { - $selected = ""; - } else { - $selected = "checked = \"checked\""; - } + + foreach($vars['options'] as $label => $option) { + //if (!in_array($option,$vars['value'])) { + if (is_array($vars['value'])) { + if (!in_array($option,$vars['value'])) { + $selected = ""; + } else { + $selected = "checked = \"checked\""; + } } else { - if ($option != $vars['value']) { - $selected = ""; - } else { - $selected = "checked = \"checked\""; - } - } - $labelint = (int) $label; - if ("{$label}" == "{$labelint}") { - $label = $option; + if ($option != $vars['value']) { + $selected = ""; + } else { + $selected = "checked = \"checked\""; + } + } + $labelint = (int) $label; + if ("{$label}" == "{$labelint}") { + $label = $option; } $disabled = ""; - if ($vars['disabled']) $disabled = ' disabled="yes" '; - echo "
"; - } - + if ($vars['disabled']) $disabled = ' disabled="yes" '; + echo "
"; + } + ?> \ No newline at end of file diff --git a/views/failsafe/input/longtext.php b/views/failsafe/input/longtext.php index 41cb395c2..c1f38fe69 100644 --- a/views/failsafe/input/longtext.php +++ b/views/failsafe/input/longtext.php @@ -1,25 +1,25 @@ - - + +?> + \ No newline at end of file diff --git a/views/failsafe/input/pulldown.php b/views/failsafe/input/pulldown.php index a0e91ce25..1adbad099 100644 --- a/views/failsafe/input/pulldown.php +++ b/views/failsafe/input/pulldown.php @@ -1,33 +1,33 @@ - "option" where "value" is an internal name and "option" is - * the value displayed on the button. Replaces $vars['options'] when defined. - */ + * the value displayed on the button. Replaces $vars['options'] when defined. + */ $class = $vars['class']; if (!$class) $class = "input-pulldown"; - -?> - - - class=""> + $option) { @@ -39,14 +39,14 @@ } } else - { - foreach($vars['options'] as $option) { - if ($option != $vars['value']) { - echo ""; - } else { - echo ""; - } - } - } -?> + { + foreach($vars['options'] as $option) { + if ($option != $vars['value']) { + echo ""; + } else { + echo ""; + } + } + } +?> \ No newline at end of file diff --git a/views/failsafe/input/text.php b/views/failsafe/input/text.php index 2195741f2..4c37e5219 100644 --- a/views/failsafe/input/text.php +++ b/views/failsafe/input/text.php @@ -1,27 +1,27 @@ - - + +?> + name="" value="" class=""/> \ No newline at end of file -- cgit v1.2.3