From b895b0fb911e7e3fd8d5ab8f0221a4d827ec71da Mon Sep 17 00:00:00 2001 From: sheyi dell Date: Tue, 8 Jul 2014 11:40:47 +0500 Subject: [PATCH] update:set demos and autodeploy --- .gitignore | 16 + autodeploy.php | 4 + config/functions.php | 29 + config/higrid_demo.csv | 21 + config/markdownextra.php | 2932 +++++++++++++++++ example.php | 81 +- example/config.php | 4 +- index.html | 117 - index.php | 141 + js/grid.common.js | 670 ---- js/i18n/grid.locale-ar.js | 127 - js/i18n/grid.locale-bg.js | 133 - js/i18n/grid.locale-bg1251.js | 133 - js/i18n/grid.locale-cat.js | 129 - js/i18n/grid.locale-cn.js | 133 - js/i18n/grid.locale-cs.js | 129 - js/i18n/grid.locale-da.js | 129 - js/i18n/grid.locale-de.js | 172 - js/i18n/grid.locale-dk.js | 128 - js/i18n/grid.locale-el.js | 127 - js/i18n/grid.locale-en.js | 169 - js/i18n/grid.locale-es.js | 129 - js/i18n/grid.locale-fa.js | 146 - js/i18n/grid.locale-fi.js | 130 - js/i18n/grid.locale-fr.js | 127 - js/i18n/grid.locale-gl.js | 127 - js/i18n/grid.locale-he.js | 128 - js/i18n/grid.locale-hr.js | 129 - js/i18n/grid.locale-hr1250.js | 129 - js/i18n/grid.locale-hu.js | 130 - js/i18n/grid.locale-is.js | 127 - js/i18n/grid.locale-it.js | 1 - js/i18n/grid.locale-ja.js | 156 - js/i18n/grid.locale-kr.js | 129 - js/i18n/grid.locale-lt.js | 129 - js/i18n/grid.locale-mne.js | 129 - js/i18n/grid.locale-nl.js | 149 - js/i18n/grid.locale-no.js | 1 - js/i18n/grid.locale-pl.js | 133 - js/i18n/grid.locale-pt-br.js | 131 - js/i18n/grid.locale-pt.js | 126 - js/i18n/grid.locale-ro.js | 140 - js/i18n/grid.locale-ru.js | 128 - js/i18n/grid.locale-sk.js | 128 - js/i18n/grid.locale-sr-latin.js | 129 - js/i18n/grid.locale-sr.js | 129 - js/i18n/grid.locale-sv.js | 128 - js/i18n/grid.locale-th.js | 129 - js/i18n/grid.locale-tr.js | 127 - js/i18n/grid.locale-tw.js | 130 - js/i18n/grid.locale-ua.js | 128 - js/jqDnR.js | 69 - js/jqModal.js | 69 - js/jquery-ui-custom.min.js | 125 - js/jquery.cookie.js | 10 - js/jquery.form.js | 919 ------ js/jquery.jqChart.min.js | 304 -- js/jquery.jqGrid.min.js | 517 --- js/jquery.jqScheduler.min.js | 259 -- js/jquery.js | 2 - js/modernizr-2.0.6.js | 1116 ------- js/ui.multiselect.js | 314 -- themes/dark-blue.js | 170 - themes/dark-green.js | 170 - themes/ellipsis-xbl.xml | 13 - themes/gray.js | 164 - themes/grid.js | 97 - themes/jquery.ui.tooltip.css | 24 - .../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 180 -> 0 bytes .../images/ui-bg_flat_55_fbec88_40x100.png | Bin 182 -> 0 bytes .../images/ui-bg_glass_75_d0e5f5_1x400.png | Bin 124 -> 0 bytes .../images/ui-bg_glass_85_dfeffc_1x400.png | Bin 123 -> 0 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 119 -> 0 bytes .../ui-bg_gloss-wave_55_5c9ccc_500x100.png | Bin 4033 -> 0 bytes .../ui-bg_inset-hard_100_f5f8f9_1x100.png | Bin 104 -> 0 bytes .../ui-bg_inset-hard_100_fcfdfd_1x100.png | Bin 112 -> 0 bytes .../images/ui-icons_217bc0_256x240.png | Bin 4369 -> 0 bytes .../images/ui-icons_2e83ff_256x240.png | Bin 4369 -> 0 bytes .../images/ui-icons_469bdd_256x240.png | Bin 4369 -> 0 bytes .../images/ui-icons_6da8d5_256x240.png | Bin 4369 -> 0 bytes .../images/ui-icons_cd0a0a_256x240.png | Bin 4369 -> 0 bytes .../images/ui-icons_d8e7f3_256x240.png | Bin 4369 -> 0 bytes .../images/ui-icons_f9bd01_256x240.png | Bin 4369 -> 0 bytes themes/redmond/jquery-ui-custom.css | 568 ---- themes/ui-anim_basic_16x16_2.gif | Bin 1459 -> 0 bytes themes/ui.jqform.css | 3 - themes/ui.jqgrid.css | 144 - themes/ui.jqscheduler.css | 637 ---- themes/ui.multiselect.css | 30 - 89 files changed, 3178 insertions(+), 11752 deletions(-) create mode 100644 .gitignore create mode 100644 autodeploy.php create mode 100644 config/functions.php create mode 100644 config/higrid_demo.csv create mode 100644 config/markdownextra.php delete mode 100644 index.html create mode 100644 index.php delete mode 100644 js/grid.common.js delete mode 100644 js/i18n/grid.locale-ar.js delete mode 100644 js/i18n/grid.locale-bg.js delete mode 100644 js/i18n/grid.locale-bg1251.js delete mode 100644 js/i18n/grid.locale-cat.js delete mode 100644 js/i18n/grid.locale-cn.js delete mode 100644 js/i18n/grid.locale-cs.js delete mode 100644 js/i18n/grid.locale-da.js delete mode 100644 js/i18n/grid.locale-de.js delete mode 100644 js/i18n/grid.locale-dk.js delete mode 100644 js/i18n/grid.locale-el.js delete mode 100644 js/i18n/grid.locale-en.js delete mode 100644 js/i18n/grid.locale-es.js delete mode 100644 js/i18n/grid.locale-fa.js delete mode 100644 js/i18n/grid.locale-fi.js delete mode 100644 js/i18n/grid.locale-fr.js delete mode 100644 js/i18n/grid.locale-gl.js delete mode 100644 js/i18n/grid.locale-he.js delete mode 100644 js/i18n/grid.locale-hr.js delete mode 100644 js/i18n/grid.locale-hr1250.js delete mode 100644 js/i18n/grid.locale-hu.js delete mode 100644 js/i18n/grid.locale-is.js delete mode 100644 js/i18n/grid.locale-it.js delete mode 100644 js/i18n/grid.locale-ja.js delete mode 100644 js/i18n/grid.locale-kr.js delete mode 100644 js/i18n/grid.locale-lt.js delete mode 100644 js/i18n/grid.locale-mne.js delete mode 100644 js/i18n/grid.locale-nl.js delete mode 100644 js/i18n/grid.locale-no.js delete mode 100644 js/i18n/grid.locale-pl.js delete mode 100644 js/i18n/grid.locale-pt-br.js delete mode 100644 js/i18n/grid.locale-pt.js delete mode 100644 js/i18n/grid.locale-ro.js delete mode 100644 js/i18n/grid.locale-ru.js delete mode 100644 js/i18n/grid.locale-sk.js delete mode 100644 js/i18n/grid.locale-sr-latin.js delete mode 100644 js/i18n/grid.locale-sr.js delete mode 100644 js/i18n/grid.locale-sv.js delete mode 100644 js/i18n/grid.locale-th.js delete mode 100644 js/i18n/grid.locale-tr.js delete mode 100644 js/i18n/grid.locale-tw.js delete mode 100644 js/i18n/grid.locale-ua.js delete mode 100644 js/jqDnR.js delete mode 100644 js/jqModal.js delete mode 100644 js/jquery-ui-custom.min.js delete mode 100644 js/jquery.cookie.js delete mode 100644 js/jquery.form.js delete mode 100644 js/jquery.jqChart.min.js delete mode 100644 js/jquery.jqGrid.min.js delete mode 100644 js/jquery.jqScheduler.min.js delete mode 100644 js/jquery.js delete mode 100644 js/modernizr-2.0.6.js delete mode 100644 js/ui.multiselect.js delete mode 100644 themes/dark-blue.js delete mode 100644 themes/dark-green.js delete mode 100644 themes/ellipsis-xbl.xml delete mode 100644 themes/gray.js delete mode 100644 themes/grid.js delete mode 100644 themes/jquery.ui.tooltip.css delete mode 100644 themes/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png delete mode 100644 themes/redmond/images/ui-bg_flat_55_fbec88_40x100.png delete mode 100644 themes/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png delete mode 100644 themes/redmond/images/ui-bg_glass_85_dfeffc_1x400.png delete mode 100644 themes/redmond/images/ui-bg_glass_95_fef1ec_1x400.png delete mode 100644 themes/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png delete mode 100644 themes/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png delete mode 100644 themes/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png delete mode 100644 themes/redmond/images/ui-icons_217bc0_256x240.png delete mode 100644 themes/redmond/images/ui-icons_2e83ff_256x240.png delete mode 100644 themes/redmond/images/ui-icons_469bdd_256x240.png delete mode 100644 themes/redmond/images/ui-icons_6da8d5_256x240.png delete mode 100644 themes/redmond/images/ui-icons_cd0a0a_256x240.png delete mode 100644 themes/redmond/images/ui-icons_d8e7f3_256x240.png delete mode 100644 themes/redmond/images/ui-icons_f9bd01_256x240.png delete mode 100644 themes/redmond/jquery-ui-custom.css delete mode 100644 themes/ui-anim_basic_16x16_2.gif delete mode 100644 themes/ui.jqform.css delete mode 100644 themes/ui.jqgrid.css delete mode 100644 themes/ui.jqscheduler.css delete mode 100644 themes/ui.multiselect.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b745365 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +###################### + +##自动部署日志文件 +auto.log +##higrid数据库配置文件 +config/data.php \ No newline at end of file diff --git a/autodeploy.php b/autodeploy.php new file mode 100644 index 0000000..9f2f2e7 --- /dev/null +++ b/autodeploy.php @@ -0,0 +1,4 @@ +'.$a.'在线演示'; +} diff --git a/config/higrid_demo.csv b/config/higrid_demo.csv new file mode 100644 index 0000000..9e73f99 --- /dev/null +++ b/config/higrid_demo.csv @@ -0,0 +1,21 @@ +demo,page,comment +产品演示,products,用在网页上展示产品价格 +自定义数据,products_customformat,展示产品价格浮动 +筛选状态,testplan,用做办公系统 +表头合并,chanzhi,暂无描述 +常用操作,letter,暂无描述 +导出excel,excel,暂无描述 +自定义按钮,custom_button,暂无描述 +自定义类型,format,暂无描述 +长表格,custom,暂无描述 +子表格,subgrid,暂无描述 +分组表格,groupingbasic,暂无描述 +分组表头,groupinghead1,暂无描述 +分组表头,groupinghead2,暂无描述 +两个分组,groupingtwo,暂无描述 +两分组,groupingtwosum,暂无描述 +表头分组求和,groupingtwosumheader,暂无描述 +从右往左,rtl,暂无描述 +汇总,footer,暂无描述 +日期选择器,datepicker,暂无描述 +工具栏自动完成,autocomplete_toolbar,暂无描述 diff --git a/config/markdownextra.php b/config/markdownextra.php new file mode 100644 index 0000000..08e1cd0 --- /dev/null +++ b/config/markdownextra.php @@ -0,0 +1,2932 @@ + +# +# Original Markdown +# Copyright (c) 2004-2006 John Gruber +# +# + + +define( 'MARKDOWN_VERSION', "1.0.1o" ); # Sun 8 Jan 2012 +define( 'MARKDOWNEXTRA_VERSION', "1.2.5" ); # Sun 8 Jan 2012 + + +# +# Global default settings: +# + +# Change to ">" for HTML output +@define( 'MARKDOWN_EMPTY_ELEMENT_SUFFIX', " />"); + +# Define the width of a tab for code blocks. +@define( 'MARKDOWN_TAB_WIDTH', 4 ); + +# Optional title attribute for footnote links and backlinks. +@define( 'MARKDOWN_FN_LINK_TITLE', "" ); +@define( 'MARKDOWN_FN_BACKLINK_TITLE', "" ); + +# Optional class attribute for footnote links and backlinks. +@define( 'MARKDOWN_FN_LINK_CLASS', "" ); +@define( 'MARKDOWN_FN_BACKLINK_CLASS', "" ); + + +# +# WordPress settings: +# + +# Change to false to remove Markdown from posts and/or comments. +@define( 'MARKDOWN_WP_POSTS', true ); +@define( 'MARKDOWN_WP_COMMENTS', true ); + + + +### Standard Function Interface ### + +@define( 'MARKDOWN_PARSER_CLASS', 'MarkdownExtra_Parser' ); + +function Markdown($text) { +# +# Initialize the parser and return the result of its transform method. +# + # Setup static parser variable. + static $parser; + if (!isset($parser)) { + $parser_class = MARKDOWN_PARSER_CLASS; + $parser = new $parser_class; + } + + # Transform text using parser. + return $parser->transform($text); +} + + +### WordPress Plugin Interface ### + +/* +Plugin Name: Markdown Extra +Plugin URI: http://michelf.com/projects/php-markdown/ +Description: Markdown syntax allows you to write using an easy-to-read, easy-to-write plain text format. Based on the original Perl version by John Gruber. More... +Version: 1.2.5 +Author: Michel Fortin +Author URI: http://michelf.com/ +*/ + +if (isset($wp_version)) { + # More details about how it works here: + # + + # Post content and excerpts + # - Remove WordPress paragraph generator. + # - Run Markdown on excerpt, then remove all tags. + # - Add paragraph tag around the excerpt, but remove it for the excerpt rss. + if (MARKDOWN_WP_POSTS) { + remove_filter('the_content', 'wpautop'); + remove_filter('the_content_rss', 'wpautop'); + remove_filter('the_excerpt', 'wpautop'); + add_filter('the_content', 'mdwp_MarkdownPost', 6); + add_filter('the_content_rss', 'mdwp_MarkdownPost', 6); + add_filter('get_the_excerpt', 'mdwp_MarkdownPost', 6); + add_filter('get_the_excerpt', 'trim', 7); + add_filter('the_excerpt', 'mdwp_add_p'); + add_filter('the_excerpt_rss', 'mdwp_strip_p'); + + remove_filter('content_save_pre', 'balanceTags', 50); + remove_filter('excerpt_save_pre', 'balanceTags', 50); + add_filter('the_content', 'balanceTags', 50); + add_filter('get_the_excerpt', 'balanceTags', 9); + } + + # Add a footnote id prefix to posts when inside a loop. + function mdwp_MarkdownPost($text) { + static $parser; + if (!$parser) { + $parser_class = MARKDOWN_PARSER_CLASS; + $parser = new $parser_class; + } + if (is_single() || is_page() || is_feed()) { + $parser->fn_id_prefix = ""; + } else { + $parser->fn_id_prefix = get_the_ID() . "."; + } + return $parser->transform($text); + } + + # Comments + # - Remove WordPress paragraph generator. + # - Remove WordPress auto-link generator. + # - Scramble important tags before passing them to the kses filter. + # - Run Markdown on excerpt then remove paragraph tags. + if (MARKDOWN_WP_COMMENTS) { + remove_filter('comment_text', 'wpautop', 30); + remove_filter('comment_text', 'make_clickable'); + add_filter('pre_comment_content', 'Markdown', 6); + add_filter('pre_comment_content', 'mdwp_hide_tags', 8); + add_filter('pre_comment_content', 'mdwp_show_tags', 12); + add_filter('get_comment_text', 'Markdown', 6); + add_filter('get_comment_excerpt', 'Markdown', 6); + add_filter('get_comment_excerpt', 'mdwp_strip_p', 7); + + global $mdwp_hidden_tags, $mdwp_placeholders; + $mdwp_hidden_tags = explode(' ', + '

 
  • '); + $mdwp_placeholders = explode(' ', str_rot13( + 'pEj07ZbbBZ U1kqgh4w4p pre2zmeN6K QTi31t9pre ol0MP1jzJR '. + 'ML5IjmbRol ulANi1NsGY J7zRLJqPul liA8ctl16T K9nhooUHli')); + } + + function mdwp_add_p($text) { + if (!preg_match('{^$|^<(p|ul|ol|dl|pre|blockquote)>}i', $text)) { + $text = '

    '.$text.'

    '; + $text = preg_replace('{\n{2,}}', "

    \n\n

    ", $text); + } + return $text; + } + + function mdwp_strip_p($t) { return preg_replace('{}i', '', $t); } + + function mdwp_hide_tags($text) { + global $mdwp_hidden_tags, $mdwp_placeholders; + return str_replace($mdwp_hidden_tags, $mdwp_placeholders, $text); + } + function mdwp_show_tags($text) { + global $mdwp_hidden_tags, $mdwp_placeholders; + return str_replace($mdwp_placeholders, $mdwp_hidden_tags, $text); + } +} + + +### bBlog Plugin Info ### + +function identify_modifier_markdown() { + return array( + 'name' => 'markdown', + 'type' => 'modifier', + 'nicename' => 'PHP Markdown Extra', + 'description' => 'A text-to-HTML conversion tool for web writers', + 'authors' => 'Michel Fortin and John Gruber', + 'licence' => 'GPL', + 'version' => MARKDOWNEXTRA_VERSION, + 'help' => 'Markdown syntax allows you to write using an easy-to-read, easy-to-write plain text format. Based on the original Perl version by John Gruber. More...', + ); +} + + +### Smarty Modifier Interface ### + +function smarty_modifier_markdown($text) { + return Markdown($text); +} + + +### Textile Compatibility Mode ### + +# Rename this file to "classTextile.php" and it can replace Textile everywhere. + +if (strcasecmp(substr(__FILE__, -16), "classTextile.php") == 0) { + # Try to include PHP SmartyPants. Should be in the same directory. + @include_once 'smartypants.php'; + # Fake Textile class. It calls Markdown instead. + class Textile { + function TextileThis($text, $lite='', $encode='') { + if ($lite == '' && $encode == '') $text = Markdown($text); + if (function_exists('SmartyPants')) $text = SmartyPants($text); + return $text; + } + # Fake restricted version: restrictions are not supported for now. + function TextileRestricted($text, $lite='', $noimage='') { + return $this->TextileThis($text, $lite); + } + # Workaround to ensure compatibility with TextPattern 4.0.3. + function blockLite($text) { return $text; } + } +} + + + +# +# Markdown Parser Class +# + +class Markdown_Parser { + + # Regex to match balanced [brackets]. + # Needed to insert a maximum bracked depth while converting to PHP. + var $nested_brackets_depth = 6; + var $nested_brackets_re; + + var $nested_url_parenthesis_depth = 4; + var $nested_url_parenthesis_re; + + # Table of hash values for escaped characters: + var $escape_chars = '\`*_{}[]()>#+-.!'; + var $escape_chars_re; + + # Change to ">" for HTML output. + var $empty_element_suffix = MARKDOWN_EMPTY_ELEMENT_SUFFIX; + var $tab_width = MARKDOWN_TAB_WIDTH; + + # Change to `true` to disallow markup or entities. + var $no_markup = false; + var $no_entities = false; + + # Predefined urls and titles for reference links and images. + var $predef_urls = array(); + var $predef_titles = array(); + + + function Markdown_Parser() { + # + # Constructor function. Initialize appropriate member variables. + # + $this->_initDetab(); + $this->prepareItalicsAndBold(); + + $this->nested_brackets_re = + str_repeat('(?>[^\[\]]+|\[', $this->nested_brackets_depth). + str_repeat('\])*', $this->nested_brackets_depth); + + $this->nested_url_parenthesis_re = + str_repeat('(?>[^()\s]+|\(', $this->nested_url_parenthesis_depth). + str_repeat('(?>\)))*', $this->nested_url_parenthesis_depth); + + $this->escape_chars_re = '['.preg_quote($this->escape_chars).']'; + + # Sort document, block, and span gamut in ascendent priority order. + asort($this->document_gamut); + asort($this->block_gamut); + asort($this->span_gamut); + } + + + # Internal hashes used during transformation. + var $urls = array(); + var $titles = array(); + var $html_hashes = array(); + + # Status flag to avoid invalid nesting. + var $in_anchor = false; + + + function setup() { + # + # Called before the transformation process starts to setup parser + # states. + # + # Clear global hashes. + $this->urls = $this->predef_urls; + $this->titles = $this->predef_titles; + $this->html_hashes = array(); + + $in_anchor = false; + } + + function teardown() { + # + # Called after the transformation process to clear any variable + # which may be taking up memory unnecessarly. + # + $this->urls = array(); + $this->titles = array(); + $this->html_hashes = array(); + } + + + function transform($text) { + # + # Main function. Performs some preprocessing on the input text + # and pass it through the document gamut. + # + $this->setup(); + + # Remove UTF-8 BOM and marker character in input, if present. + $text = preg_replace('{^\xEF\xBB\xBF|\x1A}', '', $text); + + # Standardize line endings: + # DOS to Unix and Mac to Unix + $text = preg_replace('{\r\n?}', "\n", $text); + + # Make sure $text ends with a couple of newlines: + $text .= "\n\n"; + + # Convert all tabs to spaces. + $text = $this->detab($text); + + # Turn block-level HTML blocks into hash entries + $text = $this->hashHTMLBlocks($text); + + # Strip any lines consisting only of spaces and tabs. + # This makes subsequent regexen easier to write, because we can + # match consecutive blank lines with /\n+/ instead of something + # contorted like /[ ]*\n+/ . + $text = preg_replace('/^[ ]+$/m', '', $text); + + # Run document gamut methods. + foreach ($this->document_gamut as $method => $priority) { + $text = $this->$method($text); + } + + $this->teardown(); + + return $text . "\n"; + } + + var $document_gamut = array( + # Strip link definitions, store in hashes. + "stripLinkDefinitions" => 20, + + "runBasicBlockGamut" => 30, + ); + + + function stripLinkDefinitions($text) { + # + # Strips link definitions from text, stores the URLs and titles in + # hash references. + # + $less_than_tab = $this->tab_width - 1; + + # Link defs are in the form: ^[id]: url "optional title" + $text = preg_replace_callback('{ + ^[ ]{0,'.$less_than_tab.'}\[(.+)\][ ]?: # id = $1 + [ ]* + \n? # maybe *one* newline + [ ]* + (?: + <(.+?)> # url = $2 + | + (\S+?) # url = $3 + ) + [ ]* + \n? # maybe one newline + [ ]* + (?: + (?<=\s) # lookbehind for whitespace + ["(] + (.*?) # title = $4 + [")] + [ ]* + )? # title is optional + (?:\n+|\Z) + }xm', + array(&$this, '_stripLinkDefinitions_callback'), + $text); + return $text; + } + function _stripLinkDefinitions_callback($matches) { + $link_id = strtolower($matches[1]); + $url = $matches[2] == '' ? $matches[3] : $matches[2]; + $this->urls[$link_id] = $url; + $this->titles[$link_id] =& $matches[4]; + return ''; # String that will replace the block + } + + + function hashHTMLBlocks($text) { + if ($this->no_markup) return $text; + + $less_than_tab = $this->tab_width - 1; + + # Hashify HTML blocks: + # We only want to do this for block-level HTML tags, such as headers, + # lists, and tables. That's because we still want to wrap

    s around + # "paragraphs" that are wrapped in non-block-level tags, such as anchors, + # phrase emphasis, and spans. The list of tags we're looking for is + # hard-coded: + # + # * List "a" is made of tags which can be both inline or block-level. + # These will be treated block-level when the start tag is alone on + # its line, otherwise they're not matched here and will be taken as + # inline later. + # * List "b" is made of tags which are always block-level; + # + $block_tags_a_re = 'ins|del'; + $block_tags_b_re = 'p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|address|'. + 'script|noscript|form|fieldset|iframe|math'; + + # Regular expression for the content of a block tag. + $nested_tags_level = 4; + $attr = ' + (?> # optional tag attributes + \s # starts with whitespace + (?> + [^>"/]+ # text outside quotes + | + /+(?!>) # slash not followed by ">" + | + "[^"]*" # text inside double quotes (tolerate ">") + | + \'[^\']*\' # text inside single quotes (tolerate ">") + )* + )? + '; + $content = + str_repeat(' + (?> + [^<]+ # content without tag + | + <\2 # nested opening tag + '.$attr.' # attributes + (?> + /> + | + >', $nested_tags_level). # end of opening tag + '.*?'. # last level nested tag content + str_repeat(' + # closing nested tag + ) + | + <(?!/\2\s*> # other tags with a different name + ) + )*', + $nested_tags_level); + $content2 = str_replace('\2', '\3', $content); + + # First, look for nested blocks, e.g.: + #

    + #
    + # tags for inner block must be indented. + #
    + #
    + # + # The outermost tags must start at the left margin for this to match, and + # the inner nested divs must be indented. + # We need to do this before the next, more liberal match, because the next + # match will start at the first `
    ` and stop at the first `
    `. + $text = preg_replace_callback('{(?> + (?> + (?<=\n\n) # Starting after a blank line + | # or + \A\n? # the beginning of the doc + ) + ( # save in $1 + + # Match from `\n` to `\n`, handling nested tags + # in between. + + [ ]{0,'.$less_than_tab.'} + <('.$block_tags_b_re.')# start tag = $2 + '.$attr.'> # attributes followed by > and \n + '.$content.' # content, support nesting + # the matching end tag + [ ]* # trailing spaces/tabs + (?=\n+|\Z) # followed by a newline or end of document + + | # Special version for tags of group a. + + [ ]{0,'.$less_than_tab.'} + <('.$block_tags_a_re.')# start tag = $3 + '.$attr.'>[ ]*\n # attributes followed by > + '.$content2.' # content, support nesting + # the matching end tag + [ ]* # trailing spaces/tabs + (?=\n+|\Z) # followed by a newline or end of document + + | # Special case just for
    . It was easier to make a special + # case than to make the other regex more complicated. + + [ ]{0,'.$less_than_tab.'} + <(hr) # start tag = $2 + '.$attr.' # attributes + /?> # the matching end tag + [ ]* + (?=\n{2,}|\Z) # followed by a blank line or end of document + + | # Special case for standalone HTML comments: + + [ ]{0,'.$less_than_tab.'} + (?s: + + ) + [ ]* + (?=\n{2,}|\Z) # followed by a blank line or end of document + + | # PHP and ASP-style processor instructions ( + ) + [ ]* + (?=\n{2,}|\Z) # followed by a blank line or end of document + + ) + )}Sxmi', + array(&$this, '_hashHTMLBlocks_callback'), + $text); + + return $text; + } + function _hashHTMLBlocks_callback($matches) { + $text = $matches[1]; + $key = $this->hashBlock($text); + return "\n\n$key\n\n"; + } + + + function hashPart($text, $boundary = 'X') { + # + # Called whenever a tag must be hashed when a function insert an atomic + # element in the text stream. Passing $text to through this function gives + # a unique text-token which will be reverted back when calling unhash. + # + # The $boundary argument specify what character should be used to surround + # the token. By convension, "B" is used for block elements that needs not + # to be wrapped into paragraph tags at the end, ":" is used for elements + # that are word separators and "X" is used in the general case. + # + # Swap back any tag hash found in $text so we do not have to `unhash` + # multiple times at the end. + $text = $this->unhash($text); + + # Then hash the block. + static $i = 0; + $key = "$boundary\x1A" . ++$i . $boundary; + $this->html_hashes[$key] = $text; + return $key; # String that will replace the tag. + } + + + function hashBlock($text) { + # + # Shortcut function for hashPart with block-level boundaries. + # + return $this->hashPart($text, 'B'); + } + + + var $block_gamut = array( + # + # These are all the transformations that form block-level + # tags like paragraphs, headers, and list items. + # + "doHeaders" => 10, + "doHorizontalRules" => 20, + + "doLists" => 40, + "doCodeBlocks" => 50, + "doBlockQuotes" => 60, + ); + + function runBlockGamut($text) { + # + # Run block gamut tranformations. + # + # We need to escape raw HTML in Markdown source before doing anything + # else. This need to be done for each block, and not only at the + # begining in the Markdown function since hashed blocks can be part of + # list items and could have been indented. Indented blocks would have + # been seen as a code block in a previous pass of hashHTMLBlocks. + $text = $this->hashHTMLBlocks($text); + + return $this->runBasicBlockGamut($text); + } + + function runBasicBlockGamut($text) { + # + # Run block gamut tranformations, without hashing HTML blocks. This is + # useful when HTML blocks are known to be already hashed, like in the first + # whole-document pass. + # + foreach ($this->block_gamut as $method => $priority) { + $text = $this->$method($text); + } + + # Finally form paragraph and restore hashed blocks. + $text = $this->formParagraphs($text); + + return $text; + } + + + function doHorizontalRules($text) { + # Do Horizontal Rules: + return preg_replace( + '{ + ^[ ]{0,3} # Leading space + ([-*_]) # $1: First marker + (?> # Repeated marker group + [ ]{0,2} # Zero, one, or two spaces. + \1 # Marker character + ){2,} # Group repeated at least twice + [ ]* # Tailing spaces + $ # End of line. + }mx', + "\n".$this->hashBlock("empty_element_suffix")."\n", + $text); + } + + + var $span_gamut = array( + # + # These are all the transformations that occur *within* block-level + # tags like paragraphs, headers, and list items. + # + # Process character escapes, code spans, and inline HTML + # in one shot. + "parseSpan" => -30, + + # Process anchor and image tags. Images must come first, + # because ![foo][f] looks like an anchor. + "doImages" => 10, + "doAnchors" => 20, + + # Make links out of things like `` + # Must come after doAnchors, because you can use < and > + # delimiters in inline links like [this](). + "doAutoLinks" => 30, + "encodeAmpsAndAngles" => 40, + + "doItalicsAndBold" => 50, + "doHardBreaks" => 60, + ); + + function runSpanGamut($text) { + # + # Run span gamut tranformations. + # + foreach ($this->span_gamut as $method => $priority) { + $text = $this->$method($text); + } + + return $text; + } + + + function doHardBreaks($text) { + # Do hard breaks: + return preg_replace_callback('/ {2,}\n/', + array(&$this, '_doHardBreaks_callback'), $text); + } + function _doHardBreaks_callback($matches) { + return $this->hashPart("empty_element_suffix\n"); + } + + + function doAnchors($text) { + # + # Turn Markdown link shortcuts into XHTML tags. + # + if ($this->in_anchor) return $text; + $this->in_anchor = true; + + # + # First, handle reference-style links: [link text] [id] + # + $text = preg_replace_callback('{ + ( # wrap whole match in $1 + \[ + ('.$this->nested_brackets_re.') # link text = $2 + \] + + [ ]? # one optional space + (?:\n[ ]*)? # one optional newline followed by spaces + + \[ + (.*?) # id = $3 + \] + ) + }xs', + array(&$this, '_doAnchors_reference_callback'), $text); + + # + # Next, inline-style links: [link text](url "optional title") + # + $text = preg_replace_callback('{ + ( # wrap whole match in $1 + \[ + ('.$this->nested_brackets_re.') # link text = $2 + \] + \( # literal paren + [ \n]* + (?: + <(.+?)> # href = $3 + | + ('.$this->nested_url_parenthesis_re.') # href = $4 + ) + [ \n]* + ( # $5 + ([\'"]) # quote char = $6 + (.*?) # Title = $7 + \6 # matching quote + [ \n]* # ignore any spaces/tabs between closing quote and ) + )? # title is optional + \) + ) + }xs', + array(&$this, '_doAnchors_inline_callback'), $text); + + # + # Last, handle reference-style shortcuts: [link text] + # These must come last in case you've also got [link text][1] + # or [link text](/foo) + # + $text = preg_replace_callback('{ + ( # wrap whole match in $1 + \[ + ([^\[\]]+) # link text = $2; can\'t contain [ or ] + \] + ) + }xs', + array(&$this, '_doAnchors_reference_callback'), $text); + + $this->in_anchor = false; + return $text; + } + function _doAnchors_reference_callback($matches) { + $whole_match = $matches[1]; + $link_text = $matches[2]; + $link_id =& $matches[3]; + + if ($link_id == "") { + # for shortcut links like [this][] or [this]. + $link_id = $link_text; + } + + # lower-case and turn embedded newlines into spaces + $link_id = strtolower($link_id); + $link_id = preg_replace('{[ ]?\n}', ' ', $link_id); + + if (isset($this->urls[$link_id])) { + $url = $this->urls[$link_id]; + $url = $this->encodeAttribute($url); + + $result = "titles[$link_id] ) ) { + $title = $this->titles[$link_id]; + $title = $this->encodeAttribute($title); + $result .= " title=\"$title\""; + } + + $link_text = $this->runSpanGamut($link_text); + $result .= ">$link_text"; + $result = $this->hashPart($result); + } + else { + $result = $whole_match; + } + return $result; + } + function _doAnchors_inline_callback($matches) { + $whole_match = $matches[1]; + $link_text = $this->runSpanGamut($matches[2]); + $url = $matches[3] == '' ? $matches[4] : $matches[3]; + $title =& $matches[7]; + + $url = $this->encodeAttribute($url); + + $result = "encodeAttribute($title); + $result .= " title=\"$title\""; + } + + $link_text = $this->runSpanGamut($link_text); + $result .= ">$link_text"; + + return $this->hashPart($result); + } + + + function doImages($text) { + # + # Turn Markdown image shortcuts into tags. + # + # + # First, handle reference-style labeled images: ![alt text][id] + # + $text = preg_replace_callback('{ + ( # wrap whole match in $1 + !\[ + ('.$this->nested_brackets_re.') # alt text = $2 + \] + + [ ]? # one optional space + (?:\n[ ]*)? # one optional newline followed by spaces + + \[ + (.*?) # id = $3 + \] + + ) + }xs', + array(&$this, '_doImages_reference_callback'), $text); + + # + # Next, handle inline images: ![alt text](url "optional title") + # Don't forget: encode * and _ + # + $text = preg_replace_callback('{ + ( # wrap whole match in $1 + !\[ + ('.$this->nested_brackets_re.') # alt text = $2 + \] + \s? # One optional whitespace character + \( # literal paren + [ \n]* + (?: + <(\S*)> # src url = $3 + | + ('.$this->nested_url_parenthesis_re.') # src url = $4 + ) + [ \n]* + ( # $5 + ([\'"]) # quote char = $6 + (.*?) # title = $7 + \6 # matching quote + [ \n]* + )? # title is optional + \) + ) + }xs', + array(&$this, '_doImages_inline_callback'), $text); + + return $text; + } + function _doImages_reference_callback($matches) { + $whole_match = $matches[1]; + $alt_text = $matches[2]; + $link_id = strtolower($matches[3]); + + if ($link_id == "") { + $link_id = strtolower($alt_text); # for shortcut links like ![this][]. + } + + $alt_text = $this->encodeAttribute($alt_text); + if (isset($this->urls[$link_id])) { + $url = $this->encodeAttribute($this->urls[$link_id]); + $result = "\"$alt_text\"";titles[$link_id])) { + $title = $this->titles[$link_id]; + $title = $this->encodeAttribute($title); + $result .= " title=\"$title\""; + } + $result .= $this->empty_element_suffix; + $result = $this->hashPart($result); + } + else { + # If there's no such link ID, leave intact: + $result = $whole_match; + } + + return $result; + } + function _doImages_inline_callback($matches) { + $whole_match = $matches[1]; + $alt_text = $matches[2]; + $url = $matches[3] == '' ? $matches[4] : $matches[3]; + $title =& $matches[7]; + + $alt_text = $this->encodeAttribute($alt_text); + $url = $this->encodeAttribute($url); + $result = "\"$alt_text\"";encodeAttribute($title); + $result .= " title=\"$title\""; # $title already quoted + } + $result .= $this->empty_element_suffix; + + return $this->hashPart($result); + } + + + function doHeaders($text) { + # Setext-style headers: + # Header 1 + # ======== + # + # Header 2 + # -------- + # + $text = preg_replace_callback('{ ^(.+?)[ ]*\n(=+|-+)[ ]*\n+ }mx', + array(&$this, '_doHeaders_callback_setext'), $text); + + # atx-style headers: + # # Header 1 + # ## Header 2 + # ## Header 2 with closing hashes ## + # ... + # ###### Header 6 + # + $text = preg_replace_callback('{ + ^(\#{1,6}) # $1 = string of #\'s + [ ]* + (.+?) # $2 = Header text + [ ]* + \#* # optional closing #\'s (not counted) + \n+ + }xm', + array(&$this, '_doHeaders_callback_atx'), $text); + + return $text; + } + function _doHeaders_callback_setext($matches) { + # Terrible hack to check we haven't found an empty list item. + if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1])) + return $matches[0]; + + $level = $matches[2]{0} == '=' ? 1 : 2; + $block = "".$this->runSpanGamut($matches[1]).""; + return "\n" . $this->hashBlock($block) . "\n\n"; + } + function _doHeaders_callback_atx($matches) { + $level = strlen($matches[1]); + $block = "".$this->runSpanGamut($matches[2]).""; + return "\n" . $this->hashBlock($block) . "\n\n"; + } + + + function doLists($text) { + # + # Form HTML ordered (numbered) and unordered (bulleted) lists. + # + $less_than_tab = $this->tab_width - 1; + + # Re-usable patterns to match list item bullets and number markers: + $marker_ul_re = '[*+-]'; + $marker_ol_re = '\d+[\.]'; + $marker_any_re = "(?:$marker_ul_re|$marker_ol_re)"; + + $markers_relist = array( + $marker_ul_re => $marker_ol_re, + $marker_ol_re => $marker_ul_re, + ); + + foreach ($markers_relist as $marker_re => $other_marker_re) { + # Re-usable pattern to match any entirel ul or ol list: + $whole_list_re = ' + ( # $1 = whole list + ( # $2 + ([ ]{0,'.$less_than_tab.'}) # $3 = number of spaces + ('.$marker_re.') # $4 = first list item marker + [ ]+ + ) + (?s:.+?) + ( # $5 + \z + | + \n{2,} + (?=\S) + (?! # Negative lookahead for another list item marker + [ ]* + '.$marker_re.'[ ]+ + ) + | + (?= # Lookahead for another kind of list + \n + \3 # Must have the same indentation + '.$other_marker_re.'[ ]+ + ) + ) + ) + '; // mx + + # We use a different prefix before nested lists than top-level lists. + # See extended comment in _ProcessListItems(). + + if ($this->list_level) { + $text = preg_replace_callback('{ + ^ + '.$whole_list_re.' + }mx', + array(&$this, '_doLists_callback'), $text); + } + else { + $text = preg_replace_callback('{ + (?:(?<=\n)\n|\A\n?) # Must eat the newline + '.$whole_list_re.' + }mx', + array(&$this, '_doLists_callback'), $text); + } + } + + return $text; + } + function _doLists_callback($matches) { + # Re-usable patterns to match list item bullets and number markers: + $marker_ul_re = '[*+-]'; + $marker_ol_re = '\d+[\.]'; + $marker_any_re = "(?:$marker_ul_re|$marker_ol_re)"; + + $list = $matches[1]; + $list_type = preg_match("/$marker_ul_re/", $matches[4]) ? "ul" : "ol"; + + $marker_any_re = ( $list_type == "ul" ? $marker_ul_re : $marker_ol_re ); + + $list .= "\n"; + $result = $this->processListItems($list, $marker_any_re); + + $result = $this->hashBlock("<$list_type>\n" . $result . ""); + return "\n". $result ."\n\n"; + } + + var $list_level = 0; + + function processListItems($list_str, $marker_any_re) { + # + # Process the contents of a single ordered or unordered list, splitting it + # into individual list items. + # + # The $this->list_level global keeps track of when we're inside a list. + # Each time we enter a list, we increment it; when we leave a list, + # we decrement. If it's zero, we're not in a list anymore. + # + # We do this because when we're not inside a list, we want to treat + # something like this: + # + # I recommend upgrading to version + # 8. Oops, now this line is treated + # as a sub-list. + # + # As a single paragraph, despite the fact that the second line starts + # with a digit-period-space sequence. + # + # Whereas when we're inside a list (or sub-list), that line will be + # treated as the start of a sub-list. What a kludge, huh? This is + # an aspect of Markdown's syntax that's hard to parse perfectly + # without resorting to mind-reading. Perhaps the solution is to + # change the syntax rules such that sub-lists must start with a + # starting cardinal number; e.g. "1." or "a.". + + $this->list_level++; + + # trim trailing blank lines: + $list_str = preg_replace("/\n{2,}\\z/", "\n", $list_str); + + $list_str = preg_replace_callback('{ + (\n)? # leading line = $1 + (^[ ]*) # leading whitespace = $2 + ('.$marker_any_re.' # list marker and space = $3 + (?:[ ]+|(?=\n)) # space only required if item is not empty + ) + ((?s:.*?)) # list item text = $4 + (?:(\n+(?=\n))|\n) # tailing blank line = $5 + (?= \n* (\z | \2 ('.$marker_any_re.') (?:[ ]+|(?=\n)))) + }xm', + array(&$this, '_processListItems_callback'), $list_str); + + $this->list_level--; + return $list_str; + } + function _processListItems_callback($matches) { + $item = $matches[4]; + $leading_line =& $matches[1]; + $leading_space =& $matches[2]; + $marker_space = $matches[3]; + $tailing_blank_line =& $matches[5]; + + if ($leading_line || $tailing_blank_line || + preg_match('/\n{2,}/', $item)) + { + # Replace marker with the appropriate whitespace indentation + $item = $leading_space . str_repeat(' ', strlen($marker_space)) . $item; + $item = $this->runBlockGamut($this->outdent($item)."\n"); + } + else { + # Recursion for sub-lists: + $item = $this->doLists($this->outdent($item)); + $item = preg_replace('/\n+$/', '', $item); + $item = $this->runSpanGamut($item); + } + + return "
  • " . $item . "
  • \n"; + } + + + function doCodeBlocks($text) { + # + # Process Markdown `
    ` blocks.
    +	#
    +		$text = preg_replace_callback('{
    +				(?:\n\n|\A\n?)
    +				(	            # $1 = the code block -- one or more lines, starting with a space/tab
    +				  (?>
    +					[ ]{'.$this->tab_width.'}  # Lines must start with a tab or a tab-width of spaces
    +					.*\n+
    +				  )+
    +				)
    +				((?=^[ ]{0,'.$this->tab_width.'}\S)|\Z)	# Lookahead for non-space at line-start, or end of doc
    +			}xm',
    +			array(&$this, '_doCodeBlocks_callback'), $text);
    +
    +		return $text;
    +	}
    +	function _doCodeBlocks_callback($matches) {
    +		$codeblock = $matches[1];
    +
    +		$codeblock = $this->outdent($codeblock);
    +		$codeblock = htmlspecialchars($codeblock, ENT_NOQUOTES);
    +
    +		# trim leading newlines and trailing newlines
    +		$codeblock = preg_replace('/\A\n+|\n+\z/', '', $codeblock);
    +
    +		$codeblock = "
    $codeblock\n
    "; + return "\n\n".$this->hashBlock($codeblock)."\n\n"; + } + + + function makeCodeSpan($code) { + # + # Create a code span markup for $code. Called from handleSpanToken. + # + $code = htmlspecialchars(trim($code), ENT_NOQUOTES); + return $this->hashPart("$code"); + } + + + var $em_relist = array( + '' => '(?:(? '(?<=\S|^)(? '(?<=\S|^)(? '(?:(? '(?<=\S|^)(? '(?<=\S|^)(? '(?:(? '(?<=\S|^)(? '(?<=\S|^)(?em_relist as $em => $em_re) { + foreach ($this->strong_relist as $strong => $strong_re) { + # Construct list of allowed token expressions. + $token_relist = array(); + if (isset($this->em_strong_relist["$em$strong"])) { + $token_relist[] = $this->em_strong_relist["$em$strong"]; + } + $token_relist[] = $em_re; + $token_relist[] = $strong_re; + + # Construct master expression from list. + $token_re = '{('. implode('|', $token_relist) .')}'; + $this->em_strong_prepared_relist["$em$strong"] = $token_re; + } + } + } + + function doItalicsAndBold($text) { + $token_stack = array(''); + $text_stack = array(''); + $em = ''; + $strong = ''; + $tree_char_em = false; + + while (1) { + # + # Get prepared regular expression for seraching emphasis tokens + # in current context. + # + $token_re = $this->em_strong_prepared_relist["$em$strong"]; + + # + # Each loop iteration search for the next emphasis token. + # Each token is then passed to handleSpanToken. + # + $parts = preg_split($token_re, $text, 2, PREG_SPLIT_DELIM_CAPTURE); + $text_stack[0] .= $parts[0]; + $token =& $parts[1]; + $text =& $parts[2]; + + if (empty($token)) { + # Reached end of text span: empty stack without emitting. + # any more emphasis. + while ($token_stack[0]) { + $text_stack[1] .= array_shift($token_stack); + $text_stack[0] .= array_shift($text_stack); + } + break; + } + + $token_len = strlen($token); + if ($tree_char_em) { + # Reached closing marker while inside a three-char emphasis. + if ($token_len == 3) { + # Three-char closing marker, close em and strong. + array_shift($token_stack); + $span = array_shift($text_stack); + $span = $this->runSpanGamut($span); + $span = "$span"; + $text_stack[0] .= $this->hashPart($span); + $em = ''; + $strong = ''; + } else { + # Other closing marker: close one em or strong and + # change current token state to match the other + $token_stack[0] = str_repeat($token{0}, 3-$token_len); + $tag = $token_len == 2 ? "strong" : "em"; + $span = $text_stack[0]; + $span = $this->runSpanGamut($span); + $span = "<$tag>$span"; + $text_stack[0] = $this->hashPart($span); + $$tag = ''; # $$tag stands for $em or $strong + } + $tree_char_em = false; + } else if ($token_len == 3) { + if ($em) { + # Reached closing marker for both em and strong. + # Closing strong marker: + for ($i = 0; $i < 2; ++$i) { + $shifted_token = array_shift($token_stack); + $tag = strlen($shifted_token) == 2 ? "strong" : "em"; + $span = array_shift($text_stack); + $span = $this->runSpanGamut($span); + $span = "<$tag>$span"; + $text_stack[0] .= $this->hashPart($span); + $$tag = ''; # $$tag stands for $em or $strong + } + } else { + # Reached opening three-char emphasis marker. Push on token + # stack; will be handled by the special condition above. + $em = $token{0}; + $strong = "$em$em"; + array_unshift($token_stack, $token); + array_unshift($text_stack, ''); + $tree_char_em = true; + } + } else if ($token_len == 2) { + if ($strong) { + # Unwind any dangling emphasis marker: + if (strlen($token_stack[0]) == 1) { + $text_stack[1] .= array_shift($token_stack); + $text_stack[0] .= array_shift($text_stack); + } + # Closing strong marker: + array_shift($token_stack); + $span = array_shift($text_stack); + $span = $this->runSpanGamut($span); + $span = "$span"; + $text_stack[0] .= $this->hashPart($span); + $strong = ''; + } else { + array_unshift($token_stack, $token); + array_unshift($text_stack, ''); + $strong = $token; + } + } else { + # Here $token_len == 1 + if ($em) { + if (strlen($token_stack[0]) == 1) { + # Closing emphasis marker: + array_shift($token_stack); + $span = array_shift($text_stack); + $span = $this->runSpanGamut($span); + $span = "$span"; + $text_stack[0] .= $this->hashPart($span); + $em = ''; + } else { + $text_stack[0] .= $token; + } + } else { + array_unshift($token_stack, $token); + array_unshift($text_stack, ''); + $em = $token; + } + } + } + return $text_stack[0]; + } + + + function doBlockQuotes($text) { + $text = preg_replace_callback('/ + ( # Wrap whole match in $1 + (?> + ^[ ]*>[ ]? # ">" at the start of a line + .+\n # rest of the first line + (.+\n)* # subsequent consecutive lines + \n* # blanks + )+ + ) + /xm', + array(&$this, '_doBlockQuotes_callback'), $text); + + return $text; + } + function _doBlockQuotes_callback($matches) { + $bq = $matches[1]; + # trim one level of quoting - trim whitespace-only lines + $bq = preg_replace('/^[ ]*>[ ]?|^[ ]+$/m', '', $bq); + $bq = $this->runBlockGamut($bq); # recurse + + $bq = preg_replace('/^/m', " ", $bq); + # These leading spaces cause problem with
     content, 
    +		# so we need to fix that:
    +		$bq = preg_replace_callback('{(\s*
    .+?
    )}sx', + array(&$this, '_doBlockQuotes_callback2'), $bq); + + return "\n". $this->hashBlock("
    \n$bq\n
    ")."\n\n"; + } + function _doBlockQuotes_callback2($matches) { + $pre = $matches[1]; + $pre = preg_replace('/^ /m', '', $pre); + return $pre; + } + + + function formParagraphs($text) { + # + # Params: + # $text - string to process with html

    tags + # + # Strip leading and trailing lines: + $text = preg_replace('/\A\n+|\n+\z/', '', $text); + + $grafs = preg_split('/\n{2,}/', $text, -1, PREG_SPLIT_NO_EMPTY); + + # + # Wrap

    tags and unhashify HTML blocks + # + foreach ($grafs as $key => $value) { + if (!preg_match('/^B\x1A[0-9]+B$/', $value)) { + # Is a paragraph. + $value = $this->runSpanGamut($value); + $value = preg_replace('/^([ ]*)/', "

    ", $value); + $value .= "

    "; + $grafs[$key] = $this->unhash($value); + } + else { + # Is a block. + # Modify elements of @grafs in-place... + $graf = $value; + $block = $this->html_hashes[$graf]; + $graf = $block; +// if (preg_match('{ +// \A +// ( # $1 =
    tag +//
    ]* +// \b +// markdown\s*=\s* ([\'"]) # $2 = attr quote char +// 1 +// \2 +// [^>]* +// > +// ) +// ( # $3 = contents +// .* +// ) +// (
    ) # $4 = closing tag +// \z +// }xs', $block, $matches)) +// { +// list(, $div_open, , $div_content, $div_close) = $matches; +// +// # We can't call Markdown(), because that resets the hash; +// # that initialization code should be pulled into its own sub, though. +// $div_content = $this->hashHTMLBlocks($div_content); +// +// # Run document gamut methods on the content. +// foreach ($this->document_gamut as $method => $priority) { +// $div_content = $this->$method($div_content); +// } +// +// $div_open = preg_replace( +// '{\smarkdown\s*=\s*([\'"]).+?\1}', '', $div_open); +// +// $graf = $div_open . "\n" . $div_content . "\n" . $div_close; +// } + $grafs[$key] = $graf; + } + } + + return implode("\n\n", $grafs); + } + + + function encodeAttribute($text) { + # + # Encode text for a double-quoted HTML attribute. This function + # is *not* suitable for attributes enclosed in single quotes. + # + $text = $this->encodeAmpsAndAngles($text); + $text = str_replace('"', '"', $text); + return $text; + } + + + function encodeAmpsAndAngles($text) { + # + # Smart processing for ampersands and angle brackets that need to + # be encoded. Valid character entities are left alone unless the + # no-entities mode is set. + # + if ($this->no_entities) { + $text = str_replace('&', '&', $text); + } else { + # Ampersand-encoding based entirely on Nat Irons's Amputator + # MT plugin: + $text = preg_replace('/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/', + '&', $text);; + } + # Encode remaining <'s + $text = str_replace('<', '<', $text); + + return $text; + } + + + function doAutoLinks($text) { + $text = preg_replace_callback('{<((https?|ftp|dict):[^\'">\s]+)>}i', + array(&$this, '_doAutoLinks_url_callback'), $text); + + # Email addresses: + $text = preg_replace_callback('{ + < + (?:mailto:)? + ( + (?: + [-!#$%&\'*+/=?^_`.{|}~\w\x80-\xFF]+ + | + ".*?" + ) + \@ + (?: + [-a-z0-9\x80-\xFF]+(\.[-a-z0-9\x80-\xFF]+)*\.[a-z]+ + | + \[[\d.a-fA-F:]+\] # IPv4 & IPv6 + ) + ) + > + }xi', + array(&$this, '_doAutoLinks_email_callback'), $text); + + return $text; + } + function _doAutoLinks_url_callback($matches) { + $url = $this->encodeAttribute($matches[1]); + $link = "$url"; + return $this->hashPart($link); + } + function _doAutoLinks_email_callback($matches) { + $address = $matches[1]; + $link = $this->encodeEmailAddress($address); + return $this->hashPart($link); + } + + + function encodeEmailAddress($addr) { + # + # Input: an email address, e.g. "foo@example.com" + # + # Output: the email address as a mailto link, with each character + # of the address encoded as either a decimal or hex entity, in + # the hopes of foiling most address harvesting spam bots. E.g.: + # + #

    foo@exampl + # e.com

    + # + # Based by a filter by Matthew Wickline, posted to BBEdit-Talk. + # With some optimizations by Milian Wolff. + # + $addr = "mailto:" . $addr; + $chars = preg_split('/(? $char) { + $ord = ord($char); + # Ignore non-ascii chars. + if ($ord < 128) { + $r = ($seed * (1 + $key)) % 100; # Pseudo-random function. + # roughly 10% raw, 45% hex, 45% dec + # '@' *must* be encoded. I insist. + if ($r > 90 && $char != '@') /* do nothing */; + else if ($r < 45) $chars[$key] = '&#x'.dechex($ord).';'; + else $chars[$key] = '&#'.$ord.';'; + } + } + + $addr = implode('', $chars); + $text = implode('', array_slice($chars, 7)); # text without `mailto:` + $addr = "$text"; + + return $addr; + } + + + function parseSpan($str) { + # + # Take the string $str and parse it into tokens, hashing embeded HTML, + # escaped characters and handling code spans. + # + $output = ''; + + $span_re = '{ + ( + \\\\'.$this->escape_chars_re.' + | + (?no_markup ? '' : ' + | + # comment + | + <\?.*?\?> | <%.*?%> # processing instruction + | + <[/!$]?[-a-zA-Z0-9:_]+ # regular tags + (?> + \s + (?>[^"\'>]+|"[^"]*"|\'[^\']*\')* + )? + > + ').' + ) + }xs'; + + while (1) { + # + # Each loop iteration seach for either the next tag, the next + # openning code span marker, or the next escaped character. + # Each token is then passed to handleSpanToken. + # + $parts = preg_split($span_re, $str, 2, PREG_SPLIT_DELIM_CAPTURE); + + # Create token from text preceding tag. + if ($parts[0] != "") { + $output .= $parts[0]; + } + + # Check if we reach the end. + if (isset($parts[1])) { + $output .= $this->handleSpanToken($parts[1], $parts[2]); + $str = $parts[2]; + } + else { + break; + } + } + + return $output; + } + + + function handleSpanToken($token, &$str) { + # + # Handle $token provided by parseSpan by determining its nature and + # returning the corresponding value that should replace it. + # + switch ($token{0}) { + case "\\": + return $this->hashPart("&#". ord($token{1}). ";"); + case "`": + # Search for end marker in remaining text. + if (preg_match('/^(.*?[^`])'.preg_quote($token).'(?!`)(.*)$/sm', + $str, $matches)) + { + $str = $matches[2]; + $codespan = $this->makeCodeSpan($matches[1]); + return $this->hashPart($codespan); + } + return $token; // return as text since no ending marker found. + default: + return $this->hashPart($token); + } + } + + + function outdent($text) { + # + # Remove one level of line-leading tabs or spaces + # + return preg_replace('/^(\t|[ ]{1,'.$this->tab_width.'})/m', '', $text); + } + + + # String length function for detab. `_initDetab` will create a function to + # hanlde UTF-8 if the default function does not exist. + var $utf8_strlen = 'mb_strlen'; + + function detab($text) { + # + # Replace tabs with the appropriate amount of space. + # + # For each line we separate the line in blocks delemited by + # tab characters. Then we reconstruct every line by adding the + # appropriate number of space between each blocks. + + $text = preg_replace_callback('/^.*\t.*$/m', + array(&$this, '_detab_callback'), $text); + + return $text; + } + function _detab_callback($matches) { + $line = $matches[0]; + $strlen = $this->utf8_strlen; # strlen function for UTF-8. + + # Split in blocks. + $blocks = explode("\t", $line); + # Add each blocks to the line. + $line = $blocks[0]; + unset($blocks[0]); # Do not add first block twice. + foreach ($blocks as $block) { + # Calculate amount of space, insert spaces, insert block. + $amount = $this->tab_width - + $strlen($line, 'UTF-8') % $this->tab_width; + $line .= str_repeat(" ", $amount) . $block; + } + return $line; + } + function _initDetab() { + # + # Check for the availability of the function in the `utf8_strlen` property + # (initially `mb_strlen`). If the function is not available, create a + # function that will loosely count the number of UTF-8 characters with a + # regular expression. + # + if (function_exists($this->utf8_strlen)) return; + $this->utf8_strlen = create_function('$text', 'return preg_match_all( + "/[\\\\x00-\\\\xBF]|[\\\\xC0-\\\\xFF][\\\\x80-\\\\xBF]*/", + $text, $m);'); + } + + + function unhash($text) { + # + # Swap back in all the tags hashed by _HashHTMLBlocks. + # + return preg_replace_callback('/(.)\x1A[0-9]+\1/', + array(&$this, '_unhash_callback'), $text); + } + function _unhash_callback($matches) { + return $this->html_hashes[$matches[0]]; + } + +} + + +# +# Markdown Extra Parser Class +# + +class MarkdownExtra_Parser extends Markdown_Parser { + + # Prefix for footnote ids. + var $fn_id_prefix = ""; + + # Optional title attribute for footnote links and backlinks. + var $fn_link_title = MARKDOWN_FN_LINK_TITLE; + var $fn_backlink_title = MARKDOWN_FN_BACKLINK_TITLE; + + # Optional class attribute for footnote links and backlinks. + var $fn_link_class = MARKDOWN_FN_LINK_CLASS; + var $fn_backlink_class = MARKDOWN_FN_BACKLINK_CLASS; + + # Predefined abbreviations. + var $predef_abbr = array(); + + + function MarkdownExtra_Parser() { + # + # Constructor function. Initialize the parser object. + # + # Add extra escapable characters before parent constructor + # initialize the table. + $this->escape_chars .= ':|'; + + # Insert extra document, block, and span transformations. + # Parent constructor will do the sorting. + $this->document_gamut += array( + "doFencedCodeBlocks" => 5, + "stripFootnotes" => 15, + "stripAbbreviations" => 25, + "appendFootnotes" => 50, + ); + $this->block_gamut += array( + "doFencedCodeBlocks" => 5, + "doTables" => 15, + "doDefLists" => 45, + ); + $this->span_gamut += array( + "doFootnotes" => 5, + "doAbbreviations" => 70, + ); + + parent::Markdown_Parser(); + } + + + # Extra variables used during extra transformations. + var $footnotes = array(); + var $footnotes_ordered = array(); + var $abbr_desciptions = array(); + var $abbr_word_re = ''; + + # Give the current footnote number. + var $footnote_counter = 1; + + + function setup() { + # + # Setting up Extra-specific variables. + # + parent::setup(); + + $this->footnotes = array(); + $this->footnotes_ordered = array(); + $this->abbr_desciptions = array(); + $this->abbr_word_re = ''; + $this->footnote_counter = 1; + + foreach ($this->predef_abbr as $abbr_word => $abbr_desc) { + if ($this->abbr_word_re) + $this->abbr_word_re .= '|'; + $this->abbr_word_re .= preg_quote($abbr_word); + $this->abbr_desciptions[$abbr_word] = trim($abbr_desc); + } + } + + function teardown() { + # + # Clearing Extra-specific variables. + # + $this->footnotes = array(); + $this->footnotes_ordered = array(); + $this->abbr_desciptions = array(); + $this->abbr_word_re = ''; + + parent::teardown(); + } + + + ### HTML Block Parser ### + + # Tags that are always treated as block tags: + var $block_tags_re = 'p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|address|form|fieldset|iframe|hr|legend'; + + # Tags treated as block tags only if the opening tag is alone on it's line: + var $context_block_tags_re = 'script|noscript|math|ins|del'; + + # Tags where markdown="1" default to span mode: + var $contain_span_tags_re = 'p|h[1-6]|li|dd|dt|td|th|legend|address'; + + # Tags which must not have their contents modified, no matter where + # they appear: + var $clean_tags_re = 'script|math'; + + # Tags that do not need to be closed. + var $auto_close_tags_re = 'hr|img'; + + + function hashHTMLBlocks($text) { + # + # Hashify HTML Blocks and "clean tags". + # + # We only want to do this for block-level HTML tags, such as headers, + # lists, and tables. That's because we still want to wrap

    s around + # "paragraphs" that are wrapped in non-block-level tags, such as anchors, + # phrase emphasis, and spans. The list of tags we're looking for is + # hard-coded. + # + # This works by calling _HashHTMLBlocks_InMarkdown, which then calls + # _HashHTMLBlocks_InHTML when it encounter block tags. When the markdown="1" + # attribute is found whitin a tag, _HashHTMLBlocks_InHTML calls back + # _HashHTMLBlocks_InMarkdown to handle the Markdown syntax within the tag. + # These two functions are calling each other. It's recursive! + # + # + # Call the HTML-in-Markdown hasher. + # + list($text, ) = $this->_hashHTMLBlocks_inMarkdown($text); + + return $text; + } + function _hashHTMLBlocks_inMarkdown($text, $indent = 0, + $enclosing_tag_re = '', $span = false) + { + # + # Parse markdown text, calling _HashHTMLBlocks_InHTML for block tags. + # + # * $indent is the number of space to be ignored when checking for code + # blocks. This is important because if we don't take the indent into + # account, something like this (which looks right) won't work as expected: + # + #

    + #
    + # Hello World. <-- Is this a Markdown code block or text? + #
    <-- Is this a Markdown code block or a real tag? + #
    + # + # If you don't like this, just don't indent the tag on which + # you apply the markdown="1" attribute. + # + # * If $enclosing_tag_re is not empty, stops at the first unmatched closing + # tag with that name. Nested tags supported. + # + # * If $span is true, text inside must treated as span. So any double + # newline will be replaced by a single newline so that it does not create + # paragraphs. + # + # Returns an array of that form: ( processed text , remaining text ) + # + if ($text === '') return array('', ''); + + # Regex to check for the presense of newlines around a block tag. + $newline_before_re = '/(?:^\n?|\n\n)*$/'; + $newline_after_re = + '{ + ^ # Start of text following the tag. + (?>[ ]*)? # Optional comment. + [ ]*\n # Must be followed by newline. + }xs'; + + # Regex to match any tag. + $block_tag_re = + '{ + ( # $2: Capture hole tag. + # Tag name. + '.$this->block_tags_re.' | + '.$this->context_block_tags_re.' | + '.$this->clean_tags_re.' | + (?!\s)'.$enclosing_tag_re.' + ) + (?: + (?=[\s"\'/a-zA-Z0-9]) # Allowed characters after tag name. + (?> + ".*?" | # Double quotes (can contain `>`) + \'.*?\' | # Single quotes (can contain `>`) + .+? # Anything but quotes and `>`. + )*? + )? + > # End of tag. + | + # HTML Comment + | + <\?.*?\?> | <%.*?%> # Processing instruction + | + # CData Block + | + # Code span marker + `+ + '. ( !$span ? ' # If not in span. + | + # Indented code block + (?: ^[ ]*\n | ^ | \n[ ]*\n ) + [ ]{'.($indent+4).'}[^\n]* \n + (?> + (?: [ ]{'.($indent+4).'}[^\n]* | [ ]* ) \n + )* + | + # Fenced code block marker + (?> ^ | \n ) + [ ]{0,'.($indent).'}~~~+[ ]*\n + ' : '' ). ' # End (if not is span). + ) + }xs'; + + + $depth = 0; # Current depth inside the tag tree. + $parsed = ""; # Parsed text that will be returned. + + # + # Loop through every tag until we find the closing tag of the parent + # or loop until reaching the end of text if no parent tag specified. + # + do { + # + # Split the text using the first $tag_match pattern found. + # Text before pattern will be first in the array, text after + # pattern will be at the end, and between will be any catches made + # by the pattern. + # + $parts = preg_split($block_tag_re, $text, 2, + PREG_SPLIT_DELIM_CAPTURE); + + # If in Markdown span mode, add a empty-string span-level hash + # after each newline to prevent triggering any block element. + if ($span) { + $void = $this->hashPart("", ':'); + $newline = "$void\n"; + $parts[0] = $void . str_replace("\n", $newline, $parts[0]) . $void; + } + + $parsed .= $parts[0]; # Text before current tag. + + # If end of $text has been reached. Stop loop. + if (count($parts) < 3) { + $text = ""; + break; + } + + $tag = $parts[1]; # Tag to handle. + $text = $parts[2]; # Remaining text after current tag. + $tag_re = preg_quote($tag); # For use in a regular expression. + + # + # Check for: Code span marker + # + if ($tag{0} == "`") { + # Find corresponding end marker. + $tag_re = preg_quote($tag); + if (preg_match('{^(?>.+?|\n(?!\n))*?(?.*\n)+?[ ]{0,'.($indent).'}'.$tag_re.'[ ]*\n}', $text, + $matches)) + { + # End marker found: pass text unchanged until marker. + $parsed .= $tag . $matches[0]; + $text = substr($text, strlen($matches[0])); + } + else { + # No end marker: just skip it. + $parsed .= $tag; + } + } + # + # Check for: Indented code block. + # + else if ($tag{0} == "\n" || $tag{0} == " ") { + # Indented code block: pass it unchanged, will be handled + # later. + $parsed .= $tag; + } + # + # Check for: Opening Block level tag or + # Opening Context Block tag (like ins and del) + # used as a block tag (tag is alone on it's line). + # + else if (preg_match('{^<(?:'.$this->block_tags_re.')\b}', $tag) || + ( preg_match('{^<(?:'.$this->context_block_tags_re.')\b}', $tag) && + preg_match($newline_before_re, $parsed) && + preg_match($newline_after_re, $text) ) + ) + { + # Need to parse tag and following text using the HTML parser. + list($block_text, $text) = + $this->_hashHTMLBlocks_inHTML($tag . $text, "hashBlock", true); + + # Make sure it stays outside of any paragraph by adding newlines. + $parsed .= "\n\n$block_text\n\n"; + } + # + # Check for: Clean tag (like script, math) + # HTML Comments, processing instructions. + # + else if (preg_match('{^<(?:'.$this->clean_tags_re.')\b}', $tag) || + $tag{1} == '!' || $tag{1} == '?') + { + # Need to parse tag and following text using the HTML parser. + # (don't check for markdown attribute) + list($block_text, $text) = + $this->_hashHTMLBlocks_inHTML($tag . $text, "hashClean", false); + + $parsed .= $block_text; + } + # + # Check for: Tag with same name as enclosing tag. + # + else if ($enclosing_tag_re !== '' && + # Same name as enclosing tag. + preg_match('{^= 0); + + return array($parsed, $text); + } + function _hashHTMLBlocks_inHTML($text, $hash_method, $md_attr) { + # + # Parse HTML, calling _HashHTMLBlocks_InMarkdown for block tags. + # + # * Calls $hash_method to convert any blocks. + # * Stops when the first opening tag closes. + # * $md_attr indicate if the use of the `markdown="1"` attribute is allowed. + # (it is not inside clean tags) + # + # Returns an array of that form: ( processed text , remaining text ) + # + if ($text === '') return array('', ''); + + # Regex to match `markdown` attribute inside of a tag. + $markdown_attr_re = ' + { + \s* # Eat whitespace before the `markdown` attribute + markdown + \s*=\s* + (?> + (["\']) # $1: quote delimiter + (.*?) # $2: attribute value + \1 # matching delimiter + | + ([^\s>]*) # $3: unquoted attribute value + ) + () # $4: make $3 always defined (avoid warnings) + }xs'; + + # Regex to match any tag. + $tag_re = '{ + ( # $2: Capture hole tag. + + ".*?" | # Double quotes (can contain `>`) + \'.*?\' | # Single quotes (can contain `>`) + .+? # Anything but quotes and `>`. + )*? + )? + > # End of tag. + | + # HTML Comment + | + <\?.*?\?> | <%.*?%> # Processing instruction + | + # CData Block + ) + }xs'; + + $original_text = $text; # Save original text in case of faliure. + + $depth = 0; # Current depth inside the tag tree. + $block_text = ""; # Temporary text holder for current text. + $parsed = ""; # Parsed text that will be returned. + + # + # Get the name of the starting tag. + # (This pattern makes $base_tag_name_re safe without quoting.) + # + if (preg_match('/^<([\w:$]*)\b/', $text, $matches)) + $base_tag_name_re = $matches[1]; + + # + # Loop through every tag until we find the corresponding closing tag. + # + do { + # + # Split the text using the first $tag_match pattern found. + # Text before pattern will be first in the array, text after + # pattern will be at the end, and between will be any catches made + # by the pattern. + # + $parts = preg_split($tag_re, $text, 2, PREG_SPLIT_DELIM_CAPTURE); + + if (count($parts) < 3) { + # + # End of $text reached with unbalenced tag(s). + # In that case, we return original text unchanged and pass the + # first character as filtered to prevent an infinite loop in the + # parent function. + # + return array($original_text{0}, substr($original_text, 1)); + } + + $block_text .= $parts[0]; # Text before current tag. + $tag = $parts[1]; # Tag to handle. + $text = $parts[2]; # Remaining text after current tag. + + # + # Check for: Auto-close tag (like
    ) + # Comments and Processing Instructions. + # + if (preg_match('{^auto_close_tags_re.')\b}', $tag) || + $tag{1} == '!' || $tag{1} == '?') + { + # Just add the tag to the block as if it was text. + $block_text .= $tag; + } + else { + # + # Increase/decrease nested tag count. Only do so if + # the tag's name match base tag's. + # + if (preg_match('{^mode = $attr_m[2] . $attr_m[3]; + $span_mode = $this->mode == 'span' || $this->mode != 'block' && + preg_match('{^<(?:'.$this->contain_span_tags_re.')\b}', $tag); + + # Calculate indent before tag. + if (preg_match('/(?:^|\n)( *?)(?! ).*?$/', $block_text, $matches)) { + $strlen = $this->utf8_strlen; + $indent = $strlen($matches[1], 'UTF-8'); + } else { + $indent = 0; + } + + # End preceding block with this tag. + $block_text .= $tag; + $parsed .= $this->$hash_method($block_text); + + # Get enclosing tag name for the ParseMarkdown function. + # (This pattern makes $tag_name_re safe without quoting.) + preg_match('/^<([\w:$]*)\b/', $tag, $matches); + $tag_name_re = $matches[1]; + + # Parse the content using the HTML-in-Markdown parser. + list ($block_text, $text) + = $this->_hashHTMLBlocks_inMarkdown($text, $indent, + $tag_name_re, $span_mode); + + # Outdent markdown text. + if ($indent > 0) { + $block_text = preg_replace("/^[ ]{1,$indent}/m", "", + $block_text); + } + + # Append tag content to parsed text. + if (!$span_mode) $parsed .= "\n\n$block_text\n\n"; + else $parsed .= "$block_text"; + + # Start over a new block. + $block_text = ""; + } + else $block_text .= $tag; + } + + } while ($depth > 0); + + # + # Hash last block text that wasn't processed inside the loop. + # + $parsed .= $this->$hash_method($block_text); + + return array($parsed, $text); + } + + + function hashClean($text) { + # + # Called whenever a tag must be hashed when a function insert a "clean" tag + # in $text, it pass through this function and is automaticaly escaped, + # blocking invalid nested overlap. + # + return $this->hashPart($text, 'C'); + } + + + function doHeaders($text) { + # + # Redefined to add id attribute support. + # + # Setext-style headers: + # Header 1 {#header1} + # ======== + # + # Header 2 {#header2} + # -------- + # + $text = preg_replace_callback( + '{ + (^.+?) # $1: Header text + (?:[ ]+\{\#([-_:a-zA-Z0-9]+)\})? # $2: Id attribute + [ ]*\n(=+|-+)[ ]*\n+ # $3: Header footer + }mx', + array(&$this, '_doHeaders_callback_setext'), $text); + + # atx-style headers: + # # Header 1 {#header1} + # ## Header 2 {#header2} + # ## Header 2 with closing hashes ## {#header3} + # ... + # ###### Header 6 {#header2} + # + $text = preg_replace_callback('{ + ^(\#{1,6}) # $1 = string of #\'s + [ ]* + (.+?) # $2 = Header text + [ ]* + \#* # optional closing #\'s (not counted) + (?:[ ]+\{\#([-_:a-zA-Z0-9]+)\})? # id attribute + [ ]* + \n+ + }xm', + array(&$this, '_doHeaders_callback_atx'), $text); + + return $text; + } + function _doHeaders_attr($attr) { + if (empty($attr)) return ""; + return " id=\"$attr\""; + } + function _doHeaders_callback_setext($matches) { + if ($matches[3] == '-' && preg_match('{^- }', $matches[1])) + return $matches[0]; + $level = $matches[3]{0} == '=' ? 1 : 2; + $attr = $this->_doHeaders_attr($id =& $matches[2]); + $block = "".$this->runSpanGamut($matches[1]).""; + return "\n" . $this->hashBlock($block) . "\n\n"; + } + function _doHeaders_callback_atx($matches) { + $level = strlen($matches[1]); + $attr = $this->_doHeaders_attr($id =& $matches[3]); + $block = "".$this->runSpanGamut($matches[2]).""; + return "\n" . $this->hashBlock($block) . "\n\n"; + } + + + function doTables($text) { + # + # Form HTML tables. + # + $less_than_tab = $this->tab_width - 1; + # + # Find tables with leading pipe. + # + # | Header 1 | Header 2 + # | -------- | -------- + # | Cell 1 | Cell 2 + # | Cell 3 | Cell 4 + # + $text = preg_replace_callback(' + { + ^ # Start of a line + [ ]{0,'.$less_than_tab.'} # Allowed whitespace. + [|] # Optional leading pipe (present) + (.+) \n # $1: Header row (at least one pipe) + + [ ]{0,'.$less_than_tab.'} # Allowed whitespace. + [|] ([ ]*[-:]+[-| :]*) \n # $2: Header underline + + ( # $3: Cells + (?> + [ ]* # Allowed whitespace. + [|] .* \n # Row content. + )* + ) + (?=\n|\Z) # Stop at final double newline. + }xm', + array(&$this, '_doTable_leadingPipe_callback'), $text); + + # + # Find tables without leading pipe. + # + # Header 1 | Header 2 + # -------- | -------- + # Cell 1 | Cell 2 + # Cell 3 | Cell 4 + # + $text = preg_replace_callback(' + { + ^ # Start of a line + [ ]{0,'.$less_than_tab.'} # Allowed whitespace. + (\S.*[|].*) \n # $1: Header row (at least one pipe) + + [ ]{0,'.$less_than_tab.'} # Allowed whitespace. + ([-:]+[ ]*[|][-| :]*) \n # $2: Header underline + + ( # $3: Cells + (?> + .* [|] .* \n # Row content + )* + ) + (?=\n|\Z) # Stop at final double newline. + }xm', + array(&$this, '_DoTable_callback'), $text); + + return $text; + } + function _doTable_leadingPipe_callback($matches) { + $head = $matches[1]; + $underline = $matches[2]; + $content = $matches[3]; + + # Remove leading pipe for each row. + $content = preg_replace('/^ *[|]/m', '', $content); + + return $this->_doTable_callback(array($matches[0], $head, $underline, $content)); + } + function _doTable_callback($matches) { + $head = $matches[1]; + $underline = $matches[2]; + $content = $matches[3]; + + # Remove any tailing pipes for each line. + $head = preg_replace('/[|] *$/m', '', $head); + $underline = preg_replace('/[|] *$/m', '', $underline); + $content = preg_replace('/[|] *$/m', '', $content); + + # Reading alignement from header underline. + $separators = preg_split('/ *[|] */', $underline); + foreach ($separators as $n => $s) { + if (preg_match('/^ *-+: *$/', $s)) $attr[$n] = ' align="right"'; + else if (preg_match('/^ *:-+: *$/', $s))$attr[$n] = ' align="center"'; + else if (preg_match('/^ *:-+ *$/', $s)) $attr[$n] = ' align="left"'; + else $attr[$n] = ''; + } + + # Parsing span elements, including code spans, character escapes, + # and inline HTML tags, so that pipes inside those gets ignored. + $head = $this->parseSpan($head); + $headers = preg_split('/ *[|] */', $head); + $col_count = count($headers); + + # Write column headers. + $text = "\n"; + $text .= "\n"; + $text .= "\n"; + foreach ($headers as $n => $header) + $text .= " ".$this->runSpanGamut(trim($header))."\n"; + $text .= "\n"; + $text .= "\n"; + + # Split content by row. + $rows = explode("\n", trim($content, "\n")); + + $text .= "\n"; + foreach ($rows as $row) { + # Parsing span elements, including code spans, character escapes, + # and inline HTML tags, so that pipes inside those gets ignored. + $row = $this->parseSpan($row); + + # Split row by cell. + $row_cells = preg_split('/ *[|] */', $row, $col_count); + $row_cells = array_pad($row_cells, $col_count, ''); + + $text .= "\n"; + foreach ($row_cells as $n => $cell) + $text .= " ".$this->runSpanGamut(trim($cell))."\n"; + $text .= "\n"; + } + $text .= "\n"; + $text .= "
    "; + + return $this->hashBlock($text) . "\n"; + } + + + function doDefLists($text) { + # + # Form HTML definition lists. + # + $less_than_tab = $this->tab_width - 1; + + # Re-usable pattern to match any entire dl list: + $whole_list_re = '(?> + ( # $1 = whole list + ( # $2 + [ ]{0,'.$less_than_tab.'} + ((?>.*\S.*\n)+) # $3 = defined term + \n? + [ ]{0,'.$less_than_tab.'}:[ ]+ # colon starting definition + ) + (?s:.+?) + ( # $4 + \z + | + \n{2,} + (?=\S) + (?! # Negative lookahead for another term + [ ]{0,'.$less_than_tab.'} + (?: \S.*\n )+? # defined term + \n? + [ ]{0,'.$less_than_tab.'}:[ ]+ # colon starting definition + ) + (?! # Negative lookahead for another definition + [ ]{0,'.$less_than_tab.'}:[ ]+ # colon starting definition + ) + ) + ) + )'; // mx + + $text = preg_replace_callback('{ + (?>\A\n?|(?<=\n\n)) + '.$whole_list_re.' + }mx', + array(&$this, '_doDefLists_callback'), $text); + + return $text; + } + function _doDefLists_callback($matches) { + # Re-usable patterns to match list item bullets and number markers: + $list = $matches[1]; + + # Turn double returns into triple returns, so that we can make a + # paragraph for the last item in a list, if necessary: + $result = trim($this->processDefListItems($list)); + $result = "
    \n" . $result . "\n
    "; + return $this->hashBlock($result) . "\n\n"; + } + + + function processDefListItems($list_str) { + # + # Process the contents of a single definition list, splitting it + # into individual term and definition list items. + # + $less_than_tab = $this->tab_width - 1; + + # trim trailing blank lines: + $list_str = preg_replace("/\n{2,}\\z/", "\n", $list_str); + + # Process definition terms. + $list_str = preg_replace_callback('{ + (?>\A\n?|\n\n+) # leading line + ( # definition terms = $1 + [ ]{0,'.$less_than_tab.'} # leading whitespace + (?![:][ ]|[ ]) # negative lookahead for a definition + # mark (colon) or more whitespace. + (?> \S.* \n)+? # actual term (not whitespace). + ) + (?=\n?[ ]{0,3}:[ ]) # lookahead for following line feed + # with a definition mark. + }xm', + array(&$this, '_processDefListItems_callback_dt'), $list_str); + + # Process actual definitions. + $list_str = preg_replace_callback('{ + \n(\n+)? # leading line = $1 + ( # marker space = $2 + [ ]{0,'.$less_than_tab.'} # whitespace before colon + [:][ ]+ # definition mark (colon) + ) + ((?s:.+?)) # definition text = $3 + (?= \n+ # stop at next definition mark, + (?: # next term or end of text + [ ]{0,'.$less_than_tab.'} [:][ ] | +
    | \z + ) + ) + }xm', + array(&$this, '_processDefListItems_callback_dd'), $list_str); + + return $list_str; + } + function _processDefListItems_callback_dt($matches) { + $terms = explode("\n", trim($matches[1])); + $text = ''; + foreach ($terms as $term) { + $term = $this->runSpanGamut(trim($term)); + $text .= "\n
    " . $term . "
    "; + } + return $text . "\n"; + } + function _processDefListItems_callback_dd($matches) { + $leading_line = $matches[1]; + $marker_space = $matches[2]; + $def = $matches[3]; + + if ($leading_line || preg_match('/\n{2,}/', $def)) { + # Replace marker with the appropriate whitespace indentation + $def = str_repeat(' ', strlen($marker_space)) . $def; + $def = $this->runBlockGamut($this->outdent($def . "\n\n")); + $def = "\n". $def ."\n"; + } + else { + $def = rtrim($def); + $def = $this->runSpanGamut($this->outdent($def)); + } + + return "\n
    " . $def . "
    \n"; + } + + + function doFencedCodeBlocks($text) { + # + # Adding the fenced code block syntax to regular Markdown: + # + # ~~~ + # Code block + # ~~~ + # + $less_than_tab = $this->tab_width; + + $text = preg_replace_callback('{ + (?:\n|\A) + # 1: Opening marker + ( + ~{3,} # Marker: three tilde or more. + ) + [ ]* \n # Whitespace and newline following marker. + + # 2: Content + ( + (?> + (?!\1 [ ]* \n) # Not a closing marker. + .*\n+ + )+ + ) + + # Closing marker. + \1 [ ]* \n + }xm', + array(&$this, '_doFencedCodeBlocks_callback'), $text); + + return $text; + } + function _doFencedCodeBlocks_callback($matches) { + $codeblock = $matches[2]; + $codeblock = htmlspecialchars($codeblock, ENT_NOQUOTES); + $codeblock = preg_replace_callback('/^\n+/', + array(&$this, '_doFencedCodeBlocks_newlines'), $codeblock); + $codeblock = "
    $codeblock
    "; + return "\n\n".$this->hashBlock($codeblock)."\n\n"; + } + function _doFencedCodeBlocks_newlines($matches) { + return str_repeat("empty_element_suffix", + strlen($matches[0])); + } + + + # + # Redefining emphasis markers so that emphasis by underscore does not + # work in the middle of a word. + # + var $em_relist = array( + '' => '(?:(? '(?<=\S|^)(? '(?<=\S|^)(? '(?:(? '(?<=\S|^)(? '(?<=\S|^)(? '(?:(? '(?<=\S|^)(? '(?<=\S|^)(? tags + # + # Strip leading and trailing lines: + $text = preg_replace('/\A\n+|\n+\z/', '', $text); + + $grafs = preg_split('/\n{2,}/', $text, -1, PREG_SPLIT_NO_EMPTY); + + # + # Wrap

    tags and unhashify HTML blocks + # + foreach ($grafs as $key => $value) { + $value = trim($this->runSpanGamut($value)); + + # Check if this should be enclosed in a paragraph. + # Clean tag hashes & block tag hashes are left alone. + $is_p = !preg_match('/^B\x1A[0-9]+B|^C\x1A[0-9]+C$/', $value); + + if ($is_p) { + $value = "

    $value

    "; + } + $grafs[$key] = $value; + } + + # Join grafs in one text, then unhash HTML tags. + $text = implode("\n\n", $grafs); + + # Finish by removing any tag hashes still present in $text. + $text = $this->unhash($text); + + return $text; + } + + + ### Footnotes + + function stripFootnotes($text) { + # + # Strips link definitions from text, stores the URLs and titles in + # hash references. + # + $less_than_tab = $this->tab_width - 1; + + # Link defs are in the form: [^id]: url "optional title" + $text = preg_replace_callback('{ + ^[ ]{0,'.$less_than_tab.'}\[\^(.+?)\][ ]?: # note_id = $1 + [ ]* + \n? # maybe *one* newline + ( # text = $2 (no blank lines allowed) + (?: + .+ # actual text + | + \n # newlines but + (?!\[\^.+?\]:\s)# negative lookahead for footnote marker. + (?!\n+[ ]{0,3}\S)# ensure line is not blank and followed + # by non-indented content + )* + ) + }xm', + array(&$this, '_stripFootnotes_callback'), + $text); + return $text; + } + function _stripFootnotes_callback($matches) { + $note_id = $this->fn_id_prefix . $matches[1]; + $this->footnotes[$note_id] = $this->outdent($matches[2]); + return ''; # String that will replace the block + } + + + function doFootnotes($text) { + # + # Replace footnote references in $text [^id] with a special text-token + # which will be replaced by the actual footnote marker in appendFootnotes. + # + if (!$this->in_anchor) { + $text = preg_replace('{\[\^(.+?)\]}', "F\x1Afn:\\1\x1A:", $text); + } + return $text; + } + + + function appendFootnotes($text) { + # + # Append footnote list to text. + # + $text = preg_replace_callback('{F\x1Afn:(.*?)\x1A:}', + array(&$this, '_appendFootnotes_callback'), $text); + + if (!empty($this->footnotes_ordered)) { + $text .= "\n\n"; + $text .= "
    \n"; + $text .= "empty_element_suffix ."\n"; + $text .= "
      \n\n"; + + $attr = " rev=\"footnote\""; + if ($this->fn_backlink_class != "") { + $class = $this->fn_backlink_class; + $class = $this->encodeAttribute($class); + $attr .= " class=\"$class\""; + } + if ($this->fn_backlink_title != "") { + $title = $this->fn_backlink_title; + $title = $this->encodeAttribute($title); + $attr .= " title=\"$title\""; + } + $num = 0; + + while (!empty($this->footnotes_ordered)) { + $footnote = reset($this->footnotes_ordered); + $note_id = key($this->footnotes_ordered); + unset($this->footnotes_ordered[$note_id]); + + $footnote .= "\n"; # Need to append newline before parsing. + $footnote = $this->runBlockGamut("$footnote\n"); + $footnote = preg_replace_callback('{F\x1Afn:(.*?)\x1A:}', + array(&$this, '_appendFootnotes_callback'), $footnote); + + $attr = str_replace("%%", ++$num, $attr); + $note_id = $this->encodeAttribute($note_id); + + # Add backlink to last paragraph; create new paragraph if needed. + $backlink = ""; + if (preg_match('{

      $}', $footnote)) { + $footnote = substr($footnote, 0, -4) . " $backlink

      "; + } else { + $footnote .= "\n\n

      $backlink

      "; + } + + $text .= "
    1. \n"; + $text .= $footnote . "\n"; + $text .= "
    2. \n\n"; + } + + $text .= "
    \n"; + $text .= "
    "; + } + return $text; + } + function _appendFootnotes_callback($matches) { + $node_id = $this->fn_id_prefix . $matches[1]; + + # Create footnote marker only if it has a corresponding footnote *and* + # the footnote hasn't been used by another marker. + if (isset($this->footnotes[$node_id])) { + # Transfert footnote content to the ordered list. + $this->footnotes_ordered[$node_id] = $this->footnotes[$node_id]; + unset($this->footnotes[$node_id]); + + $num = $this->footnote_counter++; + $attr = " rel=\"footnote\""; + if ($this->fn_link_class != "") { + $class = $this->fn_link_class; + $class = $this->encodeAttribute($class); + $attr .= " class=\"$class\""; + } + if ($this->fn_link_title != "") { + $title = $this->fn_link_title; + $title = $this->encodeAttribute($title); + $attr .= " title=\"$title\""; + } + + $attr = str_replace("%%", $num, $attr); + $node_id = $this->encodeAttribute($node_id); + + return + "". + "$num". + ""; + } + + return "[^".$matches[1]."]"; + } + + + ### Abbreviations ### + + function stripAbbreviations($text) { + # + # Strips abbreviations from text, stores titles in hash references. + # + $less_than_tab = $this->tab_width - 1; + + # Link defs are in the form: [id]*: url "optional title" + $text = preg_replace_callback('{ + ^[ ]{0,'.$less_than_tab.'}\*\[(.+?)\][ ]?: # abbr_id = $1 + (.*) # text = $2 (no blank lines allowed) + }xm', + array(&$this, '_stripAbbreviations_callback'), + $text); + return $text; + } + function _stripAbbreviations_callback($matches) { + $abbr_word = $matches[1]; + $abbr_desc = $matches[2]; + if ($this->abbr_word_re) + $this->abbr_word_re .= '|'; + $this->abbr_word_re .= preg_quote($abbr_word); + $this->abbr_desciptions[$abbr_word] = trim($abbr_desc); + return ''; # String that will replace the block + } + + + function doAbbreviations($text) { + # + # Find defined abbreviations in text and wrap them in elements. + # + if ($this->abbr_word_re) { + // cannot use the /x modifier because abbr_word_re may + // contain significant spaces: + $text = preg_replace_callback('{'. + '(?abbr_word_re.')'. + '(?![\w\x1A])'. + '}', + array(&$this, '_doAbbreviations_callback'), $text); + } + return $text; + } + function _doAbbreviations_callback($matches) { + $abbr = $matches[0]; + if (isset($this->abbr_desciptions[$abbr])) { + $desc = $this->abbr_desciptions[$abbr]; + if (empty($desc)) { + return $this->hashPart("$abbr"); + } else { + $desc = $this->encodeAttribute($desc); + return $this->hashPart("$abbr"); + } + } else { + return $matches[0]; + } + } + +} + + +/* + +PHP Markdown Extra +================== + +Description +----------- + +This is a PHP port of the original Markdown formatter written in Perl +by John Gruber. This special "Extra" version of PHP Markdown features +further enhancements to the syntax for making additional constructs +such as tables and definition list. + +Markdown is a text-to-HTML filter; it translates an easy-to-read / +easy-to-write structured text format into HTML. Markdown's text format +is most similar to that of plain text email, and supports features such +as headers, *emphasis*, code blocks, blockquotes, and links. + +Markdown's syntax is designed not as a generic markup language, but +specifically to serve as a front-end to (X)HTML. You can use span-level +HTML tags anywhere in a Markdown document, and you can use block level +HTML tags (like
    and as well). + +For more information about Markdown's syntax, see: + + + + +Bugs +---- + +To file bug reports please send email to: + + + +Please include with your report: (1) the example input; (2) the output you +expected; (3) the output Markdown actually produced. + + +Version History +--------------- + +See the readme file for detailed release notes for this version. + + +Copyright and License +--------------------- + +PHP Markdown & Extra +Copyright (c) 2004-2009 Michel Fortin + +All rights reserved. + +Based on Markdown +Copyright (c) 2003-2006 John Gruber + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +* Neither the name "Markdown" nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + +This software is provided by the copyright holders and contributors "as +is" and any express or implied warranties, including, but not limited +to, the implied warranties of merchantability and fitness for a +particular purpose are disclaimed. In no event shall the copyright owner +or contributors be liable for any direct, indirect, incidental, special, +exemplary, or consequential damages (including, but not limited to, +procurement of substitute goods or services; loss of use, data, or +profits; or business interruption) however caused and on any theory of +liability, whether in contract, strict liability, or tort (including +negligence or otherwise) arising in any way out of the use of this +software, even if advised of the possibility of such damage. + +*/ +?> \ No newline at end of file diff --git a/example.php b/example.php index a6f5cd2..6f7bbbf 100644 --- a/example.php +++ b/example.php @@ -7,61 +7,48 @@ 嗨网HiGrid演示 - - - - - - - - - - + + + - + + -
    - + + + -$ex=rtrim(strtolower($_GET['ex'])); - -$higridpro=file_exists(HIGRIDPROPATH.'/example/'. $ex ) ? HIGRIDPROPATH.'/example/'. $ex : HIGRIDPROPATH.'/example/default.php'; - -include_once $higridpro; - + -?> -
    + -
    + +
    + - PHP程序由嗨网HiGrid.net提供,欢迎加个链接 -
    -
    - - - - -
    +defined('HIGRID_PATH') || define('HIGRID_PATH', str_replace('\\', '/', __DIR__) . '/'); +require(HIGRID_PATH . 'config/functions.php'); +$ex=rtrim(strtolower($_GET['id'])).'.php'; +$higridpro=file_exists(HIGRID_PATH.'/example/'. $ex ) ? HIGRID_PATH.'/example/'. $ex : HIGRID_PATH.'/example/default.php'; +include_once $higridpro; +?> - \ No newline at end of file + diff --git a/example/config.php b/example/config.php index 6389039..3c7e5ce 100644 --- a/example/config.php +++ b/example/config.php @@ -16,9 +16,7 @@ */ - -require(HIPATH.'../../config/higrid.php');//演示数据库设置,经过上述设置后注释本条 -require(HIPATH.'../../config/demo_higrid_pro.php');//演示数据库设置,经过上述设置后注释本条 +require(HIPATH.'../config/data.php');//演示数据库设置,经过上述设置后注释本条 defined('IN_HIGRID') || define('IN_HIGRID', true); // 常量定义 require_once(HIPATH.'../higrid/HiGrid.php');// higrid php主文件 \ No newline at end of file diff --git a/index.html b/index.html deleted file mode 100644 index 19d6087..0000000 --- a/index.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - -嗨网HiGrid专业版在线演示_嗨网在线HiGrid.net - - - -
    -
    -

    嗨网HiGrid专业版在线演示及示例

    -

    所有演示均附带源代码

    -
    - -
    - -嗨网HiGrid专业版常用操作在线演示: 请点菜单查看演示,并查看源文件。窗口右下角可关闭。 -
    - -
    - - - - - - - - - -
    演示代码说明
    嗨网-产品展示演示 -HiGrid-产品展示代码用在网页上展示产品价格
    嗨网-自定义数据展示演示 -HiGrid-自定义数据展示代码展示产品价格浮动
    嗨网-筛选状态演示 -HiGrid-筛选状态代码用做办公系统
    嗨网-表头合并演示 -HiGrid-表头合并代码暂无描述
    嗨网-常用操作演示 -HiGrid-常用操作代码暂无描述
    嗨网-导出excel演示 -HiGrid-导出excel代码暂无描述
    嗨网-自定义按钮演示 -HiGrid-自定义按钮代码暂无描述
    嗨网-自定义类型演示 -HiGrid-自定义类型代码暂无描述
    嗨网-长表格演示 -HiGrid-长表格代码暂无描述
    嗨网-子表格演示 -HiGrid-子表格代码暂无描述
    嗨网-主从表格演示演示 -HiGrid-主从表格演示代码主从表格
    嗨网-表格分组演示 -HiGrid-表格分组代码暂无描述
    嗨网-分组表头演示 -HiGrid-分组表头代码暂无描述
    嗨网-分组表头演示 -HiGrid-分组表头代码暂无描述
    嗨网-分组表头2演示 -HiGrid-分组表头2代码暂无描述
    嗨网-两个分组演示 -HiGrid-两个分组代码暂无描述
    嗨网-两分组求和演示 -HiGrid-两分组求和代码暂无描述
    嗨网-在表头分组求和演示 -HiGrid-在表头分组求和代码暂无描述
    嗨网-从右开始演示 -HiGrid-从右开始代码暂无描述
    嗨网-列汇总演示 -HiGrid-列汇总代码暂无描述
    嗨网-日期选择器演示 -HiGrid-日期选择器代码暂无描述
    嗨网-工具栏自动完成演示 -HiGrid-工具栏自动完成代码暂无描述
    - -
    - -嗨网HiGrid树表格
    - - - - - - - - - - - - - - - -
    演示代码说明
    嗨网-最简单的树节点演示 -HiGrid-最简单的树节点代码暂无描述
    嗨网-增加节点演示 -HiGrid-增加节点代码暂无描述
    嗨网-调整节点演示 -HiGrid-调整节点代码暂无描述
    嗨网-默认打开所有节点演示 -HiGrid-默认打开所有节点代码暂无描述
    嗨网-更换图标演示 -HiGrid-更换图标代码暂无描述
    - - - - - - - - -
    -
    - - - - -
    - - - \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..924b658 --- /dev/null +++ b/index.php @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + +嗨网HiGrid专业版在线演示_嗨网在线HiGrid.net + + + + +
    +

    在线表格、在线图形注册版

    + + +
    + + + +
    +
    + +
    + +
    + + + + + + + + +$x) +{ + echo ""; + echo ""; + echo ""; + echo ''; + echo '"; + echo ""; +} + + + +?> +
    主要功能在线演示开放源代码编辑备注
    ".$x['demo']."".higrid_demo_link($x['page'])."源代码编辑'; + echo "".$x['comment']."
    + +
    + + +
    + +hello +
    + +
    + + + +
    + +
    + + +
    + + + + +
    + + +
    + + + + + + + + +
    + + + + + diff --git a/js/grid.common.js b/js/grid.common.js deleted file mode 100644 index 2726d46..0000000 --- a/js/grid.common.js +++ /dev/null @@ -1,670 +0,0 @@ -;(function($){ -/* - * jqGrid common function - * Tony Tomov tony@trirand.com - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl-2.0.html -*/ -/*global jQuery, $ */ - -$.extend($.jgrid,{ -// Modal functions - showModal : function(h) { - h.w.show(); - }, - closeModal : function(h) { - h.w.hide().attr("aria-hidden","true"); - if(h.o) {h.o.remove();} - }, - hideModal : function (selector,o) { - o = $.extend({jqm : true, gb :''}, o || {}); - if(o.onClose) { - var oncret = o.onClose(selector); - if (typeof oncret == 'boolean' && !oncret ) { return; } - } - if ($.fn.jqm && o.jqm === true) { - $(selector).attr("aria-hidden","true").jqmHide(); - } else { - if(o.gb !== '') { - try {$(".jqgrid-overlay:first",o.gb).hide();} catch (e){} - } - $(selector).hide().attr("aria-hidden","true"); - } - }, -//Helper functions - findPos : function(obj) { - var curleft = 0, curtop = 0; - if (obj.offsetParent) { - do { - curleft += obj.offsetLeft; - curtop += obj.offsetTop; - } while (obj = obj.offsetParent); - //do not change obj == obj.offsetParent - } - return [curleft,curtop]; - }, - createModal : function(aIDs, content, p, insertSelector, posSelector, appendsel, css) { - var mw = document.createElement('div'), rtlsup, self = this; - css = $.extend({}, css || {}); - rtlsup = $(p.gbox).attr("dir") == "rtl" ? true : false; - mw.className= "ui-widget ui-widget-content ui-corner-all ui-jqdialog"; - mw.id = aIDs.themodal; - var mh = document.createElement('div'); - mh.className = "ui-jqdialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"; - mh.id = aIDs.modalhead; - $(mh).append(""+p.caption+""); - var ahr= $("") - .hover(function(){ahr.addClass('ui-state-hover');}, - function(){ahr.removeClass('ui-state-hover');}) - .append(""); - $(mh).append(ahr); - if(rtlsup) { - mw.dir = "rtl"; - $(".ui-jqdialog-title",mh).css("float","right"); - $(".ui-jqdialog-titlebar-close",mh).css("left",0.3+"em"); - } else { - mw.dir = "ltr"; - $(".ui-jqdialog-title",mh).css("float","left"); - $(".ui-jqdialog-titlebar-close",mh).css("right",0.3+"em"); - } - var mc = document.createElement('div'); - $(mc).addClass("ui-jqdialog-content ui-widget-content").attr("id",aIDs.modalcontent); - $(mc).append(content); - mw.appendChild(mc); - $(mw).prepend(mh); - if(appendsel===true) { $('body').append(mw); } //append as first child in body -for alert dialog - else if (typeof appendsel == "string") - $(appendsel).append(mw); - else {$(mw).insertBefore(insertSelector);} - $(mw).css(css); - if(typeof p.jqModal === 'undefined') {p.jqModal = true;} // internal use - var coord = {}; - if ( $.fn.jqm && p.jqModal === true) { - if(p.left ===0 && p.top===0 && p.overlay) { - var pos = []; - pos = this.findPos(posSelector); - p.left = pos[0] + 4; - p.top = pos[1] + 4; - } - coord.top = p.top+"px"; - coord.left = p.left; - } else if(p.left !==0 || p.top!==0) { - coord.left = p.left; - coord.top = p.top+"px"; - } - $("a.ui-jqdialog-titlebar-close",mh).click(function(e){ - var oncm = $("#"+aIDs.themodal).data("onClose") || p.onClose; - var gboxclose = $("#"+aIDs.themodal).data("gbox") || p.gbox; - self.hideModal("#"+aIDs.themodal,{gb:gboxclose,jqm:p.jqModal,onClose:oncm}); - return false; - }); - if (p.width === 0 || !p.width) {p.width = 300;} - if(p.height === 0 || !p.height) {p.height =200;} - if(!p.zIndex) { - var parentZ = $(insertSelector).parents("*[role=dialog]").filter(':first').css("z-index"); - if(parentZ) { - p.zIndex = parseInt(parentZ,10)+1; - } else { - p.zIndex = 950; - } - } - var rtlt = 0; - if( rtlsup && coord.left && !appendsel) { - rtlt = $(p.gbox).width()- (!isNaN(p.width) ? parseInt(p.width,10) :0) - 8; // to do - // just in case - coord.left = parseInt(coord.left,10) + parseInt(rtlt,10); - } - if(coord.left) { coord.left += "px"; } - $(mw).css($.extend({ - width: isNaN(p.width) ? "auto": p.width+"px", - height:isNaN(p.height) ? "auto" : p.height + "px", - zIndex:p.zIndex, - overflow: 'hidden' - },coord)) - .attr({tabIndex: "-1","role":"dialog","aria-labelledby":aIDs.modalhead,"aria-hidden":"true"}); - if(typeof p.drag == 'undefined') { p.drag=true;} - if(typeof p.resize == 'undefined') {p.resize=true;} - if (p.drag) { - $(mh).css('cursor','move'); - if($.fn.jqDrag) { - $(mw).jqDrag(mh); - } else { - try { - $(mw).draggable({handle: $("#"+mh.id)}); - } catch (e) {} - } - } - if(p.resize) { - if($.fn.jqResize) { - $(mw).append("
    "); - $("#"+aIDs.themodal).jqResize(".jqResize",aIDs.scrollelm ? "#"+aIDs.scrollelm : false); - } else { - try { - $(mw).resizable({handles: 'se, sw',alsoResize: aIDs.scrollelm ? "#"+aIDs.scrollelm : false}); - } catch (r) {} - } - } - if(p.closeOnEscape === true){ - $(mw).keydown( function( e ) { - if( e.which == 27 ) { - var cone = $("#"+aIDs.themodal).data("onClose") || p.onClose; - self.hideModal(this,{gb:p.gbox,jqm:p.jqModal,onClose: cone}); - } - }); - } - }, - viewModal : function (selector,o){ - o = $.extend({ - toTop: true, - overlay: 10, - modal: false, - overlayClass : 'ui-widget-overlay', - onShow: this.showModal, - onHide: this.closeModal, - gbox: '', - jqm : true, - jqM : true - }, o || {}); - if ($.fn.jqm && o.jqm === true) { - if(o.jqM) { $(selector).attr("aria-hidden","false").jqm(o).jqmShow(); } - else {$(selector).attr("aria-hidden","false").jqmShow();} - } else { - if(o.gbox !== '') { - $(".jqgrid-overlay:first",o.gbox).show(); - $(selector).data("gbox",o.gbox); - } - $(selector).show().attr("aria-hidden","false"); - try{$(':input:visible',selector)[0].focus();}catch(_){} - } - }, - - info_dialog : function(caption, content,c_b, modalopt) { - var mopt = { - width:290, - height:'auto', - dataheight: 'auto', - drag: true, - resize: false, - caption:""+caption+"", - left:250, - top:170, - zIndex : 1000, - jqModal : true, - modal : false, - closeOnEscape : true, - align: 'center', - buttonalign : 'center', - buttons : [] - // {text:'textbutt', id:"buttid", onClick : function(){...}} - // if the id is not provided we set it like info_button_+ the index in the array - i.e info_button_0,info_button_1... - }; - $.extend(mopt,modalopt || {}); - var jm = mopt.jqModal, self = this; - if($.fn.jqm && !jm) { jm = false; } - // in case there is no jqModal - var buttstr =""; - if(mopt.buttons.length > 0) { - for(var i=0;i"+mopt.buttons[i].text+""; - } - } - var dh = isNaN(mopt.dataheight) ? mopt.dataheight : mopt.dataheight+"px", - cn = "text-align:"+mopt.align+";"; - var cnt = "
    "; - cnt += "
    "+content+"
    "; - cnt += c_b ? "
    "+c_b+""+buttstr+"
    " : - buttstr !== "" ? "
    "+buttstr+"
    " : ""; - cnt += "
    "; - - try { - if($("#info_dialog").attr("aria-hidden") == "false") { - this.hideModal("#info_dialog",{jqm:jm}); - } - $("#info_dialog").remove(); - } catch (e){} - this.createModal({ - themodal:'info_dialog', - modalhead:'info_head', - modalcontent:'info_content', - scrollelm: 'infocnt'}, - cnt, - mopt, - '','',true - ); - // attach onclick after inserting into the dom - if(buttstr) { - $.each(mopt.buttons,function(i){ - $("#"+this.id,"#info_id").bind('click',function(){mopt.buttons[i].onClick.call($("#info_dialog")); return false;}); - }); - } - $("#closedialog", "#info_id").click(function(e){ - self.hideModal("#info_dialog",{jqm:jm}); - return false; - }); - $(".fm-button","#info_dialog").hover( - function(){$(this).addClass('ui-state-hover');}, - function(){$(this).removeClass('ui-state-hover');} - ); - if($.isFunction(mopt.beforeOpen) ) { mopt.beforeOpen(); } - this.viewModal("#info_dialog",{ - onHide: function(h) { - h.w.hide().remove(); - if(h.o) { h.o.remove(); } - }, - modal :mopt.modal, - jqm:jm - }); - if($.isFunction(mopt.afterOpen) ) { mopt.afterOpen(); } - try{ $("#info_dialog").focus();} catch (m){} - }, -// Form Functions - createEl : function(eltype,options,vl,autowidth, ajaxso) { - var elem = ""; - function bindEv (el, opt) { - if($.isFunction(opt.dataInit)) { - opt.dataInit(el); - } - if(opt.dataEvents) { - $.each(opt.dataEvents, function() { - if (this.data !== undefined) { - $(el).bind(this.type, this.data, this.fn); - } else { - $(el).bind(this.type, this.fn); - } - }); - } - return opt; - } - function setAttributes(elm, atr, exl ) { - var exclude = ['dataInit','dataEvents','dataUrl', 'buildSelect','sopt', 'searchhidden', 'defaultValue', 'attr']; - if(typeof(exl) != "undefined" && $.isArray(exl)) { - exclude = $.extend(exclude, exl); - } - $.each(atr, function(key, value){ - if($.inArray(key, exclude) === -1) { - $(elm).attr(key,value); - } - }); - if(!atr.hasOwnProperty('id')) { - $(elm).attr('id', $.jgrid.randId()); - } - } - switch (eltype) - { - case "textarea" : - elem = document.createElement("textarea"); - if(autowidth) { - if(!options.cols) { $(elem).css({width:"98%"});} - } else if (!options.cols) { options.cols = 20; } - if(!options.rows) { options.rows = 2; } - if(vl==' ' || vl==' ' || (vl.length==1 && vl.charCodeAt(0)==160)) {vl="";} - elem.value = vl; - setAttributes(elem, options); - options = bindEv(elem,options); - $(elem).attr({"role":"textbox","multiline":"true"}); - break; - case "checkbox" : //what code for simple checkbox - elem = document.createElement("input"); - elem.type = "checkbox"; - if( !options.value ) { - var vl1 = vl.toLowerCase(); - if(vl1.search(/(false|0|no|off|undefined)/i)<0 && vl1!=="") { - elem.checked=true; - elem.defaultChecked=true; - elem.value = vl; - } else { - elem.value = "on"; - } - $(elem).attr("offval","off"); - } else { - var cbval = options.value.split(":"); - if(vl === cbval[0]) { - elem.checked=true; - elem.defaultChecked=true; - } - elem.value = cbval[0]; - $(elem).attr("offval",cbval[1]); - } - setAttributes(elem, options, ['value']); - options = bindEv(elem,options); - $(elem).attr("role","checkbox"); - break; - case "select" : - elem = document.createElement("select"); - elem.setAttribute("role","select"); - var msl, ovm = []; - if(options.multiple===true) { - msl = true; - elem.multiple="multiple"; - $(elem).attr("aria-multiselectable","true"); - } else { msl = false; } - if(typeof(options.dataUrl) != "undefined") { - $.ajax($.extend({ - url: options.dataUrl, - type : "GET", - dataType: "html", - context: {elem:elem, options:options, vl:vl}, - success: function(data,status){ - var a, ovm = [], elem = this.elem, vl = this.vl, - options = $.extend({},this.options), - msl = options.multiple===true; - if(typeof(options.buildSelect) != "undefined") { - var b = options.buildSelect(data); - a = $(b).html(); - } else { - a = $(data).html(); - } - if(a) { - $(elem).append(a); - setAttributes(elem, options); - options = bindEv(elem,options); - if(typeof options.size === 'undefined') { options.size = msl ? 3 : 1;} - if(msl) { - ovm = vl.split(","); - ovm = $.map(ovm,function(n){return $.trim(n);}); - } else { - ovm[0] = $.trim(vl); - } - //$(elem).attr(options); - setTimeout(function(){ - $("option",elem).each(function(i){ - //if(i===0) { this.selected = ""; } - $(this).attr("role","option"); - if($.inArray($.trim($(this).text()),ovm) > -1 || $.inArray($.trim($(this).val()),ovm) > -1 ) { - this.selected= "selected"; - } - }); - },0); - } - } - },ajaxso || {})); - } else if(options.value) { - var i; - if(typeof options.size === 'undefined') { - options.size = msl ? 3 : 1; - } - if(msl) { - ovm = vl.split(","); - ovm = $.map(ovm,function(n){return $.trim(n);}); - } - if(typeof options.value === 'function') { options.value = options.value(); } - var so,sv, ov, - sep = options.separator === undefined ? ":" : options.separator; - if(typeof options.value === 'string') { - so = options.value.split(";"); - for(i=0; i 2 ) { - sv[1] = $.map(sv,function(n,ii){if(ii>0) { return n;} }).join(":"); - } - ov = document.createElement("option"); - ov.setAttribute("role","option"); - ov.value = sv[0]; ov.innerHTML = sv[1]; - elem.appendChild(ov); - if (!msl && ($.trim(sv[0]) == $.trim(vl) || $.trim(sv[1]) == $.trim(vl))) { ov.selected ="selected"; } - if (msl && ($.inArray($.trim(sv[1]), ovm)>-1 || $.inArray($.trim(sv[0]), ovm)>-1)) {ov.selected ="selected";} - } - } else if (typeof options.value === 'object') { - var oSv = options.value; - for ( var key in oSv) { - if (oSv.hasOwnProperty(key ) ){ - ov = document.createElement("option"); - ov.setAttribute("role","option"); - ov.value = key; ov.innerHTML = oSv[key]; - elem.appendChild(ov); - if (!msl && ( $.trim(key) == $.trim(vl) || $.trim(oSv[key]) == $.trim(vl)) ) { ov.selected ="selected"; } - if (msl && ($.inArray($.trim(oSv[key]),ovm)>-1 || $.inArray($.trim(key),ovm)>-1)) { ov.selected ="selected"; } - } - } - } - setAttributes(elem, options, ['value']); - options = bindEv(elem,options); - } - break; - case "text" : - case "password" : - case "button" : - var role; - if(eltype=="button") { role = "button"; } - else { role = "textbox"; } - elem = document.createElement("input"); - elem.type = eltype; - elem.value = vl; - setAttributes(elem, options); - options = bindEv(elem,options); - if(eltype != "button"){ - if(autowidth) { - if(!options.size) { $(elem).css({width:"98%"}); } - } else if (!options.size) { options.size = 20; } - } - $(elem).attr("role",role); - break; - case "image" : - case "file" : - elem = document.createElement("input"); - elem.type = eltype; - setAttributes(elem, options); - options = bindEv(elem,options); - break; - case "custom" : - elem = document.createElement("span"); - try { - if($.isFunction(options.custom_element)) { - var celm = options.custom_element.call(this,vl,options); - if(celm) { - celm = $(celm).addClass("customelement").attr({id:options.id,name:options.name}); - $(elem).empty().append(celm); - } else { - throw "e2"; - } - } else { - throw "e1"; - } - } catch (e) { - if (e=="e1") { this.info_dialog($.jgrid.errors.errcap,"function 'custom_element' "+$.jgrid.edit.msg.nodefined, $.jgrid.edit.bClose);} - if (e=="e2") { this.info_dialog($.jgrid.errors.errcap,"function 'custom_element' "+$.jgrid.edit.msg.novalue,$.jgrid.edit.bClose);} - else { this.info_dialog($.jgrid.errors.errcap,typeof(e)==="string"?e:e.message,$.jgrid.edit.bClose); } - } - break; - } - return elem; - }, -// Date Validation Javascript - checkDate : function (format, date) { - var daysInFebruary = function(year){ - // February has 29 days in any year evenly divisible by four, - // EXCEPT for centurial years which are not also divisible by 400. - return (((year % 4 === 0) && ( year % 100 !== 0 || (year % 400 === 0))) ? 29 : 28 ); - }, - DaysArray = function(n) { - for (var i = 1; i <= n; i++) { - this[i] = 31; - if (i==4 || i==6 || i==9 || i==11) {this[i] = 30;} - if (i==2) {this[i] = 29;} - } - return this; - }; - - var tsp = {}, sep; - format = format.toLowerCase(); - //we search for /,-,. for the date separator - if(format.indexOf("/") != -1) { - sep = "/"; - } else if(format.indexOf("-") != -1) { - sep = "-"; - } else if(format.indexOf(".") != -1) { - sep = "."; - } else { - sep = "/"; - } - format = format.split(sep); - date = date.split(sep); - if (date.length != 3) { return false; } - var j=-1,yln, dln=-1, mln=-1; - for(var i=0;i12){ - return false; - } - } - if(dln === -1) { - return false; - } else { - strDate = tsp[format[dln]].toString(); - if (strDate.length<1 || tsp[format[dln]]<1 || tsp[format[dln]]>31 || (tsp[format[mln]]==2 && tsp[format[dln]]>daysInFebruary(tsp[format[j]])) || tsp[format[dln]] > daysInMonth[tsp[format[mln]]]){ - return false; - } - } - return true; - }, - isEmpty : function(val) - { - if (val.match(/^\s+$/) || val === "") { - return true; - } else { - return false; - } - }, - checkTime : function(time){ - // checks only hh:ss (and optional am/pm) - var re = /^(\d{1,2}):(\d{2})([ap]m)?$/,regs; - if(!this.isEmpty(time)) - { - regs = time.match(re); - if(regs) { - if(regs[3]) { - if(regs[1] < 1 || regs[1] > 12) { return false; } - } else { - if(regs[1] > 23) { return false; } - } - if(regs[2] > 59) { - return false; - } - } else { - return false; - } - } - return true; - }, - checkValues : function(val, valref,g, customobject, nam) { - var edtrul,i, nm, dft, len; - if(typeof(customobject) === "undefined") { - if(typeof(valref)=='string'){ - for( i =0, len=g.p.colModel.length;i=0) { - edtrul = g.p.colModel[valref].editrules; - } - } else { - edtrul = customobject; - nm = nam===undefined ? "_" : nam; - } - if(edtrul) { - if(!nm) { nm = g.p.colNames[valref]; } - if(edtrul.required === true) { - if( this.isEmpty(val) ) { return [false,nm+": "+$.jgrid.edit.msg.required,""]; } - } - // force required - var rqfield = edtrul.required === false ? false : true; - if(edtrul.number === true) { - if( !(rqfield === false && this.isEmpty(val)) ) { - if(isNaN(val)) { return [false,nm+": "+$.jgrid.edit.msg.number,""]; } - } - } - if(typeof edtrul.minValue != 'undefined' && !isNaN(edtrul.minValue)) { - if (parseFloat(val) < parseFloat(edtrul.minValue) ) { return [false,nm+": "+$.jgrid.edit.msg.minValue+" "+edtrul.minValue,""];} - } - if(typeof edtrul.maxValue != 'undefined' && !isNaN(edtrul.maxValue)) { - if (parseFloat(val) > parseFloat(edtrul.maxValue) ) { return [false,nm+": "+$.jgrid.edit.msg.maxValue+" "+edtrul.maxValue,""];} - } - var filter; - if(edtrul.email === true) { - if( !(rqfield === false && this.isEmpty(val)) ) { - // taken from $ Validate plugin - filter = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i; - if(!filter.test(val)) {return [false,nm+": "+$.jgrid.edit.msg.email,""];} - } - } - if(edtrul.integer === true) { - if( !(rqfield === false && this.isEmpty(val)) ) { - if(isNaN(val)) { return [false,nm+": "+$.jgrid.edit.msg.integer,""]; } - if ((val % 1 !== 0) || (val.indexOf('.') != -1)) { return [false,nm+": "+$.jgrid.edit.msg.integer,""];} - } - } - if(edtrul.date === true) { - if( !(rqfield === false && this.isEmpty(val)) ) { - if(g.p.colModel[valref].formatoptions && g.p.colModel[valref].formatoptions.newformat) { - dft = g.p.colModel[valref].formatoptions.newformat; - } else { - dft = g.p.colModel[valref].datefmt || "Y-m-d"; - } - if(!this.checkDate (dft, val)) { return [false,nm+": "+$.jgrid.edit.msg.date+" - "+dft,""]; } - } - } - if(edtrul.time === true) { - if( !(rqfield === false && this.isEmpty(val)) ) { - if(!this.checkTime (val)) { return [false,nm+": "+$.jgrid.edit.msg.date+" - hh:mm (am/pm)",""]; } - } - } - if(edtrul.url === true) { - if( !(rqfield === false && this.isEmpty(val)) ) { - filter = /^(((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i; - if(!filter.test(val)) {return [false,nm+": "+$.jgrid.edit.msg.url,""];} - } - } - if(edtrul.custom === true) { - if( !(rqfield === false && this.isEmpty(val)) ) { - if($.isFunction(edtrul.custom_func)) { - var ret = edtrul.custom_func.call(g,val,nm); - if($.isArray(ret)) { - return ret; - } else { - return [false,$.jgrid.edit.msg.customarray,""]; - } - } else { - return [false,$.jgrid.edit.msg.customfcheck,""]; - } - } - } - } - return [true,"",""]; - } -}); -})(jQuery); \ No newline at end of file diff --git a/js/i18n/grid.locale-ar.js b/js/i18n/grid.locale-ar.js deleted file mode 100644 index abe2c42..0000000 --- a/js/i18n/grid.locale-ar.js +++ /dev/null @@ -1,127 +0,0 @@ -;(function($){ -/** - * jqGrid Arabic Translation - * - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "تسجيل {0} - {1} على {2}", - emptyrecords: "لا يوجد تسجيل", - loadtext: "تحميل...", - pgtext : "صفحة {0} على {1}" - }, - search : { - caption: "بحث...", - Find: "بحث", - Reset: "إلغاء", - odata : ['يساوي', 'يختلف', 'أقل', 'أقل أو يساوي','أكبر','أكبر أو يساوي', 'يبدأ بـ','لا يبدأ بـ','est dans',"n'est pas dans",'ينته بـ','لا ينته بـ','يحتوي','لا يحتوي'], - groupOps: [ { op: "مع", text: "الكل" }, { op: "أو", text: "لا أحد" } ], - matchText: " توافق", - rulesText: " قواعد" - }, - edit : { - addCaption: "اضافة", - editCaption: "تحديث", - bSubmit: "تثبيث", - bCancel: "إلغاء", - bClose: "غلق", - saveData: "تغيرت المعطيات هل تريد التسجيل ?", - bYes: "نعم", - bNo: "لا", - bExit: "إلغاء", - msg: { - required: "خانة إجبارية", - number: "سجل رقم صحيح", - minValue: "يجب أن تكون القيمة أكبر أو تساوي 0", - maxValue: "يجب أن تكون القيمة أقل أو تساوي 0", - email: "بريد غير صحيح", - integer: "سجل عدد طبييعي صحيح", - url: "ليس عنوانا صحيحا. البداية الصحيحة ('http://' أو 'https://')", - nodefined : " ليس محدد!", - novalue : " قيمة الرجوع مطلوبة!", - customarray : "يجب على الدالة الشخصية أن تنتج جدولا", - customfcheck : "الدالة الشخصية مطلوبة في حالة التحقق الشخصي" - } - }, - view : { - caption: "رأيت التسجيلات", - bClose: "غلق" - }, - del : { - caption: "حذف", - msg: "حذف التسجيلات المختارة ?", - bSubmit: "حذف", - bCancel: "إلغاء" - }, - nav : { - edittext: " ", - edittitle: "تغيير التسجيل المختار", - addtext:" ", - addtitle: "إضافة تسجيل", - deltext: " ", - deltitle: "حذف التسجيل المختار", - searchtext: " ", - searchtitle: "بحث عن تسجيل", - refreshtext: "", - refreshtitle: "تحديث الجدول", - alertcap: "تحذير", - alerttext: "يرجى إختيار السطر", - viewtext: "", - viewtitle: "إظهار السطر المختار" - }, - col : { - caption: "إظهار/إخفاء الأعمدة", - bSubmit: "تثبيث", - bCancel: "إلغاء" - }, - errors : { - errcap : "خطأ", - nourl : "لا يوجد عنوان محدد", - norecords: "لا يوجد تسجيل للمعالجة", - model : "عدد العناوين (colNames) <> عدد التسجيلات (colModel)!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت", - "الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت" - ], - monthNames: [ - "جانفي", "فيفري", "مارس", "أفريل", "ماي", "جوان", "جويلية", "أوت", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر", - "جانفي", "فيفري", "مارس", "أفريل", "ماي", "جوان", "جويلية", "أوت", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر" - ], - AmPm : ["صباحا","مساءا","صباحا","مساءا"], - S: function (j) {return j == 1 ? 'er' : 'e';}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-bg.js b/js/i18n/grid.locale-bg.js deleted file mode 100644 index a936597..0000000 --- a/js/i18n/grid.locale-bg.js +++ /dev/null @@ -1,133 +0,0 @@ -;(function($){ -/** - * jqGrid Bulgarian Translation - * Tony Tomov tony@trirand.com - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "{0} - {1} от {2}", - emptyrecords: "Няма запис(и)", - loadtext: "Зареждам...", - pgtext : "Стр. {0} от {1}" - }, - search : { - caption: "Търсене...", - Find: "Намери", - Reset: "Изчисти", - odata : ['равно', 'различно', 'по-малко', 'по-малко или=','по-голямо','по-голямо или =', 'започва с','не започва с','се намира в','не се намира в','завършва с','не завършава с','съдържа', 'не съдържа' ], - groupOps: [ { op: "AND", text: " И " }, { op: "OR", text: "ИЛИ" } ], - matchText: " включи", - rulesText: " клауза" - }, - edit : { - addCaption: "Нов Запис", - editCaption: "Редакция Запис", - bSubmit: "Запиши", - bCancel: "Изход", - bClose: "Затвори", - saveData: "Данните са променени! Да съхраня ли промените?", - bYes : "Да", - bNo : "Не", - bExit : "Отказ", - msg: { - required:"Полето е задължително", - number:"Въведете валидно число!", - minValue:"стойността трябва да е по-голяма или равна от", - maxValue:"стойността трябва да е по-малка или равна от", - email: "не е валиден ел. адрес", - integer: "Въведете валидно цяло число", - date: "Въведете валидна дата", - url: "e невалиден URL. Изискава се префикс('http://' или 'https://')", - nodefined : " е недефинирана!", - novalue : " изисква връщане на стойност!", - customarray : "Потреб. Функция трябва да върне масив!", - customfcheck : "Потребителска функция е задължителна при този тип елемент!" - } - }, - view : { - caption: "Преглед запис", - bClose: "Затвори" - }, - del : { - caption: "Изтриване", - msg: "Да изтрия ли избраният запис?", - bSubmit: "Изтрий", - bCancel: "Отказ" - }, - nav : { - edittext: " ", - edittitle: "Редакция избран запис", - addtext:" ", - addtitle: "Добавяне нов запис", - deltext: " ", - deltitle: "Изтриване избран запис", - searchtext: " ", - searchtitle: "Търсене запис(и)", - refreshtext: "", - refreshtitle: "Обнови таблица", - alertcap: "Предупреждение", - alerttext: "Моля, изберете запис", - viewtext: "", - viewtitle: "Преглед избран запис" - }, - col : { - caption: "Избери колони", - bSubmit: "Ок", - bCancel: "Изход" - }, - errors : { - errcap : "Грешка", - nourl : "Няма посочен url адрес", - norecords: "Няма запис за обработка", - model : "Модела не съответства на имената!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:" лв.", defaultValue: '0.00'}, - date : { - dayNames: [ - "Нед", "Пон", "Вт", "Ср", "Чет", "Пет", "Съб", - "Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота" - ], - monthNames: [ - "Яну", "Фев", "Мар", "Апр", "Май", "Юни", "Юли", "Авг", "Сеп", "Окт", "Нов", "Дек", - "Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември" - ], - AmPm : ["","","",""], - S: function (j) { - if(j==7 || j==8 || j== 27 || j== 28) { - return 'ми'; - } - return ['ви', 'ри', 'ти'][Math.min((j - 1) % 10, 2)]; - }, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-bg1251.js b/js/i18n/grid.locale-bg1251.js deleted file mode 100644 index 384ee42..0000000 --- a/js/i18n/grid.locale-bg1251.js +++ /dev/null @@ -1,133 +0,0 @@ -;(function($){ -/** - * jqGrid Bulgarian Translation - * Tony Tomov tony@trirand.com - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "{0} - {1} �� {2}", - emptyrecords: "���� �����(�)", - loadtext: "��������...", - pgtext : "���. {0} �� {1}" - }, - search : { - caption: "�������...", - Find: "������", - Reset: "�������", - odata : ['�����', '��������', '��-�����', '��-����� ���=','��-������','��-������ ��� =', '������� �','�� ������� �','�� ������ �','�� �� ������ �','�������� �','�� ��������� �','�������', '�� �������' ], - groupOps: [ { op: "AND", text: " � " }, { op: "OR", text: "���" } ], - matchText: " ������", - rulesText: " ������" - }, - edit : { - addCaption: "��� �����", - editCaption: "�������� �����", - bSubmit: "������", - bCancel: "�����", - bClose: "�������", - saveData: "������� �� ���������! �� ������� �� ���������?", - bYes : "��", - bNo : "��", - bExit : "�����", - msg: { - required:"������ � ������������", - number:"�������� ������� �����!", - minValue:"���������� ������ �� � ��-������ ��� ����� ��", - maxValue:"���������� ������ �� � ��-����� ��� ����� ��", - email: "�� � ������� ��. �����", - integer: "�������� ������� ���� �����", - date: "�������� ������� ����", - url: "e ��������� URL. �������� �� �������('http://' ��� 'https://')", - nodefined : " � ������������!", - novalue : " ������� ������� �� ��������!", - customarray : "������. ������� ������ �� ����� �����!", - customfcheck : "������������� ������� � ������������ ��� ���� ��� �������!" - } - }, - view : { - caption: "������� �����", - bClose: "�������" - }, - del : { - caption: "���������", - msg: "�� ������ �� ��������� �����?", - bSubmit: "������", - bCancel: "�����" - }, - nav : { - edittext: " ", - edittitle: "�������� ������ �����", - addtext:" ", - addtitle: "�������� ��� �����", - deltext: " ", - deltitle: "��������� ������ �����", - searchtext: " ", - searchtitle: "������� �����(�)", - refreshtext: "", - refreshtitle: "������ �������", - alertcap: "��������������", - alerttext: "����, �������� �����", - viewtext: "", - viewtitle: "������� ������ �����" - }, - col : { - caption: "����� ������", - bSubmit: "��", - bCancel: "�����" - }, - errors : { - errcap : "������", - nourl : "���� ������� url �����", - norecords: "���� ����� �� ���������", - model : "������ �� ����������� �� �������!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:" ��.", defaultValue: '0.00'}, - date : { - dayNames: [ - "���", "���", "��", "��", "���", "���", "���", - "������", "����������", "�������", "�����", "���������", "�����", "������" - ], - monthNames: [ - "���", "���", "���", "���", "���", "���", "���", "���", "���", "���", "���", "���", - "������", "��������", "����", "�����", "���", "���", "���", "������", "���������", "��������", "�������", "��������" - ], - AmPm : ["","","",""], - S: function (j) { - if(j==7 || j==8 || j== 27 || j== 28) { - return '��'; - } - return ['��', '��', '��'][Math.min((j - 1) % 10, 2)]; - }, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-cat.js b/js/i18n/grid.locale-cat.js deleted file mode 100644 index 6c5f9b7..0000000 --- a/js/i18n/grid.locale-cat.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid Catalan Translation - * Traducció jqGrid en Catatà per Faserline, S.L. - * http://www.faserline.com - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Mostrant {0} - {1} de {2}", - emptyrecords: "Sense registres que mostrar", - loadtext: "Carregant...", - pgtext : "Pàgina {0} de {1}" - }, - search : { - caption: "Cerca...", - Find: "Cercar", - Reset: "Buidar", - odata : ['equal', 'not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','does not begin with','is in','is not in','ends with','does not end with','contains','does not contain'], - groupOps: [ { op: "AND", text: "tot" }, { op: "OR", text: "qualsevol" } ], - matchText: " match", - rulesText: " rules" - }, - edit : { - addCaption: "Afegir registre", - editCaption: "Modificar registre", - bSubmit: "Guardar", - bCancel: "Cancelar", - bClose: "Tancar", - saveData: "Les dades han canviat. Guardar canvis?", - bYes : "Yes", - bNo : "No", - bExit : "Cancel", - msg: { - required:"Camp obligatori", - number:"Introdueixi un nombre", - minValue:"El valor ha de ser major o igual que ", - maxValue:"El valor ha de ser menor o igual a ", - email: "no és una direcció de correu vàlida", - integer: "Introdueixi un valor enter", - date: "Introdueixi una data correcta ", - url: "no és una URL vàlida. Prefix requerit ('http://' or 'https://')", - nodefined : " is not defined!", - novalue : " return value is required!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - } - }, - view : { - caption: "Veure registre", - bClose: "Tancar" - }, - del : { - caption: "Eliminar", - msg: "¿Desitja eliminar els registres seleccionats?", - bSubmit: "Eliminar", - bCancel: "Cancelar" - }, - nav : { - edittext: " ", - edittitle: "Modificar fila seleccionada", - addtext:" ", - addtitle: "Agregar nova fila", - deltext: " ", - deltitle: "Eliminar fila seleccionada", - searchtext: " ", - searchtitle: "Cercar informació", - refreshtext: "", - refreshtitle: "Refrescar taula", - alertcap: "Avís", - alerttext: "Seleccioni una fila", - viewtext: " ", - viewtitle: "Veure fila seleccionada" - }, -// setcolumns module - col : { - caption: "Mostrar/ocultar columnes", - bSubmit: "Enviar", - bCancel: "Cancelar" - }, - errors : { - errcap : "Error", - nourl : "No s'ha especificat una URL", - norecords: "No hi ha dades per processar", - model : "Les columnes de noms són diferents de les columnes del model" - }, - formatter : { - integer : {thousandsSeparator: ".", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds", - "Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte" - ], - monthNames: [ - "Gen", "Febr", "Març", "Abr", "Maig", "Juny", "Jul", "Ag", "Set", "Oct", "Nov", "Des", - "Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd-m-Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: 'show', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-cn.js b/js/i18n/grid.locale-cn.js deleted file mode 100644 index dbd271b..0000000 --- a/js/i18n/grid.locale-cn.js +++ /dev/null @@ -1,133 +0,0 @@ -;(function($){ -/** - * jqGrid Chinese Translation for v4.2 - * henryyan 2011.11.30 - * http://www.wsria.com - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * - * update 2011.11.30 - * add double u3000 SPACE for search:odata to fix SEARCH box display err when narrow width from only use of eq/ne/cn/in/lt/gt operator under IE6/7 -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "{0} - {1}\u3000共 {2} 条", // 共字前是全角空格 - emptyrecords: "无数据显示", - loadtext: "读取中...", - pgtext : " {0} 共 {1} 页" - }, - search : { - caption: "搜索...", - Find: "查找", - Reset: "重置", - odata : ['等于\u3000\u3000', '不等\u3000\u3000', '小于\u3000\u3000', '小于等于','大于\u3000\u3000','大于等于', - '开始于','不开始于','属于\u3000\u3000','不属于','结束于','不结束于','包含\u3000\u3000','不包含','空值于\u3000\u3000','非空值'], - groupOps: [ { op: "AND", text: "所有" }, { op: "OR", text: "任一" } ], - matchText: " 匹配", - rulesText: " 规则" - }, - edit : { - addCaption: "添加记录", - editCaption: "编辑记录", - bSubmit: "提交", - bCancel: "取消", - bClose: "关闭", - saveData: "数据已改变,是否保存?", - bYes : "是", - bNo : "否", - bExit : "取消", - msg: { - required:"此字段必需", - number:"请输入有效数字", - minValue:"输值必须大于等于 ", - maxValue:"输值必须小于等于 ", - email: "这不是有效的e-mail地址", - integer: "请输入有效整数", - date: "请输入有效时间", - url: "无效网址。前缀必须为 ('http://' 或 'https://')", - nodefined : " 未定义!", - novalue : " 需要返回值!", - customarray : "自定义函数需要返回数组!", - customfcheck : "Custom function should be present in case of custom checking!" - - } - }, - view : { - caption: "查看记录", - bClose: "关闭" - }, - del : { - caption: "删除", - msg: "删除所选记录?", - bSubmit: "删除", - bCancel: "取消" - }, - nav : { - edittext: "", - edittitle: "编辑所选记录", - addtext:"", - addtitle: "添加新记录", - deltext: "", - deltitle: "删除所选记录", - searchtext: "", - searchtitle: "查找", - refreshtext: "", - refreshtitle: "刷新表格", - alertcap: "注意", - alerttext: "请选择记录", - viewtext: "", - viewtitle: "查看所选记录" - }, - col : { - caption: "选择列", - bSubmit: "确定", - bCancel: "取消" - }, - errors : { - errcap : "错误", - nourl : "没有设置url", - norecords: "没有要处理的记录", - model : "colNames 和 colModel 长度不等!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat", - "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" - ], - monthNames: [ - "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", - "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'm-d-Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "Y/j/n", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-cs.js b/js/i18n/grid.locale-cs.js deleted file mode 100644 index aecceb8..0000000 --- a/js/i18n/grid.locale-cs.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid Czech Translation - * Pavel Jirak pavel.jirak@jipas.cz - * doplnil Thomas Wagner xwagne01@stud.fit.vutbr.cz - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Zobrazeno {0} - {1} z {2} záznamů", - emptyrecords: "Nenalezeny žádné záznamy", - loadtext: "Načítám...", - pgtext : "Strana {0} z {1}" - }, - search : { - caption: "Vyhledávám...", - Find: "Hledat", - Reset: "Reset", - odata : ['rovno', 'nerovono', 'menší', 'menší nebo rovno','větší', 'větší nebo rovno', 'začíná s', 'nezačíná s', 'je v', 'není v', 'končí s', 'nekončí s', 'obahuje', 'neobsahuje'], - groupOps: [ { op: "AND", text: "všech" }, { op: "OR", text: "některého z" } ], - matchText: " hledat podle", - rulesText: " pravidel" - }, - edit : { - addCaption: "Přidat záznam", - editCaption: "Editace záznamu", - bSubmit: "Uložit", - bCancel: "Storno", - bClose: "Zavřít", - saveData: "Data byla změněna! Uložit změny?", - bYes : "Ano", - bNo : "Ne", - bExit : "Zrušit", - msg: { - required:"Pole je vyžadováno", - number:"Prosím, vložte validní číslo", - minValue:"hodnota musí být větší než nebo rovná ", - maxValue:"hodnota musí být menší než nebo rovná ", - email: "není validní e-mail", - integer: "Prosím, vložte celé číslo", - date: "Prosím, vložte validní datum", - url: "není platnou URL. Vyžadován prefix ('http://' or 'https://')", - nodefined : " není definován!", - novalue : " je vyžadována návratová hodnota!", - customarray : "Custom function mělá vrátit pole!", - customfcheck : "Custom function by měla být přítomna v případě custom checking!" - } - }, - view : { - caption: "Zobrazit záznam", - bClose: "Zavřít" - }, - del : { - caption: "Smazat", - msg: "Smazat vybraný(é) záznam(y)?", - bSubmit: "Smazat", - bCancel: "Storno" - }, - nav : { - edittext: " ", - edittitle: "Editovat vybraný řádek", - addtext:" ", - addtitle: "Přidat nový řádek", - deltext: " ", - deltitle: "Smazat vybraný záznam ", - searchtext: " ", - searchtitle: "Najít záznamy", - refreshtext: "", - refreshtitle: "Obnovit tabulku", - alertcap: "Varování", - alerttext: "Prosím, vyberte řádek", - viewtext: "", - viewtitle: "Zobrazit vybraný řádek" - }, - col : { - caption: "Zobrazit/Skrýt sloupce", - bSubmit: "Uložit", - bCancel: "Storno" - }, - errors : { - errcap : "Chyba", - nourl : "Není nastavena url", - norecords: "Žádné záznamy ke zpracování", - model : "Délka colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Ne", "Po", "Út", "St", "Čt", "Pá", "So", - "Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota" - ], - monthNames: [ - "Led", "Úno", "Bře", "Dub", "Kvě", "Čer", "Čvc", "Srp", "Zář", "Říj", "Lis", "Pro", - "Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec" - ], - AmPm : ["do","od","DO","OD"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-da.js b/js/i18n/grid.locale-da.js deleted file mode 100644 index fb2a9b0..0000000 --- a/js/i18n/grid.locale-da.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid Danish Translation - * Aesiras A/S - * http://www.aesiras.dk - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Vis {0} - {1} of {2}", - emptyrecords: "Ingen linjer fundet", - loadtext: "Henter...", - pgtext : "Side {0} af {1}" - }, - search : { - caption: "Søg...", - Find: "Find", - Reset: "Nulstil", - odata : ['lig', 'forskellige fra', 'mindre', 'mindre eller lig','større','større eller lig', 'begynder med','begynder ikke med','findes i','findes ikke i','ender med','ender ikke med','indeholder','indeholder ikke'], - groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ], - matchText: " lig", - rulesText: " regler" - }, - edit : { - addCaption: "Tilføj", - editCaption: "Ret", - bSubmit: "Send", - bCancel: "Annuller", - bClose: "Luk", - saveData: "Data er ændret. Gem data?", - bYes : "Ja", - bNo : "Nej", - bExit : "Fortryd", - msg: { - required:"Felt er nødvendigt", - number:"Indtast venligst et validt tal", - minValue:"værdi skal være større end eller lig med", - maxValue:"værdi skal være mindre end eller lig med", - email: "er ikke en gyldig email", - integer: "Indtast venligst et gyldigt heltal", - date: "Indtast venligst en gyldig datoværdi", - url: "er ugyldig URL. Prefix mangler ('http://' or 'https://')", - nodefined : " er ikke defineret!", - novalue : " returværdi kræves!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - } - }, - view : { - caption: "Vis linje", - bClose: "Luk" - }, - del : { - caption: "Slet", - msg: "Slet valgte linje(r)?", - bSubmit: "Slet", - bCancel: "Fortryd" - }, - nav : { - edittext: " ", - edittitle: "Rediger valgte linje", - addtext:" ", - addtitle: "Tilføj ny linje", - deltext: " ", - deltitle: "Slet valgte linje", - searchtext: " ", - searchtitle: "Find linjer", - refreshtext: "", - refreshtitle: "Indlæs igen", - alertcap: "Advarsel", - alerttext: "Vælg venligst linje", - viewtext: "", - viewtitle: "Vis valgte linje" - }, - col : { - caption: "Vis/skjul kolonner", - bSubmit: "Opdatere", - bCancel: "Fortryd" - }, - errors : { - errcap : "Fejl", - nourl : "Ingen url valgt", - norecords: "Ingen linjer at behandle", - model : "colNames og colModel har ikke samme længde!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør", - "Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag" - ], - monthNames: [ - "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec", - "Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December" - ], - AmPm : ["","","",""], - S: function (j) {return '.'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "j/n/Y", - LongDate: "l d. F Y", - FullDateTime: "l d F Y G:i:s", - MonthDay: "d. F", - ShortTime: "G:i", - LongTime: "G:i:s", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -// DA -})(jQuery); diff --git a/js/i18n/grid.locale-de.js b/js/i18n/grid.locale-de.js deleted file mode 100644 index 7ef2020..0000000 --- a/js/i18n/grid.locale-de.js +++ /dev/null @@ -1,172 +0,0 @@ -;(function($){ -/** - * jqGrid German Translation - * Version 1.0.0 (developed for jQuery Grid 3.3.1) - * Olaf Klöppel opensource@blue-hit.de - * http://blue-hit.de/ - * - * Updated for jqGrid 3.8 - * Andreas Flack - * http://www.contentcontrol-berlin.de - * - * Updated for jQuery 4.4 - * Oleg Kiriljuk oleg.kiriljuk@ok-soft-gmbh.com - * the format corresponds now the format from - * https://github.com/jquery/globalize/blob/master/lib/cultures/globalize.culture.de.js - * - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Zeige {0} - {1} von {2}", - emptyrecords: "Keine Datensätze vorhanden", - loadtext: "Lädt...", - pgtext : "Seite {0} von {1}" - }, - search : { - caption: "Suche...", - Find: "Suchen", - Reset: "Zurücksetzen", - odata : ['gleich', 'ungleich', 'kleiner', 'kleiner gleich','größer','größer gleich', 'beginnt mit','beginnt nicht mit','ist in','ist nicht in','endet mit','endet nicht mit','enthält','enthält nicht'], - groupOps: [ { op: "AND", text: "alle" }, { op: "OR", text: "mindestens eine" } ], - matchText: " erfülle", - rulesText: " Bedingung(en)" - }, - edit : { - addCaption: "Datensatz hinzufügen", - editCaption: "Datensatz bearbeiten", - bSubmit: "Speichern", - bCancel: "Abbrechen", - bClose: "Schließen", - saveData: "Daten wurden geändert! Änderungen speichern?", - bYes : "ja", - bNo : "nein", - bExit : "abbrechen", - msg: { - required:"Feld ist erforderlich", - number: "Bitte geben Sie eine Zahl ein", - minValue:"Wert muss größer oder gleich sein, als ", - maxValue:"Wert muss kleiner oder gleich sein, als ", - email: "ist keine gültige E-Mail-Adresse", - integer: "Bitte geben Sie eine Ganzzahl ein", - date: "Bitte geben Sie ein gültiges Datum ein", - url: "ist keine gültige URL. Präfix muss eingegeben werden ('http://' oder 'https://')", - nodefined : " ist nicht definiert!", - novalue : " Rückgabewert ist erforderlich!", - customarray : "Benutzerdefinierte Funktion sollte ein Array zurückgeben!", - customfcheck : "Benutzerdefinierte Funktion sollte im Falle der benutzerdefinierten Überprüfung vorhanden sein!" - } - }, - view : { - caption: "Datensatz anzeigen", - bClose: "Schließen" - }, - del : { - caption: "Löschen", - msg: "Ausgewählte Datensätze löschen?", - bSubmit: "Löschen", - bCancel: "Abbrechen" - }, - nav : { - edittext: " ", - edittitle: "Ausgewählte Zeile editieren", - addtext:" ", - addtitle: "Neue Zeile einfügen", - deltext: " ", - deltitle: "Ausgewählte Zeile löschen", - searchtext: " ", - searchtitle: "Datensatz suchen", - refreshtext: "", - refreshtitle: "Tabelle neu laden", - alertcap: "Warnung", - alerttext: "Bitte Zeile auswählen", - viewtext: "", - viewtitle: "Ausgewählte Zeile anzeigen" - }, - col : { - caption: "Spalten auswählen", - bSubmit: "Speichern", - bCancel: "Abbrechen" - }, - errors : { - errcap : "Fehler", - nourl : "Keine URL angegeben", - norecords: "Keine Datensätze zu bearbeiten", - model : "colNames und colModel sind unterschiedlich lang!" - }, - formatter : { - integer : {thousandsSeparator: ".", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix:" €", defaultValue: '0,00'}, - date : { - dayNames: [ - "So", "Mo", "Di", "Mi", "Do", "Fr", "Sa", - "Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag" - ], - monthNames: [ - "Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", - "Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember" - ], - AmPm : ["","","",""], - S: function (j) {return '.';}, // one can also use 'er' instead of '.' but one have to use additional word like 'der' or 'den' before - srcformat: 'Y-m-d', - newformat: 'd.m.Y', - masks : { - // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid - // and see http://docs.jquery.com/UI/Datepicker/formatDate - // and https://github.com/jquery/globalize#dates for alternative formats used frequently - ISO8601Long: "Y-m-d H:i:s", - ISO8601Short: "Y-m-d", - // short date: - // d - Day of the month, 2 digits with leading zeros - // m - Numeric representation of a month, with leading zeros - // Y - A full numeric representation of a year, 4 digits - ShortDate: "d.m.Y", // in jQuery UI Datepicker: "dd.MM.yyyy" - // long date: - // l - A full textual representation of the day of the week - // j - Day of the month without leading zeros - // F - A full textual representation of a month - // Y - A full numeric representation of a year, 4 digits - LongDate: "l, j. F Y", // in jQuery UI Datepicker: "dddd, d. MMMM yyyy" - // long date with long time: - // l - A full textual representation of the day of the week - // j - Day of the month without leading zeros - // F - A full textual representation of a month - // Y - A full numeric representation of a year, 4 digits - // H - 24-hour format of an hour with leading zeros - // i - Minutes with leading zeros - // s - Seconds, with leading zeros - FullDateTime: "l, j. F Y H:i:s", // in jQuery UI Datepicker: "dddd, d. MMMM yyyy HH:mm:ss" - // month day: - // d - Day of the month, 2 digits with leading zeros - // F - A full textual representation of a month - MonthDay: "d F", // in jQuery UI Datepicker: "dd MMMM" - // short time (without seconds) - // H - 24-hour format of an hour with leading zeros - // i - Minutes with leading zeros - ShortTime: "H:i", // in jQuery UI Datepicker: "HH:mm" - // long time (with seconds) - // H - 24-hour format of an hour with leading zeros - // i - Minutes with leading zeros - // s - Seconds, with leading zeros - LongTime: "H:i:s", // in jQuery UI Datepicker: "HH:mm:ss" - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - // month with year - // F - A full textual representation of a month - // Y - A full numeric representation of a year, 4 digits - YearMonth: "F Y" // in jQuery UI Datepicker: "MMMM yyyy" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); \ No newline at end of file diff --git a/js/i18n/grid.locale-dk.js b/js/i18n/grid.locale-dk.js deleted file mode 100644 index 16d363b..0000000 --- a/js/i18n/grid.locale-dk.js +++ /dev/null @@ -1,128 +0,0 @@ -;(function($){ -/** - * jqGrid Danish Translation - * Kaare Rasmussen kjs@jasonic.dk - * http://jasonic.dk/blog - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = { - defaults : { - recordtext: "View {0} - {1} of {2}", - emptyrecords: "No records to view", - loadtext: "Loading...", - pgtext : "Page {0} of {1}" - }, - search : { - caption: "Søg...", - Find: "Find", - Reset: "Nulstil", - odata : ['equal', 'not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','does not begin with','is in','is not in','ends with','does not end with','contains','does not contain'], - groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ], - matchText: " match", - rulesText: " rules" - }, - edit : { - addCaption: "Tilføj", - editCaption: "Ret", - bSubmit: "Send", - bCancel: "Annuller", - bClose: "Luk", - saveData: "Data has been changed! Save changes?", - bYes : "Yes", - bNo : "No", - bExit : "Cancel", - msg: { - required:"Felt er nødvendigt", - number:"Indtast venligst et validt tal", - minValue:"værdi skal være større end eller lig med", - maxValue:"værdi skal være mindre end eller lig med", - email: "er ikke en valid email", - integer: "Indtast venligst et validt heltalt", - date: "Indtast venligst en valid datoværdi", - url: "is not a valid URL. Prefix required ('http://' or 'https://')", - nodefined : " is not defined!", - novalue : " return value is required!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - } - }, - view : { - caption: "View Record", - bClose: "Close" - }, - del : { - caption: "Slet", - msg: "Slet valgte række(r)?", - bSubmit: "Slet", - bCancel: "Annuller" - }, - nav : { - edittext: " ", - edittitle: "Rediger valgte række", - addtext:" ", - addtitle: "Tilføj ny række", - deltext: " ", - deltitle: "Slet valgte række", - searchtext: " ", - searchtitle: "Find poster", - refreshtext: "", - refreshtitle: "Indlæs igen", - alertcap: "Advarsel", - alerttext: "Vælg venligst række", - viewtext: "", - viewtitle: "View selected row" - }, - col : { - caption: "Vis/skjul kolonner", - bSubmit: "Send", - bCancel: "Annuller" - }, - errors : { - errcap : "Fejl", - nourl : "Ingel url valgt", - norecords: "Ingen poster at behandle", - model : "colNames og colModel har ikke samme længde!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "Søn", "Man", "Tirs", "Ons", "Tors", "Fre", "Lør", - "Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag" - ], - monthNames: [ - "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec", - "Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December" - ], - AmPm : ["","","",""], - S: function (j) {return '.'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "j/n/Y", - LongDate: "l d. F Y", - FullDateTime: "l d F Y G:i:s", - MonthDay: "d. F", - ShortTime: "G:i", - LongTime: "G:i:s", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}; -// DK -})(jQuery); diff --git a/js/i18n/grid.locale-el.js b/js/i18n/grid.locale-el.js deleted file mode 100644 index 7fdc150..0000000 --- a/js/i18n/grid.locale-el.js +++ /dev/null @@ -1,127 +0,0 @@ -;(function($){ -/** - * jqGrid Greek (el) Translation - * Alex Cicovic - * http://www.alexcicovic.com - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "View {0} - {1} of {2}", - emptyrecords: "No records to view", - loadtext: "Φόρτωση...", - pgtext : "Page {0} of {1}" - }, - search : { - caption: "Αναζήτηση...", - Find: "Εύρεση", - Reset: "Επαναφορά", - odata : ['equal', 'not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','does not begin with','is in','is not in','ends with','does not end with','contains','does not contain'], - groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ], - matchText: " match", - rulesText: " rules" - }, - edit : { - addCaption: "Εισαγωγή Εγγραφής", - editCaption: "Επεξεργασία Εγγραφής", - bSubmit: "Καταχώρηση", - bCancel: "Άκυρο", - bClose: "Κλείσιμο", - saveData: "Data has been changed! Save changes?", - bYes : "Yes", - bNo : "No", - bExit : "Cancel", - msg: { - required:"Το πεδίο είναι απαραίτητο", - number:"Το πεδίο δέχεται μόνο αριθμούς", - minValue:"Η τιμή πρέπει να είναι μεγαλύτερη ή ίση του ", - maxValue:"Η τιμή πρέπει να είναι μικρότερη ή ίση του ", - email: "Η διεύθυνση e-mail δεν είναι έγκυρη", - integer: "Το πεδίο δέχεται μόνο ακέραιους αριθμούς", - url: "is not a valid URL. Prefix required ('http://' or 'https://')", - nodefined : " is not defined!", - novalue : " return value is required!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - } - }, - view : { - caption: "View Record", - bClose: "Close" - }, - del : { - caption: "Διαγραφή", - msg: "Διαγραφή των επιλεγμένων εγγραφών;", - bSubmit: "Ναι", - bCancel: "Άκυρο" - }, - nav : { - edittext: " ", - edittitle: "Επεξεργασία επιλεγμένης εγγραφής", - addtext:" ", - addtitle: "Εισαγωγή νέας εγγραφής", - deltext: " ", - deltitle: "Διαγραφή επιλεγμένης εγγραφής", - searchtext: " ", - searchtitle: "Εύρεση Εγγραφών", - refreshtext: "", - refreshtitle: "Ανανέωση Πίνακα", - alertcap: "Προσοχή", - alerttext: "Δεν έχετε επιλέξει εγγραφή", - viewtext: "", - viewtitle: "View selected row" - }, - col : { - caption: "Εμφάνιση / Απόκρυψη Στηλών", - bSubmit: "ΟΚ", - bCancel: "Άκυρο" - }, - errors : { - errcap : "Σφάλμα", - nourl : "Δεν έχει δοθεί διεύθυνση χειρισμού για τη συγκεκριμένη ενέργεια", - norecords: "Δεν υπάρχουν εγγραφές προς επεξεργασία", - model : "Άνισος αριθμός πεδίων colNames/colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Κυρ", "Δευ", "Τρι", "Τετ", "Πεμ", "Παρ", "Σαβ", - "Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο" - ], - monthNames: [ - "Ιαν", "Φεβ", "Μαρ", "Απρ", "Μαι", "Ιουν", "Ιουλ", "Αυγ", "Σεπ", "Οκτ", "Νοε", "Δεκ", - "Ιανουάριος", "Φεβρουάριος", "Μάρτιος", "Απρίλιος", "Μάιος", "Ιούνιος", "Ιούλιος", "Αύγουστος", "Σεπτέμβριος", "Οκτώβριος", "Νοέμβριος", "Δεκέμβριος" - ], - AmPm : ["πμ","μμ","ΠΜ","ΜΜ"], - S: function (j) {return j == 1 || j > 1 ? ['η'][Math.min((j - 1) % 10, 3)] : ''}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-en.js b/js/i18n/grid.locale-en.js deleted file mode 100644 index 14dd4c6..0000000 --- a/js/i18n/grid.locale-en.js +++ /dev/null @@ -1,169 +0,0 @@ -;(function($){ -/** - * jqGrid English Translation - * Tony Tomov tony@trirand.com - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "View {0} - {1} of {2}", - emptyrecords: "No records to view", - loadtext: "Loading...", - pgtext : "Page {0} of {1}" - }, - search : { - caption: "Search...", - Find: "Find", - Reset: "Reset", - odata : ['equal', 'not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','does not begin with','is in','is not in','ends with','does not end with','contains','does not contain'], - groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ], - matchText: " match", - rulesText: " rules" - }, - edit : { - addCaption: "Add Record", - editCaption: "Edit Record", - bSubmit: "Submit", - bCancel: "Cancel", - bClose: "Close", - saveData: "Data has been changed! Save changes?", - bYes : "Yes", - bNo : "No", - bExit : "Cancel", - msg: { - required:"Field is required", - number:"Please, enter valid number", - minValue:"value must be greater than or equal to ", - maxValue:"value must be less than or equal to", - email: "is not a valid e-mail", - integer: "Please, enter valid integer value", - date: "Please, enter valid date value", - url: "is not a valid URL. Prefix required ('http://' or 'https://')", - nodefined : " is not defined!", - novalue : " return value is required!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - - } - }, - view : { - caption: "View Record", - bClose: "Close" - }, - del : { - caption: "Delete", - msg: "Delete selected record(s)?", - bSubmit: "Delete", - bCancel: "Cancel" - }, - nav : { - edittext: "", - edittitle: "Edit selected row", - addtext:"", - addtitle: "Add new row", - deltext: "", - deltitle: "Delete selected row", - searchtext: "", - searchtitle: "Find records", - refreshtext: "", - refreshtitle: "Reload Grid", - alertcap: "Warning", - alerttext: "Please, select row", - viewtext: "", - viewtitle: "View selected row" - }, - col : { - caption: "Select columns", - bSubmit: "Ok", - bCancel: "Cancel" - }, - errors : { - errcap : "Error", - nourl : "No url is set", - norecords: "No records to process", - model : "Length of colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: ",", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat", - "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" - ], - monthNames: [ - "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", - "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th';}, - srcformat: 'Y-m-d', - newformat: 'n/j/Y', - masks : { - // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid - // and see http://docs.jquery.com/UI/Datepicker/formatDate - // and https://github.com/jquery/globalize#dates for alternative formats used frequently - // one can find on https://github.com/jquery/globalize/tree/master/lib/cultures many - // information about date, time, numbers and currency formats used in different countries - // one should just convert the information in PHP format - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - // short date: - // n - Numeric representation of a month, without leading zeros - // j - Day of the month without leading zeros - // Y - A full numeric representation of a year, 4 digits - // example: 3/1/2012 which means 1 March 2012 - ShortDate: "n/j/Y", // in jQuery UI Datepicker: "M/d/yyyy" - // long date: - // l - A full textual representation of the day of the week - // F - A full textual representation of a month - // d - Day of the month, 2 digits with leading zeros - // Y - A full numeric representation of a year, 4 digits - LongDate: "l, F d, Y", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy" - // long date with long time: - // l - A full textual representation of the day of the week - // F - A full textual representation of a month - // d - Day of the month, 2 digits with leading zeros - // Y - A full numeric representation of a year, 4 digits - // g - 12-hour format of an hour without leading zeros - // i - Minutes with leading zeros - // s - Seconds, with leading zeros - // A - Uppercase Ante meridiem and Post meridiem (AM or PM) - FullDateTime: "l, F d, Y g:i:s A", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy h:mm:ss tt" - // month day: - // F - A full textual representation of a month - // d - Day of the month, 2 digits with leading zeros - MonthDay: "F d", // in jQuery UI Datepicker: "MMMM dd" - // short time (without seconds) - // g - 12-hour format of an hour without leading zeros - // i - Minutes with leading zeros - // A - Uppercase Ante meridiem and Post meridiem (AM or PM) - ShortTime: "g:i A", // in jQuery UI Datepicker: "h:mm tt" - // long time (with seconds) - // g - 12-hour format of an hour without leading zeros - // i - Minutes with leading zeros - // s - Seconds, with leading zeros - // A - Uppercase Ante meridiem and Post meridiem (AM or PM) - LongTime: "g:i:s A", // in jQuery UI Datepicker: "h:mm:ss tt" - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - // month with year - // Y - A full numeric representation of a year, 4 digits - // F - A full textual representation of a month - YearMonth: "F, Y" // in jQuery UI Datepicker: "MMMM, yyyy" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-es.js b/js/i18n/grid.locale-es.js deleted file mode 100644 index 0ca002e..0000000 --- a/js/i18n/grid.locale-es.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid Spanish Translation - * Traduccion jqGrid en Español por Yamil Bracho - * Traduccion corregida y ampliada por Faserline, S.L. - * http://www.faserline.com - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Mostrando {0} - {1} de {2}", - emptyrecords: "Sin registros que mostrar", - loadtext: "Cargando...", - pgtext : "Página {0} de {1}" - }, - search : { - caption: "Búsqueda...", - Find: "Buscar", - Reset: "Limpiar", - odata : ['igual ', 'no igual a', 'menor que', 'menor o igual que','mayor que','mayor o igual a', 'empiece por','no empiece por','está en','no está en','termina por','no termina por','contiene','no contiene'], - groupOps: [ { op: "AND", text: "todo" }, { op: "OR", text: "cualquier" } ], - matchText: " match", - rulesText: " reglas" - }, - edit : { - addCaption: "Agregar registro", - editCaption: "Modificar registro", - bSubmit: "Guardar", - bCancel: "Cancelar", - bClose: "Cerrar", - saveData: "Se han modificado los datos, ¿guardar cambios?", - bYes : "Si", - bNo : "No", - bExit : "Cancelar", - msg: { - required:"Campo obligatorio", - number:"Introduzca un número", - minValue:"El valor debe ser mayor o igual a ", - maxValue:"El valor debe ser menor o igual a ", - email: "no es una dirección de correo válida", - integer: "Introduzca un valor entero", - date: "Introduza una fecha correcta ", - url: "no es una URL válida. Prefijo requerido ('http://' or 'https://')", - nodefined : " no está definido.", - novalue : " valor de retorno es requerido.", - customarray : "La función personalizada debe devolver un array.", - customfcheck : "La función personalizada debe estar presente en el caso de validación personalizada." - } - }, - view : { - caption: "Consultar registro", - bClose: "Cerrar" - }, - del : { - caption: "Eliminar", - msg: "¿Desea eliminar los registros seleccionados?", - bSubmit: "Eliminar", - bCancel: "Cancelar" - }, - nav : { - edittext: " ", - edittitle: "Modificar fila seleccionada", - addtext:" ", - addtitle: "Agregar nueva fila", - deltext: " ", - deltitle: "Eliminar fila seleccionada", - searchtext: " ", - searchtitle: "Buscar información", - refreshtext: "", - refreshtitle: "Recargar datos", - alertcap: "Aviso", - alerttext: "Seleccione una fila", - viewtext: "", - viewtitle: "Ver fila seleccionada" - }, - col : { - caption: "Mostrar/ocultar columnas", - bSubmit: "Enviar", - bCancel: "Cancelar" - }, - errors : { - errcap : "Error", - nourl : "No se ha especificado una URL", - norecords: "No hay datos para procesar", - model : "Las columnas de nombres son diferentes de las columnas de modelo" - }, - formatter : { - integer : {thousandsSeparator: ".", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa", - "Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sabado" - ], - monthNames: [ - "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic", - "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd-m-Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-fa.js b/js/i18n/grid.locale-fa.js deleted file mode 100644 index ee09a3e..0000000 --- a/js/i18n/grid.locale-fa.js +++ /dev/null @@ -1,146 +0,0 @@ -;(function ($) { -/** - * jqGrid Persian Translation - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ - $.jgrid = $.jgrid || {}; - $.extend($.jgrid,{ - defaults: { - recordtext: "نمابش {0} - {1} از {2}", - emptyrecords: "رکوردی یافت نشد", - loadtext: "بارگزاري...", - pgtext: "صفحه {0} از {1}" - }, - search: { - caption: "جستجو...", - Find: "يافته ها", - Reset: "از نو", - odata: ['برابر', 'نا برابر', 'به', 'کوچکتر', 'از', 'بزرگتر', 'شروع با', 'شروع نشود با', 'نباشد', 'عضو این نباشد', 'اتمام با', 'تمام نشود با', 'حاوی', 'نباشد حاوی'], - groupOps: [{ - op: "AND", - text: "کل" - }, - { - op: "OR", - text: "مجموع" - }], - matchText: " حاوی", - rulesText: " اطلاعات" - }, - edit: { - addCaption: "اضافه کردن رکورد", - editCaption: "ويرايش رکورد", - bSubmit: "ثبت", - bCancel: "انصراف", - bClose: "بستن", - saveData: "دیتا تعییر کرد! ذخیره شود؟", - bYes: "بله", - bNo: "خیر", - bExit: "انصراف", - msg: { - required: "فيلدها بايد ختما پر شوند", - number: "لطفا عدد وعتبر وارد کنيد", - minValue: "مقدار وارد شده بايد بزرگتر يا مساوي با", - maxValue: "مقدار وارد شده بايد کوچکتر يا مساوي", - email: "پست الکترونيک وارد شده معتبر نيست", - integer: "لطفا يک عدد صحيح وارد کنيد", - date: "لطفا يک تاريخ معتبر وارد کنيد", - url: "این آدرس صحیح نمی باشد. پیشوند نیاز است ('http://' یا 'https://')", - nodefined: " تعریف نشده!", - novalue: " مقدار برگشتی اجباری است!", - customarray: "تابع شما باید مقدار آرایه داشته باشد!", - customfcheck: "برای داشتن متد دلخواه شما باید سطون با چکینگ دلخواه داشته باشید!" - } - }, - view: { - caption: "نمایش رکورد", - bClose: "بستن" - }, - del: { - caption: "حذف", - msg: "از حذف گزينه هاي انتخاب شده مطمئن هستيد؟", - bSubmit: "حذف", - bCancel: "ابطال" - }, - nav: { - edittext: " ", - edittitle: "ويرايش رديف هاي انتخاب شده", - addtext: " ", - addtitle: "افزودن رديف جديد", - deltext: " ", - deltitle: "حذف ردبف هاي انتیاب شده", - searchtext: " ", - searchtitle: "جستجوي رديف", - refreshtext: "", - refreshtitle: "بازيابي مجدد صفحه", - alertcap: "اخطار", - alerttext: "لطفا يک رديف انتخاب کنيد", - viewtext: "", - viewtitle: "نمایش رکورد های انتخاب شده" - }, - col: { - caption: "نمايش/عدم نمايش ستون", - bSubmit: "ثبت", - bCancel: "انصراف" - }, - errors: { - errcap: "خطا", - nourl: "هيچ آدرسي تنظيم نشده است", - norecords: "هيچ رکوردي براي پردازش موجود نيست", - model: "طول نام ستون ها محالف ستون هاي مدل مي باشد!" - }, - formatter: { - integer: { - thousandsSeparator: " ", - defaultValue: "0" - }, - number: { - decimalSeparator: ".", - thousandsSeparator: " ", - decimalPlaces: 2, - defaultValue: "0.00" - }, - currency: { - decimalSeparator: ".", - thousandsSeparator: " ", - decimalPlaces: 2, - prefix: "", - suffix: "", - defaultValue: "0" - }, - date: { - dayNames: ["يک", "دو", "سه", "چهار", "پنج", "جمع", "شنب", "يکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"], - monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "ژانويه", "فوريه", "مارس", "آوريل", "مه", "ژوئن", "ژوئيه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "December"], - AmPm: ["ب.ظ", "ب.ظ", "ق.ظ", "ق.ظ"], - S: function (b) { - return b < 11 || b > 13 ? ["st", "nd", "rd", "th"][Math.min((b - 1) % 10, 3)] : "th" - }, - srcformat: "Y-m-d", - newformat: "d/m/Y", - masks: { - ISO8601Long: "Y-m-d H:i:s", - ISO8601Short: "Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit: false - }, - baseLinkUrl: "", - showAction: "نمايش", - target: "", - checkbox: { - disabled: true - }, - idName: "id" - } - }); -})(jQuery); \ No newline at end of file diff --git a/js/i18n/grid.locale-fi.js b/js/i18n/grid.locale-fi.js deleted file mode 100644 index a6d1f2e..0000000 --- a/js/i18n/grid.locale-fi.js +++ /dev/null @@ -1,130 +0,0 @@ -;(function($){ -/** - * jqGrid (fi) Finnish Translation - * Jukka Inkeri awot.fi 2010-05-19 - * Alex Grönholm alex.gronholm@nextday.fi 2011-05-18 - * http://awot.fi - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults: { - recordtext: "Rivit {0} - {1} / {2}", - emptyrecords: "Ei näytettäviä", - loadtext: "Haetaan...", - pgtext: "Sivu {0} / {1}" - }, - search: { - caption: "Etsi...", - Find: "Etsi", - Reset: "Tyhjennä", - odata: ['on', 'ei ole', 'pienempi', 'pienempi tai yhtäsuuri','suurempi','suurempi tai yhtäsuuri', 'alkaa','ei ala','joukossa','ei joukossa','loppuu','ei lopu','sisältää','ei sisällä','on tyhjä','ei ole tyhjä'], - groupOps: [ { op: "AND", text: "kaikki" }, { op: "OR", text: "mikä tahansa" } ], - matchText: "  täytä ehdot:", - rulesText: "" - }, - edit: { - addCaption: "Uusi rivi", - editCaption: "Muokkaa riviä", - bSubmit: "OK", - bCancel: "Peru", - bClose: "Sulje", - saveData: "Tietoja muutettu! Tallennetaanko?", - bYes: "Kyllä", - bNo: "Ei", - bExit: "Peru", - msg: { - required: "pakollinen", - number: "Anna kelvollinen nro", - minValue: "arvon oltava suurempi tai yhtäsuuri kuin ", - maxValue: "arvon oltava pienempi tai yhtäsuuri kuin ", - email: "ei ole kelvollinen säpostiosoite", - integer: "Anna kelvollinen kokonaisluku", - date: "Anna kelvollinen pvm", - url: "Ei ole kelvollinen linkki(URL). Alku oltava ('http://' tai 'https://')", - nodefined: " ei ole määritelty!", - novalue: " paluuarvo vaaditaan!", - customarray: "Oman funktion tulee palauttaa jono!", - customfcheck: "Oma funktio on määriteltävä räätälöityä tarkastusta varten!" - } - }, - view: { - caption: "Näytä rivi", - bClose: "Sulje" - }, - del: { - caption: "Poista", - msg: "Poista valitut rivit?", - bSubmit: "Poista", - bCancel: "Peru" - }, - nav: { - edittext: "", - edittitle: "Muokkaa valittua riviä", - addtext: "", - addtitle: "Uusi rivi", - deltext: "", - deltitle: "Poista valittu rivi", - searchtext: "", - searchtitle: "Etsi tietoja", - refreshtext: "", - refreshtitle: "Lataa uudelleen", - alertcap: "Varoitus", - alerttext: "Valitse rivi", - viewtext: "", - viewtitle: "Näyta valitut rivit" - }, - col: { - caption: "Valitse sarakkeet", - bSubmit: "OK", - bCancel: "Peru" - }, - errors : { - errcap: "Virhe", - nourl: "URL on asettamatta", - norecords: "Ei muokattavia tietoja", - model: "Pituus colNames <> colModel!" - }, - formatter: { - integer: {thousandsSeparator: "", defaultValue: '0'}, - number: {decimalSeparator:",", thousandsSeparator: "", decimalPlaces: 2, defaultValue: '0,00'}, - currency: {decimalSeparator:",", thousandsSeparator: "", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date: { - dayNames: [ - "Su", "Ma", "Ti", "Ke", "To", "Pe", "La", - "Sunnuntai", "Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai", "Lauantai" - ], - monthNames: [ - "Tam", "Hel", "Maa", "Huh", "Tou", "Kes", "Hei", "Elo", "Syy", "Lok", "Mar", "Jou", - "Tammikuu", "Helmikuu", "Maaliskuu", "Huhtikuu", "Toukokuu", "Kesäkuu", "Heinäkuu", "Elokuu", "Syyskuu", "Lokakuu", "Marraskuu", "Joulukuu" - ], - AmPm: ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd.m.Y', - masks: { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "d.m.Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox: {disabled:true}, - idName: 'id' - } -}); -// FI -})(jQuery); diff --git a/js/i18n/grid.locale-fr.js b/js/i18n/grid.locale-fr.js deleted file mode 100644 index ad12901..0000000 --- a/js/i18n/grid.locale-fr.js +++ /dev/null @@ -1,127 +0,0 @@ -;(function($){ -/** - * jqGrid French Translation - * Tony Tomov tony@trirand.com - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Enregistrements {0} - {1} sur {2}", - emptyrecords: "Aucun enregistrement à afficher", - loadtext: "Chargement...", - pgtext : "Page {0} sur {1}" - }, - search : { - caption: "Recherche...", - Find: "Chercher", - Reset: "Réinitialiser", - odata : ['égal', 'différent', 'inférieur', 'inférieur ou égal','supérieur','supérieur ou égal', 'commence par','ne commence pas par','est dans',"n'est pas dans",'finit par','ne finit pas par','contient','ne contient pas'], - groupOps: [ { op: "AND", text: "tous" }, { op: "OR", text: "au moins un" } ], - matchText: " correspondance", - rulesText: " règles" - }, - edit : { - addCaption: "Ajouter", - editCaption: "Editer", - bSubmit: "Valider", - bCancel: "Annuler", - bClose: "Fermer", - saveData: "Les données ont changé ! Enregistrer les modifications ?", - bYes: "Oui", - bNo: "Non", - bExit: "Annuler", - msg: { - required: "Champ obligatoire", - number: "Saisissez un nombre correct", - minValue: "La valeur doit être supérieure ou égale à", - maxValue: "La valeur doit être inférieure ou égale à", - email: "n'est pas un email correct", - integer: "Saisissez un entier correct", - url: "n'est pas une adresse correcte. Préfixe requis ('http://' or 'https://')", - nodefined : " n'est pas défini!", - novalue : " la valeur de retour est requise!", - customarray : "Une fonction personnalisée devrait retourner un tableau (array)!", - customfcheck : "Une fonction personnalisée devrait être présente dans le cas d'une vérification personnalisée!" - } - }, - view : { - caption: "Voir les enregistrement", - bClose: "Fermer" - }, - del : { - caption: "Supprimer", - msg: "Supprimer les enregistrements sélectionnés ?", - bSubmit: "Supprimer", - bCancel: "Annuler" - }, - nav : { - edittext: " ", - edittitle: "Editer la ligne sélectionnée", - addtext:" ", - addtitle: "Ajouter une ligne", - deltext: " ", - deltitle: "Supprimer la ligne sélectionnée", - searchtext: " ", - searchtitle: "Chercher un enregistrement", - refreshtext: "", - refreshtitle: "Recharger le tableau", - alertcap: "Avertissement", - alerttext: "Veuillez sélectionner une ligne", - viewtext: "", - viewtitle: "Afficher la ligne sélectionnée" - }, - col : { - caption: "Afficher/Masquer les colonnes", - bSubmit: "Valider", - bCancel: "Annuler" - }, - errors : { - errcap : "Erreur", - nourl : "Aucune adresse n'est paramétrée", - norecords: "Aucun enregistrement à traiter", - model : "Nombre de titres (colNames) <> Nombre de données (colModel)!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam", - "Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi" - ], - monthNames: [ - "Jan", "Fév", "Mar", "Avr", "Mai", "Jui", "Jul", "Aou", "Sep", "Oct", "Nov", "Déc", - "Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aout", "Septembre", "Octobre", "Novembre", "Décembre" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j == 1 ? 'er' : 'e';}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-gl.js b/js/i18n/grid.locale-gl.js deleted file mode 100644 index a742de5..0000000 --- a/js/i18n/grid.locale-gl.js +++ /dev/null @@ -1,127 +0,0 @@ -;(function($){ -/** - * jqGrid Galician Translation - * Translated by Jorge Barreiro - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Amosando {0} - {1} de {2}", - emptyrecords: "Sen rexistros que amosar", - loadtext: "Cargando...", - pgtext : "Páxina {0} de {1}" - }, - search : { - caption: "Búsqueda...", - Find: "Buscar", - Reset: "Limpar", - odata : ['igual ', 'diferente a', 'menor que', 'menor ou igual que','maior que','maior ou igual a', 'empece por','non empece por','está en','non está en','termina por','non termina por','contén','non contén'], - groupOps: [ { op: "AND", text: "todo" }, { op: "OR", text: "calquera" } ], - matchText: " match", - rulesText: " regras" - }, - edit : { - addCaption: "Engadir rexistro", - editCaption: "Modificar rexistro", - bSubmit: "Gardar", - bCancel: "Cancelar", - bClose: "Pechar", - saveData: "Modificáronse os datos, quere gardar os cambios?", - bYes : "Si", - bNo : "Non", - bExit : "Cancelar", - msg: { - required:"Campo obrigatorio", - number:"Introduza un número", - minValue:"O valor debe ser maior ou igual a ", - maxValue:"O valor debe ser menor ou igual a ", - email: "non é un enderezo de correo válido", - integer: "Introduza un valor enteiro", - date: "Introduza unha data correcta ", - url: "non é unha URL válida. Prefixo requerido ('http://' ou 'https://')", - nodefined : " non está definido.", - novalue : " o valor de retorno é obrigatorio.", - customarray : "A función persoalizada debe devolver un array.", - customfcheck : "A función persoalizada debe estar presente no caso de ter validación persoalizada." - } - }, - view : { - caption: "Consultar rexistro", - bClose: "Pechar" - }, - del : { - caption: "Eliminar", - msg: "Desexa eliminar os rexistros seleccionados?", - bSubmit: "Eliminar", - bCancel: "Cancelar" - }, - nav : { - edittext: " ", - edittitle: "Modificar a fila seleccionada", - addtext:" ", - addtitle: "Engadir unha nova fila", - deltext: " ", - deltitle: "Eliminar a fila seleccionada", - searchtext: " ", - searchtitle: "Buscar información", - refreshtext: "", - refreshtitle: "Recargar datos", - alertcap: "Aviso", - alerttext: "Seleccione unha fila", - viewtext: "", - viewtitle: "Ver fila seleccionada" - }, - col : { - caption: "Mostrar/ocultar columnas", - bSubmit: "Enviar", - bCancel: "Cancelar" - }, - errors : { - errcap : "Erro", - nourl : "Non especificou unha URL", - norecords: "Non hai datos para procesar", - model : "As columnas de nomes son diferentes das columnas de modelo" - }, - formatter : { - integer : {thousandsSeparator: ".", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "Do", "Lu", "Ma", "Me", "Xo", "Ve", "Sa", - "Domingo", "Luns", "Martes", "Mércoles", "Xoves", "Vernes", "Sábado" - ], - monthNames: [ - "Xan", "Feb", "Mar", "Abr", "Mai", "Xuñ", "Xul", "Ago", "Set", "Out", "Nov", "Dec", - "Xaneiro", "Febreiro", "Marzo", "Abril", "Maio", "Xuño", "Xullo", "Agosto", "Setembro", "Outubro", "Novembro", "Decembro" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd-m-Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-he.js b/js/i18n/grid.locale-he.js deleted file mode 100644 index c255232..0000000 --- a/js/i18n/grid.locale-he.js +++ /dev/null @@ -1,128 +0,0 @@ -;(function($){ -/** - * jqGrid Hebrew Translation - * Shuki Shukrun shukrun.shuki@gmail.com - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "מציג {0} - {1} מתוך {2}", - emptyrecords: "אין רשומות להציג", - loadtext: "טוען...", - pgtext : "דף {0} מתוך {1}" - }, - search : { - caption: "מחפש...", - Find: "חפש", - Reset: "התחל", - odata : ['שווה', 'לא שווה', 'קטן', 'קטן או שווה','גדול','גדול או שווה', 'מתחיל ב','לא מתחיל ב','נמצא ב','לא נמצא ב','מסתיים ב','לא מסתיים ב','מכיל','לא מכיל'], - groupOps: [ { op: "AND", text: "הכל" }, { op: "OR", text: "אחד מ" } ], - matchText: " תואם", - rulesText: " חוקים" - }, - edit : { - addCaption: "הוסף רשומה", - editCaption: "ערוך רשומה", - bSubmit: "שלח", - bCancel: "בטל", - bClose: "סגור", - saveData: "נתונים השתנו! לשמור?", - bYes : "כן", - bNo : "לא", - bExit : "בטל", - msg: { - required:"שדה חובה", - number:"אנא, הכנס מספר תקין", - minValue:"ערך צריך להיות גדול או שווה ל ", - maxValue:"ערך צריך להיות קטן או שווה ל ", - email: "היא לא כתובת איימל תקינה", - integer: "אנא, הכנס מספר שלם", - date: "אנא, הכנס תאריך תקין", - url: "הכתובת אינה תקינה. דרושה תחילית ('http://' או 'https://')", - nodefined : " is not defined!", - novalue : " return value is required!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - } - }, - view : { - caption: "הצג רשומה", - bClose: "סגור" - }, - del : { - caption: "מחק", - msg: "האם למחוק את הרשומה/ות המסומנות?", - bSubmit: "מחק", - bCancel: "בטל" - }, - nav : { - edittext: "", - edittitle: "ערוך שורה מסומנת", - addtext:"", - addtitle: "הוסף שורה חדשה", - deltext: "", - deltitle: "מחק שורה מסומנת", - searchtext: "", - searchtitle: "חפש רשומות", - refreshtext: "", - refreshtitle: "טען גריד מחדש", - alertcap: "אזהרה", - alerttext: "אנא, בחר שורה", - viewtext: "", - viewtitle: "הצג שורה מסומנת" - }, - col : { - caption: "הצג/הסתר עמודות", - bSubmit: "שלח", - bCancel: "בטל" - }, - errors : { - errcap : "שגיאה", - nourl : "לא הוגדרה כתובת url", - norecords: "אין רשומות לעבד", - model : "אורך של colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "א", "ב", "ג", "ד", "ה", "ו", "ש", - "ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת" - ], - monthNames: [ - "ינו", "פבר", "מרץ", "אפר", "מאי", "יונ", "יול", "אוג", "ספט", "אוק", "נוב", "דצמ", - "ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני", "יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר" - ], - AmPm : ["לפני הצהרים","אחר הצהרים","לפני הצהרים","אחר הצהרים"], - S: function (j) {return j < 11 || j > 13 ? ['', '', '', ''][Math.min((j - 1) % 10, 3)] : ''}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-hr.js b/js/i18n/grid.locale-hr.js deleted file mode 100644 index eaf681b..0000000 --- a/js/i18n/grid.locale-hr.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid Translation - * Tony Tomov tony@trirand.com - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Pregled {0} - {1} od {2}", - emptyrecords: "Nema zapisa", - loadtext: "Učitavam...", - pgtext : "Stranica {0} od {1}" - }, - search : { - caption: "pretraživanje...", - Find: "Traži", - Reset: "Poništi", - odata : ['jednak', 'nije identičan', 'manje', 'manje ili identično','veće','veše ili identično', 'počinje sa','ne počinje sa ','je u','nije u','završava sa','ne završava sa','sadrži','ne sadrži'], - groupOps: [ { op: "U", text: "sve" }, { op: "ILI", text: "bilo koji" } ], - matchText: " podudata se", - rulesText: " pravila" - }, - edit : { - addCaption: "Dodaj zapis", - editCaption: "Promijeni zapis", - bSubmit: "Preuzmi", - bCancel: "Odustani", - bClose: "Zatvri", - saveData: "Podaci su promijenjeni! Preuzmi promijene?", - bYes : "Da", - bNo : "Ne", - bExit : "Odustani", - msg: { - required:"Polje je obavezno", - number:"Molim, unesite ispravan broj", - minValue:"vrijednost mora biti veća ili identična ", - maxValue:"vrijednost mora biti manja ili identična", - email: "neispravan e-mail", - integer: "Molim, unjeti ispravan cijeli broj (integer)", - date: "Molim, unjeti ispravan datum ", - url: "neispravan URL. Prefiks je obavezan ('http://' or 'https://')", - nodefined : " nije definiran!", - novalue : " zahtjevan podatak je obavezan!", - customarray : "Opcionalna funkcija trebala bi bili polje (array)!", - customfcheck : "Custom function should be present in case of custom checking!" - - } - }, - view : { - caption: "Otvori zapis", - bClose: "Zatvori" - }, - del : { - caption: "Obriši", - msg: "Obriši označen zapis ili više njih?", - bSubmit: "Obriši", - bCancel: "Odustani" - }, - nav : { - edittext: "", - edittitle: "Promijeni obilježeni red", - addtext:"", - addtitle: "Dodaj novi red", - deltext: "", - deltitle: "Obriši obilježeni red", - searchtext: "", - searchtitle: "Potraži zapise", - refreshtext: "", - refreshtitle: "Ponovo preuzmi podatke", - alertcap: "Upozorenje", - alerttext: "Molim, odaberi red", - viewtext: "", - viewtitle: "Pregled obilježenog reda" - }, - col : { - caption: "Obilježi kolonu", - bSubmit: "Uredu", - bCancel: "Odustani" - }, - errors : { - errcap : "Greška", - nourl : "Nedostaje URL", - norecords: "Bez zapisa za obradu", - model : "Duljina colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub", - "Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota" - ], - monthNames: [ - "Sij", "Vel", "Ožu", "Tra", "Svi", "Lip", "Srp", "Kol", "Ruj", "Lis", "Stu", "Pro", - "Siječanj", "Veljača", "Ožujak", "Travanj", "Svibanj", "Lipanj", "Srpanj", "Kolovoz", "Rujan", "Listopad", "Studeni", "Prosinac" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return ''}, - srcformat: 'Y-m-d', - newformat: 'd.m.Y.', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "j.n.Y.", - LongDate: "l, j. F Y", - FullDateTime: "l, d. F Y G:i:s", - MonthDay: "d. F", - ShortTime: "G:i", - LongTime: "G:i:s", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-hr1250.js b/js/i18n/grid.locale-hr1250.js deleted file mode 100644 index c7ee70e..0000000 --- a/js/i18n/grid.locale-hr1250.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid Translation - * Tony Tomov tony@trirand.com - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Pregled {0} - {1} od {2}", - emptyrecords: "Nema zapisa", - loadtext: "U�itavam...", - pgtext : "Stranica {0} od {1}" - }, - search : { - caption: "pretra�ivanje...", - Find: "Tra�i", - Reset: "Poni�ti", - odata : ['jednak', 'nije identi�an', 'manje', 'manje ili identi�no','ve�e','ve�e ili identi�no', 'po�inje sa','ne po�inje sa ','je u','nije u','zavr�ava sa','ne zavr�ava sa','sadr�i','ne sadr�i'], - groupOps: [ { op: "U", text: "sve" }, { op: "ILI", text: "bilo koji" } ], - matchText: " podudata se", - rulesText: " pravila" - }, - edit : { - addCaption: "Dodaj zapis", - editCaption: "Promijeni zapis", - bSubmit: "Preuzmi", - bCancel: "Odustani", - bClose: "Zatvri", - saveData: "Podaci su promijenjeni! Preuzmi promijene?", - bYes : "Da", - bNo : "Ne", - bExit : "Odustani", - msg: { - required:"Polje je obavezno", - number:"Molim, unesite ispravan broj", - minValue:"vrijednost mora biti ve�a ili identi�na ", - maxValue:"vrijednost mora biti manja ili identi�na", - email: "neispravan e-mail", - integer: "Molim, unjeti ispravan cijeli broj (integer)", - date: "Molim, unjeti ispravan datum ", - url: "neispravan URL. Prefiks je obavezan ('http://' or 'https://')", - nodefined : " nije definiran!", - novalue : " zahtjevan podatak je obavezan!", - customarray : "Opcionalna funkcija trebala bi bili polje (array)!", - customfcheck : "Custom function should be present in case of custom checking!" - - } - }, - view : { - caption: "Otvori zapis", - bClose: "Zatvori" - }, - del : { - caption: "Obri�i", - msg: "Obri�i ozna�en zapis ili vi�e njih?", - bSubmit: "Obri�i", - bCancel: "Odustani" - }, - nav : { - edittext: "", - edittitle: "Promijeni obilje�eni red", - addtext:"", - addtitle: "Dodaj novi red", - deltext: "", - deltitle: "Obri�i obilje�eni red", - searchtext: "", - searchtitle: "Potra�i zapise", - refreshtext: "", - refreshtitle: "Ponovo preuzmi podatke", - alertcap: "Upozorenje", - alerttext: "Molim, odaberi red", - viewtext: "", - viewtitle: "Pregled obilje�enog reda" - }, - col : { - caption: "Obilje�i kolonu", - bSubmit: "Uredu", - bCancel: "Odustani" - }, - errors : { - errcap : "Gre�ka", - nourl : "Nedostaje URL", - norecords: "Bez zapisa za obradu", - model : "Duljina colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Ned", "Pon", "Uto", "Sri", "�et", "Pet", "Sub", - "Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "�etvrtak", "Petak", "Subota" - ], - monthNames: [ - "Sij", "Vel", "O�u", "Tra", "Svi", "Lip", "Srp", "Kol", "Ruj", "Lis", "Stu", "Pro", - "Sije�anj", "Velja�a", "O�ujak", "Travanj", "Svibanj", "Lipanj", "Srpanj", "Kolovoz", "Rujan", "Listopad", "Studeni", "Prosinac" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return ''}, - srcformat: 'Y-m-d', - newformat: 'd.m.Y.', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "j.n.Y.", - LongDate: "l, j. F Y", - FullDateTime: "l, d. F Y G:i:s", - MonthDay: "d. F", - ShortTime: "G:i", - LongTime: "G:i:s", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-hu.js b/js/i18n/grid.locale-hu.js deleted file mode 100644 index e08dd22..0000000 --- a/js/i18n/grid.locale-hu.js +++ /dev/null @@ -1,130 +0,0 @@ -;(function($){ -/** - * jqGrid Hungarian Translation - * Őrszigety Ádám udx6bs@freemail.hu - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ - -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Oldal {0} - {1} / {2}", - emptyrecords: "Nincs találat", - loadtext: "Betöltés...", - pgtext : "Oldal {0} / {1}" - }, - search : { - caption: "Keresés...", - Find: "Keres", - Reset: "Alapértelmezett", - odata : ['egyenlő', 'nem egyenlő', 'kevesebb', 'kevesebb vagy egyenlő','nagyobb','nagyobb vagy egyenlő', 'ezzel kezdődik','nem ezzel kezdődik','tartalmaz','nem tartalmaz','végződik','nem végződik','tartalmaz','nem tartalmaz'], - groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ], - matchText: " match", - rulesText: " rules" - }, - edit : { - addCaption: "Új tétel", - editCaption: "Tétel szerkesztése", - bSubmit: "Mentés", - bCancel: "Mégse", - bClose: "Bezárás", - saveData: "A tétel megváltozott! Tétel mentése?", - bYes : "Igen", - bNo : "Nem", - bExit : "Mégse", - msg: { - required:"Kötelező mező", - number:"Kérjük, adjon meg egy helyes számot", - minValue:"Nagyobb vagy egyenlőnek kell lenni mint ", - maxValue:"Kisebb vagy egyenlőnek kell lennie mint", - email: "hibás emailcím", - integer: "Kérjük adjon meg egy helyes egész számot", - date: "Kérjük adjon meg egy helyes dátumot", - url: "nem helyes cím. Előtag kötelező ('http://' vagy 'https://')", - nodefined : " nem definiált!", - novalue : " visszatérési érték kötelező!!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - - } - }, - view : { - caption: "Tétel megtekintése", - bClose: "Bezárás" - }, - del : { - caption: "Törlés", - msg: "Kiválaztott tétel(ek) törlése?", - bSubmit: "Törlés", - bCancel: "Mégse" - }, - nav : { - edittext: "", - edittitle: "Tétel szerkesztése", - addtext:"", - addtitle: "Új tétel hozzáadása", - deltext: "", - deltitle: "Tétel törlése", - searchtext: "", - searchtitle: "Keresés", - refreshtext: "", - refreshtitle: "Frissítés", - alertcap: "Figyelmeztetés", - alerttext: "Kérem válasszon tételt.", - viewtext: "", - viewtitle: "Tétel megtekintése" - }, - col : { - caption: "Oszlopok kiválasztása", - bSubmit: "Ok", - bCancel: "Mégse" - }, - errors : { - errcap : "Hiba", - nourl : "Nincs URL beállítva", - norecords: "Nincs feldolgozásra váró tétel", - model : "colNames és colModel hossza nem egyenlő!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "Va", "Hé", "Ke", "Sze", "Csü", "Pé", "Szo", - "Vasárnap", "Hétfő", "Kedd", "Szerda", "Csütörtök", "Péntek", "Szombat" - ], - monthNames: [ - "Jan", "Feb", "Már", "Ápr", "Máj", "Jún", "Júl", "Aug", "Szep", "Okt", "Nov", "Dec", - "Január", "Február", "Március", "Áprili", "Május", "Június", "Július", "Augusztus", "Szeptember", "Október", "November", "December" - ], - AmPm : ["de","du","DE","DU"], - S: function (j) {return '.-ik';}, - srcformat: 'Y-m-d', - newformat: 'Y/m/d', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "Y/j/n", - LongDate: "Y. F hó d., l", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "a g:i", - LongTime: "a g:i:s", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "Y, F" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-is.js b/js/i18n/grid.locale-is.js deleted file mode 100644 index dffe3e4..0000000 --- a/js/i18n/grid.locale-is.js +++ /dev/null @@ -1,127 +0,0 @@ -;(function($){ -/** - * jqGrid Icelandic Translation - * jtm@hi.is Univercity of Iceland - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Skoða {0} - {1} af {2}", - emptyrecords: "Engar færslur", - loadtext: "Hleður...", - pgtext : "Síða {0} af {1}" - }, - search : { - caption: "Leita...", - Find: "Leita", - Reset: "Endursetja", - odata : ['sama og', 'ekki sama og', 'minna en', 'minna eða jafnt og','stærra en','stærra eða jafnt og', 'byrjar á','byrjar ekki á','er í','er ekki í','endar á','endar ekki á','inniheldur','inniheldur ekki'], - groupOps: [ { op: "AND", text: "allt" }, { op: "OR", text: "eða" } ], - matchText: " passar", - rulesText: " reglur" - }, - edit : { - addCaption: "Bæta við færslu", - editCaption: "Breyta færslu", - bSubmit: "Vista", - bCancel: "Hætta við", - bClose: "Loka", - saveData: "Gögn hafa breyst! Vista breytingar?", - bYes : "Já", - bNo : "Nei", - bExit : "Hætta við", - msg: { - required:"Reitur er nauðsynlegur", - number:"Vinsamlega settu inn tölu", - minValue:"gildi verður að vera meira en eða jafnt og ", - maxValue:"gildi verður að vera minna en eða jafnt og ", - email: "er ekki löglegt email", - integer: "Vinsamlega settu inn tölu", - date: "Vinsamlega setti inn dagsetningu", - url: "er ekki löglegt URL. Vantar ('http://' eða 'https://')", - nodefined : " er ekki skilgreint!", - novalue : " skilagildi nauðsynlegt!", - customarray : "Fall skal skila fylki!", - customfcheck : "Fall skal vera skilgreint!" - } - }, - view : { - caption: "Skoða færslu", - bClose: "Loka" - }, - del : { - caption: "Eyða", - msg: "Eyða völdum færslum ?", - bSubmit: "Eyða", - bCancel: "Hætta við" - }, - nav : { - edittext: " ", - edittitle: "Breyta færslu", - addtext:" ", - addtitle: "Ný færsla", - deltext: " ", - deltitle: "Eyða færslu", - searchtext: " ", - searchtitle: "Leita", - refreshtext: "", - refreshtitle: "Endurhlaða", - alertcap: "Viðvörun", - alerttext: "Vinsamlega veldu færslu", - viewtext: "", - viewtitle: "Skoða valda færslu" - }, - col : { - caption: "Sýna / fela dálka", - bSubmit: "Vista", - bCancel: "Hætta við" - }, - errors : { - errcap : "Villa", - nourl : "Vantar slóð", - norecords: "Engar færslur valdar", - model : "Lengd colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Sun", "Mán", "Þri", "Mið", "Fim", "Fös", "Lau", - "Sunnudagur", "Mánudagur", "Þriðjudagur", "Miðvikudagur", "Fimmtudagur", "Föstudagur", "Laugardagur" - ], - monthNames: [ - "Jan", "Feb", "Mar", "Apr", "Maí", "Jún", "Júl", "Ágú", "Sep", "Oct", "Nóv", "Des", - "Janúar", "Febrúar", "Mars", "Apríl", "Maí", "Júný", "Júlý", "Ágúst", "September", "Október", "Nóvember", "Desember" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-it.js b/js/i18n/grid.locale-it.js deleted file mode 100644 index 9d78f15..0000000 --- a/js/i18n/grid.locale-it.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){a.jgrid = a.jgrid || {};a.extend(a.jgrid,{ defaults:{recordtext:"Visualizzati {0} - {1} di {2}",emptyrecords:"Nessun record da visualizzare",loadtext:"Caricamento...",pgtext:"Pagina {0} di {1}"},search:{caption:"Ricerca...",Find:"Cerca",Reset:"Pulisci",odata:["uguale","diverso","minore","minore o uguale","maggiore","maggiore o uguale","inizia con","non inizia con","in","non in","termina con","non termina con","contiene","non contiene"],groupOps:[{op:"AND",text:"tutto"},{op:"OR",text:"almeno uno"}],matchText:" corrisponde",rulesText:" regole"},edit:{addCaption:"Aggiungi Record",editCaption:"Modifica Record",bSubmit:"Invia",bCancel:"Chiudi",bClose:"Chiudi",saveData:"Alcuni dati modificati! Salvare i cambiamenti?",bYes:"Si",bNo:"No",bExit:"Esci",msg:{required:"Campo richiesto",number:"Per favore, inserisci un valore valido",minValue:"il valore deve essere maggiore o uguale a ",maxValue:"il valore deve essere minore o uguale a",email:"e-mail non corretta",integer:"Per favore, inserisci un numero intero valido",date:"Per favore, inserisci una data valida",url:"URL non valido. Prefisso richiesto ('http://' or 'https://')",nodefined:" non � definito!",novalue:" valore di ritorno richiesto!",customarray:"La function custon deve tornare un array!",customfcheck:"La function custom deve esistere per il custom checking!"}},view:{caption:"Visualizzazione Record",bClose:"Chiudi"},del:{caption:"Cancella",msg:"Cancellare record selezionato/i?",bSubmit:"Cancella",bCancel:"Annulla"},nav:{edittext:" ",edittitle:"Modifica record selezionato",addtext:" ",addtitle:"Aggiungi nuovo record",deltext:" ",deltitle:"Cancella record selezionato",searchtext:" ",searchtitle:"Ricerca record",refreshtext:"",refreshtitle:"Aggiorna griglia",alertcap:"Attenzione",alerttext:"Per favore, seleziona un record",viewtext:"",viewtitle:"Visualizza riga selezionata"},col:{caption:"Mostra/Nascondi Colonne",bSubmit:"Invia",bCancel:"Annulla"},errors:{errcap:"Errore",nourl:"Url non settata",norecords:"Nessun record da elaborare",model:"Lunghezza di colNames <> colModel!"},formatter:{integer:{thousandsSeparator:" ",defaultValue:"0"},number:{decimalSeparator:",",thousandsSeparator:" ",decimalPlaces:2,defaultValue:"0,00"},currency:{decimalSeparator:",",thousandsSeparator:" ",decimalPlaces:2,prefix:"",suffix:"",defaultValue:"0,00"},date:{dayNames:["Dom","Lun","Mar","Mer","Gio","Ven","Sab","Domenica","Luned�","Marted�","Mercoled�","Gioved�","Venerd�","Sabato"],monthNames:["Gen","Feb","Mar","Apr","Mag","Gui","Lug","Ago","Set","Ott","Nov","Dic","Genneio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Movembre","Dicembre"],AmPm:["am","pm","AM","PM"],S:function(b){return b<11||b>13?["st","nd","rd","th"][Math.min((b-1)%10,3)]:"th"},srcformat:"Y-m-d",newformat:"d/m/Y",masks:{ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"n/j/Y",LongDate:"l, F d, Y",FullDateTime:"l, F d, Y g:i:s A",MonthDay:"F d",ShortTime:"g:i A",LongTime:"g:i:s A",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",YearMonth:"F, Y"},reformatAfterEdit:false},baseLinkUrl:"",showAction:"",target:"",checkbox:{disabled:true},idName:"id"}});})(jQuery); \ No newline at end of file diff --git a/js/i18n/grid.locale-ja.js b/js/i18n/grid.locale-ja.js deleted file mode 100644 index 3ba4f13..0000000 --- a/js/i18n/grid.locale-ja.js +++ /dev/null @@ -1,156 +0,0 @@ -;(function($){ -/** - * jqGrid Japanese Translation - * OKADA Yoshitada okada.dev@sth.jp - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "{2} \u4EF6\u4E2D {0} - {1} \u3092\u8868\u793A ", - emptyrecords: "\u8868\u793A\u3059\u308B\u30EC\u30B3\u30FC\u30C9\u304C\u3042\u308A\u307E\u305B\u3093", - loadtext: "\u8aad\u307f\u8fbc\u307f\u4e2d...", - pgtext : "{1} \u30DA\u30FC\u30B8\u4E2D {0} \u30DA\u30FC\u30B8\u76EE " - }, - search : { - caption: "\u691c\u7d22...", - Find: "\u691c\u7d22", - Reset: "\u30ea\u30bb\u30c3\u30c8", - odata: ["\u6B21\u306B\u7B49\u3057\u3044", "\u6B21\u306B\u7B49\u3057\u304F\u306A\u3044", - "\u6B21\u3088\u308A\u5C0F\u3055\u3044", "\u6B21\u306B\u7B49\u3057\u3044\u304B\u5C0F\u3055\u3044", - "\u6B21\u3088\u308A\u5927\u304D\u3044", "\u6B21\u306B\u7B49\u3057\u3044\u304B\u5927\u304D\u3044", - "\u6B21\u3067\u59CB\u307E\u308B", "\u6B21\u3067\u59CB\u307E\u3089\u306A\u3044", - "\u6B21\u306B\u542B\u307E\u308C\u308B", "\u6B21\u306B\u542B\u307E\u308C\u306A\u3044", - "\u6B21\u3067\u7D42\u308F\u308B", "\u6B21\u3067\u7D42\u308F\u3089\u306A\u3044", - "\u6B21\u3092\u542B\u3080", "\u6B21\u3092\u542B\u307E\u306A\u3044"], - groupOps: [{ - op: "AND", - text: "\u3059\u3079\u3066\u306E" - }, - { - op: "OR", - text: "\u3044\u305A\u308C\u304B\u306E" - }], - matchText: " \u6B21\u306E", - rulesText: " \u6761\u4EF6\u3092\u6E80\u305F\u3059" - }, - edit : { - addCaption: "\u30ec\u30b3\u30fc\u30c9\u8ffd\u52a0", - editCaption: "\u30ec\u30b3\u30fc\u30c9\u7de8\u96c6", - bSubmit: "\u9001\u4fe1", - bCancel: "\u30ad\u30e3\u30f3\u30bb\u30eb", - bClose: "\u9589\u3058\u308b", - saveData: "\u30C7\u30FC\u30BF\u304C\u5909\u66F4\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u4FDD\u5B58\u3057\u307E\u3059\u304B\uFF1F", - bYes: "\u306F\u3044", - bNo: "\u3044\u3044\u3048", - bExit: "\u30AD\u30E3\u30F3\u30BB\u30EB", - msg: { - required:"\u3053\u306e\u9805\u76ee\u306f\u5fc5\u9808\u3067\u3059\u3002", - number:"\u6b63\u3057\u3044\u6570\u5024\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002", - minValue:"\u6b21\u306e\u5024\u4ee5\u4e0a\u3067\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002", - maxValue:"\u6b21\u306e\u5024\u4ee5\u4e0b\u3067\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002", - email: "e-mail\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002", - integer: "\u6b63\u3057\u3044\u6574\u6570\u5024\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002", - date: "\u6b63\u3057\u3044\u5024\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002", - url: "\u306F\u6709\u52B9\u306AURL\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002\20\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u304C\u5FC5\u8981\u3067\u3059\u3002 ('http://' \u307E\u305F\u306F 'https://')", - nodefined: " \u304C\u5B9A\u7FA9\u3055\u308C\u3066\u3044\u307E\u305B\u3093", - novalue: " \u623B\u308A\u5024\u304C\u5FC5\u8981\u3067\u3059", - customarray: "\u30AB\u30B9\u30BF\u30E0\u95A2\u6570\u306F\u914D\u5217\u3092\u8FD4\u3059\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059", - customfcheck: "\u30AB\u30B9\u30BF\u30E0\u691C\u8A3C\u306B\u306F\u30AB\u30B9\u30BF\u30E0\u95A2\u6570\u304C\u5FC5\u8981\u3067\u3059" - } - }, - view : { - caption: "\u30EC\u30B3\u30FC\u30C9\u3092\u8868\u793A", - bClose: "\u9589\u3058\u308B" - }, - del : { - caption: "\u524a\u9664", - msg: "\u9078\u629e\u3057\u305f\u30ec\u30b3\u30fc\u30c9\u3092\u524a\u9664\u3057\u307e\u3059\u304b\uff1f", - bSubmit: "\u524a\u9664", - bCancel: "\u30ad\u30e3\u30f3\u30bb\u30eb" - }, - nav : { - edittext: " ", - edittitle: "\u9078\u629e\u3057\u305f\u884c\u3092\u7de8\u96c6", - addtext:" ", - addtitle: "\u884c\u3092\u65b0\u898f\u8ffd\u52a0", - deltext: " ", - deltitle: "\u9078\u629e\u3057\u305f\u884c\u3092\u524a\u9664", - searchtext: " ", - searchtitle: "\u30ec\u30b3\u30fc\u30c9\u691c\u7d22", - refreshtext: "", - refreshtitle: "\u30b0\u30ea\u30c3\u30c9\u3092\u30ea\u30ed\u30fc\u30c9", - alertcap: "\u8b66\u544a", - alerttext: "\u884c\u3092\u9078\u629e\u3057\u3066\u4e0b\u3055\u3044\u3002", - viewtext: "", - viewtitle: "\u9078\u629E\u3057\u305F\u884C\u3092\u8868\u793A" - }, - col : { - caption: "\u5217\u3092\u8868\u793a\uff0f\u96a0\u3059", - bSubmit: "\u9001\u4fe1", - bCancel: "\u30ad\u30e3\u30f3\u30bb\u30eb" - }, - errors : { - errcap : "\u30a8\u30e9\u30fc", - nourl : "URL\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002", - norecords: "\u51e6\u7406\u5bfe\u8c61\u306e\u30ec\u30b3\u30fc\u30c9\u304c\u3042\u308a\u307e\u305b\u3093\u3002", - model : "colNames\u306e\u9577\u3055\u304ccolModel\u3068\u4e00\u81f4\u3057\u307e\u305b\u3093\u3002" - }, - formatter : { - integer: { - thousandsSeparator: ",", - defaultValue: '0' - }, - number: { - decimalSeparator: ".", - thousandsSeparator: ",", - decimalPlaces: 2, - defaultValue: '0.00' - }, - currency: { - decimalSeparator: ".", - thousandsSeparator: ",", - decimalPlaces: 0, - prefix: "", - suffix: "", - defaultValue: '0' - }, - date : { - dayNames: [ - "\u65e5", "\u6708", "\u706b", "\u6c34", "\u6728", "\u91d1", "\u571f", - "\u65e5", "\u6708", "\u706b", "\u6c34", "\u6728", "\u91d1", "\u571f" - ], - monthNames: [ - "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", - "1\u6708", "2\u6708", "3\u6708", "4\u6708", "5\u6708", "6\u6708", "7\u6708", "8\u6708", "9\u6708", "10\u6708", "11\u6708", "12\u6708" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) { return "\u756a\u76ee"; }, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-kr.js b/js/i18n/grid.locale-kr.js deleted file mode 100644 index 080a8f5..0000000 --- a/js/i18n/grid.locale-kr.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid English Translation - * Tony Tomov tony@trirand.com - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "보기 {0} - {1} / {2}", - emptyrecords: "표시할 행이 없습니다", - loadtext: "조회중...", - pgtext : "페이지 {0} / {1}" - }, - search : { - caption: "검색...", - Find: "찾기", - Reset: "초기화", - odata : ['같다', '같지 않다', '작다', '작거나 같다','크다','크거나 같다', '로 시작한다','로 시작하지 않는다','내에 있다','내에 있지 않다','로 끝난다','로 끝나지 않는다','내에 존재한다','내에 존재하지 않는다'], - groupOps: [ { op: "AND", text: "전부" }, { op: "OR", text: "임의" } ], - matchText: " 일치하다", - rulesText: " 적용하다" - }, - edit : { - addCaption: "행 추가", - editCaption: "행 수정", - bSubmit: "전송", - bCancel: "취소", - bClose: "닫기", - saveData: "자료가 변경되었습니다! 저장하시겠습니까?", - bYes : "예", - bNo : "아니오", - bExit : "취소", - msg: { - required:"필수항목입니다", - number:"유효한 번호를 입력해 주세요", - minValue:"입력값은 크거나 같아야 합니다", - maxValue:"입력값은 작거나 같아야 합니다", - email: "유효하지 않은 이메일주소입니다", - integer: "유효한 숫자를 입력하세요", - date: "유효한 날짜를 입력하세요", - url: "은 유효하지 않은 URL입니다. 문장앞에 다음단어가 필요합니다('http://' or 'https://')", - nodefined : " 은 정의도지 않았습니다!", - novalue : " 반환값이 필요합니다!", - customarray : "사용자정의 함수는 배열을 반환해야 합니다!", - customfcheck : "Custom function should be present in case of custom checking!" - - } - }, - view : { - caption: "행 조회", - bClose: "닫기" - }, - del : { - caption: "삭제", - msg: "선택된 행을 삭제하시겠습니까?", - bSubmit: "삭제", - bCancel: "취소" - }, - nav : { - edittext: "", - edittitle: "선택된 행 편집", - addtext:"", - addtitle: "행 삽입", - deltext: "", - deltitle: "선택된 행 삭제", - searchtext: "", - searchtitle: "행 찾기", - refreshtext: "", - refreshtitle: "그리드 갱신", - alertcap: "경고", - alerttext: "행을 선택하세요", - viewtext: "", - viewtitle: "선택된 행 조회" - }, - col : { - caption: "열을 선택하세요", - bSubmit: "확인", - bCancel: "취소" - }, - errors : { - errcap : "오류", - nourl : "설정된 url이 없습니다", - norecords: "처리할 행이 없습니다", - model : "colNames의 길이가 colModel과 일치하지 않습니다!" - }, - formatter : { - integer : {thousandsSeparator: ",", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat", - "일", "월", "화", "수", "목", "금", "토" - ], - monthNames: [ - "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", - "1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'm-d-Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "Y/j/n", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-lt.js b/js/i18n/grid.locale-lt.js deleted file mode 100644 index 9313236..0000000 --- a/js/i18n/grid.locale-lt.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid Lithuanian Translation - * aur1mas aur1mas@devnet.lt - * http://aur1mas.devnet.lt - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Peržiūrima {0} - {1} iš {2}", - emptyrecords: "Įrašų nėra", - loadtext: "Kraunama...", - pgtext : "Puslapis {0} iš {1}" - }, - search : { - caption: "Paieška...", - Find: "Ieškoti", - Reset: "Atstatyti", - odata : ['lygu', 'nelygu', 'mažiau', 'mažiau arba lygu','daugiau','daugiau arba lygu', 'prasideda','neprasideda','reikšmė yra','reikšmės nėra','baigiasi','nesibaigia','yra sudarytas','nėra sudarytas'], - groupOps: [ { op: "AND", text: "visi" }, { op: "OR", text: "bet kuris" } ], - matchText: " match", - rulesText: " rules" - }, - edit : { - addCaption: "Sukurti įrašą", - editCaption: "Redaguoti įrašą", - bSubmit: "Išsaugoti", - bCancel: "Atšaukti", - bClose: "Uždaryti", - saveData: "Duomenys buvo pakeisti! Išsaugoti pakeitimus?", - bYes : "Taip", - bNo : "Ne", - bExit : "Atšaukti", - msg: { - required:"Privalomas laukas", - number:"Įveskite tinkamą numerį", - minValue:"reikšmė turi būti didesnė arba lygi ", - maxValue:"reikšmė turi būti mažesnė arba lygi", - email: "neteisingas el. pašto adresas", - integer: "Įveskite teisingą sveikąjį skaičių", - date: "Įveskite teisingą datą", - url: "blogas adresas. Nepamirškite pridėti ('http://' arba 'https://')", - nodefined : " nėra apibrėžta!", - novalue : " turi būti gražinama kokia nors reikšmė!", - customarray : "Custom f-ja turi grąžinti masyvą!", - customfcheck : "Custom f-ja tūrėtų būti sukurta, prieš bandant ją naudoti!" - - } - }, - view : { - caption: "Peržiūrėti įrašus", - bClose: "Uždaryti" - }, - del : { - caption: "Ištrinti", - msg: "Ištrinti pažymėtus įrašus(-ą)?", - bSubmit: "Ištrinti", - bCancel: "Atšaukti" - }, - nav : { - edittext: "", - edittitle: "Redaguoti pažymėtą eilutę", - addtext:"", - addtitle: "Pridėti naują eilutę", - deltext: "", - deltitle: "Ištrinti pažymėtą eilutę", - searchtext: "", - searchtitle: "Rasti įrašus", - refreshtext: "", - refreshtitle: "Perkrauti lentelę", - alertcap: "Įspėjimas", - alerttext: "Pasirinkite eilutę", - viewtext: "", - viewtitle: "Peržiūrėti pasirinktą eilutę" - }, - col : { - caption: "Pasirinkti stulpelius", - bSubmit: "Gerai", - bCancel: "Atšaukti" - }, - errors : { - errcap : "Klaida", - nourl : "Url reikšmė turi būti perduota", - norecords: "Nėra įrašų, kuriuos būtų galima apdoroti", - model : "colNames skaičius <> colModel skaičiui!" - }, - formatter : { - integer : {thousandsSeparator: "", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: "", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:",", thousandsSeparator: "", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Sek", "Pir", "Ant", "Tre", "Ket", "Pen", "Šeš", - "Sekmadienis", "Pirmadienis", "Antradienis", "Trečiadienis", "Ketvirtadienis", "Penktadienis", "Šeštadienis" - ], - monthNames: [ - "Sau", "Vas", "Kov", "Bal", "Geg", "Bir", "Lie", "Rugj", "Rugs", "Spa", "Lap", "Gru", - "Sausis", "Vasaris", "Kovas", "Balandis", "Gegužė", "Birželis", "Liepa", "Rugpjūtis", "Rugsėjis", "Spalis", "Lapkritis", "Gruodis" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-mne.js b/js/i18n/grid.locale-mne.js deleted file mode 100644 index 0f17995..0000000 --- a/js/i18n/grid.locale-mne.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid Montenegrian Translation - * Bild Studio info@bild-studio.net - * http://www.bild-studio.com - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Pregled {0} - {1} od {2}", - emptyrecords: "Ne postoji nijedan zapis", - loadtext: "Učitivanje...", - pgtext : "Strana {0} od {1}" - }, - search : { - caption: "Traženje...", - Find: "Traži", - Reset: "Resetuj", - odata : ['jednako', 'nije jednako', 'manje', 'manje ili jednako','veće','veće ili jednako', 'počinje sa','ne počinje sa','je u','nije u','završava sa','ne završava sa','sadrži','ne sadrži'], - groupOps: [ { op: "AND", text: "sva" }, { op: "OR", text: "bilo koje" } ], - matchText: " primjeni", - rulesText: " pravila" - }, - edit : { - addCaption: "Dodaj zapis", - editCaption: "Izmjeni zapis", - bSubmit: "Pošalji", - bCancel: "Odustani", - bClose: "Zatvori", - saveData: "Podatak je izmjenjen! Sačuvaj izmjene?", - bYes : "Da", - bNo : "Ne", - bExit : "Odustani", - msg: { - required:"Polje je obavezno", - number:"Unesite ispravan broj", - minValue:"vrijednost mora biti veća od ili jednaka sa ", - maxValue:"vrijednost mora biti manja ili jednaka sa", - email: "nije ispravna email adresa, nije valjda da ne umiješ ukucati mail!?", - integer: "Ne zajebaji se unesi cjelobrojnu vrijednost ", - date: "Unesite ispravan datum", - url: "nije ispravan URL. Potreban je prefiks ('http://' or 'https://')", - nodefined : " nije definisan!", - novalue : " zahtjevana je povratna vrijednost!", - customarray : "Prilagođena funkcija treba da vrati niz!", - customfcheck : "Prilagođena funkcija treba da bude prisutana u slučaju prilagođene provjere!" - - } - }, - view : { - caption: "Pogledaj zapis", - bClose: "Zatvori" - }, - del : { - caption: "Izbrisi", - msg: "Izbrisi izabran(e) zapise(e)?", - bSubmit: "Izbriši", - bCancel: "Odbaci" - }, - nav : { - edittext: "", - edittitle: "Izmjeni izabrani red", - addtext:"", - addtitle: "Dodaj novi red", - deltext: "", - deltitle: "Izbriši izabran red", - searchtext: "", - searchtitle: "Nađi zapise", - refreshtext: "", - refreshtitle: "Ponovo učitaj podatke", - alertcap: "Upozorenje", - alerttext: "Izaberite red", - viewtext: "", - viewtitle: "Pogledaj izabrani red" - }, - col : { - caption: "Izaberi kolone", - bSubmit: "OK", - bCancel: "Odbaci" - }, - errors : { - errcap : "Greška", - nourl : "Nije postavljen URL", - norecords: "Nema zapisa za obradu", - model : "Dužina modela colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub", - "Nedelja", "Ponedeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota" - ], - monthNames: [ - "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec", - "Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-nl.js b/js/i18n/grid.locale-nl.js deleted file mode 100644 index 8673b29..0000000 --- a/js/i18n/grid.locale-nl.js +++ /dev/null @@ -1,149 +0,0 @@ -(function(a) { -a.jgrid = a.jgrid || {}; -a.extend(a.jgrid,{ - defaults: - { - recordtext: "regels {0} - {1} van {2}", - emptyrecords: "Geen data gevonden.", - loadtext: "laden...", - pgtext: "pagina {0} van {1}" - }, - search: - { - caption: "Zoeken...", - Find: "Zoek", - Reset: "Herstellen", - odata: ["gelijk aan", "niet gelijk aan", "kleiner dan", "kleiner dan of gelijk aan", "groter dan", "groter dan of gelijk aan", "begint met", "begint niet met", "is in", "is niet in", "eindigd met", "eindigd niet met", "bevat", "bevat niet"], - groupOps: [{ op: "AND", text: "alle" }, { op: "OR", text: "een van de"}], - matchText: " match", - rulesText: " regels" - }, - edit: - { - addCaption: "Nieuw", - editCaption: "Bewerken", - bSubmit: "Opslaan", - bCancel: "Annuleren", - bClose: "Sluiten", - saveData: "Er is data aangepast! Wijzigingen opslaan?", - bYes: "Ja", - bNo: "Nee", - bExit: "Sluiten", - msg: - { - required: "Veld is verplicht", - number: "Voer a.u.b. geldig nummer in", - minValue: "Waarde moet groter of gelijk zijn aan ", - maxValue: "Waarde moet kleiner of gelijks zijn aan", - email: "is geen geldig e-mailadres", - integer: "Voer a.u.b. een geldig getal in", - date: "Voer a.u.b. een geldige waarde in", - url: "is geen geldige URL. Prefix is verplicht ('http://' or 'https://')", - nodefined : " is not defined!", - novalue : " return value is required!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - } - }, - view: - { - caption: "Tonen", - bClose: "Sluiten" - }, - del: - { - caption: "Verwijderen", - msg: "Verwijder geselecteerde regel(s)?", - bSubmit: "Verwijderen", - bCancel: "Annuleren" - }, - nav: - { - edittext: "", - edittitle: "Bewerken", - addtext: "", - addtitle: "Nieuw", - deltext: "", - deltitle: "Verwijderen", - searchtext: "", - searchtitle: "Zoeken", - refreshtext: "", - refreshtitle: "Vernieuwen", - alertcap: "Waarschuwing", - alerttext: "Selecteer a.u.b. een regel", - viewtext: "", - viewtitle: "Openen" - }, - col: - { - caption: "Tonen/verbergen kolommen", - bSubmit: "OK", - bCancel: "Annuleren" - }, - errors: - { - errcap: "Fout", - nourl: "Er is geen URL gedefinieerd", - norecords: "Geen data om te verwerken", - model: "Lengte van 'colNames' is niet gelijk aan 'colModel'!" - }, - formatter: - { - integer: - { - thousandsSeparator: ".", - defaultValue: "0" - }, - number: - { - decimalSeparator: ",", - thousandsSeparator: ".", - decimalPlaces: 2, - defaultValue: "0.00" - }, - currency: - { - decimalSeparator: ",", - thousandsSeparator: ".", - decimalPlaces: 2, - prefix: "EUR ", - suffix: "", - defaultValue: "0.00" - }, - date: - { - dayNames: ["Zo", "Ma", "Di", "Wo", "Do", "Vr", "Za", "Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag"], - monthNames: ["Jan", "Feb", "Maa", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "October", "November", "December"], - AmPm: ["am", "pm", "AM", "PM"], - S: function(b) { - return b < 11 || b > 13 ? ["st", "nd", "rd", "th"][Math.min((b - 1) % 10, 3)] : "th" - }, - srcformat: "Y-m-d", - newformat: "d/m/Y", - masks: - { - ISO8601Long: "Y-m-d H:i:s", - ISO8601Short: "Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l d F Y G:i:s", - MonthDay: "d F", - ShortTime: "G:i", - LongTime: "G:i:s", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit: false - }, - baseLinkUrl: "", - showAction: "", - target: "", - checkbox: - { - disabled: true - }, - idName: "id" - } - }); -})(jQuery); \ No newline at end of file diff --git a/js/i18n/grid.locale-no.js b/js/i18n/grid.locale-no.js deleted file mode 100644 index 60c2531..0000000 --- a/js/i18n/grid.locale-no.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){a.jgrid= a.jgrid || {};a.jgrid.defaults={recordtext:"Rad {0} - {1}, totalt {2}",loadtext:"Laster...",pgtext:"Side {0} av {1}"};a.jgrid.search={caption:"S�k...",Find:"Finn",Reset:"Nullstill",odata:["lik","forskjellig fra","mindre enn","mindre eller lik","st�rre enn"," st�rre eller lik","starter med","slutter med","inneholder"]};a.jgrid.edit={addCaption:"Ny rad",editCaption:"Rediger",bSubmit:"Send",bCancel:"Avbryt",bClose:"Lukk",processData:"Laster...",msg:{required:"Felt er obligatorisk",number:"Legg inn et gyldig tall",minValue:"verdi m� v�re st�rre enn eller lik",maxValue:"verdi m� v�re mindre enn eller lik",email:"er ikke en gyldig e-post adresse",integer:"Legg inn et gyldig heltall",date:"Legg inn en gyldig dato",url:"er ikke en gyldig URL. Prefiks p�krevd ('http://' eller 'https://')",nodefined:" er ikke definert!",novalue:" returverdi er p�krevd!",customarray:"Tilpasset funksjon m� returnere en tabell!",customfcheck:"Tilpasset funksjon m� eksistere!"}};a.jgrid.view={caption:"�pne post",bClose:"Lukk"};a.jgrid.del={caption:"Slett",msg:"Slett valgte rad(er)?",bSubmit:"Slett",bCancel:"Avbryt",processData:"Behandler..."};a.jgrid.nav={edittext:" ",edittitle:"Rediger valgte rad(er)",addtext:" ",addtitle:"Legg til ny rad",deltext:" ",deltitle:"Slett valgte rad(er)",searchtext:" ",searchtitle:"S�k",refreshtext:"",refreshtitle:"Oppdater tabell",alertcap:"Advarsel",alerttext:"Velg rad",viewtext:" ",viewtitle:"�pne valgt rad"};a.jgrid.col={caption:"Vis/skjul kolonner",bSubmit:"Utf�r",bCancel:"Avbryt"};a.jgrid.errors={errcap:"Feil",nourl:"Ingen url er satt",norecords:"Ingen poster � behandle",model:"colNames og colModel har forskjellig lengde!"};a.jgrid.formatter={integer:{thousandsSeparator:" ",defaulValue:0},number:{decimalSeparator:",",thousandsSeparator:" ",decimalPlaces:2,defaulValue:0},currency:{decimalSeparator:",",thousandsSeparator:" ",decimalPlaces:2,prefix:"",suffix:"",defaulValue:0},date:{dayNames:["s�.","ma.","ti.","on.","to.","fr.","l�.","S�ndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L�rdag"],monthNames:["jan.","feb.","mars","april","mai","juni","juli","aug.","sep.","okt.","nov.","des.","januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],AmPm:["","","",""],S:function(b){return"."},srcformat:"Y-m-d H:i:s",newformat:"Y-m-d H:i:s",masks:{ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"j.n.Y",LongDate:"l j. F Y",FullDateTime:"l j. F Y kl. G.i.s",MonthDay:"j. F",ShortTime:"H:i",LongTime:"H:i:s",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",YearMonth:"F Y"},reformatAfterEdit:false},baseLinkUrl:"",showAction:"show",addParam:"",checkbox:{disabled:true}}})(jQuery); diff --git a/js/i18n/grid.locale-pl.js b/js/i18n/grid.locale-pl.js deleted file mode 100644 index 5b1093b..0000000 --- a/js/i18n/grid.locale-pl.js +++ /dev/null @@ -1,133 +0,0 @@ -;(function($){ -/** - * jqGrid Polish Translation - * Łukasz Schab lukasz@freetree.pl - * http://FreeTree.pl - * - * Updated names, abbreviations, currency and date/time formats for Polish norms (also corresponding with CLDR v21.0.1 --> http://cldr.unicode.org/index) - * Tomasz Pęczek tpeczek@gmail.com - * http://tpeczek.blogspot.com; http://tpeczek.codeplex.com - * - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Pokaż {0} - {1} z {2}", - emptyrecords: "Brak rekordów do pokazania", - loadtext: "Ładowanie...", - pgtext : "Strona {0} z {1}" - }, - search : { - caption: "Wyszukiwanie...", - Find: "Szukaj", - Reset: "Czyść", - odata : ['dokładnie', 'różne od', 'mniejsze od', 'mniejsze lub równe', 'większe od', 'większe lub równe', 'zaczyna się od', 'nie zaczyna się od', 'jest w', 'nie jest w', 'kończy się na', 'nie kończy się na', 'zawiera', 'nie zawiera'], - groupOps: [ { op: "AND", text: "oraz" }, { op: "OR", text: "lub" } ], - matchText: " pasuje", - rulesText: " reguły" - }, - edit : { - addCaption: "Dodaj rekord", - editCaption: "Edytuj rekord", - bSubmit: "Zapisz", - bCancel: "Anuluj", - bClose: "Zamknij", - saveData: "Dane zostały zmienione! Zapisać zmiany?", - bYes: "Tak", - bNo: "Nie", - bExit: "Anuluj", - msg: { - required: "Pole jest wymagane", - number: "Proszę wpisać poprawną liczbę", - minValue: "wartość musi być większa lub równa od", - maxValue: "wartość musi być mniejsza lub równa od", - email: "nie jest poprawnym adresem e-mail", - integer: "Proszę wpisać poprawną liczbę", - date: "Proszę podaj poprawną datę", - url: "jest niewłaściwym adresem URL. Pamiętaj o prefiksie ('http://' lub 'https://')", - nodefined: " niezdefiniowane!", - novalue: " wymagana jest wartość zwracana!", - customarray: "Funkcja niestandardowa powinna zwracać tablicę!", - customfcheck: "Funkcja niestandardowa powinna być obecna w przypadku niestandardowego sprawdzania!" - } - }, - view : { - caption: "Pokaż rekord", - bClose: "Zamknij" - }, - del : { - caption: "Usuń", - msg: "Czy usunąć wybrany rekord(y)?", - bSubmit: "Usuń", - bCancel: "Anuluj" - }, - nav : { - edittext: "", - edittitle: "Edytuj wybrany wiersz", - addtext: "", - addtitle: "Dodaj nowy wiersz", - deltext: "", - deltitle: "Usuń wybrany wiersz", - searchtext: "", - searchtitle: "Wyszukaj rekord", - refreshtext: "", - refreshtitle: "Przeładuj", - alertcap: "Uwaga", - alerttext: "Proszę wybrać wiersz", - viewtext: "", - viewtitle: "Pokaż wybrany wiersz" - }, - col : { - caption: "Pokaż/Ukryj kolumny", - bSubmit: "Zatwierdź", - bCancel: "Anuluj" - }, - errors : { - errcap: "Błąd", - nourl: "Brak adresu url", - norecords: "Brak danych", - model : "Długość colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:" zł", defaultValue: '0,00'}, - date : { - dayNames: [ - "niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob.", - "niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota" - ], - monthNames: [ - "sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", - "styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień" - ], - AmPm : ["","","",""], - S: function (j) {return '';}, - srcformat: 'Y-m-d', - newformat: 'd.m.Y', - masks : { - ISO8601Long: "Y-m-d H:i:s", - ISO8601Short: "Y-m-d", - ShortDate: "d.m.y", - LongDate: "l, j F Y", - FullDateTime: "l, j F Y H:i:s", - MonthDay: "j F", - ShortTime: "H:i", - LongTime: "H:i:s", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); \ No newline at end of file diff --git a/js/i18n/grid.locale-pt-br.js b/js/i18n/grid.locale-pt-br.js deleted file mode 100644 index 5cd8592..0000000 --- a/js/i18n/grid.locale-pt-br.js +++ /dev/null @@ -1,131 +0,0 @@ -;(function($){ -/** - * jqGrid Brazilian-Portuguese Translation - * Sergio Righi sergio.righi@gmail.com - * http://curve.com.br - * - * Updated by Jonnas Fonini - * http://fonini.net - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Ver {0} - {1} de {2}", - emptyrecords: "Nenhum registro para visualizar", - loadtext: "Carregando...", - pgtext : "Página {0} de {1}" - }, - search : { - caption: "Procurar...", - Find: "Procurar", - Reset: "Resetar", - odata : ['igual', 'diferente', 'menor', 'menor ou igual','maior','maior ou igual', 'inicia com','não inicia com','está em','não está em','termina com','não termina com','contém','não contém','nulo','não nulo'], - groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ], - matchText: " igual a", - rulesText: " regras" - }, - edit : { - addCaption: "Incluir", - editCaption: "Alterar", - bSubmit: "Enviar", - bCancel: "Cancelar", - bClose: "Fechar", - saveData: "Os dados foram alterados! Salvar alterações?", - bYes : "Sim", - bNo : "Não", - bExit : "Cancelar", - msg: { - required:"Campo obrigatório", - number:"Por favor, informe um número válido", - minValue:"valor deve ser igual ou maior que ", - maxValue:"valor deve ser menor ou igual a", - email: "este e-mail não é válido", - integer: "Por favor, informe um valor inteiro", - date: "Por favor, informe uma data válida", - url: "não é uma URL válida. Prefixo obrigatório ('http://' or 'https://')", - nodefined : " não está definido!", - novalue : " um valor de retorno é obrigatório!", - customarray : "Função customizada deve retornar um array!", - customfcheck : "Função customizada deve estar presente em caso de validação customizada!" - } - }, - view : { - caption: "Ver Registro", - bClose: "Fechar" - }, - del : { - caption: "Apagar", - msg: "Apagar registro(s) selecionado(s)?", - bSubmit: "Apagar", - bCancel: "Cancelar" - }, - nav : { - edittext: " ", - edittitle: "Alterar registro selecionado", - addtext:" ", - addtitle: "Incluir novo registro", - deltext: " ", - deltitle: "Apagar registro selecionado", - searchtext: " ", - searchtitle: "Procurar registros", - refreshtext: "", - refreshtitle: "Recarregando tabela", - alertcap: "Aviso", - alerttext: "Por favor, selecione um registro", - viewtext: "", - viewtitle: "Ver linha selecionada" - }, - col : { - caption: "Mostrar/Esconder Colunas", - bSubmit: "Enviar", - bCancel: "Cancelar" - }, - errors : { - errcap : "Erro", - nourl : "Nenhuma URL definida", - norecords: "Sem registros para exibir", - model : "Comprimento de colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "R$ ", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb", - "Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado" - ], - monthNames: [ - "Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez", - "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['º', 'º', 'º', 'º'][Math.min((j - 1) % 10, 3)] : 'º'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-pt.js b/js/i18n/grid.locale-pt.js deleted file mode 100644 index f897510..0000000 --- a/js/i18n/grid.locale-pt.js +++ /dev/null @@ -1,126 +0,0 @@ -;(function($){ -/** - * jqGrid Portuguese Translation -* Tradu��o da jqGrid em Portugues por Frederico Carvalho, http://www.eyeviewdesign.pt - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "View {0} - {1} of {2}", - emptyrecords: "No records to view", - loadtext: "A carregar...", - pgtext : "Page {0} of {1}" - }, - search : { - caption: "Busca...", - Find: "Procurar", - Reset: "Limpar", - odata : ['equal', 'not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','does not begin with','is in','is not in','ends with','does not end with','contains','does not contain'], - groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ], - matchText: " match", - rulesText: " rules" - }, - edit : { - addCaption: "Adicionar Registo", - editCaption: "Modificar Registo", - bSubmit: "Submeter", - bCancel: "Cancelar", - bClose: "Fechar", - saveData: "Data has been changed! Save changes?", - bYes : "Yes", - bNo : "No", - bExit : "Cancel", - msg: { - required:"Campo obrigat�rio", - number:"Por favor, introduza um numero", - minValue:"O valor deve ser maior ou igual que", - maxValue:"O valor deve ser menor ou igual a", - email: "N�o � um endere�o de email v�lido", - integer: "Por favor, introduza um numero inteiro", - url: "is not a valid URL. Prefix required ('http://' or 'https://')", - nodefined : " is not defined!", - novalue : " return value is required!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - } - }, - view : { - caption: "View Record", - bClose: "Close" - }, - del : { - caption: "Eliminar", - msg: "Deseja eliminar o(s) registo(s) seleccionado(s)?", - bSubmit: "Eliminar", - bCancel: "Cancelar" - }, - nav : { - edittext: " ", - edittitle: "Modificar registo seleccionado", - addtext:" ", - addtitle: "Adicionar novo registo", - deltext: " ", - deltitle: "Eliminar registo seleccionado", - searchtext: " ", - searchtitle: "Procurar", - refreshtext: "", - refreshtitle: "Actualizar", - alertcap: "Aviso", - alerttext: "Por favor, seleccione um registo", - viewtext: "", - viewtitle: "View selected row" - }, - col : { - caption: "Mostrar/Ocultar Colunas", - bSubmit: "Enviar", - bCancel: "Cancelar" - }, - errors : { - errcap : "Erro", - nourl : "N�o especificou um url", - norecords: "N�o existem dados para processar", - model : "Tamanho do colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab", - "Domingo", "Segunda-Feira", "Ter�a-Feira", "Quarta-Feira", "Quinta-Feira", "Sexta-Feira", "S�bado" - ], - monthNames: [ - "Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez", - "Janeiro", "Fevereiro", "Mar�o", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['�', '�', '�', '�'][Math.min((j - 1) % 10, 3)] : '�'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-ro.js b/js/i18n/grid.locale-ro.js deleted file mode 100644 index 71d13d6..0000000 --- a/js/i18n/grid.locale-ro.js +++ /dev/null @@ -1,140 +0,0 @@ -;(function($){ -/** - * jqGrid Romanian Translation - * Alexandru Emil Lupu contact@alecslupu.ro - * http://www.alecslupu.ro/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Vizualizare {0} - {1} din {2}", - emptyrecords: "Nu există înregistrări de vizualizat", - loadtext: "Încărcare...", - pgtext : "Pagina {0} din {1}" - }, - search : { - caption: "Caută...", - Find: "Caută", - Reset: "Resetare", - odata : ['egal', 'diferit', 'mai mic', 'mai mic sau egal','mai mare','mai mare sau egal', 'începe cu','nu începe cu','se găsește în','nu se găsește în','se termină cu','nu se termină cu','conține',''], - groupOps: [ { op: "AND", text: "toate" }, { op: "OR", text: "oricare" } ], - matchText: " găsite", - rulesText: " reguli" - }, - edit : { - addCaption: "Adăugare înregistrare", - editCaption: "Modificare înregistrare", - bSubmit: "Salvează", - bCancel: "Anulare", - bClose: "Închide", - saveData: "Informațiile au fost modificate! Salvați modificările?", - bYes : "Da", - bNo : "Nu", - bExit : "Anulare", - msg: { - required:"Câmpul este obligatoriu", - number:"Vă rugăm introduceți un număr valid", - minValue:"valoarea trebuie sa fie mai mare sau egală cu", - maxValue:"valoarea trebuie sa fie mai mică sau egală cu", - email: "nu este o adresă de e-mail validă", - integer: "Vă rugăm introduceți un număr valid", - date: "Vă rugăm să introduceți o dată validă", - url: "Nu este un URL valid. Prefixul este necesar('http://' or 'https://')", - nodefined : " is not defined!", - novalue : " return value is required!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - } - }, - view : { - caption: "Vizualizare înregistrare", - bClose: "Închidere" - }, - del : { - caption: "Ștegere", - msg: "Ștergeți înregistrarea (înregistrările) selectate?", - bSubmit: "Șterge", - bCancel: "Anulare" - }, - nav : { - edittext: "", - edittitle: "Modifică rândul selectat", - addtext:"", - addtitle: "Adaugă rând nou", - deltext: "", - deltitle: "Șterge rândul selectat", - searchtext: "", - searchtitle: "Căutare înregistrări", - refreshtext: "", - refreshtitle: "Reîncarcare Grid", - alertcap: "Avertisment", - alerttext: "Vă rugăm să selectați un rând", - viewtext: "", - viewtitle: "Vizualizează rândul selectat" - }, - col : { - caption: "Arată/Ascunde coloanele", - bSubmit: "Salvează", - bCancel: "Anulare" - }, - errors : { - errcap : "Eroare", - nourl : "Niciun url nu este setat", - norecords: "Nu sunt înregistrări de procesat", - model : "Lungimea colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "Dum", "Lun", "Mar", "Mie", "Joi", "Vin", "Sâm", - "Duminică", "Luni", "Marți", "Miercuri", "Joi", "Vineri", "Sâmbătă" - ], - monthNames: [ - "Ian", "Feb", "Mar", "Apr", "Mai", "Iun", "Iul", "Aug", "Sep", "Oct", "Noi", "Dec", - "Ianuarie", "Februarie", "Martie", "Aprilie", "Mai", "Iunie", "Iulie", "August", "Septembrie", "Octombrie", "Noiembrie", "Decembrie" - ], - AmPm : ["am","pm","AM","PM"], - /* - Here is a problem in romanian: - M / F - 1st = primul / prima - 2nd = Al doilea / A doua - 3rd = Al treilea / A treia - 4th = Al patrulea/ A patra - 5th = Al cincilea / A cincea - 6th = Al șaselea / A șasea - 7th = Al șaptelea / A șaptea - .... - */ - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-ru.js b/js/i18n/grid.locale-ru.js deleted file mode 100644 index 0919b66..0000000 --- a/js/i18n/grid.locale-ru.js +++ /dev/null @@ -1,128 +0,0 @@ -;(function($){ -/** - * jqGrid Russian Translation v1.0 02.07.2009 (based on translation by Alexey Kanaev v1.1 21.01.2009, http://softcore.com.ru) - * Sergey Dyagovchenko - * http://d.sumy.ua - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Просмотр {0} - {1} из {2}", - emptyrecords: "Нет записей для просмотра", - loadtext: "Загрузка...", - pgtext : "Стр. {0} из {1}" - }, - search : { - caption: "Поиск...", - Find: "Найти", - Reset: "Сброс", - odata : ['равно', 'не равно', 'меньше', 'меньше или равно','больше','больше или равно', 'начинается с','не начинается с','находится в','не находится в','заканчивается на','не заканчивается на','содержит','не содержит'], - groupOps: [ { op: "AND", text: "все" }, { op: "OR", text: "любой" } ], - matchText: " совпадает", - rulesText: " правила" - }, - edit : { - addCaption: "Добавить запись", - editCaption: "Редактировать запись", - bSubmit: "Сохранить", - bCancel: "Отмена", - bClose: "Закрыть", - saveData: "Данные были измененны! Сохранить изменения?", - bYes : "Да", - bNo : "Нет", - bExit : "Отмена", - msg: { - required:"Поле является обязательным", - number:"Пожалуйста, введите правильное число", - minValue:"значение должно быть больше либо равно", - maxValue:"значение должно быть меньше либо равно", - email: "некорректное значение e-mail", - integer: "Пожалуйста, введите целое число", - date: "Пожалуйста, введите правильную дату", - url: "неверная ссылка. Необходимо ввести префикс ('http://' or 'https://')", - nodefined : " is not defined!", - novalue : " return value is required!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - } - }, - view : { - caption: "Просмотр записи", - bClose: "Закрыть" - }, - del : { - caption: "Удалить", - msg: "Удалить выбранную запись(и)?", - bSubmit: "Удалить", - bCancel: "Отмена" - }, - nav : { - edittext: " ", - edittitle: "Редактировать выбранную запись", - addtext:" ", - addtitle: "Добавить новую запись", - deltext: " ", - deltitle: "Удалить выбранную запись", - searchtext: " ", - searchtitle: "Найти записи", - refreshtext: "", - refreshtitle: "Обновить таблицу", - alertcap: "Внимание", - alerttext: "Пожалуйста, выберите запись", - viewtext: "", - viewtitle: "Просмотреть выбранную запись" - }, - col : { - caption: "Показать/скрыть столбцы", - bSubmit: "Сохранить", - bCancel: "Отмена" - }, - errors : { - errcap : "Ошибка", - nourl : "URL не установлен", - norecords: "Нет записей для обработки", - model : "Число полей не соответствует числу столбцов таблицы!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб", - "Воскресение", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота" - ], - monthNames: [ - "Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек", - "Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd.m.Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n.j.Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y G:i:s", - MonthDay: "F d", - ShortTime: "G:i", - LongTime: "G:i:s", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-sk.js b/js/i18n/grid.locale-sk.js deleted file mode 100644 index 1c438f2..0000000 --- a/js/i18n/grid.locale-sk.js +++ /dev/null @@ -1,128 +0,0 @@ -;(function($){ -/** - * jqGrid Slovak Translation - * Milan Cibulka - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Zobrazených {0} - {1} z {2} záznamov", - emptyrecords: "Neboli nájdené žiadne záznamy", - loadtext: "Načítám...", - pgtext : "Strana {0} z {1}" - }, - search : { - caption: "Vyhľadávam...", - Find: "Hľadať", - Reset: "Reset", - odata : ['rovná sa', 'nerovná sa', 'menšie', 'menšie alebo rovnajúce sa','väčšie', 'väčšie alebo rovnajúce sa', 'začína s', 'nezačína s', 'je v', 'nie je v', 'končí s', 'nekončí s', 'obahuje', 'neobsahuje'], - groupOps: [ { op: "AND", text: "všetkých" }, { op: "OR", text: "niektorého z" } ], - matchText: " hľadať podla", - rulesText: " pravidiel" - }, - edit : { - addCaption: "Pridať záznam", - editCaption: "Editácia záznamov", - bSubmit: "Uložiť", - bCancel: "Storno", - bClose: "Zavrieť", - saveData: "Údaje boli zmenené! Uložiť zmeny?", - bYes : "Ano", - bNo : "Nie", - bExit : "Zrušiť", - msg: { - required:"Pole je požadované", - number:"Prosím, vložte valídne číslo", - minValue:"hodnota musí býť väčšia ako alebo rovná ", - maxValue:"hodnota musí býť menšia ako alebo rovná ", - email: "nie je valídny e-mail", - integer: "Prosím, vložte celé číslo", - date: "Prosím, vložte valídny dátum", - url: "nie je platnou URL. Požadovaný prefix ('http://' alebo 'https://')", - nodefined : " nie je definovaný!", - novalue : " je vyžadovaná návratová hodnota!", - customarray : "Custom function mala vrátiť pole!", - customfcheck : "Custom function by mala byť prítomná v prípade custom checking!" - } - }, - view : { - caption: "Zobraziť záznam", - bClose: "Zavrieť" - }, - del : { - caption: "Zmazať", - msg: "Zmazať vybraný(é) záznam(y)?", - bSubmit: "Zmazať", - bCancel: "Storno" - }, - nav : { - edittext: " ", - edittitle: "Editovať vybraný riadok", - addtext:" ", - addtitle: "Pridať nový riadek", - deltext: " ", - deltitle: "Zmazať vybraný záznam ", - searchtext: " ", - searchtitle: "Nájsť záznamy", - refreshtext: "", - refreshtitle: "Obnoviť tabuľku", - alertcap: "Varovanie", - alerttext: "Prosím, vyberte riadok", - viewtext: "", - viewtitle: "Zobraziť vybraný riadok" - }, - col : { - caption: "Zobrazit/Skrýť stĺpce", - bSubmit: "Uložiť", - bCancel: "Storno" - }, - errors : { - errcap : "Chyba", - nourl : "Nie je nastavená url", - norecords: "Žiadne záznamy k spracovaniu", - model : "Dĺžka colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Ne", "Po", "Ut", "St", "Št", "Pi", "So", - "Nedela", "Pondelok", "Utorok", "Streda", "Štvrtok", "Piatek", "Sobota" - ], - monthNames: [ - "Jan", "Feb", "Mar", "Apr", "Máj", "Jún", "Júl", "Aug", "Sep", "Okt", "Nov", "Dec", - "Január", "Február", "Marec", "Apríl", "Máj", "Jún", "Júl", "August", "September", "Október", "November", "December" - ], - AmPm : ["do","od","DO","OD"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-sr-latin.js b/js/i18n/grid.locale-sr-latin.js deleted file mode 100644 index fe5a1e3..0000000 --- a/js/i18n/grid.locale-sr-latin.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid Serbian latin Translation - * Bild Studio info@bild-studio.net - * http://www.bild-studio.com - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Pregled {0} - {1} od {2}", - emptyrecords: "Ne postoji nijedan zapis", - loadtext: "Učitivanje...", - pgtext : "Strana {0} od {1}" - }, - search : { - caption: "Traženje...", - Find: "Traži", - Reset: "Resetuj", - odata : ['jednako', 'nije jednako', 'manje', 'manje ili jednako','veće','veće ili jednako', 'počinje sa','ne počinje sa','je u','nije u','završava sa','ne završava sa','sadrži','ne sadrži'], - groupOps: [ { op: "AND", text: "sva" }, { op: "OR", text: "bilo koje" } ], - matchText: " primeni", - rulesText: " pravila" - }, - edit : { - addCaption: "Dodaj zapis", - editCaption: "Izmeni zapis", - bSubmit: "Pošalji", - bCancel: "Odustani", - bClose: "Zatvori", - saveData: "Podatak je izmenjen! Sačuvaj izmene?", - bYes : "Da", - bNo : "Ne", - bExit : "Odustani", - msg: { - required: "Polje je obavezno", - number: "Unesite ispravan broj", - minValue: "vrednost mora biti veća od ili jednaka sa ", - maxValue: "vrednost mora biti manja ili jednaka sa", - email: "nije ispravna email adresa, nije valjda da ne umeš ukucati mail!?", - integer: "Unesi celobrojnu vrednost ", - date: "Unesite ispravan datum", - url: "nije ispravan URL. Potreban je prefiks ('http://' or 'https://')", - nodefined : " nije definisan!", - novalue : " zahtevana je povratna vrednost!", - customarray : "Prilagođena funkcija treba da vrati niz!", - customfcheck : "Prilagođena funkcija treba da bude prisutana u slučaju prilagođene provere!" - - } - }, - view : { - caption: "Pogledaj zapis", - bClose: "Zatvori" - }, - del : { - caption: "Izbrisi", - msg: "Izbrisi izabran(e) zapise(e)?", - bSubmit: "Izbriši", - bCancel: "Odbaci" - }, - nav : { - edittext: "", - edittitle: "Izmeni izabrani red", - addtext:"", - addtitle: "Dodaj novi red", - deltext: "", - deltitle: "Izbriši izabran red", - searchtext: "", - searchtitle: "Nađi zapise", - refreshtext: "", - refreshtitle: "Ponovo učitaj podatke", - alertcap: "Upozorenje", - alerttext: "Izaberite red", - viewtext: "", - viewtitle: "Pogledaj izabrani red" - }, - col : { - caption: "Izaberi kolone", - bSubmit: "OK", - bCancel: "Odbaci" - }, - errors : { - errcap : "Greška", - nourl : "Nije postavljen URL", - norecords: "Nema zapisa za obradu", - model : "Dužina modela colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub", - "Nedelja", "Ponedeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota" - ], - monthNames: [ - "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec", - "Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-sr.js b/js/i18n/grid.locale-sr.js deleted file mode 100644 index 3d86d71..0000000 --- a/js/i18n/grid.locale-sr.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid Serbian Translation - * Александар Миловац(Aleksandar Milovac) aleksandar.milovac@gmail.com - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Преглед {0} - {1} од {2}", - emptyrecords: "Не постоји ниједан запис", - loadtext: "Учитавање...", - pgtext : "Страна {0} од {1}" - }, - search : { - caption: "Тражење...", - Find: "Тражи", - Reset: "Ресетуј", - odata : ['једнако', 'није једнако', 'мање', 'мање или једнако','веће','веће или једнако', 'почиње са','не почиње са','је у','није у','завршава са','не завршава са','садржи','не садржи'], - groupOps: [ { op: "И", text: "сви" }, { op: "ИЛИ", text: "сваки" } ], - matchText: " match", - rulesText: " правила" - }, - edit : { - addCaption: "Додај запис", - editCaption: "Измени запис", - bSubmit: "Пошаљи", - bCancel: "Одустани", - bClose: "Затвори", - saveData: "Податак је измењен! Сачувај измене?", - bYes : "Да", - bNo : "Не", - bExit : "Одустани", - msg: { - required:"Поље је обавезно", - number:"Молим, унесите исправан број", - minValue:"вредност мора бити већа од или једнака са ", - maxValue:"вредност мора бити мања од или једнака са", - email: "није исправна имејл адреса", - integer: "Молим, унесите исправну целобројну вредност ", - date: "Молим, унесите исправан датум", - url: "није исправан УРЛ. Потребан је префикс ('http://' or 'https://')", - nodefined : " није дефинисан!", - novalue : " захтевана је повратна вредност!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - - } - }, - view : { - caption: "Погледај запис", - bClose: "Затвори" - }, - del : { - caption: "Избриши", - msg: "Избриши изабран(е) запис(е)?", - bSubmit: "Ибриши", - bCancel: "Одбаци" - }, - nav : { - edittext: "", - edittitle: "Измени изабрани ред", - addtext:"", - addtitle: "Додај нови ред", - deltext: "", - deltitle: "Избриши изабран ред", - searchtext: "", - searchtitle: "Нађи записе", - refreshtext: "", - refreshtitle: "Поново учитај податке", - alertcap: "Упозорење", - alerttext: "Молим, изаберите ред", - viewtext: "", - viewtitle: "Погледај изабрани ред" - }, - col : { - caption: "Изабери колоне", - bSubmit: "ОК", - bCancel: "Одбаци" - }, - errors : { - errcap : "Грешка", - nourl : "Није постављен URL", - norecords: "Нема записа за обраду", - model : "Дужина модела colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Нед", "Пон", "Уто", "Сре", "Чет", "Пет", "Суб", - "Недеља", "Понедељак", "Уторак", "Среда", "Четвртак", "Петак", "Субота" - ], - monthNames: [ - "Јан", "Феб", "Мар", "Апр", "Мај", "Јун", "Јул", "Авг", "Сеп", "Окт", "Нов", "Дец", - "Јануар", "Фебруар", "Март", "Април", "Мај", "Јун", "Јул", "Август", "Септембар", "Октобар", "Новембар", "Децембар" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-sv.js b/js/i18n/grid.locale-sv.js deleted file mode 100644 index d977c69..0000000 --- a/js/i18n/grid.locale-sv.js +++ /dev/null @@ -1,128 +0,0 @@ -;(function($){ -/** - * jqGrid Swedish Translation - * Harald Normann harald.normann@wts.se, harald.normann@gmail.com - * http://www.worldteamsoftware.com - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Visar {0} - {1} av {2}", - emptyrecords: "Det finns inga poster att visa", - loadtext: "Laddar...", - pgtext : "Sida {0} av {1}" - }, - search : { - caption: "Sök Poster - Ange sökvillkor", - Find: "Sök", - Reset: "Nollställ Villkor", - odata : ['lika', 'ej lika', 'mindre', 'mindre eller lika','större','större eller lika', 'börjar med','börjar inte med','tillhör','tillhör inte','slutar med','slutar inte med','innehåller','innehåller inte'], - groupOps: [ { op: "AND", text: "alla" }, { op: "OR", text: "eller" } ], - matchText: " träff", - rulesText: " regler" - }, - edit : { - addCaption: "Ny Post", - editCaption: "Redigera Post", - bSubmit: "Spara", - bCancel: "Avbryt", - bClose: "Stäng", - saveData: "Data har ändrats! Spara förändringar?", - bYes : "Ja", - bNo : "Nej", - bExit : "Avbryt", - msg: { - required:"Fältet är obligatoriskt", - number:"Välj korrekt nummer", - minValue:"värdet måste vara större än eller lika med", - maxValue:"värdet måste vara mindre än eller lika med", - email: "är inte korrekt e-post adress", - integer: "Var god ange korrekt heltal", - date: "Var god ange korrekt datum", - url: "är inte en korrekt URL. Prefix måste anges ('http://' or 'https://')", - nodefined : " är inte definierad!", - novalue : " returvärde måste anges!", - customarray : "Custom funktion måste returnera en vektor!", - customfcheck : "Custom funktion måste finnas om Custom kontroll sker!" - } - }, - view : { - caption: "Visa Post", - bClose: "Stäng" - }, - del : { - caption: "Radera", - msg: "Radera markerad(e) post(er)?", - bSubmit: "Radera", - bCancel: "Avbryt" - }, - nav : { - edittext: "", - edittitle: "Redigera markerad rad", - addtext:"", - addtitle: "Skapa ny post", - deltext: "", - deltitle: "Radera markerad rad", - searchtext: "", - searchtitle: "Sök poster", - refreshtext: "", - refreshtitle: "Uppdatera data", - alertcap: "Varning", - alerttext: "Ingen rad är markerad", - viewtext: "", - viewtitle: "Visa markerad rad" - }, - col : { - caption: "Välj Kolumner", - bSubmit: "OK", - bCancel: "Avbryt" - }, - errors : { - errcap : "Fel", - nourl : "URL saknas", - norecords: "Det finns inga poster att bearbeta", - model : "Antal colNames <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"Kr", defaultValue: '0,00'}, - date : { - dayNames: [ - "Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör", - "Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag" - ], - monthNames: [ - "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec", - "Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December" - ], - AmPm : ["fm","em","FM","EM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'Y-m-d', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-th.js b/js/i18n/grid.locale-th.js deleted file mode 100644 index 22b460e..0000000 --- a/js/i18n/grid.locale-th.js +++ /dev/null @@ -1,129 +0,0 @@ -;(function($){ -/** - * jqGrid Thai Translation - * Kittituch Manakul m.kittituch@Gmail.com - * http://trirand.com/blog/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "แสดง {0} - {1} จาก {2}", - emptyrecords: "ไม่พบข้อมูล", - loadtext: "กำลังร้องขอข้อมูล...", - pgtext : "หน้า {0} จาก {1}" - }, - search : { - caption: "กำลังค้นหา...", - Find: "ค้นหา", - Reset: "คืนค่ากลับ", - odata : ['เท่ากับ', 'ไม่เท่ากับ', 'น้อยกว่า', 'ไม่มากกว่า','มากกกว่า','ไม่น้อยกว่า', 'ขึ้นต้นด้วย','ไม่ขึ้นต้นด้วย','มีคำใดคำหนึ่งใน','ไม่มีคำใดคำหนึ่งใน','ลงท้ายด้วย','ไม่ลงท้ายด้วย','มีคำว่า','ไม่มีคำว่า'], - groupOps: [ { op: "และ", text: "ทั้งหมด" }, { op: "หรือ", text: "ใดๆ" } ], - matchText: " ตรงกันกับ", - rulesText: " ตามกฏ" - }, - edit : { - addCaption: "เพิ่มข้อมูล", - editCaption: "แก้ไขข้อมูล", - bSubmit: "บันทึก", - bCancel: "ยกเลิก", - bClose: "ปิด", - saveData: "คุณต้องการบันทึการแก้ไข ใช่หรือไม่?", - bYes : "บันทึก", - bNo : "ละทิ้งการแก้ไข", - bExit : "ยกเลิก", - msg: { - required:"ข้อมูลนี้จำเป็น", - number:"กรุณากรอกหมายเลขให้ถูกต้อง", - minValue:"ค่าของข้อมูลนี้ต้องไม่น้อยกว่า", - maxValue:"ค่าของข้อมูลนี้ต้องไม่มากกว่า", - email: "อีเมลล์นี้ไม่ถูกต้อง", - integer: "กรุณากรอกเป็นจำนวนเต็ม", - date: "กรุณากรอกวันที่ให้ถูกต้อง", - url: "URL ไม่ถูกต้อง URL จำเป็นต้องขึ้นต้นด้วย 'http://' หรือ 'https://'", - nodefined : "ไม่ได้ถูกกำหนดค่า!", - novalue : "ต้องการการคืนค่า!", - customarray : "ฟังก์ชันที่สร้างขึ้นต้องส่งค่ากลับเป็นแบบแอเรย์", - customfcheck : "ระบบต้องการฟังก์ชันที่สร้างขึ้นสำหรับการตรวจสอบ!" - - } - }, - view : { - caption: "เรียกดูข้อมูล", - bClose: "ปิด" - }, - del : { - caption: "ลบข้อมูล", - msg: "คุณต้องการลบข้อมูลที่ถูกเลือก ใช่หรือไม่?", - bSubmit: "ต้องการลบ", - bCancel: "ยกเลิก" - }, - nav : { - edittext: "", - edittitle: "แก้ไขข้อมูล", - addtext:"", - addtitle: "เพิ่มข้อมูล", - deltext: "", - deltitle: "ลบข้อมูล", - searchtext: "", - searchtitle: "ค้นหาข้อมูล", - refreshtext: "", - refreshtitle: "รีเฟรช", - alertcap: "คำเตือน", - alerttext: "กรุณาเลือกข้อมูล", - viewtext: "", - viewtitle: "ดูรายละเอียดข้อมูล" - }, - col : { - caption: "กรุณาเลือกคอลัมน์", - bSubmit: "ตกลง", - bCancel: "ยกเลิก" - }, - errors : { - errcap : "เกิดความผิดพลาด", - nourl : "ไม่ได้กำหนด URL", - norecords: "ไม่มีข้อมูลให้ดำเนินการ", - model : "จำนวนคอลัมน์ไม่เท่ากับจำนวนคอลัมน์โมเดล!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "อา", "จ", "อ", "พ", "พฤ", "ศ", "ส", - "อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศูกร์", "เสาร์" - ], - monthNames: [ - "ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค.", - "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฏาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return ''}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-tr.js b/js/i18n/grid.locale-tr.js deleted file mode 100644 index b32d667..0000000 --- a/js/i18n/grid.locale-tr.js +++ /dev/null @@ -1,127 +0,0 @@ -;(function($){ -/** - * jqGrid Turkish Translation - * Erhan Gündoğan (erhan@trposta.net) - * http://blog.zakkum.com - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "{0}-{1} listeleniyor. Toplam:{2}", - emptyrecords: "Kayıt bulunamadı", - loadtext: "Yükleniyor...", - pgtext : "{0}/{1}. Sayfa" - }, - search : { - caption: "Arama...", - Find: "Bul", - Reset: "Temizle", - odata : ['eşit', 'eşit değil', 'daha az', 'daha az veya eşit', 'daha fazla', 'daha fazla veya eşit', 'ile başlayan', 'ile başlamayan', 'içinde', 'içinde değil', 'ile biten', 'ile bitmeyen', 'içeren', 'içermeyen'], - groupOps: [ { op: "VE", text: "tüm" }, { op: "VEYA", text: "herhangi" } ], - matchText: " uyan", - rulesText: " kurallar" - }, - edit : { - addCaption: "Kayıt Ekle", - editCaption: "Kayıt Düzenle", - bSubmit: "Gönder", - bCancel: "İptal", - bClose: "Kapat", - saveData: "Veriler değişti! Kayıt edilsin mi?", - bYes : "Evet", - bNo : "Hayıt", - bExit : "İptal", - msg: { - required:"Alan gerekli", - number:"Lütfen bir numara giriniz", - minValue:"girilen değer daha büyük ya da buna eşit olmalıdır", - maxValue:"girilen değer daha küçük ya da buna eşit olmalıdır", - email: "geçerli bir e-posta adresi değildir", - integer: "Lütfen bir tamsayı giriniz", - url: "Geçerli bir URL değil. ('http://' or 'https://') ön eki gerekli.", - nodefined : " is not defined!", - novalue : " return value is required!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - } - }, - view : { - caption: "Kayıt Görüntüle", - bClose: "Kapat" - }, - del : { - caption: "Sil", - msg: "Seçilen kayıtlar silinsin mi?", - bSubmit: "Sil", - bCancel: "İptal" - }, - nav : { - edittext: " ", - edittitle: "Seçili satırı düzenle", - addtext:" ", - addtitle: "Yeni satır ekle", - deltext: " ", - deltitle: "Seçili satırı sil", - searchtext: " ", - searchtitle: "Kayıtları bul", - refreshtext: "", - refreshtitle: "Tabloyu yenile", - alertcap: "Uyarı", - alerttext: "Lütfen bir satır seçiniz", - viewtext: "", - viewtitle: "Seçilen satırı görüntüle" - }, - col : { - caption: "Sütunları göster/gizle", - bSubmit: "Gönder", - bCancel: "İptal" - }, - errors : { - errcap : "Hata", - nourl : "Bir url yapılandırılmamış", - norecords: "İşlem yapılacak bir kayıt yok", - model : "colNames uzunluğu <> colModel!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "Paz", "Pts", "Sal", "Çar", "Per", "Cum", "Cts", - "Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi" - ], - monthNames: [ - "Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", - "Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd/m/Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n/j/Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-tw.js b/js/i18n/grid.locale-tw.js deleted file mode 100644 index 113a219..0000000 --- a/js/i18n/grid.locale-tw.js +++ /dev/null @@ -1,130 +0,0 @@ -;(function($){ -/** - * jqGrid Chinese (Taiwan) Translation for v4.2 - * linquize - * https://github.com/linquize/jqGrid - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "{0} - {1} 共 {2} 條", - emptyrecords: "沒有記錄", - loadtext: "載入中...", - pgtext : " {0} 共 {1} 頁" - }, - search : { - caption: "搜尋...", - Find: "搜尋", - Reset: "重設", - odata : ['等於 ', '不等於 ', '小於 ', '小於等於 ','大於 ','大於等於 ', '開始於 ','不開始於 ','在其中 ','不在其中 ','結束於 ','不結束於 ','包含 ','不包含 '], - groupOps: [ { op: "AND", text: "所有" }, { op: "OR", text: "任一" } ], - matchText: " 匹配", - rulesText: " 規則" - }, - edit : { - addCaption: "新增記錄", - editCaption: "編輯記錄", - bSubmit: "提交", - bCancel: "取消", - bClose: "關閉", - saveData: "資料已改變,是否儲存?", - bYes : "是", - bNo : "否", - bExit : "取消", - msg: { - required:"此欄必要", - number:"請輸入有效的數字", - minValue:"值必須大於等於 ", - maxValue:"值必須小於等於 ", - email: "不是有效的e-mail地址", - integer: "請輸入有效整数", - date: "請輸入有效時間", - url: "網址無效。前綴必須為 ('http://' 或 'https://')", - nodefined : " 未定義!", - novalue : " 需要傳回值!", - customarray : "自訂函數應傳回陣列!", - customfcheck : "自訂檢查應有自訂函數!" - - } - }, - view : { - caption: "查看記錄", - bClose: "關閉" - }, - del : { - caption: "刪除", - msg: "刪除已選記錄?", - bSubmit: "刪除", - bCancel: "取消" - }, - nav : { - edittext: "", - edittitle: "編輯已選列", - addtext:"", - addtitle: "新增列", - deltext: "", - deltitle: "刪除已選列", - searchtext: "", - searchtitle: "搜尋記錄", - refreshtext: "", - refreshtitle: "重新整理表格", - alertcap: "警告", - alerttext: "請選擇列", - viewtext: "", - viewtitle: "檢視已選列" - }, - col : { - caption: "選擇欄", - bSubmit: "確定", - bCancel: "取消" - }, - errors : { - errcap : "錯誤", - nourl : "未設定URL", - norecords: "無需要處理的記錄", - model : "colNames 和 colModel 長度不同!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, - currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, - date : { - dayNames: [ - "日", "一", "二", "三", "四", "五", "六", - "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" - ], - monthNames: [ - "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二", - "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" - ], - AmPm : ["上午","下午","上午","下午"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'm-d-Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "Y/j/n", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y g:i:s A", - MonthDay: "F d", - ShortTime: "g:i A", - LongTime: "g:i:s A", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/i18n/grid.locale-ua.js b/js/i18n/grid.locale-ua.js deleted file mode 100644 index 3424529..0000000 --- a/js/i18n/grid.locale-ua.js +++ /dev/null @@ -1,128 +0,0 @@ -;(function($){ -/** - * jqGrid Ukrainian Translation v1.0 02.07.2009 - * Sergey Dyagovchenko - * http://d.sumy.ua - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html -**/ -$.jgrid = $.jgrid || {}; -$.extend($.jgrid,{ - defaults : { - recordtext: "Перегляд {0} - {1} з {2}", - emptyrecords: "Немає записів для перегляду", - loadtext: "Завантаження...", - pgtext : "Стор. {0} з {1}" - }, - search : { - caption: "Пошук...", - Find: "Знайти", - Reset: "Скидання", - odata : ['рівно', 'не рівно', 'менше', 'менше або рівне','більше','більше або рівне', 'починається з','не починається з','знаходиться в','не знаходиться в','закінчується на','не закінчується на','містить','не містить'], - groupOps: [ { op: "AND", text: "все" }, { op: "OR", text: "будь-який" } ], - matchText: " збігається", - rulesText: " правила" - }, - edit : { - addCaption: "Додати запис", - editCaption: "Змінити запис", - bSubmit: "Зберегти", - bCancel: "Відміна", - bClose: "Закрити", - saveData: "До данних були внесені зміни! Зберегти зміни?", - bYes : "Так", - bNo : "Ні", - bExit : "Відміна", - msg: { - required:"Поле є обов'язковим", - number:"Будь ласка, введіть правильне число", - minValue:"значення повинне бути більше або дорівнює", - maxValue:"значення повинно бути менше або дорівнює", - email: "некоректна адреса електронної пошти", - integer: "Будь ласка, введення дійсне ціле значення", - date: "Будь ласка, введення дійсне значення дати", - url: "не дійсний URL. Необхідна приставка ('http://' or 'https://')", - nodefined : " is not defined!", - novalue : " return value is required!", - customarray : "Custom function should return array!", - customfcheck : "Custom function should be present in case of custom checking!" - } - }, - view : { - caption: "Переглянути запис", - bClose: "Закрити" - }, - del : { - caption: "Видалити", - msg: "Видалити обраний запис(и)?", - bSubmit: "Видалити", - bCancel: "Відміна" - }, - nav : { - edittext: " ", - edittitle: "Змінити вибраний запис", - addtext:" ", - addtitle: "Додати новий запис", - deltext: " ", - deltitle: "Видалити вибраний запис", - searchtext: " ", - searchtitle: "Знайти записи", - refreshtext: "", - refreshtitle: "Оновити таблицю", - alertcap: "Попередження", - alerttext: "Будь ласка, виберіть запис", - viewtext: "", - viewtitle: "Переглянути обраний запис" - }, - col : { - caption: "Показати/Приховати стовпці", - bSubmit: "Зберегти", - bCancel: "Відміна" - }, - errors : { - errcap : "Помилка", - nourl : "URL не задан", - norecords: "Немає записів для обробки", - model : "Число полів не відповідає числу стовпців таблиці!" - }, - formatter : { - integer : {thousandsSeparator: " ", defaultValue: '0'}, - number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'}, - currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'}, - date : { - dayNames: [ - "Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб", - "Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота" - ], - monthNames: [ - "Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", - "Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень" - ], - AmPm : ["am","pm","AM","PM"], - S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, - srcformat: 'Y-m-d', - newformat: 'd.m.Y', - masks : { - ISO8601Long:"Y-m-d H:i:s", - ISO8601Short:"Y-m-d", - ShortDate: "n.j.Y", - LongDate: "l, F d, Y", - FullDateTime: "l, F d, Y G:i:s", - MonthDay: "F d", - ShortTime: "G:i", - LongTime: "G:i:s", - SortableDateTime: "Y-m-d\\TH:i:s", - UniversalSortableDateTime: "Y-m-d H:i:sO", - YearMonth: "F, Y" - }, - reformatAfterEdit : false - }, - baseLinkUrl: '', - showAction: '', - target: '', - checkbox : {disabled:true}, - idName : 'id' - } -}); -})(jQuery); diff --git a/js/jqDnR.js b/js/jqDnR.js deleted file mode 100644 index 60fe2a9..0000000 --- a/js/jqDnR.js +++ /dev/null @@ -1,69 +0,0 @@ -/* - * jqDnR - Minimalistic Drag'n'Resize for jQuery. - * - * Copyright (c) 2007 Brice Burgess , http://www.iceburg.net - * Licensed under the MIT License: - * http://www.opensource.org/licenses/mit-license.php - * - * $Version: 2007.08.19 +r2 - */ - -(function($){ -$.fn.jqDrag=function(h){return i(this,h,'d');}; -$.fn.jqResize=function(h,ar){return i(this,h,'r',ar);}; -$.jqDnR={ - dnr:{}, - e:0, - drag:function(v){ - if(M.k == 'd')E.css({left:M.X+v.pageX-M.pX,top:M.Y+v.pageY-M.pY}); - else { - E.css({width:Math.max(v.pageX-M.pX+M.W,0),height:Math.max(v.pageY-M.pY+M.H,0)}); - if(M1){E1.css({width:Math.max(v.pageX-M1.pX+M1.W,0),height:Math.max(v.pageY-M1.pY+M1.H,0)});} - } - return false; - }, - stop:function(){ - //E.css('opacity',M.o); - $(document).unbind('mousemove',J.drag).unbind('mouseup',J.stop); - } -}; -var J=$.jqDnR,M=J.dnr,E=J.e,E1, -i=function(e,h,k,aR){ - return e.each(function(){ - h=(h)?$(h,e):e; - h.bind('mousedown',{e:e,k:k},function(v){ - var d=v.data,p={};E=d.e;E1 = aR ? $(aR) : false; - // attempt utilization of dimensions plugin to fix IE issues - if(E.css('position') != 'relative'){try{E.position(p);}catch(e){}} - M={ - X:p.left||f('left')||0, - Y:p.top||f('top')||0, - W:f('width')||E[0].scrollWidth||0, - H:f('height')||E[0].scrollHeight||0, - pX:v.pageX, - pY:v.pageY, - k:d.k - //o:E.css('opacity') - }; - // also resize - if(E1 && d.k != 'd'){ - M1={ - X:p.left||f1('left')||0, - Y:p.top||f1('top')||0, - W:E1[0].offsetWidth||f1('width')||0, - H:E1[0].offsetHeight||f1('height')||0, - pX:v.pageX, - pY:v.pageY, - k:d.k - }; - } else {M1 = false;} - //E.css({opacity:0.8}); - try {$("input.hasDatepicker",E[0]).datepicker('hide');}catch (dpe){} - $(document).mousemove($.jqDnR.drag).mouseup($.jqDnR.stop); - return false; - }); - }); -}, -f=function(k){return parseInt(E.css(k))||false;}; -f1=function(k){ return parseInt(E1.css(k))||false;}; -})(jQuery); \ No newline at end of file diff --git a/js/jqModal.js b/js/jqModal.js deleted file mode 100644 index d1e7cda..0000000 --- a/js/jqModal.js +++ /dev/null @@ -1,69 +0,0 @@ -/* - * jqModal - Minimalist Modaling with jQuery - * (http://dev.iceburg.net/jquery/jqmodal/) - * - * Copyright (c) 2007,2008 Brice Burgess - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * - * $Version: 07/06/2008 +r13 - */ -(function($) { -$.fn.jqm=function(o){ -var p={ -overlay: 50, -closeoverlay : true, -overlayClass: 'jqmOverlay', -closeClass: 'jqmClose', -trigger: '.jqModal', -ajax: F, -ajaxText: '', -target: F, -modal: F, -toTop: F, -onShow: F, -onHide: F, -onLoad: F -}; -return this.each(function(){if(this._jqm)return H[this._jqm].c=$.extend({},H[this._jqm].c,o);s++;this._jqm=s; -H[s]={c:$.extend(p,$.jqm.params,o),a:F,w:$(this).addClass('jqmID'+s),s:s}; -if(p.trigger)$(this).jqmAddTrigger(p.trigger); -});}; - -$.fn.jqmAddClose=function(e){return hs(this,e,'jqmHide');}; -$.fn.jqmAddTrigger=function(e){return hs(this,e,'jqmShow');}; -$.fn.jqmShow=function(t){return this.each(function(){$.jqm.open(this._jqm,t);});}; -$.fn.jqmHide=function(t){return this.each(function(){$.jqm.close(this._jqm,t)});}; - -$.jqm = { -hash:{}, -open:function(s,t){var h=H[s],c=h.c,cc='.'+c.closeClass,z=(parseInt(h.w.css('z-index')));z=(z>0)?z:3000;var o=$('
    ').css({height:'100%',width:'100%',position:'fixed',left:0,top:0,'z-index':z-1,opacity:c.overlay/100});if(h.a)return F;h.t=t;h.a=true;h.w.css('z-index',z); - if(c.modal) {if(!A[0])setTimeout(function(){L('bind');},1);A.push(s);} - else if(c.overlay > 0) {if(c.closeoverlay) h.w.jqmAddClose(o);} - else o=F; - - h.o=(o)?o.addClass(c.overlayClass).prependTo('body'):F; - if(ie6){$('html,body').css({height:'100%',width:'100%'});if(o){o=o.css({position:'absolute'})[0];for(var y in {Top:1,Left:1})o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'");}} - - if(c.ajax) {var r=c.target||h.w,u=c.ajax;r=(typeof r == 'string')?$(r,h.w):$(r);u=(u.substr(0,1) == '@')?$(t).attr(u.substring(1)):u; - r.html(c.ajaxText).load(u,function(){if(c.onLoad)c.onLoad.call(this,h);if(cc)h.w.jqmAddClose($(cc,h.w));e(h);});} - else if(cc)h.w.jqmAddClose($(cc,h.w)); - - if(c.toTop&&h.o)h.w.before('').insertAfter(h.o); - (c.onShow)?c.onShow(h):h.w.show();e(h);return F; -}, -close:function(s){var h=H[s];if(!h.a)return F;h.a=F; - if(A[0]){A.pop();if(!A[0])L('unbind');} - if(h.c.toTop&&h.o)$('#jqmP'+h.w[0]._jqm).after(h.w).remove(); - if(h.c.onHide)h.c.onHide(h);else{h.w.hide();if(h.o)h.o.remove();} return F; -}, -params:{}}; -var s=0,H=$.jqm.hash,A=[],ie6=$.browser.msie&&($.browser.version == "6.0"),F=false, -e=function(h){var i=$('').css({opacity:0});if(ie6)if(h.o)h.o.html('

    ').prepend(i);else if(!$('iframe.jqm',h.w)[0])h.w.prepend(i); f(h);}, -f=function(h){try{$(':input:visible',h.w)[0].focus();}catch(_){}}, -L=function(t){$(document)[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m);}, -m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents('.jqmID'+h.s)[0]);if(r)f(h);return !r;}, -hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function() { - if(!this[c]){this[c]=[];$(this).click(function(){for(var i in {jqmShow:1,jqmHide:1})for(var s in this[i])if(H[this[i][s]])H[this[i][s]].w[i](this);return F;});}this[c].push(s);});});}; -})(jQuery); \ No newline at end of file diff --git a/js/jquery-ui-custom.min.js b/js/jquery-ui-custom.min.js deleted file mode 100644 index 793184e..0000000 --- a/js/jquery-ui-custom.min.js +++ /dev/null @@ -1,125 +0,0 @@ -/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.ui.core.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){function c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;return!b.href||!g||f.nodeName.toLowerCase()!=="map"?!1:(h=a("img[usemap=#"+g+"]")[0],!!h&&d(h))}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(a.ui.version)return;a.extend(a.ui,{version:"1.8.24",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;return a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){var d=a(this[0]),e,f;while(d.length&&d[0]!==document){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){f=parseInt(d.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}d=d.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a("").outerWidth(1).jquery||a.each(["Width","Height"],function(c,d){function h(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)}),c}var e=d==="Width"?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?g["inner"+d].call(this):this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return typeof b!="number"?g["outer"+d].call(this,b):this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.offsetHeight===100,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a.curCSS||(a.curCSS=a.css),a.extend(a.ui,{plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d)e.plugins[f]=e.plugins[f]||[],e.plugins[f].push([c,d[f]])},call:function(a,b,c){var d=a.plugins[b];if(!d||!a.element[0].parentNode)return;for(var e=0;e0?!0:(b[d]=1,e=b[d]>0,b[d]=0,e)},isOverAxis:function(a,b,c){return a>b&&a=9||!!b.button?this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted):this._mouseUp(b)},_mouseUp:function(b){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return!0}})})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.ui.position.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){a.ui=a.ui||{};var c=/left|center|right/,d=/top|center|bottom/,e="center",f={},g=a.fn.position,h=a.fn.offset;a.fn.position=function(b){if(!b||!b.of)return g.apply(this,arguments);b=a.extend({},b);var h=a(b.of),i=h[0],j=(b.collision||"flip").split(" "),k=b.offset?b.offset.split(" "):[0,0],l,m,n;return i.nodeType===9?(l=h.width(),m=h.height(),n={top:0,left:0}):i.setTimeout?(l=h.width(),m=h.height(),n={top:h.scrollTop(),left:h.scrollLeft()}):i.preventDefault?(b.at="left top",l=m=0,n={top:b.of.pageY,left:b.of.pageX}):(l=h.outerWidth(),m=h.outerHeight(),n=h.offset()),a.each(["my","at"],function(){var a=(b[this]||"").split(" ");a.length===1&&(a=c.test(a[0])?a.concat([e]):d.test(a[0])?[e].concat(a):[e,e]),a[0]=c.test(a[0])?a[0]:e,a[1]=d.test(a[1])?a[1]:e,b[this]=a}),j.length===1&&(j[1]=j[0]),k[0]=parseInt(k[0],10)||0,k.length===1&&(k[1]=k[0]),k[1]=parseInt(k[1],10)||0,b.at[0]==="right"?n.left+=l:b.at[0]===e&&(n.left+=l/2),b.at[1]==="bottom"?n.top+=m:b.at[1]===e&&(n.top+=m/2),n.left+=k[0],n.top+=k[1],this.each(function(){var c=a(this),d=c.outerWidth(),g=c.outerHeight(),h=parseInt(a.curCSS(this,"marginLeft",!0))||0,i=parseInt(a.curCSS(this,"marginTop",!0))||0,o=d+h+(parseInt(a.curCSS(this,"marginRight",!0))||0),p=g+i+(parseInt(a.curCSS(this,"marginBottom",!0))||0),q=a.extend({},n),r;b.my[0]==="right"?q.left-=d:b.my[0]===e&&(q.left-=d/2),b.my[1]==="bottom"?q.top-=g:b.my[1]===e&&(q.top-=g/2),f.fractions||(q.left=Math.round(q.left),q.top=Math.round(q.top)),r={left:q.left-h,top:q.top-i},a.each(["left","top"],function(c,e){a.ui.position[j[c]]&&a.ui.position[j[c]][e](q,{targetWidth:l,targetHeight:m,elemWidth:d,elemHeight:g,collisionPosition:r,collisionWidth:o,collisionHeight:p,offset:k,my:b.my,at:b.at})}),a.fn.bgiframe&&c.bgiframe(),c.offset(a.extend(q,{using:b.using}))})},a.ui.position={fit:{left:function(b,c){var d=a(window),e=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft();b.left=e>0?b.left-e:Math.max(b.left-c.collisionPosition.left,b.left)},top:function(b,c){var d=a(window),e=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop();b.top=e>0?b.top-e:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]===e)return;var d=a(window),f=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft(),g=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,h=c.at[0]==="left"?c.targetWidth:-c.targetWidth,i=-2*c.offset[0];b.left+=c.collisionPosition.left<0?g+h+i:f>0?g+h+i:0},top:function(b,c){if(c.at[1]===e)return;var d=a(window),f=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop(),g=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,h=c.at[1]==="top"?c.targetHeight:-c.targetHeight,i=-2*c.offset[1];b.top+=c.collisionPosition.top<0?g+h+i:f>0?g+h+i:0}}},a.offset.setOffset||(a.offset.setOffset=function(b,c){/static/.test(a.curCSS(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseInt(a.curCSS(b,"top",!0),10)||0,g=parseInt(a.curCSS(b,"left",!0),10)||0,h={top:c.top-e.top+f,left:c.left-e.left+g};"using"in c?c.using.call(b,h):d.css(h)},a.fn.offset=function(b){var c=this[0];return!c||!c.ownerDocument?null:b?a.isFunction(b)?this.each(function(c){a(this).offset(b.call(this,c,a(this).offset()))}):this.each(function(){a.offset.setOffset(this,b)}):h.call(this)}),a.curCSS||(a.curCSS=a.css),function(){var b=document.getElementsByTagName("body")[0],c=document.createElement("div"),d,e,g,h,i;d=document.createElement(b?"div":"body"),g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},b&&a.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(var j in g)d.style[j]=g[j];d.appendChild(c),e=b||document.documentElement,e.insertBefore(d,e.firstChild),c.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",h=a(c).offset(function(a,b){return b}).offset(),d.innerHTML="",e.removeChild(d),i=h.top+h.left+(b?2e3:0),f.fractions=i>21&&i<22}()})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.ui.draggable.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function(){if(!this.element.data("draggable"))return;return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(b){var c=this.options;return this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(b),this.handle?(c.iframeFix&&a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a('

    ').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),c.containment&&this._setContainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),!0)},_mouseDrag:function(b,c){this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute");if(!c){var d=this._uiHash();if(this._trigger("drag",b,d)===!1)return this._mouseUp({}),!1;this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";return a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(c=a.ui.ddmanager.drop(this,b)),this.dropped&&(c=this.dropped,this.dropped=!1);var d=this.element[0],e=!1;while(d&&(d=d.parentNode))d==document&&(e=!0);if(!e&&this.options.helper==="original")return!1;if(this.options.revert=="invalid"&&!c||this.options.revert=="valid"&&c||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,c)){var f=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",b)!==!1&&f._clear()})}else this._trigger("stop",b)!==!1&&this._clear();return!1},_mouseUp:function(b){return a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?!0:!1;return a(this.options.handle,this.element).find("*").andSelf().each(function(){this==b.target&&(c=!0)}),c},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):c.helper=="clone"?this.element.clone().removeAttr("id"):this.element;return d.parents("body").length||d.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo),d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute"),d},_adjustOffsetFromHelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[b.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,b.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(b.containment=="document"?0:a(window).scrollLeft())+a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b.containment=="document"?0:a(window).scrollTop())+(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=Array){var c=a(b.containment),d=c[0];if(!d)return;var e=c.offset(),f=a(d).css("overflow")!="hidden";this.containment=[(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0),(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0),(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=c}else b.containment.constructor==Array&&(this.containment=b.containment)},_convertPositionTo:function(b,c){c||(c=this.position);var d=b=="absolute"?1:-1,e=this.options,f=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop())*d),left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())*d)}},_generatePosition:function(b){var c=this.options,d=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName),f=b.pageX,g=b.pageY;if(this.originalPosition){var h;if(this.containment){if(this.relative_container){var i=this.relative_container.offset();h=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]}else h=this.containment;b.pageX-this.offset.click.lefth[2]&&(f=h[2]+this.offset.click.left),b.pageY-this.offset.click.top>h[3]&&(g=h[3]+this.offset.click.top)}if(c.grid){var j=c.grid[1]?this.originalPageY+Math.round((g-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY;g=h?j-this.offset.click.toph[3]?j-this.offset.click.toph[2]?k-this.offset.click.left=0;k--){var l=d.snapElements[k].left,m=l+d.snapElements[k].width,n=d.snapElements[k].top,o=n+d.snapElements[k].height;if(!(l-f=k&&g<=l||h>=k&&h<=l||gl)&&(e>=i&&e<=j||f>=i&&f<=j||ej);default:return!1}},a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(b,c){var d=a.ui.ddmanager.droppables[b.options.scope]||[],e=c?c.type:null,f=(b.currentItem||b.element).find(":data(droppable)").andSelf();g:for(var h=0;h
    ').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=c.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se");if(this.handles.constructor==String){this.handles=="all"&&(this.handles="n,e,s,w,se,sw,ne,nw");var d=this.handles.split(",");this.handles={};for(var e=0;e
    ');h.css({zIndex:c.zIndex}),"se"==f&&h.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[f]=".ui-resizable-"+f,this.element.append(h)}}this._renderAxis=function(b){b=b||this.element;for(var c in this.handles){this.handles[c].constructor==String&&(this.handles[c]=a(this.handles[c],this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var d=a(this.handles[c],this.element),e=0;e=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth();var f=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join("");b.css(f,e),this._proportionallyResize()}if(!a(this.handles[c]).length)continue}},this._renderAxis(this.element),this._handles=a(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!b.resizing){if(this.className)var a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=a&&a[1]?a[1]:"se"}}),c.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").hover(function(){if(c.disabled)return;a(this).removeClass("ui-resizable-autohide"),b._handles.show()},function(){if(c.disabled)return;b.resizing||(a(this).addClass("ui-resizable-autohide"),b._handles.hide())})),this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){b(this.element);var c=this.element;c.after(this.originalElement.css({position:c.css("position"),width:c.outerWidth(),height:c.outerHeight(),top:c.css("top"),left:c.css("left")})).remove()}return this.originalElement.css("resize",this.originalResizeStyle),b(this.originalElement),this},_mouseCapture:function(b){var c=!1;for(var d in this.handles)a(this.handles[d])[0]==b.target&&(c=!0);return!this.options.disabled&&c},_mouseStart:function(b){var d=this.options,e=this.element.position(),f=this.element;this.resizing=!0,this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()},(f.is(".ui-draggable")||/absolute/.test(f.css("position")))&&f.css({position:"absolute",top:e.top,left:e.left}),this._renderProxy();var g=c(this.helper.css("left")),h=c(this.helper.css("top"));d.containment&&(g+=a(d.containment).scrollLeft()||0,h+=a(d.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:g,top:h},this.size=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()},this.originalSize=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()},this.originalPosition={left:g,top:h},this.sizeDiff={width:f.outerWidth()-f.width(),height:f.outerHeight()-f.height()},this.originalMousePosition={left:b.pageX,top:b.pageY},this.aspectRatio=typeof d.aspectRatio=="number"?d.aspectRatio:this.originalSize.width/this.originalSize.height||1;var i=a(".ui-resizable-"+this.axis).css("cursor");return a("body").css("cursor",i=="auto"?this.axis+"-resize":i),f.addClass("ui-resizable-resizing"),this._propagate("start",b),!0},_mouseDrag:function(b){var c=this.helper,d=this.options,e={},f=this,g=this.originalMousePosition,h=this.axis,i=b.pageX-g.left||0,j=b.pageY-g.top||0,k=this._change[h];if(!k)return!1;var l=k.apply(this,[b,i,j]),m=a.browser.msie&&a.browser.version<7,n=this.sizeDiff;this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)l=this._updateRatio(l,b);return l=this._respectSize(l,b),this._propagate("resize",b),c.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(l),this._trigger("resize",b,this.ui()),!1},_mouseStop:function(b){this.resizing=!1;var c=this.options,d=this;if(this._helper){var e=this._proportionallyResizeElements,f=e.length&&/textarea/i.test(e[0].nodeName),g=f&&a.ui.hasScroll(e[0],"left")?0:d.sizeDiff.height,h=f?0:d.sizeDiff.width,i={width:d.helper.width()-h,height:d.helper.height()-g},j=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null,k=parseInt(d.element.css("top"),10)+(d.position.top-d.originalPosition.top)||null;c.animate||this.element.css(a.extend(i,{top:k,left:j})),d.helper.height(d.size.height),d.helper.width(d.size.width),this._helper&&!c.animate&&this._proportionallyResize()}return a("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",b),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(a){var b=this.options,c,e,f,g,h;h={minWidth:d(b.minWidth)?b.minWidth:0,maxWidth:d(b.maxWidth)?b.maxWidth:Infinity,minHeight:d(b.minHeight)?b.minHeight:0,maxHeight:d(b.maxHeight)?b.maxHeight:Infinity};if(this._aspectRatio||a)c=h.minHeight*this.aspectRatio,f=h.minWidth/this.aspectRatio,e=h.maxHeight*this.aspectRatio,g=h.maxWidth/this.aspectRatio,c>h.minWidth&&(h.minWidth=c),f>h.minHeight&&(h.minHeight=f),ea.width,k=d(a.height)&&e.minHeight&&e.minHeight>a.height;j&&(a.width=e.minWidth),k&&(a.height=e.minHeight),h&&(a.width=e.maxWidth),i&&(a.height=e.maxHeight);var l=this.originalPosition.left+this.originalSize.width,m=this.position.top+this.size.height,n=/sw|nw|w/.test(g),o=/nw|ne|n/.test(g);j&&n&&(a.left=l-e.minWidth),h&&n&&(a.left=l-e.maxWidth),k&&o&&(a.top=m-e.minHeight),i&&o&&(a.top=m-e.maxHeight);var p=!a.width&&!a.height;return p&&!a.left&&a.top?a.top=null:p&&!a.top&&a.left&&(a.left=null),a},_proportionallyResize:function(){var b=this.options;if(!this._proportionallyResizeElements.length)return;var c=this.helper||this.element;for(var d=0;d
    ');var d=a.browser.msie&&a.browser.version<7,e=d?1:0,f=d?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+f,height:this.element.outerHeight()+f,position:"absolute",left:this.elementOffset.left-e+"px",top:this.elementOffset.top-e+"px",zIndex:++c.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,b,c){return{width:this.originalSize.width+b}},w:function(a,b,c){var d=this.options,e=this.originalSize,f=this.originalPosition;return{left:f.left+b,width:e.width-b}},n:function(a,b,c){var d=this.options,e=this.originalSize,f=this.originalPosition;return{top:f.top+c,height:e.height-c}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]),b!="resize"&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),a.extend(a.ui.resizable,{version:"1.8.24"}),a.ui.plugin.add("resizable","alsoResize",{start:function(b,c){var d=a(this).data("resizable"),e=d.options,f=function(b){a(b).each(function(){var b=a(this);b.data("resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10)})})};typeof e.alsoResize=="object"&&!e.alsoResize.parentNode?e.alsoResize.length?(e.alsoResize=e.alsoResize[0],f(e.alsoResize)):a.each(e.alsoResize,function(a){f(a)}):f(e.alsoResize)},resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.originalSize,g=d.originalPosition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0},i=function(b,d){a(b).each(function(){var b=a(this),e=a(this).data("resizable-alsoresize"),f={},g=d&&d.length?d:b.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(g,function(a,b){var c=(e[b]||0)+(h[b]||0);c&&c>=0&&(f[b]=c||null)}),b.css(f)})};typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?a.each(e.alsoResize,function(a,b){i(a,b)}):i(e.alsoResize)},stop:function(b,c){a(this).removeData("resizable-alsoresize")}}),a.ui.plugin.add("resizable","animate",{stop:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d._proportionallyResizeElements,g=f.length&&/textarea/i.test(f[0].nodeName),h=g&&a.ui.hasScroll(f[0],"left")?0:d.sizeDiff.height,i=g?0:d.sizeDiff.width,j={width:d.size.width-i,height:d.size.height-h},k=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null,l=parseInt(d.element.css("top"),10)+(d.position.top-d.originalPosition.top)||null;d.element.animate(a.extend(j,l&&k?{top:l,left:k}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var c={width:parseInt(d.element.css("width"),10),height:parseInt(d.element.css("height"),10),top:parseInt(d.element.css("top"),10),left:parseInt(d.element.css("left"),10)};f&&f.length&&a(f[0]).css({width:c.width,height:c.height}),d._updateCache(c),d._propagate("resize",b)}})}}),a.ui.plugin.add("resizable","containment",{start:function(b,d){var e=a(this).data("resizable"),f=e.options,g=e.element,h=f.containment,i=h instanceof a?h.get(0):/parent/.test(h)?g.parent().get(0):h;if(!i)return;e.containerElement=a(i);if(/document/.test(h)||h==document)e.containerOffset={left:0,top:0},e.containerPosition={left:0,top:0},e.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight};else{var j=a(i),k=[];a(["Top","Right","Left","Bottom"]).each(function(a,b){k[a]=c(j.css("padding"+b))}),e.containerOffset=j.offset(),e.containerPosition=j.position(),e.containerSize={height:j.innerHeight()-k[3],width:j.innerWidth()-k[1]};var l=e.containerOffset,m=e.containerSize.height,n=e.containerSize.width,o=a.ui.hasScroll(i,"left")?i.scrollWidth:n,p=a.ui.hasScroll(i)?i.scrollHeight:m;e.parentData={element:i,left:l.left,top:l.top,width:o,height:p}}},resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.containerSize,g=d.containerOffset,h=d.size,i=d.position,j=d._aspectRatio||b.shiftKey,k={top:0,left:0},l=d.containerElement;l[0]!=document&&/static/.test(l.css("position"))&&(k=g),i.left<(d._helper?g.left:0)&&(d.size.width=d.size.width+(d._helper?d.position.left-g.left:d.position.left-k.left),j&&(d.size.height=d.size.width/d.aspectRatio),d.position.left=e.helper?g.left:0),i.top<(d._helper?g.top:0)&&(d.size.height=d.size.height+(d._helper?d.position.top-g.top:d.position.top),j&&(d.size.width=d.size.height*d.aspectRatio),d.position.top=d._helper?g.top:0),d.offset.left=d.parentData.left+d.position.left,d.offset.top=d.parentData.top+d.position.top;var m=Math.abs((d._helper?d.offset.left-k.left:d.offset.left-k.left)+d.sizeDiff.width),n=Math.abs((d._helper?d.offset.top-k.top:d.offset.top-g.top)+d.sizeDiff.height),o=d.containerElement.get(0)==d.element.parent().get(0),p=/relative|absolute/.test(d.containerElement.css("position"));o&&p&&(m-=d.parentData.left),m+d.size.width>=d.parentData.width&&(d.size.width=d.parentData.width-m,j&&(d.size.height=d.size.width/d.aspectRatio)),n+d.size.height>=d.parentData.height&&(d.size.height=d.parentData.height-n,j&&(d.size.width=d.size.height*d.aspectRatio))},stop:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.position,g=d.containerOffset,h=d.containerPosition,i=d.containerElement,j=a(d.helper),k=j.offset(),l=j.outerWidth()-d.sizeDiff.width,m=j.outerHeight()-d.sizeDiff.height;d._helper&&!e.animate&&/relative/.test(i.css("position"))&&a(this).css({left:k.left-h.left-g.left,width:l,height:m}),d._helper&&!e.animate&&/static/.test(i.css("position"))&&a(this).css({left:k.left-h.left-g.left,width:l,height:m})}}),a.ui.plugin.add("resizable","ghost",{start:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.size;d.ghost=d.originalElement.clone(),d.ghost.css({opacity:.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof e.ghost=="string"?e.ghost:""),d.ghost.appendTo(d.helper)},resize:function(b,c){var d=a(this).data("resizable"),e=d.options;d.ghost&&d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})},stop:function(b,c){var d=a(this).data("resizable"),e=d.options;d.ghost&&d.helper&&d.helper.get(0).removeChild(d.ghost.get(0))}}),a.ui.plugin.add("resizable","grid",{resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.size,g=d.originalSize,h=d.originalPosition,i=d.axis,j=e._aspectRatio||b.shiftKey;e.grid=typeof e.grid=="number"?[e.grid,e.grid]:e.grid;var k=Math.round((f.width-g.width)/(e.grid[0]||1))*(e.grid[0]||1),l=Math.round((f.height-g.height)/(e.grid[1]||1))*(e.grid[1]||1);/^(se|s|e)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l):/^(ne)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l,d.position.top=h.top-l):/^(sw)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l,d.position.left=h.left-k):(d.size.width=g.width+k,d.size.height=g.height+l,d.position.top=h.top-l,d.position.left=h.left-k)}});var c=function(a){return parseInt(a,10)||0},d=function(a){return!isNaN(parseInt(a,10))}})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.ui.selectable.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var b=this;this.element.addClass("ui-selectable"),this.dragged=!1;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]),c.addClass("ui-selectee"),c.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=c.addClass("ui-selectee"),this._mouseInit(),this.helper=a("
    ")},destroy:function(){return this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"),this._mouseDestroy(),this},_mouseStart:function(b){var c=this;this.opos=[b.pageX,b.pageY];if(this.options.disabled)return;var d=this.options;this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.clientX,top:b.clientY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,!b.metaKey&&!b.ctrlKey&&(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().andSelf().each(function(){var d=a.data(this,"selectable-item");if(d){var e=!b.metaKey&&!b.ctrlKey||!d.$element.hasClass("ui-selected");return d.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting"),d.unselecting=!e,d.selecting=e,d.selected=e,e?c._trigger("selecting",b,{selecting:d.element}):c._trigger("unselecting",b,{unselecting:d.element}),!1}})},_mouseDrag:function(b){var c=this;this.dragged=!0;if(this.options.disabled)return;var d=this.options,e=this.opos[0],f=this.opos[1],g=b.pageX,h=b.pageY;if(e>g){var i=g;g=e,e=i}if(f>h){var i=h;h=f,f=i}return this.helper.css({left:e,top:f,width:g-e,height:h-f}),this.selectees.each(function(){var i=a.data(this,"selectable-item");if(!i||i.element==c.element[0])return;var j=!1;d.tolerance=="touch"?j=!(i.left>g||i.righth||i.bottome&&i.rightf&&i.bottom *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var a=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},destroy:function(){a.Widget.prototype.destroy.call(this),this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--)this.items[b].item.removeData(this.widgetName+"-item");return this},_setOption:function(b,c){b==="disabled"?(this.options[b]=c,this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,c){var d=this;if(this.reverting)return!1;if(this.options.disabled||this.options.type=="static")return!1;this._refreshItems(b);var e=null,f=this,g=a(b.target).parents().each(function(){if(a.data(this,d.widgetName+"-item")==f)return e=a(this),!1});a.data(b.target,d.widgetName+"-item")==f&&(e=a(b.target));if(!e)return!1;if(this.options.handle&&!c){var h=!1;a(this.options.handle,e).find("*").andSelf().each(function(){this==b.target&&(h=!0)});if(!h)return!1}return this.currentItem=e,this._removeCurrentsFromItems(),!0},_mouseStart:function(b,c,d){var e=this.options,f=this;this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),e.containment&&this._setContainment(),e.cursor&&(a("body").css("cursor")&&(this._storedCursor=a("body").css("cursor")),a("body").css("cursor",e.cursor)),e.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",e.opacity)),e.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",e.zIndex)),this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions();if(!d)for(var g=this.containers.length-1;g>=0;g--)this.containers[g]._trigger("activate",b,f._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs);if(this.options.scroll){var c=this.options,d=!1;this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY=0;e--){var f=this.items[e],g=f.item[0],h=this._intersectsWithPointer(f);if(!h)continue;if(f.instance!==this.currentContainer)continue;if(g!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=g&&!a.ui.contains(this.placeholder[0],g)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],g):!0)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f))this._rearrange(b,f);else break;this._trigger("change",b,this._uiHash());break}}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(!b)return;a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b);if(this.options.revert){var d=this,e=d.placeholder.offset();d.reverting=!0,a(this.helper).animate({left:e.left-this.offset.parent.left-d.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-d.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1},cancel:function(){var b=this;if(this.dragging){this._mouseUp({target:null}),this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("deactivate",null,b._uiHash(this)),this.containers[c].containerCache.over&&(this.containers[c]._trigger("out",null,b._uiHash(this)),this.containers[c].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);c&&d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+"="),d.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")}),d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l=d+j>h&&d+jf&&b+ka[this.floating?"width":"height"]?l:f0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var c=this,d=[],e=[],f=this._connectWith();if(f&&b)for(var g=f.length-1;g>=0;g--){var h=a(f[g]);for(var i=h.length-1;i>=0;i--){var j=a.data(h[i],this.widgetName);j&&j!=this&&!j.options.disabled&&e.push([a.isFunction(j.options.items)?j.options.items.call(j.element):a(j.options.items,j.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),j])}}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var g=e.length-1;g>=0;g--)e[g][0].each(function(){d.push(this)});return a(d)},_removeCurrentsFromItems:function(){var a=this.currentItem.find(":data("+this.widgetName+"-item)");for(var b=0;b=0;g--){var h=a(f[g]);for(var i=h.length-1;i>=0;i--){var j=a.data(h[i],this.widgetName);j&&j!=this&&!j.options.disabled&&(e.push([a.isFunction(j.options.items)?j.options.items.call(j.element[0],b,{item:this.currentItem}):a(j.options.items,j.element),j]),this.containers.push(j))}}for(var g=e.length-1;g>=0;g--){var k=e[g][1],l=e[g][0];for(var i=0,m=l.length;i=0;c--){var d=this.items[c];if(d.instance!=this.currentContainer&&this.currentContainer&&d.item[0]!=this.currentItem[0])continue;var e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item;b||(d.width=e.outerWidth(),d.height=e.outerHeight());var f=e.offset();d.left=f.left,d.top=f.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var c=this.containers.length-1;c>=0;c--){var f=this.containers[c].element.offset();this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight()}return this},_createPlaceholder:function(b){var c=b||this,d=c.options;if(!d.placeholder||d.placeholder.constructor==String){var e=d.placeholder;d.placeholder={element:function(){var b=a(document.createElement(c.currentItem[0].nodeName)).addClass(e||c.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return e||(b.style.visibility="hidden"),b},update:function(a,b){if(e&&!d.forcePlaceholderSize)return;b.height()||b.height(c.currentItem.innerHeight()-parseInt(c.currentItem.css("paddingTop")||0,10)-parseInt(c.currentItem.css("paddingBottom")||0,10)),b.width()||b.width(c.currentItem.innerWidth()-parseInt(c.currentItem.css("paddingLeft")||0,10)-parseInt(c.currentItem.css("paddingRight")||0,10))}}}c.placeholder=a(d.placeholder.element.call(c.element,c.currentItem)),c.currentItem.after(c.placeholder),d.placeholder.update(c,c.placeholder)},_contactContainers:function(b){var c=null,d=null;for(var e=this.containers.length-1;e>=0;e--){if(a.ui.contains(this.currentItem[0],this.containers[e].element[0]))continue;if(this._intersectsWith(this.containers[e].containerCache)){if(c&&a.ui.contains(this.containers[e].element[0],c.element[0]))continue;c=this.containers[e],d=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",b,this._uiHash(this)),this.containers[e].containerCache.over=0)}if(!c)return;if(this.containers.length===1)this.containers[d]._trigger("over",b,this._uiHash(this)),this.containers[d].containerCache.over=1;else if(this.currentContainer!=this.containers[d]){var f=1e4,g=null,h=this.positionAbs[this.containers[d].floating?"left":"top"];for(var i=this.items.length-1;i>=0;i--){if(!a.ui.contains(this.containers[d].element[0],this.items[i].item[0]))continue;var j=this.containers[d].floating?this.items[i].item.offset().left:this.items[i].item.offset().top;Math.abs(j-h)0?"down":"up")}if(!g&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[d],g?this._rearrange(b,g,null,!0):this._rearrange(b,null,this.containers[d].element,!0),this._trigger("change",b,this._uiHash()),this.containers[d]._trigger("change",b,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[d]._trigger("over",b,this._uiHash(this)),this.containers[d].containerCache.over=1}},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;return d.parents("body").length||a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]),d[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(d[0].style.width==""||c.forceHelperSize)&&d.width(this.currentItem.width()),(d[0].style.height==""||c.forceHelperSize)&&d.height(this.currentItem.height()),d},_adjustOffsetFromHelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var c=a(b.containment)[0],d=a(b.containment).offset(),e=a(c).css("overflow")!="hidden";this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(e?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(e?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,c){c||(c=this.position);var d=b=="absolute"?1:-1,e=this.options,f=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop())*d),left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())*d)}},_generatePosition:function(b){var c=this.options,d=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);this.cssPosition=="relative"&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset());var f=b.pageX,g=b.pageY;if(this.originalPosition){this.containment&&(b.pageX-this.offset.click.leftthis.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top));if(c.grid){var h=this.originalPageY+Math.round((g-this.originalPageY)/c.grid[1])*c.grid[1];g=this.containment?h-this.offset.click.topthis.containment[3]?h-this.offset.click.topthis.containment[2]?i-this.offset.click.left=0;f--)c||d.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[f])),this.containers[f].containerCache.over&&(d.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[f])),this.containers[f].containerCache.over=0);this._storedCursor&&a("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex),this.dragging=!1;if(this.cancelHelperRemoval){if(!c){this._trigger("beforeStop",b,this._uiHash());for(var f=0;f li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var b=this,c=b.options;b.running=0,b.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"),b.headers=b.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){if(c.disabled)return;a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){if(c.disabled)return;a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){if(c.disabled)return;a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){if(c.disabled)return;a(this).removeClass("ui-state-focus")}),b.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var d=b.element.find("a").filter(c.navigationFilter).eq(0);if(d.length){var e=d.closest(".ui-accordion-header");e.length?b.active=e:b.active=d.closest(".ui-accordion-content").prev()}}b.active=b._findActive(b.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"),b.active.next().addClass("ui-accordion-content-active"),b._createIcons(),b.resize(),b.element.attr("role","tablist"),b.headers.attr("role","tab").bind("keydown.accordion",function(a){return b._keydown(a)}).next().attr("role","tabpanel"),b.headers.not(b.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide(),b.active.length?b.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):b.headers.eq(0).attr("tabIndex",0),a.browser.safari||b.headers.find("a").attr("tabIndex",-1),c.event&&b.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(a){b._clickHandler.call(b,a,this),a.preventDefault()})},_createIcons:function(){var b=this.options;b.icons&&(a("").addClass("ui-icon "+b.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected),this.element.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.children(".ui-icon").remove(),this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"),this.headers.find("a").removeAttr("tabIndex"),this._destroyIcons();var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");return(b.autoHeight||b.fillHeight)&&c.css("height",""),a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments),b=="active"&&this.activate(c),b=="icons"&&(this._destroyIcons(),c&&this._createIcons()),b=="disabled"&&this.headers.add(this.headers.next())[c?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(b){if(this.options.disabled||b.altKey||b.ctrlKey)return;var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._clickHandler({target:b.target},b.target),b.preventDefault()}return f?(a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),!1):!0},resize:function(){var b=this.options,c;if(b.fillSpace){if(a.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}c=this.element.parent().height(),a.browser.msie&&this.element.parent().css("overflow",d),this.headers.each(function(){c-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else b.autoHeight&&(c=0,this.headers.next().each(function(){c=Math.max(c,a(this).height("").height())}).height(c));return this},activate:function(a){this.options.active=a;var b=this._findActive(a)[0];return this._clickHandler({target:b},b),this},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===!1?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,c){var d=this.options;if(d.disabled)return;if(!b.target){if(!d.collapsible)return;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header),this.active.next().addClass("ui-accordion-content-active");var e=this.active.next(),f={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:e},g=this.active=a([]);this._toggle(g,e,f);return}var h=a(b.currentTarget||c),i=h[0]===this.active[0];d.active=d.collapsible&&i?!1:this.headers.index(h);if(this.running||!d.collapsible&&i)return;var j=this.active,g=h.next(),e=this.active.next(),f={options:d,newHeader:i&&d.collapsible?a([]):h,oldHeader:this.active,newContent:i&&d.collapsible?a([]):g,oldContent:e},k=this.headers.index(this.active[0])>this.headers.index(h[0]);this.active=i?a([]):h,this._toggle(g,e,f,i,k),j.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header),i||(h.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected),h.next().addClass("ui-accordion-content-active"));return},_toggle:function(b,c,d,e,f){var g=this,h=g.options;g.toShow=b,g.toHide=c,g.data=d;var i=function(){if(!g)return;return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data),g.running=c.size()===0?b.size():c.size();if(h.animated){var j={};h.collapsible&&e?j={toShow:a([]),toHide:c,complete:i,down:f,autoHeight:h.autoHeight||h.fillSpace}:j={toShow:b,toHide:c,complete:i,down:f,autoHeight:h.autoHeight||h.fillSpace},h.proxied||(h.proxied=h.animated),h.proxiedDuration||(h.proxiedDuration=h.duration),h.animated=a.isFunction(h.proxied)?h.proxied(j):h.proxied,h.duration=a.isFunction(h.proxiedDuration)?h.proxiedDuration(j):h.proxiedDuration;var k=a.ui.accordion.animations,l=h.duration,m=h.animated;m&&!k[m]&&!a.easing[m]&&(m="slide"),k[m]||(k[m]=function(a){this.slide(a,{easing:m,duration:l||700})}),k[m](j)}else h.collapsible&&e?b.toggle():(c.hide(),b.show()),i(!0);c.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur(),b.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(this.running)return;this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""}),this.toHide.removeClass("ui-accordion-content-active"),this.toHide.length&&(this.toHide.parent()[0].className=this.toHide.parent()[0].className),this._trigger("change",null,this.data)}}),a.extend(a.ui.accordion,{version:"1.8.24",animations:{slide:function(b,c){b=a.extend({easing:"swing",duration:300},b,c);if(!b.toHide.size()){b.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},b);return}if(!b.toShow.size()){b.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},b);return}var d=b.toShow.css("overflow"),e=0,f={},g={},h=["height","paddingTop","paddingBottom"],i,j=b.toShow;i=j[0].style.width,j.width(j.parent().width()-parseFloat(j.css("paddingLeft"))-parseFloat(j.css("paddingRight"))-(parseFloat(j.css("borderLeftWidth"))||0)-(parseFloat(j.css("borderRightWidth"))||0)),a.each(h,function(c,d){g[d]="hide";var e=(""+a.css(b.toShow[0],d)).match(/^([\d+-.]+)(.*)$/);f[d]={value:e[1],unit:e[2]||"px"}}),b.toShow.css({height:0,overflow:"hidden"}).show(),b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(g,{step:function(a,c){c.prop=="height"&&(e=c.end-c.start===0?0:(c.now-c.start)/(c.end-c.start)),b.toShow[0].style[c.prop]=e*f[c.prop].value+f[c.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height",""),b.toShow.css({width:i,overflow:d}),b.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1e3:200})}}})})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.ui.autocomplete.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){var c=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var b=this,c=this.element[0].ownerDocument,d;this.isMultiLine=this.element.is("textarea"),this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(b.options.disabled||b.element.propAttr("readOnly"))return;d=!1;var e=a.ui.keyCode;switch(c.keyCode){case e.PAGE_UP:b._move("previousPage",c);break;case e.PAGE_DOWN:b._move("nextPage",c);break;case e.UP:b._keyEvent("previous",c);break;case e.DOWN:b._keyEvent("next",c);break;case e.ENTER:case e.NUMPAD_ENTER:b.menu.active&&(d=!0,c.preventDefault());case e.TAB:if(!b.menu.active)return;b.menu.select(c);break;case e.ESCAPE:b.element.val(b.term),b.close(c);break;default:clearTimeout(b.searching),b.searching=setTimeout(function(){b.term!=b.element.val()&&(b.selectedItem=null,b.search(null,c))},b.options.delay)}}).bind("keypress.autocomplete",function(a){d&&(d=!1,a.preventDefault())}).bind("focus.autocomplete",function(){if(b.options.disabled)return;b.selectedItem=null,b.previous=b.element.val()}).bind("blur.autocomplete",function(a){if(b.options.disabled)return;clearTimeout(b.searching),b.closing=setTimeout(function(){b.close(a),b._change(a)},150)}),this._initSource(),this.menu=a("
      ").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",c)[0]).mousedown(function(c){var d=b.menu.element[0];a(c.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(c){c.target!==b.element[0]&&c.target!==d&&!a.ui.contains(d,c.target)&&b.close()})},1),setTimeout(function(){clearTimeout(b.closing)},13)}).menu({focus:function(a,c){var d=c.item.data("item.autocomplete");!1!==b._trigger("focus",a,{item:d})&&/^key/.test(a.originalEvent.type)&&b.element.val(d.value)},selected:function(a,d){var e=d.item.data("item.autocomplete"),f=b.previous;b.element[0]!==c.activeElement&&(b.element.focus(),b.previous=f,setTimeout(function(){b.previous=f,b.selectedItem=e},1)),!1!==b._trigger("select",a,{item:e})&&b.element.val(e.value),b.term=b.element.val(),b.close(a),b.selectedItem=e},blur:function(a,c){b.menu.element.is(":visible")&&b.element.val()!==b.term&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),a.fn.bgiframe&&this.menu.element.bgiframe(),b.beforeunloadHandler=function(){b.element.removeAttr("autocomplete")},a(window).bind("beforeunload",b.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),a(window).unbind("beforeunload",this.beforeunloadHandler),a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments),b==="source"&&this._initSource(),b==="appendTo"&&this.menu.element.appendTo(a(c||"body",this.element[0].ownerDocument)[0]),b==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var b=this,c,d;a.isArray(this.options.source)?(c=this.options.source,this.source=function(b,d){d(a.ui.autocomplete.filter(c,b.term))}):typeof this.options.source=="string"?(d=this.options.source,this.source=function(c,e){b.xhr&&b.xhr.abort(),b.xhr=a.ajax({url:d,data:c,dataType:"json",success:function(a,b){e(a)},error:function(){e([])}})}):this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val(),this.term=this.element.val();if(a.length").data("item.autocomplete",c).append(a("
      ").text(c.label)).appendTo(b)},_move:function(a,b){if(!this.menu.element.is(":visible")){this.search(null,b);return}if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term),this.menu.deactivate();return}this.menu[a](b)},widget:function(){return this.menu.element},_keyEvent:function(a,b){if(!this.isMultiLine||this.menu.element.is(":visible"))this._move(a,b),b.preventDefault()}}),a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}})})(jQuery),function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(!a(c.target).closest(".ui-menu-item a").length)return;c.preventDefault(),b.select(c)}),this.refresh()},refresh:function(){var b=this,c=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");c.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var c=b.offset().top-this.element.offset().top,d=this.element.scrollTop(),e=this.element.height();c<0?this.element.scrollTop(d+c):c>=e&&this.element.scrollTop(d+c-e+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",a,{item:b})},deactivate:function(){if(!this.active)return;this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,b,c){if(!this.active){this.activate(c,this.element.children(b));return}var d=this.active[a+"All"](".ui-menu-item").eq(0);d.length?this.activate(c,d):this.activate(c,this.element.children(b))},nextPage:function(b){if(this.hasScroll()){if(!this.active||this.last()){this.activate(b,this.element.children(".ui-menu-item:first"));return}var c=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c-d+a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(".ui-menu-item:last")),this.activate(b,e)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(b){if(this.hasScroll()){if(!this.active||this.first()){this.activate(b,this.element.children(".ui-menu-item:last"));return}var c=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c+d-a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(".ui-menu-item:first")),this.activate(b,e)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary,f=[];d.primary||d.secondary?(this.options.text&&f.push("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary")),d.primary&&b.prepend(""),d.secondary&&b.append(""),this.options.text||(f.push(e?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||b.attr("title",c))):f.push("ui-button-text-only"),b.addClass(f.join(" "))}}),a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c),a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var b=this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(b?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy"),a.Widget.prototype.destroy.call(this)}})})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.ui.dialog.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){var c="ui-dialog ui-widget ui-widget-content ui-corner-all ",d={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},e={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),typeof this.originalTitle!="string"&&(this.originalTitle=""),this.options.title=this.options.title||this.originalTitle;var b=this,d=b.options,e=d.title||" ",f=a.ui.dialog.getTitleId(b.element),g=(b.uiDialog=a("
      ")).appendTo(document.body).hide().addClass(c+d.dialogClass).css({zIndex:d.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(c){d.closeOnEscape&&!c.isDefaultPrevented()&&c.keyCode&&c.keyCode===a.ui.keyCode.ESCAPE&&(b.close(c),c.preventDefault())}).attr({role:"dialog","aria-labelledby":f}).mousedown(function(a){b.moveToTop(!1,a)}),h=b.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g),i=(b.uiDialogTitlebar=a("
      ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),j=a('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){j.addClass("ui-state-hover")},function(){j.removeClass("ui-state-hover")}).focus(function(){j.addClass("ui-state-focus")}).blur(function(){j.removeClass("ui-state-focus")}).click(function(a){return b.close(a),!1}).appendTo(i),k=(b.uiDialogTitlebarCloseText=a("")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(j),l=a("").addClass("ui-dialog-title").attr("id",f).html(e).prependTo(i);a.isFunction(d.beforeclose)&&!a.isFunction(d.beforeClose)&&(d.beforeClose=d.beforeclose),i.find("*").add(i).disableSelection(),d.draggable&&a.fn.draggable&&b._makeDraggable(),d.resizable&&a.fn.resizable&&b._makeResizable(),b._createButtons(d.buttons),b._isOpen=!1,a.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;return a.overlay&&a.overlay.destroy(),a.uiDialog.hide(),a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),a.uiDialog.remove(),a.originalTitle&&a.element.attr("title",a.originalTitle),a},widget:function(){return this.uiDialog},close:function(b){var c=this,d,e;if(!1===c._trigger("beforeClose",b))return;return c.overlay&&c.overlay.destroy(),c.uiDialog.unbind("keypress.ui-dialog"),c._isOpen=!1,c.options.hide?c.uiDialog.hide(c.options.hide,function(){c._trigger("close",b)}):(c.uiDialog.hide(),c._trigger("close",b)),a.ui.dialog.overlay.resize(),c.options.modal&&(d=0,a(".ui-dialog").each(function(){this!==c.uiDialog[0]&&(e=a(this).css("z-index"),isNaN(e)||(d=Math.max(d,e)))}),a.ui.dialog.maxZ=d),c},isOpen:function(){return this._isOpen},moveToTop:function(b,c){var d=this,e=d.options,f;return e.modal&&!b||!e.stack&&!e.modal?d._trigger("focus",c):(e.zIndex>a.ui.dialog.maxZ&&(a.ui.dialog.maxZ=e.zIndex),d.overlay&&(a.ui.dialog.maxZ+=1,d.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)),f={scrollTop:d.element.scrollTop(),scrollLeft:d.element.scrollLeft()},a.ui.dialog.maxZ+=1,d.uiDialog.css("z-index",a.ui.dialog.maxZ),d.element.attr(f),d._trigger("focus",c),d)},open:function(){if(this._isOpen)return;var b=this,c=b.options,d=b.uiDialog;return b.overlay=c.modal?new a.ui.dialog.overlay(b):null,b._size(),b._position(c.position),d.show(c.show),b.moveToTop(!0),c.modal&&d.bind("keydown.ui-dialog",function(b){if(b.keyCode!==a.ui.keyCode.TAB)return;var c=a(":tabbable",this),d=c.filter(":first"),e=c.filter(":last");if(b.target===e[0]&&!b.shiftKey)return d.focus(1),!1;if(b.target===d[0]&&b.shiftKey)return e.focus(1),!1}),a(b.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus(),b._isOpen=!0,b._trigger("open"),b},_createButtons:function(b){var c=this,d=!1,e=a("
      ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),f=a("
      ").addClass("ui-dialog-buttonset").appendTo(e);c.uiDialog.find(".ui-dialog-buttonpane").remove(),typeof b=="object"&&b!==null&&a.each(b,function(){return!(d=!0)}),d&&(a.each(b,function(b,d){d=a.isFunction(d)?{click:d,text:b}:d;var e=a('').click(function(){d.click.apply(c.element[0],arguments)}).appendTo(f);a.each(d,function(a,b){if(a==="click")return;a in e?e[a](b):e.attr(a,b)}),a.fn.button&&e.button()}),e.appendTo(c.uiDialog))},_makeDraggable:function(){function f(a){return{position:a.position,offset:a.offset}}var b=this,c=b.options,d=a(document),e;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(d,g){e=c.height==="auto"?"auto":a(this).height(),a(this).height(a(this).height()).addClass("ui-dialog-dragging"),b._trigger("dragStart",d,f(g))},drag:function(a,c){b._trigger("drag",a,f(c))},stop:function(g,h){c.position=[h.position.left-d.scrollLeft(),h.position.top-d.scrollTop()],a(this).removeClass("ui-dialog-dragging").height(e),b._trigger("dragStop",g,f(h)),a.ui.dialog.overlay.resize()}})},_makeResizable:function(c){function h(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}c=c===b?this.options.resizable:c;var d=this,e=d.options,f=d.uiDialog.css("position"),g=typeof c=="string"?c:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:g,start:function(b,c){a(this).addClass("ui-dialog-resizing"),d._trigger("resizeStart",b,h(c))},resize:function(a,b){d._trigger("resize",a,h(b))},stop:function(b,c){a(this).removeClass("ui-dialog-resizing"),e.height=a(this).height(),e.width=a(this).width(),d._trigger("resizeStop",b,h(c)),a.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(b){var c=[],d=[0,0],e;if(b){if(typeof b=="string"||typeof b=="object"&&"0"in b)c=b.split?b.split(" "):[b[0],b[1]],c.length===1&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c.join(" "),at:c.join(" "),offset:d.join(" ")};b=a.extend({},a.ui.dialog.prototype.options.position,b)}else b=a.ui.dialog.prototype.options.position;e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},b)),e||this.uiDialog.hide()},_setOptions:function(b){var c=this,f={},g=!1;a.each(b,function(a,b){c._setOption(a,b),a in d&&(g=!0),a in e&&(f[a]=b)}),g&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",f)},_setOption:function(b,d){var e=this,f=e.uiDialog;switch(b){case"beforeclose":b="beforeClose";break;case"buttons":e._createButtons(d);break;case"closeText":e.uiDialogTitlebarCloseText.text(""+d);break;case"dialogClass":f.removeClass(e.options.dialogClass).addClass(c+d);break;case"disabled":d?f.addClass("ui-dialog-disabled"):f.removeClass("ui-dialog-disabled");break;case"draggable":var g=f.is(":data(draggable)");g&&!d&&f.draggable("destroy"),!g&&d&&e._makeDraggable();break;case"position":e._position(d);break;case"resizable":var h=f.is(":data(resizable)");h&&!d&&f.resizable("destroy"),h&&typeof d=="string"&&f.resizable("option","handles",d),!h&&d!==!1&&e._makeResizable(d);break;case"title":a(".ui-dialog-title",e.uiDialogTitlebar).html(""+(d||" "))}a.Widget.prototype._setOption.apply(e,arguments)},_size:function(){var b=this.options,c,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0}),b.minWidth>b.width&&(b.width=b.minWidth),c=this.uiDialog.css({height:"auto",width:b.width}).height(),d=Math.max(0,b.minHeight-c);if(b.height==="auto")if(a.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();var f=this.element.css("height","auto").height();e||this.uiDialog.hide(),this.element.height(Math.max(f,d))}else this.element.height(Math.max(b.height-c,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),a.extend(a.ui.dialog,{version:"1.8.24",uuid:0,maxZ:0,getTitleId:function(a){var b=a.attr("id");return b||(this.uuid+=1,b=this.uuid),"ui-dialog-title-"+b},overlay:function(b){this.$el=a.ui.dialog.overlay.create(b)}}),a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),create:function(b){this.instances.length===0&&(setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(b){if(a(b.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});return a.fn.bgiframe&&c.bgiframe(),this.instances.push(c),c},destroy:function(b){var c=a.inArray(b,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]),this.instances.length===0&&a([document,window]).unbind(".dialog-overlay"),b.remove();var d=0;a.each(this.instances,function(){d=Math.max(d,this.css("z-index"))}),this.maxZ=d},height:function(){var b,c;return a.browser.msie&&a.browser.version<7?(b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),b").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(d.range==="min"||d.range==="max"?" ui-slider-range-"+d.range:"")));for(var i=e.length;ic&&(f=c,g=a(this),i=b)}),c.range===!0&&this.values(1)===c.min&&(i+=1,g=a(this.handles[i])),j=this._start(b,i),j===!1?!1:(this._mouseSliding=!0,h._handleIndex=i,g.addClass("ui-state-active").focus(),k=g.offset(),l=!a(b.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:b.pageX-k.left-g.width()/2,top:b.pageY-k.top-g.height()/2-(parseInt(g.css("borderTopWidth"),10)||0)-(parseInt(g.css("borderBottomWidth"),10)||0)+(parseInt(g.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,i,e),this._animateOff=!0,!0))},_mouseStart:function(a){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return this.orientation==="horizontal"?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),this.orientation==="vertical"&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),this.options.values.length===2&&this.options.range===!0&&(b===0&&c>d||b===1&&c1){this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),this._change(null,b);return}if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();d=this.options.values,e=arguments[0];for(f=0;f=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return Math.abs(c)*2>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b=this.options.range,c=this.options,d=this,e=this._animateOff?!1:c.animate,f,g={},h,i,j,k;this.options.values&&this.options.values.length?this.handles.each(function(b,i){f=(d.values(b)-d._valueMin())/(d._valueMax()-d._valueMin())*100,g[d.orientation==="horizontal"?"left":"bottom"]=f+"%",a(this).stop(1,1)[e?"animate":"css"](g,c.animate),d.options.range===!0&&(d.orientation==="horizontal"?(b===0&&d.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},c.animate),b===1&&d.range[e?"animate":"css"]({width:f-h+"%"},{queue:!1,duration:c.animate})):(b===0&&d.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},c.animate),b===1&&d.range[e?"animate":"css"]({height:f-h+"%"},{queue:!1,duration:c.animate}))),h=f}):(i=this.value(),j=this._valueMin(),k=this._valueMax(),f=k!==j?(i-j)/(k-j)*100:0,g[d.orientation==="horizontal"?"left":"bottom"]=f+"%",this.handle.stop(1,1)[e?"animate":"css"](g,c.animate),b==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[e?"animate":"css"]({width:f+"%"},c.animate),b==="max"&&this.orientation==="horizontal"&&this.range[e?"animate":"css"]({width:100-f+"%"},{queue:!1,duration:c.animate}),b==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},c.animate),b==="max"&&this.orientation==="vertical"&&this.range[e?"animate":"css"]({height:100-f+"%"},{queue:!1,duration:c.animate}))}}),a.extend(a.ui.slider,{version:"1.8.24"})})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.ui.tabs.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){function e(){return++c}function f(){return++d}var c=0,d=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"
      ",remove:null,select:null,show:null,spinner:"Loading…",tabTemplate:"
    • #{label}
    • "},_create:function(){this._tabify(!0)},_setOption:function(a,b){if(a=="selected"){if(this.options.collapsible&&b==this.options.selected)return;this.select(b)}else this.options[a]=b,this._tabify()},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+f());return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(a,b){return{tab:a,panel:b,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(c){function m(b,c){b.css("display",""),!a.support.opacity&&c.opacity&&b[0].style.removeAttribute("filter")}var d=this,e=this.options,f=/^#.+/;this.list=this.element.find("ol,ul").eq(0),this.lis=a(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return a("a",this)[0]}),this.panels=a([]),this.anchors.each(function(b,c){var g=a(c).attr("href"),h=g.split("#")[0],i;h&&(h===location.toString().split("#")[0]||(i=a("base")[0])&&h===i.href)&&(g=c.hash,c.href=g);if(f.test(g))d.panels=d.panels.add(d.element.find(d._sanitizeSelector(g)));else if(g&&g!=="#"){a.data(c,"href.tabs",g),a.data(c,"load.tabs",g.replace(/#.*$/,""));var j=d._tabId(c);c.href="#"+j;var k=d.element.find("#"+j);k.length||(k=a(e.panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(d.panels[b-1]||d.list),k.data("destroy.tabs",!0)),d.panels=d.panels.add(k)}else e.disabled.push(b)}),c?(this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"),this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addClass("ui-state-default ui-corner-top"),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"),e.selected===b?(location.hash&&this.anchors.each(function(a,b){if(b.hash==location.hash)return e.selected=a,!1}),typeof e.selected!="number"&&e.cookie&&(e.selected=parseInt(d._cookie(),10)),typeof e.selected!="number"&&this.lis.filter(".ui-tabs-selected").length&&(e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),e.selected=e.selected||(this.lis.length?0:-1)):e.selected===null&&(e.selected=-1),e.selected=e.selected>=0&&this.anchors[e.selected]||e.selected<0?e.selected:0,e.disabled=a.unique(e.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(a,b){return d.lis.index(a)}))).sort(),a.inArray(e.selected,e.disabled)!=-1&&e.disabled.splice(a.inArray(e.selected,e.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),e.selected>=0&&this.anchors.length&&(d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(e.selected).addClass("ui-tabs-selected ui-state-active"),d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[e.selected],d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash))[0]))}),this.load(e.selected)),a(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs"),d.lis=d.anchors=d.panels=null})):e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[e.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible"),e.cookie&&this._cookie(e.selected,e.cookie);for(var g=0,h;h=this.lis[g];g++)a(h)[a.inArray(g,e.disabled)!=-1&&!a(h).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");e.cache===!1&&this.anchors.removeData("cache.tabs"),this.lis.add(this.anchors).unbind(".tabs");if(e.event!=="mouseover"){var i=function(a,b){b.is(":not(.ui-state-disabled)")&&b.addClass("ui-state-"+a)},j=function(a,b){b.removeClass("ui-state-"+a)};this.lis.bind("mouseover.tabs",function(){i("hover",a(this))}),this.lis.bind("mouseout.tabs",function(){j("hover",a(this))}),this.anchors.bind("focus.tabs",function(){i("focus",a(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var k,l;e.fx&&(a.isArray(e.fx)?(k=e.fx[0],l=e.fx[1]):k=l=e.fx);var n=l?function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.hide().removeClass("ui-tabs-hide").animate(l,l.duration||"normal",function(){m(c,l),d._trigger("show",null,d._ui(b,c[0]))})}:function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.removeClass("ui-tabs-hide"),d._trigger("show",null,d._ui(b,c[0]))},o=k?function(a,b){b.animate(k,k.duration||"normal",function(){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),m(b,k),d.element.dequeue("tabs")})}:function(a,b,c){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),d.element.dequeue("tabs")};this.anchors.bind(e.event+".tabs",function(){var b=this,c=a(b).closest("li"),f=d.panels.filter(":not(.ui-tabs-hide)"),g=d.element.find(d._sanitizeSelector(b.hash));if(c.hasClass("ui-tabs-selected")&&!e.collapsible||c.hasClass("ui-state-disabled")||c.hasClass("ui-state-processing")||d.panels.filter(":animated").length||d._trigger("select",null,d._ui(this,g[0]))===!1)return this.blur(),!1;e.selected=d.anchors.index(this),d.abort();if(e.collapsible){if(c.hasClass("ui-tabs-selected"))return e.selected=-1,e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){o(b,f)}).dequeue("tabs"),this.blur(),!1;if(!f.length)return e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this)),this.blur(),!1}e.cookie&&d._cookie(e.selected,e.cookie);if(g.length)f.length&&d.element.queue("tabs",function(){o(b,f)}),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this));else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()}),this.anchors.bind("click.tabs",function(){return!1})},_getIndex:function(a){return typeof a=="string"&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},destroy:function(){var b=this.options;return this.abort(),this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs"),this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.anchors.each(function(){var b=a.data(this,"href.tabs");b&&(this.href=b);var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(a,b){c.removeData(b+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}),b.cookie&&this._cookie(null,b.cookie),this},add:function(c,d,e){e===b&&(e=this.anchors.length);var f=this,g=this.options,h=a(g.tabTemplate.replace(/#\{href\}/g,c).replace(/#\{label\}/g,d)),i=c.indexOf("#")?this._tabId(a("a",h)[0]):c.replace("#","");h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var j=f.element.find("#"+i);return j.length||(j=a(g.panelTemplate).attr("id",i).data("destroy.tabs",!0)),j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),e>=this.lis.length?(h.appendTo(this.list),j.appendTo(this.list[0].parentNode)):(h.insertBefore(this.lis[e]),j.insertBefore(this.panels[e])),g.disabled=a.map(g.disabled,function(a,b){return a>=e?++a:a}),this._tabify(),this.anchors.length==1&&(g.selected=0,h.addClass("ui-tabs-selected ui-state-active"),j.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){f._trigger("show",null,f._ui(f.anchors[0],f.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[e],this.panels[e])),this},remove:function(b){b=this._getIndex(b);var c=this.options,d=this.lis.eq(b).remove(),e=this.panels.eq(b).remove();return d.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(b+(b+1=b?--a:a}),this._tabify(),this._trigger("remove",null,this._ui(d.find("a")[0],e[0])),this},enable:function(b){b=this._getIndex(b);var c=this.options;if(a.inArray(b,c.disabled)==-1)return;return this.lis.eq(b).removeClass("ui-state-disabled"),c.disabled=a.grep(c.disabled,function(a,c){return a!=b}),this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b])),this},disable:function(a){a=this._getIndex(a);var b=this,c=this.options;return a!=c.selected&&(this.lis.eq(a).addClass("ui-state-disabled"),c.disabled.push(a),c.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))),this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;return this.anchors.eq(a).trigger(this.options.event+".tabs"),this},load:function(b){b=this._getIndex(b);var c=this,d=this.options,e=this.anchors.eq(b)[0],f=a.data(e,"load.tabs");this.abort();if(!f||this.element.queue("tabs").length!==0&&a.data(e,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(b).addClass("ui-state-processing");if(d.spinner){var g=a("span",e);g.data("label.tabs",g.html()).html(d.spinner)}return this.xhr=a.ajax(a.extend({},d.ajaxOptions,{url:f,success:function(f,g){c.element.find(c._sanitizeSelector(e.hash)).html(f),c._cleanup(),d.cache&&a.data(e,"cache.tabs",!0),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.success(f,g)}catch(h){}},error:function(a,f,g){c._cleanup(),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.error(a,f,b,e)}catch(g){}}})),c.element.dequeue("tabs"),this},abort:function(){return this.element.queue([]),this.panels.stop(!1,!0),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup(),this},url:function(a,b){return this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",b),this},length:function(){return this.anchors.length}}),a.extend(a.ui.tabs,{version:"1.8.24"}),a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(a,b){var c=this,d=this.options,e=c._rotate||(c._rotate=function(b){clearTimeout(c.rotation),c.rotation=setTimeout(function(){var a=d.selected;c.select(++a'))}function bindHover(a){var b="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return a.bind("mouseout",function(a){var c=$(a.target).closest(b);if(!c.length)return;c.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(c){var d=$(c.target).closest(b);if($.datepicker._isDisabledDatepicker(instActive.inline?a.parent()[0]:instActive.input[0])||!d.length)return;d.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),d.addClass("ui-state-hover"),d.hasClass("ui-datepicker-prev")&&d.addClass("ui-datepicker-prev-hover"),d.hasClass("ui-datepicker-next")&&d.addClass("ui-datepicker-next-hover")})}function extendRemove(a,b){$.extend(a,b);for(var c in b)if(b[c]==null||b[c]==undefined)a[c]=b[c];return a}function isArray(a){return a&&($.browser.safari&&typeof a=="object"&&a.length||a.constructor&&a.constructor.toString().match(/\Array\(\)/))}$.extend($.ui,{datepicker:{version:"1.8.24"}});var PROP_NAME="datepicker",dpuuid=(new Date).getTime(),instActive;$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline=nodeName=="div"||nodeName=="span";target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),nodeName=="input"?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:b?bindHover($('
      ')):this.dpDiv}},_connectDatepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]);if(c.hasClass(this.markerClassName))return;this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),this._autoSize(b),$.data(a,PROP_NAME,b),b.settings.disabled&&this._disableDatepicker(a)},_attachments:function(a,b){var c=this._get(b,"appendText"),d=this._get(b,"isRTL");b.append&&b.append.remove(),c&&(b.append=$(''+c+""),a[d?"before":"after"](b.append)),a.unbind("focus",this._showDatepicker),b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");(e=="focus"||e=="both")&&a.focus(this._showDatepicker);if(e=="button"||e=="both"){var f=this._get(b,"buttonText"),g=this._get(b,"buttonImage");b.trigger=$(this._get(b,"buttonImageOnly")?$("").addClass(this._triggerClass).attr({src:g,alt:f,title:f}):$('').addClass(this._triggerClass).html(g==""?f:$("").attr({src:g,alt:f,title:f}))),a[d?"before":"after"](b.trigger),b.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==a[0]?$.datepicker._hideDatepicker():$.datepicker._datepickerShowing&&$.datepicker._lastInput!=a[0]?($.datepicker._hideDatepicker(),$.datepicker._showDatepicker(a[0])):$.datepicker._showDatepicker(a[0]),!1})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var d=function(a){var b=0,c=0;for(var d=0;db&&(b=a[d].length,c=d);return c};b.setMonth(d(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort"))),b.setDate(d(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=$(a);if(c.hasClass(this.markerClassName))return;c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setDate(b,this._getDefaultDate(b),!0),this._updateDatepicker(b),this._updateAlternate(b),b.settings.disabled&&this._disableDatepicker(a),b.dpDiv.css("display","block")},_dialogDatepicker:function(a,b,c,d,e){var f=this._dialogInst;if(!f){this.uuid+=1;var g="dp"+this.uuid;this._dialogInput=$(''),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),f=this._dialogInst=this._newInst(this._dialogInput,!1),f.settings={},$.data(this._dialogInput[0],PROP_NAME,f)}extendRemove(f.settings,d||{}),b=b&&b.constructor==Date?this._formatDate(f,b):b,this._dialogInput.val(b),this._pos=e?e.length?e:[e.pageX,e.pageY]:null;if(!this._pos){var h=document.documentElement.clientWidth,i=document.documentElement.clientHeight,j=document.documentElement.scrollLeft||document.body.scrollLeft,k=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[h/2-100+j,i/2-150+k]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),f.settings.onSelect=c,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,f),this},_destroyDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(!b.hasClass(this.markerClassName))return;var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),d=="input"?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(d=="div"||d=="span")&&b.removeClass(this.markerClassName).empty()},_enableDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(!b.hasClass(this.markerClassName))return;var d=a.nodeName.toLowerCase();if(d=="input")a.disabled=!1,c.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if(d=="div"||d=="span"){var e=b.children("."+this._inlineClass);e.children().removeClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b})},_disableDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(!b.hasClass(this.markerClassName))return;var d=a.nodeName.toLowerCase();if(d=="input")a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if(d=="div"||d=="span"){var e=b.children("."+this._inlineClass);e.children().addClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=a},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b-1}},_doKeyUp:function(a){var b=$.datepicker._getInst(a.target);if(b.input.val()!=b.lastVal)try{var c=$.datepicker.parseDate($.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,$.datepicker._getFormatConfig(b));c&&($.datepicker._setDateFromField(b),$.datepicker._updateAlternate(b),$.datepicker._updateDatepicker(b))}catch(d){$.datepicker.log(d)}return!0},_showDatepicker:function(a){a=a.target||a,a.nodeName.toLowerCase()!="input"&&(a=$("input",a.parentNode)[0]);if($.datepicker._isDisabledDatepicker(a)||$.datepicker._lastInput==a)return;var b=$.datepicker._getInst(a);$.datepicker._curInst&&$.datepicker._curInst!=b&&($.datepicker._curInst.dpDiv.stop(!0,!0),b&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var c=$.datepicker._get(b,"beforeShow"),d=c?c.apply(a,[a,b]):{};if(d===!1)return;extendRemove(b.settings,d),b.lastVal=null,$.datepicker._lastInput=a,$.datepicker._setDateFromField(b),$.datepicker._inDialog&&(a.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(a),$.datepicker._pos[1]+=a.offsetHeight);var e=!1;$(a).parents().each(function(){return e|=$(this).css("position")=="fixed",!e}),e&&$.browser.opera&&($.datepicker._pos[0]-=document.documentElement.scrollLeft,$.datepicker._pos[1]-=document.documentElement.scrollTop);var f={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null,b.dpDiv.empty(),b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(b),f=$.datepicker._checkOffset(b,f,e),b.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":e?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"});if(!b.inline){var g=$.datepicker._get(b,"showAnim"),h=$.datepicker._get(b,"duration"),i=function(){var a=b.dpDiv.find("iframe.ui-datepicker-cover");if(!!a.length){var c=$.datepicker._getBorders(b.dpDiv);a.css({left:-c[0],top:-c[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex($(a).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&$.effects[g]?b.dpDiv.show(g,$.datepicker._get(b,"showOptions"),h,i):b.dpDiv[g||"show"](g?h:null,i),(!g||!h)&&i(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.datepicker._curInst=b}},_updateDatepicker:function(a){var b=this;b.maxRows=4;var c=$.datepicker._getBorders(a.dpDiv);instActive=a,a.dpDiv.empty().append(this._generateHTML(a)),this._attachHandlers(a);var d=a.dpDiv.find("iframe.ui-datepicker-cover");!d.length||d.css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}),a.dpDiv.find("."+this._dayOverClass+" a").mouseover();var e=this._getNumberOfMonths(a),f=e[1],g=17;a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&a.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",g*f+"em"),a.dpDiv[(e[0]!=1||e[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi"),a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),a==$.datepicker._curInst&&$.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var h=a.yearshtml;setTimeout(function(){h===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml),h=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var d=a.dpDiv.outerWidth(),e=a.dpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+(c?0:$(document).scrollLeft()),i=document.documentElement.clientHeight+(c?0:$(document).scrollTop());return b.left-=this._get(a,"isRTL")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){var b=this._getInst(a),c=this._get(b,"isRTL");while(a&&(a.type=="hidden"||a.nodeType!=1||$.expr.filters.hidden(a)))a=a[c?"previousSibling":"nextSibling"];var d=$(a).offset();return[d.left,d.top]},_hideDatepicker:function(a){var b=this._curInst;if(!b||a&&b!=$.data(a,PROP_NAME))return;if(this._datepickerShowing){var c=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){$.datepicker._tidyDialog(b)};$.effects&&$.effects[c]?b.dpDiv.hide(c,$.datepicker._get(b,"showOptions"),d,e):b.dpDiv[c=="slideDown"?"slideUp":c=="fadeIn"?"fadeOut":"hide"](c?d:null,e),c||e(),this._datepickerShowing=!1;var f=this._get(b,"onClose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(!$.datepicker._curInst)return;var b=$(a.target),c=$.datepicker._getInst(b[0]);(b[0].id!=$.datepicker._mainDivId&&b.parents("#"+$.datepicker._mainDivId).length==0&&!b.hasClass($.datepicker.markerClassName)&&!b.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&(!$.datepicker._inDialog||!$.blockUI)||b.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=c)&&$.datepicker._hideDatepicker()},_adjustDate:function(a,b,c){var d=$(a),e=this._getInst(d[0]);if(this._isDisabledDatepicker(d[0]))return;this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c),this._updateDatepicker(e)},_gotoToday:function(a){var b=$(a),c=this._getInst(b[0]);if(this._get(c,"gotoCurrent")&&c.currentDay)c.selectedDay=c.currentDay,c.drawMonth=c.selectedMonth=c.currentMonth,c.drawYear=c.selectedYear=c.currentYear;else{var d=new Date;c.selectedDay=d.getDate(),c.drawMonth=c.selectedMonth=d.getMonth(),c.drawYear=c.selectedYear=d.getFullYear()}this._notifyChange(c),this._adjustDate(b)},_selectMonthYear:function(a,b,c){var d=$(a),e=this._getInst(d[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10),this._notifyChange(e),this._adjustDate(d)},_selectDay:function(a,b,c,d){var e=$(a);if($(d).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0]))return;var f=this._getInst(e[0]);f.selectedDay=f.currentDay=$("a",d).html(),f.selectedMonth=f.currentMonth=b,f.selectedYear=f.currentYear=c,this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))},_clearDate:function(a){var b=$(a),c=this._getInst(b[0]);this._selectDate(b,"")},_selectDate:function(a,b){var c=$(a),d=this._getInst(c[0]);b=b!=null?b:this._formatDate(d),d.input&&d.input.val(b),this._updateAlternate(d);var e=this._get(d,"onSelect");e?e.apply(d.input?d.input[0]:null,[b,d]):d.input&&d.input.trigger("change"),d.inline?this._updateDatepicker(d):(this._hideDatepicker(),this._lastInput=d.input[0],typeof d.input[0]!="object"&&d.input.focus(),this._lastInput=null)},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),d=this._getDate(a),e=this.formatDate(c,d,this._getFormatConfig(a));$(b).each(function(){$(this).val(e)})}},noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b=new Date(a.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var c=b.getTime();return b.setMonth(0),b.setDate(1),Math.floor(Math.round((c-b)/864e5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?b.toString():b+"";if(b=="")return null;var d=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;d=typeof d!="string"?d:(new Date).getFullYear()%100+parseInt(d,10);var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=-1,j=-1,k=-1,l=-1,m=!1,n=function(b){var c=s+1-1){j=1,k=l;do{var u=this._getDaysInMonth(i,j-1);if(k<=u)break;j++,k-=u}while(!0)}var t=this._daylightSavingAdjust(new Date(i,j-1,k));if(t.getFullYear()!=i||t.getMonth()+1!=j||t.getDate()!=k)throw"Invalid date";return t},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,e=(c?c.dayNames:null)||this._defaults.dayNames,f=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,h=function(b){var c=m+112?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),(e!=a.selectedMonth||f!=a.selectedYear)&&!c&&this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(a){var b=this._get(a,"stepMonths"),c="#"+a.id.replace(/\\\\/g,"\\");a.dpDiv.find("[data-handler]").map(function(){var a={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(c,-b,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(c,+b,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(c)},selectDay:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectDay(c,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(c,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(c,this,"Y"),!1}};$(this).bind(this.getAttribute("data-event"),a[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),d=this._get(a,"showButtonPanel"),e=this._get(a,"hideIfNoPrevNext"),f=this._get(a,"navigationAsDateFormat"),g=this._getNumberOfMonths(a),h=this._get(a,"showCurrentAtPos"),i=this._get(a,"stepMonths"),j=g[0]!=1||g[1]!=1,k=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),l=this._getMinMaxDate(a,"min"),m=this._getMinMaxDate(a,"max"),n=a.drawMonth-h,o=a.drawYear;n<0&&(n+=12,o--);if(m){var p=this._daylightSavingAdjust(new Date(m.getFullYear(),m.getMonth()-g[0]*g[1]+1,m.getDate()));p=l&&pp)n--,n<0&&(n=11,o--)}a.drawMonth=n,a.drawYear=o;var q=this._get(a,"prevText");q=f?this.formatDate(q,this._daylightSavingAdjust(new Date(o,n-i,1)),this._getFormatConfig(a)):q;var r=this._canAdjustMonth(a,-1,o,n)?''+q+"":e?"":''+q+"",s=this._get(a,"nextText");s=f?this.formatDate(s,this._daylightSavingAdjust(new Date(o,n+i,1)),this._getFormatConfig(a)):s;var t=this._canAdjustMonth(a,1,o,n)?''+s+"":e?"":''+s+"",u=this._get(a,"currentText"),v=this._get(a,"gotoCurrent")&&a.currentDay?k:b;u=f?this.formatDate(u,v,this._getFormatConfig(a)):u;var w=a.inline?"":'",x=d?'
      '+(c?w:"")+(this._isInRange(a,v)?'":"")+(c?"":w)+"
      ":"",y=parseInt(this._get(a,"firstDay"),10);y=isNaN(y)?0:y;var z=this._get(a,"showWeek"),A=this._get(a,"dayNames"),B=this._get(a,"dayNamesShort"),C=this._get(a,"dayNamesMin"),D=this._get(a,"monthNames"),E=this._get(a,"monthNamesShort"),F=this._get(a,"beforeShowDay"),G=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths"),I=this._get(a,"calculateWeek")||this.iso8601Week,J=this._getDefaultDate(a),K="";for(var L=0;L1)switch(N){case 0:Q+=" ui-datepicker-group-first",P=" ui-corner-"+(c?"right":"left");break;case g[1]-1:Q+=" ui-datepicker-group-last",P=" ui-corner-"+(c?"left":"right");break;default:Q+=" ui-datepicker-group-middle",P=""}Q+='">'}Q+='
      '+(/all|left/.test(P)&&L==0?c?t:r:"")+(/all|right/.test(P)&&L==0?c?r:t:"")+this._generateMonthYearHeader(a,n,o,l,m,L>0||N>0,D,E)+'
      '+"";var R=z?'":"";for(var S=0;S<7;S++){var T=(S+y)%7;R+="=5?' class="ui-datepicker-week-end"':"")+">"+''+C[T]+""}Q+=R+"";var U=this._getDaysInMonth(o,n);o==a.selectedYear&&n==a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,U));var V=(this._getFirstDayOfMonth(o,n)-y+7)%7,W=Math.ceil((V+U)/7),X=j?this.maxRows>W?this.maxRows:W:W;this.maxRows=X;var Y=this._daylightSavingAdjust(new Date(o,n,1-V));for(var Z=0;Z";var _=z?'":"";for(var S=0;S<7;S++){var ba=F?F.apply(a.input?a.input[0]:null,[Y]):[!0,""],bb=Y.getMonth()!=n,bc=bb&&!H||!ba[0]||l&&Ym;_+='",Y.setDate(Y.getDate()+1),Y=this._daylightSavingAdjust(Y)}Q+=_+""}n++,n>11&&(n=0,o++),Q+="
      '+this._get(a,"weekHeader")+"
      '+this._get(a,"calculateWeek")(Y)+""+(bb&&!G?" ":bc?''+Y.getDate()+"":''+Y.getDate()+"")+"
      "+(j?""+(g[0]>0&&N==g[1]-1?'
      ':""):""),M+=Q}K+=M}return K+=x+($.browser.msie&&parseInt($.browser.version,10)<7&&!a.inline?'':""),a._keyEvent=!1,K},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i=this._get(a,"changeMonth"),j=this._get(a,"changeYear"),k=this._get(a,"showMonthAfterYear"),l='
      ',m="";if(f||!i)m+=''+g[b]+"";else{var n=d&&d.getFullYear()==c,o=e&&e.getFullYear()==c;m+='"}k||(l+=m+(f||!i||!j?" ":""));if(!a.yearshtml){a.yearshtml="";if(f||!j)l+=''+c+"";else{var q=this._get(a,"yearRange").split(":"),r=(new Date).getFullYear(),s=function(a){var b=a.match(/c[+-].*/)?c+parseInt(a.substring(1),10):a.match(/[+-].*/)?r+parseInt(a,10):parseInt(a,10);return isNaN(b)?r:b},t=s(q[0]),u=Math.max(t,s(q[1]||""));t=d?Math.max(t,d.getFullYear()):t,u=e?Math.min(u,e.getFullYear()):u,a.yearshtml+='",l+=a.yearshtml,a.yearshtml=null}}return l+=this._get(a,"yearSuffix"),k&&(l+=(f||!i||!j?" ":"")+m),l+="
      ",l},_adjustInstDate:function(a,b,c){var d=a.drawYear+(c=="Y"?b:0),e=a.drawMonth+(c=="M"?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+(c=="D"?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),(c=="M"||c=="Y")&&this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&bd?d:e,e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!d||b.getTime()<=d.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),$.fn.datepicker=function(a){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv),$.datepicker.initialized=!0);var b=Array.prototype.slice.call(arguments,1);return typeof a!="string"||a!="isDisabled"&&a!="getDate"&&a!="widget"?a=="option"&&arguments.length==2&&typeof arguments[1]=="string"?$.datepicker["_"+a+"Datepicker"].apply($.datepicker,[this[0]].concat(b)):this.each(function(){typeof a=="string"?$.datepicker["_"+a+"Datepicker"].apply($.datepicker,[this].concat(b)):$.datepicker._attachDatepicker(this,a)}):$.datepicker["_"+a+"Datepicker"].apply($.datepicker,[this[0]].concat(b))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.8.24",window["DP_jQuery_"+dpuuid]=$})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.ui.progressbar.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){a.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valueDiv=a("
      ").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove(),a.Widget.prototype.destroy.apply(this,arguments)},value:function(a){return a===b?this._value():(this._setOption("value",a),this)},_setOption:function(b,c){b==="value"&&(this.options.value=c,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;return typeof a!="number"&&(a=0),Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var a=this.value(),b=this._percentage();this.oldValue!==a&&(this.oldValue=a,this._trigger("change")),this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(b.toFixed(0)+"%"),this.element.attr("aria-valuenow",a)}}),a.extend(a.ui.progressbar,{version:"1.8.24"})})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.effects.core.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -jQuery.effects||function(a,b){function c(b){var c;return b&&b.constructor==Array&&b.length==3?b:(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))?[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10)]:(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))?[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))?[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]:(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))?[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]:(c=/rgba\(0, 0, 0, 0\)/.exec(b))?e.transparent:e[a.trim(b).toLowerCase()]}function d(b,d){var e;do{e=(a.curCSS||a.css)(b,d);if(e!=""&&e!="transparent"||a.nodeName(b,"body"))break;d="backgroundColor"}while(b=b.parentNode);return c(e)}function h(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,b={},c,d;if(a&&a.length&&a[0]&&a[a[0]]){var e=a.length;while(e--)c=a[e],typeof a[c]=="string"&&(d=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),b[d]=a[c])}else for(c in a)typeof a[c]=="string"&&(b[c]=a[c]);return b}function i(b){var c,d;for(c in b)d=b[c],(d==null||a.isFunction(d)||c in g||/scrollbar/.test(c)||!/color/i.test(c)&&isNaN(parseFloat(d)))&&delete b[c];return b}function j(a,b){var c={_:0},d;for(d in b)a[d]!=b[d]&&(c[d]=b[d]);return c}function k(b,c,d,e){typeof b=="object"&&(e=c,d=null,c=b,b=c.effect),a.isFunction(c)&&(e=c,d=null,c={});if(typeof c=="number"||a.fx.speeds[c])e=d,d=c,c={};return a.isFunction(d)&&(e=d,d=null),c=c||{},d=d||c.duration,d=a.fx.off?0:typeof d=="number"?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,e=e||c.complete,[b,c,d,e]}function l(b){return!b||typeof b=="number"||a.fx.speeds[b]?!0:typeof b=="string"&&!a.effects[b]?!0:!1}a.effects={},a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(b,e){a.fx.step[e]=function(a){a.colorInit||(a.start=d(a.elem,e),a.end=c(a.end),a.colorInit=!0),a.elem.style[e]="rgb("+Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2],10),255),0)+")"}});var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},f=["add","remove","toggle"],g={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(b,c,d,e){return a.isFunction(d)&&(e=d,d=null),this.queue(function(){var g=a(this),k=g.attr("style")||" ",l=i(h.call(this)),m,n=g.attr("class")||"";a.each(f,function(a,c){b[c]&&g[c+"Class"](b[c])}),m=i(h.call(this)),g.attr("class",n),g.animate(j(l,m),{queue:!1,duration:c,easing:d,complete:function(){a.each(f,function(a,c){b[c]&&g[c+"Class"](b[c])}),typeof g.attr("style")=="object"?(g.attr("style").cssText="",g.attr("style").cssText=k):g.attr("style",k),e&&e.apply(this,arguments),a.dequeue(this)}})})},a.fn.extend({_addClass:a.fn.addClass,addClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{add:b},c,d,e]):this._addClass(b)},_removeClass:a.fn.removeClass,removeClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{remove:b},c,d,e]):this._removeClass(b)},_toggleClass:a.fn.toggleClass,toggleClass:function(c,d,e,f,g){return typeof d=="boolean"||d===b?e?a.effects.animateClass.apply(this,[d?{add:c}:{remove:c},e,f,g]):this._toggleClass(c,d):a.effects.animateClass.apply(this,[{toggle:c},d,e,f])},switchClass:function(b,c,d,e,f){return a.effects.animateClass.apply(this,[{add:c,remove:b},d,e,f])}}),a.extend(a.effects,{version:"1.8.24",save:function(a,b){for(var c=0;c").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e=document.activeElement;try{e.id}catch(f){e=document.body}return b.wrap(d),(b[0]===e||a.contains(b[0],e))&&a(e).focus(),d=b.parent(),b.css("position")=="static"?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),d.css(c).show()},removeWrapper:function(b){var c,d=document.activeElement;return b.parent().is(".ui-effects-wrapper")?(c=b.parent().replaceWith(b),(b[0]===d||a.contains(b[0],d))&&a(d).focus(),c):b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(b,c,d,e){var f=k.apply(this,arguments),g={options:f[1],duration:f[2],callback:f[3]},h=g.options.mode,i=a.effects[b];return a.fx.off||!i?h?this[h](g.duration,g.callback):this.each(function(){g.callback&&g.callback.call(this)}):i.call(this,g)},_show:a.fn.show,show:function(a){if(l(a))return this._show.apply(this,arguments);var b=k.apply(this,arguments);return b[1].mode="show",this.effect.apply(this,b)},_hide:a.fn.hide,hide:function(a){if(l(a))return this._hide.apply(this,arguments);var b=k.apply(this,arguments);return b[1].mode="hide",this.effect.apply(this,b)},__toggle:a.fn.toggle,toggle:function(b){if(l(b)||typeof b=="boolean"||a.isFunction(b))return this.__toggle.apply(this,arguments);var c=k.apply(this,arguments);return c[1].mode="toggle",this.effect.apply(this,c)},cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}});var m={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,b){m[b]=function(b){return Math.pow(b,a+2)}}),a.extend(m,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return a===0||a===1?a:-Math.pow(2,8*(a-1))*Math.sin(((a-1)*80-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){var b,c=4;while(a<((b=Math.pow(2,--c))-1)/11);return 1/Math.pow(4,3-c)-7.5625*Math.pow((b*3-2)/22-a,2)}}),a.each(m,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return a<.5?c(a*2)/2:c(a*-2+2)/-2+1}})}(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.effects.blind.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){a.effects.blind=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"hide"),f=b.options.direction||"vertical";a.effects.save(c,d),c.show();var g=a.effects.createWrapper(c).css({overflow:"hidden"}),h=f=="vertical"?"height":"width",i=f=="vertical"?g.height():g.width();e=="show"&&g.css(h,0);var j={};j[h]=e=="show"?i:0,g.animate(j,b.duration,b.options.easing,function(){e=="hide"&&c.hide(),a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.effects.bounce.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){a.effects.bounce=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"effect"),f=b.options.direction||"up",g=b.options.distance||20,h=b.options.times||5,i=b.duration||250;/show|hide/.test(e)&&d.push("opacity"),a.effects.save(c,d),c.show(),a.effects.createWrapper(c);var j=f=="up"||f=="down"?"top":"left",k=f=="up"||f=="left"?"pos":"neg",g=b.options.distance||(j=="top"?c.outerHeight(!0)/3:c.outerWidth(!0)/3);e=="show"&&c.css("opacity",0).css(j,k=="pos"?-g:g),e=="hide"&&(g=g/(h*2)),e!="hide"&&h--;if(e=="show"){var l={opacity:1};l[j]=(k=="pos"?"+=":"-=")+g,c.animate(l,i/2,b.options.easing),g=g/2,h--}for(var m=0;m").css({position:"absolute",visibility:"visible",left:-j*(g/d),top:-i*(h/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/d,height:h/c,left:f.left+j*(g/d)+(b.options.mode=="show"?(j-Math.floor(d/2))*(g/d):0),top:f.top+i*(h/c)+(b.options.mode=="show"?(i-Math.floor(c/2))*(h/c):0),opacity:b.options.mode=="show"?0:1}).animate({left:f.left+j*(g/d)+(b.options.mode=="show"?0:(j-Math.floor(d/2))*(g/d)),top:f.top+i*(h/c)+(b.options.mode=="show"?0:(i-Math.floor(c/2))*(h/c)),opacity:b.options.mode=="show"?1:0},b.duration||500);setTimeout(function(){b.options.mode=="show"?e.css({visibility:"visible"}):e.css({visibility:"visible"}).hide(),b.callback&&b.callback.apply(e[0]),e.dequeue(),a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.effects.fade.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){a.effects.fade=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"hide");c.animate({opacity:d},{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.effects.fold.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){a.effects.fold=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"hide"),f=b.options.size||15,g=!!b.options.horizFirst,h=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(c,d),c.show();var i=a.effects.createWrapper(c).css({overflow:"hidden"}),j=e=="show"!=g,k=j?["width","height"]:["height","width"],l=j?[i.width(),i.height()]:[i.height(),i.width()],m=/([0-9]+)%/.exec(f);m&&(f=parseInt(m[1],10)/100*l[e=="hide"?0:1]),e=="show"&&i.css(g?{height:0,width:f}:{height:f,width:0});var n={},p={};n[k[0]]=e=="show"?l[0]:f,p[k[1]]=e=="show"?l[1]:0,i.animate(n,h,b.options.easing).animate(p,h,b.options.easing,function(){e=="hide"&&c.hide(),a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.effects.highlight.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){a.effects.highlight=function(b){return this.queue(function(){var c=a(this),d=["backgroundImage","backgroundColor","opacity"],e=a.effects.setMode(c,b.options.mode||"show"),f={backgroundColor:c.css("backgroundColor")};e=="hide"&&(f.opacity=0),a.effects.save(c,d),c.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(f,{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide(),a.effects.restore(c,d),e=="show"&&!a.support.opacity&&this.style.removeAttribute("filter"),b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}})(jQuery);;/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.effects.pulsate.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -(function(a,b){a.effects.pulsate=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"show"),e=(b.options.times||5)*2-1,f=b.duration?b.duration/2:a.fx.speeds._default/2,g=c.is(":visible"),h=0;g||(c.css("opacity",0).show(),h=1),(d=="hide"&&g||d=="show"&&!g)&&e--;for(var i=0;i').appendTo(document.body).addClass(b.options.className).css({top:g.top,left:g.left,height:c.innerHeight(),width:c.innerWidth(),position:"absolute"}).animate(f,b.duration,b.options.easing,function(){h.remove(),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}})(jQuery);; \ No newline at end of file diff --git a/js/jquery.cookie.js b/js/jquery.cookie.js deleted file mode 100644 index cb09af9..0000000 --- a/js/jquery.cookie.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Cookie plugin - * - * Copyright (c) 2006 Klaus Hartl (stilbuero.de) - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * - */ -jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options=$.extend({},options);options.expires=-1;}var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}expires='; expires='+date.toUTCString();}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i= 0 ? '&' : '?') + q; - options.data = null; // data is null for 'get' - } - else { - options.data = q; // data is the query string for 'post' - } - - var callbacks = []; - if (options.resetForm) { - callbacks.push(function() { $form.resetForm(); }); - } - if (options.clearForm) { - callbacks.push(function() { $form.clearForm(options.includeHidden); }); - } - - // perform a load on the target only if dataType is not provided - if (!options.dataType && options.target) { - var oldSuccess = options.success || function(){}; - callbacks.push(function(data) { - var fn = options.replaceTarget ? 'replaceWith' : 'html'; - $(options.target)[fn](data).each(oldSuccess, arguments); - }); - } - else if (options.success) { - callbacks.push(options.success); - } - - options.success = function(data, status, xhr) { // jQuery 1.4+ passes xhr as 3rd arg - var context = options.context || options; // jQuery 1.4+ supports scope context - for (var i=0, max=callbacks.length; i < max; i++) { - callbacks[i].apply(context, [data, status, xhr || $form, $form]); - } - }; - - // are there files to upload? - var fileInputs = $('input:file', this).length > 0; - var mp = 'multipart/form-data'; - var multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp); - - // options.iframe allows user to force iframe mode - // 06-NOV-09: now defaulting to iframe mode if file input is detected - if (options.iframe !== false && (fileInputs || options.iframe || multipart)) { - // hack to fix Safari hang (thanks to Tim Molendijk for this) - // see: http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d - if (options.closeKeepAlive) { - $.get(options.closeKeepAlive, function() { fileUpload(a); }); - } - else { - fileUpload(a); - } - } - else { - // IE7 massage (see issue 57) - if ($.browser.msie && method == 'get' && typeof options.type === "undefined") { - var ieMeth = $form[0].getAttribute('method'); - if (typeof ieMeth === 'string') - options.type = ieMeth; - } - $.ajax(options); - } - - // fire 'notify' event - this.trigger('form-submit-notify', [this, options]); - return this; - - - // private function for handling file uploads (hat tip to YAHOO!) - function fileUpload(a) { - var form = $form[0], el, i, s, g, id, $io, io, xhr, sub, n, timedOut, timeoutHandle; - var useProp = !!$.fn.prop; - - if (a) { - if ( useProp ) { - // ensure that every serialized input is still enabled - for (i=0; i < a.length; i++) { - el = $(form[a[i].name]); - el.prop('disabled', false); - } - } else { - for (i=0; i < a.length; i++) { - el = $(form[a[i].name]); - el.removeAttr('disabled'); - } - }; - } - - if ($(':input[name=submit],:input[id=submit]', form).length) { - // if there is an input with a name or id of 'submit' then we won't be - // able to invoke the submit fn on the form (at least not x-browser) - alert('Error: Form elements must not have name or id of "submit".'); - return; - } - - s = $.extend(true, {}, $.ajaxSettings, options); - s.context = s.context || s; - id = 'jqFormIO' + (new Date().getTime()); - if (s.iframeTarget) { - $io = $(s.iframeTarget); - n = $io.attr('name'); - if (n == null) - $io.attr('name', id); - else - id = n; - } - else { - $io = $('':"";a("
      ").append(k).insertBefore(j);a("
      "+this.p.loadtext+"
      ").insertBefore(j);a(this).attr({cellspacing:"0",cellpadding:"0",border:"0",role:"grid", -"aria-multiselectable":!!this.p.multiselect,"aria-labelledby":"gbox_"+this.id});var o=function(a,c){a=parseInt(a,10);return isNaN(a)?c||0:a},l=function(b,d,f,g,i,l){var k=c.p.colModel[b],j=k.align,m='style="',n=k.classes,o=k.name,p=[];j&&(m=m+("text-align:"+j+";"));k.hidden===true&&(m=m+"display:none;");if(d===0)m=m+("width: "+e.headers[b].width+"px;");else if(k.cellattr&&a.isFunction(k.cellattr))if((b=k.cellattr.call(c,i,f,g,k,l))&&typeof b==="string"){b=b.replace(/style/i,"style").replace(/title/i, -"title");if(b.indexOf("title")>-1)k.title=false;b.indexOf("class")>-1&&(n=void 0);p=b.split("style");if(p.length===2){p[1]=a.trim(p[1].replace("=",""));if(p[1].indexOf("'")===0||p[1].indexOf('"')===0)p[1]=p[1].substring(1);m=m+p[1].replace(/'/gi,'"')}else m=m+'"'}if(!p.length){p[0]="";m=m+'"'}m=m+((n!==void 0?' class="'+n+'"':"")+(k.title&&f?' title="'+a.jgrid.stripHtml(f)+'"':""));m=m+(' aria-describedby="'+c.p.id+"_"+o+'"');return m+p[0]},q=function(b){return b==null||b===""?" ":c.p.autoencode? -a.jgrid.htmlEncode(b):""+b},p=function(b,d,e,f,g){var h=c.p.colModel[e];if(h.formatter!==void 0){b=""+c.p.idPrefix!==""?a.jgrid.stripPref(c.p.idPrefix,b):b;b={rowId:b,colModel:h,gid:c.p.id,pos:e};d=a.isFunction(h.formatter)?h.formatter.call(c,d,b,f,g):a.fmatter?a.fn.fmatter.call(c,h.formatter,d,b,f,g):q(d)}else d=q(d);return d},r=function(a,c,b,d,e,f){c=p(a,c,b,e,"add");return'"+c+""},s=function(a,b,d,e){e='";return'"+e+""},t=function(a,c,b,d){b=(parseInt(b,10)-1)*parseInt(d,10)+1+c;return'"+b+""},v=function(a){var b,d=[],e=0,f;for(f=0;f0?this.rows[0]:null;a(this.firstChild).empty().append(d)}if(c&&this.p.scroll){a(this.grid.bDiv.firstChild).css({height:"auto"});a(this.grid.bDiv.firstChild.firstChild).css({height:0,display:"none"}); -if(this.grid.bDiv.scrollTop!==0)this.grid.bDiv.scrollTop=0}if(b===true&&this.p.treeGrid){this.p.data=[];this.p._index={}}},y=function(){var b=c.p.data.length,d,e,f;d=c.p.rownumbers===true?1:0;e=c.p.multiselect===true?1:0;f=c.p.subGrid===true?1:0;d=c.p.keyIndex===false||c.p.loadonce===true?c.p.localReader.id:c.p.colModel[c.p.keyIndex+e+f+d].name;for(e=0;e"},C=function(b,d,e,f,g){var h=new Date,i=c.p.datatype!="local"&&c.p.loadonce||c.p.datatype=="xmlstring",k=c.p.xmlReader,l=c.p.datatype=="local"?"local":"xml";if(i){c.p.data=[];c.p._index={};c.p.localReader.id="_id_"}c.p.reccount=0;if(a.isXMLDoc(b)){if(c.p.treeANode===-1&&!c.p.scroll){w.call(c,false,true);e=1}else e=e>1?e:1;var j=a(c),m,n,o=0,p,q=c.p.multiselect===true?1:0,y=0,H,L=c.p.rownumbers===true?1:0,u,D=[],C,J={},z,A,I=[], -N=c.p.altRows===true?" "+c.p.altclass:"",R;if(c.p.subGrid===true){y=1;H=a.jgrid.getMethod("addSubGridCell")}k.repeatitems||(D=v(l));u=c.p.keyIndex===false?a.isFunction(k.id)?k.id.call(c,b):k.id:c.p.keyIndex;if(D.length>0&&!isNaN(u)){c.p.remapColumns&&c.p.remapColumns.length&&(u=a.inArray(u,c.p.remapColumns));u=D[u]}l=(""+u).indexOf("[")===-1?D.length?function(c,b){return a(u,c).text()||b}:function(c,b){return a(k.cell,c).eq(u).text()||b}:function(a,c){return a.getAttribute(u.replace(/[\[\]]/g,""))|| -c};c.p.userData={};c.p.page=a.jgrid.getXmlData(b,k.page)||c.p.page||0;c.p.lastpage=a.jgrid.getXmlData(b,k.total);if(c.p.lastpage===void 0)c.p.lastpage=1;c.p.records=a.jgrid.getXmlData(b,k.records)||0;a.isFunction(k.userdata)?c.p.userData=k.userdata.call(c,b)||{}:a.jgrid.getXmlData(b,k.userdata,true).each(function(){c.p.userData[this.getAttribute("name")]=a(this).text()});b=a.jgrid.getXmlData(b,k.root,true);(b=a.jgrid.getXmlData(b,k.row,true))||(b=[]);var E=b.length,M=0,F=[],Y=parseInt(c.p.rowNum, -10),Q=c.p.scroll?a.jgrid.randId():1;if(E>0&&c.p.page<=0)c.p.page=1;if(b&&E){g&&(Y=Y*(g+1));var g=a.isFunction(c.p.afterInsertRow),O=false,G;if(c.p.grouping){O=c.p.groupingView.groupCollapse===true;G=a.jgrid.getMethod("groupingPrepare")}for(;M");if(c.p.grouping){F=G.call(j,I,F,J,M);I=[]}if(i||c.p.treeGrid===true){J._id_=A;c.p.data.push(J);c.p._index[A]=c.p.data.length-1}if(c.p.gridview===false){a("tbody:first",d).append(I.join(""));j.triggerHandler("jqGridAfterInsertRow", -[A,J,z]);g&&c.p.afterInsertRow.call(c,A,J,z);I=[]}J={};o++;M++;if(o==Y)break}}if(c.p.gridview===true){n=c.p.treeANode>-1?c.p.treeANode:0;if(c.p.grouping){j.jqGrid("groupingRender",F,c.p.colModel.length);F=null}else c.p.treeGrid===true&&n>0?a(c.rows[n]).after(I.join("")):a("tbody:first",d).append(I.join(""))}if(c.p.subGrid===true)try{j.jqGrid("addSubGrid",q+L)}catch(X){}c.p.totaltime=new Date-h;if(o>0&&c.p.records===0)c.p.records=E;I=null;if(c.p.treeGrid===true)try{j.jqGrid("setTreeNode",n+1,o+n+1)}catch(S){}if(!c.p.treeGrid&& -!c.p.scroll)c.grid.bDiv.scrollTop=0;c.p.reccount=o;c.p.treeANode=-1;c.p.userDataOnFooter&&j.jqGrid("footerData","set",c.p.userData,true);if(i){c.p.records=E;c.p.lastpage=Math.ceil(E/Y)}f||c.updatepager(false,true);if(i)for(;o1?e:1;var h,i,k=c.p.datatype!="local"&&c.p.loadonce||c.p.datatype=="jsonstring";if(k){c.p.data=[];c.p._index={};c.p.localReader.id="_id_"}c.p.reccount=0;if(c.p.datatype=="local"){h=c.p.localReader;i="local"}else{h=c.p.jsonReader;i="json"}var l=a(c),j=0,m,n,o=[],p,q=c.p.multiselect?1: -0,y=0,L,H=c.p.rownumbers===true?1:0,u,D,z={},J,A,C=[],I=c.p.altRows===true?" "+c.p.altclass:"",M;c.p.page=a.jgrid.getAccessor(b,h.page)||c.p.page||0;u=a.jgrid.getAccessor(b,h.total);if(c.p.subGrid===true){y=1;L=a.jgrid.getMethod("addSubGridCell")}c.p.lastpage=u===void 0?1:u;c.p.records=a.jgrid.getAccessor(b,h.records)||0;c.p.userData=a.jgrid.getAccessor(b,h.userdata)||{};h.repeatitems||(p=o=v(i));i=c.p.keyIndex===false?a.isFunction(h.id)?h.id.call(c,b):h.id:c.p.keyIndex;if(o.length>0&&!isNaN(i)){c.p.remapColumns&& -c.p.remapColumns.length&&(i=a.inArray(i,c.p.remapColumns));i=o[i]}(D=a.jgrid.getAccessor(b,h.root))||(D=[]);u=D.length;b=0;if(u>0&&c.p.page<=0)c.p.page=1;var E=parseInt(c.p.rowNum,10),N=c.p.scroll?a.jgrid.randId():1,R=false,F;g&&(E=E*(g+1));c.p.datatype==="local"&&!c.p.deselectAfterSort&&(R=true);var Y=a.isFunction(c.p.afterInsertRow),Q=[],O=false,G;if(c.p.grouping){O=c.p.groupingView.groupCollapse===true;G=a.jgrid.getMethod("groupingPrepare")}for(;b");if(c.p.grouping){Q=G.call(l,C,Q,z,b);C=[]}if(k||c.p.treeGrid===true){z._id_=A;c.p.data.push(z);c.p._index[A]=c.p.data.length-1}if(c.p.gridview===false){a("#"+a.jgrid.jqID(c.p.id)+" tbody:first").append(C.join(""));l.triggerHandler("jqGridAfterInsertRow",[A,z,g]);Y&&c.p.afterInsertRow.call(c,A,z,g);C=[]}z={};j++;b++;if(j==E)break}if(c.p.gridview===true){J=c.p.treeANode>-1?c.p.treeANode:0;c.p.grouping?l.jqGrid("groupingRender",Q,c.p.colModel.length):c.p.treeGrid=== -true&&J>0?a(c.rows[J]).after(C.join("")):a("#"+a.jgrid.jqID(c.p.id)+" tbody:first").append(C.join(""))}if(c.p.subGrid===true)try{l.jqGrid("addSubGrid",q+H)}catch(K){}c.p.totaltime=new Date-d;if(j>0&&c.p.records===0)c.p.records=u;if(c.p.treeGrid===true)try{l.jqGrid("setTreeNode",J+1,j+J+1)}catch(ba){}if(!c.p.treeGrid&&!c.p.scroll)c.grid.bDiv.scrollTop=0;c.p.reccount=j;c.p.treeANode=-1;c.p.userDataOnFooter&&l.jqGrid("footerData","set",c.p.userData,true);if(k){c.p.records=u;c.p.lastpage=Math.ceil(u/ -E)}f||c.updatepager(false,true);if(k)for(;j0&&h&&p.or();try{b(d.groups[g])}catch(j){alert(j)}e++}h&&p.orEnd()}if(d.rules!=null){if(e>0){h=p.select();p=a.jgrid.from(h);c.p.ignoreCase&&(p=p.ignoreCase())}try{(i=d.rules.length&&d.groupOp.toString().toUpperCase()==="OR")&&p.orBegin();for(g=0;g0&&k&&k==="OR"&&(p=p.or());p=o[l.op](p,k)(l.field,l.data,f[l.field])}e++}i&& -p.orEnd()}catch(m){alert(m)}}}var d,e=false,f={},g=[],h=[],i,k,l;if(a.isArray(c.p.data)){var j=c.p.grouping?c.p.groupingView:false,m,n;a.each(c.p.colModel,function(){k=this.sorttype||"text";if(k=="date"||k=="datetime"){if(this.formatter&&typeof this.formatter==="string"&&this.formatter=="date"){i=this.formatoptions&&this.formatoptions.srcformat?this.formatoptions.srcformat:a.jgrid.formatter.date.srcformat;l=this.formatoptions&&this.formatoptions.newformat?this.formatoptions.newformat:a.jgrid.formatter.date.newformat}else i= -l=this.datefmt||"Y-m-d";f[this.name]={stype:k,srcfmt:i,newfmt:l}}else f[this.name]={stype:k,srcfmt:"",newfmt:""};if(c.p.grouping){n=0;for(m=j.groupField.length;n1)if(g.npage!==null){e[g.npage]=b;k=b-1;b=1}else i=function(a){c.p.page++;c.grid.hDiv.loading=false; -h&&c.p.loadComplete.call(c,a);P(b-1)};else g.npage!==null&&delete c.p.postData[g.npage];if(c.p.grouping){a(c).jqGrid("groupingSetup");var l=c.p.groupingView,j,m="";for(j=0;j1,k):N(e,c.grid.bDiv,o,b>1,k);a(c).triggerHandler("jqGridLoadComplete",[e]);i&&i.call(c,e);a(c).triggerHandler("jqGridAfterLoadComplete",[e]);d&&c.grid.populateVisible();if(c.p.loadonce||c.p.treeGrid)c.p.datatype="local";b===1&&O()}},error:function(d,e,f){a.isFunction(c.p.loadError)&&c.p.loadError.call(c,d,e,f);b===1&&O()},beforeSend:function(b,d){var e=true;a.isFunction(c.p.loadBeforeSend)&&(e=c.p.loadBeforeSend.call(c,b,d));e===void 0&&(e=true);if(e===false)return false;F()}}, -a.jgrid.ajaxOptions,c.p.ajaxGridOptions));break;case "xmlstring":F();e=a.jgrid.stringToDoc(c.p.datastr);C(e,c.grid.bDiv);a(c).triggerHandler("jqGridLoadComplete",[e]);h&&c.p.loadComplete.call(c,e);a(c).triggerHandler("jqGridAfterLoadComplete",[e]);c.p.datatype="local";c.p.datastr=null;O();break;case "jsonstring":F();e=typeof c.p.datastr==="string"?a.jgrid.parse(c.p.datastr):c.p.datastr;N(e,c.grid.bDiv);a(c).triggerHandler("jqGridLoadComplete",[e]);h&&c.p.loadComplete.call(c,e);a(c).triggerHandler("jqGridAfterLoadComplete", -[e]);c.p.datatype="local";c.p.datastr=null;O();break;case "local":case "clientside":F();c.p.datatype="local";e=u();N(e,c.grid.bDiv,o,b>1,k);a(c).triggerHandler("jqGridLoadComplete",[e]);i&&i.call(c,e);a(c).triggerHandler("jqGridAfterLoadComplete",[e]);d&&c.grid.populateVisible();O()}}}},G=function(b){a("#cb_"+a.jgrid.jqID(c.p.id),c.grid.hDiv)[c.p.useProp?"prop":"attr"]("checked",b);if(c.p.frozenColumns&&c.p.id+"_frozen")a("#cb_"+a.jgrid.jqID(c.p.id),c.grid.fhDiv)[c.p.useProp?"prop":"attr"]("checked", -b)};k=function(b,d){var e="",f="",g="",h,k,l,j,m=function(b){var d;a.isFunction(c.p.onPaging)&&(d=c.p.onPaging.call(c,b));c.p.selrow=null;if(c.p.multiselect){c.p.selarrrow=[];G(false)}c.p.savedRow=[];return d=="stop"?false:true},b=b.substr(1),d=d+("_"+b);h="pg_"+b;k=b+"_left";l=b+"_center";j=b+"_right";a("#"+a.jgrid.jqID(b)).append("
      ").attr("dir","ltr");if(c.p.rowList.length>0){g="";g=g+""}i=="rtl"&&(f=f+g);c.p.pginput===true&&(e=""+a.jgrid.format(c.p.pgtext||"","","")+"");if(c.p.pgbuttons===true){k=["first"+d,"prev"+d,"next"+d,"last"+d];i=="rtl"&&k.reverse();f=f+("");f=f+(""); -f=f+(e!==""?""+e+"":"")+("");f=f+("")}else e!==""&&(f=f+e);i=="ltr"&&(f=f+g);f=f+""; -c.p.viewrecords===true&&a("td#"+b+"_"+c.p.recordpos,"#"+h).append("
      ");a("td#"+b+"_"+c.p.pagerpos,"#"+h).append(f);g=a(".ui-jqgrid").css("font-size")||"11px";a(document.body).append("");f=a(f).clone().appendTo("#testpg").width();a("#testpg").remove();if(f>0){e!==""&&(f=f+50);a("td#"+b+"_"+c.p.pagerpos,"#"+ -h).width(f)}c.p._nvtd=[];c.p._nvtd[0]=f?Math.floor((c.p.width-f)/2):Math.floor(c.p.width/3);c.p._nvtd[1]=0;f=null;a(".ui-pg-selbox","#"+h).bind("change",function(){if(!m("records"))return false;c.p.page=Math.round(c.p.rowNum*(c.p.page-1)/this.value-0.5)+1;c.p.rowNum=this.value;c.p.pager&&a(".ui-pg-selbox",c.p.pager).val(this.value);c.p.toppager&&a(".ui-pg-selbox",c.p.toppager).val(this.value);P();return false});if(c.p.pgbuttons===true){a(".ui-pg-button","#"+h).hover(function(){if(a(this).hasClass("ui-state-disabled"))this.style.cursor= -"default";else{a(this).addClass("ui-state-hover");this.style.cursor="pointer"}},function(){if(!a(this).hasClass("ui-state-disabled")){a(this).removeClass("ui-state-hover");this.style.cursor="default"}});a("#first"+a.jgrid.jqID(d)+", #prev"+a.jgrid.jqID(d)+", #next"+a.jgrid.jqID(d)+", #last"+a.jgrid.jqID(d)).click(function(){var a=o(c.p.page,1),b=o(c.p.lastpage,1),e=false,f=true,g=true,h=true,i=true;if(b===0||b===1)i=h=g=f=false;else if(b>1&&a>=1)if(a===1)g=f=false;else{if(a===b)i=h=false}else if(b> -1&&a===0){i=h=false;a=b-1}if(!m(this.id))return false;if(this.id==="first"+d&&f){c.p.page=1;e=true}if(this.id==="prev"+d&&g){c.p.page=a-1;e=true}if(this.id==="next"+d&&h){c.p.page=a+1;e=true}if(this.id==="last"+d&&i){c.p.page=b;e=true}e&&P();return false})}c.p.pginput===true&&a("input.ui-pg-input","#"+h).keypress(function(b){if((b.charCode||b.keyCode||0)==13){if(!m("user"))return false;c.p.page=a(this).val()>0?a(this).val():c.p.page;P();return false}return this})};var Z=function(b,d,e,f){if(c.p.colModel[d].sortable&& -!(c.p.savedRow.length>0)){if(!e){if(c.p.lastsort==d)if(c.p.sortorder=="asc")c.p.sortorder="desc";else{if(c.p.sortorder=="desc")c.p.sortorder="asc"}else c.p.sortorder=c.p.colModel[d].firstsortorder||"asc";c.p.page=1}if(f){if(c.p.lastsort==d&&c.p.sortorder==f&&!e)return;c.p.sortorder=f}e=c.grid.headers[c.p.lastsort].el;f=c.grid.headers[d].el;a("span.ui-grid-ico-sort",e).addClass("ui-state-disabled");a(e).attr("aria-selected","false");a("span.ui-icon-"+c.p.sortorder,f).removeClass("ui-state-disabled"); -a(f).attr("aria-selected","true");if(!c.p.viewsortcols[0]&&c.p.lastsort!=d){a("span.s-ico",e).hide();a("span.s-ico",f).show()}b=b.substring(5+c.p.id.length+1);c.p.sortname=c.p.colModel[d].index||b;e=c.p.sortorder;if(a(c).triggerHandler("jqGridSortCol",[b,d,e])==="stop")c.p.lastsort=d;else if(a.isFunction(c.p.onSortCol)&&c.p.onSortCol.call(c,b,d,e)=="stop")c.p.lastsort=d;else{if(c.p.datatype=="local")c.p.deselectAfterSort&&a(c).jqGrid("resetSelection");else{c.p.selrow=null;c.p.multiselect&&G(false); -c.p.selarrrow=[];c.p.savedRow=[]}if(c.p.scroll){e=c.grid.bDiv.scrollLeft;w.call(c,true,false);c.grid.hDiv.scrollLeft=e}c.p.subGrid&&c.p.datatype=="local"&&a("td.sgexpanded","#"+a.jgrid.jqID(c.p.id)).each(function(){a(this).trigger("click")});P();c.p.lastsort=d;if(c.p.sortname!=b&&d)c.p.lastsort=d}}},$=function(b){var d,e={},f=a.jgrid.cell_width?0:c.p.cellLayout;for(d=e[0]=e[1]=e[2]=0;d<=b;d++)c.p.colModel[d].hidden===false&&(e[0]=e[0]+(c.p.colModel[d].width+f));c.p.direction=="rtl"&&(e[0]=c.p.width- -e[0]);e[0]=e[0]-c.grid.bDiv.scrollLeft;a(c.grid.cDiv).is(":visible")&&(e[1]=e[1]+(a(c.grid.cDiv).height()+parseInt(a(c.grid.cDiv).css("padding-top"),10)+parseInt(a(c.grid.cDiv).css("padding-bottom"),10)));if(c.p.toolbar[0]===true&&(c.p.toolbar[1]=="top"||c.p.toolbar[1]=="both"))e[1]=e[1]+(a(c.grid.uDiv).height()+parseInt(a(c.grid.uDiv).css("border-top-width"),10)+parseInt(a(c.grid.uDiv).css("border-bottom-width"),10));c.p.toppager&&(e[1]=e[1]+(a(c.grid.topDiv).height()+parseInt(a(c.grid.topDiv).css("border-bottom-width"), -10)));e[2]=e[2]+(a(c.grid.bDiv).height()+a(c.grid.hDiv).height());return e},V=function(b){var d,e=c.grid.headers,f=a.jgrid.getCellIndex(b);for(d=0;d"),this.p.colModel.unshift({name:"cb",width:a.jgrid.cell_width? -c.p.multiselectWidth+c.p.cellLayout:c.p.multiselectWidth,sortable:!1,resizable:!1,hidedlg:!0,search:!1,align:"center",fixed:!0}));this.p.rownumbers&&(this.p.colNames.unshift(""),this.p.colModel.unshift({name:"rn",width:c.p.rownumWidth,sortable:!1,resizable:!1,hidedlg:!0,search:!1,align:"center",fixed:!0}));c.p.xmlReader=a.extend(!0,{root:"rows",row:"row",page:"rows>page",total:"rows>total",records:"rows>records",repeatitems:!0,cell:"cell",id:"[id]",userdata:"userdata",subgrid:{root:"rows",row:"row", -repeatitems:!0,cell:"cell"}},c.p.xmlReader);c.p.jsonReader=a.extend(!0,{root:"rows",page:"page",total:"total",records:"records",repeatitems:!0,cell:"cell",id:"id",userdata:"userdata",subgrid:{root:"rows",repeatitems:!0,cell:"cell"}},c.p.jsonReader);c.p.localReader=a.extend(!0,{root:"rows",page:"page",total:"total",records:"records",repeatitems:!1,cell:"cell",id:"id",userdata:"userdata",subgrid:{root:"rows",repeatitems:!0,cell:"cell"}},c.p.localReader);c.p.scroll&&(c.p.pgbuttons=!1,c.p.pginput=!1, -c.p.rowList=[]);c.p.data.length&&y();var K="",aa,T,H,L,I,D,z,R;T=R="";if(!0===c.p.shrinkToFit&&!0===c.p.forceFit)for(g=c.p.colModel.length-1;0<=g;g--)if(!c.p.colModel[g].hidden){c.p.colModel[g].resizable=!1;break}"horizontal"==c.p.viewsortcols[1]&&(R=" ui-i-asc",T=" ui-i-desc");aa=m?"class='ui-th-div-ie'":"";R="");for(g=0;g",T=c.p.colModel[g].index||c.p.colModel[g].name,K+="
      "+c.p.colNames[g], -c.p.colModel[g].width=c.p.colModel[g].width?parseInt(c.p.colModel[g].width,10):150,"boolean"!==typeof c.p.colModel[g].title&&(c.p.colModel[g].title=!0),T==c.p.sortname&&(c.p.lastsort=g),K+=R+"
      ";R=null;a(this).append(K+"");a("thead tr:first th",this).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});if(this.p.multiselect){var M=[],Q;a("#cb_"+a.jgrid.jqID(c.p.id),this).bind("click",function(){c.p.selarrrow=[];var b=c.p.frozenColumns=== -true?c.p.id+"_frozen":"";if(this.checked){a(c.rows).each(function(d){if(d>0&&!a(this).hasClass("ui-subgrid")&&!a(this).hasClass("jqgroup")&&!a(this).hasClass("ui-state-disabled")){a("#jqg_"+a.jgrid.jqID(c.p.id)+"_"+a.jgrid.jqID(this.id))[c.p.useProp?"prop":"attr"]("checked",true);a(this).addClass("ui-state-highlight").attr("aria-selected","true");c.p.selarrrow.push(this.id);c.p.selrow=this.id;if(b){a("#jqg_"+a.jgrid.jqID(c.p.id)+"_"+a.jgrid.jqID(this.id),c.grid.fbDiv)[c.p.useProp?"prop":"attr"]("checked", -true);a("#"+a.jgrid.jqID(this.id),c.grid.fbDiv).addClass("ui-state-highlight")}}});Q=true;M=[]}else{a(c.rows).each(function(d){if(d>0&&!a(this).hasClass("ui-subgrid")&&!a(this).hasClass("ui-state-disabled")){a("#jqg_"+a.jgrid.jqID(c.p.id)+"_"+a.jgrid.jqID(this.id))[c.p.useProp?"prop":"attr"]("checked",false);a(this).removeClass("ui-state-highlight").attr("aria-selected","false");M.push(this.id);if(b){a("#jqg_"+a.jgrid.jqID(c.p.id)+"_"+a.jgrid.jqID(this.id),c.grid.fbDiv)[c.p.useProp?"prop":"attr"]("checked", -false);a("#"+a.jgrid.jqID(this.id),c.grid.fbDiv).removeClass("ui-state-highlight")}}});c.p.selrow=null;Q=false}a(c).triggerHandler("jqGridSelectAll",[Q?c.p.selarrrow:M,Q]);a.isFunction(c.p.onSelectAll)&&c.p.onSelectAll.call(c,Q?c.p.selarrrow:M,Q)})}!0===c.p.autowidth&&(K=a(n).innerWidth(),c.p.width=00){j=e.width-d*f-m;if(!isNaN(c.p.height)){j=j-i;l=true}b=0;a.each(c.p.colModel, -function(a){if(this.hidden===false&&!this.fixed){this.width=k=Math.round(j*this.width/(c.p.tblwidth-d*f-m));b=b+k;g=a}});p=0;l?e.width-m-(b+d*f)!==i&&(p=e.width-m-(b+d*f)-i):!l&&Math.abs(e.width-m-(b+d*f))!==1&&(p=e.width-m-(b+d*f));c.p.colModel[g].width=c.p.colModel[g].width+p;c.p.tblwidth=b+p+d*f+m;if(c.p.tblwidth>c.p.width){c.p.colModel[g].width=c.p.colModel[g].width-(c.p.tblwidth-parseInt(c.p.width,10));c.p.tblwidth=c.p.width}}})();a(n).css("width",e.width+"px").append("
       
      ");a(j).css("width",e.width+"px");var K=a("thead:first",c).get(0),A="";c.p.footerrow&&(A+="");var j=a("tr:first",K),X="";c.p.disableClick=!1;a("th",j).each(function(b){H=c.p.colModel[b].width;if(c.p.colModel[b].resizable===void 0)c.p.colModel[b].resizable= -true;if(c.p.colModel[b].resizable){L=document.createElement("span");a(L).html(" ").addClass("ui-jqgrid-resize ui-jqgrid-resize-"+i);a.browser.opera||a(L).css("cursor","col-resize");a(this).addClass(c.p.resizeclass)}else L="";a(this).css("width",H+"px").prepend(L);var d="";if(c.p.colModel[b].hidden){a(this).css("display","none");d="display:none;"}X=X+("");e.headers[b]={width:H,el:this};I=c.p.colModel[b].sortable;if(typeof I!=="boolean")I= -c.p.colModel[b].sortable=true;d=c.p.colModel[b].name;d=="cb"||d=="subgrid"||d=="rn"||c.p.viewsortcols[2]&&a(">div",this).addClass("ui-jqgrid-sortable");if(I)if(c.p.viewsortcols[0]){a("div span.s-ico",this).show();b==c.p.lastsort&&a("div span.ui-icon-"+c.p.sortorder,this).removeClass("ui-state-disabled")}else if(b==c.p.lastsort){a("div span.s-ico",this).show();a("div span.ui-icon-"+c.p.sortorder,this).removeClass("ui-state-disabled")}c.p.footerrow&&(A=A+(""))}).mousedown(function(b){if(a(b.target).closest("th>span.ui-jqgrid-resize").length==1){var d=V(this);if(c.p.forceFit===true){var f=c.p,g=d,i;for(i=d+1;i
       
      ").append(K), -S=c.p.caption&&!0===c.p.hiddengrid?!0:!1;g=a("
      ");K=null;e.hDiv=document.createElement("div");a(e.hDiv).css({width:e.width+"px"}).addClass("ui-state-default ui-jqgrid-hdiv").append(g);a(g).append(j);j=null;S&&a(e.hDiv).hide();c.p.pager&&("string"===typeof c.p.pager?"#"!=c.p.pager.substr(0,1)&&(c.p.pager="#"+c.p.pager):c.p.pager="#"+a(c.p.pager).attr("id"),a(c.p.pager).css({width:e.width+"px"}).appendTo(n).addClass("ui-state-default ui-jqgrid-pager ui-corner-bottom"), -S&&a(c.p.pager).hide(),k(c.p.pager,""));!1===c.p.cellEdit&&!0===c.p.hoverrows&&a(c).bind("mouseover",function(b){z=a(b.target).closest("tr.jqgrow");a(z).attr("class")!=="ui-subgrid"&&a(z).addClass("ui-state-hover")}).bind("mouseout",function(b){z=a(b.target).closest("tr.jqgrow");a(z).removeClass("ui-state-hover")});var E,U,ba;a(c).before(e.hDiv).click(function(b){D=b.target;z=a(D,c.rows).closest("tr.jqgrow");if(a(z).length===0||z[0].className.indexOf("ui-state-disabled")>-1||(a(D,c).closest("table.ui-jqgrid-btable").attr("id")|| -"").replace("_frozen","")!==c.id)return this;var d=a(D).hasClass("cbox"),e=a(c).triggerHandler("jqGridBeforeSelectRow",[z[0].id,b]);(e=e===false||e==="stop"?false:true)&&a.isFunction(c.p.beforeSelectRow)&&(e=c.p.beforeSelectRow.call(c,z[0].id,b));if(!(D.tagName=="A"||(D.tagName=="INPUT"||D.tagName=="TEXTAREA"||D.tagName=="OPTION"||D.tagName=="SELECT")&&!d)&&e===true){E=z[0].id;U=a.jgrid.getCellIndex(D);ba=a(D).closest("td,th").html();a(c).triggerHandler("jqGridCellSelect",[E,U,ba,b]);a.isFunction(c.p.onCellSelect)&& -c.p.onCellSelect.call(c,E,U,ba,b);if(c.p.cellEdit===true)if(c.p.multiselect&&d)a(c).jqGrid("setSelection",E,true,b);else{E=z[0].rowIndex;try{a(c).jqGrid("editCell",E,U,true)}catch(f){}}else if(c.p.multikey)if(b[c.p.multikey])a(c).jqGrid("setSelection",E,true,b);else{if(c.p.multiselect&&d){d=a("#jqg_"+a.jgrid.jqID(c.p.id)+"_"+E).is(":checked");a("#jqg_"+a.jgrid.jqID(c.p.id)+"_"+E)[c.p.useProp?"prop":"attr"]("checked",d)}}else{if(c.p.multiselect&&c.p.multiboxonly&&!d){var g=c.p.frozenColumns?c.p.id+ -"_frozen":"";a(c.p.selarrrow).each(function(b,d){var e=c.rows.namedItem(d);a(e).removeClass("ui-state-highlight");a("#jqg_"+a.jgrid.jqID(c.p.id)+"_"+a.jgrid.jqID(d))[c.p.useProp?"prop":"attr"]("checked",false);if(g){a("#"+a.jgrid.jqID(d),"#"+a.jgrid.jqID(g)).removeClass("ui-state-highlight");a("#jqg_"+a.jgrid.jqID(c.p.id)+"_"+a.jgrid.jqID(d),"#"+a.jgrid.jqID(g))[c.p.useProp?"prop":"attr"]("checked",false)}});c.p.selarrrow=[]}a(c).jqGrid("setSelection",E,true,b)}}}).bind("reloadGrid",function(b,d){if(c.p.treeGrid=== -true)c.p.datatype=c.p.treedatatype;d&&d.current&&c.grid.selectionPreserver(c);if(c.p.datatype=="local"){a(c).jqGrid("resetSelection");c.p.data.length&&y()}else if(!c.p.treeGrid){c.p.selrow=null;if(c.p.multiselect){c.p.selarrrow=[];G(false)}c.p.savedRow=[]}c.p.scroll&&w.call(c,true,false);if(d&&d.page){var e=d.page;if(e>c.p.lastpage)e=c.p.lastpage;e<1&&(e=1);c.p.page=e;c.grid.bDiv.scrollTop=c.grid.prevRowHeight?(e-1)*c.grid.prevRowHeight*c.p.rowNum:0}if(c.grid.prevRowHeight&&c.p.scroll){delete c.p.lastpage; -c.grid.populateVisible()}else c.grid.populate();c.p._inlinenav===true&&a(c).jqGrid("showAddEditButtons");return false}).dblclick(function(b){D=b.target;z=a(D,c.rows).closest("tr.jqgrow");if(a(z).length!==0){E=z[0].rowIndex;U=a.jgrid.getCellIndex(D);a(c).triggerHandler("jqGridDblClickRow",[a(z).attr("id"),E,U,b]);a.isFunction(this.p.ondblClickRow)&&c.p.ondblClickRow.call(c,a(z).attr("id"),E,U,b)}}).bind("contextmenu",function(b){D=b.target;z=a(D,c.rows).closest("tr.jqgrow");if(a(z).length!==0){c.p.multiselect|| -a(c).jqGrid("setSelection",z[0].id,true,b);E=z[0].rowIndex;U=a.jgrid.getCellIndex(D);a(c).triggerHandler("jqGridRightClickRow",[a(z).attr("id"),E,U,b]);a.isFunction(this.p.onRightClickRow)&&c.p.onRightClickRow.call(c,a(z).attr("id"),E,U,b)}});e.bDiv=document.createElement("div");m&&"auto"===(""+c.p.height).toLowerCase()&&(c.p.height="100%");a(e.bDiv).append(a('
      ').append("
      ").append(this)).addClass("ui-jqgrid-bdiv").css({height:c.p.height+ -(isNaN(c.p.height)?"":"px"),width:e.width+"px"}).scroll(e.scrollGrid);a("table:first",e.bDiv).css({width:c.p.tblwidth+"px"});m?(2==a("tbody",this).length&&a("tbody:gt(0)",this).remove(),c.p.multikey&&a(e.bDiv).bind("selectstart",function(){return false})):c.p.multikey&&a(e.bDiv).bind("mousedown",function(){return false});S&&a(e.bDiv).hide();e.cDiv=document.createElement("div");var da=!0===c.p.hidegrid?a("").addClass("ui-jqgrid-titlebar-close HeaderButton").hover(function(){da.addClass("ui-state-hover")}, -function(){da.removeClass("ui-state-hover")}).append("").css("rtl"==i?"left":"right","0px"):"";a(e.cDiv).append(da).append(""+c.p.caption+"").addClass("ui-jqgrid-titlebar ui-widget-header ui-corner-top ui-helper-clearfix");a(e.cDiv).insertBefore(e.hDiv);c.p.toolbar[0]&&(e.uDiv=document.createElement("div"),"top"==c.p.toolbar[1]?a(e.uDiv).insertBefore(e.hDiv):"bottom"==c.p.toolbar[1]&& -a(e.uDiv).insertAfter(e.hDiv),"both"==c.p.toolbar[1]?(e.ubDiv=document.createElement("div"),a(e.uDiv).insertBefore(e.hDiv).addClass("ui-userdata ui-state-default").attr("id","t_"+this.id),a(e.ubDiv).insertAfter(e.hDiv).addClass("ui-userdata ui-state-default").attr("id","tb_"+this.id),S&&a(e.ubDiv).hide()):a(e.uDiv).width(e.width).addClass("ui-userdata ui-state-default").attr("id","t_"+this.id),S&&a(e.uDiv).hide());c.p.toppager&&(c.p.toppager=a.jgrid.jqID(c.p.id)+"_toppager",e.topDiv=a("
      ")[0],c.p.toppager="#"+c.p.toppager,a(e.topDiv).insertBefore(e.hDiv).addClass("ui-state-default ui-jqgrid-toppager").width(e.width),k(c.p.toppager,"_t"));c.p.footerrow&&(e.sDiv=a("
      ")[0],g=a("
      "),a(e.sDiv).append(g).insertAfter(e.hDiv).width(e.width),a(g).append(A),e.footers=a(".ui-jqgrid-ftable",e.sDiv)[0].rows[0].cells,c.p.rownumbers&&(e.footers[0].className="ui-state-default jqgrid-rownum"), -S&&a(e.sDiv).hide());g=null;if(c.p.caption){var ea=c.p.datatype;!0===c.p.hidegrid&&(a(".ui-jqgrid-titlebar-close",e.cDiv).click(function(b){var d=a.isFunction(c.p.onHeaderClick),f=".ui-jqgrid-bdiv, .ui-jqgrid-hdiv, .ui-jqgrid-pager, .ui-jqgrid-sdiv",g,i=this;if(c.p.toolbar[0]===true){c.p.toolbar[1]=="both"&&(f=f+(", #"+a(e.ubDiv).attr("id")));f=f+(", #"+a(e.uDiv).attr("id"))}g=a(f,"#gview_"+a.jgrid.jqID(c.p.id)).length;c.p.gridstate=="visible"?a(f,"#gbox_"+a.jgrid.jqID(c.p.id)).slideUp("fast",function(){g--; -if(g===0){a("span",i).removeClass("ui-icon-circle-triangle-n").addClass("ui-icon-circle-triangle-s");c.p.gridstate="hidden";a("#gbox_"+a.jgrid.jqID(c.p.id)).hasClass("ui-resizable")&&a(".ui-resizable-handle","#gbox_"+a.jgrid.jqID(c.p.id)).hide();a(c).triggerHandler("jqGridHeaderClick",[c.p.gridstate,b]);d&&(S||c.p.onHeaderClick.call(c,c.p.gridstate,b))}}):c.p.gridstate=="hidden"&&a(f,"#gbox_"+a.jgrid.jqID(c.p.id)).slideDown("fast",function(){g--;if(g===0){a("span",i).removeClass("ui-icon-circle-triangle-s").addClass("ui-icon-circle-triangle-n"); -if(S){c.p.datatype=ea;P();S=false}c.p.gridstate="visible";a("#gbox_"+a.jgrid.jqID(c.p.id)).hasClass("ui-resizable")&&a(".ui-resizable-handle","#gbox_"+a.jgrid.jqID(c.p.id)).show();a(c).triggerHandler("jqGridHeaderClick",[c.p.gridstate,b]);d&&(S||c.p.onHeaderClick.call(c,c.p.gridstate,b))}});return false}),S&&(c.p.datatype="local",a(".ui-jqgrid-titlebar-close",e.cDiv).trigger("click")))}else a(e.cDiv).hide();a(e.hDiv).after(e.bDiv).mousemove(function(a){if(e.resizing){e.dragMove(a);return false}}); -a(".ui-jqgrid-labels",e.hDiv).bind("selectstart",function(){return false});a(document).mouseup(function(){if(e.resizing){e.dragEnd();return false}return true});c.formatCol=l;c.sortData=Z;c.updatepager=function(b,d){var e,f,g,h,i,k,l,j="",m=c.p.pager?"_"+a.jgrid.jqID(c.p.pager.substr(1)):"",n=c.p.toppager?"_"+c.p.toppager.substr(1):"";g=parseInt(c.p.page,10)-1;g<0&&(g=0);g=g*parseInt(c.p.rowNum,10);i=g+c.p.reccount;if(c.p.scroll){e=a("tbody:first > tr:gt(0)",c.grid.bDiv);g=i-e.length;c.p.reccount= -e.length;if(f=e.outerHeight()||c.grid.prevRowHeight){e=g*f;f=parseInt(c.p.records,10)*f;a(">div:first",c.grid.bDiv).css({height:f}).children("div:first").css({height:e,display:e?"":"none"})}c.grid.bDiv.scrollLeft=c.grid.hDiv.scrollLeft}j=c.p.pager||"";if(j=j+(c.p.toppager?j?","+c.p.toppager:c.p.toppager:"")){l=a.jgrid.formatter.integer||{};e=o(c.p.page);f=o(c.p.lastpage);a(".selbox",j)[this.p.useProp?"prop":"attr"]("disabled",false);if(c.p.pginput===true){a(".ui-pg-input",j).val(c.p.page);h=c.p.toppager? -"#sp_1"+m+",#sp_1"+n:"#sp_1"+m;a(h).html(a.fmatter?a.fmatter.util.NumberFormat(c.p.lastpage,l):c.p.lastpage)}if(c.p.viewrecords)if(c.p.reccount===0)a(".ui-paging-info",j).html(c.p.emptyrecords);else{h=g+1;k=c.p.records;if(a.fmatter){h=a.fmatter.util.NumberFormat(h,l);i=a.fmatter.util.NumberFormat(i,l);k=a.fmatter.util.NumberFormat(k,l)}a(".ui-paging-info",j).html(a.jgrid.format(c.p.recordtext,h,i,k))}if(c.p.pgbuttons===true){e<=0&&(e=f=0);if(e==1||e===0){a("#first"+m+", #prev"+m).addClass("ui-state-disabled").removeClass("ui-state-hover"); -c.p.toppager&&a("#first_t"+n+", #prev_t"+n).addClass("ui-state-disabled").removeClass("ui-state-hover")}else{a("#first"+m+", #prev"+m).removeClass("ui-state-disabled");c.p.toppager&&a("#first_t"+n+", #prev_t"+n).removeClass("ui-state-disabled")}if(e==f||e===0){a("#next"+m+", #last"+m).addClass("ui-state-disabled").removeClass("ui-state-hover");c.p.toppager&&a("#next_t"+n+", #last_t"+n).addClass("ui-state-disabled").removeClass("ui-state-hover")}else{a("#next"+m+", #last"+m).removeClass("ui-state-disabled"); -c.p.toppager&&a("#next_t"+n+", #last_t"+n).removeClass("ui-state-disabled")}}}b===true&&c.p.rownumbers===true&&a("td.jqgrid-rownum",c.rows).each(function(b){a(this).html(g+1+b)});d&&c.p.jqgdnd&&a(c).jqGrid("gridDnD","updateDnD");a(c).triggerHandler("jqGridGridComplete");a.isFunction(c.p.gridComplete)&&c.p.gridComplete.call(c);a(c).triggerHandler("jqGridAfterGridComplete")};c.refreshIndex=y;c.setHeadCheckBox=G;c.constructTr=B;c.formatter=function(a,b,c,d,e){return p(a,b,c,d,e)};a.extend(e,{populate:P, -emptyRows:w});this.grid=e;c.addXmlData=function(a){C(a,c.grid.bDiv)};c.addJSONData=function(a){N(a,c.grid.bDiv)};this.grid.cols=this.rows[0].cells;P();c.p.hiddengrid=!1}}}})};a.jgrid.extend({getGridParam:function(a){var e=this[0];return!e||!e.grid?void 0:!a?e.p:void 0!==e.p[a]?e.p[a]:null},setGridParam:function(d){return this.each(function(){this.grid&&"object"===typeof d&&a.extend(!0,this.p,d)})},getDataIDs:function(){var d=[],e=0,b,f=0;this.each(function(){if((b=this.rows.length)&&0=f+g?a(this.grid.bDiv)[0].scrollTop=i-(f+g)+h+g:i span:first",j).html(i).attr(h):a("td[role='gridcell']:eq("+b+")",j).html(i).attr(h))}),"local"==g.p.datatype){var n=a.jgrid.stripPref(g.p.idPrefix,d),o=g.p._index[n],l;if(g.p.treeGrid)for(l in g.p.treeReader)g.p.treeReader.hasOwnProperty(l)&& -delete m[g.p.treeReader[l]];void 0!==o&&(g.p.data[o]=a.extend(!0,g.p.data[o],m));m=null}}catch(q){c=!1}c&&("string"===k?a(j).addClass(b):"object"===k&&a(j).css(b),a(g).triggerHandler("jqGridAfterGridComplete"))});return c},addRowData:function(d,e,b,f){b||(b="last");var c=!1,h,g,i,j,k,m,n,o,l="",q,p,r,s,t,v;e&&(a.isArray(e)?(q=!0,b="last",p=d):(e=[e],q=!1),this.each(function(){var x=e.length;k=this.p.rownumbers===true?1:0;i=this.p.multiselect===true?1:0;j=this.p.subGrid===true?1:0;if(!q)if(d!==void 0)d= -""+d;else{d=a.jgrid.randId();if(this.p.keyIndex!==false){p=this.p.colModel[this.p.keyIndex+i+j+k].name;e[0][p]!==void 0&&(d=e[0][p])}}r=this.p.altclass;for(var w=0,y="",B={},C=a.isFunction(this.p.afterInsertRow)?true:false;w0"}if(i){o= -'';l=this.formatCol(k,1,"",null,d,true);g[g.length]='"+o+""}j&&(g[g.length]=a(this).jqGrid("addSubGridCell",i+k,1));for(n=i+j+k;n"+o+""}g.unshift(this.constructTr(d,false,y,B,s,false));g[g.length]= -"";if(this.rows.length===0)a("table:first",this.grid.bDiv).append(g.join(""));else switch(b){case "last":a(this.rows[this.rows.length-1]).after(g.join(""));m=this.rows.length-1;break;case "first":a(this.rows[0]).after(g.join(""));m=1;break;case "after":(m=this.rows.namedItem(f))&&(a(this.rows[m.rowIndex+1]).hasClass("ui-subgrid")?a(this.rows[m.rowIndex+1]).after(g):a(m).after(g.join("")));m++;break;case "before":if(m=this.rows.namedItem(f)){a(m).before(g.join(""));m=m.rowIndex}m--}this.p.subGrid=== -true&&a(this).jqGrid("addSubGrid",i+k,m);this.p.records++;this.p.reccount++;a(this).triggerHandler("jqGridAfterInsertRow",[d,s,s]);C&&this.p.afterInsertRow.call(this,d,s,s);w++;if(this.p.datatype=="local"){B[this.p.localReader.id]=v;this.p._index[v]=this.p.data.length;this.p.data.push(B);B={}}}this.p.altRows===true&&!q&&(b=="last"?(this.rows.length-1)%2==1&&a(this.rows[this.rows.length-1]).addClass(r):a(this.rows).each(function(b){b%2==1?a(this).addClass(r):a(this).removeClass(r)}));this.updatepager(true, -true);c=true}));return c},footerData:function(d,e,b){function f(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}var c,h=!1,g={},i;void 0===d&&(d="get");"boolean"!==typeof b&&(b=!0);d=d.toLowerCase();this.each(function(){var j=this,k;if(!j.grid||!j.p.footerrow||"set"==d&&f(e))return!1;h=!0;a(this.p.colModel).each(function(f){c=this.name;"set"==d?void 0!==e[c]&&(k=b?j.formatter("",e[c],f,e,"edit"):e[c],i=this.title?{title:a.jgrid.stripHtml(k)}:{},a("tr.footrow td:eq("+f+")",j.grid.sDiv).html(k).attr(i), -h=!0):"get"==d&&(g[c]=a("tr.footrow td:eq("+f+")",j.grid.sDiv).html())})});return"get"==d?g:h},showHideCol:function(d,e){return this.each(function(){var b=this,f=!1,c=a.jgrid.cell_width?0:b.p.cellLayout,h;if(b.grid){"string"===typeof d&&(d=[d]);e="none"!=e?"":"none";var g=""===e?!0:!1,i=b.p.groupHeader&&("object"===typeof b.p.groupHeader||a.isFunction(b.p.groupHeader));i&&a(b).jqGrid("destroyGroupHeader",!1);a(this.p.colModel).each(function(i){if(-1!==a.inArray(this.name,d)&&this.hidden===g){if(!0=== -b.p.frozenColumns&&!0===this.frozen)return!0;a("tr",b.grid.hDiv).each(function(){a(this.cells[i]).css("display",e)});a(b.rows).each(function(){a(this).hasClass("jqgroup")||a(this.cells[i]).css("display",e)});b.p.footerrow&&a("tr.footrow td:eq("+i+")",b.grid.sDiv).css("display",e);h=parseInt(this.width,10);b.p.tblwidth="none"===e?b.p.tblwidth-(h+c):b.p.tblwidth+(h+c);this.hidden=!g;f=!0;a(b).triggerHandler("jqGridShowHideCol",[g,this.name,i])}});!0===f&&(!0===b.p.shrinkToFit&&!isNaN(b.p.height)&&(b.p.tblwidth+= -parseInt(b.p.scrollOffset,10)),a(b).jqGrid("setGridWidth",!0===b.p.shrinkToFit?b.p.tblwidth:b.p.width));i&&a(b).jqGrid("setGroupHeaders",b.p.groupHeader)}})},hideCol:function(d){return this.each(function(){a(this).jqGrid("showHideCol",d,"none")})},showCol:function(d){return this.each(function(){a(this).jqGrid("showHideCol",d,"")})},remapColumns:function(d,e,b){function f(b){var c;c=b.length?a.makeArray(b):a.extend({},b);a.each(d,function(a){b[a]=c[this]})}function c(b,c){a(">tr"+(c||""),b).each(function(){var b= -this,c=a.makeArray(b.cells);a.each(d,function(){var a=c[this];a&&b.appendChild(a)})})}var h=this.get(0);f(h.p.colModel);f(h.p.colNames);f(h.grid.headers);c(a("thead:first",h.grid.hDiv),b&&":not(.ui-jqgrid-labels)");e&&c(a("#"+a.jgrid.jqID(h.p.id)+" tbody:first"),".jqgfirstrow, tr.jqgrow, tr.jqfoot");h.p.footerrow&&c(a("tbody:first",h.grid.sDiv));h.p.remapColumns&&(h.p.remapColumns.length?f(h.p.remapColumns):h.p.remapColumns=a.makeArray(d));h.p.lastsort=a.inArray(h.p.lastsort,d);h.p.treeGrid&&(h.p.expColInd= -a.inArray(h.p.expColInd,d));a(h).triggerHandler("jqGridRemapColumns",[d,e,b])},setGridWidth:function(d,e){return this.each(function(){if(this.grid){var b=this,f,c=0,h=a.jgrid.cell_width?0:b.p.cellLayout,g,i=0,j=!1,k=b.p.scrollOffset,m,n=0,o=0,l;"boolean"!==typeof e&&(e=b.p.shrinkToFit);if(!isNaN(d)){d=parseInt(d,10);b.grid.width=b.p.width=d;a("#gbox_"+a.jgrid.jqID(b.p.id)).css("width",d+"px");a("#gview_"+a.jgrid.jqID(b.p.id)).css("width",d+"px");a(b.grid.bDiv).css("width",d+"px");a(b.grid.hDiv).css("width", -d+"px");b.p.pager&&a(b.p.pager).css("width",d+"px");b.p.toppager&&a(b.p.toppager).css("width",d+"px");!0===b.p.toolbar[0]&&(a(b.grid.uDiv).css("width",d+"px"),"both"==b.p.toolbar[1]&&a(b.grid.ubDiv).css("width",d+"px"));b.p.footerrow&&a(b.grid.sDiv).css("width",d+"px");!1===e&&!0===b.p.forceFit&&(b.p.forceFit=!1);if(!0===e){a.each(b.p.colModel,function(){if(this.hidden===false){f=this.widthOrg;c=c+(f+h);this.fixed?n=n+(f+h):i++;o++}});if(0===i)return;b.p.tblwidth=c;m=d-h*i-n;if(!isNaN(b.p.height)&& -(a(b.grid.bDiv)[0].clientHeightd?(j=b.p.tblwidth-parseInt(d,10),b.p.tblwidth=d,f=b.p.colModel[g].width-=j):f=b.p.colModel[g].width;b.grid.headers[g].width=f;b.grid.headers[g].el.style.width=f+"px";q&&(b.grid.cols[g].style.width=f+"px");b.p.footerrow&&(b.grid.footers[g].style.width=f+"px")}b.p.tblwidth&&(a("table:first",b.grid.bDiv).css("width",b.p.tblwidth+"px"),a("table:first",b.grid.hDiv).css("width",b.p.tblwidth+"px"),b.grid.hDiv.scrollLeft= -b.grid.bDiv.scrollLeft,b.p.footerrow&&a("table:first",b.grid.sDiv).css("width",b.p.tblwidth+"px"))}}})},setGridHeight:function(d){return this.each(function(){if(this.grid){var e=a(this.grid.bDiv);e.css({height:d+(isNaN(d)?"":"px")});!0===this.p.frozenColumns&&a("#"+a.jgrid.jqID(this.p.id)+"_frozen").parent().height(e.height()-16);this.p.height=d;this.p.scroll&&this.grid.populateVisible()}})},setCaption:function(d){return this.each(function(){this.p.caption=d;a("span.ui-jqgrid-title, span.ui-jqgrid-title-rtl", -this.grid.cDiv).html(d);a(this.grid.cDiv).show()})},setLabel:function(d,e,b,f){return this.each(function(){var c=-1;if(this.grid&&void 0!==d&&(a(this.p.colModel).each(function(a){if(this.name==d)return c=a,!1}),0<=c)){var h=a("tr.ui-jqgrid-labels th:eq("+c+")",this.grid.hDiv);if(e){var g=a(".s-ico",h);a("[id^=jqgh_]",h).empty().html(e).append(g);this.p.colNames[c]=e}b&&("string"===typeof b?a(h).addClass(b):a(h).css(b));"object"===typeof f&&a(h).attr(f)}})},setCell:function(d,e,b,f,c,h){return this.each(function(){var g= --1,i,j;if(this.grid&&(isNaN(e)?a(this.p.colModel).each(function(a){if(this.name==e)return g=a,!1}):g=parseInt(e,10),0<=g&&(i=this.rows.namedItem(d)))){var k=a("td:eq("+g+")",i);if(""!==b||!0===h)i=this.formatter(d,b,g,i,"edit"),j=this.p.colModel[g].title?{title:a.jgrid.stripHtml(i)}:{},this.p.treeGrid&&0"),h;a.each(b.p.colModel,function(){var g=this,i,j,k,m;j=a("");i=a("
      ");!0===this.hidden&&a(j).css("display","none");this.search=!1===this.search?!1:!0;void 0===this.stype&&(this.stype="text");k=a.extend({},this.searchoptions||{});if(this.search)switch(this.stype){case "select":if(m=this.surl||k.dataUrl)a.ajax(a.extend({url:m,dataType:"html",success:function(c){if(k.buildSelect!==void 0)(c=k.buildSelect(c))&&a(i).append(c);else a(i).append(c);k.defaultValue!==void 0&& -a("select",i).val(k.defaultValue);a("select",i).attr({name:g.index||g.name,id:"gs_"+g.name});k.attr&&a("select",i).attr(k.attr);a("select",i).css({width:"100%"});k.dataInit!==void 0&&k.dataInit.call(b,a("select",i)[0]);k.dataEvents!==void 0&&e(a("select",i)[0],k.dataEvents);d.autosearch===true&&a("select",i).change(function(){f();return false});c=null}},a.jgrid.ajaxOptions,b.p.ajaxSelectOptions||{}));else{var n,o,l;g.searchoptions?(n=void 0===g.searchoptions.value?"":g.searchoptions.value,o=void 0=== -g.searchoptions.separator?":":g.searchoptions.separator,l=void 0===g.searchoptions.delimiter?";":g.searchoptions.delimiter):g.editoptions&&(n=void 0===g.editoptions.value?"":g.editoptions.value,o=void 0===g.editoptions.separator?":":g.editoptions.separator,l=void 0===g.editoptions.delimiter?";":g.editoptions.delimiter);if(n){m=document.createElement("select");m.style.width="100%";a(m).attr({name:g.index||g.name,id:"gs_"+g.name});var q,p;if("string"===typeof n){n=n.split(l);for(p=0;p"),k.attr&&a("input",i).attr(k.attr),void 0!==k.dataInit&&k.dataInit(b,a("input",i)[0]),void 0!==k.dataEvents&&e(a("input",i)[0],k.dataEvents),!0===d.autosearch&&(d.searchOnEnter?a("input",i).keypress(function(a){if((a.charCode||a.keyCode||0)==13){f();return false}return this}):a("input",i).keydown(function(a){switch(a.which){case 13:return false; -case 9:case 16:case 37:case 38:case 39:case 40:case 27:break;default:h&&clearTimeout(h);h=setTimeout(function(){f()},500)}}))}a(j).append(i);a(c).append(j)});a("table thead",b.grid.hDiv).append(c);this.ftoolbar=!0;this.triggerToolbar=f;this.clearToolbar=function(c){var e={},f=0,h,c="boolean"!==typeof c?!0:c;a.each(b.p.colModel,function(){var c;this.searchoptions&&void 0!==this.searchoptions.defaultValue&&(c=this.searchoptions.defaultValue);h=this.index||this.name;switch(this.stype){case "select":a("#gs_"+ -a.jgrid.jqID(this.name)+" option",!0===this.frozen&&!0===b.p.frozenColumns?b.grid.fhDiv:b.grid.hDiv).each(function(b){if(b===0)this.selected=true;if(a(this).val()==c){this.selected=true;return false}});if(void 0!==c)e[h]=c,f++;else try{delete b.p.postData[h]}catch(d){}break;case "text":if(a("#gs_"+a.jgrid.jqID(this.name),!0===this.frozen&&!0===b.p.frozenColumns?b.grid.fhDiv:b.grid.hDiv).val(c),void 0!==c)e[h]=c,f++;else try{delete b.p.postData[h]}catch(g){}}});var m=0",{role:"rowheader"}).addClass("ui-jqgrid-labels"); -c=b.headers;b=0;for(f=c.length;b",{role:"row","aria-hidden":"true"}).addClass("jqg-first-row-header").css("height","auto"):q.empty();var p,r=function(a,b){var c=b.length,d;for(d=0;d",{role:"rowheader"}).addClass("ui-jqgrid-labels jqg-third-row-header");for(e=0;e",{role:"gridcell"}).css(h).addClass("ui-first-th-"+this.p.direction).appendTo(q),g.style.width="",h=r(b.name,d.groupHeaders),0<=h){h=d.groupHeaders[h];f=h.numberOfColumns;j=h.titleText;for(h=b=0;h").attr({role:"columnheader"}).addClass("ui-state-default ui-th-column-header ui-th-"+ -this.p.direction).css({height:"22px","border-top":"0px none"}).html(j);0",{role:"columnheader"}).addClass("ui-state-default ui-th-column-header ui-th-"+this.p.direction).css({display:b.hidden?"none":"","border-top":"0px none"}).insertBefore(i),c.append(g)):(c.append(g),f--);k=a(this).children("thead");k.prepend(q);c.insertAfter(l); -o.append(k);d.useColSpanStyle&&(o.find("span.ui-jqgrid-resize").each(function(){var b=a(this).parent();b.is(":visible")&&(this.style.cssText="height: "+b.height()+"px !important; cursor: col-resize;")}),o.find("div.ui-jqgrid-sortable").each(function(){var b=a(this),c=b.parent();c.is(":visible")&&c.is(":has(span.ui-jqgrid-resize)")&&b.css("top",(c.height()-b.outerHeight())/2+"px")}));p=k.find("tr.jqg-first-row-header");a(this).bind("jqGridResizeStop.setGroupHeaders",function(a,b,c){p.find("th").eq(c).width(b)})})}, -setFrozenColumns:function(){return this.each(function(){if(this.grid){var d=this,e=d.p.colModel,b=0,f=e.length,c=-1,h=!1;if(!(!0===d.p.subGrid||!0===d.p.treeGrid||!0===d.p.cellEdit||d.p.sortable||d.p.scroll||d.p.grouping)){d.p.rownumbers&&b++;for(d.p.multiselect&&b++;b');d.grid.fbDiv=a('
      ');a("#gview_"+a.jgrid.jqID(d.p.id)).append(d.grid.fhDiv);e=a(".ui-jqgrid-htable","#gview_"+a.jgrid.jqID(d.p.id)).clone(!0);if(d.p.groupHeader){a("tr.jqg-first-row-header, tr.jqg-third-row-header", -e).each(function(){a("th:gt("+c+")",this).remove()});var g=-1,i=-1;a("tr.jqg-second-row-header th",e).each(function(){var b=parseInt(a(this).attr("colspan"),10);b&&(g+=b,i++);if(g===c)return!1});g!==c&&(i=c);a("tr.jqg-second-row-header",e).each(function(){a("th:gt("+i+")",this).remove()})}else a("tr",e).each(function(){a("th:gt("+c+")",this).remove()});a(e).width(1);a(d.grid.fhDiv).append(e).mousemove(function(a){if(d.grid.resizing)return d.grid.dragMove(a),!1});a(d).bind("jqGridResizeStop.setFrozenColumns", -function(b,c,e){b=a(".ui-jqgrid-htable",d.grid.fhDiv);a("th:eq("+e+")",b).width(c);b=a(".ui-jqgrid-btable",d.grid.fbDiv);a("tr:first td:eq("+e+")",b).width(c)});a(d).bind("jqGridOnSortCol.setFrozenColumns",function(b,c){var e=a("tr.ui-jqgrid-labels:last th:eq("+d.p.lastsort+")",d.grid.fhDiv),f=a("tr.ui-jqgrid-labels:last th:eq("+c+")",d.grid.fhDiv);a("span.ui-grid-ico-sort",e).addClass("ui-state-disabled");a(e).attr("aria-selected","false");a("span.ui-icon-"+d.p.sortorder,f).removeClass("ui-state-disabled"); -a(f).attr("aria-selected","true");!d.p.viewsortcols[0]&&d.p.lastsort!=c&&(a("span.s-ico",e).hide(),a("span.s-ico",f).show())});a("#gview_"+a.jgrid.jqID(d.p.id)).append(d.grid.fbDiv);a(d.grid.bDiv).scroll(function(){a(d.grid.fbDiv).scrollTop(a(this).scrollTop())});!0===d.p.hoverrows&&a("#"+a.jgrid.jqID(d.p.id)).unbind("mouseover").unbind("mouseout");a(d).bind("jqGridAfterGridComplete.setFrozenColumns",function(){a("#"+a.jgrid.jqID(d.p.id)+"_frozen").remove();a(d.grid.fbDiv).height(a(d.grid.bDiv).height()- -16);var b=a("#"+a.jgrid.jqID(d.p.id)).clone(!0);a("tr",b).each(function(){a("td:gt("+c+")",this).remove()});a(b).width(1).attr("id",d.p.id+"_frozen");a(d.grid.fbDiv).append(b);!0===d.p.hoverrows&&(a("tr.jqgrow",b).hover(function(){a(this).addClass("ui-state-hover");a("#"+a.jgrid.jqID(this.id),"#"+a.jgrid.jqID(d.p.id)).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover");a("#"+a.jgrid.jqID(this.id),"#"+a.jgrid.jqID(d.p.id)).removeClass("ui-state-hover")}),a("tr.jqgrow","#"+ -a.jgrid.jqID(d.p.id)).hover(function(){a(this).addClass("ui-state-hover");a("#"+a.jgrid.jqID(this.id),"#"+a.jgrid.jqID(d.p.id)+"_frozen").addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover");a("#"+a.jgrid.jqID(this.id),"#"+a.jgrid.jqID(d.p.id)+"_frozen").removeClass("ui-state-hover")}));b=null});d.p.frozenColumns=!0}}}})},destroyFrozenColumns:function(){return this.each(function(){if(this.grid&&!0===this.p.frozenColumns){a(this.grid.fhDiv).remove();a(this.grid.fbDiv).remove(); -this.grid.fhDiv=null;this.grid.fbDiv=null;a(this).unbind(".setFrozenColumns");if(!0===this.p.hoverrows){var d;a("#"+a.jgrid.jqID(this.p.id)).bind("mouseover",function(e){d=a(e.target).closest("tr.jqgrow");"ui-subgrid"!==a(d).attr("class")&&a(d).addClass("ui-state-hover")}).bind("mouseout",function(e){d=a(e.target).closest("tr.jqgrow");a(d).removeClass("ui-state-hover")})}this.p.frozenColumns=!1}})}})})(jQuery); -(function(a){a.fn.jqm=function(b){var f={overlay:50,closeoverlay:!0,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:c,ajaxText:"",target:c,modal:c,toTop:c,onShow:c,onHide:c,onLoad:c};return this.each(function(){if(this._jqm)return e[this._jqm].c=a.extend({},e[this._jqm].c,b);d++;this._jqm=d;e[d]={c:a.extend(f,a.jqm.params,b),a:c,w:a(this).addClass("jqmID"+d),s:d};f.trigger&&a(this).jqmAddTrigger(f.trigger)})};a.fn.jqmAddClose=function(a){return k(this,a,"jqmHide")};a.fn.jqmAddTrigger= -function(a){return k(this,a,"jqmShow")};a.fn.jqmShow=function(b){return this.each(function(){a.jqm.open(this._jqm,b)})};a.fn.jqmHide=function(b){return this.each(function(){a.jqm.close(this._jqm,b)})};a.jqm={hash:{},open:function(d,g){var k=e[d],l=k.c,j="."+l.closeClass,p=parseInt(k.w.css("z-index")),p=0").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":p-1,opacity:l.overlay/100});if(k.a)return c;k.t=g;k.a=!0;k.w.css("z-index",p);l.modal?(b[0]||setTimeout(function(){i("bind")}, -1),b.push(d)):0').insertAfter(k.o);l.onShow?l.onShow(k):k.w.show();h(k);return c},close:function(d){d=e[d];if(!d.a)return c;d.a=c;b[0]&&(b.pop(),b[0]||i("unbind"));d.c.toTop&&d.o&&a("#jqmP"+d.w[0]._jqm).after(d.w).remove();if(d.c.onHide)d.c.onHide(d);else d.w.hide(),d.o&&d.o.remove();return c},params:{}};var d=0,e=a.jqm.hash,b=[],f=a.browser.msie&& -"6.0"==a.browser.version,c=!1,h=function(b){var c=a('').css({opacity:0});f&&(b.o?b.o.html('

      ').prepend(c):a("iframe.jqm",b.w)[0]||b.w.prepend(c));g(b)},g=function(b){try{a(":input:visible",b.w)[0].focus()}catch(c){}},i=function(b){a(document)[b]("keypress",j)[b]("keydown",j)[b]("mousedown",j)},j=function(c){var d=e[b[b.length-1]];(c=!a(c.target).parents(".jqmID"+d.s)[0])&&g(d);return!c},k=function(b, -d,f){return b.each(function(){var b=this._jqm;a(d).each(function(){this[f]||(this[f]=[],a(this).click(function(){for(var a in{jqmShow:1,jqmHide:1})for(var b in this[a])if(e[this[a][b]])e[this[a][b]].w[a](this);return c}));this[f].push(b)})})}})(jQuery); -(function(a){a.fn.jqDrag=function(a){return h(this,a,"d")};a.fn.jqResize=function(a,b){return h(this,a,"r",b)};a.jqDnR={dnr:{},e:0,drag:function(a){"d"==e.k?b.css({left:e.X+a.pageX-e.pX,top:e.Y+a.pageY-e.pY}):(b.css({width:Math.max(a.pageX-e.pX+e.W,0),height:Math.max(a.pageY-e.pY+e.H,0)}),c&&f.css({width:Math.max(a.pageX-c.pX+c.W,0),height:Math.max(a.pageY-c.pY+c.H,0)}));return!1},stop:function(){a(document).unbind("mousemove",d.drag).unbind("mouseup",d.stop)}};var d=a.jqDnR,e=d.dnr,b=d.e,f,c,h=function(d, -h,m,n){return d.each(function(){h=h?a(h,d):d;h.bind("mousedown",{e:d,k:m},function(d){var h=d.data,k={};b=h.e;f=n?a(n):!1;if("relative"!=b.css("position"))try{b.position(k)}catch(j){}e={X:k.left||g("left")||0,Y:k.top||g("top")||0,W:g("width")||b[0].scrollWidth||0,H:g("height")||b[0].scrollHeight||0,pX:d.pageX,pY:d.pageY,k:h.k};c=f&&"d"!=h.k?{X:k.left||i("left")||0,Y:k.top||i("top")||0,W:f[0].offsetWidth||i("width")||0,H:f[0].offsetHeight||i("height")||0,pX:d.pageX,pY:d.pageY,k:h.k}:!1;if(a("input.hasDatepicker", -b[0])[0])try{a("input.hasDatepicker",b[0]).datepicker("hide")}catch(m){}a(document).mousemove(a.jqDnR.drag).mouseup(a.jqDnR.stop);return!1})})},g=function(a){return parseInt(b.css(a),10)||!1},i=function(a){return parseInt(f.css(a),10)||!1}})(jQuery); -var xmlJsonClass={xml2json:function(a,d){9===a.nodeType&&(a=a.documentElement);var e=this.toJson(this.toObj(this.removeWhite(a)),a.nodeName,"\t");return"{\n"+d+(d?e.replace(/\t/g,d):e.replace(/\t|\n/g,""))+"\n}"},json2xml:function(a,d){var e=function(a,b,d){var f="",j,k;if(a instanceof Array)if(0===a.length)f+=d+"<"+b+">__EMPTY_ARRAY_\n";else{j=0;for(k=a.length;j":"/>";if(j){for(k in a)a.hasOwnProperty(k)&&("#text"===k?f+=a[k]:"#cdata"===k?f+="":"@"!==k.charAt(0)&&(f+=e(a[k],k,d+"\t")));f+=("\n"===f.charAt(f.length-1)?d:"")+""}}else"function"===typeof a?f+=d+"<"+b+">":(void 0===a&&(a=""),f='""'===a.toString()||0===a.toString().length?f+(d+"<"+b+">__EMPTY_STRING_"):f+(d+"<"+b+">"+a.toString()+""));return f},b="",f;for(f in a)a.hasOwnProperty(f)&& -(b+=e(a[f],f,""));return d?b.replace(/\t/g,d):b.replace(/\t|\n/g,"")},toObj:function(a){var d={},e=/function/i;if(1===a.nodeType){if(a.attributes.length){var b;for(b=0;bb&&2>f){this.removeWhite(a);for(h=a.firstChild;h;h= -h.nextSibling)3===h.nodeType?d["#text"]=this.escape(h.nodeValue):4===h.nodeType?e.test(h.nodeValue)?d[h.nodeName]=[d[h.nodeName],h.nodeValue]:d["#cdata"]=this.escape(h.nodeValue):d[h.nodeName]?d[h.nodeName]instanceof Array?d[h.nodeName][d[h.nodeName].length]=this.toObj(h):d[h.nodeName]=[d[h.nodeName],this.toObj(h)]:d[h.nodeName]=this.toObj(h)}else a.attributes.length?d["#text"]=this.escape(this.innerXml(a)):d=this.escape(this.innerXml(a));else if(b)a.attributes.length?d["#text"]=this.escape(this.innerXml(a)): -(d=this.escape(this.innerXml(a)),"__EMPTY_ARRAY_"===d?d="[]":"__EMPTY_STRING_"===d&&(d=""));else if(f)if(1"}else d+="/>"}else 3===a.nodeType?d+=a.nodeValue:4===a.nodeType&&(d+="");return d},a=a.firstChild;a;a=a.nextSibling)d+=e(a);return d},escape:function(a){return a.replace(/[\\]/g,"\\\\").replace(/[\"]/g,'\\"').replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r")},removeWhite:function(a){a.normalize();var d;for(d=a.firstChild;d;)if(3===d.nodeType)if(d.nodeValue.match(/[^ \f\n\r\t\v]/))d=d.nextSibling;else{var e=d.nextSibling;a.removeChild(d);d=e}else 1===d.nodeType&&this.removeWhite(d),d=d.nextSibling;return a}}; -(function(a){a.fmatter={};a.extend(a.fmatter,{isBoolean:function(a){return"boolean"===typeof a},isObject:function(d){return d&&("object"===typeof d||a.isFunction(d))||!1},isString:function(a){return"string"===typeof a},isNumber:function(a){return"number"===typeof a&&isFinite(a)},isNull:function(a){return null===a},isUndefined:function(a){return void 0===a},isValue:function(a){return this.isObject(a)||this.isString(a)||this.isNumber(a)||this.isBoolean(a)},isEmpty:function(d){if(!this.isString(d)&& -this.isValue(d))return!1;if(!this.isValue(d))return!0;d=a.trim(d).replace(/\ \;/ig,"").replace(/\ \;/ig,"");return""===d}});a.fn.fmatter=function(d,e,b,f,c){var h=e,b=a.extend({},a.jgrid.formatter,b);try{h=a.fn.fmatter[d].call(this,e,b,f,c)}catch(g){}return h};a.fmatter.util={NumberFormat:function(d,e){a.fmatter.isNumber(d)||(d*=1);if(a.fmatter.isNumber(d)){var b=0>d,f=""+d,c=e.decimalSeparator||".",h;if(a.fmatter.isNumber(e.decimalPlaces)){var g=e.decimalPlaces,f=Math.pow(10,g),f=""+Math.round(d* -f)/f;h=f.lastIndexOf(".");if(0h?(f+=c,h=f.length-1):"."!==c&&(f=f.replace(".",c));for(;f.length-1-hi&&(e[h]=i+1)),"F"==d[h]&&(i=a.inArray(e[h],k.i18n.monthNames),-1!==i&&11=i?g.y=1900+g.y:0<=i&&69>=i&&(g.y=2E3+g.y);i=new Date(g.y,g.m,g.d,g.h,g.i,g.s,g.u)}f.masks.hasOwnProperty(b)?b= -f.masks[b]:b||(b="Y-m-d");d=i.getHours();e=i.getMinutes();g=i.getDate();h=i.getMonth()+1;j=i.getTimezoneOffset();var m=i.getSeconds(),n=i.getMilliseconds(),o=i.getDay(),l=i.getFullYear(),q=(o+6)%7+1,p=(new Date(l,h-1,g)-new Date(l,0,1))/864E5,r={d:c(g),D:k.i18n.dayNames[o],j:g,l:k.i18n.dayNames[o+7],N:q,S:f.S(g),w:o,z:p,W:5>q?Math.floor((p+q-1)/7)+1:Math.floor((p+q-1)/7)||(4>((new Date(l-1,0,1)).getDay()+6)%7?53:52),F:k.i18n.monthNames[h-1+12],m:c(h),M:k.i18n.monthNames[h-1],n:h,t:"?",L:"?",o:"?", -Y:l,y:(""+l).substring(2),a:12>d?f.AmPm[0]:f.AmPm[1],A:12>d?f.AmPm[2]:f.AmPm[3],B:"?",g:d%12||12,G:d,h:c(d%12||12),H:c(d),i:c(e),s:c(m),u:n,e:"?",I:"?",O:(0'+d+"":a.fn.fmatter.defaultFormat(d,e)};a.fn.fmatter.checkbox=function(d,e){var b=a.extend({},e.checkbox),f;void 0!==e.colModel&&!a.fmatter.isUndefined(e.colModel.formatoptions)&&(b=a.extend({},b,e.colModel.formatoptions));f=!0===b.disabled?'disabled="disabled"': -"";if(a.fmatter.isEmpty(d)||a.fmatter.isUndefined(d))d=a.fn.fmatter.defaultFormat(d,b);d=(""+d).toLowerCase();return'd.search(/(false|0|no|n|off)/i)?" checked='checked' ":"")+' value="'+d+'" offval="no" '+f+"/>"};a.fn.fmatter.link=function(d,e){var b={target:e.target},f="";void 0!==e.colModel&&!a.fmatter.isUndefined(e.colModel.formatoptions)&&(b=a.extend({},b,e.colModel.formatoptions));b.target&&(f="target="+b.target);return!a.fmatter.isEmpty(d)?"'+ -d+"":a.fn.fmatter.defaultFormat(d,e)};a.fn.fmatter.showlink=function(d,e){var b={baseLinkUrl:e.baseLinkUrl,showAction:e.showAction,addParam:e.addParam||"",target:e.target,idName:e.idName},f="";void 0!==e.colModel&&!a.fmatter.isUndefined(e.colModel.formatoptions)&&(b=a.extend({},b,e.colModel.formatoptions));b.target&&(f="target="+b.target);b=b.baseLinkUrl+b.showAction+"?"+b.idName+"="+e.rowId+b.addParam;return a.fmatter.isString(d)||a.fmatter.isNumber(d)?"'+d+"":a.fn.fmatter.defaultFormat(d, -e)};a.fn.fmatter.integer=function(d,e){var b=a.extend({},e.integer);void 0!==e.colModel&&!a.fmatter.isUndefined(e.colModel.formatoptions)&&(b=a.extend({},b,e.colModel.formatoptions));return a.fmatter.isEmpty(d)?b.defaultValue:a.fmatter.util.NumberFormat(d,b)};a.fn.fmatter.number=function(d,e){var b=a.extend({},e.number);void 0!==e.colModel&&!a.fmatter.isUndefined(e.colModel.formatoptions)&&(b=a.extend({},b,e.colModel.formatoptions));return a.fmatter.isEmpty(d)?b.defaultValue:a.fmatter.util.NumberFormat(d, -b)};a.fn.fmatter.currency=function(d,e){var b=a.extend({},e.currency);void 0!==e.colModel&&!a.fmatter.isUndefined(e.colModel.formatoptions)&&(b=a.extend({},b,e.colModel.formatoptions));return a.fmatter.isEmpty(d)?b.defaultValue:a.fmatter.util.NumberFormat(d,b)};a.fn.fmatter.date=function(d,e,b,f){b=a.extend({},e.date);void 0!==e.colModel&&!a.fmatter.isUndefined(e.colModel.formatoptions)&&(b=a.extend({},b,e.colModel.formatoptions));return!b.reformatAfterEdit&&"edit"==f?a.fn.fmatter.defaultFormat(d, -e):!a.fmatter.isEmpty(d)?a.fmatter.util.DateFormat(b.srcformat,d,b.newformat,b):a.fn.fmatter.defaultFormat(d,e)};a.fn.fmatter.select=function(d,e){var d=""+d,b=!1,f=[],c,h;a.fmatter.isUndefined(e.colModel.formatoptions)?a.fmatter.isUndefined(e.colModel.editoptions)||(b=e.colModel.editoptions.value,c=void 0===e.colModel.editoptions.separator?":":e.colModel.editoptions.separator,h=void 0===e.colModel.editoptions.delimiter?";":e.colModel.editoptions.delimiter):(b=e.colModel.formatoptions.value,c=void 0=== -e.colModel.formatoptions.separator?":":e.colModel.formatoptions.separator,h=void 0===e.colModel.formatoptions.delimiter?";":e.colModel.formatoptions.delimiter);if(b){var g=!0===e.colModel.editoptions.multiple?!0:!1,i=[];g&&(i=d.split(","),i=a.map(i,function(b){return a.trim(b)}));if(a.fmatter.isString(b)){var j=b.split(h),k=0,m;for(m=0;m0)return a}).join(c)),g)-1": -b.editbutton&&(c+="

      ");b.delbutton&&(c+="
      "); -c+="";c+=""; -return"
      "+c+"
      "};a.unformat=function(d,e,b,f){var c,h=e.colModel.formatter,g=e.colModel.formatoptions||{},i=/([\.\*\_\'\(\)\{\}\+\?\\])/g,j=e.colModel.unformat||a.fn.fmatter[h]&&a.fn.fmatter[h].unformat;if(void 0!==j&&a.isFunction(j))c=j.call(this,a(d).text(),e,d);else if(!a.fmatter.isUndefined(h)&&a.fmatter.isString(h))switch(c=a.jgrid.formatter||{},h){case "integer":g=a.extend({},c.integer,g);e=g.thousandsSeparator.replace(i,"\\$1");c=a(d).text().replace(RegExp(e, -"g"),"");break;case "number":g=a.extend({},c.number,g);e=g.thousandsSeparator.replace(i,"\\$1");c=a(d).text().replace(RegExp(e,"g"),"").replace(g.decimalSeparator,".");break;case "currency":g=a.extend({},c.currency,g);e=g.thousandsSeparator.replace(i,"\\$1");e=RegExp(e,"g");c=a(d).text();g.prefix&&g.prefix.length&&(c=c.substr(g.prefix.length));g.suffix&&g.suffix.length&&(c=c.substr(0,c.length-g.suffix.length));c=c.replace(e,"").replace(g.decimalSeparator,".");break;case "checkbox":g=e.colModel.editoptions? -e.colModel.editoptions.value.split(":"):["Yes","No"];c=a("input",d).is(":checked")?g[0]:g[1];break;case "select":c=a.unformat.select(d,e,b,f);break;case "actions":return"";default:c=a(d).text()}return void 0!==c?c:!0===f?a(d).text():a.jgrid.htmlDecode(a(d).html())};a.unformat.select=function(d,e,b,f){b=[];d=a(d).text();if(!0===f)return d;var f=a.extend({},!a.fmatter.isUndefined(e.colModel.formatoptions)?e.colModel.formatoptions:e.colModel.editoptions),e=void 0===f.separator?":":f.separator,c=void 0=== -f.delimiter?";":f.delimiter;if(f.value){var h=f.value,f=!0===f.multiple?!0:!1,g=[];f&&(g=d.split(","),g=a.map(g,function(b){return a.trim(b)}));if(a.fmatter.isString(h)){var i=h.split(c),j=0,k;for(k=0;k0)return a}).join(e)),f)-1"+b.caption+"");var n=a("").hover(function(){n.addClass("ui-state-hover")},function(){n.removeClass("ui-state-hover")}).append("");a(m).append(n);j?(i.dir="rtl",a(".ui-jqdialog-title",m).css("float","right"),a(".ui-jqdialog-titlebar-close",m).css("left","0.3em")):(i.dir="ltr",a(".ui-jqdialog-title",m).css("float", -"left"),a(".ui-jqdialog-titlebar-close",m).css("right","0.3em"));var o=document.createElement("div");a(o).addClass("ui-jqdialog-content ui-widget-content").attr("id",d.modalcontent);a(o).append(e);i.appendChild(o);a(i).prepend(m);!0===h?a("body").append(i):"string"===typeof h?a(h).append(i):a(i).insertBefore(f);a(i).css(g);void 0===b.jqModal&&(b.jqModal=!0);e={};if(a.fn.jqm&&!0===b.jqModal)0===b.left&&0===b.top&&b.overlay&&(g=[],g=a.jgrid.findPos(c),b.left=g[0]+4,b.top=g[1]+4),e.top=b.top+"px",e.left= -b.left;else if(0!==b.left||0!==b.top)e.left=b.left,e.top=b.top+"px";a("a.ui-jqdialog-titlebar-close",m).click(function(){var c=a("#"+a.jgrid.jqID(d.themodal)).data("onClose")||b.onClose,e=a("#"+a.jgrid.jqID(d.themodal)).data("gbox")||b.gbox;k.hideModal("#"+a.jgrid.jqID(d.themodal),{gb:e,jqm:b.jqModal,onClose:c});return false});if(0===b.width||!b.width)b.width=300;if(0===b.height||!b.height)b.height=200;b.zIndex||(f=a(f).parents("*[role=dialog]").filter(":first").css("z-index"),b.zIndex=f?parseInt(f, -10)+2:950);f=0;j&&e.left&&!h&&(f=a(b.gbox).width()-(!isNaN(b.width)?parseInt(b.width,10):0)-8,e.left=parseInt(e.left,10)+parseInt(f,10));e.left&&(e.left+="px");a(i).css(a.extend({width:isNaN(b.width)?"auto":b.width+"px",height:isNaN(b.height)?"auto":b.height+"px",zIndex:b.zIndex,overflow:"hidden"},e)).attr({tabIndex:"-1",role:"dialog","aria-labelledby":d.modalhead,"aria-hidden":"true"});void 0===b.drag&&(b.drag=!0);void 0===b.resize&&(b.resize=!0);if(b.drag)if(a(m).css("cursor","move"),a.fn.jqDrag)a(i).jqDrag(m); -else try{a(i).draggable({handle:a("#"+a.jgrid.jqID(m.id))})}catch(l){}if(b.resize)if(a.fn.jqResize)a(i).append("
      "),a("#"+a.jgrid.jqID(d.themodal)).jqResize(".jqResize",d.scrollelm?"#"+a.jgrid.jqID(d.scrollelm):!1);else try{a(i).resizable({handles:"se, sw",alsoResize:d.scrollelm?"#"+a.jgrid.jqID(d.scrollelm):!1})}catch(q){}!0===b.closeOnEscape&&a(i).keydown(function(c){if(c.which==27){c=a("#"+a.jgrid.jqID(d.themodal)).data("onClose")|| -b.onClose;k.hideModal("#"+a.jgrid.jqID(d.themodal),{gb:b.gbox,jqm:b.jqModal,onClose:c})}})},viewModal:function(d,e){e=a.extend({toTop:!0,overlay:10,modal:!1,overlayClass:"ui-widget-overlay",onShow:a.jgrid.showModal,onHide:a.jgrid.closeModal,gbox:"",jqm:!0,jqM:!0},e||{});if(a.fn.jqm&&!0===e.jqm)e.jqM?a(d).attr("aria-hidden","false").jqm(e).jqmShow():a(d).attr("aria-hidden","false").jqmShow();else{""!==e.gbox&&(a(".jqgrid-overlay:first",e.gbox).show(),a(d).data("gbox",e.gbox));a(d).show().attr("aria-hidden", -"false");try{a(":input:visible",d)[0].focus()}catch(b){}}},info_dialog:function(d,e,b,f){var c={width:290,height:"auto",dataheight:"auto",drag:!0,resize:!1,left:250,top:170,zIndex:1E3,jqModal:!0,modal:!1,closeOnEscape:!0,align:"center",buttonalign:"center",buttons:[]};a.extend(!0,c,a.jgrid.jqModal||{},{caption:""+d+""},f||{});var h=c.jqModal,g=this;a.fn.jqm&&!h&&(h=!1);d="";if(0"+c.buttons[f].text+"";f=isNaN(c.dataheight)?c.dataheight:c.dataheight+"px";e="
      "+("
      "+e+"
      ");e+=b?"
      "+ -b+""+d+"
      ":""!==d?"
      "+d+"
      ":"";e+="
      ";try{"false"==a("#info_dialog").attr("aria-hidden")&&a.jgrid.hideModal("#info_dialog",{jqm:h}),a("#info_dialog").remove()}catch(i){}a.jgrid.createModal({themodal:"info_dialog",modalhead:"info_head",modalcontent:"info_content",scrollelm:"infocnt"},e,c,"","",!0);d&&a.each(c.buttons, -function(b){a("#"+a.jgrid.jqID(this.id),"#info_id").bind("click",function(){c.buttons[b].onClick.call(a("#info_dialog"));return!1})});a("#closedialog","#info_id").click(function(){g.hideModal("#info_dialog",{jqm:h});return!1});a(".fm-button","#info_dialog").hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});a.isFunction(c.beforeOpen)&&c.beforeOpen();a.jgrid.viewModal("#info_dialog",{onHide:function(a){a.w.hide().remove();a.o&&a.o.remove()},modal:c.modal, -jqm:h});a.isFunction(c.afterOpen)&&c.afterOpen();try{a("#info_dialog").focus()}catch(j){}},bindEv:function(d,e,b){a.isFunction(e.dataInit)&&e.dataInit.call(b,d);e.dataEvents&&a.each(e.dataEvents,function(){void 0!==this.data?a(d).bind(this.type,this.data,this.fn):a(d).bind(this.type,this.fn)})},createEl:function(d,e,b,f,c){function h(b,c,d){var e="dataInit,dataEvents,dataUrl,buildSelect,sopt,searchhidden,defaultValue,attr".split(",");void 0!==d&&a.isArray(d)&&a.merge(e,d);a.each(c,function(c,d){-1=== -a.inArray(c,e)&&a(b).attr(c,d)});c.hasOwnProperty("id")||a(b).attr("id",a.jgrid.randId())}var g="",i=this;switch(d){case "textarea":g=document.createElement("textarea");f?e.cols||a(g).css({width:"98%"}):e.cols||(e.cols=20);e.rows||(e.rows=2);if(" "==b||" "==b||1==b.length&&160==b.charCodeAt(0))b="";g.value=b;h(g,e);a(g).attr({role:"textbox",multiline:"true"});break;case "checkbox":g=document.createElement("input");g.type="checkbox";e.value?(d=e.value.split(":"),b===d[0]&&(g.checked=!0,g.defaultChecked= -!0),g.value=d[0],a(g).attr("offval",d[1])):(d=b.toLowerCase(),0>d.search(/(false|0|no|off|undefined)/i)&&""!==d?(g.checked=!0,g.defaultChecked=!0,g.value=b):g.value="on",a(g).attr("offval","off"));h(g,e,["value"]);a(g).attr("role","checkbox");break;case "select":g=document.createElement("select");g.setAttribute("role","select");f=[];!0===e.multiple?(d=!0,g.multiple="multiple",a(g).attr("aria-multiselectable","true")):d=!1;if(void 0!==e.dataUrl)a.ajax(a.extend({url:e.dataUrl,type:"GET",dataType:"html", -context:{elem:g,options:e,vl:b},success:function(b){var c=[],d=this.elem,e=this.vl,f=a.extend({},this.options),g=f.multiple===true;a.isFunction(f.buildSelect)&&(b=f.buildSelect.call(i,b));if(b=a(b).html()){a(d).append(b);h(d,f);if(f.size===void 0)f.size=g?3:1;if(g){c=e.split(",");c=a.map(c,function(b){return a.trim(b)})}else c[0]=a.trim(e);setTimeout(function(){a("option",d).each(function(b){if(b===0&&d.multiple)this.selected=false;a(this).attr("role","option");if(a.inArray(a.trim(a(this).text()), -c)>-1||a.inArray(a.trim(a(this).val()),c)>-1)this.selected="selected"})},0)}}},c||{}));else if(e.value){var j;void 0===e.size&&(e.size=d?3:1);d&&(f=b.split(","),f=a.map(f,function(b){return a.trim(b)}));"function"===typeof e.value&&(e.value=e.value());var k,m,n=void 0===e.separator?":":e.separator,c=void 0===e.delimiter?";":e.delimiter;if("string"===typeof e.value){k=e.value.split(c);for(j=0;j0)return a}).join(n));c=document.createElement("option"); -c.setAttribute("role","option");c.value=m[0];c.innerHTML=m[1];g.appendChild(c);if(!d&&(a.trim(m[0])==a.trim(b)||a.trim(m[1])==a.trim(b)))c.selected="selected";if(d&&(-1j.length||1>b[a[g]]||12j.length||1>b[a[h]]||31(0===b[a[f]]%4&&(0!==b[a[f]]%100||0===b[a[f]]%400)?29:28)||b[a[h]]>i[b[a[g]]]?!1:!0},isEmpty:function(a){return a.match(/^\s+$/)||""===a?!0:!1},checkTime:function(d){var e=/^(\d{1,2}):(\d{2})([ap]m)?$/;if(!a.jgrid.isEmpty(d))if(d= -d.match(e)){if(d[3]){if(1>d[1]||12parseFloat(h.maxValue))return[!1,g+": "+a.jgrid.edit.msg.maxValue+" "+h.maxValue,""];if(!0===h.email&&!(!1===f&&a.jgrid.isEmpty(d))&&(c=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i, -!c.test(d)))return[!1,g+": "+a.jgrid.edit.msg.email,""];if(!0===h.integer&&!(!1===f&&a.jgrid.isEmpty(d))&&(isNaN(d)||0!==d%1||-1!=d.indexOf(".")))return[!1,g+": "+a.jgrid.edit.msg.integer,""];if(!0===h.date&&!(!1===f&&a.jgrid.isEmpty(d))&&(e=b.p.colModel[e].formatoptions&&b.p.colModel[e].formatoptions.newformat?b.p.colModel[e].formatoptions.newformat:b.p.colModel[e].datefmt||"Y-m-d",!a.jgrid.checkDate(e,d)))return[!1,g+": "+a.jgrid.edit.msg.date+" - "+e,""];if(!0===h.time&&!(!1===f&&a.jgrid.isEmpty(d))&& -!a.jgrid.checkTime(d))return[!1,g+": "+a.jgrid.edit.msg.date+" - hh:mm (am/pm)",""];if(!0===h.url&&!(!1===f&&a.jgrid.isEmpty(d))&&(c=/^(((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i,!c.test(d)))return[!1,g+": "+a.jgrid.edit.msg.url,""];if(!0===h.custom&&!(!1===f&&a.jgrid.isEmpty(d)))return a.isFunction(h.custom_func)?(d=h.custom_func.call(b,d,g),a.isArray(d)?d:[!1,a.jgrid.edit.msg.customarray,""]):[!1,a.jgrid.edit.msg.customfcheck, -""]}return[!0,"",""]}})})(jQuery); -(function(a){a.fn.jqFilter=function(d){if("string"===typeof d){var e=a.fn.jqFilter[d];if(!e)throw"jqFilter - No such method: "+d;var b=a.makeArray(arguments).slice(1);return e.apply(this,b)}var f=a.extend(!0,{filter:null,columns:[],onChange:null,afterRedraw:null,checkValues:null,error:!1,errmsg:"",errorcheck:!0,showQuery:!0,sopt:null,ops:[{name:"eq",description:"equal",operator:"="},{name:"ne",description:"not equal",operator:"<>"},{name:"lt",description:"less",operator:"<"},{name:"le",description:"less or equal", -operator:"<="},{name:"gt",description:"greater",operator:">"},{name:"ge",description:"greater or equal",operator:">="},{name:"bw",description:"begins with",operator:"LIKE"},{name:"bn",description:"does not begin with",operator:"NOT LIKE"},{name:"in",description:"in",operator:"IN"},{name:"ni",description:"not in",operator:"NOT IN"},{name:"ew",description:"ends with",operator:"LIKE"},{name:"en",description:"does not end with",operator:"NOT LIKE"},{name:"cn",description:"contains",operator:"LIKE"},{name:"nc", -description:"does not contain",operator:"NOT LIKE"},{name:"nu",description:"is null",operator:"IS NULL"},{name:"nn",description:"is not null",operator:"IS NOT NULL"}],numopts:"eq,ne,lt,le,gt,ge,nu,nn,in,ni".split(","),stropts:"eq,ne,bw,bn,ew,en,cn,nc,nu,nn,in,ni".split(","),_gridsopt:[],groupOps:[{op:"AND",text:"AND"},{op:"OR",text:"OR"}],groupButton:!0,ruleButtons:!0,direction:"ltr"},a.jgrid.filter,d||{});return this.each(function(){if(!this.filter){this.p=f;if(null===this.p.filter||void 0===this.p.filter)this.p.filter= -{groupOp:this.p.groupOps[0].op,rules:[],groups:[]};var b,d=this.p.columns.length,e,i=/msie/i.test(navigator.userAgent)&&!window.opera;if(this.p._gridsopt.length)for(b=0;b");var j=function(b,c){var d=[!0,""];if(a.isFunction(c.searchrules))d=c.searchrules(b,c);else if(a.jgrid&&a.jgrid.checkValues)try{d= -a.jgrid.checkValues(b,-1,null,c.searchrules,c.label)}catch(e){}d&&d.length&&!1===d[0]&&(f.error=!d[0],f.errmsg=d[1])};this.onchange=function(){this.p.error=!1;this.p.errmsg="";return a.isFunction(this.p.onChange)?this.p.onChange.call(this,this.p):!1};this.reDraw=function(){a("table.group:first",this).remove();var b=this.createTableForGroup(f.filter,null);a(this).append(b);a.isFunction(this.p.afterRedraw)&&this.p.afterRedraw.call(this,this.p)};this.createTableForGroup=function(b,c){var d=this,e,g= -a("
      "),h="left";"rtl"==this.p.direction&&(h="right",g.attr("dir","rtl"));null===c&&g.append("");var i=a("");g.append(i);h=a("");i.append(h);if(!0===this.p.ruleButtons){var j=a("");h.append(j);var i="",s;for(e=0;e"+d.p.groupOps[e].text+"";j.append(i).bind("change",function(){b.groupOp=a(j).val();d.onchange()})}i="";this.p.groupButton&&(i=a(""),i.bind("click",function(){if(b.groups===void 0)b.groups=[];b.groups.push({groupOp:f.groupOps[0].op,rules:[],groups:[]});d.reDraw();d.onchange();return false}));h.append(i); -if(!0===this.p.ruleButtons){var i=a(""),t;i.bind("click",function(){if(b.rules===void 0)b.rules=[];for(e=0;e"),h.append(i),i.bind("click",function(){for(e=0;e"),g.append(h),i=a(""),h.append(i),i=a(""),i.append(this.createTableForGroup(b.groups[e], -b)),h.append(i);void 0===b.groupOp&&(b.groupOp=d.p.groupOps[0].op);if(void 0!==b.rules)for(e=0;e"),g,h,j,r,s="",t;e.append("");var v=a("");e.append(v);var x=a(""),w,y=[];v.append(x);x.bind("change",function(){b.field=a(x).val();j=a(this).parents("tr:first");for(g=0;g"+d.p.ops[w].description+"",f++);a(".selectopts",j).empty().append(e);a(".selectopts",j)[0].selectedIndex=0;a.browser.msie&&9>a.browser.version&&(e=parseInt(a("select.selectopts",j)[0].offsetWidth,10)+1,a(".selectopts",j).width(e),a(".selectopts",j).css("width","auto"));a(".data",j).empty().append(c);a.jgrid.bindEv(c,r.searchoptions,d);a(".input-elm",j).bind("change",function(c){var e=a(this).hasClass("ui-autocomplete-input")?200:0;setTimeout(function(){var e= -c.target;b.data=e.nodeName.toUpperCase()==="SPAN"&&r.searchoptions&&a.isFunction(r.searchoptions.custom_value)?r.searchoptions.custom_value(a(e).children(".customelement:first"),"get"):e.value;d.onchange()},e)});setTimeout(function(){b.data=a(c).val();d.onchange()},0)}});for(g=v=0;g"+d.p.columns[g].label+""}x.append(s);s=a("");e.append(s);r=f.columns[v];r.searchoptions.id=a.jgrid.randId();i&&"text"===r.inputtype&&!r.searchoptions.size&&(r.searchoptions.size=10);v=a.jgrid.createEl(r.inputtype,r.searchoptions,b.data,!0,d.p.ajaxSelectOptions,!0);if("nu"==b.op||"nn"==b.op)a(v).attr("readonly","true"),a(v).attr("disabled","true");var C=a("");s.append(C);C.bind("change", -function(){b.op=a(C).val();j=a(this).parents("tr:first");var c=a(".input-elm",j)[0];if(b.op==="nu"||b.op==="nn"){b.data="";c.value="";c.setAttribute("readonly","true");c.setAttribute("disabled","true")}else{c.removeAttribute("readonly");c.removeAttribute("disabled")}d.onchange()});h=r.searchoptions.sopt?r.searchoptions.sopt:d.p.sopt?d.p.sopt:"string"===r.searchtype?f.stropts:d.p.numopts;s="";a.each(d.p.ops,function(){y.push(this.name)});for(g=0;g"+d.p.ops[w].description+"");C.append(s);s=a("");e.append(s);s.append(v);a.jgrid.bindEv(v,r.searchoptions,d);a(v).addClass("input-elm").bind("change",function(){b.data=r.inputtype==="custom"?r.searchoptions.custom_value(a(this).children(".customelement:first"),"get"):a(this).val();d.onchange()});s=a("");e.append(s);!0===this.p.ruleButtons&&(v=a(""), -s.append(v),v.bind("click",function(){for(g=0;g
      ").insertBefore("#gview_"+a.jgrid.jqID(f.p.id)),k="left",m="";"rtl"==f.p.direction&&(k="right",m=" style='text-align:left'",j.attr("dir","rtl"));var n=a.extend([],f.p.colModel),o=""+d.Find+"",l=""+ -d.Reset+"",q="",p="",r,s=!1,t=-1;d.showQuery&&(q="Query");d.columns.length?n=d.columns:a.each(n,function(a,b){if(!b.label)b.label=f.p.colNames[a];if(!s){var c=b.search===void 0?true:b.search,d=b.hidden===true;if(b.searchoptions&&b.searchoptions.searchhidden===true&&c||c&&!d){s=true;r=b.index||b.name;t=a}}});if(!i&&r||!1===d.multipleSearch){var v= -"eq";0<=t&&n[t].searchoptions&&n[t].searchoptions.sopt?v=n[t].searchoptions.sopt[0]:d.sopt&&d.sopt.length&&(v=d.sopt[0]);i={groupOp:"AND",rules:[{field:r,op:v,data:""}]}}s=!1;d.tmplNames&&d.tmplNames.length&&(s=!0,p=d.tmplLabel,p+="");k="

      "+l+p+""+q+o+"
      ";c=a.jgrid.jqID(c);a("#"+c).jqFilter({columns:n,filter:d.loadDefaults?i:null,showQuery:d.showQuery,errorcheck:d.errorcheck,sopt:d.sopt,groupButton:d.multipleGroup,ruleButtons:d.multipleSearch,afterRedraw:d.afterRedraw,_gridsopt:a.jgrid.search.odata,ajaxSelectOptions:f.p.ajaxSelectOptions,groupOps:d.groupOps,onChange:function(){this.p.showQuery&&a(".query",this).html(this.toUserFriendlyString());a.isFunction(d.afterChange)&& -d.afterChange.call(f,a("#"+c),d)},direction:f.p.direction});j.append(k);s&&d.tmplFilters&&d.tmplFilters.length&&a(".ui-template",j).bind("change",function(){var b=a(this).val();b=="default"?a("#"+c).jqFilter("addFilter",i):a("#"+c).jqFilter("addFilter",d.tmplFilters[parseInt(b,10)]);return false});!0===d.multipleGroup&&(d.multipleSearch=!0);a(f).triggerHandler("jqGridFilterInitialize",[a("#"+c)]);a.isFunction(d.onInitializeSearch)&&d.onInitializeSearch.call(f,a("#"+c));d.gbox="#gbox_"+c;d.layer?a.jgrid.createModal(g, -j,d,"#gview_"+a.jgrid.jqID(f.p.id),a("#gbox_"+a.jgrid.jqID(f.p.id))[0],"#"+a.jgrid.jqID(d.layer),{position:"relative"}):a.jgrid.createModal(g,j,d,"#gview_"+a.jgrid.jqID(f.p.id),a("#gbox_"+a.jgrid.jqID(f.p.id))[0]);(d.searchOnEnter||d.closeOnEscape)&&a("#"+a.jgrid.jqID(g.themodal)).keydown(function(b){var f=a(b.target);if(d.searchOnEnter&&b.which===13&&!f.hasClass("add-group")&&!f.hasClass("add-rule")&&!f.hasClass("delete-group")&&!f.hasClass("delete-rule")&&(!f.hasClass("fm-button")||!f.is("[id$=_query]"))){a("#"+ -c+"_search").focus().click();return false}if(d.closeOnEscape&&b.which===27){a("#"+a.jgrid.jqID(g.modalhead)).find(".ui-jqdialog-titlebar-close").focus().click();return false}});q&&a("#"+c+"_query").bind("click",function(){a(".queryresult",j).toggle();return false});void 0===d.stringResult&&(d.stringResult=d.multipleSearch);a("#"+c+"_search").bind("click",function(){var b=a("#"+c),h={},i,j=b.jqFilter("filterData");if(d.errorcheck){b[0].hideError();d.showQuery||b.jqFilter("toSQLString");if(b[0].p.error){b[0].showError(); -return false}}if(d.stringResult){try{i=xmlJsonClass.toJson(j,"","",false)}catch(k){try{i=JSON.stringify(j)}catch(l){}}if(typeof i==="string"){h[d.sFilter]=i;a.each([d.sField,d.sValue,d.sOper],function(){h[this]=""})}}else if(d.multipleSearch){h[d.sFilter]=j;a.each([d.sField,d.sValue,d.sOper],function(){h[this]=""})}else{h[d.sField]=j.rules[0].field;h[d.sValue]=j.rules[0].data;h[d.sOper]=j.rules[0].op;h[d.sFilter]=""}f.p.search=true;a.extend(f.p.postData,h);a(f).triggerHandler("jqGridFilterSearch"); -a.isFunction(d.onSearch)&&d.onSearch.call(f);a(f).trigger("reloadGrid",[{page:1}]);d.closeAfterSearch&&a.jgrid.hideModal("#"+a.jgrid.jqID(g.themodal),{gb:"#gbox_"+a.jgrid.jqID(f.p.id),jqm:d.jqModal,onClose:d.onClose});return false});a("#"+c+"_reset").bind("click",function(){var b={},g=a("#"+c);f.p.search=false;d.multipleSearch===false?b[d.sField]=b[d.sValue]=b[d.sOper]="":b[d.sFilter]="";g[0].resetFilter();s&&a(".ui-template",j).val("default");a.extend(f.p.postData,b);a(f).triggerHandler("jqGridFilterReset"); -a.isFunction(d.onReset)&&d.onReset.call(f);a(f).trigger("reloadGrid",[{page:1}]);return false});b(a("#"+c));a(".fm-button:not(.ui-state-disabled)",j).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")})}}})},editGridRow:function(e,b){b=a.extend(!0,{top:0,left:0,width:300,height:"auto",dataheight:"auto",modal:!1,overlay:30,drag:!0,resize:!0,url:null,mtype:"POST",clearAfterAdd:!0,closeAfterEdit:!1,reloadAfterSubmit:!0,onInitializeForm:null,beforeInitData:null, -beforeShowForm:null,afterShowForm:null,beforeSubmit:null,afterSubmit:null,onclickSubmit:null,afterComplete:null,onclickPgButtons:null,afterclickPgButtons:null,editData:{},recreateForm:!1,jqModal:!0,closeOnEscape:!1,addedrow:"first",topinfo:"",bottominfo:"",saveicon:[],closeicon:[],savekey:[!1,13],navkeys:[!1,38,40],checkOnSubmit:!1,checkOnUpdate:!1,_savedData:{},processing:!1,onClose:null,ajaxEditOptions:{},serializeEditData:null,viewPagerButtons:!0},a.jgrid.edit,b||{});d[a(this)[0].p.id]=b;return this.each(function(){function f(){a(s+ -" > tbody > tr > td > .FormElement").each(function(){var b=a(".customelement",this);if(b.length){var c=a(b[0]).attr("name");a.each(l.p.colModel,function(){if(this.name===c&&this.editoptions&&a.isFunction(this.editoptions.custom_value)){try{if(u[c]=this.editoptions.custom_value.call(l,a("#"+a.jgrid.jqID(c),s),"get"),void 0===u[c])throw"e1";}catch(b){"e1"===b?a.jgrid.info_dialog(a.jgrid.errors.errcap,"function 'custom_value' "+a.jgrid.edit.msg.novalue,a.jgrid.edit.bClose):a.jgrid.info_dialog(a.jgrid.errors.errcap, -b.message,a.jgrid.edit.bClose)}return!0}})}else{switch(a(this).get(0).type){case "checkbox":a(this).is(":checked")?u[this.name]=a(this).val():(b=a(this).attr("offval"),u[this.name]=b);break;case "select-one":u[this.name]=a("option:selected",this).val();F[this.name]=a("option:selected",this).text();break;case "select-multiple":u[this.name]=a(this).val();u[this.name]=u[this.name]?u[this.name].join(","):"";var d=[];a("option:selected",this).each(function(b,c){d[b]=a(c).text()});F[this.name]=d.join(","); -break;case "password":case "text":case "textarea":case "button":u[this.name]=a(this).val()}l.p.autoencode&&(u[this.name]=a.jgrid.htmlEncode(u[this.name]))}});return!0}function c(b,c,e,f){var g,h,i,j=0,k,m,n,p=[],o=!1,r="",t;for(t=1;t<=f;t++)r+="  ";"_empty"!=b&&(o=a(c).jqGrid("getInd",b));a(c.p.colModel).each(function(t){g=this.name;m=(h=this.editrules&&!0===this.editrules.edithidden?!1:!0===this.hidden?!0:!1)?"style='display:none'":""; -if("cb"!==g&&"subgrid"!==g&&!0===this.editable&&"rn"!==g){if(!1===o)k="";else if(g==c.p.ExpandColumn&&!0===c.p.treeGrid)k=a("td[role='gridcell']:eq("+t+")",c.rows[o]).text();else{try{k=a.unformat.call(c,a("td[role='gridcell']:eq("+t+")",c.rows[o]),{rowId:b,colModel:this},t)}catch(s){k=this.edittype&&"textarea"==this.edittype?a("td[role='gridcell']:eq("+t+")",c.rows[o]).text():a("td[role='gridcell']:eq("+t+")",c.rows[o]).html()}if(!k||" "==k||" "==k||1==k.length&&160==k.charCodeAt(0))k=""}var q= -a.extend({},this.editoptions||{},{id:g,name:g}),y=a.extend({},{elmprefix:"",elmsuffix:"",rowabove:!1,rowcontent:""},this.formoptions||{}),v=parseInt(y.rowpos,10)||j+1,u=parseInt(2*(parseInt(y.colpos,10)||1),10);"_empty"==b&&q.defaultValue&&(k=a.isFunction(q.defaultValue)?q.defaultValue.call(l):q.defaultValue);this.edittype||(this.edittype="text");l.p.autoencode&&(k=a.jgrid.htmlDecode(k));n=a.jgrid.createEl.call(l,this.edittype,q,k,!1,a.extend({},a.jgrid.ajaxOptions,c.p.ajaxSelectOptions||{}));""=== -k&&"checkbox"==this.edittype&&(k=a(n).attr("offval"));""===k&&"select"==this.edittype&&(k=a("option:eq(0)",n).text());if(d[l.p.id].checkOnSubmit||d[l.p.id].checkOnUpdate)d[l.p.id]._savedData[g]=k;a(n).addClass("FormElement");("text"==this.edittype||"textarea"==this.edittype)&&a(n).addClass("ui-widget-content ui-corner-all");i=a(e).find("tr[rowpos="+v+"]");if(y.rowabove){var B=a(""+y.rowcontent+"");a(e).append(B);B[0].rp=v}0===i.length&&(i=a("").addClass("FormData").attr("id","tr_"+g),a(i).append(r),a(e).append(i),i[0].rp=v);a("td:eq("+(u-2)+")",i[0]).html(void 0===y.label?c.p.colNames[t]:y.label);a("td:eq("+(u-1)+")",i[0]).append(y.elmprefix).append(n).append(y.elmsuffix);a.jgrid.bindEv(n,q,l);p[j]=t;j++}});if(0