3 // eXtreme Styles mod cache. Generated on Wed, 22 Nov 2006 02:21:34 +0100 (time=1164158494)
7 $switch_xs_enabled_count = ( isset($this->_tpldata['switch_xs_enabled.']) ) ? sizeof($this->_tpldata['switch_xs_enabled.']) : 0;
8 for ($switch_xs_enabled_i = 0; $switch_xs_enabled_i < $switch_xs_enabled_count; $switch_xs_enabled_i++)
10 $switch_xs_enabled_item = &$this->_tpldata['switch_xs_enabled.'][$switch_xs_enabled_i];
11 $switch_xs_enabled_item['S_ROW_COUNT'] = $switch_xs_enabled_i;
12 $switch_xs_enabled_item['S_NUM_ROWS'] = $switch_xs_enabled_count;
18 // This will convert simple select box to nicer one with <optgroup> tags.
\r
21 $str = $this->vars['S_JUMPBOX_SELECT'];
\r
24 $pos = strpos($str, '<option');
\r
27 $start = substr($str, 0, $pos);
\r
28 $str = substr($str, $pos, strlen($str));
\r
35 $str = strrev($str);
\r
36 $pos = strpos($str, strrev('</option>'));
\r
39 $end = strrev(substr($str, 0, $pos));
\r
40 $str = substr($str, $pos, strlen($str));
\r
46 $str = trim(strrev($str));
\r
47 // getting all options
\r
48 while(strlen($str) > 0)
\r
50 $pos = strpos($str, '</option>');
\r
54 $item = trim(substr($str, 0, $pos));
\r
55 $str = trim(substr($str, $pos, strlen($str)));
\r
65 $pos = strpos($item, '>') + 1;
\r
67 $text = substr($item, $pos, strlen($item));
\r
68 $item = substr($item, 0, $pos);
\r
69 $pos = strpos($text, '<');
\r
72 $text = substr($text, 0, $pos);
\r
74 // checking if item is selected
\r
75 if(strpos($str1, ' selected'))
\r
80 $pos = strpos($item, 'value="');
\r
84 $str1 = substr($item, $pos, strlen($item));
\r
85 $pos = strpos($str1, '"');
\r
86 $value = substr($str1, 0, $pos);
\r
91 'selected' => $selected
\r
97 for($i=0; $i<count($options); $i++)
\r
99 $item = $options[$i];
\r
100 if(($item['value'] == -1) && ($item['text'] === ' '))
\r
104 $text .= '</optgroup>';
\r
107 if(count($options) - $i >= 2)
\r
109 $item = $options[$i+1];
\r
112 $text .= '<optgroup label="' . $item['text'] . '">';
\r
117 $text .= '<option value="' . $item['value'] . '"';
\r
118 if($item['selected'])
\r
120 $text .= ' selected="selected"';
\r
122 $text .= '>' . $item['text'] . '</option>';
\r
127 $text .= '</optgroup>';
\r
130 $this->vars['S_JUMPBOX_SELECT'] = $text;
\r
135 } // END switch_xs_enabled
137 if(isset($switch_xs_enabled_item)) { unset($switch_xs_enabled_item); }
140 <table cellspacing="0" cellpadding="0" border="0">
\r
142 <form method="get" name="jumpbox" action="<?php echo isset($this->vars['S_JUMPBOX_ACTION']) ? $this->vars['S_JUMPBOX_ACTION'] : $this->lang('S_JUMPBOX_ACTION'); ?>" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
\r
143 <td nowrap="nowrap"><?php echo isset($this->vars['S_JUMPBOX_SELECT']) ? $this->vars['S_JUMPBOX_SELECT'] : $this->lang('S_JUMPBOX_SELECT'); ?> <input type="submit" value="<?php echo isset($this->vars['L_GO']) ? $this->vars['L_GO'] : $this->lang('L_GO'); ?>" class="liteoption" /> </td>
\r