@@ 114-121 (lines=8) @@ | ||
111 | * @param int $selected |
|
112 | * @return string |
|
113 | */ |
|
114 | private function position_select($selected) |
|
115 | { |
|
116 | global $user; |
|
117 | $return = '<option' . (($selected == 0) ? ' selected="selected"' : '') . ' value="0">' . $user->lang('ACP_POSITION_ALL') . '</option>'; |
|
118 | $return .= '<option' . (($selected == 1) ? ' selected="selected"' : '') . ' value="1">' . $user->lang('ACP_POSITION_TOP') . '</option>'; |
|
119 | $return .= '<option' . (($selected == 2) ? ' selected="selected"' : '') . ' value="2">' . $user->lang('ACP_POSITION_BOTTOM') . '</option>'; |
|
120 | return $return; |
|
121 | } |
|
122 | ||
123 | /** |
|
124 | * Generates a option list for the cache tine multiplicator |
|
@@ 130-137 (lines=8) @@ | ||
127 | * @param int $selected |
|
128 | * @return string |
|
129 | */ |
|
130 | private function multiplicator_select($selected) |
|
131 | { |
|
132 | global $user; |
|
133 | $return = '<option' . (($selected == 1) ? ' selected="selected"' : '') . ' value="1">' . $user->lang('ACP_MULTIPLICATOR_SECONDS') . '</option>'; |
|
134 | $return .= '<option' . (($selected == 60) ? ' selected="selected"' : '') . ' value="60">' . $user->lang('ACP_MULTIPLICATOR_MINUTES') . '</option>'; |
|
135 | $return .= '<option' . (($selected == 3600) ? ' selected="selected"' : '') . ' value="3600">' . $user->lang('ACP_MULTIPLICATOR_HOURS') . '</option>'; |
|
136 | return $return; |
|
137 | } |
|
138 | } |
|
139 |