Changeset 24900
- Timestamp:
- 11/21/08 14:56:17 (7 weeks ago)
- Files:
-
- 6 modified
-
branches/zikula-1.0/includes/pnobjlib/HtmlUtil.class.php (modified) (3 diffs)
-
branches/zikula-1.0/system/pnRender/plugins/function.selector_countries.php (modified) (2 diffs)
-
development/main/includes/HtmlUtil.class.php (modified) (3 diffs)
-
development/main/system/pnRender/plugins/function.selector_countries.php (modified) (2 diffs)
-
development/zikula-1/includes/HtmlUtil.class.php (modified) (3 diffs)
-
development/zikula-1/system/pnRender/plugins/function.selector_countries.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/zikula-1.0/includes/pnobjlib/HtmlUtil.class.php
r24739 r24900 933 933 * @param defaultValue The default value to select (default='') (optional) 934 934 * @param defaultText The text for the default value (default='') (optional) 935 * @param allValue The value to assign for the "All" choice (optional) (default=0) 936 * @param allText The text to display for the "All" choice (optional) (default='') 935 937 * @param submit Whether or not to auto-submit the selector 936 938 * @param disabled Whether or not to disable selector (optional) (default=false) … … 939 941 * @return The generated HTML for the selector 940 942 */ 941 function getSelector_Countries ($name='countries', $selectedValue='', $defaultValue=0, $defaultText='', 942 $ submit=false, $disabled=false, $multipleSize=1)943 function getSelector_Countries ($name='countries', $selectedValue='', $defaultValue=0, $defaultText='', 944 $allValue=0, $allText='', $submit=false, $disabled=false, $multipleSize=1) 943 945 { 944 946 $countries = countrylist(); … … 956 958 $sel = ((string)$defaultValue==(string)$selectedValue ? 'selected="selected"' : ''); 957 959 $html .= "<option value=\"$defaultValue\" $sel>$defaultText</option>"; 960 } 961 962 if ($allText) { 963 $sel = ((string)$allValue==(string)$selectedValue ? 'selected="selected"' : ''); 964 $html .= "<option value=\"$allValue\" $sel>$allText</option>"; 958 965 } 959 966 -
branches/zikula-1.0/system/pnRender/plugins/function.selector_countries.php
r24339 r24900 37 37 function smarty_function_selector_countries($params, &$smarty) 38 38 { 39 $allValue = isset($params['allValue']) ? $params['allValue'] : 0; 40 $allText = isset($params['allText']) ? $params['allText'] : ''; 39 41 $defaultValue = isset($params['defaultValue']) ? $params['defaultValue'] : 0; 40 42 $defaultText = isset($params['defaultText']) ? $params['defaultText'] : ''; … … 46 48 47 49 Loader::loadClass('HtmlUtil'); 48 return HtmlUtil::getSelector_Countries ($name, $selectedValue, $defaultValue, $defaultText, $ submit, $disabled, $multipleSize);50 return HtmlUtil::getSelector_Countries ($name, $selectedValue, $defaultValue, $defaultText, $allValue, $allText, $submit, $disabled, $multipleSize); 49 51 } -
development/main/includes/HtmlUtil.class.php
r24739 r24900 938 938 * @param defaultValue The default value to select (default='') (optional) 939 939 * @param defaultText The text for the default value (default='') (optional) 940 * @param allValue The value to assign for the "All" choice (optional) (default=0) 941 * @param allText The text to display for the "All" choice (optional) (default='') 940 942 * @param submit Whether or not to auto-submit the selector 941 943 * @param disabled Whether or not to disable selector (optional) (default=false) … … 945 947 */ 946 948 static function getSelector_Countries($name = 'countries', $selectedValue = '', $defaultValue = 0, $defaultText = '', 947 $submit = false, $disabled = false, $multipleSize =1)949 $allValue=0, $allText='', $submit=false, $disabled=false, $multipleSize=1) 948 950 { 949 951 $countries = countrylist(); … … 961 963 $sel = ((string)$defaultValue == (string)$selectedValue ? 'selected="selected"' : ''); 962 964 $html .= "<option value=\"$defaultValue\" $sel>$defaultText</option>"; 965 } 966 967 if ($allText) { 968 $sel = ((string)$allValue==(string)$selectedValue ? 'selected="selected"' : ''); 969 $html .= "<option value=\"$allValue\" $sel>$allText</option>"; 963 970 } 964 971 -
development/main/system/pnRender/plugins/function.selector_countries.php
r24395 r24900 37 37 function smarty_function_selector_countries($params, &$smarty) 38 38 { 39 $allValue = isset($params['allValue']) ? $params['allValue'] : 0; 40 $allText = isset($params['allText']) ? $params['allText'] : ''; 39 41 $defaultValue = isset($params['defaultValue']) ? $params['defaultValue'] : 0; 40 42 $defaultText = isset($params['defaultText']) ? $params['defaultText'] : ''; … … 46 48 47 49 Loader::loadClass('HtmlUtil'); 48 return HtmlUtil::getSelector_Countries ($name, $selectedValue, $defaultValue, $defaultText, $ submit, $disabled, $multipleSize);50 return HtmlUtil::getSelector_Countries ($name, $selectedValue, $defaultValue, $defaultText, $allValue, $allText, $submit, $disabled, $multipleSize); 49 51 } -
development/zikula-1/includes/HtmlUtil.class.php
r24739 r24900 933 933 * @param defaultValue The default value to select (default='') (optional) 934 934 * @param defaultText The text for the default value (default='') (optional) 935 * @param allValue The value to assign for the "All" choice (optional) (default=0) 936 * @param allText The text to display for the "All" choice (optional) (default='') 935 937 * @param submit Whether or not to auto-submit the selector 936 938 * @param disabled Whether or not to disable selector (optional) (default=false) … … 940 942 */ 941 943 function getSelector_Countries ($name='countries', $selectedValue='', $defaultValue=0, $defaultText='', 942 $ submit=false, $disabled=false, $multipleSize=1)944 $allValue=0, $allText='', $submit=false, $disabled=false, $multipleSize=1) 943 945 { 944 946 $countries = countrylist(); … … 956 958 $sel = ((string)$defaultValue==(string)$selectedValue ? 'selected="selected"' : ''); 957 959 $html .= "<option value=\"$defaultValue\" $sel>$defaultText</option>"; 960 } 961 962 if ($allText) { 963 $sel = ((string)$allValue==(string)$selectedValue ? 'selected="selected"' : ''); 964 $html .= "<option value=\"$allValue\" $sel>$allText</option>"; 958 965 } 959 966 -
development/zikula-1/system/pnRender/plugins/function.selector_countries.php
r24339 r24900 37 37 function smarty_function_selector_countries($params, &$smarty) 38 38 { 39 $allValue = isset($params['allValue']) ? $params['allValue'] : 0; 40 $allText = isset($params['allText']) ? $params['allText'] : ''; 39 41 $defaultValue = isset($params['defaultValue']) ? $params['defaultValue'] : 0; 40 42 $defaultText = isset($params['defaultText']) ? $params['defaultText'] : ''; … … 46 48 47 49 Loader::loadClass('HtmlUtil'); 48 return HtmlUtil::getSelector_Countries ($name, $selectedValue, $defaultValue, $defaultText, $ submit, $disabled, $multipleSize);50 return HtmlUtil::getSelector_Countries ($name, $selectedValue, $defaultValue, $defaultText, $allValue, $allText, $submit, $disabled, $multipleSize); 49 51 }
