diff --git a/web/.htaccess b/web/.htaccess new file mode 100644 index 0000000..a2c4e13 --- /dev/null +++ b/web/.htaccess @@ -0,0 +1,5 @@ +RewriteEngine on +RewriteBase /webbind +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*)$ index.php/$1 [L] \ No newline at end of file diff --git a/web/application/.htaccess b/web/application/.htaccess new file mode 100644 index 0000000..14249c5 --- /dev/null +++ b/web/application/.htaccess @@ -0,0 +1 @@ +Deny from all \ No newline at end of file diff --git a/web/application/config.php b/web/application/config.php new file mode 100644 index 0000000..a6171c6 --- /dev/null +++ b/web/application/config.php @@ -0,0 +1,7 @@ +config["DATABASETYPE"] == "SQLITE") { + $this->pdo = new PDO("sqlite:kritbot.sqlite3"); + DB::$c = $this->pdo; + } else { + $this->pdo = new PDO( + "mysql:dbname={$this->config['MYSQL_DBNAME']};host={$this->config['MYSQL_HOST']}", + $this->config['MYSQL_USER'], + $this->config['MYSQL_PASS'], + array( + PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8", + PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ, + PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION + ) + ); + DB::$c = $this->pdo; + } + } +} \ No newline at end of file diff --git a/web/application/controllers/main.php b/web/application/controllers/main.php new file mode 100644 index 0000000..dd60d13 --- /dev/null +++ b/web/application/controllers/main.php @@ -0,0 +1,11 @@ +loadRender("login.html"); + + } +} \ No newline at end of file diff --git a/web/application/tmp/.gitignore b/web/application/tmp/.gitignore new file mode 100644 index 0000000..66ca35b --- /dev/null +++ b/web/application/tmp/.gitignore @@ -0,0 +1 @@ +*.php \ No newline at end of file diff --git a/web/application/tmp/.htaccess b/web/application/tmp/.htaccess new file mode 100644 index 0000000..14249c5 --- /dev/null +++ b/web/application/tmp/.htaccess @@ -0,0 +1 @@ +Deny from all \ No newline at end of file diff --git a/web/application/views/.htaccess b/web/application/views/.htaccess new file mode 100644 index 0000000..14249c5 --- /dev/null +++ b/web/application/views/.htaccess @@ -0,0 +1 @@ +Deny from all \ No newline at end of file diff --git a/web/application/views/base.html b/web/application/views/base.html new file mode 100644 index 0000000..17e53d4 --- /dev/null +++ b/web/application/views/base.html @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + {{title}} + + +{% block content %}{% endblock %} + + \ No newline at end of file diff --git a/web/application/views/login.html b/web/application/views/login.html new file mode 100644 index 0000000..76c2e6f --- /dev/null +++ b/web/application/views/login.html @@ -0,0 +1,60 @@ +{% extends "base.html" %} + +{% block content %} + + + + +{% endblock %} \ No newline at end of file diff --git a/web/application/views/menu.html b/web/application/views/menu.html new file mode 100644 index 0000000..2474551 --- /dev/null +++ b/web/application/views/menu.html @@ -0,0 +1,53 @@ + \ No newline at end of file diff --git a/web/application/views/records.html b/web/application/views/records.html new file mode 100644 index 0000000..93f9641 --- /dev/null +++ b/web/application/views/records.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block content %} + + + + +{% endblock %} diff --git a/web/index.php b/web/index.php new file mode 100644 index 0000000..a03e8e9 --- /dev/null +++ b/web/index.php @@ -0,0 +1,11 @@ +run(); \ No newline at end of file diff --git a/web/media/css/accept.png b/web/media/css/accept.png new file mode 100644 index 0000000..89c8129 Binary files /dev/null and b/web/media/css/accept.png differ diff --git a/web/media/css/add.png b/web/media/css/add.png new file mode 100644 index 0000000..29bb191 Binary files /dev/null and b/web/media/css/add.png differ diff --git a/web/media/css/animated-overlay.gif b/web/media/css/animated-overlay.gif new file mode 100644 index 0000000..d441f75 Binary files /dev/null and b/web/media/css/animated-overlay.gif differ diff --git a/web/media/css/close.png b/web/media/css/close.png new file mode 100644 index 0000000..2fc2ebc Binary files /dev/null and b/web/media/css/close.png differ diff --git a/web/media/css/coffee.png b/web/media/css/coffee.png new file mode 100644 index 0000000..2e5a729 Binary files /dev/null and b/web/media/css/coffee.png differ diff --git a/web/media/css/edit.png b/web/media/css/edit.png new file mode 100644 index 0000000..01381b4 Binary files /dev/null and b/web/media/css/edit.png differ diff --git a/web/media/css/flex.css b/web/media/css/flex.css new file mode 100644 index 0000000..182a490 --- /dev/null +++ b/web/media/css/flex.css @@ -0,0 +1,164 @@ +@charset "utf-8"; +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} + +/* CSS Document */ +/*body { + background: #333; + width: 960px; + margin: 0px; + padding: 20px; + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; + color: #eee; +}*/ + +ul li { + background: url(accept.png) no-repeat left; + list-style: none; + padding: 3px 3px 3px 20px; + margin-left:10px; +} + +ul, ol { + margin-bottom:10px; +} +ol li { + list-style: none; + padding: 10px 10px 5px; +} +ol li div.question { + font-weight:bold; + color:#ccc; + margin-bottom:2px; +} + +a { + text-decoration: none; + color: #0066FF; +} + +h1 { + font-size: 26px; + font-weight: normal; + margin: 0px; + color: #0099FF; +} + +h2 { + font-size:15px; + font-weight:bold; + margin:15px 0 5px; +} + +.code { + background: #555; + padding: 10px; + margin-bottom: 10px; + display: none; + color: #eee; +} + +.title { + background: #0099FF; + color: #fff; + padding: 10px; +} + +.bborder { + background: #eee; + border: 0px solid #ccc; + padding: 3px; +} + +.update { + border: 1px solid #777; + overflow: hidden; + margin-top:20px; +} + +.update h3 { + margin:5px 0 5px 10px; + font-weight:bold; + font-size:1.1em; +} +.update.fh { + height: auto; +} + +.update p { + margin: 10px; +} + +.update h2 { + cursor: pointer; + display: block; + padding: 5px; + color: #fff; + position: relative; + text-transform: uppercase; + font-size: 12px; + letter-spacing: 2px; + border-left: 0px solid #06f; + border-bottom: 2px solid #0066FF; + font-weight:bold; + margin:0 0 3px; +} + +.flexigrid div.fbutton .add { + background: url(add.png) no-repeat center left; +} + +.flexigrid div.fbutton .delete { + background: url(close.png) no-repeat center left; +} + +.flexigrid div.fbutton .edit { + background: url(edit.png) no-repeat center left; +} \ No newline at end of file diff --git a/web/media/css/flexigrid.css b/web/media/css/flexigrid.css new file mode 100644 index 0000000..2b9ad0b --- /dev/null +++ b/web/media/css/flexigrid.css @@ -0,0 +1,629 @@ +@charset "UTF-8"; +/* CSS Document */ +.flexigrid { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; + line-height: normal; + position: relative; + border: 0px solid #eee; + overflow: hidden; + color: #000; +} + +.flexigrid.hideBody { + height: 26px !important; + border-bottom: 1px solid #ccc; +} + +.ie6fullwidthbug { + border-right: 0px solid #ccc; + padding-right: 2px; +} + +.flexigrid div.nDiv { + background: #eee url(images/line.gif) repeat-y -1px top; + border: 1px solid #ccc; + border-top: 0px; + overflow: auto; + left: 0px; + position: absolute; + z-index: 999; + float: left; +} + +.flexigrid div.nDiv table { + margin: 2px; +} + +.flexigrid div.hDivBox { + float: left; + padding-right: 40px; +} + +.flexigrid div.bDiv table { + margin-bottom: 10px; +} + +.flexigrid div.bDiv table.autoht { + border-bottom: 0px; + margin-bottom: 0px; +} + +.flexigrid div.nDiv td { + padding: 2px 3px; + border: 1px solid #eee; + cursor: default; +} + +.flexigrid div.nDiv tr:hover td,.flexigrid div.nDiv tr.ndcolover td { + background: #d5effc url(images/hl.png) repeat-x top; + border: 1px solid #a8d8eb; +} + +.flexigrid div.nDiv td.ndcol1 { + border-right: 1px solid #ccc; +} + +.flexigrid div.nDiv td.ndcol2 { + border-left: 1px solid #fff; + padding-right: 10px; +} + +.flexigrid div.nDiv tr:hover td.ndcol1,.flexigrid div.nDiv tr.ndcolover td.ndcol1 + { + border-right: 1px solid #d2e3ec; +} + +.flexigrid div.nDiv tr:hover td.ndcol2,.flexigrid div.nDiv tr.ndcolover td.ndcol2 + { + border-left: 1px solid #eef8ff; +} + +.flexigrid div.nBtn { + position: absolute; + height: 24px; + width: 14px; + z-index: 900; + background: #fafafa url(images/fhbg.gif) repeat-x bottom; + border: 0px solid #ccc; + border-left: 1px solid #ccc; + top: 0px; + left: 0px; + margin-top: 1px; + cursor: pointer; + display: none; +} + +.flexigrid div.nBtn div { + height: 24px; + width: 12px; + border-left: 1px solid #fff; + float: left; + background: url(images/ddn.png) no-repeat center; +} + +.flexigrid div.nBtn.srtd { + background: url(images/wbg.gif) repeat-x 0px -1px; +} + +.flexigrid div.mDiv { + background: url(images/wbg.gif) repeat-x top; + border: 1px solid #ccc; + border-bottom: 0px; + border-top: 0px; + font-weight: bold; + display: block; + overflow: hidden; + white-space: nowrap; + position: relative; +} + +.flexigrid div.mDiv div { + padding: 6px; + white-space: nowrap; +} + +.flexigrid div.mDiv div.ptogtitle { + position: absolute; + top: 4px; + right: 3px; + padding: 0px; + height: 16px; + width: 16px; + overflow: hidden; + border: 1px solid #ccc; + cursor: pointer; +} + +.flexigrid div.mDiv div.ptogtitle:hover { + background-position: left -2px; + border-color: #bbb; +} + +.flexigrid div.mDiv div.ptogtitle span { + display: block; + border-left: 1px solid #eee; + border-top: 1px solid #fff; + border-bottom: 1px solid #ddd; + width: 14px; + height: 14px; + background: url(images/uup.png) no-repeat center; +} + +.flexigrid div.mDiv div.ptogtitle.vsble span { + background: url(images/ddn.png) no-repeat center; +} + +.flexigrid div.tDiv /*toolbar*/ { + background: #fafafa url(images/bg.gif) repeat-x top; + position: relative; + border: 1px solid #ccc; + border-bottom: 0px; + overflow: hidden; +} + +.flexigrid div.tDiv2 { + float: left; + clear: both; + padding: 1px; +} + +.flexigrid div.sDiv /*toolbar*/ { + background: #fafafa url(images/bg.gif) repeat-x top; + position: relative; + border: 1px solid #ccc; + border-top: 0px; + overflow: hidden; + display: none; +} + +.flexigrid div.sDiv2 { + float: left; + clear: both; + padding: 5px; + padding-left: 5px; + width: 1024px; +} + +.flexigrid div.sDiv2 input,.flexigrid div.sDiv2 select { + vertical-align: middle; +} + +.flexigrid div.btnseparator { + float: left; + height: 22px; + border-left: 1px solid #ccc; + border-right: 1px solid #fff; + margin: 1px; +} + +.flexigrid div.fbutton { + float: left; + display: block; + cursor: pointer; + padding: 1px; +} + +.flexigrid div.fbutton div { + float: left; + padding: 1px 3px; +} + +.flexigrid div.fbutton span { + float: left; + display: block; + padding: 3px; +} + +.flexigrid div.fbutton:hover,.flexigrid div.fbutton.fbOver { + padding: 0px; + border: 1px solid #ccc; +} + +.flexigrid div.fbutton:hover div,.flexigrid div.fbutton.fbOver div { + padding: 0px 2px; + border-left: 1px solid #fff; + border-top: 1px solid #fff; + border-right: 1px solid #eee; + border-bottom: 1px solid #eee; +} + +/* end toolbar*/ +.flexigrid div.hDiv { + background: #fafafa url(images/fhbg.gif) repeat-x bottom; + position: relative; + border: 1px solid #ccc; + border-bottom: 0px; + overflow: hidden; +} + +.flexigrid div.hDiv table { + border-right: 1px solid #fff; +} + +.flexigrid div.cDrag { + float: left; + position: absolute; + z-index: 2; + overflow: visible; +} + +.flexigrid div.cDrag div { + float: left; + background: none; + display: block; + position: absolute; + height: 24px; + width: 5px; + cursor: col-resize; +} + +.flexigrid div.cDrag div:hover,.flexigrid div.cDrag div.dragging { + background: url(images/line.gif) repeat-y 2px center; +} + +.flexigrid div.iDiv { + border: 1px solid #316ac5; + position: absolute; + overflow: visible; + background: none; +} + +.flexigrid div.iDiv input,.flexigrid div.iDiv select,.flexigrid div.iDiv textarea + { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; +} + +.flexigrid div.iDiv input.tb { + border: 0px; + padding: 0px; + width: 100%; + height: 100%; + padding: 0px; + background: none; +} + +.flexigrid div.bDiv { + border: 1px solid #ccc; + border-top: 0px; + background: #fff; + overflow: auto; + position: relative; +} + +.flexigrid div.bDiv table { + border-bottom: 1px solid #ccc; +} + +.flexigrid div.hGrip { + position: absolute; + top: 0px; + right: 0px; + height: 5px; + width: 5px; + background: url(images/line.gif) repeat-x center; + margin-right: 1px; + cursor: col-resize; +} + +.flexigrid div.hGrip:hover,.flexigrid div.hGrip.hgOver { + border-right: 1px solid #999; + margin-right: 0px; +} + +.flexigrid div.vGrip { + height: 5px; + overflow: hidden; + position: relative; + background: #fafafa url(images/wbg.gif) repeat-x 0px -1px; + border: 1px solid #ccc; + border-top: 0px; + text-align: center; + cursor: row-resize; +} + +.flexigrid div.vGrip span { + display: block; + margin: 1px auto; + width: 20px; + height: 1px; + overflow: hidden; + border-top: 1px solid #aaa; + border-bottom: 1px solid #aaa; + background: none; +} + +.flexigrid div.hDiv th,.flexigrid div.bDiv td + /* common cell properties*/ { + text-align: left; + border-right: 1px solid #ddd; + border-left: 1px solid #fff; + overflow: hidden; + vertical-align: top !important; + padding-left: 0; + padding-right: 0; +} + +.flexigrid div.hDiv th div,.flexigrid div.bDiv td div,div.colCopy div + /* common inner cell properties*/ { + padding: 5px; + border-left: 0px solid #fff; +} + +.flexigrid div.hDiv th,div.colCopy { + font-weight: normal; + height: 24px; + cursor: default; + white-space: nowrap; + overflow: hidden; +} + +div.colCopy { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; + background: #fafafa url(images/fhbg.gif) repeat-x bottom; + border: 1px solid #ccc; + border-bottom: 0px; + overflow: hidden; +} + +.flexigrid div.hDiv th.sorted { + background: url(images/wbg.gif) repeat-x 0px -1px; + border-bottom: 0px solid #ccc; +} + +.flexigrid div.hDiv th.thOver { + +} + +.flexigrid div.hDiv th.thOver div,.flexigrid div.hDiv th.sorted.thOver div + { + border-bottom: 1px solid orange; + padding-bottom: 4px; +} + +.flexigrid div.hDiv th.sorted div { + border-bottom: 0px solid #ccc; + padding-bottom: 5px; +} + +.flexigrid div.hDiv th.thMove { + background: #fff; + color: #fff; +} + +.flexigrid div.hDiv th.sorted.thMove div { + border-bottom: 1px solid #fff; + padding-bottom: 4px +} + +.flexigrid div.hDiv th.thMove div { + background: #fff !important; +} + +.flexigrid div.hDiv th div.sdesc { + background: url(images/dn.png) no-repeat center top; +} + +.flexigrid div.hDiv th div.sasc { + background: url(images/up.png) no-repeat center top; +} + +.flexigrid div.bDiv td { + border-bottom: 1px solid #fff; + vertical-align: top; + white-space: nowrap; +} + +.flexigrid div.hDiv th div { + +} + +.flexigrid span.cdropleft { + display: block; + background: url(images/prev.gif) no-repeat -4px center; + width: 24px; + height: 24px; + position: relative; + top: -24px; + margin-bottom: -24px; + z-index: 3; +} + +.flexigrid div.hDiv span.cdropright { + display: block; + background: url(images/next.gif) no-repeat 12px center; + width: 24px; + height: 24px; + float: right; + position: relative; + top: -24px; + margin-bottom: -24px; +} + +.flexigrid div.bDiv td div { + border-top: 0px solid #fff; + padding-bottom: 4px; +} + +.flexigrid tr td.sorted { + background: #f3f3f3; + border-right: 1px solid #ddd; + border-bottom: 1px solid #f3f3f3; +} + +.flexigrid tr td.sorted div { + +} + +.flexigrid tr.erow td { + background: #f7f7f7; + border-bottom: 1px solid #f7f7f7; +} + +.flexigrid tr.erow td.sorted { + background: #e3e3e3; + border-bottom: 1px solid #e3e3e3; +} + +.flexigrid tr.erow td.sorted div { + +} + +.flexigrid div.bDiv tr:hover td,.flexigrid div.bDiv tr:hover td.sorted,.flexigrid div.bDiv tr.trOver td.sorted,.flexigrid div.bDiv tr.trOver td + { + background: #d9ebf5; + border-left: 1px solid #eef8ff; + border-bottom: 1px dotted #a8d8eb; +} + +.flexigrid div.bDiv tr.trSelected:hover td,.flexigrid div.bDiv tr.trSelected:hover td.sorted,.flexigrid div.bDiv tr.trOver.trSelected td.sorted,.flexigrid div.bDiv tr.trOver.trSelected td,.flexigrid tr.trSelected td.sorted,.flexigrid tr.trSelected td + { + background: #d5effc url(images/hl.png) repeat-x top; + border-right: 1px solid #d2e3ec; + border-left: 1px solid #eef8ff; + border-bottom: 1px solid #a8d8eb; +} + +/* novstripe adjustments */ +.flexigrid.novstripe .bDiv table { + border-bottom: 1px solid #ccc; + border-right: 1px solid #ccc; +} + +.flexigrid.novstripe div.bDiv td { + border-right-color: #fff; +} + +.flexigrid.novstripe div.bDiv tr.erow td.sorted { + border-right-color: #e3e3e3; +} + +.flexigrid.novstripe div.bDiv tr td.sorted { + border-right-color: #f3f3f3; +} + +.flexigrid.novstripe div.bDiv tr.erow td { + border-right-color: #f7f7f7; + border-left-color: #f7f7f7; +} + +.flexigrid.novstripe div.bDiv tr.trSelected:hover td,.flexigrid.novstripe div.bDiv tr.trSelected:hover td.sorted,.flexigrid.novstripe div.bDiv tr.trOver.trSelected td.sorted,.flexigrid.novstripe div.bDiv tr.trOver.trSelected td,.flexigrid.novstripe tr.trSelected td.sorted,.flexigrid.novstripe tr.trSelected td + { + border-right: 1px solid #0066FF; + border-left: 1px solid #0066FF; +} + +.flexigrid.novstripe div.bDiv tr.trOver td,.flexigrid.novstripe div.bDiv tr:hover td + { + border-left-color: #d9ebf5; + border-right-color: #d9ebf5; +} + +/* end novstripe */ +.flexigrid div.pDiv { + background: url(images/wbg.gif) repeat-x 0 -1px; + border: 1px solid #ccc; + border-top: 0px; + overflow: hidden; + white-space: nowrap; + position: relative; +} + +.flexigrid div.pDiv div.pDiv2 { + margin: 3px; + margin-left: -2px; + float: left; + width: 1024px; +} + +div.pGroup { + float: left; + background: none; + height: 24px; + margin: 0px 5px; +} + +.flexigrid div.pDiv .pPageStat,.flexigrid div.pDiv .pcontrol { + position: relative; + top: 5px; + overflow: visible; +} + +.flexigrid div.pDiv input { + vertical-align: text-top; + position: relative; + top: -5px; + margin: 3px; +} + +.flexigrid div.pDiv select { + margin: 3px; +} + +.flexigrid div.pDiv div.pButton { + float: left; + width: 22px; + height: 22px; + border: 0px; + cursor: pointer; + overflow: hidden; +} + +.flexigrid div.pDiv div.pButton:hover,.flexigrid div.pDiv div.pButton.pBtnOver + { + width: 20px; + height: 20px; + border: 1px solid #ccc; + cursor: pointer; +} + +.flexigrid div.pDiv div.pButton span { + width: 20px; + height: 20px; + display: block; + float: left; +} + +.flexigrid div.pDiv div.pButton:hover span,.flexigrid div.pDiv div.pButton.pBtnOver span + { + width: 19px; + height: 19px; + border-top: 1px solid #fff; + border-left: 1px solid #fff; +} + +.flexigrid .pSearch { + background: url(images/magnifier.png) no-repeat center; +} + +.flexigrid .pFirst { + background: url(images/first.gif) no-repeat center; +} + +.flexigrid .pPrev { + background: url(images/prev.gif) no-repeat center; +} + +.flexigrid .pNext { + background: url(images/next.gif) no-repeat center; +} + +.flexigrid .pLast { + background: url(images/last.gif) no-repeat center; +} + +.flexigrid .pReload { + background: url(images/load.png) no-repeat center; +} + +.flexigrid .pReload.loading { + background: url(images/load.gif) no-repeat center; +} + +/* ie adjustments */ +.flexigrid.ie div.hDiv th div,.flexigrid.ie div.bDiv td div,div.colCopy.ie div + /* common inner cell properties*/ { + overflow: hidden; +} \ No newline at end of file diff --git a/web/media/css/flexigrid.less b/web/media/css/flexigrid.less new file mode 100644 index 0000000..1fc29fb --- /dev/null +++ b/web/media/css/flexigrid.less @@ -0,0 +1,671 @@ +@charset "UTF-8"; + +@basecolor: #fff; +@forecolor: #000; + +@borderlight1: #fff; +@borderlight2: #eee; +@borderlight3: #ddd; +@borderlight4: #ccc; +@borderlight5: #bbb; +@borderlight6: #aaa; +@borderlight7: #f7f7f7; +@borderlight8: #f3f3f3; +@borderlight9: #eef8ff; +@borderlight10: #e3e3e3; +@borderlight11: #d9ebf5; +@borderlight12: #d2e3ec; +@borderlight13: #a8d8eb; +@borderlight14: #999; +@borderlight15: #316ac5; +@borderlight16: #0066FF; + +@back1: #fafafa; +@back2: #f7f7f7; +@back3: #f3f3f3; +@back4: #eee; +@back5: #e3e3e3; +@back6: #d5effc; + +.background-gradient (@start: #000) { + background: @start; + background: -moz-linear-gradient(top, @start 0%, darken(@start,10%) 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,@start), color-stop(100%,darken(@start,10%))); + background: -webkit-linear-gradient(top, @start 0%,darken(@start,10%) 100%); + background: -o-linear-gradient(top, @start 0%,darken(@start,10%) 100%); + background: -ms-linear-gradient(top, @start 0%,darken(@start,10%) 100%); + background: linear-gradient(to bottom, @start 0%,darken(@start,10%) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=@start, endColorstr=darken(@start,10%),GradientType=0 ); +} + +/* CSS Document */ +.flexigrid { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; + line-height: normal; + position: relative; + border: 0px solid @borderlight2; + overflow: hidden; + color: @forecolor; +} + +.flexigrid.hideBody { + height: 26px !important; + border-bottom: 1px solid @borderlight4; +} + +.ie6fullwidthbug { + border-right: 0px solid @borderlight4; + padding-right: 2px; +} + +.flexigrid div.nDiv { + background: @back4 url(images/line.gif) repeat-y -1px top; + border: 1px solid @borderlight4; + border-top: 0px; + overflow: auto; + left: 0px; + position: absolute; + z-index: 999; + float: left; +} + +.flexigrid div.nDiv table { + margin: 2px; +} + +.flexigrid div.hDivBox { + float: left; + padding-right: 40px; +} + +.flexigrid div.bDiv table { + margin-bottom: 10px; +} + +.flexigrid div.bDiv table.autoht { + border-bottom: 0px; + margin-bottom: 0px; +} + +.flexigrid div.nDiv td { + padding: 2px 3px; + border: 1px solid @borderlight2; + cursor: default; +} + +.flexigrid div.nDiv tr:hover td,.flexigrid div.nDiv tr.ndcolover td { + background: @back6 url(images/hl.png) repeat-x top; + border: 1px solid @borderlight13; +} + +.flexigrid div.nDiv td.ndcol1 { + border-right: 1px solid @borderlight4; +} + +.flexigrid div.nDiv td.ndcol2 { + border-left: 1px solid @borderlight1; + padding-right: 10px; +} + +.flexigrid div.nDiv tr:hover td.ndcol1,.flexigrid div.nDiv tr.ndcolover td.ndcol1 + { + border-right: 1px solid @borderlight12; +} + +.flexigrid div.nDiv tr:hover td.ndcol2,.flexigrid div.nDiv tr.ndcolover td.ndcol2 + { + border-left: 1px solid @borderlight9; +} + +.flexigrid div.nBtn { + position: absolute; + height: 24px; + width: 14px; + z-index: 900; + background: @back1 url(images/fhbg.gif) repeat-x bottom; + /*.background-gradient(@back1);*/ + border: 0px solid @borderlight4; + border-left: 1px solid @borderlight4; + top: 0px; + left: 0px; + margin-top: 1px; + cursor: pointer; + display: none; +} + +.flexigrid div.nBtn div { + height: 24px; + width: 12px; + border-left: 1px solid @borderlight1; + float: left; + background: url(images/ddn.png) no-repeat center; +} + +.flexigrid div.nBtn.srtd { + background: url(images/wbg.gif) repeat-x 0px -1px; +} + +.flexigrid div.mDiv { + background: url(images/wbg.gif) repeat-x top; + border: 1px solid @borderlight4; + border-bottom: 0px; + border-top: 0px; + font-weight: bold; + display: block; + overflow: hidden; + white-space: nowrap; + position: relative; +} + +.flexigrid div.mDiv div { + padding: 6px; + white-space: nowrap; +} + +.flexigrid div.mDiv div.ptogtitle { + position: absolute; + top: 4px; + right: 3px; + padding: 0px; + height: 16px; + width: 16px; + overflow: hidden; + border: 1px solid @borderlight4; + cursor: pointer; +} + +.flexigrid div.mDiv div.ptogtitle:hover { + background-position: left -2px; + border-color: @borderlight5; +} + +.flexigrid div.mDiv div.ptogtitle span { + display: block; + border-left: 1px solid @borderlight2; + border-top: 1px solid @borderlight1; + border-bottom: 1px solid @borderlight3; + width: 14px; + height: 14px; + background: url(images/uup.png) no-repeat center; +} + +.flexigrid div.mDiv div.ptogtitle.vsble span { + background: url(images/ddn.png) no-repeat center; +} + +.flexigrid div.tDiv /*toolbar*/ { + background: @back1 url(images/bg.gif) repeat-x top; + position: relative; + border: 1px solid @borderlight4; + border-bottom: 0px; + overflow: hidden; +} + +.flexigrid div.tDiv2 { + float: left; + clear: both; + padding: 1px; +} + +.flexigrid div.sDiv /*toolbar*/ { + background: @back1 url(images/bg.gif) repeat-x top; + position: relative; + border: 1px solid @borderlight4; + border-top: 0px; + overflow: hidden; + display: none; +} + +.flexigrid div.sDiv2 { + float: left; + clear: both; + padding: 5px; + padding-left: 5px; + width: 1024px; +} + +.flexigrid div.sDiv2 input,.flexigrid div.sDiv2 select { + vertical-align: middle; +} + +.flexigrid div.btnseparator { + float: left; + height: 22px; + border-left: 1px solid @borderlight4; + border-right: 1px solid @borderlight1; + margin: 1px; +} + +.flexigrid div.fbutton { + float: left; + display: block; + cursor: pointer; + padding: 1px; +} + +.flexigrid div.fbutton div { + float: left; + padding: 1px 3px; +} + +.flexigrid div.fbutton span { + float: left; + display: block; + padding: 3px; +} + +.flexigrid div.fbutton:hover,.flexigrid div.fbutton.fbOver { + padding: 0px; + border: 1px solid @borderlight4; +} + +.flexigrid div.fbutton:hover div,.flexigrid div.fbutton.fbOver div { + padding: 0px 2px; + border-left: 1px solid @borderlight1; + border-top: 1px solid @borderlight1; + border-right: 1px solid @borderlight2; + border-bottom: 1px solid @borderlight2; +} + +/* end toolbar*/ +.flexigrid div.hDiv { + background: @back1 url(images/fhbg.gif) repeat-x bottom; + /*.background-gradient(@back1);*/ + position: relative; + border: 1px solid @borderlight4; + border-bottom: 0px; + overflow: hidden; +} + +.flexigrid div.hDiv table { + border-right: 1px solid @borderlight1; +} + +.flexigrid div.cDrag { + float: left; + position: absolute; + z-index: 2; + overflow: visible; +} + +.flexigrid div.cDrag div { + float: left; + background: none; + display: block; + position: absolute; + height: 24px; + width: 5px; + cursor: col-resize; +} + +.flexigrid div.cDrag div:hover,.flexigrid div.cDrag div.dragging { + background: url(images/line.gif) repeat-y 2px center; +} + +.flexigrid div.iDiv { + border: 1px solid @borderlight15; + position: absolute; + overflow: visible; + background: none; +} + +.flexigrid div.iDiv input,.flexigrid div.iDiv select,.flexigrid div.iDiv textarea + { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; +} + +.flexigrid div.iDiv input.tb { + border: 0px; + padding: 0px; + width: 100%; + height: 100%; + padding: 0px; + background: none; +} + +.flexigrid div.bDiv { + border: 1px solid @borderlight4; + border-top: 0px; + background: @basecolor; + overflow: auto; + position: relative; +} + +.flexigrid div.bDiv table { + border-bottom: 1px solid @borderlight4; +} + +.flexigrid div.hGrip { + position: absolute; + top: 0px; + right: 0px; + height: 5px; + width: 5px; + background: url(images/line.gif) repeat-x center; + margin-right: 1px; + cursor: col-resize; +} + +.flexigrid div.hGrip:hover,.flexigrid div.hGrip.hgOver { + border-right: 1px solid @borderlight14; + margin-right: 0px; +} + +.flexigrid div.vGrip { + height: 5px; + overflow: hidden; + position: relative; + background: @back1 url(images/wbg.gif) repeat-x 0px -1px; + border: 1px solid @borderlight4; + border-top: 0px; + text-align: center; + cursor: row-resize; +} + +.flexigrid div.vGrip span { + display: block; + margin: 1px auto; + width: 20px; + height: 1px; + overflow: hidden; + border-top: 1px solid @borderlight6; + border-bottom: 1px solid @borderlight6; + background: none; +} + +.flexigrid div.hDiv th,.flexigrid div.bDiv td + /* common cell properties*/ { + text-align: left; + border-right: 1px solid @borderlight3; + border-left: 1px solid @borderlight1; + overflow: hidden; + vertical-align: top !important; + padding-left: 0; + padding-right: 0; +} + +.flexigrid div.hDiv th div,.flexigrid div.bDiv td div,div.colCopy div + /* common inner cell properties*/ { + padding: 5px; + border-left: 0px solid @borderlight1; +} + +.flexigrid div.hDiv th,div.colCopy { + font-weight: normal; + height: 24px; + cursor: default; + white-space: nowrap; + overflow: hidden; +} + +div.colCopy { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; + background: @back1 url(images/fhbg.gif) repeat-x bottom; + /*.background-gradient(@back1);*/ + border: 1px solid @borderlight4; + border-bottom: 0px; + overflow: hidden; +} + +.flexigrid div.hDiv th.sorted { + background: url(images/wbg.gif) repeat-x 0px -1px; + border-bottom: 0px solid @borderlight4; +} + +.flexigrid div.hDiv th.thOver { + +} + +.flexigrid div.hDiv th.thOver div,.flexigrid div.hDiv th.sorted.thOver div + { + border-bottom: 1px solid orange; + padding-bottom: 4px; +} + +.flexigrid div.hDiv th.sorted div { + border-bottom: 0px solid @borderlight4; + padding-bottom: 5px; +} + +.flexigrid div.hDiv th.thMove { + background: @basecolor; + color: @basecolor; +} + +.flexigrid div.hDiv th.sorted.thMove div { + border-bottom: 1px solid @borderlight1; + padding-bottom: 4px +} + +.flexigrid div.hDiv th.thMove div { + background: @basecolor !important; +} + +.flexigrid div.hDiv th div.sdesc { + background: url(images/dn.png) no-repeat center top; +} + +.flexigrid div.hDiv th div.sasc { + background: url(images/up.png) no-repeat center top; +} + +.flexigrid div.bDiv td { + border-bottom: 1px solid @borderlight1; + vertical-align: top; + white-space: nowrap; +} + +.flexigrid div.hDiv th div { + +} + +.flexigrid span.cdropleft { + display: block; + background: url(images/prev.gif) no-repeat -4px center; + width: 24px; + height: 24px; + position: relative; + top: -24px; + margin-bottom: -24px; + z-index: 3; +} + +.flexigrid div.hDiv span.cdropright { + display: block; + background: url(images/next.gif) no-repeat 12px center; + width: 24px; + height: 24px; + float: right; + position: relative; + top: -24px; + margin-bottom: -24px; +} + +.flexigrid div.bDiv td div { + border-top: 0px solid @borderlight1; + padding-bottom: 4px; +} + +.flexigrid tr td.sorted { + background: @back3; + border-right: 1px solid @borderlight3; + border-bottom: 1px solid @borderlight8; +} + +.flexigrid tr td.sorted div { + +} + +.flexigrid tr.erow td { + background: @back2; + border-bottom: 1px solid @borderlight7; +} + +.flexigrid tr.erow td.sorted { + background: @back5; + border-bottom: 1px solid @borderlight10; +} + +.flexigrid tr.erow td.sorted div { + +} + +.flexigrid div.bDiv tr:hover td,.flexigrid div.bDiv tr:hover td.sorted,.flexigrid div.bDiv tr.trOver td.sorted,.flexigrid div.bDiv tr.trOver td + { + background: @borderlight11; + border-left: 1px solid @borderlight9; + border-bottom: 1px dotted @borderlight13; +} + +.flexigrid div.bDiv tr.trSelected:hover td,.flexigrid div.bDiv tr.trSelected:hover td.sorted,.flexigrid div.bDiv tr.trOver.trSelected td.sorted,.flexigrid div.bDiv tr.trOver.trSelected td,.flexigrid tr.trSelected td.sorted,.flexigrid tr.trSelected td + { + background: @back6 url(images/hl.png) repeat-x top; + border-right: 1px solid @borderlight12; + border-left: 1px solid @borderlight9; + border-bottom: 1px solid @borderlight13; +} + +/* novstripe adjustments */ +.flexigrid.novstripe .bDiv table { + border-bottom: 1px solid @borderlight4; + border-right: 1px solid @borderlight4; +} + +.flexigrid.novstripe div.bDiv td { + border-right-color: @borderlight1; +} + +.flexigrid.novstripe div.bDiv tr.erow td.sorted { + border-right-color: @borderlight10; +} + +.flexigrid.novstripe div.bDiv tr td.sorted { + border-right-color: @borderlight8; +} + +.flexigrid.novstripe div.bDiv tr.erow td { + border-right-color: @borderlight7; + border-left-color: @borderlight7; +} + +.flexigrid.novstripe div.bDiv tr.trSelected:hover td,.flexigrid.novstripe div.bDiv tr.trSelected:hover td.sorted,.flexigrid.novstripe div.bDiv tr.trOver.trSelected td.sorted,.flexigrid.novstripe div.bDiv tr.trOver.trSelected td,.flexigrid.novstripe tr.trSelected td.sorted,.flexigrid.novstripe tr.trSelected td + { + border-right: 1px solid @borderlight16; + border-left: 1px solid @borderlight16; +} + +.flexigrid.novstripe div.bDiv tr.trOver td,.flexigrid.novstripe div.bDiv tr:hover td + { + border-left-color: @borderlight11; + border-right-color: @borderlight11; +} + +/* end novstripe */ +.flexigrid div.pDiv { + background: url(images/wbg.gif) repeat-x 0 -1px; + border: 1px solid @borderlight4; + border-top: 0px; + overflow: hidden; + white-space: nowrap; + position: relative; +} + +.flexigrid div.pDiv div.pDiv2 { + margin: 3px; + margin-left: -2px; + float: left; + width: 1024px; +} + +div.pGroup { + float: left; + background: none; + height: 24px; + margin: 0px 5px; +} + +.flexigrid div.pDiv .pPageStat,.flexigrid div.pDiv .pcontrol { + position: relative; + top: 5px; + overflow: visible; +} + +.flexigrid div.pDiv input { + vertical-align: text-top; + position: relative; + top: -5px; + margin: 3px; +} + +.flexigrid div.pDiv select { + margin: 3px; +} + +.flexigrid div.pDiv div.pButton { + float: left; + width: 22px; + height: 22px; + border: 0px; + cursor: pointer; + overflow: hidden; +} + +.flexigrid div.pDiv div.pButton:hover,.flexigrid div.pDiv div.pButton.pBtnOver + { + width: 20px; + height: 20px; + border: 1px solid @borderlight4; + cursor: pointer; +} + +.flexigrid div.pDiv div.pButton span { + width: 20px; + height: 20px; + display: block; + float: left; +} + +.flexigrid div.pDiv div.pButton:hover span,.flexigrid div.pDiv div.pButton.pBtnOver span + { + width: 19px; + height: 19px; + border-top: 1px solid @borderlight1; + border-left: 1px solid @borderlight1; +} + +.flexigrid .pSearch { + background: url(images/magnifier.png) no-repeat center; +} + +.flexigrid .pFirst { + background: url(images/first.gif) no-repeat center; +} + +.flexigrid .pPrev { + background: url(images/prev.gif) no-repeat center; +} + +.flexigrid .pNext { + background: url(images/next.gif) no-repeat center; +} + +.flexigrid .pLast { + background: url(images/last.gif) no-repeat center; +} + +.flexigrid .pReload { + background: url(images/load.png) no-repeat center; +} + +.flexigrid .pReload.loading { + background: url(images/load.gif) no-repeat center; +} + +/* ie adjustments */ +.flexigrid.ie div.hDiv th div,.flexigrid.ie div.bDiv td div,div.colCopy.ie div + /* common inner cell properties*/ { + overflow: hidden; +} \ No newline at end of file diff --git a/web/media/css/flexigrid.pack.css b/web/media/css/flexigrid.pack.css new file mode 100644 index 0000000..46b1c50 --- /dev/null +++ b/web/media/css/flexigrid.pack.css @@ -0,0 +1,96 @@ +@charset UTF-8; +.flexigrid{font-family:Arial, Helvetica, sans-serif;font-size:11px;position:relative;border:0 solid #eee;overflow:hidden;color:#000} +.flexigrid.hideBody{height:26px!important;border-bottom:1px solid #ccc} +.ie6fullwidthbug{border-right:0 solid #ccc;padding-right:2px} +.flexigrid div.nDiv{background:#eee url(images/line.gif) repeat-y -1px top;border:1px solid #ccc;border-top:0;overflow:auto;left:0;position:absolute;z-index:999;float:left} +.flexigrid div.nDiv table{margin:2px} +.flexigrid div.hDivBox{float:left;padding-right:40px} +.flexigrid div.bDiv table{margin-bottom:10px;border-bottom:1px solid #ccc} +.flexigrid div.bDiv table.autoht{border-bottom:0;margin-bottom:0} +.flexigrid div.nDiv td{border:1px solid #eee;cursor:default;padding:2px 3px} +.flexigrid div.nDiv tr:hover td,.flexigrid div.nDiv tr.ndcolover td{background:#d5effc url(images/hl.png) repeat-x top;border:1px solid #a8d8eb} +.flexigrid div.nDiv td.ndcol1{border-right:1px solid #ccc} +.flexigrid div.nDiv td.ndcol2{border-left:1px solid #fff;padding-right:10px} +.flexigrid div.nDiv tr:hover td.ndcol1,.flexigrid div.nDiv tr.ndcolover td.ndcol1{border-right:1px solid #d2e3ec} +.flexigrid div.nDiv tr:hover td.ndcol2,.flexigrid div.nDiv tr.ndcolover td.ndcol2{border-left:1px solid #eef8ff} +.flexigrid div.nBtn{position:absolute;height:24px;width:14px;z-index:900;background:#fafafa url(images/fhbg.gif) repeat-x bottom;border:0 solid #ccc;border-left:1px solid #ccc;top:0;left:0;margin-top:1px;cursor:pointer;display:none} +.flexigrid div.nBtn div{height:24px;width:12px;border-left:1px solid #fff;float:left;background:url(images/ddn.png) no-repeat center} +.flexigrid div.nBtn.srtd{background:url(images/wbg.gif) repeat-x 0 -1px} +.flexigrid div.mDiv{background:url(images/wbg.gif) repeat-x top;border:1px solid #ccc;border-bottom:0;border-top:0;font-weight:700;display:block;overflow:hidden;white-space:nowrap;position:relative} +.flexigrid div.mDiv div{white-space:nowrap;padding:6px} +.flexigrid div.mDiv div.ptogtitle{position:absolute;top:4px;right:3px;height:16px;width:16px;overflow:hidden;border:1px solid #ccc;cursor:pointer;padding:0} +.flexigrid div.mDiv div.ptogtitle:hover{background-position:left -2px;border-color:#bbb} +.flexigrid div.mDiv div.ptogtitle span{display:block;border-left:1px solid #eee;border-top:1px solid #fff;border-bottom:1px solid #ddd;width:14px;height:14px;background:url(images/uup.png) no-repeat center} +.flexigrid div.mDiv div.ptogtitle.vsble span{background:url(images/ddn.png) no-repeat center} +.flexigrid div.tDiv /*toolbar*/{background:#fafafa url(images/bg.gif) repeat-x top;position:relative;border:1px solid #ccc;border-bottom:0;overflow:hidden} +.flexigrid div.tDiv2{float:left;clear:both;padding:1px} +.flexigrid div.sDiv /*toolbar*/{background:#fafafa url(images/bg.gif) repeat-x top;position:relative;border:1px solid #ccc;border-top:0;overflow:hidden;display:none} +.flexigrid div.sDiv2{float:left;clear:both;width:1024px;padding:5px} +.flexigrid div.sDiv2 input,.flexigrid div.sDiv2 select{vertical-align:middle} +.flexigrid div.btnseparator{float:left;height:22px;border-left:1px solid #ccc;border-right:1px solid #fff;margin:1px} +.flexigrid div.fbutton{float:left;display:block;cursor:pointer;padding:1px} +.flexigrid div.fbutton div{float:left;padding:1px 3px} +.flexigrid div.fbutton span{float:left;display:block;padding:3px} +.flexigrid div.fbutton:hover,.flexigrid div.fbutton.fbOver{border:1px solid #ccc;padding:0} +.flexigrid div.fbutton:hover div,.flexigrid div.fbutton.fbOver div{border-left:1px solid #fff;border-top:1px solid #fff;border-right:1px solid #eee;border-bottom:1px solid #eee;padding:0 2px} +.flexigrid div.hDiv{background:#fafafa url(images/fhbg.gif) repeat-x bottom;position:relative;border:1px solid #ccc;border-bottom:0;overflow:hidden} +.flexigrid div.hDiv table{border-right:1px solid #fff} +.flexigrid div.cDrag{float:left;position:absolute;z-index:2;overflow:visible} +.flexigrid div.cDrag div{float:left;background:none;display:block;position:absolute;height:24px;width:5px;cursor:col-resize} +.flexigrid div.cDrag div:hover,.flexigrid div.cDrag div.dragging{background:url(images/line.gif) repeat-y 2px center} +.flexigrid div.iDiv{border:1px solid #316ac5;position:absolute;overflow:visible;background:none} +.flexigrid div.iDiv input,.flexigrid div.iDiv select,.flexigrid div.iDiv textarea{font-family:Arial, Helvetica, sans-serif;font-size:11px} +.flexigrid div.iDiv input.tb{border:0;width:100%;height:100%;background:none;padding:0} +.flexigrid div.bDiv{border:1px solid #ccc;border-top:0;background:#fff;overflow:auto;position:relative} +.flexigrid div.hGrip{position:absolute;top:0;right:0;height:5px;width:5px;background:url(images/line.gif) repeat-x center;margin-right:1px;cursor:col-resize} +.flexigrid div.hGrip:hover,.flexigrid div.hGrip.hgOver{border-right:1px solid #999;margin-right:0} +.flexigrid div.vGrip{height:5px;overflow:hidden;position:relative;background:#fafafa url(images/wbg.gif) repeat-x 0 -1px;border:1px solid #ccc;border-top:0;text-align:center;cursor:row-resize} +.flexigrid div.vGrip span{display:block;width:20px;height:1px;overflow:hidden;border-top:1px solid #aaa;border-bottom:1px solid #aaa;background:none;margin:1px auto} +.flexigrid div.hDiv th,.flexigrid div.bDiv td +/* common cell properties*/{text-align:left;border-right:1px solid #ddd;border-left:1px solid #fff;overflow:hidden;vertical-align:top!important;padding-left:0;padding-right:0} +.flexigrid div.hDiv th div,.flexigrid div.bDiv td div,div.colCopy div +/* common inner cell properties*/{border-left:0 solid #fff;padding:5px} +.flexigrid div.hDiv th,div.colCopy{font-weight:400;height:24px;cursor:default;white-space:nowrap;overflow:hidden} +div.colCopy{font-family:Arial, Helvetica, sans-serif;font-size:11px;background:#fafafa url(images/fhbg.gif) repeat-x bottom;border:1px solid #ccc;border-bottom:0;overflow:hidden} +.flexigrid div.hDiv th.sorted{background:url(images/wbg.gif) repeat-x 0 -1px;border-bottom:0 solid #ccc} +.flexigrid div.hDiv th.thOver div,.flexigrid div.hDiv th.sorted.thOver div{border-bottom:1px solid orange;padding-bottom:4px} +.flexigrid div.hDiv th.sorted div{border-bottom:0 solid #ccc;padding-bottom:5px} +.flexigrid div.hDiv th.thMove{background:#fff;color:#fff} +.flexigrid div.hDiv th.sorted.thMove div{border-bottom:1px solid #fff;padding-bottom:4px} +.flexigrid div.hDiv th.thMove div{background:#fff!important} +.flexigrid div.hDiv th div.sdesc{background:url(images/dn.png) no-repeat center top} +.flexigrid div.hDiv th div.sasc{background:url(images/up.png) no-repeat center top} +.flexigrid div.bDiv td{border-bottom:1px solid #fff;vertical-align:top;white-space:nowrap} +.flexigrid span.cdropleft{display:block;background:url(images/prev.gif) no-repeat -4px center;width:24px;height:24px;position:relative;top:-24px;margin-bottom:-24px;z-index:3} +.flexigrid div.hDiv span.cdropright{display:block;background:url(images/next.gif) no-repeat 12px center;width:24px;height:24px;float:right;position:relative;top:-24px;margin-bottom:-24px} +.flexigrid div.bDiv td div{border-top:0 solid #fff;padding-bottom:4px} +.flexigrid tr td.sorted{background:#f3f3f3;border-right:1px solid #ddd;border-bottom:1px solid #f3f3f3} +.flexigrid tr.erow td{background:#f7f7f7;border-bottom:1px solid #f7f7f7} +.flexigrid tr.erow td.sorted{background:#e3e3e3;border-bottom:1px solid #e3e3e3} +.flexigrid div.bDiv tr:hover td,.flexigrid div.bDiv tr:hover td.sorted,.flexigrid div.bDiv tr.trOver td.sorted,.flexigrid div.bDiv tr.trOver td{background:#d9ebf5;border-left:1px solid #eef8ff;border-bottom:1px dotted #a8d8eb} +.flexigrid div.bDiv tr.trSelected:hover td,.flexigrid div.bDiv tr.trSelected:hover td.sorted,.flexigrid div.bDiv tr.trOver.trSelected td.sorted,.flexigrid div.bDiv tr.trOver.trSelected td,.flexigrid tr.trSelected td.sorted,.flexigrid tr.trSelected td{background:#d5effc url(images/hl.png) repeat-x top;border-right:1px solid #d2e3ec;border-left:1px solid #eef8ff;border-bottom:1px solid #a8d8eb} +.flexigrid.novstripe .bDiv table{border-bottom:1px solid #ccc;border-right:1px solid #ccc} +.flexigrid.novstripe div.bDiv td{border-right-color:#fff} +.flexigrid.novstripe div.bDiv tr.erow td.sorted{border-right-color:#e3e3e3} +.flexigrid.novstripe div.bDiv tr td.sorted{border-right-color:#f3f3f3} +.flexigrid.novstripe div.bDiv tr.erow td{border-right-color:#f7f7f7;border-left-color:#f7f7f7} +.flexigrid.novstripe div.bDiv tr.trSelected:hover td,.flexigrid.novstripe div.bDiv tr.trSelected:hover td.sorted,.flexigrid.novstripe div.bDiv tr.trOver.trSelected td.sorted,.flexigrid.novstripe div.bDiv tr.trOver.trSelected td,.flexigrid.novstripe tr.trSelected td.sorted,.flexigrid.novstripe tr.trSelected td{border-right:1px solid #06F;border-left:1px solid #06F} +.flexigrid.novstripe div.bDiv tr.trOver td,.flexigrid.novstripe div.bDiv tr:hover td{border-left-color:#d9ebf5;border-right-color:#d9ebf5} +.flexigrid div.pDiv{background:url(images/wbg.gif) repeat-x 0 -1px;border:1px solid #ccc;border-top:0;overflow:hidden;white-space:nowrap;position:relative} +.flexigrid div.pDiv div.pDiv2{float:left;width:1024px;margin:3px 3px 3px -2px} +div.pGroup{float:left;background:none;height:24px;margin:0 5px} +.flexigrid div.pDiv .pPageStat,.flexigrid div.pDiv .pcontrol{position:relative;top:5px;overflow:visible} +.flexigrid div.pDiv input{vertical-align:text-top;position:relative;top:-5px} +.flexigrid div.pDiv div.pButton{float:left;width:22px;height:22px;border:0;cursor:pointer;overflow:hidden} +.flexigrid div.pDiv div.pButton:hover,.flexigrid div.pDiv div.pButton.pBtnOver{width:20px;height:20px;border:1px solid #ccc;cursor:pointer} +.flexigrid div.pDiv div.pButton span{width:20px;height:20px;display:block;float:left} +.flexigrid div.pDiv div.pButton:hover span,.flexigrid div.pDiv div.pButton.pBtnOver span{width:19px;height:19px;border-top:1px solid #fff;border-left:1px solid #fff} +.flexigrid .pSearch{background:url(images/magnifier.png) no-repeat center} +.flexigrid .pFirst{background:url(images/first.gif) no-repeat center} +.flexigrid .pPrev{background:url(images/prev.gif) no-repeat center} +.flexigrid .pNext{background:url(images/next.gif) no-repeat center} +.flexigrid .pLast{background:url(images/last.gif) no-repeat center} +.flexigrid .pReload{background:url(images/load.png) no-repeat center} +.flexigrid .pReload.loading{background:url(images/load.gif) no-repeat center} +.flexigrid.ie div.hDiv th div,.flexigrid.ie div.bDiv td div,div.colCopy.ie div +/* common inner cell properties*/{overflow:hidden} \ No newline at end of file diff --git a/web/media/css/images/bg.gif b/web/media/css/images/bg.gif new file mode 100644 index 0000000..9ab78a2 Binary files /dev/null and b/web/media/css/images/bg.gif differ diff --git a/web/media/css/images/btn-sprite.gif b/web/media/css/images/btn-sprite.gif new file mode 100644 index 0000000..e827ba3 Binary files /dev/null and b/web/media/css/images/btn-sprite.gif differ diff --git a/web/media/css/images/ddn.png b/web/media/css/images/ddn.png new file mode 100644 index 0000000..2178f11 Binary files /dev/null and b/web/media/css/images/ddn.png differ diff --git a/web/media/css/images/dn.png b/web/media/css/images/dn.png new file mode 100644 index 0000000..a19083b Binary files /dev/null and b/web/media/css/images/dn.png differ diff --git a/web/media/css/images/fhbg.gif b/web/media/css/images/fhbg.gif new file mode 100644 index 0000000..8d459a3 Binary files /dev/null and b/web/media/css/images/fhbg.gif differ diff --git a/web/media/css/images/first.gif b/web/media/css/images/first.gif new file mode 100644 index 0000000..7623e73 Binary files /dev/null and b/web/media/css/images/first.gif differ diff --git a/web/media/css/images/hl.png b/web/media/css/images/hl.png new file mode 100644 index 0000000..6248e45 Binary files /dev/null and b/web/media/css/images/hl.png differ diff --git a/web/media/css/images/last.gif b/web/media/css/images/last.gif new file mode 100644 index 0000000..61483e9 Binary files /dev/null and b/web/media/css/images/last.gif differ diff --git a/web/media/css/images/line.gif b/web/media/css/images/line.gif new file mode 100644 index 0000000..c76a16e Binary files /dev/null and b/web/media/css/images/line.gif differ diff --git a/web/media/css/images/load.gif b/web/media/css/images/load.gif new file mode 100644 index 0000000..68f01d0 Binary files /dev/null and b/web/media/css/images/load.gif differ diff --git a/web/media/css/images/load.png b/web/media/css/images/load.png new file mode 100644 index 0000000..d65defb Binary files /dev/null and b/web/media/css/images/load.png differ diff --git a/web/media/css/images/magnifier.png b/web/media/css/images/magnifier.png new file mode 100644 index 0000000..cf3d97f Binary files /dev/null and b/web/media/css/images/magnifier.png differ diff --git a/web/media/css/images/next.gif b/web/media/css/images/next.gif new file mode 100644 index 0000000..2cd62cc Binary files /dev/null and b/web/media/css/images/next.gif differ diff --git a/web/media/css/images/prev.gif b/web/media/css/images/prev.gif new file mode 100644 index 0000000..b440a29 Binary files /dev/null and b/web/media/css/images/prev.gif differ diff --git a/web/media/css/images/ui-bg_flat_0_aaaaaa_40x100.png b/web/media/css/images/ui-bg_flat_0_aaaaaa_40x100.png new file mode 100644 index 0000000..42319a6 Binary files /dev/null and b/web/media/css/images/ui-bg_flat_0_aaaaaa_40x100.png differ diff --git a/web/media/css/images/ui-bg_flat_55_fbec88_40x100.png b/web/media/css/images/ui-bg_flat_55_fbec88_40x100.png new file mode 100644 index 0000000..9895e1b Binary files /dev/null and b/web/media/css/images/ui-bg_flat_55_fbec88_40x100.png differ diff --git a/web/media/css/images/ui-bg_glass_75_d0e5f5_1x400.png b/web/media/css/images/ui-bg_glass_75_d0e5f5_1x400.png new file mode 100644 index 0000000..58d922e Binary files /dev/null and b/web/media/css/images/ui-bg_glass_75_d0e5f5_1x400.png differ diff --git a/web/media/css/images/ui-bg_glass_85_dfeffc_1x400.png b/web/media/css/images/ui-bg_glass_85_dfeffc_1x400.png new file mode 100644 index 0000000..b1634ac Binary files /dev/null and b/web/media/css/images/ui-bg_glass_85_dfeffc_1x400.png differ diff --git a/web/media/css/images/ui-bg_glass_95_fef1ec_1x400.png b/web/media/css/images/ui-bg_glass_95_fef1ec_1x400.png new file mode 100644 index 0000000..31b9eb0 Binary files /dev/null and b/web/media/css/images/ui-bg_glass_95_fef1ec_1x400.png differ diff --git a/web/media/css/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png b/web/media/css/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png new file mode 100644 index 0000000..c71c0fe Binary files /dev/null and b/web/media/css/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png differ diff --git a/web/media/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png b/web/media/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png new file mode 100644 index 0000000..7b1cd78 Binary files /dev/null and b/web/media/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png differ diff --git a/web/media/css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png b/web/media/css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png new file mode 100644 index 0000000..f3233bb Binary files /dev/null and b/web/media/css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png differ diff --git a/web/media/css/images/ui-icons_217bc0_256x240.png b/web/media/css/images/ui-icons_217bc0_256x240.png new file mode 100644 index 0000000..8d2b7e5 Binary files /dev/null and b/web/media/css/images/ui-icons_217bc0_256x240.png differ diff --git a/web/media/css/images/ui-icons_2e83ff_256x240.png b/web/media/css/images/ui-icons_2e83ff_256x240.png new file mode 100644 index 0000000..84b601b Binary files /dev/null and b/web/media/css/images/ui-icons_2e83ff_256x240.png differ diff --git a/web/media/css/images/ui-icons_469bdd_256x240.png b/web/media/css/images/ui-icons_469bdd_256x240.png new file mode 100644 index 0000000..5dff3f9 Binary files /dev/null and b/web/media/css/images/ui-icons_469bdd_256x240.png differ diff --git a/web/media/css/images/ui-icons_6da8d5_256x240.png b/web/media/css/images/ui-icons_6da8d5_256x240.png new file mode 100644 index 0000000..f7809f8 Binary files /dev/null and b/web/media/css/images/ui-icons_6da8d5_256x240.png differ diff --git a/web/media/css/images/ui-icons_cd0a0a_256x240.png b/web/media/css/images/ui-icons_cd0a0a_256x240.png new file mode 100644 index 0000000..ed5b6b0 Binary files /dev/null and b/web/media/css/images/ui-icons_cd0a0a_256x240.png differ diff --git a/web/media/css/images/ui-icons_d8e7f3_256x240.png b/web/media/css/images/ui-icons_d8e7f3_256x240.png new file mode 100644 index 0000000..9b46228 Binary files /dev/null and b/web/media/css/images/ui-icons_d8e7f3_256x240.png differ diff --git a/web/media/css/images/ui-icons_f9bd01_256x240.png b/web/media/css/images/ui-icons_f9bd01_256x240.png new file mode 100644 index 0000000..f1f0531 Binary files /dev/null and b/web/media/css/images/ui-icons_f9bd01_256x240.png differ diff --git a/web/media/css/images/up.png b/web/media/css/images/up.png new file mode 100644 index 0000000..000c065 Binary files /dev/null and b/web/media/css/images/up.png differ diff --git a/web/media/css/images/uup.png b/web/media/css/images/uup.png new file mode 100644 index 0000000..660db63 Binary files /dev/null and b/web/media/css/images/uup.png differ diff --git a/web/media/css/images/wbg.gif b/web/media/css/images/wbg.gif new file mode 100644 index 0000000..8046089 Binary files /dev/null and b/web/media/css/images/wbg.gif differ diff --git a/web/media/css/jqueryui.css b/web/media/css/jqueryui.css new file mode 100644 index 0000000..2f9107c --- /dev/null +++ b/web/media/css/jqueryui.css @@ -0,0 +1,1178 @@ +/*! jQuery UI - v1.10.4 - 2014-05-03 +* http://jqueryui.com +* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css +* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande%2CLucida%20Sans%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=5px&bgColorHeader=5c9ccc&bgTextureHeader=gloss_wave&bgImgOpacityHeader=55&borderColorHeader=4297d7&fcHeader=ffffff&iconColorHeader=d8e7f3&bgColorContent=fcfdfd&bgTextureContent=inset_hard&bgImgOpacityContent=100&borderColorContent=a6c9e2&fcContent=222222&iconColorContent=469bdd&bgColorDefault=dfeffc&bgTextureDefault=glass&bgImgOpacityDefault=85&borderColorDefault=c5dbec&fcDefault=2e6e9e&iconColorDefault=6da8d5&bgColorHover=d0e5f5&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=79b7e7&fcHover=1d5987&iconColorHover=217bc0&bgColorActive=f5f8f9&bgTextureActive=inset_hard&bgImgOpacityActive=100&borderColorActive=79b7e7&fcActive=e17009&iconColorActive=f9bd01&bgColorHighlight=fbec88&bgTextureHighlight=flat&bgImgOpacityHighlight=55&borderColorHighlight=fad42e&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px +* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { + display: none; +} +.ui-helper-hidden-accessible { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} +.ui-helper-reset { + margin: 0; + padding: 0; + border: 0; + outline: 0; + line-height: 1.3; + text-decoration: none; + font-size: 100%; + list-style: none; +} +.ui-helper-clearfix:before, +.ui-helper-clearfix:after { + content: ""; + display: table; + border-collapse: collapse; +} +.ui-helper-clearfix:after { + clear: both; +} +.ui-helper-clearfix { + min-height: 0; /* support: IE7 */ +} +.ui-helper-zfix { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute; + opacity: 0; + filter:Alpha(Opacity=0); +} + +.ui-front { + z-index: 100; +} + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { + cursor: default !important; +} + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { + display: block; + text-indent: -99999px; + overflow: hidden; + background-repeat: no-repeat; +} + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.ui-resizable { + position: relative; +} +.ui-resizable-handle { + position: absolute; + font-size: 0.1px; + display: block; +} +.ui-resizable-disabled .ui-resizable-handle, +.ui-resizable-autohide .ui-resizable-handle { + display: none; +} +.ui-resizable-n { + cursor: n-resize; + height: 7px; + width: 100%; + top: -5px; + left: 0; +} +.ui-resizable-s { + cursor: s-resize; + height: 7px; + width: 100%; + bottom: -5px; + left: 0; +} +.ui-resizable-e { + cursor: e-resize; + width: 7px; + right: -5px; + top: 0; + height: 100%; +} +.ui-resizable-w { + cursor: w-resize; + width: 7px; + left: -5px; + top: 0; + height: 100%; +} +.ui-resizable-se { + cursor: se-resize; + width: 12px; + height: 12px; + right: 1px; + bottom: 1px; +} +.ui-resizable-sw { + cursor: sw-resize; + width: 9px; + height: 9px; + left: -5px; + bottom: -5px; +} +.ui-resizable-nw { + cursor: nw-resize; + width: 9px; + height: 9px; + left: -5px; + top: -5px; +} +.ui-resizable-ne { + cursor: ne-resize; + width: 9px; + height: 9px; + right: -5px; + top: -5px; +} +.ui-selectable-helper { + position: absolute; + z-index: 100; + border: 1px dotted black; +} +.ui-accordion .ui-accordion-header { + display: block; + cursor: pointer; + position: relative; + margin-top: 2px; + padding: .5em .5em .5em .7em; + min-height: 0; /* support: IE7 */ +} +.ui-accordion .ui-accordion-icons { + padding-left: 2.2em; +} +.ui-accordion .ui-accordion-noicons { + padding-left: .7em; +} +.ui-accordion .ui-accordion-icons .ui-accordion-icons { + padding-left: 2.2em; +} +.ui-accordion .ui-accordion-header .ui-accordion-header-icon { + position: absolute; + left: .5em; + top: 50%; + margin-top: -8px; +} +.ui-accordion .ui-accordion-content { + padding: 1em 2.2em; + border-top: 0; + overflow: auto; +} +.ui-autocomplete { + position: absolute; + top: 0; + left: 0; + cursor: default; +} +.ui-button { + display: inline-block; + position: relative; + padding: 0; + line-height: normal; + margin-right: .1em; + cursor: pointer; + vertical-align: middle; + text-align: center; + overflow: visible; /* removes extra width in IE */ +} +.ui-button, +.ui-button:link, +.ui-button:visited, +.ui-button:hover, +.ui-button:active { + text-decoration: none; +} +/* to make room for the icon, a width needs to be set here */ +.ui-button-icon-only { + width: 2.2em; +} +/* button elements seem to need a little more width */ +button.ui-button-icon-only { + width: 2.4em; +} +.ui-button-icons-only { + width: 3.4em; +} +button.ui-button-icons-only { + width: 3.7em; +} + +/* button text element */ +.ui-button .ui-button-text { + display: block; + line-height: normal; +} +.ui-button-text-only .ui-button-text { + padding: .4em 1em; +} +.ui-button-icon-only .ui-button-text, +.ui-button-icons-only .ui-button-text { + padding: .4em; + text-indent: -9999999px; +} +.ui-button-text-icon-primary .ui-button-text, +.ui-button-text-icons .ui-button-text { + padding: .4em 1em .4em 2.1em; +} +.ui-button-text-icon-secondary .ui-button-text, +.ui-button-text-icons .ui-button-text { + padding: .4em 2.1em .4em 1em; +} +.ui-button-text-icons .ui-button-text { + padding-left: 2.1em; + padding-right: 2.1em; +} +/* no icon support for input elements, provide padding by default */ +input.ui-button { + padding: .4em 1em; +} + +/* button icon element(s) */ +.ui-button-icon-only .ui-icon, +.ui-button-text-icon-primary .ui-icon, +.ui-button-text-icon-secondary .ui-icon, +.ui-button-text-icons .ui-icon, +.ui-button-icons-only .ui-icon { + position: absolute; + top: 50%; + margin-top: -8px; +} +.ui-button-icon-only .ui-icon { + left: 50%; + margin-left: -8px; +} +.ui-button-text-icon-primary .ui-button-icon-primary, +.ui-button-text-icons .ui-button-icon-primary, +.ui-button-icons-only .ui-button-icon-primary { + left: .5em; +} +.ui-button-text-icon-secondary .ui-button-icon-secondary, +.ui-button-text-icons .ui-button-icon-secondary, +.ui-button-icons-only .ui-button-icon-secondary { + right: .5em; +} + +/* button sets */ +.ui-buttonset { + margin-right: 7px; +} +.ui-buttonset .ui-button { + margin-left: 0; + margin-right: -.3em; +} + +/* workarounds */ +/* reset extra padding in Firefox, see h5bp.com/l */ +input.ui-button::-moz-focus-inner, +button.ui-button::-moz-focus-inner { + border: 0; + padding: 0; +} +.ui-datepicker { + width: 17em; + padding: .2em .2em 0; + display: none; +} +.ui-datepicker .ui-datepicker-header { + position: relative; + padding: .2em 0; +} +.ui-datepicker .ui-datepicker-prev, +.ui-datepicker .ui-datepicker-next { + position: absolute; + top: 2px; + width: 1.8em; + height: 1.8em; +} +.ui-datepicker .ui-datepicker-prev-hover, +.ui-datepicker .ui-datepicker-next-hover { + top: 1px; +} +.ui-datepicker .ui-datepicker-prev { + left: 2px; +} +.ui-datepicker .ui-datepicker-next { + right: 2px; +} +.ui-datepicker .ui-datepicker-prev-hover { + left: 1px; +} +.ui-datepicker .ui-datepicker-next-hover { + right: 1px; +} +.ui-datepicker .ui-datepicker-prev span, +.ui-datepicker .ui-datepicker-next span { + display: block; + position: absolute; + left: 50%; + margin-left: -8px; + top: 50%; + margin-top: -8px; +} +.ui-datepicker .ui-datepicker-title { + margin: 0 2.3em; + line-height: 1.8em; + text-align: center; +} +.ui-datepicker .ui-datepicker-title select { + font-size: 1em; + margin: 1px 0; +} +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { + width: 49%; +} +.ui-datepicker table { + width: 100%; + font-size: .9em; + border-collapse: collapse; + margin: 0 0 .4em; +} +.ui-datepicker th { + padding: .7em .3em; + text-align: center; + font-weight: bold; + border: 0; +} +.ui-datepicker td { + border: 0; + padding: 1px; +} +.ui-datepicker td span, +.ui-datepicker td a { + display: block; + padding: .2em; + text-align: right; + text-decoration: none; +} +.ui-datepicker .ui-datepicker-buttonpane { + background-image: none; + margin: .7em 0 0 0; + padding: 0 .2em; + border-left: 0; + border-right: 0; + border-bottom: 0; +} +.ui-datepicker .ui-datepicker-buttonpane button { + float: right; + margin: .5em .2em .4em; + cursor: pointer; + padding: .2em .6em .3em .6em; + width: auto; + overflow: visible; +} +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { + float: left; +} + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { + width: auto; +} +.ui-datepicker-multi .ui-datepicker-group { + float: left; +} +.ui-datepicker-multi .ui-datepicker-group table { + width: 95%; + margin: 0 auto .4em; +} +.ui-datepicker-multi-2 .ui-datepicker-group { + width: 50%; +} +.ui-datepicker-multi-3 .ui-datepicker-group { + width: 33.3%; +} +.ui-datepicker-multi-4 .ui-datepicker-group { + width: 25%; +} +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header, +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { + border-left-width: 0; +} +.ui-datepicker-multi .ui-datepicker-buttonpane { + clear: left; +} +.ui-datepicker-row-break { + clear: both; + width: 100%; + font-size: 0; +} + +/* RTL support */ +.ui-datepicker-rtl { + direction: rtl; +} +.ui-datepicker-rtl .ui-datepicker-prev { + right: 2px; + left: auto; +} +.ui-datepicker-rtl .ui-datepicker-next { + left: 2px; + right: auto; +} +.ui-datepicker-rtl .ui-datepicker-prev:hover { + right: 1px; + left: auto; +} +.ui-datepicker-rtl .ui-datepicker-next:hover { + left: 1px; + right: auto; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane { + clear: right; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane button { + float: left; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current, +.ui-datepicker-rtl .ui-datepicker-group { + float: right; +} +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header, +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { + border-right-width: 0; + border-left-width: 1px; +} +.ui-dialog { + overflow: hidden; + position: absolute; + top: 0; + left: 0; + padding: .2em; + outline: 0; +} +.ui-dialog .ui-dialog-titlebar { + padding: .4em 1em; + position: relative; +} +.ui-dialog .ui-dialog-title { + float: left; + margin: .1em 0; + white-space: nowrap; + width: 90%; + overflow: hidden; + text-overflow: ellipsis; +} +.ui-dialog .ui-dialog-titlebar-close { + position: absolute; + right: .3em; + top: 50%; + width: 20px; + margin: -10px 0 0 0; + padding: 1px; + height: 20px; +} +.ui-dialog .ui-dialog-content { + position: relative; + border: 0; + padding: .5em 1em; + background: none; + overflow: auto; +} +.ui-dialog .ui-dialog-buttonpane { + text-align: left; + border-width: 1px 0 0 0; + background-image: none; + margin-top: .5em; + padding: .3em 1em .5em .4em; +} +.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { + float: right; +} +.ui-dialog .ui-dialog-buttonpane button { + margin: .5em .4em .5em 0; + cursor: pointer; +} +.ui-dialog .ui-resizable-se { + width: 12px; + height: 12px; + right: -5px; + bottom: -5px; + background-position: 16px 16px; +} +.ui-draggable .ui-dialog-titlebar { + cursor: move; +} +.ui-menu { + list-style: none; + padding: 2px; + margin: 0; + display: block; + outline: none; +} +.ui-menu .ui-menu { + margin-top: -3px; + position: absolute; +} +.ui-menu .ui-menu-item { + margin: 0; + padding: 0; + width: 100%; + /* support: IE10, see #8844 */ + list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); +} +.ui-menu .ui-menu-divider { + margin: 5px -2px 5px -2px; + height: 0; + font-size: 0; + line-height: 0; + border-width: 1px 0 0 0; +} +.ui-menu .ui-menu-item a { + text-decoration: none; + display: block; + padding: 2px .4em; + line-height: 1.5; + min-height: 0; /* support: IE7 */ + font-weight: normal; +} +.ui-menu .ui-menu-item a.ui-state-focus, +.ui-menu .ui-menu-item a.ui-state-active { + font-weight: normal; + margin: -1px; +} + +.ui-menu .ui-state-disabled { + font-weight: normal; + margin: .4em 0 .2em; + line-height: 1.5; +} +.ui-menu .ui-state-disabled a { + cursor: default; +} + +/* icon support */ +.ui-menu-icons { + position: relative; +} +.ui-menu-icons .ui-menu-item a { + position: relative; + padding-left: 2em; +} + +/* left-aligned */ +.ui-menu .ui-icon { + position: absolute; + top: .2em; + left: .2em; +} + +/* right-aligned */ +.ui-menu .ui-menu-icon { + position: static; + float: right; +} +.ui-progressbar { + height: 2em; + text-align: left; + overflow: hidden; +} +.ui-progressbar .ui-progressbar-value { + margin: -1px; + height: 100%; +} +.ui-progressbar .ui-progressbar-overlay { + background: url("images/animated-overlay.gif"); + height: 100%; + filter: alpha(opacity=25); + opacity: 0.25; +} +.ui-progressbar-indeterminate .ui-progressbar-value { + background-image: none; +} +.ui-slider { + position: relative; + text-align: left; +} +.ui-slider .ui-slider-handle { + position: absolute; + z-index: 2; + width: 1.2em; + height: 1.2em; + cursor: default; +} +.ui-slider .ui-slider-range { + position: absolute; + z-index: 1; + font-size: .7em; + display: block; + border: 0; + background-position: 0 0; +} + +/* For IE8 - See #6727 */ +.ui-slider.ui-state-disabled .ui-slider-handle, +.ui-slider.ui-state-disabled .ui-slider-range { + filter: inherit; +} + +.ui-slider-horizontal { + height: .8em; +} +.ui-slider-horizontal .ui-slider-handle { + top: -.3em; + margin-left: -.6em; +} +.ui-slider-horizontal .ui-slider-range { + top: 0; + height: 100%; +} +.ui-slider-horizontal .ui-slider-range-min { + left: 0; +} +.ui-slider-horizontal .ui-slider-range-max { + right: 0; +} + +.ui-slider-vertical { + width: .8em; + height: 100px; +} +.ui-slider-vertical .ui-slider-handle { + left: -.3em; + margin-left: 0; + margin-bottom: -.6em; +} +.ui-slider-vertical .ui-slider-range { + left: 0; + width: 100%; +} +.ui-slider-vertical .ui-slider-range-min { + bottom: 0; +} +.ui-slider-vertical .ui-slider-range-max { + top: 0; +} +.ui-spinner { + position: relative; + display: inline-block; + overflow: hidden; + padding: 0; + vertical-align: middle; +} +.ui-spinner-input { + border: none; + background: none; + color: inherit; + padding: 0; + margin: .2em 0; + vertical-align: middle; + margin-left: .4em; + margin-right: 22px; +} +.ui-spinner-button { + width: 16px; + height: 50%; + font-size: .5em; + padding: 0; + margin: 0; + text-align: center; + position: absolute; + cursor: default; + display: block; + overflow: hidden; + right: 0; +} +/* more specificity required here to override default borders */ +.ui-spinner a.ui-spinner-button { + border-top: none; + border-bottom: none; + border-right: none; +} +/* vertically center icon */ +.ui-spinner .ui-icon { + position: absolute; + margin-top: -8px; + top: 50%; + left: 0; +} +.ui-spinner-up { + top: 0; +} +.ui-spinner-down { + bottom: 0; +} + +/* TR overrides */ +.ui-spinner .ui-icon-triangle-1-s { + /* need to fix icons sprite */ + background-position: -65px -16px; +} +.ui-tabs { + position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ + padding: .2em; +} +.ui-tabs .ui-tabs-nav { + margin: 0; + padding: .2em .2em 0; +} +.ui-tabs .ui-tabs-nav li { + list-style: none; + float: left; + position: relative; + top: 0; + margin: 1px .2em 0 0; + border-bottom-width: 0; + padding: 0; + white-space: nowrap; +} +.ui-tabs .ui-tabs-nav .ui-tabs-anchor { + float: left; + padding: .5em 1em; + text-decoration: none; +} +.ui-tabs .ui-tabs-nav li.ui-tabs-active { + margin-bottom: -1px; + padding-bottom: 1px; +} +.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor, +.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor, +.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor { + cursor: text; +} +.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor { + cursor: pointer; +} +.ui-tabs .ui-tabs-panel { + display: block; + border-width: 0; + padding: 1em 1.4em; + background: none; +} +.ui-tooltip { + padding: 8px; + position: absolute; + z-index: 9999; + max-width: 300px; + -webkit-box-shadow: 0 0 5px #aaa; + box-shadow: 0 0 5px #aaa; +} +body .ui-tooltip { + border-width: 2px; +} + +/* Component containers +----------------------------------*/ +.ui-widget { + font-family: Lucida Grande,Lucida Sans,Arial,sans-serif; + font-size: 1.1em; +} +.ui-widget .ui-widget { + font-size: 1em; +} +.ui-widget input, +.ui-widget select, +.ui-widget textarea, +.ui-widget button { + font-family: Lucida Grande,Lucida Sans,Arial,sans-serif; + font-size: 1em; +} +.ui-widget-content { + border: 1px solid #a6c9e2; + background: #fcfdfd url("images/ui-bg_inset-hard_100_fcfdfd_1x100.png") 50% bottom repeat-x; + color: #222222; +} +.ui-widget-content a { + color: #222222; +} +.ui-widget-header { + border: 1px solid #4297d7; + background: #5c9ccc url("images/ui-bg_gloss-wave_55_5c9ccc_500x100.png") 50% 50% repeat-x; + color: #ffffff; + font-weight: bold; +} +.ui-widget-header a { + color: #ffffff; +} + +/* Interaction states +----------------------------------*/ +.ui-state-default, +.ui-widget-content .ui-state-default, +.ui-widget-header .ui-state-default { + border: 1px solid #c5dbec; + background: #dfeffc url("images/ui-bg_glass_85_dfeffc_1x400.png") 50% 50% repeat-x; + font-weight: bold; + color: #2e6e9e; +} +.ui-state-default a, +.ui-state-default a:link, +.ui-state-default a:visited { + color: #2e6e9e; + text-decoration: none; +} +.ui-state-hover, +.ui-widget-content .ui-state-hover, +.ui-widget-header .ui-state-hover, +.ui-state-focus, +.ui-widget-content .ui-state-focus, +.ui-widget-header .ui-state-focus { + border: 1px solid #79b7e7; + background: #d0e5f5 url("images/ui-bg_glass_75_d0e5f5_1x400.png") 50% 50% repeat-x; + font-weight: bold; + color: #1d5987; +} +.ui-state-hover a, +.ui-state-hover a:hover, +.ui-state-hover a:link, +.ui-state-hover a:visited, +.ui-state-focus a, +.ui-state-focus a:hover, +.ui-state-focus a:link, +.ui-state-focus a:visited { + color: #1d5987; + text-decoration: none; +} +.ui-state-active, +.ui-widget-content .ui-state-active, +.ui-widget-header .ui-state-active { + border: 1px solid #79b7e7; + background: #f5f8f9 url("images/ui-bg_inset-hard_100_f5f8f9_1x100.png") 50% 50% repeat-x; + font-weight: bold; + color: #e17009; +} +.ui-state-active a, +.ui-state-active a:link, +.ui-state-active a:visited { + color: #e17009; + text-decoration: none; +} + +/* Interaction Cues +----------------------------------*/ +.ui-state-highlight, +.ui-widget-content .ui-state-highlight, +.ui-widget-header .ui-state-highlight { + border: 1px solid #fad42e; + background: #fbec88 url("images/ui-bg_flat_55_fbec88_40x100.png") 50% 50% repeat-x; + color: #363636; +} +.ui-state-highlight a, +.ui-widget-content .ui-state-highlight a, +.ui-widget-header .ui-state-highlight a { + color: #363636; +} +.ui-state-error, +.ui-widget-content .ui-state-error, +.ui-widget-header .ui-state-error { + border: 1px solid #cd0a0a; + background: #fef1ec url("images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x; + color: #cd0a0a; +} +.ui-state-error a, +.ui-widget-content .ui-state-error a, +.ui-widget-header .ui-state-error a { + color: #cd0a0a; +} +.ui-state-error-text, +.ui-widget-content .ui-state-error-text, +.ui-widget-header .ui-state-error-text { + color: #cd0a0a; +} +.ui-priority-primary, +.ui-widget-content .ui-priority-primary, +.ui-widget-header .ui-priority-primary { + font-weight: bold; +} +.ui-priority-secondary, +.ui-widget-content .ui-priority-secondary, +.ui-widget-header .ui-priority-secondary { + opacity: .7; + filter:Alpha(Opacity=70); + font-weight: normal; +} +.ui-state-disabled, +.ui-widget-content .ui-state-disabled, +.ui-widget-header .ui-state-disabled { + opacity: .35; + filter:Alpha(Opacity=35); + background-image: none; +} +.ui-state-disabled .ui-icon { + filter:Alpha(Opacity=35); /* For IE8 - See #6059 */ +} + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { + width: 16px; + height: 16px; +} +.ui-icon, +.ui-widget-content .ui-icon { + background-image: url("images/ui-icons_469bdd_256x240.png"); +} +.ui-widget-header .ui-icon { + background-image: url("images/ui-icons_d8e7f3_256x240.png"); +} +.ui-state-default .ui-icon { + background-image: url("images/ui-icons_6da8d5_256x240.png"); +} +.ui-state-hover .ui-icon, +.ui-state-focus .ui-icon { + background-image: url("images/ui-icons_217bc0_256x240.png"); +} +.ui-state-active .ui-icon { + background-image: url("images/ui-icons_f9bd01_256x240.png"); +} +.ui-state-highlight .ui-icon { + background-image: url("images/ui-icons_2e83ff_256x240.png"); +} +.ui-state-error .ui-icon, +.ui-state-error-text .ui-icon { + background-image: url("images/ui-icons_cd0a0a_256x240.png"); +} + +/* positioning */ +.ui-icon-blank { background-position: 16px 16px; } +.ui-icon-carat-1-n { background-position: 0 0; } +.ui-icon-carat-1-ne { background-position: -16px 0; } +.ui-icon-carat-1-e { background-position: -32px 0; } +.ui-icon-carat-1-se { background-position: -48px 0; } +.ui-icon-carat-1-s { background-position: -64px 0; } +.ui-icon-carat-1-sw { background-position: -80px 0; } +.ui-icon-carat-1-w { background-position: -96px 0; } +.ui-icon-carat-1-nw { background-position: -112px 0; } +.ui-icon-carat-2-n-s { background-position: -128px 0; } +.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-triangle-1-n { background-position: 0 -16px; } +.ui-icon-triangle-1-ne { background-position: -16px -16px; } +.ui-icon-triangle-1-e { background-position: -32px -16px; } +.ui-icon-triangle-1-se { background-position: -48px -16px; } +.ui-icon-triangle-1-s { background-position: -64px -16px; } +.ui-icon-triangle-1-sw { background-position: -80px -16px; } +.ui-icon-triangle-1-w { background-position: -96px -16px; } +.ui-icon-triangle-1-nw { background-position: -112px -16px; } +.ui-icon-triangle-2-n-s { background-position: -128px -16px; } +.ui-icon-triangle-2-e-w { background-position: -144px -16px; } +.ui-icon-arrow-1-n { background-position: 0 -32px; } +.ui-icon-arrow-1-ne { background-position: -16px -32px; } +.ui-icon-arrow-1-e { background-position: -32px -32px; } +.ui-icon-arrow-1-se { background-position: -48px -32px; } +.ui-icon-arrow-1-s { background-position: -64px -32px; } +.ui-icon-arrow-1-sw { background-position: -80px -32px; } +.ui-icon-arrow-1-w { background-position: -96px -32px; } +.ui-icon-arrow-1-nw { background-position: -112px -32px; } +.ui-icon-arrow-2-n-s { background-position: -128px -32px; } +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } +.ui-icon-arrow-2-e-w { background-position: -160px -32px; } +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } +.ui-icon-arrowstop-1-n { background-position: -192px -32px; } +.ui-icon-arrowstop-1-e { background-position: -208px -32px; } +.ui-icon-arrowstop-1-s { background-position: -224px -32px; } +.ui-icon-arrowstop-1-w { background-position: -240px -32px; } +.ui-icon-arrowthick-1-n { background-position: 0 -48px; } +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } +.ui-icon-arrowthick-1-e { background-position: -32px -48px; } +.ui-icon-arrowthick-1-se { background-position: -48px -48px; } +.ui-icon-arrowthick-1-s { background-position: -64px -48px; } +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } +.ui-icon-arrowthick-1-w { background-position: -96px -48px; } +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } +.ui-icon-arrow-4 { background-position: 0 -80px; } +.ui-icon-arrow-4-diag { background-position: -16px -80px; } +.ui-icon-extlink { background-position: -32px -80px; } +.ui-icon-newwin { background-position: -48px -80px; } +.ui-icon-refresh { background-position: -64px -80px; } +.ui-icon-shuffle { background-position: -80px -80px; } +.ui-icon-transfer-e-w { background-position: -96px -80px; } +.ui-icon-transferthick-e-w { background-position: -112px -80px; } +.ui-icon-folder-collapsed { background-position: 0 -96px; } +.ui-icon-folder-open { background-position: -16px -96px; } +.ui-icon-document { background-position: -32px -96px; } +.ui-icon-document-b { background-position: -48px -96px; } +.ui-icon-note { background-position: -64px -96px; } +.ui-icon-mail-closed { background-position: -80px -96px; } +.ui-icon-mail-open { background-position: -96px -96px; } +.ui-icon-suitcase { background-position: -112px -96px; } +.ui-icon-comment { background-position: -128px -96px; } +.ui-icon-person { background-position: -144px -96px; } +.ui-icon-print { background-position: -160px -96px; } +.ui-icon-trash { background-position: -176px -96px; } +.ui-icon-locked { background-position: -192px -96px; } +.ui-icon-unlocked { background-position: -208px -96px; } +.ui-icon-bookmark { background-position: -224px -96px; } +.ui-icon-tag { background-position: -240px -96px; } +.ui-icon-home { background-position: 0 -112px; } +.ui-icon-flag { background-position: -16px -112px; } +.ui-icon-calendar { background-position: -32px -112px; } +.ui-icon-cart { background-position: -48px -112px; } +.ui-icon-pencil { background-position: -64px -112px; } +.ui-icon-clock { background-position: -80px -112px; } +.ui-icon-disk { background-position: -96px -112px; } +.ui-icon-calculator { background-position: -112px -112px; } +.ui-icon-zoomin { background-position: -128px -112px; } +.ui-icon-zoomout { background-position: -144px -112px; } +.ui-icon-search { background-position: -160px -112px; } +.ui-icon-wrench { background-position: -176px -112px; } +.ui-icon-gear { background-position: -192px -112px; } +.ui-icon-heart { background-position: -208px -112px; } +.ui-icon-star { background-position: -224px -112px; } +.ui-icon-link { background-position: -240px -112px; } +.ui-icon-cancel { background-position: 0 -128px; } +.ui-icon-plus { background-position: -16px -128px; } +.ui-icon-plusthick { background-position: -32px -128px; } +.ui-icon-minus { background-position: -48px -128px; } +.ui-icon-minusthick { background-position: -64px -128px; } +.ui-icon-close { background-position: -80px -128px; } +.ui-icon-closethick { background-position: -96px -128px; } +.ui-icon-key { background-position: -112px -128px; } +.ui-icon-lightbulb { background-position: -128px -128px; } +.ui-icon-scissors { background-position: -144px -128px; } +.ui-icon-clipboard { background-position: -160px -128px; } +.ui-icon-copy { background-position: -176px -128px; } +.ui-icon-contact { background-position: -192px -128px; } +.ui-icon-image { background-position: -208px -128px; } +.ui-icon-video { background-position: -224px -128px; } +.ui-icon-script { background-position: -240px -128px; } +.ui-icon-alert { background-position: 0 -144px; } +.ui-icon-info { background-position: -16px -144px; } +.ui-icon-notice { background-position: -32px -144px; } +.ui-icon-help { background-position: -48px -144px; } +.ui-icon-check { background-position: -64px -144px; } +.ui-icon-bullet { background-position: -80px -144px; } +.ui-icon-radio-on { background-position: -96px -144px; } +.ui-icon-radio-off { background-position: -112px -144px; } +.ui-icon-pin-w { background-position: -128px -144px; } +.ui-icon-pin-s { background-position: -144px -144px; } +.ui-icon-play { background-position: 0 -160px; } +.ui-icon-pause { background-position: -16px -160px; } +.ui-icon-seek-next { background-position: -32px -160px; } +.ui-icon-seek-prev { background-position: -48px -160px; } +.ui-icon-seek-end { background-position: -64px -160px; } +.ui-icon-seek-start { background-position: -80px -160px; } +/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ +.ui-icon-seek-first { background-position: -80px -160px; } +.ui-icon-stop { background-position: -96px -160px; } +.ui-icon-eject { background-position: -112px -160px; } +.ui-icon-volume-off { background-position: -128px -160px; } +.ui-icon-volume-on { background-position: -144px -160px; } +.ui-icon-power { background-position: 0 -176px; } +.ui-icon-signal-diag { background-position: -16px -176px; } +.ui-icon-signal { background-position: -32px -176px; } +.ui-icon-battery-0 { background-position: -48px -176px; } +.ui-icon-battery-1 { background-position: -64px -176px; } +.ui-icon-battery-2 { background-position: -80px -176px; } +.ui-icon-battery-3 { background-position: -96px -176px; } +.ui-icon-circle-plus { background-position: 0 -192px; } +.ui-icon-circle-minus { background-position: -16px -192px; } +.ui-icon-circle-close { background-position: -32px -192px; } +.ui-icon-circle-triangle-e { background-position: -48px -192px; } +.ui-icon-circle-triangle-s { background-position: -64px -192px; } +.ui-icon-circle-triangle-w { background-position: -80px -192px; } +.ui-icon-circle-triangle-n { background-position: -96px -192px; } +.ui-icon-circle-arrow-e { background-position: -112px -192px; } +.ui-icon-circle-arrow-s { background-position: -128px -192px; } +.ui-icon-circle-arrow-w { background-position: -144px -192px; } +.ui-icon-circle-arrow-n { background-position: -160px -192px; } +.ui-icon-circle-zoomin { background-position: -176px -192px; } +.ui-icon-circle-zoomout { background-position: -192px -192px; } +.ui-icon-circle-check { background-position: -208px -192px; } +.ui-icon-circlesmall-plus { background-position: 0 -208px; } +.ui-icon-circlesmall-minus { background-position: -16px -208px; } +.ui-icon-circlesmall-close { background-position: -32px -208px; } +.ui-icon-squaresmall-plus { background-position: -48px -208px; } +.ui-icon-squaresmall-minus { background-position: -64px -208px; } +.ui-icon-squaresmall-close { background-position: -80px -208px; } +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } +.ui-icon-grip-solid-vertical { background-position: -32px -224px; } +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } +.ui-icon-grip-diagonal-se { background-position: -80px -224px; } + + +/* Misc visuals +----------------------------------*/ + +/* Corner radius */ +.ui-corner-all, +.ui-corner-top, +.ui-corner-left, +.ui-corner-tl { + border-top-left-radius: 5px; +} +.ui-corner-all, +.ui-corner-top, +.ui-corner-right, +.ui-corner-tr { + border-top-right-radius: 5px; +} +.ui-corner-all, +.ui-corner-bottom, +.ui-corner-left, +.ui-corner-bl { + border-bottom-left-radius: 5px; +} +.ui-corner-all, +.ui-corner-bottom, +.ui-corner-right, +.ui-corner-br { + border-bottom-right-radius: 5px; +} + +/* Overlays */ +.ui-widget-overlay { + background: #aaaaaa url("images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x; + opacity: .3; + filter: Alpha(Opacity=30); +} +.ui-widget-shadow { + margin: -8px 0 0 -8px; + padding: 8px; + background: #aaaaaa url("images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x; + opacity: .3; + filter: Alpha(Opacity=30); + border-radius: 8px; +} diff --git a/web/media/css/style.css b/web/media/css/style.css new file mode 100644 index 0000000..3131420 --- /dev/null +++ b/web/media/css/style.css @@ -0,0 +1,27 @@ + + +table { + font-size: 1em; +} + +.demo-description { + clear: both; + padding: 12px; + font-size: 1.3em; + line-height: 1.4em; +} + +.ui-draggable, .ui-droppable { + background-position: top; +} + +/*body { font-size: 62.5%; }*/ +/*div.ui-widget label, input { display:block; }*/ +div.ui-widget input.text { margin-bottom:12px; width:95%; padding: .4em; } +div.ui-widget fieldset { padding:0; border:0; margin-top:25px; } +div.ui-widget h1 { font-size: 1.2em; margin: .6em 0; } +div#users-contain { width: 350px; margin: 20px 0; } +div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; } +div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; } +.ui-dialog .ui-state-error { padding: .3em; } +.validateTips { border: 1px solid transparent; padding: 0.3em; } \ No newline at end of file diff --git a/web/media/js/flexigrid.js b/web/media/js/flexigrid.js new file mode 100644 index 0000000..d2ff279 --- /dev/null +++ b/web/media/js/flexigrid.js @@ -0,0 +1,1575 @@ +/* + * Flexigrid for jQuery - v1.1 + * + * Copyright (c) 2008 Paulo P. Marinas (code.google.com/p/flexigrid/) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + */ +(function ($) { + /* + * jQuery 1.9 support. browser object has been removed in 1.9 + */ + var browser = $.browser + + if (!browser) { + function uaMatch( ua ) { + ua = ua.toLowerCase(); + + var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || + /(webkit)[ \/]([\w.]+)/.exec( ua ) || + /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || + /(msie) ([\w.]+)/.exec( ua ) || + ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || + []; + + return { + browser: match[ 1 ] || "", + version: match[ 2 ] || "0" + }; + }; + + var matched = uaMatch( navigator.userAgent ); + browser = {}; + + if ( matched.browser ) { + browser[ matched.browser ] = true; + browser.version = matched.version; + } + + // Chrome is Webkit, but Webkit is also Safari. + if ( browser.chrome ) { + browser.webkit = true; + } else if ( browser.webkit ) { + browser.safari = true; + } + } + + /*! + * START code from jQuery UI + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI + */ + + if(typeof $.support.selectstart != 'function') { + $.support.selectstart = "onselectstart" in document.createElement("div"); + } + + if(typeof $.fn.disableSelection != 'function') { + $.fn.disableSelection = function() { + return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) + + ".ui-disableSelection", function( event ) { + event.preventDefault(); + }); + }; + } + + /* END code from jQuery UI */ + + $.addFlex = function (t, p) { + if (t.grid) return false; //return if already exist + p = $.extend({ //apply default properties + height: 200, //default height + width: 'auto', //auto width + striped: true, //apply odd even stripes + novstripe: false, + minwidth: 30, //min width of columns + minheight: 80, //min height of columns + resizable: true, //allow table resizing + url: false, //URL if using data from AJAX + method: 'POST', //data sending method + dataType: 'xml', //type of data for AJAX, either xml or json + errormsg: 'Connection Error', + usepager: false, + nowrap: true, + page: 1, //current page + total: 1, //total pages + useRp: true, //use the results per page select box + rp: 15, //results per page + rpOptions: [10, 15, 20, 30, 50], //allowed per-page values + title: false, + idProperty: 'id', + pagestat: 'Displaying {from} to {to} of {total} items', + pagetext: 'Page', + outof: 'of', + findtext: 'Find', + params: [], //allow optional parameters to be passed around + procmsg: 'Processing, please wait ...', + query: '', + qtype: '', + nomsg: 'No items', + minColToggle: 1, //minimum allowed column to be hidden + showToggleBtn: true, //show or hide column toggle popup + hideOnSubmit: true, + autoload: true, + blockOpacity: 0.5, + preProcess: false, + addTitleToCell: false, // add a title attr to cells with truncated contents + dblClickResize: false, //auto resize column by double clicking + onDragCol: false, + onToggleCol: false, + onChangeSort: false, + onDoubleClick: false, + onSuccess: false, + onError: false, + onSubmit: false, //using a custom populate function + __mw: { //extendable middleware function holding object + datacol: function(p, col, val) { //middleware for formatting data columns + var _col = (typeof p.datacol[col] == 'function') ? p.datacol[col](val) : val; //format column using function + if(typeof p.datacol['*'] == 'function') { //if wildcard function exists + return p.datacol['*'](_col); //run wildcard function + } else { + return _col; //return column without wildcard + } + } + }, + getGridClass: function(g) { //get the grid class, always returns g + return g; + }, + datacol: {}, //datacol middleware object 'colkey': function(colval) {} + colResize: true, //from: http://stackoverflow.com/a/10615589 + colMove: true + }, p); + $(t).show() //show if hidden + .attr({ + cellPadding: 0, + cellSpacing: 0, + border: 0 + }) //remove padding and spacing + .removeAttr('width'); //remove width properties + //create grid class + var g = { + hset: {}, + rePosDrag: function () { + var cdleft = 0 - this.hDiv.scrollLeft; + if (this.hDiv.scrollLeft > 0) cdleft -= Math.floor(p.cgwidth / 2); + $(g.cDrag).css({ + top: g.hDiv.offsetTop + 1 + }); + var cdpad = this.cdpad; + var cdcounter=0; + $('div', g.cDrag).hide(); + $('thead tr:first th:visible', this.hDiv).each(function () { + var n = $('thead tr:first th:visible', g.hDiv).index(this); + var cdpos = parseInt($('div', this).width()); + if (cdleft == 0) cdleft -= Math.floor(p.cgwidth / 2); + cdpos = cdpos + cdleft + cdpad; + if (isNaN(cdpos)) { + cdpos = 0; + } + $('div:eq(' + n + ')', g.cDrag).css({ + 'left': (!(browser.mozilla) ? cdpos - cdcounter : cdpos) + 'px' + }).show(); + cdleft = cdpos; + cdcounter++; + }); + }, + fixHeight: function (newH) { + newH = false; + if (!newH) newH = $(g.bDiv).height(); + var hdHeight = $(this.hDiv).height(); + $('div', this.cDrag).each( + function () { + $(this).height(newH + hdHeight); + } + ); + var nd = parseInt($(g.nDiv).height(), 10); + if (nd > newH) $(g.nDiv).height(newH).width(200); + else $(g.nDiv).height('auto').width('auto'); + $(g.block).css({ + height: newH, + marginBottom: (newH * -1) + }); + var hrH = g.bDiv.offsetTop + newH; + if (p.height != 'auto' && p.resizable) hrH = g.vDiv.offsetTop; + $(g.rDiv).css({ + height: hrH + }); + }, + dragStart: function (dragtype, e, obj) { //default drag function start + if (dragtype == 'colresize' && p.colResize === true) {//column resize + $(g.nDiv).hide(); + $(g.nBtn).hide(); + var n = $('div', this.cDrag).index(obj); + var ow = $('th:visible div:eq(' + n + ')', this.hDiv).width(); + $(obj).addClass('dragging').siblings().hide(); + $(obj).prev().addClass('dragging').show(); + this.colresize = { + startX: e.pageX, + ol: parseInt(obj.style.left, 10), + ow: ow, + n: n + }; + $('body').css('cursor', 'col-resize'); + } else if (dragtype == 'vresize') {//table resize + var hgo = false; + $('body').css('cursor', 'row-resize'); + if (obj) { + hgo = true; + $('body').css('cursor', 'col-resize'); + } + this.vresize = { + h: p.height, + sy: e.pageY, + w: p.width, + sx: e.pageX, + hgo: hgo + }; + } else if (dragtype == 'colMove') {//column header drag + $(e.target).disableSelection(); //disable selecting the column header + if((p.colMove === true)) { + $(g.nDiv).hide(); + $(g.nBtn).hide(); + this.hset = $(this.hDiv).offset(); + this.hset.right = this.hset.left + $('table', this.hDiv).width(); + this.hset.bottom = this.hset.top + $('table', this.hDiv).height(); + this.dcol = obj; + this.dcoln = $('th', this.hDiv).index(obj); + this.colCopy = document.createElement("div"); + this.colCopy.className = "colCopy"; + this.colCopy.innerHTML = obj.innerHTML; + if (browser.msie) { + this.colCopy.className = "colCopy ie"; + } + $(this.colCopy).css({ + position: 'absolute', + 'float': 'left', + display: 'none', + textAlign: obj.align + }); + $('body').append(this.colCopy); + $(this.cDrag).hide(); + } + } + $('body').noSelect(); + }, + dragMove: function (e) { + if (this.colresize) {//column resize + var n = this.colresize.n; + var diff = e.pageX - this.colresize.startX; + var nleft = this.colresize.ol + diff; + var nw = this.colresize.ow + diff; + if (nw > p.minwidth) { + $('div:eq(' + n + ')', this.cDrag).css('left', nleft); + this.colresize.nw = nw; + } + } else if (this.vresize) {//table resize + var v = this.vresize; + var y = e.pageY; + var diff = y - v.sy; + if (!p.defwidth) p.defwidth = p.width; + if (p.width != 'auto' && !p.nohresize && v.hgo) { + var x = e.pageX; + var xdiff = x - v.sx; + var newW = v.w + xdiff; + if (newW > p.defwidth) { + this.gDiv.style.width = newW + 'px'; + p.width = newW; + } + } + var newH = v.h + diff; + if ((newH > p.minheight || p.height < p.minheight) && !v.hgo) { + this.bDiv.style.height = newH + 'px'; + p.height = newH; + this.fixHeight(newH); + } + v = null; + } else if (this.colCopy) { + $(this.dcol).addClass('thMove').removeClass('thOver'); + if (e.pageX > this.hset.right || e.pageX < this.hset.left || e.pageY > this.hset.bottom || e.pageY < this.hset.top) { + //this.dragEnd(); + $('body').css('cursor', 'move'); + } else { + $('body').css('cursor', 'pointer'); + } + $(this.colCopy).css({ + top: e.pageY + 10, + left: e.pageX + 20, + display: 'block' + }); + } + }, + dragEnd: function () { + if (this.colresize) { + var n = this.colresize.n; + var nw = this.colresize.nw; + $('th:visible div:eq(' + n + ')', this.hDiv).css('width', nw); + $('tr', this.bDiv).each( + function () { + var $tdDiv = $('td:visible div:eq(' + n + ')', this); + $tdDiv.css('width', nw); + g.addTitleToCell($tdDiv); + } + ); + this.hDiv.scrollLeft = this.bDiv.scrollLeft; + $('div:eq(' + n + ')', this.cDrag).siblings().show(); + $('.dragging', this.cDrag).removeClass('dragging'); + this.rePosDrag(); + this.fixHeight(); + this.colresize = false; + if ($.cookies) { + var name = p.colModel[n].name; // Store the widths in the cookies + $.cookie('flexiwidths/'+name, nw); + } + } else if (this.vresize) { + this.vresize = false; + } else if (this.colCopy) { + $(this.colCopy).remove(); + if (this.dcolt !== null) { + if (this.dcoln > this.dcolt) $('th:eq(' + this.dcolt + ')', this.hDiv).before(this.dcol); + else $('th:eq(' + this.dcolt + ')', this.hDiv).after(this.dcol); + this.switchCol(this.dcoln, this.dcolt); + $(this.cdropleft).remove(); + $(this.cdropright).remove(); + this.rePosDrag(); + if (p.onDragCol) { + p.onDragCol(this.dcoln, this.dcolt); + } + } + this.dcol = null; + this.hset = null; + this.dcoln = null; + this.dcolt = null; + this.colCopy = null; + $('.thMove', this.hDiv).removeClass('thMove'); + $(this.cDrag).show(); + } + $('body').css('cursor', 'default'); + $('body').noSelect(false); + }, + toggleCol: function (cid, visible) { + var ncol = $("th[axis='col" + cid + "']", this.hDiv)[0]; + var n = $('thead th', g.hDiv).index(ncol); + var cb = $('input[value=' + cid + ']', g.nDiv)[0]; + if (visible == null) { + visible = ncol.hidden; + } + if ($('input:checked', g.nDiv).length < p.minColToggle && !visible) { + return false; + } + if (visible) { + ncol.hidden = false; + $(ncol).show(); + cb.checked = true; + } else { + ncol.hidden = true; + $(ncol).hide(); + cb.checked = false; + } + $('tbody tr', t).each( + function () { + if (visible) { + $('td:eq(' + n + ')', this).show(); + } else { + $('td:eq(' + n + ')', this).hide(); + } + } + ); + this.rePosDrag(); + if (p.onToggleCol) { + p.onToggleCol(cid, visible); + } + return visible; + }, + switchCol: function (cdrag, cdrop) { //switch columns + $('tbody tr', t).each( + function () { + if (cdrag > cdrop) $('td:eq(' + cdrop + ')', this).before($('td:eq(' + cdrag + ')', this)); + else $('td:eq(' + cdrop + ')', this).after($('td:eq(' + cdrag + ')', this)); + } + ); + //switch order in nDiv + if (cdrag > cdrop) { + $('tr:eq(' + cdrop + ')', this.nDiv).before($('tr:eq(' + cdrag + ')', this.nDiv)); + } else { + $('tr:eq(' + cdrop + ')', this.nDiv).after($('tr:eq(' + cdrag + ')', this.nDiv)); + } + if (browser.msie && browser.version < 7.0) { + $('tr:eq(' + cdrop + ') input', this.nDiv)[0].checked = true; + } + this.hDiv.scrollLeft = this.bDiv.scrollLeft; + }, + scroll: function () { + this.hDiv.scrollLeft = this.bDiv.scrollLeft; + this.rePosDrag(); + }, + addData: function (data) { //parse data + if (p.dataType == 'json') { + data = $.extend({rows: [], page: 0, total: 0}, data); + } + if (p.preProcess) { + data = p.preProcess(data); + } + $('.pReload', this.pDiv).removeClass('loading'); + this.loading = false; + if (!data) { + $('.pPageStat', this.pDiv).html(p.errormsg); + if (p.onSuccess) p.onSuccess(this); + return false; + } + if (p.dataType == 'xml') { + p.total = +$('rows total', data).text(); + } else { + p.total = data.total; + } + if (p.total === 0) { + $('tr, a, td, div', t).unbind(); + $(t).empty(); + p.pages = 1; + p.page = 1; + this.buildpager(); + $('.pPageStat', this.pDiv).html(p.nomsg); + if (p.onSuccess) p.onSuccess(this); + return false; + } + p.pages = Math.ceil(p.total / p.rp); + if (p.dataType == 'xml') { + p.page = +$('rows page', data).text(); + } else { + p.page = data.page; + } + this.buildpager(); + //build new body + var tbody = document.createElement('tbody'); + if (p.dataType == 'json') { + $.each(data.rows, function (i, row) { + var tr = document.createElement('tr'); + var jtr = $(tr); + if (row.name) tr.name = row.name; + if (row.color) { + jtr.css('background',row.color); + } else { + if (i % 2 && p.striped) tr.className = 'erow'; + } + if (row[p.idProperty]) { + tr.id = 'row' + row[p.idProperty]; + jtr.attr('data-id', row[p.idProperty]); + } + $('thead tr:first th', g.hDiv).each( //add cell + function () { + var td = document.createElement('td'); + var idx = $(this).attr('axis').substr(3); + td.align = this.align; + // If each row is the object itself (no 'cell' key) + if (typeof row.cell == 'undefined') { + td.innerHTML = row[p.colModel[idx].name]; + } else { + // If the json elements aren't named (which is typical), use numeric order + var iHTML = ''; + if (typeof row.cell[idx] != "undefined") { + iHTML = (row.cell[idx] !== null) ? row.cell[idx] : ''; //null-check for Opera-browser + } else { + iHTML = row.cell[p.colModel[idx].name]; + } + td.innerHTML = p.__mw.datacol(p, $(this).attr('abbr'), iHTML); //use middleware datacol to format cols + } + // If the content has a option, decode it. + var offs = td.innerHTML.indexOf( '0 ) { + $(td).css('background', text.substr(offs+7,7) ); + } + + $(td).attr('abbr', $(this).attr('abbr')); + $(tr).append(td); + td = null; + } + ); + if ($('thead', this.gDiv).length < 1) {//handle if grid has no headers + for (idx = 0; idx < row.cell.length; idx++) { + var td = document.createElement('td'); + // If the json elements aren't named (which is typical), use numeric order + if (typeof row.cell[idx] != "undefined") { + td.innerHTML = (row.cell[idx] != null) ? row.cell[idx] : '';//null-check for Opera-browser + } else { + td.innerHTML = row.cell[p.colModel[idx].name]; + } + $(tr).append(td); + td = null; + } + } + $(tbody).append(tr); + tr = null; + }); + } else if (p.dataType == 'xml') { + var i = 1; + $("rows row", data).each(function () { + i++; + var tr = document.createElement('tr'); + if ($(this).attr('name')) tr.name = $(this).attr('name'); + if ($(this).attr('color')) { + $(tr).css('background',$(this).attr('id')); + } else { + if (i % 2 && p.striped) tr.className = 'erow'; + } + var nid = $(this).attr('id'); + if (nid) { + tr.id = 'row' + nid; + } + nid = null; + var robj = this; + $('thead tr:first th', g.hDiv).each(function () { + var td = document.createElement('td'); + var idx = $(this).attr('axis').substr(3); + td.align = this.align; + + var text = $("cell:eq(" + idx + ")", robj).text(); + var offs = text.indexOf( '0 ) { + $(td).css('background', text.substr(offs+7,7) ); + } + td.innerHTML = p.__mw.datacol(p, $(this).attr('abbr'), text); //use middleware datacol to format cols + $(td).attr('abbr', $(this).attr('abbr')); + $(tr).append(td); + td = null; + }); + if ($('thead', this.gDiv).length < 1) {//handle if grid has no headers + $('cell', this).each(function () { + var td = document.createElement('td'); + td.innerHTML = $(this).text(); + $(tr).append(td); + td = null; + }); + } + $(tbody).append(tr); + tr = null; + robj = null; + }); + } + $('tr', t).unbind(); + $(t).empty(); + $(t).append(tbody); + this.addCellProp(); + this.addRowProp(); + this.rePosDrag(); + tbody = null; + data = null; + i = null; + if (p.onSuccess) { + p.onSuccess(this); + } + if (p.hideOnSubmit) { + $(g.block).remove(); + } + this.hDiv.scrollLeft = this.bDiv.scrollLeft; + if (browser.opera) { + $(t).css('visibility', 'visible'); + } + }, + changeSort: function (th) { //change sortorder + if (this.loading) { + return true; + } + $(g.nDiv).hide(); + $(g.nBtn).hide(); + if (p.sortname == $(th).attr('abbr')) { + if (p.sortorder == 'asc') { + p.sortorder = 'desc'; + } else { + p.sortorder = 'asc'; + } + } + $(th).addClass('sorted').siblings().removeClass('sorted'); + $('.sdesc', this.hDiv).removeClass('sdesc'); + $('.sasc', this.hDiv).removeClass('sasc'); + $('div', th).addClass('s' + p.sortorder); + p.sortname = $(th).attr('abbr'); + if (p.onChangeSort) { + p.onChangeSort(p.sortname, p.sortorder); + } else { + this.populate(); + } + }, + buildpager: function () { //rebuild pager based on new properties + $('.pcontrol input', this.pDiv).val(p.page); + $('.pcontrol span', this.pDiv).html(p.pages); + var r1 = p.total == 0 ? 0 : (p.page - 1) * p.rp + 1; + var r2 = r1 + p.rp - 1; + if (p.total < r2) { + r2 = p.total; + } + var stat = p.pagestat; + stat = stat.replace(/{from}/, r1); + stat = stat.replace(/{to}/, r2); + stat = stat.replace(/{total}/, p.total); + $('.pPageStat', this.pDiv).html(stat); + }, + populate: function () { //get latest data + if (this.loading) { + return true; + } + if (p.onSubmit) { + var gh = p.onSubmit(); + if (!gh) { + return false; + } + } + this.loading = true; + if (!p.url) { + return false; + } + $('.pPageStat', this.pDiv).html(p.procmsg); + $('.pReload', this.pDiv).addClass('loading'); + $(g.block).css({ + top: g.bDiv.offsetTop + }); + if (p.hideOnSubmit) { + $(this.gDiv).prepend(g.block); + } + if (browser.opera) { + $(t).css('visibility', 'hidden'); + } + if (!p.newp) { + p.newp = 1; + } + if (p.page > p.pages) { + p.page = p.pages; + } + var param = [{ + name: 'page', + value: p.newp + }, { + name: 'rp', + value: p.rp + }, { + name: 'sortname', + value: p.sortname + }, { + name: 'sortorder', + value: p.sortorder + }, { + name: 'query', + value: p.query + }, { + name: 'qtype', + value: p.qtype + }]; + if (p.params.length) { + for (var pi = 0; pi < p.params.length; pi++) { + param[param.length] = p.params[pi]; + } + } + $.ajax({ + type: p.method, + url: p.url, + data: param, + dataType: p.dataType, + success: function (data) { + g.addData(data); + }, + error: function (XMLHttpRequest, textStatus, errorThrown) { + try { + if (p.onError) p.onError(XMLHttpRequest, textStatus, errorThrown); + } catch (e) {} + } + }); + }, + doSearch: function () { + p.query = $('input[name=q]', g.sDiv).val(); + p.qtype = $('select[name=qtype]', g.sDiv).val(); + p.newp = 1; + this.populate(); + }, + changePage: function (ctype) { //change page + if (this.loading) { + return true; + } + switch (ctype) { + case 'first': + p.newp = 1; + break; + case 'prev': + if (p.page > 1) { + p.newp = parseInt(p.page, 10) - 1; + } + break; + case 'next': + if (p.page < p.pages) { + p.newp = parseInt(p.page, 10) + 1; + } + break; + case 'last': + p.newp = p.pages; + break; + case 'input': + var nv = parseInt($('.pcontrol input', this.pDiv).val(), 10); + if (isNaN(nv)) { + nv = 1; + } + if (nv < 1) { + nv = 1; + } else if (nv > p.pages) { + nv = p.pages; + } + $('.pcontrol input', this.pDiv).val(nv); + p.newp = nv; + break; + } + if (p.newp == p.page) { + return false; + } + if (p.onChangePage) { + p.onChangePage(p.newp); + } else { + this.populate(); + } + }, + addCellProp: function () { + $('tbody tr td', g.bDiv).each(function () { + var tdDiv = document.createElement('div'); + var n = $('td', $(this).parent()).index(this); + var pth = $('th:eq(' + n + ')', g.hDiv).get(0); + if (pth != null) { + if (p.sortname == $(pth).attr('abbr') && p.sortname) { + this.className = 'sorted'; + } + $(tdDiv).css({ + textAlign: pth.align, + width: $('div:first', pth)[0].style.width + }); + if (pth.hidden) { + $(this).css('display', 'none'); + } + } + if (p.nowrap == false) { + $(tdDiv).css('white-space', 'normal'); + } + if (this.innerHTML == '') { + this.innerHTML = ' '; + } + tdDiv.innerHTML = this.innerHTML; + var prnt = $(this).parent()[0]; + var pid = false; + if (prnt.id) { + pid = prnt.id.substr(3); + } + if (pth != null) { + if (pth.process) pth.process(tdDiv, pid); + } + $(this).empty().append(tdDiv).removeAttr('width'); //wrap content + g.addTitleToCell(tdDiv); + }); + }, + getCellDim: function (obj) {// get cell prop for editable event + var ht = parseInt($(obj).height(), 10); + var pht = parseInt($(obj).parent().height(), 10); + var wt = parseInt(obj.style.width, 10); + var pwt = parseInt($(obj).parent().width(), 10); + var top = obj.offsetParent.offsetTop; + var left = obj.offsetParent.offsetLeft; + var pdl = parseInt($(obj).css('paddingLeft'), 10); + var pdt = parseInt($(obj).css('paddingTop'), 10); + return { + ht: ht, + wt: wt, + top: top, + left: left, + pdl: pdl, + pdt: pdt, + pht: pht, + pwt: pwt + }; + }, + addRowProp: function () { + $('tbody tr', g.bDiv).on('click', function (e) { + var obj = (e.target || e.srcElement); + if (obj.href || obj.type) return true; + if (e.ctrlKey || e.metaKey) { + // mousedown already took care of this case + return; + } + $(this).toggleClass('trSelected'); + if (p.singleSelect && ! g.multisel) { + $(this).siblings().removeClass('trSelected'); + } + }).on('mousedown', function (e) { + if (e.shiftKey) { + $(this).toggleClass('trSelected'); + g.multisel = true; + this.focus(); + $(g.gDiv).noSelect(); + } + if (e.ctrlKey || e.metaKey) { + $(this).toggleClass('trSelected'); + g.multisel = true; + this.focus(); + } + }).on('mouseup', function (e) { + if (g.multisel && ! (e.ctrlKey || e.metaKey)) { + g.multisel = false; + $(g.gDiv).noSelect(false); + } + }).on('dblclick', function () { + if (p.onDoubleClick) { + p.onDoubleClick(this, g, p); + } + }).hover(function (e) { + if (g.multisel && e.shiftKey) { + $(this).toggleClass('trSelected'); + } + }, function () {}); + if (browser.msie && browser.version < 7.0) { + $(this).hover(function () { + $(this).addClass('trOver'); + }, function () { + $(this).removeClass('trOver'); + }); + } + }, + + combo_flag: true, + combo_resetIndex: function(selObj) + { + if(this.combo_flag) { + selObj.selectedIndex = 0; + } + this.combo_flag = true; + }, + combo_doSelectAction: function(selObj) + { + eval( selObj.options[selObj.selectedIndex].value ); + selObj.selectedIndex = 0; + this.combo_flag = false; + }, + //Add title attribute to div if cell contents is truncated + addTitleToCell: function(tdDiv) { + if(p.addTitleToCell) { + var $span = $('').css('display', 'none'), + $div = (tdDiv instanceof jQuery) ? tdDiv : $(tdDiv), + div_w = $div.outerWidth(), + span_w = 0; + + $('body').children(':first').before($span); + $span.html($div.html()); + $span.css('font-size', '' + $div.css('font-size')); + $span.css('padding-left', '' + $div.css('padding-left')); + span_w = $span.innerWidth(); + $span.remove(); + + if(span_w > div_w) { + $div.attr('title', $div.text()); + } else { + $div.removeAttr('title'); + } + } + }, + autoResizeColumn: function (obj) { + if(!p.dblClickResize) { + return; + } + var n = $('div', this.cDrag).index(obj), + $th = $('th:visible div:eq(' + n + ')', this.hDiv), + ol = parseInt(obj.style.left, 10), + ow = $th.width(), + nw = 0, + nl = 0, + $span = $(''); + $('body').children(':first').before($span); + $span.html($th.html()); + $span.css('font-size', '' + $th.css('font-size')); + $span.css('padding-left', '' + $th.css('padding-left')); + $span.css('padding-right', '' + $th.css('padding-right')); + nw = $span.width(); + $('tr', this.bDiv).each(function () { + var $tdDiv = $('td:visible div:eq(' + n + ')', this), + spanW = 0; + $span.html($tdDiv.html()); + $span.css('font-size', '' + $tdDiv.css('font-size')); + $span.css('padding-left', '' + $tdDiv.css('padding-left')); + $span.css('padding-right', '' + $tdDiv.css('padding-right')); + spanW = $span.width(); + nw = (spanW > nw) ? spanW : nw; + }); + $span.remove(); + nw = (p.minWidth > nw) ? p.minWidth : nw; + nl = ol + (nw - ow); + $('div:eq(' + n + ')', this.cDrag).css('left', nl); + this.colresize = { + nw: nw, + n: n + }; + g.dragEnd(); + }, + pager: 0 + }; + + g = p.getGridClass(g); //get the grid class + + if (p.colModel) { //create model if any + thead = document.createElement('thead'); + var tr = document.createElement('tr'); + for (var i = 0; i < p.colModel.length; i++) { + var cm = p.colModel[i]; + var th = document.createElement('th'); + $(th).attr('axis', 'col' + i); + if( cm ) { // only use cm if its defined + if ($.cookies) { + var cookie_width = 'flexiwidths/'+cm.name; // Re-Store the widths in the cookies + if( $.cookie(cookie_width) != undefined ) { + cm.width = $.cookie(cookie_width); + } + } + if( cm.display != undefined ) { + th.innerHTML = cm.display; + } + if (cm.name && cm.sortable) { + $(th).attr('abbr', cm.name); + } + if (cm.align) { + th.align = cm.align; + } + if (cm.width) { + $(th).attr('width', cm.width); + } + if ($(cm).attr('hide')) { + th.hidden = true; + } + if (cm.process) { + th.process = cm.process; + } + } else { + th.innerHTML = ""; + $(th).attr('width',30); + } + $(tr).append(th); + } + $(thead).append(tr); + $(t).prepend(thead); + } // end if p.colmodel + //init divs + g.gDiv = document.createElement('div'); //create global container + g.mDiv = document.createElement('div'); //create title container + g.hDiv = document.createElement('div'); //create header container + g.bDiv = document.createElement('div'); //create body container + g.vDiv = document.createElement('div'); //create grip + g.rDiv = document.createElement('div'); //create horizontal resizer + g.cDrag = document.createElement('div'); //create column drag + g.block = document.createElement('div'); //creat blocker + g.nDiv = document.createElement('div'); //create column show/hide popup + g.nBtn = document.createElement('div'); //create column show/hide button + g.iDiv = document.createElement('div'); //create editable layer + g.tDiv = document.createElement('div'); //create toolbar + g.sDiv = document.createElement('div'); + g.pDiv = document.createElement('div'); //create pager container + + if(p.colResize === false) { //don't display column drag if we are not using it + $(g.cDrag).css('display', 'none'); + } + + if (!p.usepager) { + g.pDiv.style.display = 'none'; + } + g.hTable = document.createElement('table'); + g.gDiv.className = 'flexigrid'; + if (p.width != 'auto') { + g.gDiv.style.width = p.width + (isNaN(p.width) ? '' : 'px'); + } + //add conditional classes + if (browser.msie) { + $(g.gDiv).addClass('ie'); + } + if (p.novstripe) { + $(g.gDiv).addClass('novstripe'); + } + $(t).before(g.gDiv); + $(g.gDiv).append(t); + //set toolbar + if (p.buttons) { + g.tDiv.className = 'tDiv'; + var tDiv2 = document.createElement('div'); + tDiv2.className = 'tDiv2'; + for (var i = 0; i < p.buttons.length; i++) { + var btn = p.buttons[i]; + if (!btn.separator) { + var btnDiv = document.createElement('div'); + btnDiv.className = 'fbutton'; + btnDiv.innerHTML = ("
") + (btn.hidename ? " " : btn.name) + ("
"); + if (btn.bclass) $('span', btnDiv).addClass(btn.bclass).css({ + paddingLeft: 20 + }); + if (btn.bimage) // if bimage defined, use its string as an image url for this buttons style (RS) + $('span',btnDiv).css( 'background', 'url('+btn.bimage+') no-repeat center left' ); + $('span',btnDiv).css( 'paddingLeft', 20 ); + + if (btn.tooltip) // add title if exists (RS) + $('span',btnDiv)[0].title = btn.tooltip; + + btnDiv.onpress = btn.onpress; + btnDiv.name = btn.name; + if (btn.id) { + btnDiv.id = btn.id; + } + if (btn.onpress) { + $(btnDiv).click(function () { + this.onpress(this.id || this.name, g.gDiv); + }); + } + $(tDiv2).append(btnDiv); + if (browser.msie && browser.version < 7.0) { + $(btnDiv).hover(function () { + $(this).addClass('fbOver'); + }, function () { + $(this).removeClass('fbOver'); + }); + } + } else { + $(tDiv2).append("
"); + } + } + $(g.tDiv).append(tDiv2); + $(g.tDiv).append("
"); + $(g.gDiv).prepend(g.tDiv); + } + g.hDiv.className = 'hDiv'; + + // Define a combo button set with custom action'ed calls when clicked. + if( p.combobuttons && $(g.tDiv2) ) + { + var btnDiv = document.createElement('div'); + btnDiv.className = 'fbutton'; + + var tSelect = document.createElement('select'); + $(tSelect).change( function () { g.combo_doSelectAction( tSelect ) } ); + $(tSelect).click( function () { g.combo_resetIndex( tSelect) } ); + tSelect.className = 'cselect'; + $(btnDiv).append(tSelect); + + for (i=0;i'); + $('div', g.hDiv).append(g.hTable); + var thead = $("thead:first", t).get(0); + if (thead) $(g.hTable).append(thead); + thead = null; + if (!p.colmodel) var ci = 0; + $('thead tr:first th', g.hDiv).each(function () { + var thdiv = document.createElement('div'); + if ($(this).attr('abbr')) { + $(this).click(function (e) { + if (!$(this).hasClass('thOver')) return false; + var obj = (e.target || e.srcElement); + if (obj.href || obj.type) return true; + g.changeSort(this); + }); + if ($(this).attr('abbr') == p.sortname) { + this.className = 'sorted'; + thdiv.className = 's' + p.sortorder; + } + } + if (this.hidden) { + $(this).hide(); + } + if (!p.colmodel) { + $(this).attr('axis', 'col' + ci++); + } + + // if there isn't a default width, then the column headers don't match + // i'm sure there is a better way, but this at least stops it failing + if (this.width == '') { + this.width = 100; + } + + $(thdiv).css({ + textAlign: this.align, + width: this.width + 'px' + }); + thdiv.innerHTML = this.innerHTML; + $(this).empty().append(thdiv).removeAttr('width').mousedown(function (e) { + g.dragStart('colMove', e, this); + }).hover(function () { + if (!g.colresize && !$(this).hasClass('thMove') && !g.colCopy) { + $(this).addClass('thOver'); + } + if ($(this).attr('abbr') != p.sortname && !g.colCopy && !g.colresize && $(this).attr('abbr')) { + $('div', this).addClass('s' + p.sortorder); + } else if ($(this).attr('abbr') == p.sortname && !g.colCopy && !g.colresize && $(this).attr('abbr')) { + var no = (p.sortorder == 'asc') ? 'desc' : 'asc'; + $('div', this).removeClass('s' + p.sortorder).addClass('s' + no); + } + if (g.colCopy) { + var n = $('th', g.hDiv).index(this); + if (n == g.dcoln) { + return false; + } + if (n < g.dcoln) { + $(this).append(g.cdropleft); + } else { + $(this).append(g.cdropright); + } + g.dcolt = n; + } else if (!g.colresize) { + var nv = $('th:visible', g.hDiv).index(this); + var onl = parseInt($('div:eq(' + nv + ')', g.cDrag).css('left'), 10); + var nw = jQuery(g.nBtn).outerWidth(); + var nl = onl - nw + Math.floor(p.cgwidth / 2); + $(g.nDiv).hide(); + $(g.nBtn).hide(); + $(g.nBtn).css({ + 'left': nl, + top: g.hDiv.offsetTop + }).show(); + var ndw = parseInt($(g.nDiv).width(), 10); + $(g.nDiv).css({ + top: g.bDiv.offsetTop + }); + if ((nl + ndw) > $(g.gDiv).width()) { + $(g.nDiv).css('left', onl - ndw + 1); + } else { + $(g.nDiv).css('left', nl); + } + if ($(this).hasClass('sorted')) { + $(g.nBtn).addClass('srtd'); + } else { + $(g.nBtn).removeClass('srtd'); + } + } + }, function () { + $(this).removeClass('thOver'); + if ($(this).attr('abbr') != p.sortname) { + $('div', this).removeClass('s' + p.sortorder); + } else if ($(this).attr('abbr') == p.sortname) { + var no = (p.sortorder == 'asc') ? 'desc' : 'asc'; + $('div', this).addClass('s' + p.sortorder).removeClass('s' + no); + } + if (g.colCopy) { + $(g.cdropleft).remove(); + $(g.cdropright).remove(); + g.dcolt = null; + } + }); //wrap content + }); + //set bDiv + g.bDiv.className = 'bDiv'; + $(t).before(g.bDiv); + $(g.bDiv).css({ + height: (p.height == 'auto') ? 'auto' : p.height + "px" + }).scroll(function (e) { + g.scroll() + }).append(t); + if (p.height == 'auto') { + $('table', g.bDiv).addClass('autoht'); + } + //add td & row properties + g.addCellProp(); + g.addRowProp(); + //set cDrag only if we are using it + if (p.colResize === true) { + var cdcol = $('thead tr:first th:first', g.hDiv).get(0); + if(cdcol !== null) { + g.cDrag.className = 'cDrag'; + g.cdpad = 0; + g.cdpad += (isNaN(parseInt($('div', cdcol).css('borderLeftWidth'), 10)) ? 0 : parseInt($('div', cdcol).css('borderLeftWidth'), 10)); + g.cdpad += (isNaN(parseInt($('div', cdcol).css('borderRightWidth'), 10)) ? 0 : parseInt($('div', cdcol).css('borderRightWidth'), 10)); + g.cdpad += (isNaN(parseInt($('div', cdcol).css('paddingLeft'), 10)) ? 0 : parseInt($('div', cdcol).css('paddingLeft'), 10)); + g.cdpad += (isNaN(parseInt($('div', cdcol).css('paddingRight'), 10)) ? 0 : parseInt($('div', cdcol).css('paddingRight'), 10)); + g.cdpad += (isNaN(parseInt($(cdcol).css('borderLeftWidth'), 10)) ? 0 : parseInt($(cdcol).css('borderLeftWidth'), 10)); + g.cdpad += (isNaN(parseInt($(cdcol).css('borderRightWidth'), 10)) ? 0 : parseInt($(cdcol).css('borderRightWidth'), 10)); + g.cdpad += (isNaN(parseInt($(cdcol).css('paddingLeft'), 10)) ? 0 : parseInt($(cdcol).css('paddingLeft'), 10)); + g.cdpad += (isNaN(parseInt($(cdcol).css('paddingRight'), 10)) ? 0 : parseInt($(cdcol).css('paddingRight'), 10)); + $(g.bDiv).before(g.cDrag); + var cdheight = $(g.bDiv).height(); + var hdheight = $(g.hDiv).height(); + $(g.cDrag).css({ + top: -hdheight + 'px' + }); + $('thead tr:first th', g.hDiv).each(function() { + var cgDiv = document.createElement('div'); + $(g.cDrag).append(cgDiv); + if (!p.cgwidth) { + p.cgwidth = $(cgDiv).width(); + } + $(cgDiv).css({ + height: cdheight + hdheight + }).mousedown(function(e) { + g.dragStart('colresize', e, this); + }).dblclick(function(e) { + g.autoResizeColumn(this); + }); + if (browser.msie && browser.version < 7.0) { + g.fixHeight($(g.gDiv).height()); + $(cgDiv).hover(function() { + g.fixHeight(); + $(this).addClass('dragging'); + }, function() { + if(!g.colresize) { + $(this).removeClass('dragging'); + } + }); + } + }); + } + } + //add strip + if (p.striped) { + $('tbody tr:odd', g.bDiv).addClass('erow'); + } + if (p.resizable && p.height != 'auto') { + g.vDiv.className = 'vGrip'; + $(g.vDiv).mousedown(function (e) { + g.dragStart('vresize', e); + }).html(''); + $(g.bDiv).after(g.vDiv); + } + if (p.resizable && p.width != 'auto' && !p.nohresize) { + g.rDiv.className = 'hGrip'; + $(g.rDiv).mousedown(function (e) { + g.dragStart('vresize', e, true); + }).html('').css('height', $(g.gDiv).height()); + if (browser.msie && browser.version < 7.0) { + $(g.rDiv).hover(function () { + $(this).addClass('hgOver'); + }, function () { + $(this).removeClass('hgOver'); + }); + } + $(g.gDiv).append(g.rDiv); + } + // add pager + if (p.usepager) { + g.pDiv.className = 'pDiv'; + g.pDiv.innerHTML = '
'; + $(g.bDiv).after(g.pDiv); + var html = '
' + p.pagetext + ' ' + p.outof + ' 1
'; + $('div', g.pDiv).html(html); + $('.pReload', g.pDiv).click(function () { + g.populate(); + }); + $('.pFirst', g.pDiv).click(function () { + g.changePage('first'); + }); + $('.pPrev', g.pDiv).click(function () { + g.changePage('prev'); + }); + $('.pNext', g.pDiv).click(function () { + g.changePage('next'); + }); + $('.pLast', g.pDiv).click(function () { + g.changePage('last'); + }); + $('.pcontrol input', g.pDiv).keydown(function (e) { + if (e.keyCode == 13) { + g.changePage('input'); + } + }); + if (browser.msie && browser.version < 7) $('.pButton', g.pDiv).hover(function () { + $(this).addClass('pBtnOver'); + }, function () { + $(this).removeClass('pBtnOver'); + }); + if (p.useRp) { + var opt = '', + sel = ''; + for (var nx = 0; nx < p.rpOptions.length; nx++) { + if (p.rp == p.rpOptions[nx]) sel = 'selected="selected"'; + else sel = ''; + opt += ""; + } + $('.pDiv2', g.pDiv).prepend("
"); + $('select', g.pDiv).change(function () { + if (p.onRpChange) { + p.onRpChange(+this.value); + } else { + p.newp = 1; + p.rp = +this.value; + g.populate(); + } + }); + } + //add search button + if (p.searchitems) { + $('.pDiv2', g.pDiv).prepend("
"); + $('.pSearch', g.pDiv).click(function () { + $(g.sDiv).slideToggle('fast', function () { + $('.sDiv:visible input:first', g.gDiv).trigger('focus'); + }); + }); + //add search box + g.sDiv.className = 'sDiv'; + var sitems = p.searchitems; + var sopt = '', sel = ''; + for (var s = 0; s < sitems.length; s++) { + if (p.qtype === '' && sitems[s].isdefault === true) { + p.qtype = sitems[s].name; + sel = 'selected="selected"'; + } else { + sel = ''; + } + sopt += ""; + } + if (p.qtype === '') { + p.qtype = sitems[0].name; + } + $(g.sDiv).append("
" + p.findtext + + " "+ + "
"); + //Split into separate selectors because of bug in jQuery 1.3.2 + $('input[name=q]', g.sDiv).keydown(function (e) { + if (e.keyCode == 13) { + g.doSearch(); + } + }); + $('select[name=qtype]', g.sDiv).keydown(function (e) { + if (e.keyCode == 13) { + g.doSearch(); + } + }); + $('input[value=Clear]', g.sDiv).click(function () { + $('input[name=q]', g.sDiv).val(''); + p.query = ''; + g.doSearch(); + }); + $(g.bDiv).after(g.sDiv); + } + } + $(g.pDiv, g.sDiv).append("
"); + // add title + if (p.title) { + g.mDiv.className = 'mDiv'; + g.mDiv.innerHTML = '
' + p.title + '
'; + $(g.gDiv).prepend(g.mDiv); + if (p.showTableToggleBtn) { + $(g.mDiv).append('
'); + $('div.ptogtitle', g.mDiv).click(function () { + $(g.gDiv).toggleClass('hideBody'); + $(this).toggleClass('vsble'); + }); + } + } + //setup cdrops + g.cdropleft = document.createElement('span'); + g.cdropleft.className = 'cdropleft'; + g.cdropright = document.createElement('span'); + g.cdropright.className = 'cdropright'; + //add block + g.block.className = 'gBlock'; + var gh = $(g.bDiv).height(); + var gtop = g.bDiv.offsetTop; + $(g.block).css({ + width: g.bDiv.style.width, + height: gh, + background: 'white', + position: 'relative', + marginBottom: (gh * -1), + zIndex: 1, + top: gtop, + left: '0px' + }); + $(g.block).fadeTo(0, p.blockOpacity); + // add column control + if ($('th', g.hDiv).length) { + g.nDiv.className = 'nDiv'; + g.nDiv.innerHTML = "
"; + $(g.nDiv).css({ + marginBottom: (gh * -1), + display: 'none', + top: gtop + }).noSelect(); + var cn = 0; + $('th div', g.hDiv).each(function () { + var kcol = $("th[axis='col" + cn + "']", g.hDiv)[0]; + var chk = 'checked="checked"'; + if (kcol.style.display == 'none') { + chk = ''; + } + $('tbody', g.nDiv).append('' + this.innerHTML + ''); + cn++; + }); + if (browser.msie && browser.version < 7.0) $('tr', g.nDiv).hover(function () { + $(this).addClass('ndcolover'); + }, function () { + $(this).removeClass('ndcolover'); + }); + $('td.ndcol2', g.nDiv).click(function () { + if ($('input:checked', g.nDiv).length <= p.minColToggle && $(this).prev().find('input')[0].checked) return false; + return g.toggleCol($(this).prev().find('input').val()); + }); + $('input.togCol', g.nDiv).click(function () { + if ($('input:checked', g.nDiv).length < p.minColToggle && this.checked === false) return false; + $(this).parent().next().trigger('click'); + }); + $(g.gDiv).prepend(g.nDiv); + $(g.nBtn).addClass('nBtn') + .html('
') + .attr('title', 'Hide/Show Columns') + .click(function () { + $(g.nDiv).toggle(); + return true; + } + ); + if (p.showToggleBtn) { + $(g.gDiv).prepend(g.nBtn); + } + } + // add date edit layer + $(g.iDiv).addClass('iDiv').css({ + display: 'none' + }); + $(g.bDiv).append(g.iDiv); + // add flexigrid events + $(g.bDiv).hover(function () { + $(g.nDiv).hide(); + $(g.nBtn).hide(); + }, function () { + if (g.multisel) { + g.multisel = false; + } + }); + $(g.gDiv).hover(function () {}, function () { + $(g.nDiv).hide(); + $(g.nBtn).hide(); + }); + //add document events + $(document).mousemove(function (e) { + g.dragMove(e); + }).mouseup(function (e) { + g.dragEnd(); + }).hover(function () {}, function () { + g.dragEnd(); + }); + //browser adjustments + if (browser.msie && browser.version < 7.0) { + $('.hDiv,.bDiv,.mDiv,.pDiv,.vGrip,.tDiv, .sDiv', g.gDiv).css({ + width: '100%' + }); + $(g.gDiv).addClass('ie6'); + if (p.width != 'auto') { + $(g.gDiv).addClass('ie6fullwidthbug'); + } + } + g.rePosDrag(); + g.fixHeight(); + //make grid functions accessible + t.p = p; + t.grid = g; + // load data + if (p.url && p.autoload) { + g.populate(); + } + return t; + }; + var docloaded = false; + $(document).ready(function () { + docloaded = true; + }); + $.fn.flexigrid = function (p) { + return this.each(function () { + if (!docloaded) { + $(this).hide(); + var t = this; + $(document).ready(function () { + $.addFlex(t, p); + }); + } else { + $.addFlex(this, p); + } + }); + }; //end flexigrid + $.fn.flexReload = function (p) { // function to reload grid + return this.each(function () { + if (this.grid && this.p.url) this.grid.populate(); + }); + }; //end flexReload + $.fn.flexOptions = function (p) { //function to update general options + return this.each(function () { + if (this.grid) $.extend(this.p, p); + }); + }; //end flexOptions + $.fn.flexToggleCol = function (cid, visible) { // function to reload grid + return this.each(function () { + if (this.grid) this.grid.toggleCol(cid, visible); + }); + }; //end flexToggleCol + $.fn.flexAddData = function (data) { // function to add data to grid + return this.each(function () { + if (this.grid) this.grid.addData(data); + }); + }; + $.fn.noSelect = function (p) { //no select plugin by me :-) + var prevent = (p === null) ? true : p; + if (prevent) { + return this.each(function () { + if (browser.msie || browser.safari) $(this).bind('selectstart', function () { + return false; + }); + else if (browser.mozilla) { + $(this).css('MozUserSelect', 'none'); + $('body').trigger('focus'); + } else if (browser.opera) $(this).bind('mousedown', function () { + return false; + }); + else $(this).attr('unselectable', 'on'); + }); + } else { + return this.each(function () { + if (browser.msie || browser.safari) $(this).unbind('selectstart'); + else if (browser.mozilla) $(this).css('MozUserSelect', 'inherit'); + else if (browser.opera) $(this).unbind('mousedown'); + else $(this).removeAttr('unselectable', 'on'); + }); + } + }; //end noSelect + $.fn.flexSearch = function(p) { // function to search grid + return this.each( function() { if (this.grid&&this.p.searchitems) this.grid.doSearch(); }); + }; //end flexSearch + $.fn.selectedRows = function (p) { // Returns the selected rows as an array, taken and adapted from http://stackoverflow.com/questions/11868404/flexigrid-get-selected-row-columns-values + var arReturn = []; + var arRow = []; + var selector = $(this.selector + ' .trSelected'); + + + $(selector).each(function (i, row) { + arRow = []; + var idr = $(row).data('id'); + $.each(row.cells, function (c, cell) { + var col = cell.abbr; + var val = cell.firstChild.innerHTML; + if (val == ' ') val = ''; // Trim the content + var idx = cell.cellIndex; + + arRow.push({ + Column: col, // Column identifier + Value: val, // Column value + CellIndex: idx, // Cell index + RowIdentifier: idr // Identifier of this row element + }); + }); + arReturn.push(arRow); + }); + return arReturn; + }; +})(jQuery); diff --git a/web/media/js/flexigrid.pack.js b/web/media/js/flexigrid.pack.js new file mode 100644 index 0000000..2f9ee95 --- /dev/null +++ b/web/media/js/flexigrid.pack.js @@ -0,0 +1 @@ +(function($){var browser=$.browser;if(!browser){function uaMatch(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}var matched=uaMatch(navigator.userAgent);browser={};if(matched.browser){browser[matched.browser]=true;browser.version=matched.version}if(browser.chrome){browser.webkit=true}else if(browser.webkit){browser.safari=true}}if(typeof $.support.selectstart!="function"){$.support.selectstart="onselectstart"in document.createElement("div")}if(typeof $.fn.disableSelection!="function"){$.fn.disableSelection=function(){return this.bind(($.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})}}$.addFlex=function(t,p){if(t.grid)return false;p=$.extend({height:200,width:"auto",striped:true,novstripe:false,minwidth:30,minheight:80,resizable:true,url:false,method:"POST",dataType:"xml",errormsg:"Connection Error",usepager:false,nowrap:true,page:1,total:1,useRp:true,rp:15,rpOptions:[10,20,30,50,100],title:false,idProperty:"id",pagestat:"Displaying {from} to {to} of {total} items",pagetext:"Page",outof:"of",findtext:"Find",params:[],procmsg:"Processing, please wait ...",query:"",qtype:"",nomsg:"No items",minColToggle:1,showToggleBtn:true,hideOnSubmit:true,autoload:true,blockOpacity:.5,preProcess:false,addTitleToCell:false,dblClickResize:false,onDragCol:false,onToggleCol:false,onChangeSort:false,onDoubleClick:false,onSuccess:false,onError:false,onSubmit:false,__mw:{datacol:function(e,t,n){var r=typeof e.datacol[t]=="function"?e.datacol[t](n):n;if(typeof e.datacol["*"]=="function"){return e.datacol["*"](r)}else{return r}}},getGridClass:function(e){return e},datacol:{},colResize:true,colMove:true},p);$(t).show().attr({cellPadding:0,cellSpacing:0,border:0}).removeAttr("width");var g={hset:{},rePosDrag:function(){var e=0-this.hDiv.scrollLeft;if(this.hDiv.scrollLeft>0)e-=Math.floor(p.cgwidth/2);$(g.cDrag).css({top:g.hDiv.offsetTop+1});var t=this.cdpad;var n=0;$("div",g.cDrag).hide();$("thead tr:first th:visible",this.hDiv).each(function(){var r=$("thead tr:first th:visible",g.hDiv).index(this);var i=parseInt($("div",this).width());if(e==0)e-=Math.floor(p.cgwidth/2);i=i+e+t;if(isNaN(i)){i=0}$("div:eq("+r+")",g.cDrag).css({left:(!browser.mozilla?i-n:i)+"px"}).show();e=i;n++})},fixHeight:function(e){e=false;if(!e)e=$(g.bDiv).height();var t=$(this.hDiv).height();$("div",this.cDrag).each(function(){$(this).height(e+t)});var n=parseInt($(g.nDiv).height(),10);if(n>e)$(g.nDiv).height(e).width(200);else $(g.nDiv).height("auto").width("auto");$(g.block).css({height:e,marginBottom:e*-1});var r=g.bDiv.offsetTop+e;if(p.height!="auto"&&p.resizable)r=g.vDiv.offsetTop;$(g.rDiv).css({height:r})},dragStart:function(e,t,n){if(e=="colresize"&&p.colResize===true){$(g.nDiv).hide();$(g.nBtn).hide();var r=$("div",this.cDrag).index(n);var i=$("th:visible div:eq("+r+")",this.hDiv).width();$(n).addClass("dragging").siblings().hide();$(n).prev().addClass("dragging").show();this.colresize={startX:t.pageX,ol:parseInt(n.style.left,10),ow:i,n:r};$("body").css("cursor","col-resize")}else if(e=="vresize"){var s=false;$("body").css("cursor","row-resize");if(n){s=true;$("body").css("cursor","col-resize")}this.vresize={h:p.height,sy:t.pageY,w:p.width,sx:t.pageX,hgo:s}}else if(e=="colMove"){$(t.target).disableSelection();if(p.colMove===true){$(g.nDiv).hide();$(g.nBtn).hide();this.hset=$(this.hDiv).offset();this.hset.right=this.hset.left+$("table",this.hDiv).width();this.hset.bottom=this.hset.top+$("table",this.hDiv).height();this.dcol=n;this.dcoln=$("th",this.hDiv).index(n);this.colCopy=document.createElement("div");this.colCopy.className="colCopy";this.colCopy.innerHTML=n.innerHTML;if(browser.msie){this.colCopy.className="colCopy ie"}$(this.colCopy).css({position:"absolute","float":"left",display:"none",textAlign:n.align});$("body").append(this.colCopy);$(this.cDrag).hide()}}$("body").noSelect()},dragMove:function(e){if(this.colresize){var t=this.colresize.n;var n=e.pageX-this.colresize.startX;var r=this.colresize.ol+n;var i=this.colresize.ow+n;if(i>p.minwidth){$("div:eq("+t+")",this.cDrag).css("left",r);this.colresize.nw=i}}else if(this.vresize){var s=this.vresize;var o=e.pageY;var n=o-s.sy;if(!p.defwidth)p.defwidth=p.width;if(p.width!="auto"&&!p.nohresize&&s.hgo){var u=e.pageX;var a=u-s.sx;var f=s.w+a;if(f>p.defwidth){this.gDiv.style.width=f+"px";p.width=f}}var l=s.h+n;if((l>p.minheight||p.heightthis.hset.right||e.pageXthis.hset.bottom||e.pageYthis.dcolt)$("th:eq("+this.dcolt+")",this.hDiv).before(this.dcol);else $("th:eq("+this.dcolt+")",this.hDiv).after(this.dcol);this.switchCol(this.dcoln,this.dcolt);$(this.cdropleft).remove();$(this.cdropright).remove();this.rePosDrag();if(p.onDragCol){p.onDragCol(this.dcoln,this.dcolt)}}this.dcol=null;this.hset=null;this.dcoln=null;this.dcolt=null;this.colCopy=null;$(".thMove",this.hDiv).removeClass("thMove");$(this.cDrag).show()}$("body").css("cursor","default");$("body").noSelect(false)},toggleCol:function(e,n){var r=$("th[axis='col"+e+"']",this.hDiv)[0];var i=$("thead th",g.hDiv).index(r);var s=$("input[value="+e+"]",g.nDiv)[0];if(n==null){n=r.hidden}if($("input:checked",g.nDiv).lengthn)$("td:eq("+n+")",this).before($("td:eq("+e+")",this));else $("td:eq("+n+")",this).after($("td:eq("+e+")",this))});if(e>n){$("tr:eq("+n+")",this.nDiv).before($("tr:eq("+e+")",this.nDiv))}else{$("tr:eq("+n+")",this.nDiv).after($("tr:eq("+e+")",this.nDiv))}if(browser.msie&&browser.version<7){$("tr:eq("+n+") input",this.nDiv)[0].checked=true}this.hDiv.scrollLeft=this.bDiv.scrollLeft},scroll:function(){this.hDiv.scrollLeft=this.bDiv.scrollLeft;this.rePosDrag()},addData:function(e){if(p.dataType=="json"){e=$.extend({rows:[],page:0,total:0},e)}if(p.preProcess){e=p.preProcess(e)}$(".pReload",this.pDiv).removeClass("loading");this.loading=false;if(!e){$(".pPageStat",this.pDiv).html(p.errormsg);if(p.onSuccess)p.onSuccess(this);return false}if(p.dataType=="xml"){p.total=+$("rows total",e).text()}else{p.total=e.total}if(p.total===0){$("tr, a, td, div",t).unbind();$(t).empty();p.pages=1;p.page=1;this.buildpager();$(".pPageStat",this.pDiv).html(p.nomsg);if(p.onSuccess)p.onSuccess(this);return false}p.pages=Math.ceil(p.total/p.rp);if(p.dataType=="xml"){p.page=+$("rows page",e).text()}else{p.page=e.page}this.buildpager();var n=document.createElement("tbody");if(p.dataType=="json"){$.each(e.rows,function(e,t){var r=document.createElement("tr");var i=$(r);if(t.name)r.name=t.name;if(t.color){i.css("background",t.color)}else{if(e%2&&p.striped)r.className="erow"}if(t[p.idProperty]){r.id="row"+t[p.idProperty];i.attr("data-id",t[p.idProperty])}$("thead tr:first th",g.hDiv).each(function(){var e=document.createElement("td");var n=$(this).attr("axis").substr(3);e.align=this.align;if(typeof t.cell=="undefined"){e.innerHTML=t[p.colModel[n].name]}else{var i="";if(typeof t.cell[n]!="undefined"){i=t.cell[n]!==null?t.cell[n]:""}else{i=t.cell[p.colModel[n].name]}e.innerHTML=p.__mw.datacol(p,$(this).attr("abbr"),i)}var s=e.innerHTML.indexOf("0){$(e).css("background",text.substr(s+7,7))}$(e).attr("abbr",$(this).attr("abbr"));$(r).append(e);e=null});if($("thead",this.gDiv).length<1){for(idx=0;idx0){$(t).css("background",r.substr(i+7,7))}t.innerHTML=p.__mw.datacol(p,$(this).attr("abbr"),r);$(t).attr("abbr",$(this).attr("abbr"));$(e).append(t);t=null});if($("thead",this.gDiv).length<1){$("cell",this).each(function(){var t=document.createElement("td");t.innerHTML=$(this).text();$(e).append(t);t=null})}$(n).append(e);e=null;s=null})}$("tr",t).unbind();$(t).empty();$(t).append(n);this.addCellProp();this.addRowProp();this.rePosDrag();n=null;e=null;r=null;if(p.onSuccess){p.onSuccess(this)}if(p.hideOnSubmit){$(g.block).remove()}this.hDiv.scrollLeft=this.bDiv.scrollLeft;if(browser.opera){$(t).css("visibility","visible")}},changeSort:function(e){if(this.loading){return true}$(g.nDiv).hide();$(g.nBtn).hide();if(p.sortname==$(e).attr("abbr")){if(p.sortorder=="asc"){p.sortorder="desc"}else{p.sortorder="asc"}}$(e).addClass("sorted").siblings().removeClass("sorted");$(".sdesc",this.hDiv).removeClass("sdesc");$(".sasc",this.hDiv).removeClass("sasc");$("div",e).addClass("s"+p.sortorder);p.sortname=$(e).attr("abbr");if(p.onChangeSort){p.onChangeSort(p.sortname,p.sortorder)}else{this.populate()}},buildpager:function(){$(".pcontrol input",this.pDiv).val(p.page);$(".pcontrol span",this.pDiv).html(p.pages);var e=(p.page-1)*p.rp+1;var t=e+p.rp-1;if(p.totalp.pages){p.page=p.pages}var n=[{name:"page",value:p.newp},{name:"rp",value:p.rp},{name:"sortname",value:p.sortname},{name:"sortorder",value:p.sortorder},{name:"query",value:p.query},{name:"qtype",value:p.qtype}];if(p.params.length){for(var r=0;r1){p.newp=parseInt(p.page,10)-1}break;case"next":if(p.pagep.pages){t=p.pages}$(".pcontrol input",this.pDiv).val(t);p.newp=t;break}if(p.newp==p.page){return false}if(p.onChangePage){p.onChangePage(p.newp)}else{this.populate()}},addCellProp:function(){$("tbody tr td",g.bDiv).each(function(){var e=document.createElement("div");var t=$("td",$(this).parent()).index(this);var n=$("th:eq("+t+")",g.hDiv).get(0);if(n!=null){if(p.sortname==$(n).attr("abbr")&&p.sortname){this.className="sorted"}$(e).css({textAlign:n.align,width:$("div:first",n)[0].style.width});if(n.hidden){$(this).css("display","none")}}if(p.nowrap==false){$(e).css("white-space","normal")}if(this.innerHTML==""){this.innerHTML=" "}e.innerHTML=this.innerHTML;var r=$(this).parent()[0];var i=false;if(r.id){i=r.id.substr(3)}if(n!=null){if(n.process)n.process(e,i)}$(this).empty().append(e).removeAttr("width");g.addTitleToCell(e)})},getCellDim:function(e){var t=parseInt($(e).height(),10);var n=parseInt($(e).parent().height(),10);var r=parseInt(e.style.width,10);var i=parseInt($(e).parent().width(),10);var s=e.offsetParent.offsetTop;var o=e.offsetParent.offsetLeft;var u=parseInt($(e).css("paddingLeft"),10);var a=parseInt($(e).css("paddingTop"),10);return{ht:t,wt:r,top:s,left:o,pdl:u,pdt:a,pht:n,pwt:i}},addRowProp:function(){$("tbody tr",g.bDiv).on("click",function(e){var t=e.target||e.srcElement;if(t.href||t.type)return true;if(e.ctrlKey||e.metaKey){return}$(this).toggleClass("trSelected");if(p.singleSelect&&!g.multisel){$(this).siblings().removeClass("trSelected")}}).on("mousedown",function(e){if(e.shiftKey){$(this).toggleClass("trSelected");g.multisel=true;this.focus();$(g.gDiv).noSelect()}if(e.ctrlKey||e.metaKey){$(this).toggleClass("trSelected");g.multisel=true;this.focus()}}).on("mouseup",function(e){if(g.multisel&&!(e.ctrlKey||e.metaKey)){g.multisel=false;$(g.gDiv).noSelect(false)}}).on("dblclick",function(){$(this).addClass("trSelected");if(p.onDoubleClick){p.onDoubleClick(this,g,p)}}).hover(function(e){if(g.multisel&&e.shiftKey){$(this).toggleClass("trSelected")}},function(){});if(browser.msie&&browser.version<7){$(this).hover(function(){$(this).addClass("trOver")},function(){$(this).removeClass("trOver")})}},combo_flag:true,combo_resetIndex:function(e){if(this.combo_flag){e.selectedIndex=0}this.combo_flag=true},combo_doSelectAction:function(selObj){eval(selObj.options[selObj.selectedIndex].value);selObj.selectedIndex=0;this.combo_flag=false},addTitleToCell:function(e){if(p.addTitleToCell){var t=$("").css("display","none"),n=e instanceof jQuery?e:$(e),r=n.outerWidth(),i=0;$("body").children(":first").before(t);t.html(n.html());t.css("font-size",""+n.css("font-size"));t.css("padding-left",""+n.css("padding-left"));i=t.innerWidth();t.remove();if(i>r){n.attr("title",n.text())}else{n.removeAttr("title")}}},autoResizeColumn:function(e){if(!p.dblClickResize){return}var t=$("div",this.cDrag).index(e),n=$("th:visible div:eq("+t+")",this.hDiv),r=parseInt(e.style.left,10),i=n.width(),s=0,o=0,u=$("");$("body").children(":first").before(u);u.html(n.html());u.css("font-size",""+n.css("font-size"));u.css("padding-left",""+n.css("padding-left"));u.css("padding-right",""+n.css("padding-right"));s=u.width();$("tr",this.bDiv).each(function(){var e=$("td:visible div:eq("+t+")",this),n=0;u.html(e.html());u.css("font-size",""+e.css("font-size"));u.css("padding-left",""+e.css("padding-left"));u.css("padding-right",""+e.css("padding-right"));n=u.width();s=n>s?n:s});u.remove();s=p.minWidth>s?p.minWidth:s;o=r+(s-i);$("div:eq("+t+")",this.cDrag).css("left",o);this.colresize={nw:s,n:t};g.dragEnd()},pager:0};g=p.getGridClass(g);if(p.colModel){thead=document.createElement("thead");var tr=document.createElement("tr");for(var i=0;i"+(btn.hidename?" ":btn.name)+"";if(btn.bclass)$("span",btnDiv).addClass(btn.bclass).css({paddingLeft:20});if(btn.bimage)$("span",btnDiv).css("background","url("+btn.bimage+") no-repeat center left");$("span",btnDiv).css("paddingLeft",20);if(btn.tooltip)$("span",btnDiv)[0].title=btn.tooltip;btnDiv.onpress=btn.onpress;btnDiv.name=btn.name;if(btn.id){btnDiv.id=btn.id}if(btn.onpress){$(btnDiv).click(function(){this.onpress(this.id||this.name,g.gDiv)})}$(tDiv2).append(btnDiv);if(browser.msie&&browser.version<7){$(btnDiv).hover(function(){$(this).addClass("fbOver")},function(){$(this).removeClass("fbOver")})}}else{$(tDiv2).append("
")}}$(g.tDiv).append(tDiv2);$(g.tDiv).append("
");$(g.gDiv).prepend(g.tDiv)}g.hDiv.className="hDiv";if(p.combobuttons&&$(g.tDiv2)){var btnDiv=document.createElement("div");btnDiv.className="fbutton";var tSelect=document.createElement("select");$(tSelect).change(function(){g.combo_doSelectAction(tSelect)});$(tSelect).click(function(){g.combo_resetIndex(tSelect)});tSelect.className="cselect";$(btnDiv).append(tSelect);for(i=0;i');$("div",g.hDiv).append(g.hTable);var thead=$("thead:first",t).get(0);if(thead)$(g.hTable).append(thead);thead=null;if(!p.colmodel)var ci=0;$("thead tr:first th",g.hDiv).each(function(){var e=document.createElement("div");if($(this).attr("abbr")){$(this).click(function(e){if(!$(this).hasClass("thOver"))return false;var t=e.target||e.srcElement;if(t.href||t.type)return true;g.changeSort(this)});if($(this).attr("abbr")==p.sortname){this.className="sorted";e.className="s"+p.sortorder}}if(this.hidden){$(this).hide()}if(!p.colmodel){$(this).attr("axis","col"+ci++)}if(this.width==""){this.width=100}$(e).css({textAlign:this.align,width:this.width+"px"});e.innerHTML=this.innerHTML;$(this).empty().append(e).removeAttr("width").mousedown(function(e){g.dragStart("colMove",e,this)}).hover(function(){if(!g.colresize&&!$(this).hasClass("thMove")&&!g.colCopy){$(this).addClass("thOver")}if($(this).attr("abbr")!=p.sortname&&!g.colCopy&&!g.colresize&&$(this).attr("abbr")){$("div",this).addClass("s"+p.sortorder)}else if($(this).attr("abbr")==p.sortname&&!g.colCopy&&!g.colresize&&$(this).attr("abbr")){var e=p.sortorder=="asc"?"desc":"asc";$("div",this).removeClass("s"+p.sortorder).addClass("s"+e)}if(g.colCopy){var t=$("th",g.hDiv).index(this);if(t==g.dcoln){return false}if(t$(g.gDiv).width()){$(g.nDiv).css("left",r-o+1)}else{$(g.nDiv).css("left",s)}if($(this).hasClass("sorted")){$(g.nBtn).addClass("srtd")}else{$(g.nBtn).removeClass("srtd")}}},function(){$(this).removeClass("thOver");if($(this).attr("abbr")!=p.sortname){$("div",this).removeClass("s"+p.sortorder)}else if($(this).attr("abbr")==p.sortname){var e=p.sortorder=="asc"?"desc":"asc";$("div",this).addClass("s"+p.sortorder).removeClass("s"+e)}if(g.colCopy){$(g.cdropleft).remove();$(g.cdropright).remove();g.dcolt=null}})});g.bDiv.className="bDiv";$(t).before(g.bDiv);$(g.bDiv).css({height:p.height=="auto"?"auto":p.height+"px"}).scroll(function(e){g.scroll()}).append(t);if(p.height=="auto"){$("table",g.bDiv).addClass("autoht")}g.addCellProp();g.addRowProp();if(p.colResize===true){var cdcol=$("thead tr:first th:first",g.hDiv).get(0);if(cdcol!==null){g.cDrag.className="cDrag";g.cdpad=0;g.cdpad+=isNaN(parseInt($("div",cdcol).css("borderLeftWidth"),10))?0:parseInt($("div",cdcol).css("borderLeftWidth"),10);g.cdpad+=isNaN(parseInt($("div",cdcol).css("borderRightWidth"),10))?0:parseInt($("div",cdcol).css("borderRightWidth"),10);g.cdpad+=isNaN(parseInt($("div",cdcol).css("paddingLeft"),10))?0:parseInt($("div",cdcol).css("paddingLeft"),10);g.cdpad+=isNaN(parseInt($("div",cdcol).css("paddingRight"),10))?0:parseInt($("div",cdcol).css("paddingRight"),10);g.cdpad+=isNaN(parseInt($(cdcol).css("borderLeftWidth"),10))?0:parseInt($(cdcol).css("borderLeftWidth"),10);g.cdpad+=isNaN(parseInt($(cdcol).css("borderRightWidth"),10))?0:parseInt($(cdcol).css("borderRightWidth"),10);g.cdpad+=isNaN(parseInt($(cdcol).css("paddingLeft"),10))?0:parseInt($(cdcol).css("paddingLeft"),10);g.cdpad+=isNaN(parseInt($(cdcol).css("paddingRight"),10))?0:parseInt($(cdcol).css("paddingRight"),10);$(g.bDiv).before(g.cDrag);var cdheight=$(g.bDiv).height();var hdheight=$(g.hDiv).height();$(g.cDrag).css({top:-hdheight+"px"});$("thead tr:first th",g.hDiv).each(function(){var e=document.createElement("div");$(g.cDrag).append(e);if(!p.cgwidth){p.cgwidth=$(e).width()}$(e).css({height:cdheight+hdheight}).mousedown(function(e){g.dragStart("colresize",e,this)}).dblclick(function(e){g.autoResizeColumn(this)});if(browser.msie&&browser.version<7){g.fixHeight($(g.gDiv).height());$(e).hover(function(){g.fixHeight();$(this).addClass("dragging")},function(){if(!g.colresize){$(this).removeClass("dragging")}})}})}}if(p.striped){$("tbody tr:odd",g.bDiv).addClass("erow")}if(p.resizable&&p.height!="auto"){g.vDiv.className="vGrip";$(g.vDiv).mousedown(function(e){g.dragStart("vresize",e)}).html("");$(g.bDiv).after(g.vDiv)}if(p.resizable&&p.width!="auto"&&!p.nohresize){g.rDiv.className="hGrip";$(g.rDiv).mousedown(function(e){g.dragStart("vresize",e,true)}).html("").css("height",$(g.gDiv).height());if(browser.msie&&browser.version<7){$(g.rDiv).hover(function(){$(this).addClass("hgOver")},function(){$(this).removeClass("hgOver")})}$(g.gDiv).append(g.rDiv)}if(p.usepager){g.pDiv.className="pDiv";g.pDiv.innerHTML='
';$(g.bDiv).after(g.pDiv);var html='
'+p.pagetext+' '+p.outof+' 1
';$("div",g.pDiv).html(html);$(".pReload",g.pDiv).click(function(){g.populate()});$(".pFirst",g.pDiv).click(function(){g.changePage("first")});$(".pPrev",g.pDiv).click(function(){g.changePage("prev")});$(".pNext",g.pDiv).click(function(){g.changePage("next")});$(".pLast",g.pDiv).click(function(){g.changePage("last")});$(".pcontrol input",g.pDiv).keydown(function(e){if(e.keyCode==13){g.changePage("input")}});if(browser.msie&&browser.version<7)$(".pButton",g.pDiv).hover(function(){$(this).addClass("pBtnOver")},function(){$(this).removeClass("pBtnOver")});if(p.useRp){var opt="",sel="";for(var nx=0;nx"+p.rpOptions[nx]+"  "}$(".pDiv2",g.pDiv).prepend("
");$("select",g.pDiv).change(function(){if(p.onRpChange){p.onRpChange(+this.value)}else{p.newp=1;p.rp=+this.value;g.populate()}})}if(p.searchitems){$(".pDiv2",g.pDiv).prepend("
");$(".pSearch",g.pDiv).click(function(){$(g.sDiv).slideToggle("fast",function(){$(".sDiv:visible input:first",g.gDiv).trigger("focus")})});g.sDiv.className="sDiv";var sitems=p.searchitems;var sopt="",sel="";for(var s=0;s"+sitems[s].display+"  "}if(p.qtype===""){p.qtype=sitems[0].name}$(g.sDiv).append("
"+p.findtext+" "+"
");$("input[name=q]",g.sDiv).keydown(function(e){if(e.keyCode==13){g.doSearch()}});$("select[name=qtype]",g.sDiv).keydown(function(e){if(e.keyCode==13){g.doSearch()}});$("input[value=Clear]",g.sDiv).click(function(){$("input[name=q]",g.sDiv).val("");p.query="";g.doSearch()});$(g.bDiv).after(g.sDiv)}}$(g.pDiv,g.sDiv).append("
");if(p.title){g.mDiv.className="mDiv";g.mDiv.innerHTML='
'+p.title+"
";$(g.gDiv).prepend(g.mDiv);if(p.showTableToggleBtn){$(g.mDiv).append('
');$("div.ptogtitle",g.mDiv).click(function(){$(g.gDiv).toggleClass("hideBody");$(this).toggleClass("vsble")})}}g.cdropleft=document.createElement("span");g.cdropleft.className="cdropleft";g.cdropright=document.createElement("span");g.cdropright.className="cdropright";g.block.className="gBlock";var gh=$(g.bDiv).height();var gtop=g.bDiv.offsetTop;$(g.block).css({width:g.bDiv.style.width,height:gh,background:"white",position:"relative",marginBottom:gh*-1,zIndex:1,top:gtop,left:"0px"});$(g.block).fadeTo(0,p.blockOpacity);if($("th",g.hDiv).length){g.nDiv.className="nDiv";g.nDiv.innerHTML="
";$(g.nDiv).css({marginBottom:gh*-1,display:"none",top:gtop}).noSelect();var cn=0;$("th div",g.hDiv).each(function(){var e=$("th[axis='col"+cn+"']",g.hDiv)[0];var t='checked="checked"';if(e.style.display=="none"){t=""}$("tbody",g.nDiv).append(''+this.innerHTML+"");cn++});if(browser.msie&&browser.version<7)$("tr",g.nDiv).hover(function(){$(this).addClass("ndcolover")},function(){$(this).removeClass("ndcolover")});$("td.ndcol2",g.nDiv).click(function(){if($("input:checked",g.nDiv).length<=p.minColToggle&&$(this).prev().find("input")[0].checked)return false;return g.toggleCol($(this).prev().find("input").val())});$("input.togCol",g.nDiv).click(function(){if($("input:checked",g.nDiv).length").attr("title","Hide/Show Columns").click(function(){$(g.nDiv).toggle();return true});if(p.showToggleBtn){$(g.gDiv).prepend(g.nBtn)}}$(g.iDiv).addClass("iDiv").css({display:"none"});$(g.bDiv).append(g.iDiv);$(g.bDiv).hover(function(){$(g.nDiv).hide();$(g.nBtn).hide()},function(){if(g.multisel){g.multisel=false}});$(g.gDiv).hover(function(){},function(){$(g.nDiv).hide();$(g.nBtn).hide()});$(document).mousemove(function(e){g.dragMove(e)}).mouseup(function(e){g.dragEnd()}).hover(function(){},function(){g.dragEnd()});if(browser.msie&&browser.version<7){$(".hDiv,.bDiv,.mDiv,.pDiv,.vGrip,.tDiv, .sDiv",g.gDiv).css({width:"100%"});$(g.gDiv).addClass("ie6");if(p.width!="auto"){$(g.gDiv).addClass("ie6fullwidthbug")}}g.rePosDrag();g.fixHeight();t.p=p;t.grid=g;if(p.url&&p.autoload){g.populate()}return t};var docloaded=false;$(document).ready(function(){docloaded=true});$.fn.flexigrid=function(e){return this.each(function(){if(!docloaded){$(this).hide();var t=this;$(document).ready(function(){$.addFlex(t,e)})}else{$.addFlex(this,e)}})};$.fn.flexReload=function(e){return this.each(function(){if(this.grid&&this.p.url)this.grid.populate()})};$.fn.flexOptions=function(e){return this.each(function(){if(this.grid)$.extend(this.p,e)})};$.fn.flexToggleCol=function(e,t){return this.each(function(){if(this.grid)this.grid.toggleCol(e,t)})};$.fn.flexAddData=function(e){return this.each(function(){if(this.grid)this.grid.addData(e)})};$.fn.noSelect=function(e){var t=e===null?true:e;if(t){return this.each(function(){if(browser.msie||browser.safari)$(this).bind("selectstart",function(){return false});else if(browser.mozilla){$(this).css("MozUserSelect","none");$("body").trigger("focus")}else if(browser.opera)$(this).bind("mousedown",function(){return false});else $(this).attr("unselectable","on")})}else{return this.each(function(){if(browser.msie||browser.safari)$(this).unbind("selectstart");else if(browser.mozilla)$(this).css("MozUserSelect","inherit");else if(browser.opera)$(this).unbind("mousedown");else $(this).removeAttr("unselectable","on")})}};$.fn.flexSearch=function(e){return this.each(function(){if(this.grid&&this.p.searchitems)this.grid.doSearch()})};$.fn.selectedRows=function(e){var t=[];var n=[];var r=$(this.selector+" .trSelected");$(r).each(function(e,r){n=[];var i=$(r).data("id");$.each(r.cells,function(e,t){var r=t.abbr;var s=t.firstChild.innerHTML;if(s==" ")s="";var o=t.cellIndex;n.push({Column:r,Value:s,CellIndex:o,RowIdentifier:i})});t.push(n)});return t}})(jQuery) diff --git a/web/media/js/jquery.js b/web/media/js/jquery.js new file mode 100644 index 0000000..ab28a24 --- /dev/null +++ b/web/media/js/jquery.js @@ -0,0 +1,4 @@ +/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b=a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="
",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h; +if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML="
a",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function ab(){return!0}function bb(){return!1}function cb(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h]","i"),hb=/^\s+/,ib=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,jb=/<([\w:]+)/,kb=/\s*$/g,rb={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:k.htmlSerialize?[0,"",""]:[1,"X
","
"]},sb=db(y),tb=sb.appendChild(y.createElement("div"));rb.optgroup=rb.option,rb.tbody=rb.tfoot=rb.colgroup=rb.caption=rb.thead,rb.th=rb.td;function ub(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ub(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function vb(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wb(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xb(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function yb(a){var b=pb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function zb(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Ab(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Bb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xb(b).text=a.text,yb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!gb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(tb.innerHTML=a.outerHTML,tb.removeChild(f=tb.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ub(f),h=ub(a),g=0;null!=(e=h[g]);++g)d[g]&&Bb(e,d[g]);if(b)if(c)for(h=h||ub(a),d=d||ub(f),g=0;null!=(e=h[g]);g++)Ab(e,d[g]);else Ab(a,f);return d=ub(f,"script"),d.length>0&&zb(d,!i&&ub(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=db(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(lb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(jb.exec(f)||["",""])[1].toLowerCase(),l=rb[i]||rb._default,h.innerHTML=l[1]+f.replace(ib,"<$1>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&hb.test(f)&&p.push(b.createTextNode(hb.exec(f)[0])),!k.tbody){f="table"!==i||kb.test(f)?""!==l[1]||kb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ub(p,"input"),vb),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ub(o.appendChild(f),"script"),g&&zb(h),c)){e=0;while(f=h[e++])ob.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ub(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&zb(ub(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ub(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fb,""):void 0;if(!("string"!=typeof a||mb.test(a)||!k.htmlSerialize&&gb.test(a)||!k.leadingWhitespace&&hb.test(a)||rb[(jb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ib,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ub(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ub(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&nb.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ub(i,"script"),xb),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ub(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,yb),j=0;f>j;j++)d=g[j],ob.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qb,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Cb,Db={};function Eb(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fb(a){var b=y,c=Db[a];return c||(c=Eb(a,b),"none"!==c&&c||(Cb=(Cb||m("