Repository: muyinchen/migoshop2.0 Branch: master Commit: 2256d9e9a6a9 Files: 815 Total size: 17.9 MB Directory structure: gitextract_486rgg8g/ ├── .gitignore ├── README.md ├── migo-Fsso/ │ ├── .gitignore │ ├── .mvn/ │ │ └── wrapper/ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ ├── settings.properties │ └── src/ │ ├── main/ │ │ ├── java/ │ │ │ └── com/ │ │ │ └── migo3/ │ │ │ └── sso/ │ │ │ ├── .speedment/ │ │ │ │ ├── .Migo2Application.java.md5 │ │ │ │ ├── .Migo2ApplicationBuilder.java.md5 │ │ │ │ └── .Migo2ApplicationImpl.java.md5 │ │ │ ├── Migo2Application.java │ │ │ ├── Migo2ApplicationBuilder.java │ │ │ ├── Migo2ApplicationImpl.java │ │ │ ├── SsoApplication.java │ │ │ ├── UserConfig.java │ │ │ ├── controller/ │ │ │ │ └── SsoController.java │ │ │ ├── generated/ │ │ │ │ ├── .speedment/ │ │ │ │ │ ├── .GeneratedMigo2Application.java.md5 │ │ │ │ │ ├── .GeneratedMigo2ApplicationBuilder.java.md5 │ │ │ │ │ ├── .GeneratedMigo2ApplicationImpl.java.md5 │ │ │ │ │ └── .GeneratedMigo2Metadata.java.md5 │ │ │ │ ├── GeneratedMigo2Application.java │ │ │ │ ├── GeneratedMigo2ApplicationBuilder.java │ │ │ │ ├── GeneratedMigo2ApplicationImpl.java │ │ │ │ └── GeneratedMigo2Metadata.java │ │ │ ├── pojo/ │ │ │ │ ├── .speedment/ │ │ │ │ │ ├── .User.java.md5 │ │ │ │ │ ├── .UserImpl.java.md5 │ │ │ │ │ ├── .UserManager.java.md5 │ │ │ │ │ ├── .UserManagerImpl.java.md5 │ │ │ │ │ └── .UserSqlAdapter.java.md5 │ │ │ │ ├── User.java │ │ │ │ ├── UserImpl.java │ │ │ │ ├── UserManager.java │ │ │ │ ├── UserManagerImpl.java │ │ │ │ ├── UserSqlAdapter.java │ │ │ │ └── generated/ │ │ │ │ ├── .speedment/ │ │ │ │ │ ├── .GeneratedUser.java.md5 │ │ │ │ │ ├── .GeneratedUserImpl.java.md5 │ │ │ │ │ ├── .GeneratedUserManager.java.md5 │ │ │ │ │ ├── .GeneratedUserManagerImpl.java.md5 │ │ │ │ │ └── .GeneratedUserSqlAdapter.java.md5 │ │ │ │ ├── GeneratedUser.java │ │ │ │ ├── GeneratedUserImpl.java │ │ │ │ ├── GeneratedUserManager.java │ │ │ │ ├── GeneratedUserManagerImpl.java │ │ │ │ └── GeneratedUserSqlAdapter.java │ │ │ └── service/ │ │ │ └── UserService.java │ │ ├── json/ │ │ │ └── speedment.json │ │ └── resources/ │ │ ├── application.properties │ │ ├── log4j.properties │ │ └── templates/ │ │ ├── login.html │ │ └── register.html │ └── test/ │ └── java/ │ └── com/ │ └── migo3/ │ └── sso/ │ └── DemoApplicationTests.java ├── migo-common/ │ ├── pom.xml │ └── src/ │ └── main/ │ └── java/ │ └── com/ │ └── migo/ │ ├── messageconverter/ │ │ └── CallbackMappingJackson2HttpMessageConverter.java │ ├── pojo/ │ │ ├── CatNode.java │ │ ├── EasyUIDataGridResult.java │ │ └── ItemCatResult.java │ ├── service/ │ │ ├── JedisClient.java │ │ ├── WorkCallback.java │ │ └── impl/ │ │ ├── JedisClientCluster.java │ │ └── JedisClientSingle.java │ └── utils/ │ ├── CookieUtils.java │ ├── FastDFSClient.java │ ├── HttpClientUtil.java │ ├── IDUtils.java │ └── JsonUtils.java ├── migo-manage/ │ ├── manage-mapper/ │ │ ├── pom.xml │ │ └── src/ │ │ └── main/ │ │ └── java/ │ │ └── com/ │ │ └── migo/ │ │ └── mapper/ │ │ ├── ContentCategoryMapper.java │ │ ├── ContentMapper.java │ │ ├── ItemCatMapper.java │ │ ├── ItemDescMapper.java │ │ ├── ItemMapper.java │ │ ├── ItemParamItemMapper.java │ │ ├── ItemParamMapper.java │ │ └── ItemparamexdMapper.java │ ├── manage-pojo/ │ │ ├── pom.xml │ │ └── src/ │ │ └── main/ │ │ └── java/ │ │ └── com/ │ │ └── migo/ │ │ └── pojo/ │ │ ├── BasePojo.java │ │ ├── Content.java │ │ ├── ContentCategory.java │ │ ├── Item.java │ │ ├── ItemCat.java │ │ ├── ItemDesc.java │ │ ├── ItemParam.java │ │ ├── ItemParamItem.java │ │ └── ItemParamexd.java │ ├── manage-service/ │ │ ├── pom.xml │ │ └── src/ │ │ └── main/ │ │ └── java/ │ │ └── com/ │ │ └── migo/ │ │ └── service/ │ │ ├── BaseService.java │ │ ├── ContentCategoryService.java │ │ ├── ContentService.java │ │ ├── ItemCatService.java │ │ ├── ItemDescService.java │ │ ├── ItemParamItemService.java │ │ ├── ItemParmService.java │ │ ├── ItemService.java │ │ └── PicService.java │ ├── manage-web/ │ │ ├── pom.xml │ │ └── src/ │ │ ├── main/ │ │ │ ├── java/ │ │ │ │ └── com/ │ │ │ │ └── migo/ │ │ │ │ └── controller/ │ │ │ │ ├── ContentCategoryController.java │ │ │ │ ├── ContentController.java │ │ │ │ ├── ItemCatController.java │ │ │ │ ├── ItemController.java │ │ │ │ ├── ItemDescController.java │ │ │ │ ├── ItemParamController.java │ │ │ │ ├── ItemParamItemController.java │ │ │ │ ├── PageController.java │ │ │ │ ├── PicController.java │ │ │ │ └── webs/ │ │ │ │ ├── WebsContenController.java │ │ │ │ ├── WebsItemCatController.java │ │ │ │ └── WebsItemController.java │ │ │ ├── resources/ │ │ │ │ ├── log4j.properties │ │ │ │ ├── mybatis/ │ │ │ │ │ └── mybatis-config.xml │ │ │ │ ├── properties/ │ │ │ │ │ ├── client.properties │ │ │ │ │ ├── db.properties │ │ │ │ │ └── env.properties │ │ │ │ └── spring/ │ │ │ │ ├── applicationContext-dao.xml │ │ │ │ ├── applicationContext-service.xml │ │ │ │ ├── applicationContext-trans.xml │ │ │ │ └── springmvc.xml │ │ │ └── webapp/ │ │ │ ├── WEB-INF/ │ │ │ │ ├── views/ │ │ │ │ │ ├── content-add.jsp │ │ │ │ │ ├── content-category.jsp │ │ │ │ │ ├── content-edit.jsp │ │ │ │ │ ├── content.jsp │ │ │ │ │ ├── file-upload.jsp │ │ │ │ │ ├── index.jsp │ │ │ │ │ ├── item-add.jsp │ │ │ │ │ ├── item-edit.jsp │ │ │ │ │ ├── item-list.jsp │ │ │ │ │ ├── item-param-add.jsp │ │ │ │ │ ├── item-param-list.jsp │ │ │ │ │ └── login.jsp │ │ │ │ └── web.xml │ │ │ ├── commons/ │ │ │ │ └── common-js.jsp │ │ │ ├── css/ │ │ │ │ └── migo.css │ │ │ └── js/ │ │ │ ├── common.js │ │ │ ├── jquery-easyui-1.4.1/ │ │ │ │ ├── changelog.txt │ │ │ │ ├── demo/ │ │ │ │ │ ├── accordion/ │ │ │ │ │ │ ├── _content.html │ │ │ │ │ │ ├── actions.html │ │ │ │ │ │ ├── ajax.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── datagrid_data1.json │ │ │ │ │ │ ├── expandable.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── multiple.html │ │ │ │ │ │ └── tools.html │ │ │ │ │ ├── calendar/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── custom.html │ │ │ │ │ │ ├── disabledate.html │ │ │ │ │ │ ├── firstday.html │ │ │ │ │ │ └── fluid.html │ │ │ │ │ ├── combo/ │ │ │ │ │ │ ├── animation.html │ │ │ │ │ │ └── basic.html │ │ │ │ │ ├── combobox/ │ │ │ │ │ │ ├── actions.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── combobox_data1.json │ │ │ │ │ │ ├── combobox_data2.json │ │ │ │ │ │ ├── customformat.html │ │ │ │ │ │ ├── dynamicdata.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── group.html │ │ │ │ │ │ ├── icons.html │ │ │ │ │ │ ├── multiline.html │ │ │ │ │ │ ├── multiple.html │ │ │ │ │ │ ├── navigation.html │ │ │ │ │ │ ├── remotedata.html │ │ │ │ │ │ └── remotejsonp.html │ │ │ │ │ ├── combogrid/ │ │ │ │ │ │ ├── actions.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── datagrid_data1.json │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── initvalue.html │ │ │ │ │ │ ├── multiple.html │ │ │ │ │ │ └── navigation.html │ │ │ │ │ ├── combotree/ │ │ │ │ │ │ ├── actions.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── initvalue.html │ │ │ │ │ │ ├── multiple.html │ │ │ │ │ │ └── tree_data1.json │ │ │ │ │ ├── datagrid/ │ │ │ │ │ │ ├── aligncolumns.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── cacheeditor.html │ │ │ │ │ │ ├── cellediting.html │ │ │ │ │ │ ├── cellstyle.html │ │ │ │ │ │ ├── checkbox.html │ │ │ │ │ │ ├── clientpagination.html │ │ │ │ │ │ ├── columngroup.html │ │ │ │ │ │ ├── complextoolbar.html │ │ │ │ │ │ ├── contextmenu.html │ │ │ │ │ │ ├── custompager.html │ │ │ │ │ │ ├── datagrid_data1.json │ │ │ │ │ │ ├── datagrid_data2.json │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── footer.html │ │ │ │ │ │ ├── formatcolumns.html │ │ │ │ │ │ ├── frozencolumns.html │ │ │ │ │ │ ├── frozenrows.html │ │ │ │ │ │ ├── mergecells.html │ │ │ │ │ │ ├── multisorting.html │ │ │ │ │ │ ├── products.json │ │ │ │ │ │ ├── rowborder.html │ │ │ │ │ │ ├── rowediting.html │ │ │ │ │ │ ├── rowstyle.html │ │ │ │ │ │ ├── selection.html │ │ │ │ │ │ ├── simpletoolbar.html │ │ │ │ │ │ └── transform.html │ │ │ │ │ ├── datebox/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── buttons.html │ │ │ │ │ │ ├── dateformat.html │ │ │ │ │ │ ├── events.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── restrict.html │ │ │ │ │ │ ├── sharedcalendar.html │ │ │ │ │ │ └── validate.html │ │ │ │ │ ├── datetimebox/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── initvalue.html │ │ │ │ │ │ └── showseconds.html │ │ │ │ │ ├── datetimespinner/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── clearicon.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ └── format.html │ │ │ │ │ ├── demo.css │ │ │ │ │ ├── dialog/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── complextoolbar.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ └── toolbarbuttons.html │ │ │ │ │ ├── draggable/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── constrain.html │ │ │ │ │ │ └── snap.html │ │ │ │ │ ├── droppable/ │ │ │ │ │ │ ├── accept.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ └── sort.html │ │ │ │ │ ├── easyloader/ │ │ │ │ │ │ └── basic.html │ │ │ │ │ ├── filebox/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── buttonalign.html │ │ │ │ │ │ └── fluid.html │ │ │ │ │ ├── form/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── form_data1.json │ │ │ │ │ │ ├── load.html │ │ │ │ │ │ └── validateonsubmit.html │ │ │ │ │ ├── layout/ │ │ │ │ │ │ ├── _content.html │ │ │ │ │ │ ├── addremove.html │ │ │ │ │ │ ├── autoheight.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── complex.html │ │ │ │ │ │ ├── datagrid_data1.json │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── full.html │ │ │ │ │ │ ├── nestedlayout.html │ │ │ │ │ │ ├── nocollapsible.html │ │ │ │ │ │ ├── propertygrid_data1.json │ │ │ │ │ │ └── tree_data1.json │ │ │ │ │ ├── linkbutton/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── group.html │ │ │ │ │ │ ├── iconalign.html │ │ │ │ │ │ ├── plain.html │ │ │ │ │ │ ├── size.html │ │ │ │ │ │ ├── style.html │ │ │ │ │ │ └── toggle.html │ │ │ │ │ ├── menu/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── customitem.html │ │ │ │ │ │ └── events.html │ │ │ │ │ ├── menubutton/ │ │ │ │ │ │ ├── actions.html │ │ │ │ │ │ ├── alignment.html │ │ │ │ │ │ └── basic.html │ │ │ │ │ ├── messager/ │ │ │ │ │ │ ├── alert.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── interactive.html │ │ │ │ │ │ └── position.html │ │ │ │ │ ├── numberbox/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── format.html │ │ │ │ │ │ └── range.html │ │ │ │ │ ├── numberspinner/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── increment.html │ │ │ │ │ │ └── range.html │ │ │ │ │ ├── pagination/ │ │ │ │ │ │ ├── attaching.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── custombuttons.html │ │ │ │ │ │ ├── layout.html │ │ │ │ │ │ ├── links.html │ │ │ │ │ │ └── simple.html │ │ │ │ │ ├── panel/ │ │ │ │ │ │ ├── _content.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── customtools.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── footer.html │ │ │ │ │ │ ├── loadcontent.html │ │ │ │ │ │ ├── nestedpanel.html │ │ │ │ │ │ └── paneltools.html │ │ │ │ │ ├── progressbar/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ └── fluid.html │ │ │ │ │ ├── propertygrid/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── customcolumns.html │ │ │ │ │ │ ├── groupformat.html │ │ │ │ │ │ └── propertygrid_data1.json │ │ │ │ │ ├── resizable/ │ │ │ │ │ │ └── basic.html │ │ │ │ │ ├── searchbox/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── category.html │ │ │ │ │ │ └── fluid.html │ │ │ │ │ ├── slider/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── formattip.html │ │ │ │ │ │ ├── nonlinear.html │ │ │ │ │ │ ├── rule.html │ │ │ │ │ │ └── vertical.html │ │ │ │ │ ├── splitbutton/ │ │ │ │ │ │ ├── actions.html │ │ │ │ │ │ └── basic.html │ │ │ │ │ ├── tabs/ │ │ │ │ │ │ ├── _content.html │ │ │ │ │ │ ├── autoheight.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── dropdown.html │ │ │ │ │ │ ├── fixedwidth.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── hover.html │ │ │ │ │ │ ├── nestedtabs.html │ │ │ │ │ │ ├── striptools.html │ │ │ │ │ │ ├── tabimage.html │ │ │ │ │ │ ├── tabposition.html │ │ │ │ │ │ ├── tabstools.html │ │ │ │ │ │ └── tree_data1.json │ │ │ │ │ ├── textbox/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── button.html │ │ │ │ │ │ ├── clearicon.html │ │ │ │ │ │ ├── custom.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── icons.html │ │ │ │ │ │ ├── multiline.html │ │ │ │ │ │ └── size.html │ │ │ │ │ ├── timespinner/ │ │ │ │ │ │ ├── actions.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ └── range.html │ │ │ │ │ ├── tooltip/ │ │ │ │ │ │ ├── _content.html │ │ │ │ │ │ ├── _dialog.html │ │ │ │ │ │ ├── ajax.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── customcontent.html │ │ │ │ │ │ ├── customstyle.html │ │ │ │ │ │ ├── position.html │ │ │ │ │ │ ├── toolbar.html │ │ │ │ │ │ └── tooltipdialog.html │ │ │ │ │ ├── tree/ │ │ │ │ │ │ ├── actions.html │ │ │ │ │ │ ├── animation.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── checkbox.html │ │ │ │ │ │ ├── contextmenu.html │ │ │ │ │ │ ├── dnd.html │ │ │ │ │ │ ├── editable.html │ │ │ │ │ │ ├── formatting.html │ │ │ │ │ │ ├── icons.html │ │ │ │ │ │ ├── lazyload.html │ │ │ │ │ │ ├── lines.html │ │ │ │ │ │ ├── tree_data1.json │ │ │ │ │ │ └── tree_data2.json │ │ │ │ │ ├── treegrid/ │ │ │ │ │ │ ├── actions.html │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── clientpagination.html │ │ │ │ │ │ ├── contextmenu.html │ │ │ │ │ │ ├── editable.html │ │ │ │ │ │ ├── fluid.html │ │ │ │ │ │ ├── footer.html │ │ │ │ │ │ ├── lines.html │ │ │ │ │ │ ├── reports.html │ │ │ │ │ │ ├── treegrid_data1.json │ │ │ │ │ │ ├── treegrid_data2.json │ │ │ │ │ │ └── treegrid_data3.json │ │ │ │ │ ├── validatebox/ │ │ │ │ │ │ ├── basic.html │ │ │ │ │ │ ├── customtooltip.html │ │ │ │ │ │ └── validateonblur.html │ │ │ │ │ └── window/ │ │ │ │ │ ├── basic.html │ │ │ │ │ ├── customtools.html │ │ │ │ │ ├── fluid.html │ │ │ │ │ ├── footer.html │ │ │ │ │ ├── inlinewindow.html │ │ │ │ │ ├── modalwindow.html │ │ │ │ │ └── windowlayout.html │ │ │ │ ├── easyloader.js │ │ │ │ ├── licence_gpl.txt │ │ │ │ ├── locale/ │ │ │ │ │ ├── easyui-lang-af.js │ │ │ │ │ ├── easyui-lang-am.js │ │ │ │ │ ├── easyui-lang-ar.js │ │ │ │ │ ├── easyui-lang-bg.js │ │ │ │ │ ├── easyui-lang-ca.js │ │ │ │ │ ├── easyui-lang-cs.js │ │ │ │ │ ├── easyui-lang-cz.js │ │ │ │ │ ├── easyui-lang-da.js │ │ │ │ │ ├── easyui-lang-de.js │ │ │ │ │ ├── easyui-lang-el.js │ │ │ │ │ ├── easyui-lang-en.js │ │ │ │ │ ├── easyui-lang-es.js │ │ │ │ │ ├── easyui-lang-fr.js │ │ │ │ │ ├── easyui-lang-it.js │ │ │ │ │ ├── easyui-lang-jp.js │ │ │ │ │ ├── easyui-lang-nl.js │ │ │ │ │ ├── easyui-lang-pl.js │ │ │ │ │ ├── easyui-lang-pt_BR.js │ │ │ │ │ ├── easyui-lang-ru.js │ │ │ │ │ ├── easyui-lang-sv_SE.js │ │ │ │ │ ├── easyui-lang-tr.js │ │ │ │ │ ├── easyui-lang-zh_CN.js │ │ │ │ │ └── easyui-lang-zh_TW.js │ │ │ │ ├── plugins/ │ │ │ │ │ ├── jquery.accordion.js │ │ │ │ │ ├── jquery.calendar.js │ │ │ │ │ ├── jquery.combo.js │ │ │ │ │ ├── jquery.combobox.js │ │ │ │ │ ├── jquery.combogrid.js │ │ │ │ │ ├── jquery.combotree.js │ │ │ │ │ ├── jquery.datagrid.js │ │ │ │ │ ├── jquery.datebox.js │ │ │ │ │ ├── jquery.datetimebox.js │ │ │ │ │ ├── jquery.datetimespinner.js │ │ │ │ │ ├── jquery.dialog.js │ │ │ │ │ ├── jquery.draggable.js │ │ │ │ │ ├── jquery.droppable.js │ │ │ │ │ ├── jquery.filebox.js │ │ │ │ │ ├── jquery.form.js │ │ │ │ │ ├── jquery.layout.js │ │ │ │ │ ├── jquery.linkbutton.js │ │ │ │ │ ├── jquery.menu.js │ │ │ │ │ ├── jquery.menubutton.js │ │ │ │ │ ├── jquery.messager.js │ │ │ │ │ ├── jquery.numberbox.js │ │ │ │ │ ├── jquery.numberspinner.js │ │ │ │ │ ├── jquery.pagination.js │ │ │ │ │ ├── jquery.panel.js │ │ │ │ │ ├── jquery.parser.js │ │ │ │ │ ├── jquery.progressbar.js │ │ │ │ │ ├── jquery.propertygrid.js │ │ │ │ │ ├── jquery.resizable.js │ │ │ │ │ ├── jquery.searchbox.js │ │ │ │ │ ├── jquery.slider.js │ │ │ │ │ ├── jquery.spinner.js │ │ │ │ │ ├── jquery.splitbutton.js │ │ │ │ │ ├── jquery.tabs.js │ │ │ │ │ ├── jquery.textbox.js │ │ │ │ │ ├── jquery.timespinner.js │ │ │ │ │ ├── jquery.tooltip.js │ │ │ │ │ ├── jquery.tree.js │ │ │ │ │ ├── jquery.treegrid.js │ │ │ │ │ ├── jquery.validatebox.js │ │ │ │ │ └── jquery.window.js │ │ │ │ ├── readme.txt │ │ │ │ ├── src/ │ │ │ │ │ ├── easyloader.js │ │ │ │ │ ├── jquery.accordion.js │ │ │ │ │ ├── jquery.calendar.js │ │ │ │ │ ├── jquery.combobox.js │ │ │ │ │ ├── jquery.datebox.js │ │ │ │ │ ├── jquery.draggable.js │ │ │ │ │ ├── jquery.droppable.js │ │ │ │ │ ├── jquery.form.js │ │ │ │ │ ├── jquery.linkbutton.js │ │ │ │ │ ├── jquery.menu.js │ │ │ │ │ ├── jquery.parser.js │ │ │ │ │ ├── jquery.progressbar.js │ │ │ │ │ ├── jquery.propertygrid.js │ │ │ │ │ ├── jquery.resizable.js │ │ │ │ │ ├── jquery.slider.js │ │ │ │ │ ├── jquery.tabs.js │ │ │ │ │ └── jquery.window.js │ │ │ │ └── themes/ │ │ │ │ ├── black/ │ │ │ │ │ ├── accordion.css │ │ │ │ │ ├── calendar.css │ │ │ │ │ ├── combo.css │ │ │ │ │ ├── combobox.css │ │ │ │ │ ├── datagrid.css │ │ │ │ │ ├── datebox.css │ │ │ │ │ ├── dialog.css │ │ │ │ │ ├── easyui.css │ │ │ │ │ ├── filebox.css │ │ │ │ │ ├── layout.css │ │ │ │ │ ├── linkbutton.css │ │ │ │ │ ├── menu.css │ │ │ │ │ ├── menubutton.css │ │ │ │ │ ├── messager.css │ │ │ │ │ ├── numberbox.css │ │ │ │ │ ├── pagination.css │ │ │ │ │ ├── panel.css │ │ │ │ │ ├── progressbar.css │ │ │ │ │ ├── propertygrid.css │ │ │ │ │ ├── searchbox.css │ │ │ │ │ ├── slider.css │ │ │ │ │ ├── spinner.css │ │ │ │ │ ├── splitbutton.css │ │ │ │ │ ├── tabs.css │ │ │ │ │ ├── textbox.css │ │ │ │ │ ├── tooltip.css │ │ │ │ │ ├── tree.css │ │ │ │ │ ├── validatebox.css │ │ │ │ │ └── window.css │ │ │ │ ├── bootstrap/ │ │ │ │ │ ├── accordion.css │ │ │ │ │ ├── calendar.css │ │ │ │ │ ├── combo.css │ │ │ │ │ ├── combobox.css │ │ │ │ │ ├── datagrid.css │ │ │ │ │ ├── datebox.css │ │ │ │ │ ├── dialog.css │ │ │ │ │ ├── easyui.css │ │ │ │ │ ├── filebox.css │ │ │ │ │ ├── layout.css │ │ │ │ │ ├── linkbutton.css │ │ │ │ │ ├── menu.css │ │ │ │ │ ├── menubutton.css │ │ │ │ │ ├── messager.css │ │ │ │ │ ├── numberbox.css │ │ │ │ │ ├── pagination.css │ │ │ │ │ ├── panel.css │ │ │ │ │ ├── progressbar.css │ │ │ │ │ ├── propertygrid.css │ │ │ │ │ ├── searchbox.css │ │ │ │ │ ├── slider.css │ │ │ │ │ ├── spinner.css │ │ │ │ │ ├── splitbutton.css │ │ │ │ │ ├── tabs.css │ │ │ │ │ ├── textbox.css │ │ │ │ │ ├── tooltip.css │ │ │ │ │ ├── tree.css │ │ │ │ │ ├── validatebox.css │ │ │ │ │ └── window.css │ │ │ │ ├── color.css │ │ │ │ ├── default/ │ │ │ │ │ ├── accordion.css │ │ │ │ │ ├── calendar.css │ │ │ │ │ ├── combo.css │ │ │ │ │ ├── combobox.css │ │ │ │ │ ├── datagrid.css │ │ │ │ │ ├── datebox.css │ │ │ │ │ ├── dialog.css │ │ │ │ │ ├── easyui.css │ │ │ │ │ ├── filebox.css │ │ │ │ │ ├── layout.css │ │ │ │ │ ├── linkbutton.css │ │ │ │ │ ├── menu.css │ │ │ │ │ ├── menubutton.css │ │ │ │ │ ├── messager.css │ │ │ │ │ ├── numberbox.css │ │ │ │ │ ├── pagination.css │ │ │ │ │ ├── panel.css │ │ │ │ │ ├── progressbar.css │ │ │ │ │ ├── propertygrid.css │ │ │ │ │ ├── searchbox.css │ │ │ │ │ ├── slider.css │ │ │ │ │ ├── spinner.css │ │ │ │ │ ├── splitbutton.css │ │ │ │ │ ├── tabs.css │ │ │ │ │ ├── textbox.css │ │ │ │ │ ├── tooltip.css │ │ │ │ │ ├── tree.css │ │ │ │ │ ├── validatebox.css │ │ │ │ │ └── window.css │ │ │ │ ├── gray/ │ │ │ │ │ ├── accordion.css │ │ │ │ │ ├── calendar.css │ │ │ │ │ ├── combo.css │ │ │ │ │ ├── combobox.css │ │ │ │ │ ├── datagrid.css │ │ │ │ │ ├── datebox.css │ │ │ │ │ ├── dialog.css │ │ │ │ │ ├── easyui.css │ │ │ │ │ ├── filebox.css │ │ │ │ │ ├── layout.css │ │ │ │ │ ├── linkbutton.css │ │ │ │ │ ├── menu.css │ │ │ │ │ ├── menubutton.css │ │ │ │ │ ├── messager.css │ │ │ │ │ ├── numberbox.css │ │ │ │ │ ├── pagination.css │ │ │ │ │ ├── panel.css │ │ │ │ │ ├── progressbar.css │ │ │ │ │ ├── propertygrid.css │ │ │ │ │ ├── searchbox.css │ │ │ │ │ ├── slider.css │ │ │ │ │ ├── spinner.css │ │ │ │ │ ├── splitbutton.css │ │ │ │ │ ├── tabs.css │ │ │ │ │ ├── textbox.css │ │ │ │ │ ├── tooltip.css │ │ │ │ │ ├── tree.css │ │ │ │ │ ├── validatebox.css │ │ │ │ │ └── window.css │ │ │ │ ├── icon.css │ │ │ │ └── metro/ │ │ │ │ ├── accordion.css │ │ │ │ ├── calendar.css │ │ │ │ ├── combo.css │ │ │ │ ├── combobox.css │ │ │ │ ├── datagrid.css │ │ │ │ ├── datebox.css │ │ │ │ ├── dialog.css │ │ │ │ ├── easyui.css │ │ │ │ ├── filebox.css │ │ │ │ ├── layout.css │ │ │ │ ├── linkbutton.css │ │ │ │ ├── menu.css │ │ │ │ ├── menubutton.css │ │ │ │ ├── messager.css │ │ │ │ ├── numberbox.css │ │ │ │ ├── pagination.css │ │ │ │ ├── panel.css │ │ │ │ ├── progressbar.css │ │ │ │ ├── propertygrid.css │ │ │ │ ├── searchbox.css │ │ │ │ ├── slider.css │ │ │ │ ├── spinner.css │ │ │ │ ├── splitbutton.css │ │ │ │ ├── tabs.css │ │ │ │ ├── textbox.css │ │ │ │ ├── tooltip.css │ │ │ │ ├── tree.css │ │ │ │ ├── validatebox.css │ │ │ │ └── window.css │ │ │ └── kindeditor-4.1.10/ │ │ │ ├── asp/ │ │ │ │ ├── JSON_2.0.4.asp │ │ │ │ ├── UpLoad_Class.asp │ │ │ │ ├── demo.asp │ │ │ │ ├── file_manager_json.asp │ │ │ │ └── upload_json.asp │ │ │ ├── asp.net/ │ │ │ │ ├── README.txt │ │ │ │ ├── demo.aspx │ │ │ │ ├── file_manager_json.ashx │ │ │ │ └── upload_json.ashx │ │ │ ├── examples/ │ │ │ │ ├── auto-height.html │ │ │ │ ├── colorpicker.html │ │ │ │ ├── custom-plugin.html │ │ │ │ ├── custom-theme.html │ │ │ │ ├── default.html │ │ │ │ ├── dialog.html │ │ │ │ ├── dynamic-load.html │ │ │ │ ├── file-dialog.html │ │ │ │ ├── file-manager.html │ │ │ │ ├── filter-mode.html │ │ │ │ ├── image-dialog.html │ │ │ │ ├── index.css │ │ │ │ ├── index.html │ │ │ │ ├── jquery-ui/ │ │ │ │ │ ├── css/ │ │ │ │ │ │ └── smoothness/ │ │ │ │ │ │ └── jquery-ui-1.9.2.custom.css │ │ │ │ │ └── js/ │ │ │ │ │ └── jquery-ui-1.9.2.custom.js │ │ │ │ ├── jquery-ui.html │ │ │ │ ├── jquery.html │ │ │ │ ├── jquery.js │ │ │ │ ├── multi-image-dialog.html │ │ │ │ ├── multi-language.html │ │ │ │ ├── newline.html │ │ │ │ ├── node.html │ │ │ │ ├── paste-type.html │ │ │ │ ├── qqstyle.html │ │ │ │ ├── readonly.html │ │ │ │ ├── simple.html │ │ │ │ ├── uploadbutton.html │ │ │ │ ├── url-type.html │ │ │ │ └── word-count.html │ │ │ ├── jsp/ │ │ │ │ ├── README.txt │ │ │ │ ├── demo.jsp │ │ │ │ ├── file_manager_json.jsp │ │ │ │ └── upload_json.jsp │ │ │ ├── kindeditor-all-min.js │ │ │ ├── kindeditor-all.js │ │ │ ├── kindeditor-min.js │ │ │ ├── kindeditor.js │ │ │ ├── lang/ │ │ │ │ ├── ar.js │ │ │ │ ├── en.js │ │ │ │ ├── ko.js │ │ │ │ ├── zh_CN.js │ │ │ │ └── zh_TW.js │ │ │ ├── license.txt │ │ │ ├── php/ │ │ │ │ ├── JSON.php │ │ │ │ ├── demo.php │ │ │ │ ├── file_manager_json.php │ │ │ │ └── upload_json.php │ │ │ ├── plugins/ │ │ │ │ ├── anchor/ │ │ │ │ │ └── anchor.js │ │ │ │ ├── autoheight/ │ │ │ │ │ └── autoheight.js │ │ │ │ ├── baidumap/ │ │ │ │ │ ├── baidumap.js │ │ │ │ │ ├── index.html │ │ │ │ │ └── map.html │ │ │ │ ├── clearhtml/ │ │ │ │ │ └── clearhtml.js │ │ │ │ ├── code/ │ │ │ │ │ ├── code.js │ │ │ │ │ ├── prettify.css │ │ │ │ │ └── prettify.js │ │ │ │ ├── emoticons/ │ │ │ │ │ └── emoticons.js │ │ │ │ ├── filemanager/ │ │ │ │ │ └── filemanager.js │ │ │ │ ├── flash/ │ │ │ │ │ └── flash.js │ │ │ │ ├── image/ │ │ │ │ │ └── image.js │ │ │ │ ├── insertfile/ │ │ │ │ │ └── insertfile.js │ │ │ │ ├── lineheight/ │ │ │ │ │ └── lineheight.js │ │ │ │ ├── link/ │ │ │ │ │ └── link.js │ │ │ │ ├── map/ │ │ │ │ │ ├── map.html │ │ │ │ │ └── map.js │ │ │ │ ├── media/ │ │ │ │ │ └── media.js │ │ │ │ ├── multiimage/ │ │ │ │ │ ├── images/ │ │ │ │ │ │ └── swfupload.swf │ │ │ │ │ └── multiimage.js │ │ │ │ ├── pagebreak/ │ │ │ │ │ └── pagebreak.js │ │ │ │ ├── plainpaste/ │ │ │ │ │ └── plainpaste.js │ │ │ │ ├── preview/ │ │ │ │ │ └── preview.js │ │ │ │ ├── quickformat/ │ │ │ │ │ └── quickformat.js │ │ │ │ ├── table/ │ │ │ │ │ └── table.js │ │ │ │ ├── template/ │ │ │ │ │ ├── html/ │ │ │ │ │ │ ├── 1.html │ │ │ │ │ │ ├── 2.html │ │ │ │ │ │ └── 3.html │ │ │ │ │ └── template.js │ │ │ │ └── wordpaste/ │ │ │ │ └── wordpaste.js │ │ │ └── themes/ │ │ │ ├── default/ │ │ │ │ └── default.css │ │ │ ├── qq/ │ │ │ │ └── qq.css │ │ │ └── simple/ │ │ │ └── simple.css │ │ └── test/ │ │ └── java/ │ │ └── test/ │ │ └── Test.java │ └── pom.xml ├── migo-parent/ │ └── pom.xml ├── migo-portal/ │ ├── pom.xml │ └── src/ │ └── main/ │ ├── java/ │ │ └── com/ │ │ └── migo/ │ │ └── portal/ │ │ ├── controller/ │ │ │ ├── IndexController.java │ │ │ └── ItemController.java │ │ ├── pojo/ │ │ │ ├── Content.java │ │ │ ├── Item.java │ │ │ ├── ItemDesc.java │ │ │ └── ItemParamItem.java │ │ └── service/ │ │ ├── IndexService.java │ │ └── ItemService.java │ ├── resources/ │ │ ├── evn/ │ │ │ ├── envi.properties │ │ │ └── log4j.properties │ │ └── spring/ │ │ ├── applicationContext.xml │ │ └── springmvc.xml │ └── webapp/ │ ├── WEB-INF/ │ │ ├── commons/ │ │ │ ├── footer-links.jsp │ │ │ ├── footer.jsp │ │ │ ├── header.jsp │ │ │ └── shortcut.jsp │ │ ├── views/ │ │ │ ├── cart.jsp │ │ │ ├── error/ │ │ │ │ ├── exception.jsp │ │ │ │ └── my-exception.jsp │ │ │ ├── index.jsp │ │ │ ├── item.jsp │ │ │ ├── login.jsp │ │ │ ├── my-info-img.jsp │ │ │ ├── my-info-more.jsp │ │ │ ├── my-info.jsp │ │ │ ├── my-order-comment.jsp │ │ │ ├── my-orders.jsp │ │ │ ├── order-cart-old.jsp │ │ │ ├── order-cart.jsp │ │ │ ├── order.jsp │ │ │ ├── register.jsp │ │ │ ├── search.jsp │ │ │ ├── success.jsp │ │ │ └── 商品分类数据格式.txt │ │ └── web.xml │ ├── css/ │ │ ├── base.css │ │ ├── login.css │ │ ├── migo.css │ │ ├── myjd.commentImg.css │ │ ├── myjd.common.css │ │ ├── myjd.info.css │ │ ├── myjd.order.css │ │ ├── order-commons.css │ │ ├── passport.base.css │ │ ├── pop_compare.css │ │ ├── psearch.onebox.css │ │ ├── psearch20131008.css │ │ ├── pshow.css │ │ ├── purchase.2012.css │ │ ├── purchase.base.2012.css │ │ ├── purchase.checkout.css │ │ ├── purchase.sop.css │ │ └── regist.personal.css │ ├── images/ │ │ └── swfupload.swf │ └── js/ │ ├── CommentStar.js │ ├── base-2011.js │ ├── base-v1.js │ ├── base.js │ ├── calendar.js │ ├── cart.js │ ├── comment.json │ ├── home.js │ ├── iplocation_server.js │ ├── jTips.js │ ├── jquery-1.6.4.js │ ├── jquery-extend.js │ ├── jquery.checkout.js │ ├── jquery.cookie.js │ ├── jquery.hashchange.js │ ├── json2.js │ ├── lib-v1.js │ ├── login/ │ │ ├── checkClient.js │ │ ├── g.base.js │ │ ├── jdEdit.js │ │ ├── jdThickBox.js │ │ └── login.js │ ├── migo.js │ ├── order.common.js │ ├── order.js │ ├── order2.js │ ├── payAndShipment.js │ ├── product.js │ ├── register/ │ │ ├── jd.lib.js │ │ ├── jdThickBox.js │ │ ├── jdValidate.emReg.js │ │ ├── jdValidate.js │ │ └── jdValidate.regSuccess.js │ ├── search_main.js │ └── static/ │ ├── lib-v1.js │ └── register/ │ ├── jd.lib.js │ ├── jdThickBox.js │ ├── jdValidate.emReg.js │ ├── jdValidate.js │ └── jdValidate.regSuccess.js ├── migo-sso/ │ ├── pom.xml │ └── src/ │ └── main/ │ ├── java/ │ │ └── com/ │ │ └── migo/ │ │ └── sso/ │ │ ├── controller/ │ │ │ └── SsoController.java │ │ ├── mapper/ │ │ │ └── UserMapper.java │ │ ├── pojo/ │ │ │ └── User.java │ │ └── service/ │ │ └── UserService.java │ ├── resources/ │ │ ├── log4j.properties │ │ ├── properties/ │ │ │ └── db.properties │ │ └── spring/ │ │ ├── applicationContext-dao.xml │ │ ├── applicationContext-service.xml │ │ ├── applicationContext-trans.xml │ │ └── migo-sso-mvc.xml │ └── webapp/ │ └── WEB-INF/ │ ├── commons/ │ │ ├── footer-links.jsp │ │ ├── footer.jsp │ │ ├── header.jsp │ │ └── shortcut.jsp │ ├── views/ │ │ ├── login.jsp │ │ └── register.jsp │ └── web.xml └── migo2.sql ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ # maven ignore target/ *.jar *.war *.zip *.tar *.tar.gz # eclipse ignore .settings/ .project .classpath # idea ignore .idea/ *.ipr *.iml *.iws # temp ignore *.log *.cache *.diff *.patch *.tmp # system ignore .DS_Store <<<<<<< HEAD Thumbs.db ======= Thumbs.db >>>>>>> e704ead569657bdb826d1d159a140d2c8278d779 ================================================ FILE: README.md ================================================ # migoshop2.0 #### 具体操作实现步骤请参考本人博客 https://muyinchen.github.io/categories/Migo%E5%95%86%E5%9F%8E2-0/ #### 同时可以对比migo商城第一个版本实现 https://github.com/muyinchen/migoShop ##### 2016.12.31: ##### 2016最后一天,当然要来点猛料,添加sso番外版migo-Fsso,使用Springboot+全新的ORM框架speedment来改写,并使用thymeleaf静态模板页,关于speedment,网上资料很少,全是自己踩坑实现,对于cookie处理这块因为tomcat版本问题出现了不兼容,新的工具类已经实现,等2.0完全迭代完事之后,会和3.0一起放出 ##### ##### 2016.12.25: ###### 为使用Spring4.3的新特性,将依赖版本升级为4.3.5,相应的Jackson版本也相应升级,否则出错,另实现了单点登录系统的注册功能 ##### ================================================ FILE: migo-Fsso/.gitignore ================================================ target/ !.mvn/wrapper/maven-wrapper.jar ### STS ### .apt_generated .classpath .factorypath .project .settings .springBeans ### IntelliJ IDEA ### .idea *.iws *.iml *.ipr ### NetBeans ### nbproject/private/ build/ nbbuild/ dist/ nbdist/ .nb-gradle/ ================================================ FILE: migo-Fsso/.mvn/wrapper/maven-wrapper.properties ================================================ distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip ================================================ FILE: migo-Fsso/mvnw ================================================ #!/bin/sh # ---------------------------------------------------------------------------- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # ---------------------------------------------------------------------------- # ---------------------------------------------------------------------------- # Maven2 Start Up Batch script # # Required ENV vars: # ------------------ # JAVA_HOME - location of a JDK home dir # # Optional ENV vars # ----------------- # M2_HOME - location of maven2's installed home dir # MAVEN_OPTS - parameters passed to the Java VM when running Maven # e.g. to debug Maven itself, use # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 # MAVEN_SKIP_RC - flag to disable loading of mavenrc files # ---------------------------------------------------------------------------- if [ -z "$MAVEN_SKIP_RC" ] ; then if [ -f /etc/mavenrc ] ; then . /etc/mavenrc fi if [ -f "$HOME/.mavenrc" ] ; then . "$HOME/.mavenrc" fi fi # OS specific support. $var _must_ be set to either true or false. cygwin=false; darwin=false; mingw=false case "`uname`" in CYGWIN*) cygwin=true ;; MINGW*) mingw=true;; Darwin*) darwin=true # # Look for the Apple JDKs first to preserve the existing behaviour, and then look # for the new JDKs provided by Oracle. # if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK ] ; then # # Apple JDKs # export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home fi if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Java/JavaVirtualMachines/CurrentJDK ] ; then # # Apple JDKs # export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home fi if [ -z "$JAVA_HOME" ] && [ -L "/Library/Java/JavaVirtualMachines/CurrentJDK" ] ; then # # Oracle JDKs # export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home fi if [ -z "$JAVA_HOME" ] && [ -x "/usr/libexec/java_home" ]; then # # Apple JDKs # export JAVA_HOME=`/usr/libexec/java_home` fi ;; esac if [ -z "$JAVA_HOME" ] ; then if [ -r /etc/gentoo-release ] ; then JAVA_HOME=`java-config --jre-home` fi fi if [ -z "$M2_HOME" ] ; then ## resolve links - $0 may be a link to maven's home PRG="$0" # need this for relative symlinks while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG="`dirname "$PRG"`/$link" fi done saveddir=`pwd` M2_HOME=`dirname "$PRG"`/.. # make it fully qualified M2_HOME=`cd "$M2_HOME" && pwd` cd "$saveddir" # echo Using m2 at $M2_HOME fi # For Cygwin, ensure paths are in UNIX format before anything is touched if $cygwin ; then [ -n "$M2_HOME" ] && M2_HOME=`cygpath --unix "$M2_HOME"` [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"` fi # For Migwn, ensure paths are in UNIX format before anything is touched if $mingw ; then [ -n "$M2_HOME" ] && M2_HOME="`(cd "$M2_HOME"; pwd)`" [ -n "$JAVA_HOME" ] && JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" # TODO classpath? fi if [ -z "$JAVA_HOME" ]; then javaExecutable="`which javac`" if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then # readlink(1) is not available as standard on Solaris 10. readLink=`which readlink` if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then if $darwin ; then javaHome="`dirname \"$javaExecutable\"`" javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" else javaExecutable="`readlink -f \"$javaExecutable\"`" fi javaHome="`dirname \"$javaExecutable\"`" javaHome=`expr "$javaHome" : '\(.*\)/bin'` JAVA_HOME="$javaHome" export JAVA_HOME fi fi fi if [ -z "$JAVACMD" ] ; then if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" else JAVACMD="$JAVA_HOME/bin/java" fi else JAVACMD="`which java`" fi fi if [ ! -x "$JAVACMD" ] ; then echo "Error: JAVA_HOME is not defined correctly." >&2 echo " We cannot execute $JAVACMD" >&2 exit 1 fi if [ -z "$JAVA_HOME" ] ; then echo "Warning: JAVA_HOME environment variable is not set." fi CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher # For Cygwin, switch paths to Windows format before running java if $cygwin; then [ -n "$M2_HOME" ] && M2_HOME=`cygpath --path --windows "$M2_HOME"` [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --windows "$CLASSPATH"` fi # traverses directory structure from process work directory to filesystem root # first directory with .mvn subdirectory is considered project base directory find_maven_basedir() { local basedir=$(pwd) local wdir=$(pwd) while [ "$wdir" != '/' ] ; do if [ -d "$wdir"/.mvn ] ; then basedir=$wdir break fi wdir=$(cd "$wdir/.."; pwd) done echo "${basedir}" } # concatenates all lines of a file concat_lines() { if [ -f "$1" ]; then echo "$(tr -s '\n' ' ' < "$1")" fi } export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-$(find_maven_basedir)} MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" # Provide a "standardized" way to retrieve the CLI args that will # work with both Windows and non-Windows executions. MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" export MAVEN_CMD_LINE_ARGS WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain exec "$JAVACMD" \ $MAVEN_OPTS \ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ ${WRAPPER_LAUNCHER} "$@" ================================================ FILE: migo-Fsso/mvnw.cmd ================================================ @REM ---------------------------------------------------------------------------- @REM Licensed to the Apache Software Foundation (ASF) under one @REM or more contributor license agreements. See the NOTICE file @REM distributed with this work for additional information @REM regarding copyright ownership. The ASF licenses this file @REM to you under the Apache License, Version 2.0 (the @REM "License"); you may not use this file except in compliance @REM with the License. You may obtain a copy of the License at @REM @REM http://www.apache.org/licenses/LICENSE-2.0 @REM @REM Unless required by applicable law or agreed to in writing, @REM software distributed under the License is distributed on an @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @REM KIND, either express or implied. See the License for the @REM specific language governing permissions and limitations @REM under the License. @REM ---------------------------------------------------------------------------- @REM ---------------------------------------------------------------------------- @REM Maven2 Start Up Batch script @REM @REM Required ENV vars: @REM JAVA_HOME - location of a JDK home dir @REM @REM Optional ENV vars @REM M2_HOME - location of maven2's installed home dir @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven @REM e.g. to debug Maven itself, use @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files @REM ---------------------------------------------------------------------------- @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' @echo off @REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% @REM set %HOME% to equivalent of $HOME if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") @REM Execute a user defined script before this one if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre @REM check for pre script, once with legacy .bat ending and once with .cmd ending if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" :skipRcPre @setlocal set ERROR_CODE=0 @REM To isolate internal variables from possible post scripts, we use another setlocal @setlocal @REM ==== START VALIDATION ==== if not "%JAVA_HOME%" == "" goto OkJHome echo. echo Error: JAVA_HOME not found in your environment. >&2 echo Please set the JAVA_HOME variable in your environment to match the >&2 echo location of your Java installation. >&2 echo. goto error :OkJHome if exist "%JAVA_HOME%\bin\java.exe" goto init echo. echo Error: JAVA_HOME is set to an invalid directory. >&2 echo JAVA_HOME = "%JAVA_HOME%" >&2 echo Please set the JAVA_HOME variable in your environment to match the >&2 echo location of your Java installation. >&2 echo. goto error @REM ==== END VALIDATION ==== :init set MAVEN_CMD_LINE_ARGS=%* @REM Find the project base dir, i.e. the directory that contains the folder ".mvn". @REM Fallback to current working directory if not found. set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir set EXEC_DIR=%CD% set WDIR=%EXEC_DIR% :findBaseDir IF EXIST "%WDIR%"\.mvn goto baseDirFound cd .. IF "%WDIR%"=="%CD%" goto baseDirNotFound set WDIR=%CD% goto findBaseDir :baseDirFound set MAVEN_PROJECTBASEDIR=%WDIR% cd "%EXEC_DIR%" goto endDetectBaseDir :baseDirNotFound set MAVEN_PROJECTBASEDIR=%EXEC_DIR% cd "%EXEC_DIR%" :endDetectBaseDir IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig @setlocal EnableExtensions EnableDelayedExpansion for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% :endReadAdditionalConfig SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" set WRAPPER_JAR="".\.mvn\wrapper\maven-wrapper.jar"" set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CMD_LINE_ARGS% if ERRORLEVEL 1 goto error goto end :error set ERROR_CODE=1 :end @endlocal & set ERROR_CODE=%ERROR_CODE% if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost @REM check for post script, once with legacy .bat ending and once with .cmd ending if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" :skipRcPost @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' if "%MAVEN_BATCH_PAUSE%" == "on" pause if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% exit /B %ERROR_CODE% ================================================ FILE: migo-Fsso/pom.xml ================================================ 4.0.0 com.migo3 migo3-sso 0.0.1-SNAPSHOT jar demo org.springframework.boot spring-boot-starter-parent 1.4.3.RELEASE UTF-8 UTF-8 1.8 4.3.5.RELEASE 3.0.1 mysql mysql-connector-java 5.1.39 com.migo common 2.0-SNAPSHOT org.springframework.boot spring-boot-starter-jdbc org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test test org.springframework.boot spring-boot-starter-thymeleaf com.alibaba druid 1.0.26 com.speedment runtime ${speedment.version} pom ${db.groupId} ${db.artifactId} ${db.version} org.springframework.boot spring-boot-maven-plugin com.speedment speedment-maven-plugin ${speedment.version} ${db.groupId} ${db.artifactId} ${db.version} org.apache.maven.plugins maven-compiler-plugin 1.8 1.8 ================================================ FILE: migo-Fsso/settings.properties ================================================ #Speedment Settings #Thu Dec 29 14:59:10 CST 2016 last_known_port=3306 last_known_user=root last_known_name=db0 last_known_dbtype=MySQL project_location=D\:\\migoshop3\\migo-Fsso\\src\\main\\json\\speedment.json hide_open_option=false last_known_host=127.0.0.1 last_known_schema=migo2 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/.speedment/.Migo2Application.java.md5 ================================================ 50d0ae9d22dd482d447c93cac09a0a18 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/.speedment/.Migo2ApplicationBuilder.java.md5 ================================================ c4c9450a644569f984c72aeb12b7647b ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/.speedment/.Migo2ApplicationImpl.java.md5 ================================================ 6d84fee86e1e5e0080621eac987f7eb4 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/Migo2Application.java ================================================ package com.migo3.sso; import com.migo3.sso.generated.GeneratedMigo2Application; /** * An {@link com.speedment.runtime.core.ApplicationBuilder} interface for the * {@link com.speedment.runtime.config.Project} named migo2. *

* This file is safe to edit. It will not be overwritten by the code generator. * * @author company */ public interface Migo2Application extends GeneratedMigo2Application { } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/Migo2ApplicationBuilder.java ================================================ package com.migo3.sso; import com.migo3.sso.generated.GeneratedMigo2ApplicationBuilder; /** * The default {@link com.speedment.runtime.core.ApplicationBuilder} * implementation class for the {@link com.speedment.runtime.config.Project} * named migo2. *

* This file is safe to edit. It will not be overwritten by the code generator. * * @author company */ public final class Migo2ApplicationBuilder extends GeneratedMigo2ApplicationBuilder { } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/Migo2ApplicationImpl.java ================================================ package com.migo3.sso; import com.migo3.sso.generated.GeneratedMigo2ApplicationImpl; /** * The default {@link com.speedment.runtime.core.Speedment} implementation class * for the {@link com.speedment.runtime.config.Project} named migo2. *

* This file is safe to edit. It will not be overwritten by the code generator. * * @author company */ public final class Migo2ApplicationImpl extends GeneratedMigo2ApplicationImpl implements Migo2Application { } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/SsoApplication.java ================================================ package com.migo3.sso; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SsoApplication { public static void main(String[] args) { SpringApplication.run(SsoApplication.class, args); } } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/UserConfig.java ================================================ package com.migo3.sso; import com.alibaba.druid.pool.DruidDataSource; import com.migo.messageconverter.CallbackMappingJackson2HttpMessageConverter; import com.migo.service.impl.JedisClientSingle; import com.migo3.sso.pojo.UserManager; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.env.Environment; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; import redis.clients.jedis.JedisPool; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/12/29. */ @Configuration public class UserConfig extends WebMvcConfigurerAdapter { @Autowired private Environment env; @Bean public Migo2Application geMigo2Application() { return new Migo2ApplicationBuilder() .withPassword("123") .build(); } @Bean public UserManager getUserManager(Migo2Application application) { return application.getOrThrow(UserManager.class); } @Bean public CallbackMappingJackson2HttpMessageConverter converter() { CallbackMappingJackson2HttpMessageConverter msc = new CallbackMappingJackson2HttpMessageConverter(); msc.setCallbackName("callback"); return msc; } @Bean("jedisPool") public JedisPool jedisPool() { return new JedisPool("192.168.42.131", 6379); } @Bean("jedisClientSingle") public JedisClientSingle jedisClientSingle() { return new JedisClientSingle(); } @Override public void extendMessageConverters(List> converters) { super.extendMessageConverters(converters); converters.add(converter()); } @Bean public DruidDataSource dataSource() { DruidDataSource dataSource = new DruidDataSource(); dataSource.setUrl(env.getProperty("spring.datasource.url")); dataSource.setUsername(env.getProperty("spring.datasource.username"));//用户名 dataSource.setPassword(env.getProperty("spring.datasource.password"));//密码 dataSource.setInitialSize(2); dataSource.setMaxActive(20); dataSource.setMinIdle(0); dataSource.setMaxWait(60000); dataSource.setValidationQuery("SELECT 1"); dataSource.setTestOnBorrow(false); dataSource.setTestWhileIdle(true); dataSource.setPoolPreparedStatements(false); return dataSource; } } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/controller/SsoController.java ================================================ package com.migo3.sso.controller; import com.migo.utils.CookieUtils; import com.migo3.sso.pojo.User; import com.migo3.sso.pojo.UserImpl; import com.migo3.sso.service.UserService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.validation.BindingResult; import org.springframework.validation.ObjectError; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; /** * Author 知秋 * Created by kauw on 2016/12/29. */ @Controller public class SsoController { private static final Logger logger= LoggerFactory.getLogger(SsoController.class); private static final String COOKIE_NAME = "MG_TOKEN"; @Autowired private UserService userService; @GetMapping("/rest/user/register") public String register(){ return "register"; } @GetMapping("/rest/user/doLogin") public String doLogin(ModelMap map){ map.addAttribute("host", "http://blog.didispace.com"); return "login"; } @PostMapping("/do/user/doLogin") @ResponseBody public Map doLogin(@RequestParam("username") String username, @RequestParam("password") String password, HttpServletRequest request, HttpServletResponse response){ Map map=new HashMap<>(); try { if (logger.isInfoEnabled()){ logger.info("用户登录功能 username = {} ,password = {}",username,password); } String token=this.userService.doLogin(username,password); if (token == null) { map.put("status",400); }else { //登录成功将token写入到cookie中 map.put("status",200); CookieUtils.setCookie(request,response,COOKIE_NAME,token); } } catch (Exception e) { logger.error("用户登录失败 username = {}",username,e); map.put("status",500); } return map; } @GetMapping("/do/user/check/{param}/{type}") public ResponseEntity check(@PathVariable String param, @PathVariable Integer type){ try { if (logger.isInfoEnabled()){ logger.info("检查数据是否可用 param = {} ,type = {}",param,type); } Boolean bool=this.userService.check(param,type); if (null==bool){ return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(null); } return ResponseEntity.ok(bool); } catch (Exception e) { logger.error("检查数据是否可用 出现异常",e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } @PostMapping("/do/user/doRegister") @ResponseBody public Map doRegister(@Validated UserImpl user, BindingResult bindingResult){ Map map=new HashMap<>(); try { if (logger.isInfoEnabled()){ logger.info("注册用户 user = {}", user); } if (bindingResult.hasErrors()){ //List megs=new ArrayList<>(); List allErrors = bindingResult.getAllErrors(); //一种实现,两种写法,都可以使用 // allErrors.stream().map(ObjectError::getDefaultMessage).forEach(megs::add); // allErrors.stream().parallel().map(ObjectError::getDefaultMessage).forEach(megs::add); // allErrors.forEach(objectError -> megs.add(objectError.getDefaultMessage())); //allErrors.stream().forEach(objectError->megs.add(objectError.getDefaultMessage())); //List collect = allErrors.stream().map(ObjectError::getDefaultMessage).collect(Collectors.toList()); String collect = allErrors.stream(). parallel(). map(ObjectError::getDefaultMessage). collect(Collectors.joining("|")); map.put("status","401"); //map.put("data", StringUtils.join(megs,"|")); map.put("data",collect); return map; } Boolean bool=this.userService.doRegister( user); if (bool){ map.put("status",200); }else { map.put("status",500); map.put("data","注册失败"); } } catch (Exception e) { logger.error("注册失败 user = {} ",user,e); map.put("status",500); map.put("data","注册失败"); } return map; } @GetMapping("/do/user/{token}") public ResponseEntity queryByToken(@PathVariable("token") String token){ try { if (logger.isInfoEnabled()){ logger.info("根据token查询用户信息 token = {}", token); } User user=this.userService.queryByToken(token); if (null==user){ return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null); } return ResponseEntity.ok(user); } catch (Exception e) { logger.error("根据token查询用户信息 出错 token = {}", token,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/.speedment/.GeneratedMigo2Application.java.md5 ================================================ 4f01445412b41fddd046c78fcdd2d612 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/.speedment/.GeneratedMigo2ApplicationBuilder.java.md5 ================================================ 1253dc8d4ce6b2c787757b6cd157ad40 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/.speedment/.GeneratedMigo2ApplicationImpl.java.md5 ================================================ c8db2bf657039154e022056021adfd42 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/.speedment/.GeneratedMigo2Metadata.java.md5 ================================================ 3682bb03a00bae514cdd88c3f6d6daaa ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/GeneratedMigo2Application.java ================================================ package com.migo3.sso.generated; import com.speedment.runtime.core.Speedment; import javax.annotation.Generated; /** * The generated {@link * com.speedment.runtime.core.internal.AbstractApplicationBuilder} application * interface for the {@link com.speedment.runtime.config.Project} named migo2. *

* This file has been automatically generated by Speedment. Any changes made to * it will be overwritten. * * @author Speedment */ @Generated("Speedment") public interface GeneratedMigo2Application extends Speedment { } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/GeneratedMigo2ApplicationBuilder.java ================================================ package com.migo3.sso.generated; import com.migo3.sso.Migo2Application; import com.migo3.sso.Migo2ApplicationBuilder; import com.migo3.sso.Migo2ApplicationImpl; import com.migo3.sso.pojo.UserManagerImpl; import com.migo3.sso.pojo.UserSqlAdapter; import com.speedment.common.injector.Injector; import com.speedment.runtime.core.internal.AbstractApplicationBuilder; import javax.annotation.Generated; /** * A generated base {@link * com.speedment.runtime.core.internal.AbstractApplicationBuilder} class for the * {@link com.speedment.runtime.config.Project} named migo2. *

* This file has been automatically generated by Speedment. Any changes made to * it will be overwritten. * * @author Speedment */ @Generated("Speedment") public abstract class GeneratedMigo2ApplicationBuilder extends AbstractApplicationBuilder { protected GeneratedMigo2ApplicationBuilder() { super(Migo2ApplicationImpl.class, GeneratedMigo2Metadata.class); withManager(UserManagerImpl.class); withComponent(UserSqlAdapter.class); } @Override public Migo2Application build(Injector injector) { return injector.getOrThrow(Migo2Application.class); } } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/GeneratedMigo2ApplicationImpl.java ================================================ package com.migo3.sso.generated; import com.speedment.runtime.core.internal.AbstractSpeedment; import javax.annotation.Generated; /** * The generated {@link * com.speedment.runtime.core.internal.AbstractApplicationBuilder} * implementation class for the {@link com.speedment.runtime.config.Project} * named migo2. *

* This file has been automatically generated by Speedment. Any changes made to * it will be overwritten. * * @author Speedment */ @Generated("Speedment") public class GeneratedMigo2ApplicationImpl extends AbstractSpeedment implements GeneratedMigo2Application { } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/GeneratedMigo2Metadata.java ================================================ package com.migo3.sso.generated; import com.speedment.runtime.core.internal.AbstractApplicationMetadata; import java.util.Optional; import java.util.stream.Stream; import javax.annotation.Generated; /** * A {@link com.speedment.runtime.core.ApplicationMetadata} class for the {@link * com.speedment.runtime.config.Project} named migo2. This class contains the * meta data present at code generation time. *

* This file has been automatically generated by Speedment. Any changes made to * it will be overwritten. * * @author Speedment */ @Generated("Speedment") public class GeneratedMigo2Metadata extends AbstractApplicationMetadata { private final static String METADATA = init(); private static String init() { final StringBuilder sb = new StringBuilder(); initPart0(sb); initPart1(sb); initPart2(sb); initPart3(sb); initPart4(sb); initPart5(sb); initPart6(sb); initPart7(sb); initPart8(sb); initPart9(sb); initPart10(sb); initPart11(sb); initPart12(sb); initPart13(sb); return sb.toString(); } @Override protected Optional getMetadata() { return Optional.of(METADATA); } private static void initPart0(StringBuilder sb) { Stream.of( "{", " \"config\" : {", " \"expanded\" : true,", " \"companyName\" : \"company\",", " \"name\" : \"migo2\",", " \"packageLocation\" : \"src/main/java/\",", " \"packageName\" : \"com.migo2.sso\",", " \"dbmses\" : [", " {", " \"expanded\" : true,", " \"port\" : 3306,", " \"schemas\" : [", " {", " \"tables\" : [", " {", " \"expanded\" : false,", " \"primaryKeyColumns\" : [", " {", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"indexes\" : [", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"PRIMARY\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"enabled\" : true", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"category_id\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"category_id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"enabled\" : true", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"updated\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"updated\",", " \"ordinalPosition\" : 1", " }", " ],", " \"enabled\" : true", " }", " ],", " \"columns\" : [", " {", " \"databaseType\" : \"java.lang.Long\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"autoIncrement\" : true,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.Long\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"category_id\",", " \"ordinalPosition\" : 2,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"title\",", " \"ordinalPosition\" : 3,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"sub_title\",", " \"ordinalPosition\" : 4," ).forEachOrdered(sb::append); } private static void initPart1(StringBuilder sb) { Stream.of( " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"title_desc\",", " \"ordinalPosition\" : 5,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"url\",", " \"ordinalPosition\" : 6,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"pic\",", " \"ordinalPosition\" : 7,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"pic2\",", " \"ordinalPosition\" : 8,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"content\",", " \"ordinalPosition\" : 9,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"created\",", " \"ordinalPosition\" : 10,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"updated\",", " \"ordinalPosition\" : 11,", " \"enabled\" : true", " }", " ],", " \"name\" : \"tb_content\",", " \"enabled\" : false", " },", " {", " \"expanded\" : false,", " \"primaryKeyColumns\" : [", " {", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"indexes\" : [", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"PRIMARY\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"enabled\" : true", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"parent_id\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"parent_id\",", " \"ordinalPosition\" : 1", " },", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"status\"," ).forEachOrdered(sb::append); } private static void initPart2(StringBuilder sb) { Stream.of( " \"ordinalPosition\" : 2", " }", " ],", " \"enabled\" : true", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"sort_order\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"sort_order\",", " \"ordinalPosition\" : 1", " }", " ],", " \"enabled\" : true", " }", " ],", " \"columns\" : [", " {", " \"databaseType\" : \"java.lang.Long\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"autoIncrement\" : true,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.Long\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"parent_id\",", " \"ordinalPosition\" : 2,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"name\",", " \"ordinalPosition\" : 3,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.Integer\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"status\",", " \"ordinalPosition\" : 4,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.Integer\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"sort_order\",", " \"ordinalPosition\" : 5,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.Integer\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"is_parent\",", " \"ordinalPosition\" : 6,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"created\",", " \"ordinalPosition\" : 7,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"updated\",", " \"ordinalPosition\" : 8,", " \"enabled\" : true", " }", " ],", " \"name\" : \"tb_content_category\",", " \"enabled\" : false", " },", " {", " \"expanded\" : false,", " \"primaryKeyColumns\" : [", " {", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"indexes\" : [" ).forEachOrdered(sb::append); } private static void initPart3(StringBuilder sb) { Stream.of( " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"PRIMARY\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"cid\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"cid\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"status\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"status\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"updated\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"updated\",", " \"ordinalPosition\" : 1", " }", " ]", " }", " ],", " \"columns\" : [", " {", " \"databaseType\" : \"java.lang.Long\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"title\",", " \"ordinalPosition\" : 2,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"sell_point\",", " \"ordinalPosition\" : 3,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.Long\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"price\",", " \"ordinalPosition\" : 4,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.Integer\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"num\",", " \"ordinalPosition\" : 5,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true," ).forEachOrdered(sb::append); } private static void initPart4(StringBuilder sb) { Stream.of( " \"name\" : \"barcode\",", " \"ordinalPosition\" : 6,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"image\",", " \"ordinalPosition\" : 7,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.Long\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"cid\",", " \"ordinalPosition\" : 8,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.lang.Byte\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"status\",", " \"ordinalPosition\" : 9,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"created\",", " \"ordinalPosition\" : 10,", " \"enabled\" : true", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"updated\",", " \"ordinalPosition\" : 11", " }", " ],", " \"name\" : \"tb_item\",", " \"enabled\" : false", " },", " {", " \"expanded\" : false,", " \"primaryKeyColumns\" : [", " {", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"indexes\" : [", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"PRIMARY\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"parent_id\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"parent_id\",", " \"ordinalPosition\" : 1", " },", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"status\",", " \"ordinalPosition\" : 2", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"sort_order\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"sort_order\",", " \"ordinalPosition\" : 1" ).forEachOrdered(sb::append); } private static void initPart5(StringBuilder sb) { Stream.of( " }", " ]", " }", " ],", " \"columns\" : [", " {", " \"databaseType\" : \"java.lang.Long\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"autoIncrement\" : true,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " },", " {", " \"databaseType\" : \"java.lang.Long\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"parent_id\",", " \"ordinalPosition\" : 2", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"name\",", " \"ordinalPosition\" : 3", " },", " {", " \"databaseType\" : \"java.lang.Integer\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"status\",", " \"ordinalPosition\" : 4", " },", " {", " \"databaseType\" : \"java.lang.Integer\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"sort_order\",", " \"ordinalPosition\" : 5", " },", " {", " \"databaseType\" : \"java.lang.Integer\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"is_parent\",", " \"ordinalPosition\" : 6", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"created\",", " \"ordinalPosition\" : 7", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"updated\",", " \"ordinalPosition\" : 8", " }", " ],", " \"name\" : \"tb_item_cat\",", " \"enabled\" : false", " },", " {", " \"expanded\" : false,", " \"primaryKeyColumns\" : [", " {", " \"expanded\" : false,", " \"name\" : \"item_id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"indexes\" : [", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"PRIMARY\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"item_id\",", " \"ordinalPosition\" : 1", " }", " ]", " }", " ],", " \"columns\" : [", " {", " \"databaseType\" : \"java.lang.Long\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"item_id\",", " \"ordinalPosition\" : 1", " },", " {" ).forEachOrdered(sb::append); } private static void initPart6(StringBuilder sb) { Stream.of( " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"item_desc\",", " \"ordinalPosition\" : 2", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"created\",", " \"ordinalPosition\" : 3", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"updated\",", " \"ordinalPosition\" : 4", " }", " ],", " \"name\" : \"tb_item_desc\",", " \"enabled\" : false", " },", " {", " \"expanded\" : false,", " \"primaryKeyColumns\" : [", " {", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"indexes\" : [", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"PRIMARY\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"item_cat_id\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"item_cat_id\",", " \"ordinalPosition\" : 1", " }", " ]", " }", " ],", " \"columns\" : [", " {", " \"databaseType\" : \"java.lang.Long\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"autoIncrement\" : true,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " },", " {", " \"databaseType\" : \"java.lang.Long\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"item_cat_id\",", " \"ordinalPosition\" : 2", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"param_data\",", " \"ordinalPosition\" : 3", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"created\",", " \"ordinalPosition\" : 4", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"updated\",", " \"ordinalPosition\" : 5", " }", " ],", " \"name\" : \"tb_item_param\"," ).forEachOrdered(sb::append); } private static void initPart7(StringBuilder sb) { Stream.of( " \"enabled\" : false", " },", " {", " \"expanded\" : false,", " \"primaryKeyColumns\" : [", " {", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"indexes\" : [", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"PRIMARY\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"item_id\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"item_id\",", " \"ordinalPosition\" : 1", " }", " ]", " }", " ],", " \"columns\" : [", " {", " \"databaseType\" : \"java.lang.Long\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"autoIncrement\" : true,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " },", " {", " \"databaseType\" : \"java.lang.Long\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"item_id\",", " \"ordinalPosition\" : 2", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"param_data\",", " \"ordinalPosition\" : 3", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"created\",", " \"ordinalPosition\" : 4", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"updated\",", " \"ordinalPosition\" : 5", " }", " ],", " \"name\" : \"tb_item_param_item\",", " \"enabled\" : false", " },", " {", " \"expanded\" : false,", " \"primaryKeyColumns\" : [", " {", " \"expanded\" : false,", " \"name\" : \"order_id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"indexes\" : [", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"PRIMARY\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"order_id\",", " \"ordinalPosition\" : 1" ).forEachOrdered(sb::append); } private static void initPart8(StringBuilder sb) { Stream.of( " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"buyer_nick\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"buyer_nick\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"create_time\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"create_time\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"payment_type\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"payment_type\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"status\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"status\",", " \"ordinalPosition\" : 1", " }", " ]", " }", " ],", " \"columns\" : [", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"order_id\",", " \"ordinalPosition\" : 1", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"payment\",", " \"ordinalPosition\" : 2", " },", " {", " \"databaseType\" : \"java.lang.Integer\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"payment_type\",", " \"ordinalPosition\" : 3", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"post_fee\",", " \"ordinalPosition\" : 4", " },", " {", " \"databaseType\" : \"java.lang.Integer\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"status\",", " \"ordinalPosition\" : 5", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"create_time\",", " \"ordinalPosition\" : 6", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\"," ).forEachOrdered(sb::append); } private static void initPart9(StringBuilder sb) { Stream.of( " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"update_time\",", " \"ordinalPosition\" : 7", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"payment_time\",", " \"ordinalPosition\" : 8", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"consign_time\",", " \"ordinalPosition\" : 9", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"end_time\",", " \"ordinalPosition\" : 10", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"close_time\",", " \"ordinalPosition\" : 11", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"shipping_name\",", " \"ordinalPosition\" : 12", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"shipping_code\",", " \"ordinalPosition\" : 13", " },", " {", " \"databaseType\" : \"java.lang.Long\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"user_id\",", " \"ordinalPosition\" : 14", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"buyer_message\",", " \"ordinalPosition\" : 15", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"buyer_nick\",", " \"ordinalPosition\" : 16", " },", " {", " \"databaseType\" : \"java.lang.Integer\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"buyer_rate\",", " \"ordinalPosition\" : 17", " }", " ],", " \"name\" : \"tb_order\",", " \"enabled\" : false", " },", " {", " \"expanded\" : false,", " \"primaryKeyColumns\" : [", " {", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"indexes\" : [", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"PRIMARY\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ]" ).forEachOrdered(sb::append); } private static void initPart10(StringBuilder sb) { Stream.of( " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"item_id\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"item_id\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : false,", " \"name\" : \"order_id\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"order_id\",", " \"ordinalPosition\" : 1", " }", " ]", " }", " ],", " \"columns\" : [", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"item_id\",", " \"ordinalPosition\" : 2", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"order_id\",", " \"ordinalPosition\" : 3", " },", " {", " \"databaseType\" : \"java.lang.Integer\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"num\",", " \"ordinalPosition\" : 4", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"title\",", " \"ordinalPosition\" : 5", " },", " {", " \"databaseType\" : \"java.lang.Long\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"price\",", " \"ordinalPosition\" : 6", " },", " {", " \"databaseType\" : \"java.lang.Long\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"total_fee\",", " \"ordinalPosition\" : 7", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"pic_path\",", " \"ordinalPosition\" : 8", " }", " ],", " \"name\" : \"tb_order_item\",", " \"enabled\" : false", " },", " {", " \"expanded\" : false,", " \"primaryKeyColumns\" : [", " {", " \"expanded\" : false,", " \"name\" : \"order_id\",", " \"ordinalPosition\" : 1", " }", " ],", " \"indexes\" : [", " {", " \"expanded\" : false," ).forEachOrdered(sb::append); } private static void initPart11(StringBuilder sb) { Stream.of( " \"unique\" : true,", " \"name\" : \"PRIMARY\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"order_id\",", " \"ordinalPosition\" : 1", " }", " ]", " }", " ],", " \"columns\" : [", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"order_id\",", " \"ordinalPosition\" : 1", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"receiver_name\",", " \"ordinalPosition\" : 2", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"receiver_phone\",", " \"ordinalPosition\" : 3", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"receiver_mobile\",", " \"ordinalPosition\" : 4", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"receiver_state\",", " \"ordinalPosition\" : 5", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"receiver_city\",", " \"ordinalPosition\" : 6", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"receiver_district\",", " \"ordinalPosition\" : 7", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"receiver_address\",", " \"ordinalPosition\" : 8", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"receiver_zip\",", " \"ordinalPosition\" : 9", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"created\",", " \"ordinalPosition\" : 10", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"updated\",", " \"ordinalPosition\" : 11", " }", " ],", " \"name\" : \"tb_order_shipping\",", " \"enabled\" : false", " },", " {", " \"expanded\" : false,", " \"primaryKeyColumns\" : [", " {", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1" ).forEachOrdered(sb::append); } private static void initPart12(StringBuilder sb) { Stream.of( " }", " ],", " \"indexes\" : [", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"email\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"email\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"phone\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"phone\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"PRIMARY\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " }", " ]", " },", " {", " \"expanded\" : false,", " \"unique\" : true,", " \"name\" : \"username\",", " \"indexColumns\" : [", " {", " \"orderType\" : \"ASC\",", " \"expanded\" : false,", " \"name\" : \"username\",", " \"ordinalPosition\" : 1", " }", " ]", " }", " ],", " \"columns\" : [", " {", " \"databaseType\" : \"java.lang.Long\",", " \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"autoIncrement\" : true,", " \"name\" : \"id\",", " \"ordinalPosition\" : 1", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"username\",", " \"ordinalPosition\" : 2", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"password\",", " \"ordinalPosition\" : 3", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"phone\",", " \"ordinalPosition\" : 4", " },", " {", " \"databaseType\" : \"java.lang.String\",", " \"expanded\" : false,", " \"nullable\" : true,", " \"name\" : \"email\",", " \"ordinalPosition\" : 5", " },", " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"created\",", " \"ordinalPosition\" : 6", " }," ).forEachOrdered(sb::append); } private static void initPart13(StringBuilder sb) { Stream.of( " {", " \"databaseType\" : \"java.sql.Timestamp\",", " \"expanded\" : false,", " \"nullable\" : false,", " \"name\" : \"updated\",", " \"ordinalPosition\" : 7", " }", " ],", " \"name\" : \"tb_user\",", " \"alias\" : \"user\",", " \"packageName\" : \"com.migo2.sso.pojo\",", " \"enabled\" : true", " }", " ],", " \"expanded\" : true,", " \"name\" : \"migo2\",", " \"enabled\" : true", " }", " ],", " \"typeName\" : \"MySQL\",", " \"ipAddress\" : \"127.0.0.1\",", " \"name\" : \"db0\",", " \"enabled\" : true,", " \"username\" : \"root\"", " }", " ],", " \"enabled\" : true", " }", "}" ).forEachOrdered(sb::append); } } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/.speedment/.User.java.md5 ================================================ 27ac398a9caef2cbc4afc808df24d174 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/.speedment/.UserImpl.java.md5 ================================================ 47bed9ddae40c814e63f4ecd1cc00bd0 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/.speedment/.UserManager.java.md5 ================================================ 60c7e85a56883b839aceaa9acc947699 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/.speedment/.UserManagerImpl.java.md5 ================================================ 5d6731a54fa4468b208f915ecab770d4 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/.speedment/.UserSqlAdapter.java.md5 ================================================ 269f02fd2ac863f65d2a8e2a31b6dc45 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/User.java ================================================ package com.migo3.sso.pojo; import com.migo3.sso.pojo.generated.GeneratedUser; /** * The main interface for entities of the {@code tb_user}-table in the database. *

* This file is safe to edit. It will not be overwritten by the code generator. * * @author company */ public interface User extends GeneratedUser { } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/UserImpl.java ================================================ package com.migo3.sso.pojo; import com.migo3.sso.pojo.generated.GeneratedUserImpl; /** * The default implementation of the {@link User}-interface. *

* This file is safe to edit. It will not be overwritten by the code generator. * * @author company */ public final class UserImpl extends GeneratedUserImpl implements User { } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/UserManager.java ================================================ package com.migo3.sso.pojo; import com.migo3.sso.pojo.generated.GeneratedUserManager; /** * The main interface for the manager of every {@link User} * entity. *

* This file is safe to edit. It will not be overwritten by the code generator. * * @author company */ public interface UserManager extends GeneratedUserManager { } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/UserManagerImpl.java ================================================ package com.migo3.sso.pojo; import com.migo3.sso.pojo.generated.GeneratedUserManagerImpl; /** * The default implementation for the manager of every {@link * User} entity. *

* This file is safe to edit. It will not be overwritten by the code generator. * * @author company */ public final class UserManagerImpl extends GeneratedUserManagerImpl implements UserManager { } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/UserSqlAdapter.java ================================================ package com.migo3.sso.pojo; import com.migo3.sso.pojo.generated.GeneratedUserSqlAdapter; /** * The SqlAdapter for every {@link User} entity. *

* This file is safe to edit. It will not be overwritten by the code generator. * * @author company */ public class UserSqlAdapter extends GeneratedUserSqlAdapter { } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/.speedment/.GeneratedUser.java.md5 ================================================ 9e831bfbcbc9f6e6ec54208349878503 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/.speedment/.GeneratedUserImpl.java.md5 ================================================ fcbc06a46f2f5b1c978abe50b6b83acc ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/.speedment/.GeneratedUserManager.java.md5 ================================================ 0c2d8f9ef1e52faf5c7ac4b2ae394321 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/.speedment/.GeneratedUserManagerImpl.java.md5 ================================================ 3055dae3972f755dad00ef42b6168c20 ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/.speedment/.GeneratedUserSqlAdapter.java.md5 ================================================ f4c0ee8bcb8c3426f2088110a6f39d2e ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/GeneratedUser.java ================================================ package com.migo3.sso.pojo.generated; import com.migo3.sso.pojo.User; import com.speedment.runtime.config.identifier.ColumnIdentifier; import com.speedment.runtime.config.identifier.TableIdentifier; import com.speedment.runtime.core.util.OptionalUtil; import com.speedment.runtime.field.ComparableField; import com.speedment.runtime.field.LongField; import com.speedment.runtime.field.StringField; import com.speedment.runtime.typemapper.TypeMapper; import javax.annotation.Generated; import java.sql.Timestamp; import java.util.Date; import java.util.Optional; /** * The generated base for the {@link User}-interface * representing entities of the {@code tb_user}-table in the database. *

* This file has been automatically generated by Speedment. Any changes made to * it will be overwritten. * * @author Speedment */ @Generated("Speedment") public interface GeneratedUser { /** * This Field corresponds to the {@link User} field that can be obtained * using the {@link User#getId()} method. */ final LongField ID = LongField.create( Identifier.ID, User::getId, User::setId, TypeMapper.primitive(), true ); /** * This Field corresponds to the {@link User} field that can be obtained * using the {@link User#getUsername()} method. */ final StringField USERNAME = StringField.create( Identifier.USERNAME, User::getUsername, User::setUsername, TypeMapper.identity(), true ); /** * This Field corresponds to the {@link User} field that can be obtained * using the {@link User#getPassword()} method. */ final StringField PASSWORD = StringField.create( Identifier.PASSWORD, User::getPassword, User::setPassword, TypeMapper.identity(), false ); /** * This Field corresponds to the {@link User} field that can be obtained * using the {@link User#getPhone()} method. */ final StringField PHONE = StringField.create( Identifier.PHONE, o -> OptionalUtil.unwrap(o.getPhone()), User::setPhone, TypeMapper.identity(), true ); /** * This Field corresponds to the {@link User} field that can be obtained * using the {@link User#getEmail()} method. */ final StringField EMAIL = StringField.create( Identifier.EMAIL, o -> OptionalUtil.unwrap(o.getEmail()), User::setEmail, TypeMapper.identity(), true ); /** * This Field corresponds to the {@link User} field that can be obtained * using the {@link User#getCreated()} method. */ final ComparableField CREATED = ComparableField.create( Identifier.CREATED, User::getCreated, User::setCreated, TypeMapper.identity(), false ); /** * This Field corresponds to the {@link User} field that can be obtained * using the {@link User#getUpdated()} method. */ final ComparableField UPDATED = ComparableField.create( Identifier.UPDATED, User::getUpdated, User::setUpdated, TypeMapper.identity(), false ); /** * Returns the id of this User. The id field corresponds to the database * column db0.migo2.tb_user.id. * * @return the id of this User */ long getId(); /** * Returns the username of this User. The username field corresponds to the * database column db0.migo2.tb_user.username. * * @return the username of this User */ String getUsername(); /** * Returns the password of this User. The password field corresponds to the * database column db0.migo2.tb_user.password. * * @return the password of this User */ String getPassword(); /** * Returns the phone of this User. The phone field corresponds to the * database column db0.migo2.tb_user.phone. * * @return the phone of this User */ Optional getPhone(); /** * Returns the email of this User. The email field corresponds to the * database column db0.migo2.tb_user.email. * * @return the email of this User */ Optional getEmail(); /** * Returns the created of this User. The created field corresponds to the * database column db0.migo2.tb_user.created. * * @return the created of this User */ Timestamp getCreated(); /** * Returns the updated of this User. The updated field corresponds to the * database column db0.migo2.tb_user.updated. * * @return the updated of this User */ Timestamp getUpdated(); /** * Sets the id of this User. The id field corresponds to the database column * db0.migo2.tb_user.id. * * @param id to set of this User * @return this User instance */ User setId(long id); /** * Sets the username of this User. The username field corresponds to the * database column db0.migo2.tb_user.username. * * @param username to set of this User * @return this User instance */ User setUsername(String username); /** * Sets the password of this User. The password field corresponds to the * database column db0.migo2.tb_user.password. * * @param password to set of this User * @return this User instance */ User setPassword(String password); /** * Sets the phone of this User. The phone field corresponds to the database * column db0.migo2.tb_user.phone. * * @param phone to set of this User * @return this User instance */ User setPhone(String phone); /** * Sets the email of this User. The email field corresponds to the database * column db0.migo2.tb_user.email. * * @param email to set of this User * @return this User instance */ User setEmail(String email); /** * Sets the created of this User. The created field corresponds to the * database column db0.migo2.tb_user.created. * * @param created to set of this User * @return this User instance */ User setCreated(Date created); /** * Sets the updated of this User. The updated field corresponds to the * database column db0.migo2.tb_user.updated. * * @param updated to set of this User * @return this User instance */ User setUpdated(Date updated); enum Identifier implements ColumnIdentifier { ID ("id"), USERNAME ("username"), PASSWORD ("password"), PHONE ("phone"), EMAIL ("email"), CREATED ("created"), UPDATED ("updated"); private final String columnName; private final TableIdentifier tableIdentifier; Identifier(String columnName) { this.columnName = columnName; this.tableIdentifier = TableIdentifier.of(getDbmsName(), getSchemaName(), getTableName()); } @Override public String getDbmsName() { return "db0"; } @Override public String getSchemaName() { return "migo2"; } @Override public String getTableName() { return "tb_user"; } @Override public String getColumnName() { return this.columnName; } @Override public TableIdentifier asTableIdentifier() { return this.tableIdentifier; } } } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/GeneratedUserImpl.java ================================================ package com.migo3.sso.pojo.generated; import com.migo3.sso.pojo.User; import com.speedment.runtime.core.util.OptionalUtil; import javax.annotation.Generated; import java.sql.Timestamp; import java.util.Date; import java.util.Objects; import java.util.Optional; import java.util.StringJoiner; /** * The generated base implementation of the {@link * User}-interface. *

* This file has been automatically generated by Speedment. Any changes made to * it will be overwritten. * * @author Speedment */ @Generated("Speedment") public abstract class GeneratedUserImpl implements User { private long id; private String username; private String password; private String phone; private String email; private Timestamp created; private Timestamp updated; protected GeneratedUserImpl() { } @Override public long getId() { return id; } @Override public String getUsername() { return username; } @Override public String getPassword() { return password; } @Override public Optional getPhone() { return Optional.ofNullable(phone); } @Override public Optional getEmail() { return Optional.ofNullable(email); } @Override public Timestamp getCreated() { return created; } @Override public Timestamp getUpdated() { return updated; } @Override public User setId(long id) { this.id = id; return this; } @Override public User setUsername(String username) { this.username = username; return this; } @Override public User setPassword(String password) { this.password = password; return this; } @Override public User setPhone(String phone) { this.phone = phone; return this; } @Override public User setEmail(String email) { this.email = email; return this; } @Override public User setCreated(Date created) { this.created = (Timestamp) created; return this; } @Override public User setUpdated(Date updated) { this.updated = (Timestamp) updated; return this; } @Override public String toString() { final StringJoiner sj = new StringJoiner(", ", "{ ", " }"); sj.add("id = " + Objects.toString(getId())); sj.add("username = " + Objects.toString(getUsername())); sj.add("password = " + Objects.toString(getPassword())); sj.add("phone = " + Objects.toString(OptionalUtil.unwrap(getPhone()))); sj.add("email = " + Objects.toString(OptionalUtil.unwrap(getEmail()))); sj.add("created = " + Objects.toString(getCreated())); sj.add("updated = " + Objects.toString(getUpdated())); return "UserImpl " + sj.toString(); } @Override public boolean equals(Object that) { if (this == that) { return true; } if (!(that instanceof User)) { return false; } final User thatUser = (User)that; if (this.getId() != thatUser.getId()) {return false; } if (!Objects.equals(this.getUsername(), thatUser.getUsername())) {return false; } if (!Objects.equals(this.getPassword(), thatUser.getPassword())) {return false; } if (!Objects.equals(this.getPhone(), thatUser.getPhone())) {return false; } if (!Objects.equals(this.getEmail(), thatUser.getEmail())) {return false; } if (!Objects.equals(this.getCreated(), thatUser.getCreated())) {return false; } if (!Objects.equals(this.getUpdated(), thatUser.getUpdated())) {return false; } return true; } @Override public int hashCode() { int hash = 7; hash = 31 * hash + Long.hashCode(getId()); hash = 31 * hash + Objects.hashCode(getUsername()); hash = 31 * hash + Objects.hashCode(getPassword()); hash = 31 * hash + Objects.hashCode(getPhone()); hash = 31 * hash + Objects.hashCode(getEmail()); hash = 31 * hash + Objects.hashCode(getCreated()); hash = 31 * hash + Objects.hashCode(getUpdated()); return hash; } } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/GeneratedUserManager.java ================================================ package com.migo3.sso.pojo.generated; import com.migo3.sso.pojo.User; import com.speedment.runtime.core.manager.Manager; import javax.annotation.Generated; /** * The generated base interface for the manager of every {@link * User} entity. *

* This file has been automatically generated by Speedment. Any changes made to * it will be overwritten. * * @author Speedment */ @Generated("Speedment") public interface GeneratedUserManager extends Manager { @Override default Class getEntityClass() { return User.class; } } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/GeneratedUserManagerImpl.java ================================================ package com.migo3.sso.pojo.generated; import com.migo3.sso.pojo.User; import com.speedment.runtime.config.identifier.TableIdentifier; import com.speedment.runtime.core.manager.AbstractManager; import com.speedment.runtime.field.Field; import javax.annotation.Generated; import java.util.stream.Stream; /** * The generated base implementation for the manager of every {@link * User} entity. *

* This file has been automatically generated by Speedment. Any changes made to * it will be overwritten. * * @author Speedment */ @Generated("Speedment") public abstract class GeneratedUserManagerImpl extends AbstractManager implements GeneratedUserManager { private final TableIdentifier tableIdentifier; protected GeneratedUserManagerImpl() { this.tableIdentifier = TableIdentifier.of("db0", "migo2", "tb_user"); } @Override public TableIdentifier getTableIdentifier() { return tableIdentifier; } @Override public Stream> fields() { return Stream.of( User.ID, User.USERNAME, User.PASSWORD, User.PHONE, User.EMAIL, User.CREATED, User.UPDATED ); } @Override public Stream> primaryKeyFields() { return Stream.of( User.ID ); } } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/GeneratedUserSqlAdapter.java ================================================ package com.migo3.sso.pojo.generated; import com.migo3.sso.pojo.User; import com.migo3.sso.pojo.UserImpl; import com.speedment.common.injector.annotation.ExecuteBefore; import com.speedment.runtime.config.identifier.TableIdentifier; import com.speedment.runtime.core.component.sql.SqlPersistenceComponent; import com.speedment.runtime.core.component.sql.SqlStreamSupplierComponent; import com.speedment.runtime.core.exception.SpeedmentException; import javax.annotation.Generated; import java.sql.ResultSet; import java.sql.SQLException; import static com.speedment.common.injector.State.RESOLVED; import static com.speedment.runtime.core.internal.util.sql.ResultSetUtil.getString; /** * The generated Sql Adapter for a {@link User} entity. *

* This file has been automatically generated by Speedment. Any changes made to * it will be overwritten. * * @author Speedment */ @Generated("Speedment") public abstract class GeneratedUserSqlAdapter { private final TableIdentifier tableIdentifier; protected GeneratedUserSqlAdapter() { this.tableIdentifier = TableIdentifier.of("db0", "migo2", "tb_user"); } @ExecuteBefore(RESOLVED) void installMethodName(SqlStreamSupplierComponent streamSupplierComponent, SqlPersistenceComponent persistenceComponent) { streamSupplierComponent.install(tableIdentifier, this::apply); persistenceComponent.install(tableIdentifier); } protected User apply(ResultSet resultSet) throws SpeedmentException{ final User entity = createEntity(); try { entity.setId(resultSet.getLong(1)); entity.setUsername(resultSet.getString(2)); entity.setPassword(resultSet.getString(3)); entity.setPhone(getString(resultSet, 4)); entity.setEmail(getString(resultSet, 5)); entity.setCreated(resultSet.getTimestamp(6)); entity.setUpdated(resultSet.getTimestamp(7)); } catch (final SQLException sqle) { throw new SpeedmentException(sqle); } return entity; } protected UserImpl createEntity() { return new UserImpl(); } } ================================================ FILE: migo-Fsso/src/main/java/com/migo3/sso/service/UserService.java ================================================ package com.migo3.sso.service; import com.migo.service.JedisClient; import com.migo.utils.JsonUtils; import com.migo3.sso.pojo.User; import com.migo3.sso.pojo.UserImpl; import com.migo3.sso.pojo.UserManager; import com.speedment.runtime.field.StringField; import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.sql.Timestamp; import java.util.Date; /** * Author 知秋 * Created by kauw on 2016/12/29. */ @Service public class UserService { @Autowired private JedisClient jedisClient; @Autowired private UserManager userManager; public Boolean doRegister(UserImpl user) { Date date=new Date(); Timestamp time = new Timestamp(date.getTime()); user.setCreated(time); user.setUpdated(time); //密码加密,md5已经不安全,故采用sha256 user.setPassword(DigestUtils.sha256Hex(user.getPassword())); return userManager.persist(user) != null; } public User queryByToken(String token) { String tokenkey="REDIS_SESSION_TOKEN:" + token; //根据token取用户信息 String json = jedisClient.get(tokenkey); if (StringUtils.isEmpty(json)){ return null; } //假如出错,为了不影响业务逻辑,故自己来处理异常 try { this.jedisClient.expire(tokenkey,1800); return JsonUtils.jsonToPojo(json,User.class); } catch (Exception e) { e.printStackTrace(); } return null; } public String doLogin(String username, String password) { User user=userManager.stream() .filter(User.USERNAME.equal(username)) .filter(User.PASSWORD.equal(DigestUtils.sha256Hex(password))) .findAny().orElse(null); //生成token String token=DigestUtils.md5Hex(System.currentTimeMillis()+username); this.jedisClient.set("REDIS_SESSION_TOKEN:"+token, JsonUtils.objectToJson(user)); return token; } public Boolean check(String param, Integer type) { StringField userparam; switch (type){ case 1: userparam = User.USERNAME; break; case 2: userparam=User.PHONE; break; case 3: userparam=User.EMAIL; break; default: return null; } return null!= userManager.stream() .filter(userparam.equal(param)) .findAny() .orElse(null); /* if (type==1)return userManager.stream().filter(User.USERNAME.equal(param)).findAny().orElse(null)!=null; else if(type==2) return userManager.stream().filter(User.PHONE.equal(param)).findAny().orElse(null)!=null; else if (type==3) return userManager.stream().filter(User.EMAIL.equal(param)).findAny().orElse(null)!=null; else return null;*/ } } ================================================ FILE: migo-Fsso/src/main/json/speedment.json ================================================ { "config" : { "expanded" : true, "companyName" : "company", "name" : "migo2", "packageLocation" : "src/main/java/", "packageName" : "com.migo2.sso", "dbmses" : [ { "expanded" : true, "port" : 3306, "schemas" : [ { "tables" : [ { "expanded" : false, "primaryKeyColumns" : [ { "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ], "indexes" : [ { "expanded" : false, "unique" : true, "name" : "PRIMARY", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ], "enabled" : true }, { "expanded" : false, "unique" : false, "name" : "category_id", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "category_id", "ordinalPosition" : 1 } ], "enabled" : true }, { "expanded" : false, "unique" : false, "name" : "updated", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "updated", "ordinalPosition" : 1 } ], "enabled" : true } ], "columns" : [ { "databaseType" : "java.lang.Long", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "autoIncrement" : true, "name" : "id", "ordinalPosition" : 1, "enabled" : true }, { "databaseType" : "java.lang.Long", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "name" : "category_id", "ordinalPosition" : 2, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "title", "ordinalPosition" : 3, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "sub_title", "ordinalPosition" : 4, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "title_desc", "ordinalPosition" : 5, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "url", "ordinalPosition" : 6, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "pic", "ordinalPosition" : 7, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "pic2", "ordinalPosition" : 8, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "content", "ordinalPosition" : 9, "enabled" : true }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "created", "ordinalPosition" : 10, "enabled" : true }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "updated", "ordinalPosition" : 11, "enabled" : true } ], "name" : "tb_content", "enabled" : false }, { "expanded" : false, "primaryKeyColumns" : [ { "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ], "indexes" : [ { "expanded" : false, "unique" : true, "name" : "PRIMARY", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ], "enabled" : true }, { "expanded" : false, "unique" : false, "name" : "parent_id", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "parent_id", "ordinalPosition" : 1 }, { "orderType" : "ASC", "expanded" : false, "name" : "status", "ordinalPosition" : 2 } ], "enabled" : true }, { "expanded" : false, "unique" : false, "name" : "sort_order", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "sort_order", "ordinalPosition" : 1 } ], "enabled" : true } ], "columns" : [ { "databaseType" : "java.lang.Long", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "autoIncrement" : true, "name" : "id", "ordinalPosition" : 1, "enabled" : true }, { "databaseType" : "java.lang.Long", "expanded" : false, "nullable" : true, "name" : "parent_id", "ordinalPosition" : 2, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "name", "ordinalPosition" : 3, "enabled" : true }, { "databaseType" : "java.lang.Integer", "expanded" : false, "nullable" : true, "name" : "status", "ordinalPosition" : 4, "enabled" : true }, { "databaseType" : "java.lang.Integer", "expanded" : false, "nullable" : true, "name" : "sort_order", "ordinalPosition" : 5, "enabled" : true }, { "databaseType" : "java.lang.Integer", "expanded" : false, "nullable" : true, "name" : "is_parent", "ordinalPosition" : 6, "enabled" : true }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "created", "ordinalPosition" : 7, "enabled" : true }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "updated", "ordinalPosition" : 8, "enabled" : true } ], "name" : "tb_content_category", "enabled" : false }, { "expanded" : false, "primaryKeyColumns" : [ { "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ], "indexes" : [ { "expanded" : false, "unique" : true, "name" : "PRIMARY", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "cid", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "cid", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "status", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "status", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "updated", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "updated", "ordinalPosition" : 1 } ] } ], "columns" : [ { "databaseType" : "java.lang.Long", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "name" : "id", "ordinalPosition" : 1, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : false, "name" : "title", "ordinalPosition" : 2, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "sell_point", "ordinalPosition" : 3, "enabled" : true }, { "databaseType" : "java.lang.Long", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "name" : "price", "ordinalPosition" : 4, "enabled" : true }, { "databaseType" : "java.lang.Integer", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "name" : "num", "ordinalPosition" : 5, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "barcode", "ordinalPosition" : 6, "enabled" : true }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "image", "ordinalPosition" : 7, "enabled" : true }, { "databaseType" : "java.lang.Long", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "name" : "cid", "ordinalPosition" : 8, "enabled" : true }, { "databaseType" : "java.lang.Byte", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "name" : "status", "ordinalPosition" : 9, "enabled" : true }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : false, "name" : "created", "ordinalPosition" : 10, "enabled" : true }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : false, "name" : "updated", "ordinalPosition" : 11 } ], "name" : "tb_item", "enabled" : false }, { "expanded" : false, "primaryKeyColumns" : [ { "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ], "indexes" : [ { "expanded" : false, "unique" : true, "name" : "PRIMARY", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "parent_id", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "parent_id", "ordinalPosition" : 1 }, { "orderType" : "ASC", "expanded" : false, "name" : "status", "ordinalPosition" : 2 } ] }, { "expanded" : false, "unique" : false, "name" : "sort_order", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "sort_order", "ordinalPosition" : 1 } ] } ], "columns" : [ { "databaseType" : "java.lang.Long", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "autoIncrement" : true, "name" : "id", "ordinalPosition" : 1 }, { "databaseType" : "java.lang.Long", "expanded" : false, "nullable" : true, "name" : "parent_id", "ordinalPosition" : 2 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "name", "ordinalPosition" : 3 }, { "databaseType" : "java.lang.Integer", "expanded" : false, "nullable" : true, "name" : "status", "ordinalPosition" : 4 }, { "databaseType" : "java.lang.Integer", "expanded" : false, "nullable" : true, "name" : "sort_order", "ordinalPosition" : 5 }, { "databaseType" : "java.lang.Integer", "expanded" : false, "nullable" : true, "name" : "is_parent", "ordinalPosition" : 6 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "created", "ordinalPosition" : 7 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "updated", "ordinalPosition" : 8 } ], "name" : "tb_item_cat", "enabled" : false }, { "expanded" : false, "primaryKeyColumns" : [ { "expanded" : false, "name" : "item_id", "ordinalPosition" : 1 } ], "indexes" : [ { "expanded" : false, "unique" : true, "name" : "PRIMARY", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "item_id", "ordinalPosition" : 1 } ] } ], "columns" : [ { "databaseType" : "java.lang.Long", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "name" : "item_id", "ordinalPosition" : 1 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "item_desc", "ordinalPosition" : 2 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "created", "ordinalPosition" : 3 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "updated", "ordinalPosition" : 4 } ], "name" : "tb_item_desc", "enabled" : false }, { "expanded" : false, "primaryKeyColumns" : [ { "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ], "indexes" : [ { "expanded" : false, "unique" : true, "name" : "PRIMARY", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "item_cat_id", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "item_cat_id", "ordinalPosition" : 1 } ] } ], "columns" : [ { "databaseType" : "java.lang.Long", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "autoIncrement" : true, "name" : "id", "ordinalPosition" : 1 }, { "databaseType" : "java.lang.Long", "expanded" : false, "nullable" : true, "name" : "item_cat_id", "ordinalPosition" : 2 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "param_data", "ordinalPosition" : 3 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "created", "ordinalPosition" : 4 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "updated", "ordinalPosition" : 5 } ], "name" : "tb_item_param", "enabled" : false }, { "expanded" : false, "primaryKeyColumns" : [ { "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ], "indexes" : [ { "expanded" : false, "unique" : true, "name" : "PRIMARY", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "item_id", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "item_id", "ordinalPosition" : 1 } ] } ], "columns" : [ { "databaseType" : "java.lang.Long", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "autoIncrement" : true, "name" : "id", "ordinalPosition" : 1 }, { "databaseType" : "java.lang.Long", "expanded" : false, "nullable" : true, "name" : "item_id", "ordinalPosition" : 2 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "param_data", "ordinalPosition" : 3 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "created", "ordinalPosition" : 4 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "updated", "ordinalPosition" : 5 } ], "name" : "tb_item_param_item", "enabled" : false }, { "expanded" : false, "primaryKeyColumns" : [ { "expanded" : false, "name" : "order_id", "ordinalPosition" : 1 } ], "indexes" : [ { "expanded" : false, "unique" : true, "name" : "PRIMARY", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "order_id", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "buyer_nick", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "buyer_nick", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "create_time", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "create_time", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "payment_type", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "payment_type", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "status", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "status", "ordinalPosition" : 1 } ] } ], "columns" : [ { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : false, "name" : "order_id", "ordinalPosition" : 1 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "payment", "ordinalPosition" : 2 }, { "databaseType" : "java.lang.Integer", "expanded" : false, "nullable" : true, "name" : "payment_type", "ordinalPosition" : 3 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "post_fee", "ordinalPosition" : 4 }, { "databaseType" : "java.lang.Integer", "expanded" : false, "nullable" : true, "name" : "status", "ordinalPosition" : 5 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "create_time", "ordinalPosition" : 6 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "update_time", "ordinalPosition" : 7 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "payment_time", "ordinalPosition" : 8 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "consign_time", "ordinalPosition" : 9 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "end_time", "ordinalPosition" : 10 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "close_time", "ordinalPosition" : 11 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "shipping_name", "ordinalPosition" : 12 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "shipping_code", "ordinalPosition" : 13 }, { "databaseType" : "java.lang.Long", "expanded" : false, "nullable" : true, "name" : "user_id", "ordinalPosition" : 14 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "buyer_message", "ordinalPosition" : 15 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "buyer_nick", "ordinalPosition" : 16 }, { "databaseType" : "java.lang.Integer", "expanded" : false, "nullable" : true, "name" : "buyer_rate", "ordinalPosition" : 17 } ], "name" : "tb_order", "enabled" : false }, { "expanded" : false, "primaryKeyColumns" : [ { "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ], "indexes" : [ { "expanded" : false, "unique" : true, "name" : "PRIMARY", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "item_id", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "item_id", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : false, "name" : "order_id", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "order_id", "ordinalPosition" : 1 } ] } ], "columns" : [ { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : false, "name" : "id", "ordinalPosition" : 1 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : false, "name" : "item_id", "ordinalPosition" : 2 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : false, "name" : "order_id", "ordinalPosition" : 3 }, { "databaseType" : "java.lang.Integer", "expanded" : false, "nullable" : true, "name" : "num", "ordinalPosition" : 4 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "title", "ordinalPosition" : 5 }, { "databaseType" : "java.lang.Long", "expanded" : false, "nullable" : true, "name" : "price", "ordinalPosition" : 6 }, { "databaseType" : "java.lang.Long", "expanded" : false, "nullable" : true, "name" : "total_fee", "ordinalPosition" : 7 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "pic_path", "ordinalPosition" : 8 } ], "name" : "tb_order_item", "enabled" : false }, { "expanded" : false, "primaryKeyColumns" : [ { "expanded" : false, "name" : "order_id", "ordinalPosition" : 1 } ], "indexes" : [ { "expanded" : false, "unique" : true, "name" : "PRIMARY", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "order_id", "ordinalPosition" : 1 } ] } ], "columns" : [ { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : false, "name" : "order_id", "ordinalPosition" : 1 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "receiver_name", "ordinalPosition" : 2 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "receiver_phone", "ordinalPosition" : 3 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "receiver_mobile", "ordinalPosition" : 4 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "receiver_state", "ordinalPosition" : 5 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "receiver_city", "ordinalPosition" : 6 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "receiver_district", "ordinalPosition" : 7 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "receiver_address", "ordinalPosition" : 8 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "receiver_zip", "ordinalPosition" : 9 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "created", "ordinalPosition" : 10 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : true, "name" : "updated", "ordinalPosition" : 11 } ], "name" : "tb_order_shipping", "enabled" : false }, { "expanded" : false, "primaryKeyColumns" : [ { "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ], "indexes" : [ { "expanded" : false, "unique" : true, "name" : "email", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "email", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : true, "name" : "phone", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "phone", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : true, "name" : "PRIMARY", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "id", "ordinalPosition" : 1 } ] }, { "expanded" : false, "unique" : true, "name" : "username", "indexColumns" : [ { "orderType" : "ASC", "expanded" : false, "name" : "username", "ordinalPosition" : 1 } ] } ], "columns" : [ { "databaseType" : "java.lang.Long", "typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper", "expanded" : false, "nullable" : false, "autoIncrement" : true, "name" : "id", "ordinalPosition" : 1 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : false, "name" : "username", "ordinalPosition" : 2 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : false, "name" : "password", "ordinalPosition" : 3 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "phone", "ordinalPosition" : 4 }, { "databaseType" : "java.lang.String", "expanded" : false, "nullable" : true, "name" : "email", "ordinalPosition" : 5 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : false, "name" : "created", "ordinalPosition" : 6 }, { "databaseType" : "java.sql.Timestamp", "expanded" : false, "nullable" : false, "name" : "updated", "ordinalPosition" : 7 } ], "name" : "tb_user", "alias" : "user", "packageName" : "com.migo2.sso.pojo", "enabled" : true } ], "expanded" : true, "name" : "migo2", "enabled" : true } ], "typeName" : "MySQL", "ipAddress" : "127.0.0.1", "name" : "db0", "enabled" : true, "username" : "root" } ], "enabled" : true } } ================================================ FILE: migo-Fsso/src/main/resources/application.properties ================================================ dbms.username=root dbms.password=123 dbms.schema=migo2 server.port=8084 server.address=192.168.1.220 server.sessionTimeout=30 server.contextPath=/ spring.datasource.url=jdbc:mysql://localhost:3306/migo2?characterEncoding=utf-8 spring.datasource.username=root spring.datasource.password=123 spring.datasource.driver-class-name=com.mysql.jdbc.Driver # Enable template caching. spring.thymeleaf.cache=true # Check that the templates location exists. spring.thymeleaf.check-template-location=true # Content-Type value. spring.thymeleaf.content-type=text/html # Enable MVC Thymeleaf view resolution. spring.thymeleaf.enabled=true # Template encoding. spring.thymeleaf.encoding=UTF-8 # Comma-separated list of view names that should be excluded from resolution. spring.thymeleaf.excluded-view-names= # Template mode to be applied to templates. See also StandardTemplateModeHandlers. spring.thymeleaf.mode=HTML5 # Prefix that gets prepended to view names when building a URL. #spring.thymeleaf.prefix=classpath:/templates/ # Suffix that gets appended to view names when building a URL. spring.thymeleaf.suffix=.html # spring.thymeleaf.template-resolver-order= # Order of the template resolver in the chain. spring.thymeleaf.view-names= # Comma-separated list of view names that can be resolved. ================================================ FILE: migo-Fsso/src/main/resources/log4j.properties ================================================ log4j.rootLogger=DEBUG,A1 log4j.logger.com.migo3 = DEBUG log4j.logger.com.speedment = DEBUG log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss,SSS} [%t] [%c]-[%p] %m%n ================================================ FILE: migo-Fsso/src/main/resources/templates/login.html ================================================ 登录咪购

用户名/已验证手机
键盘大写锁定已打开,请注意大小写
密码
验证码
================================================ FILE: migo-Fsso/src/main/resources/templates/register.html ================================================ 注册-个人用户
      English 我已经注册,现在就 登录
*用户名:
    推荐您使用:
    键盘大写锁定已打开,请注意大小写
    *请设置密码:
    *请确认密码:
    *验证手机:
     
     
    ================================================ FILE: migo-Fsso/src/test/java/com/migo3/sso/DemoApplicationTests.java ================================================ package com.migo3.sso; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class DemoApplicationTests { @Test public void contextLoads() { } } ================================================ FILE: migo-common/pom.xml ================================================ 4.0.0 com.migo parent 2.0-SNAPSHOT common 2.0-SNAPSHOT jar joda-time joda-time com.fasterxml.jackson.core jackson-databind org.springframework spring-web 4.3.5.RELEASE javax.servlet servlet-api provided org.apache.commons commons-lang3 org.apache.commons commons-io commons-net commons-net redis.clients jedis fastdfs_client fastdfs_client 1.25 org.apache.httpcomponents httpclient org.quartz-scheduler quartz junit junit test org.slf4j slf4j-log4j12 ================================================ FILE: migo-common/src/main/java/com/migo/messageconverter/CallbackMappingJackson2HttpMessageConverter.java ================================================ package com.migo.messageconverter; import com.fasterxml.jackson.core.JsonEncoding; import com.fasterxml.jackson.core.JsonProcessingException; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.http.HttpOutputMessage; import org.springframework.http.converter.HttpMessageNotWritableException; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; import javax.servlet.http.HttpServletRequest; import java.io.IOException; public class CallbackMappingJackson2HttpMessageConverter extends MappingJackson2HttpMessageConverter { // 做jsonp的支持的标识,在请求参数中加该参数 private String callbackName; @Override protected void writeInternal(Object object, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { // 从threadLocal中获取当前的Request对象 HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder .currentRequestAttributes()).getRequest(); String callbackParam = request.getParameter(callbackName); if (StringUtils.isEmpty(callbackParam)) { // 没有找到callback参数,直接返回json数据 super.writeInternal(object, outputMessage); } else { JsonEncoding encoding = getJsonEncoding(outputMessage.getHeaders().getContentType()); try { String result = callbackParam + "(" + super.getObjectMapper().writeValueAsString(object) + ");"; IOUtils.write(result, outputMessage.getBody(), encoding.getJavaName()); } catch (JsonProcessingException ex) { throw new HttpMessageNotWritableException("Could not write JSON: " + ex.getMessage(), ex); } } } public String getCallbackName() { return callbackName; } public void setCallbackName(String callbackName) { this.callbackName = callbackName; } } ================================================ FILE: migo-common/src/main/java/com/migo/pojo/CatNode.java ================================================ package com.migo.pojo; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/10/9. */ public class CatNode { @JsonProperty("u") private String url; @JsonProperty("n") private String name; @JsonProperty("i") private List items; public List getItems() { return items; } public void setItems(List items) { this.items = items; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } } ================================================ FILE: migo-common/src/main/java/com/migo/pojo/EasyUIDataGridResult.java ================================================ package com.migo.pojo; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/9/23. */ public class EasyUIDataGridResult { private long total; private List rows; public EasyUIDataGridResult() { } public EasyUIDataGridResult(List rows, long total) { this.rows = rows; this.total = total; } public List getRows() { return rows; } public void setRows(List rows) { this.rows = rows; } public long getTotal() { return total; } public void setTotal(long total) { this.total = total; } } ================================================ FILE: migo-common/src/main/java/com/migo/pojo/ItemCatResult.java ================================================ package com.migo.pojo; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.ArrayList; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/10/9. */ public class ItemCatResult { @JsonProperty("data") private List catNodes=new ArrayList<>(); public List getCatNodes() { return catNodes; } public void setCatNodes(List catNodes) { this.catNodes = catNodes; } } ================================================ FILE: migo-common/src/main/java/com/migo/service/JedisClient.java ================================================ package com.migo.service; /** * Author 知秋 * Created by kauw on 2016/12/7. */ public interface JedisClient { String get(String key); String set(String key,String value); String set(String key,String value,Integer seconds); String hget(String hkey,String key); Long hset(String hkey,String key,String value); Long incr(String key); Long decr(String key); Long expire(String key,int second); Long ttl(String key); Long del(String key); Long hdel(String hkey,String key); } ================================================ FILE: migo-common/src/main/java/com/migo/service/WorkCallback.java ================================================ package com.migo.service; /** * Author 知秋 * Created by kauw on 2016/12/8. */ public interface WorkCallback { T doWorkCallback(E e); } ================================================ FILE: migo-common/src/main/java/com/migo/service/impl/JedisClientCluster.java ================================================ package com.migo.service.impl; import com.migo.service.JedisClient; import org.springframework.beans.factory.annotation.Autowired; import redis.clients.jedis.JedisCluster; /** * Author 知秋 * Created by kauw on 2016/12/7. */ public class JedisClientCluster implements JedisClient { /** * 有些系统可能不需要添加redis缓存,反而依赖了common项目,但是自己容器内又没有对redis做相应配置, * 故 required = false 这样就可以做到,容器内有则注入,没有就忽略 */ @Autowired(required = false) private JedisCluster jedisCluster; @Override public String get(String key) { return jedisCluster.get(key); } @Override public String set(String key, String value) { return jedisCluster.set(key, value); } @Override public String set(String key, String value, Integer seconds) { return jedisCluster.setex(key,seconds,value); } @Override public String hget(String hkey, String key) { return jedisCluster.hget(hkey, key); } @Override public Long hset(String hkey, String key, String value) { return jedisCluster.hset(hkey, key, value); } @Override public Long incr(String key) { return jedisCluster.incr(key); } @Override public Long decr(String key) { return jedisCluster.decr(key); } @Override public Long expire(String key, int second) { return jedisCluster.expire(key, second); } @Override public Long ttl(String key) { return jedisCluster.ttl(key); } @Override public Long del(String key) { return jedisCluster.del(key); } @Override public Long hdel(String hkey, String key) { return jedisCluster.hdel(hkey,key); } } ================================================ FILE: migo-common/src/main/java/com/migo/service/impl/JedisClientSingle.java ================================================ package com.migo.service.impl; import com.migo.service.JedisClient; import com.migo.service.WorkCallback; import org.springframework.beans.factory.annotation.Autowired; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; /** * Author 知秋 * Created by kauw on 2016/12/7. */ public class JedisClientSingle implements JedisClient { /** * 有些系统可能不需要添加redis缓存,反而依赖了common项目,但是自己容器内又没有对redis做相应配置, * 故 required = false 这样就可以做到,容器内有则注入,没有就忽略 */ @Autowired(required = false) private JedisPool jedisPool; private T excute(WorkCallback workCallback){ Jedis jedis=null; try { jedis = jedisPool.getResource(); return workCallback.doWorkCallback(jedis); } catch (Exception e) { e.printStackTrace(); }finally { if (null !=jedis){ jedis.close(); } } return null; } @Override public String get(final String key) { /*Jedis jedis=jedisPool.getResource(); String result=jedis.get(key); jedis.close(); return result;*/ return this.excute(new WorkCallback() { @Override public String doWorkCallback(Jedis jedis) { return jedis.get(key); } }); } @Override public String set(final String key, final String value) { return this.excute(new WorkCallback() { @Override public String doWorkCallback(Jedis jedis) { return jedis.set(key, value); } }); } @Override public String set(final String key, final String value, final Integer seconds) { return this.excute(new WorkCallback() { @Override public String doWorkCallback(Jedis jedis) { return jedis.setex(key,seconds,value); } }); } @Override public String hget(final String hkey, final String key) { /*Jedis jedis=jedisPool.getResource(); String result=jedis.hget(hkey, key); jedis.close(); return result;*/ return this.excute(new WorkCallback() { @Override public String doWorkCallback(Jedis jedis) { return jedis.hget(hkey, key); } }); } @Override public Long hset(final String hkey, final String key, final String value) { /*Jedis jedis=jedisPool.getResource(); Long result = jedis.hset(hkey, key, value); jedis.close(); return result;*/ return this.excute(new WorkCallback() { @Override public Long doWorkCallback(Jedis jedis) { return jedis.hset(hkey, key, value); } }); } @Override public Long incr(final String key) { /*Jedis jedis=jedisPool.getResource(); Long result = jedis.incr(key); jedis.close(); return result;*/ return this.excute(new WorkCallback() { @Override public Long doWorkCallback(Jedis jedis) { return jedis.incr(key); } }); } @Override public Long decr(final String key) { /*Jedis jedis=jedisPool.getResource(); Long result = jedis.decr(key); jedis.close(); return result;*/ return this.excute(new WorkCallback() { @Override public Long doWorkCallback(Jedis jedis) { return jedis.decr(key); } }); } @Override public Long expire(final String key, final int second) { /*Jedis jedis=jedisPool.getResource(); Long result = jedis.expire(key, second); jedis.close(); return result;*/ return this.excute(new WorkCallback() { @Override public Long doWorkCallback(Jedis jedis) { return jedis.expire(key, second); } }); } @Override public Long ttl(final String key) { /*Jedis jedis=jedisPool.getResource(); Long result = jedis.ttl(key); jedis.close(); return result;*/ return this.excute(new WorkCallback() { @Override public Long doWorkCallback(Jedis jedis) { return jedis.ttl(key); } }); } @Override public Long del(final String key) { /*Jedis jedis=jedisPool.getResource(); Long result = jedis.del(key); jedis.close(); return result;*/ return this.excute(new WorkCallback() { @Override public Long doWorkCallback(Jedis jedis) { return jedis.del(key); } }); } @Override public Long hdel(final String hkey, final String key) { /*Jedis jedis=jedisPool.getResource(); Long result = jedis.hdel(hkey, key); jedis.close(); return result;*/ return this.excute(new WorkCallback() { @Override public Long doWorkCallback(Jedis jedis) { return jedis.hdel(hkey,key); } }); } } ================================================ FILE: migo-common/src/main/java/com/migo/utils/CookieUtils.java ================================================ package com.migo.utils; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; /** * * Cookie 工具类 * */ public final class CookieUtils { /** * 得到Cookie的值, 不编码 * * @param request * @param cookieName * @return */ public static String getCookieValue(HttpServletRequest request, String cookieName) { return getCookieValue(request, cookieName, false); } /** * 得到Cookie的值, * * @param request * @param cookieName * @return */ public static String getCookieValue(HttpServletRequest request, String cookieName, boolean isDecoder) { Cookie[] cookieList = request.getCookies(); if (cookieList == null || cookieName == null) { return null; } String retValue = null; try { for (int i = 0; i < cookieList.length; i++) { if (cookieList[i].getName().equals(cookieName)) { if (isDecoder) { retValue = URLDecoder.decode(cookieList[i].getValue(), "UTF-8"); } else { retValue = cookieList[i].getValue(); } break; } } } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return retValue; } /** * 得到Cookie的值, * * @param request * @param cookieName * @return */ public static String getCookieValue(HttpServletRequest request, String cookieName, String encodeString) { Cookie[] cookieList = request.getCookies(); if (cookieList == null || cookieName == null) { return null; } String retValue = null; try { for (int i = 0; i < cookieList.length; i++) { if (cookieList[i].getName().equals(cookieName)) { retValue = URLDecoder.decode(cookieList[i].getValue(), encodeString); break; } } } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return retValue; } /** * 设置Cookie的值 不设置生效时间默认浏览器关闭即失效,也不编码 */ public static void setCookie(HttpServletRequest request, HttpServletResponse response, String cookieName, String cookieValue) { setCookie(request, response, cookieName, cookieValue, -1); } /** * 设置Cookie的值 在指定时间内生效,但不编码 */ public static void setCookie(HttpServletRequest request, HttpServletResponse response, String cookieName, String cookieValue, int cookieMaxage) { setCookie(request, response, cookieName, cookieValue, cookieMaxage, false); } /** * 设置Cookie的值 不设置生效时间,但编码 */ public static void setCookie(HttpServletRequest request, HttpServletResponse response, String cookieName, String cookieValue, boolean isEncode) { setCookie(request, response, cookieName, cookieValue, -1, isEncode); } /** * 设置Cookie的值 在指定时间内生效, 编码参数 */ public static void setCookie(HttpServletRequest request, HttpServletResponse response, String cookieName, String cookieValue, int cookieMaxage, boolean isEncode) { doSetCookie(request, response, cookieName, cookieValue, cookieMaxage, isEncode); } /** * 设置Cookie的值 在指定时间内生效, 编码参数(指定编码) */ public static void setCookie(HttpServletRequest request, HttpServletResponse response, String cookieName, String cookieValue, int cookieMaxage, String encodeString) { doSetCookie(request, response, cookieName, cookieValue, cookieMaxage, encodeString); } /** * 删除Cookie带cookie域名 */ public static void deleteCookie(HttpServletRequest request, HttpServletResponse response, String cookieName) { doSetCookie(request, response, cookieName, "", -1, false); } /** * 设置Cookie的值,并使其在指定时间内生效 * * @param cookieMaxage cookie生效的最大秒数 */ private static final void doSetCookie(HttpServletRequest request, HttpServletResponse response, String cookieName, String cookieValue, int cookieMaxage, boolean isEncode) { try { if (cookieValue == null) { cookieValue = ""; } else if (isEncode) { cookieValue = URLEncoder.encode(cookieValue, "utf-8"); } Cookie cookie = new Cookie(cookieName, cookieValue); if (cookieMaxage > 0) cookie.setMaxAge(cookieMaxage); if (null != request) {// 设置域名的cookie String domainName = getDomainName(request); System.out.println(domainName); if (!"localhost".equals(domainName)) { cookie.setDomain(domainName); } } cookie.setPath("/"); response.addCookie(cookie); } catch (Exception e) { e.printStackTrace(); } } /** * 设置Cookie的值,并使其在指定时间内生效 * * @param cookieMaxage cookie生效的最大秒数 */ private static final void doSetCookie(HttpServletRequest request, HttpServletResponse response, String cookieName, String cookieValue, int cookieMaxage, String encodeString) { try { if (cookieValue == null) { cookieValue = ""; } else { cookieValue = URLEncoder.encode(cookieValue, encodeString); } Cookie cookie = new Cookie(cookieName, cookieValue); if (cookieMaxage > 0) cookie.setMaxAge(cookieMaxage); if (null != request) {// 设置域名的cookie String domainName = getDomainName(request); System.out.println(domainName); if (!"localhost".equals(domainName)) { cookie.setDomain(domainName); } } cookie.setPath("/"); response.addCookie(cookie); } catch (Exception e) { e.printStackTrace(); } } /** * 得到cookie的域名 */ private static final String getDomainName(HttpServletRequest request) { String domainName = null; String serverName = request.getRequestURL().toString(); if (serverName == null || serverName.equals("")) { domainName = ""; } else { serverName = serverName.toLowerCase(); serverName = serverName.substring(7); final int end = serverName.indexOf("/"); serverName = serverName.substring(0, end); final String[] domains = serverName.split("\\."); int len = domains.length; if (len > 3) { // www.xxx.com.cn domainName = "." + domains[len - 3] + "." + domains[len - 2] + "." + domains[len - 1]; } else if (len <= 3 && len > 1) { // xxx.com or xxx.cn domainName = "." + domains[len - 2] + "." + domains[len - 1]; } else { domainName = serverName; } } if (domainName != null && domainName.indexOf(":") > 0) { String[] ary = domainName.split("\\:"); domainName = ary[0]; } return domainName; } } ================================================ FILE: migo-common/src/main/java/com/migo/utils/FastDFSClient.java ================================================ package com.migo.utils; import org.csource.common.NameValuePair; import org.csource.fastdfs.*; public class FastDFSClient { private TrackerClient trackerClient = null; private TrackerServer trackerServer = null; private StorageServer storageServer = null; private StorageClient1 storageClient = null; public FastDFSClient(String conf) throws Exception { if (conf.contains("classpath:")) { conf = conf.replace("classpath:", this.getClass().getResource("/").getPath()); } ClientGlobal.init(conf); trackerClient = new TrackerClient(); trackerServer = trackerClient.getConnection(); storageServer = null; storageClient = new StorageClient1(trackerServer, storageServer); } /** * 上传文件方法 *

    Title: uploadFile

    *

    Description:

    * @param fileName 文件全路径 * @param extName 文件扩展名,不包含(.) * @param metas 文件扩展信息 * @return * @throws Exception */ public String uploadFile(String fileName, String extName, NameValuePair[] metas) throws Exception { String result = storageClient.upload_file1(fileName, extName, metas); return result; } public String uploadFile(String fileName) throws Exception { return uploadFile(fileName, null, null); } public String uploadFile(String fileName, String extName) throws Exception { return uploadFile(fileName, extName, null); } /** * 上传文件方法 *

    Title: uploadFile

    *

    Description:

    * @param fileContent 文件的内容,字节数组 * @param extName 文件扩展名 * @param metas 文件扩展信息 * @return * @throws Exception */ public String uploadFile(byte[] fileContent, String extName, NameValuePair[] metas) throws Exception { String result = storageClient.upload_file1(fileContent, extName, metas); return result; } public String uploadFile(byte[] fileContent) throws Exception { return uploadFile(fileContent, null, null); } public String uploadFile(byte[] fileContent, String extName) throws Exception { return uploadFile(fileContent, extName, null); } } ================================================ FILE: migo-common/src/main/java/com/migo/utils/HttpClientUtil.java ================================================ package com.migo.utils; import org.apache.http.NameValuePair; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.utils.URIBuilder; import org.apache.http.entity.ContentType; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.message.BasicNameValuePair; import org.apache.http.util.EntityUtils; import java.io.IOException; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Map; public class HttpClientUtil { public static String doGet(String url, Map param) { // 创建Httpclient对象 CloseableHttpClient httpclient = HttpClients.createDefault(); String resultString = ""; CloseableHttpResponse response = null; try { // 创建uri URIBuilder builder = new URIBuilder(url); if (param != null) { for (String key : param.keySet()) { builder.addParameter(key, param.get(key)); } } URI uri = builder.build(); // 创建http GET请求 HttpGet httpGet = new HttpGet(uri); // 执行请求 response = httpclient.execute(httpGet); // 判断返回状态是否为200 if (response.getStatusLine().getStatusCode() == 200) { resultString = EntityUtils.toString(response.getEntity(), "UTF-8"); } } catch (Exception e) { e.printStackTrace(); } finally { try { if (response != null) { response.close(); } httpclient.close(); } catch (IOException e) { e.printStackTrace(); } } return resultString; } public static String doGet(String url) { return doGet(url, null); } public static String doPost(String url, Map param) { // 创建Httpclient对象 CloseableHttpClient httpClient = HttpClients.createDefault(); CloseableHttpResponse response = null; String resultString = ""; try { // 创建Http Post请求 HttpPost httpPost = new HttpPost(url); // 创建参数列表 if (param != null) { List paramList = new ArrayList<>(); for (String key : param.keySet()) { paramList.add(new BasicNameValuePair(key, param.get(key))); } // 模拟表单 UrlEncodedFormEntity entity = new UrlEncodedFormEntity(paramList); httpPost.setEntity(entity); } // 执行http请求 response = httpClient.execute(httpPost); resultString = EntityUtils.toString(response.getEntity(), "utf-8"); } catch (Exception e) { e.printStackTrace(); } finally { try { response.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } return resultString; } public static String doPost(String url) { return doPost(url, null); } public static String doPostJson(String url, String json) { // 创建Httpclient对象 CloseableHttpClient httpClient = HttpClients.createDefault(); CloseableHttpResponse response = null; String resultString = ""; try { // 创建Http Post请求 HttpPost httpPost = new HttpPost(url); // 创建请求内容 StringEntity entity = new StringEntity(json, ContentType.APPLICATION_JSON); httpPost.setEntity(entity); // 执行http请求 response = httpClient.execute(httpPost); resultString = EntityUtils.toString(response.getEntity(), "utf-8"); } catch (Exception e) { e.printStackTrace(); } finally { try { response.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } return resultString; } } ================================================ FILE: migo-common/src/main/java/com/migo/utils/IDUtils.java ================================================ package com.migo.utils; import java.util.Random; /** * 各种id生成策略 */ public class IDUtils { /** * 图片名生成 */ public static String genImageName() { //取当前时间的长整形值包含毫秒 long millis = System.currentTimeMillis(); //long millis = System.nanoTime(); //加上三位随机数 Random random = new Random(); int end3 = random.nextInt(999); //如果不足三位前面补0 String str = millis + String.format("%03d", end3); return str; } /** * 商品id生成 */ public static long genItemId() { //取当前时间的长整形值包含毫秒 long millis = System.currentTimeMillis(); //long millis = System.nanoTime(); //加上两位随机数 Random random = new Random(); int end2 = random.nextInt(99); //如果不足两位前面补0 String str = millis + String.format("%02d", end2); long id = new Long(str); return id; } public static void main(String[] args) { for(int i=0;i< 100;i++) System.out.println(genItemId()); } } ================================================ FILE: migo-common/src/main/java/com/migo/utils/JsonUtils.java ================================================ package com.migo.utils; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.ObjectMapper; import java.util.List; public class JsonUtils { // 定义jackson对象 private static final ObjectMapper MAPPER = new ObjectMapper(); /** * 将对象转换成json字符串。 *

    Title: pojoToJson

    *

    Description:

    * @param data * @return */ public static String objectToJson(Object data) { try { String string = MAPPER.writeValueAsString(data); return string; } catch (JsonProcessingException e) { e.printStackTrace(); } return null; } /** * 将json结果集转化为对象 * * @param jsonData json数据 * @param beanType 对象中的object类型 * @return */ public static T jsonToPojo(String jsonData, Class beanType) { try { T t = MAPPER.readValue(jsonData, beanType); return t; } catch (Exception e) { e.printStackTrace(); } return null; } /** * 将json数据转换成pojo对象list *

    Title: jsonToList

    *

    Description:

    * @param jsonData * @param beanType * @return */ public static List jsonToList(String jsonData, Class beanType) { JavaType javaType = MAPPER.getTypeFactory().constructParametricType(List.class, beanType); try { List list = MAPPER.readValue(jsonData, javaType); return list; } catch (Exception e) { e.printStackTrace(); } return null; } } ================================================ FILE: migo-manage/manage-mapper/pom.xml ================================================ manage com.migo 2.0-SNAPSHOT 4.0.0 manage-mapper jar com.migo manage-pojo 2.0-SNAPSHOT org.mybatis mybatis tk.mybatis mapper ================================================ FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ContentCategoryMapper.java ================================================ package com.migo.mapper; import com.migo.pojo.ContentCategory; import tk.mybatis.mapper.common.Mapper; /** * Author 知秋 * Created by kauw on 2016/11/20. */ public interface ContentCategoryMapper extends Mapper { } ================================================ FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ContentMapper.java ================================================ package com.migo.mapper; import com.migo.pojo.Content; import tk.mybatis.mapper.common.Mapper; /** * Author 知秋 * Created by kauw on 2016/12/3. */ public interface ContentMapper extends Mapper { } ================================================ FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemCatMapper.java ================================================ package com.migo.mapper; import com.migo.pojo.ItemCat; import tk.mybatis.mapper.common.Mapper; /** * Author 知秋 * Created by kauw on 2016/11/8. */ public interface ItemCatMapper extends Mapper { } ================================================ FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemDescMapper.java ================================================ package com.migo.mapper; import com.migo.pojo.ItemDesc; import tk.mybatis.mapper.common.Mapper; /** * Author 知秋 * Created by kauw on 2016/11/12. */ public interface ItemDescMapper extends Mapper { } ================================================ FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemMapper.java ================================================ package com.migo.mapper; import com.migo.pojo.Item; import tk.mybatis.mapper.common.Mapper; /** * Author 知秋 * Created by kauw on 2016/11/12. */ public interface ItemMapper extends Mapper { } ================================================ FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemParamItemMapper.java ================================================ package com.migo.mapper; import com.migo.pojo.ItemParamItem; import tk.mybatis.mapper.common.Mapper; /** * Author 知秋 * Created by kauw on 2016/11/14. */ public interface ItemParamItemMapper extends Mapper { } ================================================ FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemParamMapper.java ================================================ package com.migo.mapper; import com.migo.pojo.ItemParam; import tk.mybatis.mapper.common.Mapper; /** * Author 知秋 * Created by kauw on 2016/11/14. */ public interface ItemParamMapper extends Mapper{ } ================================================ FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemparamexdMapper.java ================================================ package com.migo.mapper; import com.migo.pojo.ItemParamexd; import org.apache.ibatis.annotations.Select; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/10/6. */ public interface ItemparamexdMapper { @Select(" select\n" + " a.id id ,a.item_cat_id itemCatId,a.created created,a.updated updated,a.param_data paramData,b.`name` itemCatName\n" + " FROM\n" + " tb_item_param AS a LEFT JOIN tb_item_cat as b\n" + " ON\n" + " a.item_cat_id=b.id ") List selectList(); } ================================================ FILE: migo-manage/manage-pojo/pom.xml ================================================ manage com.migo 2.0-SNAPSHOT 4.0.0 manage-pojo jar javax.persistence persistence-api 1.0 ================================================ FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/BasePojo.java ================================================ package com.migo.pojo; import java.util.Date; public abstract class BasePojo { private Date created; private Date updated; public Date getCreated() { return created; } public void setCreated(Date created) { this.created = created; } public Date getUpdated() { return updated; } public void setUpdated(Date updated) { this.updated = updated; } } ================================================ FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/Content.java ================================================ package com.migo.pojo; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Table(name = "tb_content") public class Content extends BasePojo { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "category_id") private Long categoryId; private String title; @Column(name = "sub_title") private String subTitle; @Column(name = "title_desc") private String titleDesc; private String url; private String pic; private String pic2; private String content; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getCategoryId() { return categoryId; } public void setCategoryId(Long categoryId) { this.categoryId = categoryId; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getSubTitle() { return subTitle; } public void setSubTitle(String subTitle) { this.subTitle = subTitle; } public String getTitleDesc() { return titleDesc; } public void setTitleDesc(String titleDesc) { this.titleDesc = titleDesc; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getPic() { return pic; } public void setPic(String pic) { this.pic = pic; } public String getPic2() { return pic2; } public void setPic2(String pic2) { this.pic2 = pic2; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } } ================================================ FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ContentCategory.java ================================================ package com.migo.pojo; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Table(name = "tb_content_category") public class ContentCategory extends BasePojo { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "parent_id") private Long parentId; private String name; private Integer status; @Column(name = "sort_order") private Integer sortOrder; @Column(name = "is_parent") private Boolean isParent; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getParentId() { return parentId; } public void setParentId(Long parentId) { this.parentId = parentId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Integer getSortOrder() { return sortOrder; } public void setSortOrder(Integer sortOrder) { this.sortOrder = sortOrder; } public Boolean getIsParent() { return isParent; } public void setIsParent(Boolean isParent) { this.isParent = isParent; } // 扩展字段,支持EasyUItree的显示,这样就可以避免再写一个第一版中的EasyuiTreeNode类,同时也省了第一版中 //在service中的一系列对easyuiTreeNode的处理 public String getText() { return getName(); } public String getState() { return getIsParent() ? "closed" : "open"; } } ================================================ FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/Item.java ================================================ package com.migo.pojo; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Table(name = "tb_item") public class Item extends BasePojo { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String title; private String sellPoint; private Long price; private Integer num; private String barcode; private String image; private Long cid; private Integer status; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getSellPoint() { return sellPoint; } public void setSellPoint(String sellPoint) { this.sellPoint = sellPoint; } public Long getPrice() { return price; } public void setPrice(Long price) { this.price = price; } public Integer getNum() { return num; } public void setNum(Integer num) { this.num = num; } public String getBarcode() { return barcode; } public void setBarcode(String barcode) { this.barcode = barcode; } public String getImage() { return image; } public void setImage(String image) { this.image = image; } public Long getCid() { return cid; } public void setCid(Long cid) { this.cid = cid; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } @Override public String toString() { return "Item [id=" + id + ", title=" + title + ", sellPoint=" + sellPoint + ", price=" + price + ", num=" + num + ", barcode=" + barcode + ", image=" + image + ", cid=" + cid + ", status=" + status + "]"; } } ================================================ FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ItemCat.java ================================================ package com.migo.pojo; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Table(name = "tb_item_cat") public class ItemCat extends BasePojo { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private Long parentId; private String name; private Integer status; private Integer sortOrder; private Boolean isParent; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getParentId() { return parentId; } public void setParentId(Long parentId) { this.parentId = parentId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Integer getSortOrder() { return sortOrder; } public void setSortOrder(Integer sortOrder) { this.sortOrder = sortOrder; } public Boolean getIsParent() { return isParent; } public void setIsParent(Boolean isParent) { this.isParent = isParent; } // 扩展字段,支持EasyUItree的显示,这样就可以避免再写一个第一版中的EasyuiTreeNode类,同时也省了第一版中 //在service中的一系列对easyuiTreeNode的处理 public String getText() { return this.getName(); } public String getState() { return this.getIsParent() ? "closed" : "open"; } } ================================================ FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ItemDesc.java ================================================ package com.migo.pojo; import javax.persistence.Id; import javax.persistence.Table; @Table(name = "tb_item_desc") public class ItemDesc extends BasePojo{ @Id//对应tb_item中的id private Long itemId; private String itemDesc; public Long getItemId() { return itemId; } public void setItemId(Long itemId) { this.itemId = itemId; } public String getItemDesc() { return itemDesc; } public void setItemDesc(String itemDesc) { this.itemDesc = itemDesc; } } ================================================ FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ItemParam.java ================================================ package com.migo.pojo; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Table(name = "tb_item_param") public class ItemParam extends BasePojo { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "item_cat_id") private Long itemCatId; @Column(name = "param_data") private String paramData; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getItemCatId() { return itemCatId; } public void setItemCatId(Long itemCatId) { this.itemCatId = itemCatId; } public String getParamData() { return paramData; } public void setParamData(String paramData) { this.paramData = paramData; } } ================================================ FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ItemParamItem.java ================================================ package com.migo.pojo; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Table(name = "tb_item_param_item") public class ItemParamItem extends BasePojo { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "item_id") private Long itemId; @Column(name = "param_data") private String paramData; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getItemId() { return itemId; } public void setItemId(Long itemId) { this.itemId = itemId; } public String getParamData() { return paramData; } public void setParamData(String paramData) { this.paramData = paramData; } } ================================================ FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ItemParamexd.java ================================================ package com.migo.pojo; import java.util.Date; /** * Author 知秋 * Created by kauw on 2016/10/6. */ public class ItemParamexd { private Long id; private Long itemCatId; private Date created; private Date updated; private String paramData; private String itemCatName; public Date getCreated() { return created; } public void setCreated(Date created) { this.created = created; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getItemCatId() { return itemCatId; } public void setItemCatId(Long itemCatId) { this.itemCatId = itemCatId; } public String getItemCatName() { return itemCatName; } public void setItemCatName(String itemCatName) { this.itemCatName = itemCatName; } public String getParamData() { return paramData; } public void setParamData(String paramData) { this.paramData = paramData; } public Date getUpdated() { return updated; } public void setUpdated(Date updated) { this.updated = updated; } } ================================================ FILE: migo-manage/manage-service/pom.xml ================================================ manage com.migo 2.0-SNAPSHOT 4.0.0 manage-service jar com.migo manage-mapper 2.0-SNAPSHOT org.springframework spring-webmvc com.github.pagehelper pagehelper fastdfs_client fastdfs_client 1.25 com.github.jsqlparser jsqlparser redis.clients jedis org.springframework spring-test 4.3.5.RELEASE test ================================================ FILE: migo-manage/manage-service/src/main/java/com/migo/service/BaseService.java ================================================ package com.migo.service; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.migo.pojo.BasePojo; import org.springframework.beans.factory.annotation.Autowired; import tk.mybatis.mapper.common.Mapper; import tk.mybatis.mapper.entity.Example; import java.util.Date; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/11/10. */ public class BaseService { //这里利用了Spring4才支持的泛型注入 @Autowired private Mapper mapper; /** * 根据id查询 */ public T queryById(Long id){ return this.mapper.selectByPrimaryKey(id); } /** * 根据条件查询一条数据 */ public T queryOne(T example){ return this.mapper.selectOne(example); } /** * 查询所有数据 */ public List queryAll(){ return this.mapper.select(null); } /** * 根据条件查询数据列表 */ public List queryListByWhere(T example){ return this.mapper.select(example); } /** * 分页查询数据列表 * @param example 查询条件 * @param page 页数 * @param rows 页面大小 * @return */ public PageInfo queryPageListByWhere(T example,Integer page,Integer rows){ //设置分页参数 PageHelper.startPage(page,rows); //执行查询 List list = this.mapper.select(example); return new PageInfo(list); } /** * 新增数据,注意设置数据的创建和更新时间 * 返回成功的条数 */ public Integer save(T t){ Date date=new Date(); t.setCreated(date); t.setUpdated(date); return this.mapper.insertSelective(t); } /** * 更新数据,设置数据的更新时间 * 返回成功的条数 */ public Integer update(T t){ t.setUpdated(new Date()); return this.mapper.updateByPrimaryKey(t); } /** * 更新数据,设置数据的更新时间(更新部分数据) * 返回成功的条数 */ public Integer updateSelective(T t){ t.setUpdated(new Date()); return this.mapper.updateByPrimaryKeySelective(t); } /** * 根据id删除数据 */ public Integer deleteById(Long id){ return this.mapper.deleteByPrimaryKey(id); } /** * 批量删除数据 * @param clazz * @param property * @param list * @return */ public Integer deleteByIds(Class clazz,String property,List list){ Example example=new Example(clazz); example.createCriteria().andIn(property,list); return this.mapper.deleteByExample(example); } /** * 根据条件删除数据 */ public Integer deleteByWhere(T example){ return this.mapper.delete(example); } } ================================================ FILE: migo-manage/manage-service/src/main/java/com/migo/service/ContentCategoryService.java ================================================ package com.migo.service; import com.migo.pojo.ContentCategory; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/11/20. */ @Service public class ContentCategoryService extends BaseService{ public void deleteDuDu(ContentCategory contentCategory) { List ids=new ArrayList(); ids.add(contentCategory.getId()); //调用递归方法添加旗下所有子节点id this.addAllChildrenNode(ids,contentCategory.getId()); super.deleteByIds(ContentCategory.class,"id",ids); //判断该节点是否还有兄弟节点,如果没有,修改父节点的isParent为false ContentCategory example=new ContentCategory(); example.setParentId(contentCategory.getParentId()); List list = super.queryListByWhere(example); if (list==null||list.isEmpty()){ ContentCategory parent=new ContentCategory(); parent.setId(contentCategory.getParentId()); parent.setIsParent(false); super.updateSelective(parent); } } private void addAllChildrenNode(List ids,Long pid){ ContentCategory example=new ContentCategory(); example.setParentId(pid); List contentCategories = super.queryListByWhere(example); for (ContentCategory contentCategory : contentCategories) { ids.add(contentCategory.getId()); //判断该节点是否为父节点,如果是,继续调用该方法查找子节点 if (contentCategory.getIsParent()) { //递归调用此方法 addAllChildrenNode(ids,contentCategory.getId()); } } } } ================================================ FILE: migo-manage/manage-service/src/main/java/com/migo/service/ContentService.java ================================================ package com.migo.service; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.migo.mapper.ContentMapper; import com.migo.pojo.Content; import com.migo.pojo.EasyUIDataGridResult; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import tk.mybatis.mapper.entity.Example; import java.util.List; import static javafx.scene.input.KeyCode.O; /** * Author 知秋 * Created by kauw on 2016/12/3. */ @Service public class ContentService extends BaseService { @Autowired private ContentMapper contentMapper; public EasyUIDataGridResult queryListByCategoryId(Long categoryId, Integer page, Integer rows) { PageHelper.startPage(page,rows); Example expample=new Example(Content.class); expample.createCriteria().andCondition("category_id").andEqualTo(categoryId); expample.orderBy("updated").desc(); List contents = contentMapper.selectByExample(expample); PageInfo pageInfo=new PageInfo<>(contents); return new EasyUIDataGridResult(pageInfo.getList(),pageInfo.getTotal()); } } ================================================ FILE: migo-manage/manage-service/src/main/java/com/migo/service/ItemCatService.java ================================================ package com.migo.service; import com.migo.pojo.CatNode; import com.migo.pojo.ItemCat; import com.migo.pojo.ItemCatResult; import com.migo.utils.JsonUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/11/8. */ @Service public class ItemCatService extends BaseService { @Autowired private JedisClient jedisClient; private static final String REDIS_KEY = "MIGO_MANAGE_ITEM_CAT_LIST"; // 规则:项目名_模块名_业务名 private static final Integer REDIS_TIME = 60 * 60 * 24 * 30 * 3; /* @Autowired private ItemCatMapper itemCatMapper; public List getItemCatList(Long parentId) { ItemCat example = new ItemCat(); example.setParentId(parentId); return this.itemCatMapper.select(example); }*/ /** * 查询,并生成jd页面类似的树状结构 * @return */ public ItemCatResult getItemCatList(){ try { // 从缓存中命中,如果命中返回,没有命中继续查询 String jsonData = jedisClient.get(REDIS_KEY); if (StringUtils.isNotEmpty(jsonData)) { return JsonUtils.jsonToPojo(jsonData,ItemCatResult.class); } } catch (Exception e) { e.printStackTrace(); } ItemCatResult itemCatResult=new ItemCatResult(); //调用递归方法查询商品分类列表 List catList=getItemCatList(0L); //返回结果 itemCatResult.setCatNodes(catList); return itemCatResult; } private List getItemCatList(long parentId) { //根据parentId查询列表 ItemCat example=new ItemCat(); example.setParentId(parentId); List catList = super.queryListByWhere(example); List resultList=new ArrayList(); int count=0; for (ItemCat itemCat : catList) { //如果是父节点 if (itemCat.getIsParent()) { CatNode node=new CatNode(); node.setUrl("/products/"+itemCat.getId()+".html"); //如果当前节点为第一级节点 if (itemCat.getParentId()==0) { node.setName(""+itemCat.getName()+""); }else { node.setName(itemCat.getName()); } node.setItems(getItemCatList(itemCat.getId())); //将node添加到列表 resultList.add(node); count++; //第一层只取14条记录 if (parentId==0&&count>=14){ break; } }else { //如果是最底层叶子节点 String item = "/products/"+itemCat.getId()+".html|" + itemCat.getName(); resultList.add(item); } } try { //将结果集写入到Redis中 this.jedisClient.set(REDIS_KEY,JsonUtils.objectToJson(resultList),REDIS_TIME); } catch (Exception e) { e.printStackTrace(); } return resultList; } } ================================================ FILE: migo-manage/manage-service/src/main/java/com/migo/service/ItemDescService.java ================================================ package com.migo.service; import com.migo.pojo.ItemDesc; import com.migo.utils.JsonUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; /** * Author 知秋 * Created by kauw on 2016/11/12. */ @Service public class ItemDescService extends BaseService { @Value("${REDIS_KEY}") private String REDIS_KEY; @Value("${REDIS_TIME}") private Integer REDIS_TIME; private static final String ITEM_DESC_KEY = ":ITEM_DESC"; @Autowired private JedisClient jedisClient; public ItemDesc queryByIdse(Long itemId) { //加入缓存逻辑 String key=REDIS_KEY+":"+itemId+ITEM_DESC_KEY; try { String jsonData = jedisClient.get(key); if (StringUtils.isNotEmpty(jsonData)){ return JsonUtils.jsonToPojo(jsonData,ItemDesc.class); } } catch (Exception e) { e.printStackTrace(); } ItemDesc itemDesc = super.queryById(itemId); //数据添加到缓存中 try { jedisClient.set(key,JsonUtils.objectToJson(itemDesc),REDIS_TIME); } catch (Exception e) { e.printStackTrace(); } return itemDesc; } } ================================================ FILE: migo-manage/manage-service/src/main/java/com/migo/service/ItemParamItemService.java ================================================ package com.migo.service; import com.migo.mapper.ItemParamItemMapper; import com.migo.pojo.ItemParamItem; import com.migo.utils.JsonUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import tk.mybatis.mapper.entity.Example; import java.util.Date; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/11/14. */ @Service public class ItemParamItemService extends BaseService { @Value("${REDIS_KEY}") private String REDIS_KEY; @Value("${REDIS_TIME}") private Integer REDIS_TIME; private static final String ITEM_PARAM_KEY = ":ITEM_PARAM_ITEM"; @Autowired private JedisClient jedisClient; @Autowired private ItemParamItemMapper itemParamItemMapper; /** * 更新商品规格参数数据 * @param itemId * @param itemParams * @return */ public Integer updateItemParamItem(Long itemId, String itemParams) { ItemParamItem itemParamItem=new ItemParamItem(); itemParamItem.setParamData(itemParams); itemParamItem.setUpdated(new Date()); //更新 Example example=new Example(ItemParamItem.class); example.createCriteria().andEqualTo("itemId",itemId); return this.itemParamItemMapper.updateByExampleSelective(itemParamItem,example); } /** * 根据商品id查询商品规格参数数据 * @param itemId * @return */ public ItemParamItem queryByIdse(Long itemId) { //添加缓存逻辑 String key=REDIS_KEY+":"+itemId+ITEM_PARAM_KEY; try { String s = jedisClient.get(key); if (StringUtils.isNotEmpty(s)){ return JsonUtils.jsonToPojo(s,ItemParamItem.class); } } catch (Exception e) { e.printStackTrace(); } ItemParamItem example=new ItemParamItem(); example.setItemId(itemId); ItemParamItem itemParamItem = this.itemParamItemMapper.select(example).get(0); //加入缓存 try { jedisClient.set(key,JsonUtils.objectToJson(itemParamItem),REDIS_TIME); } catch (Exception e) { e.printStackTrace(); } return itemParamItem; } } ================================================ FILE: migo-manage/manage-service/src/main/java/com/migo/service/ItemParmService.java ================================================ package com.migo.service; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.migo.mapper.ItemparamexdMapper; import com.migo.pojo.EasyUIDataGridResult; import com.migo.pojo.ItemParam; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/11/14. */ @Service public class ItemParmService extends BaseService { @Autowired private ItemparamexdMapper itemparamexdMapper; public EasyUIDataGridResult getItemParamList(int page, int rows) { //分页处理 PageHelper.startPage(page, rows); //执行查询 List list = itemparamexdMapper.selectList(); //取分页信息 PageInfo pageInfo = new PageInfo<>(list); //返回处理结果 EasyUIDataGridResult result = new EasyUIDataGridResult(); result.setTotal(pageInfo.getTotal()); result.setRows(pageInfo.getList()); return result; } } ================================================ FILE: migo-manage/manage-service/src/main/java/com/migo/service/ItemService.java ================================================ package com.migo.service; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.migo.mapper.ItemMapper; import com.migo.pojo.EasyUIDataGridResult; import com.migo.pojo.Item; import com.migo.pojo.ItemDesc; import com.migo.pojo.ItemParamItem; import com.migo.utils.IDUtils; import com.migo.utils.JsonUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import tk.mybatis.mapper.entity.Example; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/11/12. */ @Service public class ItemService extends BaseService { @Value("${REDIS_KEY}") private String REDIS_KEY; @Value("${REDIS_TIME}") private Integer REDIS_TIME; private static final String ITEM_DETAIL_KEY = ":ITEM_DETAIL"; @Autowired private JedisClient jedisClient; @Autowired private ItemMapper itemMapper; @Autowired private ItemDescService itemDescService; @Autowired private ItemParamItemService itemParamItemService; //desc参考前端页面传过来的数据是序列化成字符串的 public Boolean saveItem(Item item,String desc,String itemParams){ // 1、生成商品id long itemId = IDUtils.genItemId(); // 2、对TbItem对象补全属性。 item.setId(itemId); //'商品状态,1-正常,2-下架,3-删除' item.setStatus(1); //保存商品数据 Integer save = super.save(item); ItemDesc itemDesc=new ItemDesc(); itemDesc.setItemDesc(desc); itemDesc.setItemId(itemId); //保存商品描述数据 Integer save1 = this.itemDescService.save(itemDesc); //保存商品规格参数数据 ItemParamItem itemParamItem=new ItemParamItem(); itemParamItem.setItemId(itemId); itemParamItem.setParamData(itemParams); Integer save2 = this.itemParamItemService.save(itemParamItem); return save.intValue()==1&&save1.intValue()==1&&save2==1; } /** * 查询商品列表 */ public EasyUIDataGridResult getItemList(Integer page,Integer rows){ //执行查询 Example example=new Example(Item.class); example.orderBy("updated").desc(); // example.setOrderByClause("updated DESC"); PageHelper.startPage(page,rows); List itemList = this.itemMapper.selectByExample(example); PageInfo pageInfo=new PageInfo<>(itemList); //返回处理结果 EasyUIDataGridResult result=new EasyUIDataGridResult(); result.setTotal(pageInfo.getTotal()); result.setRows(pageInfo.getList()); //return new EasyUIDataGridResult(pageInfo.getList(), pageInfo.getTotal()); return result; } /** * 商品修改 */ public Boolean updateItem(Item item,String desc,String itemParams){ //强制设置不能更新的字段为空,防止恶意修改 item.setStatus(null); item.setCreated(null); Integer change1 = super.updateSelective(item); //更新商品描述 ItemDesc itemDesc=new ItemDesc(); itemDesc.setItemId(item.getId()); itemDesc.setItemDesc(desc); Integer change2 = this.itemDescService.updateSelective(itemDesc); //更新商品规格参数数据 Integer change3 = this.itemParamItemService.updateItemParamItem(item.getId(), itemParams); return change1.intValue()==1&&change2.intValue()==1&&change3.intValue()==1; } public Item queryByIdse(Long itemId) { String key=REDIS_KEY+":"+itemId+ITEM_DETAIL_KEY; //添加缓存逻辑 try { String jsonData = jedisClient.get(key); if (StringUtils.isNotEmpty(jsonData)){ return JsonUtils.jsonToPojo(jsonData,Item.class); } } catch (Exception e) { e.printStackTrace(); } Item item = super.queryById(itemId); //数据加入缓存 try { jedisClient.set(key,JsonUtils.objectToJson(item),REDIS_TIME); } catch (Exception e) { e.printStackTrace(); } return item; } } ================================================ FILE: migo-manage/manage-service/src/main/java/com/migo/service/PicService.java ================================================ package com.migo.service; import com.migo.utils.FastDFSClient; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartFile; import java.util.HashMap; import java.util.Map; /** * 图片上传 * Author 知秋 * Created by kauw on 2016/11/11. */ @Service public class PicService { @Value("${IMAGE_SERVER_BASE_URL}") private String IMAGE_SERVER_BASE_URL; public Map uploadFile(MultipartFile uploadFile){ try { FastDFSClient client=new FastDFSClient("classpath:properties/client.properties"); //获取图片原始名称 String filename = uploadFile.getOriginalFilename(); //取扩展名 String extendName = filename.substring(filename.lastIndexOf(".") + 1); String url=client.uploadFile(uploadFile.getBytes(),extendName); //拼接URL url=IMAGE_SERVER_BASE_URL+url; //返回map数据 Map result=new HashMap(); result.put("error",0); result.put("url",url); return result; } catch (Exception e) { e.printStackTrace(); //返回Map数据 Map result = new HashMap<>(); result.put("error", 1); result.put("message", "上传失败"); return result; } } } ================================================ FILE: migo-manage/manage-web/pom.xml ================================================ manage com.migo 2.0-SNAPSHOT 4.0.0 manage-web war com.migo manage-service 2.0-SNAPSHOT org.springframework spring-jdbc org.springframework spring-aspects org.mybatis mybatis-spring mysql mysql-connector-java com.fasterxml.jackson.core jackson-databind com.alibaba druid jstl jstl javax.servlet servlet-api provided javax.servlet jsp-api provided commons-fileupload commons-fileupload 1.3.1 fastdfs_client fastdfs_client 1.25 joda-time joda-time tk.mybatis mapper 3.3.9 org.springframework spring-test 4.3.5.RELEASE test com.alibaba fastjson 1.1.41 test ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ContentCategoryController.java ================================================ package com.migo.controller; import com.migo.pojo.ContentCategory; import com.migo.service.ContentCategoryService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/11/20. */ @Controller @RequestMapping("content/category") public class ContentCategoryController { private static final Logger logger= LoggerFactory.getLogger(ContentCategoryController.class); @Autowired private ContentCategoryService contentCategoryService; /** * 根据父节点id查询节点列表 * @param parentId * @return */ @RequestMapping(method = RequestMethod.GET) public ResponseEntity> getContentCatList( @RequestParam(value = "id", defaultValue = "0") Long parentId) { try { if (logger.isInfoEnabled()){ logger.info("根据父节点id查询节点列表 parentId = {}",parentId); } ContentCategory example=new ContentCategory(); example.setParentId(parentId); List categoryList = this.contentCategoryService.queryListByWhere(example); if (categoryList==null||categoryList.isEmpty()){ if (logger.isInfoEnabled()){ logger.info("根据父节点id查询节点列表 未找到 parentId = {}",parentId); } return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null); } return ResponseEntity.ok(categoryList); } catch (Exception e) { logger.error("根据父节点id查询节点列表 服务器傲娇了 parentId = {}",parentId,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } /** * 新增节点 * @param contentCategory * @return */ @RequestMapping(method = RequestMethod.POST) public ResponseEntity addContentCategery(ContentCategory contentCategory) { try { if (logger.isInfoEnabled()){ logger.info("新增节点 contentCategory = {}",contentCategory); } //补全字段 contentCategory.setId(null); contentCategory.setIsParent(false); contentCategory.setSortOrder(1); contentCategory.setStatus(1); this.contentCategoryService.save(contentCategory); //新增节点后可能会改变父节点的状态isParent ContentCategory parent = this.contentCategoryService.queryById(contentCategory.getParentId()); if (!parent.getIsParent()) { parent.setIsParent(true); this.contentCategoryService.updateSelective(parent); } return ResponseEntity.status(HttpStatus.CREATED).body(contentCategory); } catch (Exception e) { logger.error("新增节点 服务器傲娇了 contentCategory = {}",contentCategory,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } /** * 修改节点 * @param contentCategory * @return */ @RequestMapping(method = RequestMethod.PUT) public ResponseEntity updateContentCategery(ContentCategory contentCategory){ try { if (logger.isInfoEnabled()){ logger.info("修改节点 contentCategory = {}",contentCategory); } this.contentCategoryService.updateSelective(contentCategory); return ResponseEntity.status(HttpStatus.NO_CONTENT).build(); } catch (Exception e) { logger.error("修改节点 服务器傲娇了 contentCategory = {}",contentCategory,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build(); } /** * 删除节点 * @param contentCategory * @return */ @RequestMapping(method = RequestMethod.DELETE) public ResponseEntity delete(ContentCategory contentCategory){ try { if (logger.isInfoEnabled()){ logger.info("删除节点 contentCategory = {}",contentCategory); } this.contentCategoryService.deleteDuDu(contentCategory); return ResponseEntity.status(HttpStatus.NO_CONTENT).build(); } catch (Exception e) { logger.error("删除节点 服务器傲娇了 contentCategory = {}",contentCategory,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build(); } } ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ContentController.java ================================================ package com.migo.controller; import com.migo.pojo.Content; import com.migo.pojo.EasyUIDataGridResult; import com.migo.service.ContentService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; /** * Author 知秋 * Created by kauw on 2016/12/3. */ @Controller @RequestMapping("content") public class ContentController { private static final Logger logger= LoggerFactory.getLogger(ContentController.class); @Autowired private ContentService contentService; /** * 根据categoryId查询内容列表 * @param categoryId * @param page * @param rows * @return */ @RequestMapping(method = RequestMethod.GET) public ResponseEntity queryListByCategoryId( @RequestParam("categoryId") Long categoryId, @RequestParam(value = "page",defaultValue = "1") Integer page, @RequestParam(value = "rows",defaultValue = "20") Integer rows ){ try { if (logger.isInfoEnabled()){ logger.info("根据categoryId查询内容列表 categoryId = {}",categoryId); } EasyUIDataGridResult result=this.contentService.queryListByCategoryId(categoryId,page,rows); return ResponseEntity.ok(result); } catch (Exception e) { logger.error("根据categoryId查询内容列表 服务器傲娇了 categoryId = {}",categoryId); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } /** * 新增内容 * @param content * @return */ @RequestMapping(method = RequestMethod.POST) public ResponseEntity add(Content content){ try { if (logger.isInfoEnabled()){ logger.info("新增内容 contentTitle = {}",content.getTitle()); } content.setId(null); this.contentService.save(content); return ResponseEntity.status(HttpStatus.CREATED).build(); } catch (Exception e) { logger.error("新增内容 contentTitle = {}",content.getTitle(),e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build(); } } ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ItemCatController.java ================================================ package com.migo.controller; import com.migo.pojo.ItemCat; import com.migo.service.ItemCatService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; /** * Author 知秋 * Created by kauw on 2016/11/8. */ @Controller @RequestMapping("item/cat") public class ItemCatController { @Autowired private ItemCatService itemCatService; /** * 根据父节点id查询商品类目表 */ @RequestMapping(method = RequestMethod.GET) public ResponseEntity> getItemCatList( @RequestParam(value = "id",defaultValue = "0") Long parentId ){ try { //List itemcats=itemCatService.getItemCatList(parentId); ItemCat example=new ItemCat(); example.setParentId(parentId); List itemCats = itemCatService.queryListByWhere(example); if (null==itemCats&&itemCats.isEmpty()){ //资源不存在,响应404 return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null); } return ResponseEntity.ok(itemCats); } catch (Exception e) { e.printStackTrace(); // 出错,响应500 return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } } } ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ItemController.java ================================================ package com.migo.controller; import com.migo.pojo.EasyUIDataGridResult; import com.migo.pojo.Item; import com.migo.service.ItemService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; /** * Author 知秋 * Created by kauw on 2016/11/12. */ @Controller @RequestMapping("item") public class ItemController { private static final Logger LOGGER = LoggerFactory.getLogger(ItemController.class); @Autowired private ItemService itemService; /** * 新增商品 */ @RequestMapping(method = RequestMethod.POST) public ResponseEntity addItem(Item item, @RequestParam("desc") String desc, @RequestParam("itemParams") String itemParams) { if (LOGGER.isInfoEnabled()) { LOGGER.info("新增商品,item = {}, desc = {}", item, desc); } /** * TODO 校验以后完善 */ if (item.getPrice() == null || item.getPrice().intValue() == 0) { if (LOGGER.isInfoEnabled()) { LOGGER.info("新增商品时用户输入的参数不合法,item = {}, desc = {},itemParams", item, desc); } // 参数有误,返回400 //ResponseEntity build(); return ResponseEntity.status(HttpStatus.BAD_REQUEST).build(); } try { Boolean saveItem = this.itemService.saveItem(item, desc,itemParams); if (saveItem) { if (LOGGER.isInfoEnabled()) { LOGGER.info("新增商品成功! id = {}", item.getId()); } //CREATED(201, "Created"), return ResponseEntity.status(HttpStatus.CREATED).build(); } } catch (Exception e) { LOGGER.error("新增商品失败! item = " + item + ", desc = " + desc, e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build(); } @RequestMapping(method = RequestMethod.GET) public ResponseEntity getItemList( @RequestParam(value = "page", defaultValue = "0") Integer page, @RequestParam(value = "rows", defaultValue = "30") Integer rows) { try { EasyUIDataGridResult itemList = this.itemService.getItemList(page, rows); return ResponseEntity.ok(itemList); } catch (Exception e) { LOGGER.error("查询商品出错:page="+page+",rows="+rows,e); return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } } /** * 更新商品数据 */ @RequestMapping(method = RequestMethod.PUT) public ResponseEntity updateItem(Item item, @RequestParam("desc") String desc, @RequestParam("itemParams") String itemParams){ if (LOGGER.isInfoEnabled()) { LOGGER.info("修改商品,item = {}, desc = {}", item, desc); } /** * TODO 校验以后完善 */ if (item.getPrice() == null || item.getPrice().intValue() == 0) { if (LOGGER.isInfoEnabled()) { LOGGER.info("修改商品时用户输入的参数不合法,item = {}, desc = {}", item, desc); } // 参数有误,返回400 //ResponseEntity build(); return ResponseEntity.status(HttpStatus.BAD_REQUEST).build(); } try { Boolean updateItem = this.itemService.updateItem(item, desc,itemParams); if (updateItem) { if (LOGGER.isInfoEnabled()) { LOGGER.info("修改商品成功! id = {}", item.getId()); } //CREATED(201, "Created"), return ResponseEntity.status(HttpStatus.CREATED).build(); } } catch (Exception e) { LOGGER.error("修改商品失败! item = " + item + ", desc = " + desc, e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build(); } } ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ItemDescController.java ================================================ package com.migo.controller; import com.migo.pojo.ItemDesc; import com.migo.service.ItemDescService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; /** * Author 知秋 * Created by kauw on 2016/11/14. */ @Controller @RequestMapping("item/desc") public class ItemDescController { private static final Logger logger= LoggerFactory.getLogger(ItemDescController.class); @Autowired private ItemDescService itemDescService; /** * 根据商品id查询商品描述信息 */ @RequestMapping(value = "{itemId}",method = RequestMethod.GET) public ResponseEntity queryItemDescByItemId( @PathVariable("itemId") Long itemId ){ if (logger.isInfoEnabled()){ logger.info("商品描述信息查询 id = {}",itemId); } try { ItemDesc itemDesc = this.itemDescService.queryById(itemId); if (itemDesc==null){ return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null); } return ResponseEntity.ok(itemDesc); } catch (Exception e) { logger.error("商品描述查询失败id = {}",itemId,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } } ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ItemParamController.java ================================================ package com.migo.controller; import com.migo.pojo.EasyUIDataGridResult; import com.migo.pojo.ItemParam; import com.migo.service.ItemParmService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; /** * Author 知秋 * Created by kauw on 2016/11/14. */ @Controller @RequestMapping("item/param") public class ItemParamController { private final static Logger logger= LoggerFactory.getLogger(ItemParamController.class); @Autowired private ItemParmService itemParmService; @RequestMapping(value = "{itemCatId}" ,method = RequestMethod.GET) public ResponseEntity getItemParamByCid(@PathVariable("itemCatId") Long itemCatId){ try { if (logger.isInfoEnabled()) { logger.info("查询某商品规格模板参数模板 itemCatId= {}",itemCatId); } ItemParam example=new ItemParam(); example.setItemCatId(itemCatId); ItemParam itemParam = this.itemParmService.queryOne(example); if (itemParam==null) { if (logger.isInfoEnabled()) { logger.info("所查询商品规格模板参数模板 不存在 itemCatId= {}",itemCatId); } return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null); } return ResponseEntity.ok(itemParam); } catch (Exception e) { logger.error("查询某商品规格模板参数模板 失败 itemCatId= {}",itemCatId,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } /** * 新增规格参数模板 */ @RequestMapping(value = "{itemCatId}",method = RequestMethod.POST) public ResponseEntity addItemParamByItemCatId( @PathVariable("itemCatId") Long itemCatId,@RequestParam("paramData") String paramData ){ try { if (logger.isInfoEnabled()) { logger.info("新增某商品规格模板参数模板 itemCatId= {},paramData = {}",itemCatId,paramData); } ItemParam itemparam=new ItemParam(); itemparam.setId(null); //置空,防止恶意修改 `id` bigint(20) NOT NULL AUTO_INCREMENT itemparam.setItemCatId(itemCatId); itemparam.setParamData(paramData); this.itemParmService.save(itemparam); return ResponseEntity.status(HttpStatus.CREATED).build(); } catch (Exception e) { logger.error("新增某商品规格模板参数模板 失败 itemCatId= {},"+itemCatId+"paramData = {}"+paramData,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build(); } /** * 查询规格参数模板列表 */ @RequestMapping(value = "/list",method = RequestMethod.GET) public ResponseEntity getItemparmList(Integer page,Integer rows){ try { if (logger.isInfoEnabled()) { logger.info("查询商品规格模板参数模板 page= {},rows = {}",page,rows); } EasyUIDataGridResult result=this.itemParmService.getItemParamList(page,rows); return ResponseEntity.ok(result); } catch (Exception e) { logger.error("查询商品规格参数模板列表出错:page="+page+",rows="+rows,e); return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } } } ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ItemParamItemController.java ================================================ package com.migo.controller; import com.migo.pojo.ItemParamItem; import com.migo.service.ItemParamItemService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; /** * Author 知秋 * Created by kauw on 2016/11/14. */ @Controller @RequestMapping("item/param/item/") public class ItemParamItemController { private static final Logger logger= LoggerFactory.getLogger(ItemParamItemController.class); @Autowired private ItemParamItemService itemParamItemService; /** * 根据商品Id查询商品规格参数数据 */ @RequestMapping(value = "{itemId}",method = RequestMethod.GET) public ResponseEntity showItemParam(@PathVariable("itemId") Long itemId){ try { if(logger.isInfoEnabled()){ logger.info("根据商品Id查询商品规格参数数据 itemId = {}",itemId); } ItemParamItem example=new ItemParamItem(); example.setItemId(itemId); ItemParamItem itemParamItem = this.itemParamItemService.queryOne(example); if (null==itemParamItem){ return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null); } return ResponseEntity.ok(itemParamItem); } catch (Exception e) { logger.error("根据商品Id查询商品规格参数数据 失败 itemId = {}",itemId,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } } ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/PageController.java ================================================ package com.migo.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; /** * Author 知秋 * Created by kauw on 2016/11/7. * 通用页面的跳转 */ @Controller public class PageController { @RequestMapping(value = "/page/{pageName}",method = RequestMethod.GET) public String tpage(@PathVariable String pageName){ return pageName; } } ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/PicController.java ================================================ package com.migo.controller; import com.migo.service.PicService; import com.migo.utils.JsonUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.multipart.MultipartFile; import java.util.Map; /** * 图片上传controller * Author 知秋 * Created by kauw on 2016/11/11. */ @Controller public class PicController { @Autowired private PicService picService; @RequestMapping("/pic/upload") @ResponseBody public String uploadFile(MultipartFile uploadFile){ Map result = picService.uploadFile(uploadFile); //把Java对象手工转换成json数据 String json = JsonUtils.objectToJson(result); return json; } } ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/webs/WebsContenController.java ================================================ package com.migo.controller.webs; import com.migo.pojo.EasyUIDataGridResult; import com.migo.service.ContentService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; /** * Author 知秋 * Created by kauw on 2016/12/4. */ @Controller @RequestMapping("webs/content") public class WebsContenController { private static final Logger logger= LoggerFactory.getLogger(WebsContenController.class); @Autowired private ContentService contentService; /** * 根据categoryId查询内容列表 * @param categoryId * @param page * @param rows * @return */ @RequestMapping(method = RequestMethod.GET) public ResponseEntity queryListByCategoryId( @RequestParam("categoryId") Long categoryId, @RequestParam(value = "page",defaultValue = "1") Integer page, @RequestParam(value = "rows",defaultValue = "20") Integer rows ){ try { if (logger.isInfoEnabled()){ logger.info("根据categoryId查询内容列表 categoryId = {}",categoryId); } EasyUIDataGridResult result=this.contentService.queryListByCategoryId(categoryId,page,rows); return ResponseEntity.ok(result); } catch (Exception e) { logger.error("根据categoryId查询内容列表 服务器傲娇了 categoryId = {}",categoryId,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } } ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/webs/WebsItemCatController.java ================================================ package com.migo.controller.webs; import com.migo.pojo.ItemCatResult; import com.migo.service.ItemCatService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; /** * Author 知秋 * Created by kauw on 2016/11/17. */ @Controller @RequestMapping("webs/item/cat") public class WebsItemCatController { private static final Logger logger= LoggerFactory.getLogger(WebsItemCatController.class); @Autowired private ItemCatService itemCatService; /* @RequestMapping(method = RequestMethod.GET) public ResponseEntity getItemCatList(String callback){ try { if (logger.isInfoEnabled()) { logger.info("查询商品类目数据服务"); } ItemCatResult itemCatList = this.itemCatService.getItemCatList(); if (StringUtils.isEmpty(callback)) { String json = JsonUtils.objectToJson(itemCatList); return ResponseEntity.ok((Object) json); } //如果字符串不为空,需要支持jsonp调用 MappingJacksonValue mappingJacksonValue=new MappingJacksonValue(itemCatList); mappingJacksonValue.setJsonpFunction(callback); return ResponseEntity.ok((Object) mappingJacksonValue); } catch (Exception e) { logger.error("查询商品类目数据服务 失败", e); return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } }*/ @RequestMapping(method = RequestMethod.GET) public ResponseEntity getItemCatList(){ try { if (logger.isInfoEnabled()) { logger.info("查询商品类目数据服务"); } ItemCatResult itemCatList = this.itemCatService.getItemCatList(); return ResponseEntity.ok(itemCatList); } catch (Exception e) { logger.error("查询商品类目数据服务 失败", e); return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } } } ================================================ FILE: migo-manage/manage-web/src/main/java/com/migo/controller/webs/WebsItemController.java ================================================ package com.migo.controller.webs; import com.migo.pojo.Item; import com.migo.pojo.ItemDesc; import com.migo.pojo.ItemParamItem; import com.migo.service.ItemDescService; import com.migo.service.ItemParamItemService; import com.migo.service.ItemService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; /** * Author 知秋 * Created by kauw on 2016/12/9. */ @Controller @RequestMapping("webs/item") public class WebsItemController { private static final Logger logger= LoggerFactory.getLogger(WebsItemController.class); @Autowired private ItemService itemService; @Autowired private ItemDescService itemDescService; @Autowired private ItemParamItemService itemParamItemService; /** * 根据itemId查询商品详情 * @param itemId * @return */ @RequestMapping(value = "{itemId}",method = RequestMethod.GET) public ResponseEntity queryByItemId(@PathVariable("itemId") Long itemId){ try { if (logger.isInfoEnabled()){ logger.info("根据itemId查询商品详情 itemId = {}",itemId); } Item item = this.itemService.queryByIdse(itemId); if (null==item){ return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null); } return ResponseEntity.ok(item); } catch (Exception e) { logger.error("根据itemId查询商品详情出错,服务器傲娇了 itemId = {}",itemId,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } /** * 根据itemId查询商品描述 * @param itemId * @return */ @RequestMapping(value = "/desc/{itemId}",method = RequestMethod.GET) public ResponseEntity queryDescByitemId(@PathVariable("itemId") Long itemId){ try { if (logger.isInfoEnabled()){ logger.info("根据itemId查询商品描述 itemId = {}",itemId); } ItemDesc itemDesc = this.itemDescService.queryByIdse(itemId); if (null==itemDesc) { return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null); } return ResponseEntity.ok(itemDesc); } catch (Exception e) { logger.error("根据itemId查询商品描述出错,服务器傲娇了 itemId = {}",itemId,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } /** * 根据itemId查询商品规格参数 * @param itemId * @return */ @RequestMapping(value = "/paramitem/{itemId}",method = RequestMethod.GET) public ResponseEntity queryItemParamItemByitemId( @PathVariable("itemId") Long itemId){ try { if (logger.isInfoEnabled()){ logger.info("根据itemId查询商品规格参数 itemId = {}",itemId); } ItemParamItem itemParamItem = this.itemParamItemService.queryByIdse(itemId); if (itemParamItem==null){ return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null); } return ResponseEntity.ok(itemParamItem); } catch (Exception e) { logger.error("根据itemId查询商品规格参数出错,服务器傲娇了 itemId = {}",itemId,e); } return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null); } } ================================================ FILE: migo-manage/manage-web/src/main/resources/log4j.properties ================================================ log4j.rootLogger=DEBUG,A1 log4j.logger.com.migo = DEBUG log4j.logger.org.mybatis = DEBUG log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss,SSS} [%t] [%c]-[%p] %m%n ================================================ FILE: migo-manage/manage-web/src/main/resources/mybatis/mybatis-config.xml ================================================ ================================================ FILE: migo-manage/manage-web/src/main/resources/properties/client.properties ================================================ tracker_server=192.168.42.129:22122 ================================================ FILE: migo-manage/manage-web/src/main/resources/properties/db.properties ================================================ jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/migo2?characterEncoding=utf-8 jdbc.username=root jdbc.password=123 ================================================ FILE: migo-manage/manage-web/src/main/resources/properties/env.properties ================================================ #图片服务器根URL IMAGE_SERVER_BASE_URL=http://pic.migo.com/ REDIS_KEY = MIGO_MANAGE REDIS_TIME = 2592000 ================================================ FILE: migo-manage/manage-web/src/main/resources/spring/applicationContext-dao.xml ================================================ dialect=mysql reasonable=true supportMethodsArguments=true params=count=countSql autoRuntimeDialect=true mappers=tk.mybatis.mapper.common.Mapper ================================================ FILE: migo-manage/manage-web/src/main/resources/spring/applicationContext-service.xml ================================================ ================================================ FILE: migo-manage/manage-web/src/main/resources/spring/applicationContext-trans.xml ================================================ ================================================ FILE: migo-manage/manage-web/src/main/resources/spring/springmvc.xml ================================================ ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/content-add.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    内容标题:
    内容子标题:
    内容描述:
    URL:
    图片: 图片上传
    图片2: 图片上传
    内容:
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/content-category.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    添加
    重命名
    删除
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/content-edit.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    内容标题:
    内容子标题:
    内容描述:
    URL:
    图片: 图片上传
    图片2: 图片上传
    内容:
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/content.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    ID 内容标题 内容子标题 内容描述 内容连接 图片 图片2 创建日期 更新日期
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/file-upload.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> jQuery File Upload Demo
    选择文件(多选)
     

    说明

    • 上传的文件大小限制为:5 MB.
    • 只支持的文件格式为:JPG, GIF, PNG, BMP .
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/index.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 咪购商城后台管理系统
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/item-add.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    商品类目: 选择类目
    商品标题:
    商品卖点:
    商品价格:
    库存数量:
    条形码:
    商品图片: 上传图片
    商品描述:
    商品规格:
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/item-edit.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    商品类目: 选择类目
    商品标题:
    商品卖点:
    商品价格:
    库存数量:
    条形码:
    商品图片: 上传图片
    商品描述:
    商品规格:
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/item-list.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    商品ID 商品标题 叶子类目 卖点 价格 库存数量 条形码 状态 创建日期 更新日期
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/item-param-add.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    商品类目: 选择类目
    规格参数:
    提交 关闭
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/item-param-list.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    ID 商品类目ID 商品类目 规格(只显示分组名称) 创建日期 更新日期
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/login.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 管理员登录
    用户名:
    密  码:
    ================================================ FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/web.xml ================================================ migo-manage contextConfigLocation classpath:spring/applicationContext*.xml org.springframework.web.context.ContextLoaderListener encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF8 encodingFilter /* HttpMethodFilter org.springframework.web.filter.HttpPutFormContentFilter HttpMethodFilter /* HiddenHttpMethodFilter org.springframework.web.filter.HiddenHttpMethodFilter HiddenHttpMethodFilter /* migo-manage org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:spring/springmvc.xml 1 migo-manage /rest/* index.jsp ================================================ FILE: migo-manage/manage-web/src/main/webapp/commons/common-js.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> ================================================ FILE: migo-manage/manage-web/src/main/webapp/css/migo.css ================================================ ul{ list-style: none; } .hide{ display: none; } .itemParam ul{ padding-left: 0px; } .itemParam li{ line-height: 25px; } .itemForm .pics ul{ list-style: none; padding-left: 0px; } .itemForm .pics ul li{ float: left; padding-right: 5px; } .itemForm .group{ font-weight: bold; text-align: center; background-color: #EAEAEA; } .itemForm .param{ width: 80px; text-align: right; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/common.js ================================================ Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" : this.getMinutes(), //minute "s+" : this.getSeconds(), //second "q+" : Math.floor((this.getMonth()+3)/3), //quarter "S" : this.getMilliseconds() //millisecond }; if(/(y+)/.test(format)){ format = format.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length)); } for(var k in o) { if(new RegExp("("+ k +")").test(format)){ format = format.replace(RegExp.$1, RegExp.$1.length==1 ? o[k] : ("00"+ o[k]).substr((""+ o[k]).length)); } } return format; }; var TT = migo = { // 编辑器参数 kingEditorParams : { filePostName : "uploadFile", uploadJson : '/rest/pic/upload', dir : "image" }, // 格式化时间 formatDateTime : function(val,row){ var now = new Date(val); return now.format("yyyy-MM-dd hh:mm:ss"); }, // 格式化连接 formatUrl : function(val,row){ if(val){ return "查看"; } return ""; }, // 格式化价格 formatPrice : function(val,row){ return (val/100).toFixed(2); }, // 格式化商品的状态 formatItemStatus : function formatStatus(val,row){ if (val == 1){ return '正常'; } else if(val == 2){ return '下架'; } else { return '未知'; } }, init : function(data){ this.initPicUpload(data); this.initItemCat(data); }, // 初始化图片上传组件 initPicUpload : function(data){ $(".picFileUpload").each(function(i,e){ var _ele = $(e); _ele.siblings("div.pics").remove(); _ele.after('\
    \
      \
      '); // 回显图片 if(data && data.pics){ var imgs = data.pics.split(","); for(var i in imgs){ if($.trim(imgs[i]).length > 0){ _ele.siblings(".pics").find("ul").append("
    • "); } } } $(e).click(function(){ var form = $(this).parentsUntil("form").parent("form"); KindEditor.editor(TT.kingEditorParams).loadPlugin('multiimage',function(){ var editor = this; editor.plugin.multiImageDialog({ clickFn : function(urlList) { var imgArray = []; KindEditor.each(urlList, function(i, data) { imgArray.push(data.url); form.find(".pics ul").append("
    • "); }); form.find("[name=image]").val(imgArray.join(",")); editor.hideDialog(); } }); }); }); }); }, // 初始化选择类目组件 initItemCat : function(data){ $(".selectItemCat").each(function(i,e){ var _ele = $(e); if(data && data.cid){ _ele.after(""+data.cid+""); }else{ _ele.after(""); } _ele.unbind('click').click(function(){ $("
      ").css({padding:"5px"}).html("
        ") .window({ width:'500', height:"450", modal:true, closed:true, iconCls:'icon-save', title:'选择类目', onOpen : function(){ var _win = this; $("ul",_win).tree({ url:'/rest/item/cat/', method:"GET", animate:true, onClick : function(node){ if($(this).tree("isLeaf",node.target)){ // 填写到cid中 _ele.parent().find("[name=cid]").val(node.id); _ele.next().text(node.text).attr("cid",node.id); $(_win).window('close'); if(data && data.fun){ data.fun.call(this,node); } } } }); }, onClose : function(){ $(this).window("destroy"); } }).window('open'); }); }); }, createEditor : function(select){ return KindEditor.create(select, TT.kingEditorParams); }, /** * 创建一个窗口,关闭窗口后销毁该窗口对象。
        * * 默认:
        * width : 80%
        * height : 80%
        * title : (空字符串)
        * * 参数:
        * width :
        * height :
        * title :
        * url : 必填参数
        * onLoad : function 加载完窗口内容后执行
        * * */ createWindow : function(params){ $("
        ").css({padding:"5px"}).window({ width : params.width?params.width:"80%", height : params.height?params.height:"80%", modal:true, title : params.title?params.title:" ", href : params.url, onClose : function(){ $(this).window("destroy"); }, onLoad : function(){ if(params.onLoad){ params.onLoad.call(this); } } }).window("open"); }, closeCurrentWindow : function(){ $(".panel-tool-close").click(); }, changeItemParam : function(node,formId){ $.ajax({ type: "GET", url: "/rest/item/param/" + node.id, statusCode : { 200 : function(data){ $("#"+formId+" .params").show(); var paramData = JSON.parse(data.paramData); var html = "
          "; for(var i in paramData){ var pd = paramData[i]; html+="
        • "; html+=""; for(var j in pd.params){ var ps = pd.params[j]; html+=""; } html+="
          "+pd.group+"
          "+ps+":
          "; } html+= "
        "; $("#"+formId+" .params td").eq(1).html(html); }, 404 : function(){ $("#"+formId+" .params").hide(); $("#"+formId+" .params td").eq(1).empty(); }, 500 : function(){ alert("error"); } } }); }, getSelectionsIds : function (select){ var list = $(select); var sels = list.datagrid("getSelections"); var ids = []; for(var i in sels){ ids.push(sels[i].id); } ids = ids.join(","); return ids; }, /** * 初始化单图片上传组件
        * 选择器为:.onePicUpload
        * 上传完成后会设置input内容以及在input后面追加 */ initOnePicUpload : function(){ $(".onePicUpload").click(function(){ var _self = $(this); KindEditor.editor(TT.kingEditorParams).loadPlugin('image', function() { this.plugin.imageDialog({ showRemote : false, clickFn : function(url, title, width, height, border, align) { var input = _self.siblings("input"); input.parent().find("img").remove(); input.val(url); input.after(""); this.hideDialog(); } }); }); }); } }; ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/changelog.txt ================================================ Version 1.4.1 ------------- * Bug * combogrid: The combogrid has different height than other combo components. fixed. * datagrid: The row element loses some class style value after calling 'updateRow' method. fixed. * menubutton: Calling 'enable' method on a disabled button can not work well. fixed. * form: The filebox components in the form do not work correctly after calling 'clear' method. fixed. * Improvement * tabs: The 'update' method accepts 'type' option that allows the user to update the header,body,or both. * panel: Add 'openAnimation','openDuration','closeAnimation' and 'closeDuration' properties to set the animation for opening or closing a panel. * panel: Add 'footer' property that allows the user to add a footer bar to the bottom of panel. * datagrid: Calling 'endEdit' method will accept the editing value correctly. * datagrid: Add 'onBeforeSelect','onBeforeCheck','onBeforeUnselect','onBeforeUncheck' events. * propertygrid: The user can edit a row by calling 'beginEdit' method. * datebox: Add 'cloneFrom' method to create the datebox component quickly. * datetimebox: Add 'cloneFrom' method to create the datetimebox component quickly. Version 1.4 ------------- * Bug * menu: The menu should not has a correct height when removed a menu item. fixed. * datagrid: The 'fitColumns' method does not work normally when the datarid width is too small. fixed. * Improvement * The fluid/percentange size is supported now for all easyui components. * menu: Add 'showItem', 'hideItem' and 'resize' methods. * menu: Auto resize the height upon the window size. * menu: Add 'duration' property that allows the user to define duration time in milliseconds to hide menu. * validatebox: Add 'onBeforeValidate' and 'onValidate' events. * combo: Extended from textbox now. * combo: Add 'panelMinWidth','panelMaxWidth','panelMinHeight' and 'panelMaxHeight' properties. * searchbox: Extended from textbox now. * tree: The 'getRoot' method will return the top parent node of a specified node if pass a 'nodeEl' parameter. * tree: Add 'queryParams' property. * datetimebox: Add 'spinnerWidth' property. * panel: Add 'doLayout' method to cause the panel to lay out its components. * panel: Add 'clear' method to clear the panel's content. * datagrid: The user is allowed to assign percent width to columns. * form: Add 'ajax','novalidate' and 'queryParams' properties. * linkbutton: Add 'resize' method. * New Plugins * textbox: A enhanced input field that allows users build their form easily. * datetimespinner: A date and time spinner that allows to pick a specific day. * filebox: The filebox component represents a file field of the forms. Version 1.3.6 ------------- * Bug * treegrid: The 'getChecked' method can not return correct checked rows. fixed. * tree: The checkbox does not display properly on async tree when 'onlyLeafCheck' property is true. fixed. * Improvement * treegrid: All the selecting and checking methods are extended from datagrid component. * linkbutton: The icon alignment is fully supported, possible values are: 'top','bottom','left','right'. * linkbutton: Add 'size' property, possible values are: 'small','large'. * linkbutton: Add 'onClick' event. * menubutton: Add 'menuAlign' property that allows the user set top level menu alignment. * combo: Add 'panelAlign' property, possible values are: 'left','right'. * calendar: The 'formatter','styler' and 'validator' options are available to custom the calendar dates. * calendar: Add 'onChange' event. * panel: Add 'method','queryParams' and 'loader' options. * panel: Add 'onLoadError' event. * datagrid: Add 'onBeginEdit' event that fires when a row goes into edit mode. * datagrid: Add 'onEndEdit' event that fires when finishing editing but before destroying editors. * datagrid: Add 'sort' method and 'onBeforeSortColumn' event. * datagrid: The 'combogrid' editor has been integrated into datagrid. * datagrid: Add 'ctrlSelect' property that only allows multi-selection when ctrl+click is used. * slider: Add 'converter' option that allows users determine how to convert a value to the slider position or the slider position to the value. * searchbox: Add 'disabled' property. * searchbox: Add 'disable','enable','clear','reset' methods. * spinner: Add 'readonly' property, 'readonly' method and 'onChange' event. Version 1.3.5 ------------- * Bug * searchbox: The 'searcher' function can not offer 'name' parameter value correctly. fixed. * combo: The 'isValid' method can not return boolean value. fixed. * combo: Clicking combo will trigger the 'onHidePanel' event of other combo components that have hidden drop-down panels. fixed. * combogrid: Some methods can not inherit from combo. fixed. * Improvement * datagrid: Improve performance on checking rows. * menu: Allows to append a menu separator. * menu: Add 'hideOnUnhover' property to indicate if the menu should be hidden when mouse exits it. * slider: Add 'clear' and 'reset' methods. * tabs: Add 'unselect' method that will trigger 'onUnselect' event. * tabs: Add 'selected' property to specify what tab panel will be opened. * tabs: The 'collapsible' property of tab panel is supported to determine if the tab panel can be collapsed. * tabs: Add 'showHeader' property, 'showHeader' and 'hideHeader' methods. * combobox: The 'disabled' property can be used to disable some items. * tree: Improve loading performance. * pagination: The 'layout' property can be used to customize the pagination layout. * accordion: Add 'unselect' method that will trigger 'onUnselect' event. * accordion: Add 'selected' and 'multiple' properties. * accordion: Add 'getSelections' method. * datebox: Add 'sharedCalendar' property that allows multiple datebox components share one calendar component. Version 1.3.4 ------------- * Bug * combobox: The onLoadSuccess event fires when parsing empty local data. fixed. * form: Calling 'reset' method can not reset datebox field. fixed. * Improvement * mobile: The context menu and double click features are supported on mobile devices. * combobox: The 'groupField' and 'groupFormatter' options are available to display items in groups. * tree: When append or insert nodes, the 'data' parameter accepts one or more nodes data. * tree: The 'getChecked' method accepts a single 'state' or an array of 'state'. * tree: Add 'scrollTo' method. * datagrid: The 'multiSort' property is added to support multiple column sorting. * datagrid: The 'rowStyler' and column 'styler' can return CSS class name or inline styles. * treegrid: Add 'load' method to load data and navigate to the first page. * tabs: Add 'tabWidth' and 'tabHeight' properties. * validatebox: The 'novalidate' property is available to indicate whether to perform the validation. * validatebox: Add 'enableValidation' and 'disableValidation' methods. * form: Add 'enableValidation' and 'disableValidation' methods. * slider: Add 'onComplete' event. * pagination: The 'buttons' property accepts the existing element. Version 1.3.3 ------------- * Bug * datagrid: Some style features are not supported by column styler function. fixed. * datagrid: IE 31 stylesheet limit. fixed. * treegrid: Some style features are not supported by column styler function. fixed. * menu: The auto width of menu item displays incorrect in ie6. fixed. * combo: The 'onHidePanel' event can not fire when clicked outside the combo area. fixed. * Improvement * datagrid: Add 'scrollTo' and 'highlightRow' methods. * treegrid: Enable treegrid to parse data from element. * combo: Add 'selectOnNavigation' and 'readonly' options. * combobox: Add 'loadFilter' option to allow users to change data format before loading into combobox. * tree: Add 'onBeforeDrop' callback event. * validatebox: Dependent on tooltip plugin now, add 'deltaX' property. * numberbox: The 'filter' options can be used to determine if the key pressed was accepted. * linkbutton: The group button is available. * layout: The 'minWidth','maxWidth','minHeight','maxHeight' and 'collapsible' properties are available for region panel. * New Plugins * tooltip: Display a popup message when moving mouse over an element. Version 1.3.2 ------------- * Bug * datagrid: The loading message window can not be centered when changing the width of datagrid. fixed. * treegrid: The 'mergeCells' method can not work normally. fixed. * propertygrid: Calling 'endEdit' method to stop editing a row will cause errors. fixed. * tree: Can not load empty data when 'lines' property set to true. fixed. * Improvement * RTL feature is supported now. * tabs: Add 'scrollBy' method to scroll the tab header by the specified amount of pixels * tabs: Add 'toolPosition' property to set tab tools to left or right. * tabs: Add 'tabPosition' property to define the tab position, possible values are: 'top','bottom','left','right'. * datagrid: Add a column level property 'order' that allows users to define different default sort order per column. * datagrid: Add a column level property 'halign' that allows users to define how to align the column header. * datagrid: Add 'resizeHandle' property to define the resizing column position, by grabbing the left or right edge of the column. * datagrid: Add 'freezeRow' method to freeze some rows that will always be displayed at the top when the datagrid is scrolled down. * datagrid: Add 'clearChecked' method to clear all checked records. * datagrid: Add 'data' property to initialize the datagrid data. * linkbutton: Add 'iconAlgin' property to define the icon position, supported values are: 'left','right'. * menu: Add 'minWidth' property. * menu: The menu width can be automatically calculated. * tree: New events are available including 'onBeforeDrag','onStartDrag','onDragEnter','onDragOver','onDragLeave',etc. * combo: Add 'height' property to allow users to define the height of combo. * combo: Add 'reset' method. * numberbox: Add 'reset' method. * spinner: Add 'reset' method. * spinner: Add 'height' property to allow users to define the height of spinner. * searchbox: Add 'height' property to allow users to define the height of searchbox. * form: Add 'reset' method. * validatebox: Add 'delay' property to delay validating from the last inputting value. * validatebox: Add 'tipPosition' property to define the tip position, supported values are: 'left','right'. * validatebox: Multiple validate rules on a field is supported now. * slider: Add 'reversed' property to determine if the min value and max value will switch their positions. * progressbar: Add 'height' property to allow users to define the height of progressbar. Version 1.3.1 ------------- * Bug * datagrid: Setting the 'pageNumber' property is not valid. fixed. * datagrid: The id attribute of rows isn't adjusted properly while calling 'insertRow' or 'deleteRow' method. * dialog: When load content from 'href', the script will run twice. fixed. * propertygrid: The editors that extended from combo can not accept its changed value. fixed. * Improvement * droppable: Add 'disabled' property. * droppable: Add 'options','enable' and 'disable' methods. * tabs: The tab panel tools can be changed by calling 'update' method. * messager: When show a message window, the user can define the window position by applying 'style' property. * window: Prevent script on window body from running twice. * window: Add 'hcenter','vcenter' and 'center' methods. * tree: Add 'onBeforeCheck' callback event. * tree: Extend the 'getChecked' method to allow users to get 'checked','unchecked' or 'indeterminate' nodes. * treegrid: Add 'update' method to update a specified node. * treegrid: Add 'insert' method to insert a new node. * treegrid: Add 'pop' method to remove a node and get the removed node data. Version 1.3 ----------- * Bug * combogrid: When set to 'remote' query mode, the 'queryParams' parameters can't be sent to server. fixed. * combotree: The tree nodes on drop-down panel can not be unchecked while calling 'clear' method. fixed. * datetimebox: Setting 'showSeconds' property to false cannot hide seconds info. fixed. * datagrid: Calling 'mergeCells' method can't auto resize the merged cell while header is hidden. fixed. * dialog: Set cache to false and load data via ajax, the content cannot be refreshed. fixed. * Improvement * The HTML5 'data-options' attribute is available for components to declare all custom options, including properties and events. * More detailed documentation is available. * panel: Prevent script on panel body from running twice. * accordion: Add 'getPanelIndex' method. * accordion: The tools can be added on panel header. * datetimebox: Add 'timeSeparator' option that allows users to define the time separator. * pagination: Add 'refresh' and 'select' methods. * datagrid: Auto resize the column width to fit the contents when the column width is not defined. * datagrid: Double click on the right border of columns to auto resize the columns to the contents in the columns. * datagrid: Add 'autoSizeColumn' method that allows users to adjust the column width to fit the contents. * datagrid: Add 'getChecked' method to get all rows where the checkbox has been checked. * datagrid: Add 'selectOnCheck' and 'checkOnSelect' properties and some checking methods to enhance the row selections. * datagrid: Add 'pagePosition' property to allow users to display pager bar at either top,bottom or both places of the grid. * datagrid: The buffer view and virtual scroll view are supported to display large amounts of records without pagination. * tabs: Add 'disableTab' and 'enableTab' methods to allow users to disable or enable a tab panel. Version 1.2.6 ------------- * Bug * tabs: Call 'add' method with 'selected:false' option, the added tab panel is always selected. fixed. * treegrid: The 'onSelect' and 'onUnselect' events can't be triggered. fixed. * treegrid: Cannot display zero value field. fixed. * Improvement * propertygrid: Add 'expandGroup' and 'collapseGroup' methods. * layout: Allow users to create collapsed layout panels by assigning 'collapsed' property to true. * layout: Add 'add' and 'remove' methods that allow users to dynamically add or remove region panel. * layout: Additional tool icons can be added on region panel header. * calendar: Add 'firstDay' option that allow users to set first day of week. Sunday is 0, Monday is 1, ... * tree: Add 'lines' option, true to display tree lines. * tree: Add 'loadFilter' option that allow users to change data format before loading into the tree. * tree: Add 'loader' option that allow users to define how to load data from remote server. * treegrid: Add 'onClickCell' and 'onDblClickCell' callback function options. * datagrid: Add 'autoRowHeight' property that allow users to determine if set the row height based on the contents of that row. * datagrid: Improve performance to load large data set. * datagrid: Add 'loader' option that allow users to define how to load data from remote server. * treegrid: Add 'loader' option that allow users to define how to load data from remote server. * combobox: Add 'onBeforeLoad' callback event function. * combobox: Add 'loader' option that allow users to define how to load data from remote server. * Add support for other loading mode such as dwr,xml,etc. * New Plugins * slider: Allows the user to choose a numeric value from a finite range. Version 1.2.5 ------------- * Bug * tabs: When add a new tab panel with href property, the content page is loaded twice. fixed. * form: Failed to call 'load' method to load form input with complex name. fixed. * draggable: End drag in ie9, the cursor cannot be restored. fixed. * Improvement * panel: The tools can be defined via html markup. * tabs: Call 'close' method to close specified tab panel, users can pass tab title or index of tab panel. Other methods such 'select','getTab' and 'exists' are similar to 'close' method. * tabs: Add 'getTabIndex' method. * tabs: Users can define mini tools on tabs. * tree: The mouse must move a specified distance to begin drag and drop operation. * resizable: Add 'options','enable' and 'disable' methods. * numberbox: Allow users to change number format. * datagrid: The subgrid is supported now. * searchbox: Add 'selectName' method to select searching type name. Version 1.2.4 ------------- * Bug * menu: The menu position is wrong when scroll bar appears. fixed. * accordion: Cannot display the default selected panel in jQuery 1.6.2. fixed. * tabs: Cannot display the default selected tab panel in jQuery 1.6.2. fixed. * Improvement * menu: Allow users to disable or enable menu item. * combo: Add 'delay' property to set the delay time to do searching from the last key input event. * treegrid: The 'getEditors' and 'getEditor' methods are supported now. * treegrid: The 'loadFilter' option is supported now. * messager: Add 'progress' method to display a message box with a progress bar. * panel: Add 'extractor' option to allow users to extract panel content from ajax response. * New Plugins * searchbox: Allow users to type words into box and do searching operation. * progressbar: To display the progress of a task. Version 1.2.3 ------------- * Bug * window: Cannot resize the window with iframe content. fixed. * tree: The node will be removed when dragging to its child. fixed. * combogrid: The onChange event fires multiple times. fixed. * accordion: Cannot add batch new panels when animate property is set to true. fixed. * Improvement * treegrid: The footer row and row styler features are supported now. * treegrid: Add 'getLevel','reloadFooter','getFooterRows' methods. * treegrid: Support root nodes pagination and editable features. * datagrid: Add 'getFooterRows','reloadFooter','insertRow' methods and improve editing performance. * datagrid: Add 'loadFilter' option that allow users to change original source data to standard data format. * draggable: Add 'onBeforeDrag' callback event function. * validatebox: Add 'remote' validation type. * combobox: Add 'method' option. * New Plugins * propertygrid: Allow users to edit property value in datagrid. Version 1.2.2 ------------- * Bug * datagrid: Apply fitColumns cannot work fine while set checkbox column. fixed. * datagrid: The validateRow method cannot return boolean type value. fixed. * numberbox: Cannot fix value in chrome when min or max property isn't defined. fixed. * Improvement * menu: Add some crud methods. * combo: Add hasDownArrow property to determine whether to display the down arrow button. * tree: Supports inline editing. * calendar: Add some useful methods such as 'resize', 'moveTo' etc. * timespinner: Add some useful methods. * datebox: Refactoring based on combo and calendar plugin now. * datagrid: Allow users to change row style in some conditions. * datagrid: Users can use the footer row to display summary information. * New Plugins * datetimebox: Combines datebox with timespinner component. Version 1.2.1 ------------- * Bug * easyloader: Some dependencies cannot be loaded by their order. fixed. * tree: The checkbox is setted incorrectly when removing a node. fixed. * dialog: The dialog layout incorrectly when 'closed' property is setted to true. fixed. * Improvement * parser: Add onComplete callback function that can indicate whether the parse action is complete. * menu: Add onClick callback function and some other methods. * tree: Add some useful methods. * tree: Drag and Drop feature is supported now. * tree: Add onContextMenu callback function. * tabs: Add onContextMenu callback function. * tabs: Add 'tools' property that can create buttons on right bar. * datagrid: Add onHeaderContextMenu and onRowContextMenu callback functions. * datagrid: Custom view is supported. * treegrid: Add onContextMenu callback function and append,remove methods. Version 1.2 ------------- * Improvement * tree: Add cascadeCheck,onlyLeafCheck properties and select event. * combobox: Enable multiple selection. * combotree: Enable multiple selection. * tabs: Remember the trace of selection, when current tab panel is closed, the previous selected tab will be selected. * datagrid: Extend from panel, so many properties defined in panel can be used for datagrid. * New Plugins * treegrid: Represent tabular data in hierarchical view, combines tree view and datagrid. * combo: The basic component that allow user to extend their combo component such as combobox,combotree,etc. * combogrid: Combines combobox with drop-down datagrid component. * spinner: The basic plugin to create numberspinner,timespinner,etc. * numberspinner: The numberbox that allow user to change value by clicking up and down spin buttons. * timespinner: The time selector that allow user to quickly inc/dec a time. Version 1.1.2 ------------- * Bug * messager: When call show method in layout, the message window will be blocked. fixed. * Improvement * datagrid: Add validateRow method, remember the current editing row status when do editing action. * datagrid: Add the ability to create merged cells. * form: Add callback functions when loading data. * panel,window,dialog: Add maximize,minimize,restore,collapse,expand methods. * panel,tabs,accordion: The lazy loading feature is supported. * tabs: Add getSelected,update,getTab methods. * accordion: Add crud methods. * linkbutton: Accept an id option to set the id attribute. * tree: Enhance tree node operation. Version 1.1.1 ------------- * Bug * form: Cannot clear the value of combobox and combotree component. fixed. * Improvement * tree: Add some useful methods such as 'getRoot','getChildren','update',etc. * datagrid: Add editable feature, improve performance while loading data. * datebox: Add destroy method. * combobox: Add destroy and clear method. * combotree: Add destroy and clear method. Version 1.1 ------------- * Bug * messager: When call show method with timeout property setted, an error occurs while clicking the close button. fixed. * combobox: The editable property of combobox plugin is invalid. fixed. * window: The proxy box will not be removed when dragging or resizing exceed browser border in ie. fixed. * Improvement * menu: The menu item can use markup to display a different page. * tree: The tree node can use markup to act as a tree menu. * pagination: Add some event on refresh button and page list. * datagrid: Add a 'param' parameter for reload method, with which users can pass query parameter when reload data. * numberbox: Add required validation support, the usage is same as validatebox plugin. * combobox: Add required validation support. * combotree: Add required validation support. * layout: Add some method that can get a region panel and attach event handlers. * New Plugins * droppable: A droppable plugin that supports drag drop operation. * calendar: A calendar plugin that can either be embedded within a page or popup. * datebox: Combines a textbox with a calendar that let users to select date. * easyloader: A JavaScript loader that allows you to load plugin and their dependencies into your page. Version 1.0.5 * Bug * panel: The fit property of panel performs incorrectly. fixed. * Improvement * menu: Add a href attribute for menu item, with which user can display a different page in the current browser window. * form: Add a validate method to do validation for validatebox component. * dialog: The dialog can read collapsible,minimizable,maximizable and resizable attribute from markup. * New Plugins * validatebox: A validation plugin that checks to make sure the user's input value is valid. Version 1.0.4 ------------- * Bug * panel: When panel is invisible, it is abnormal when resized. fixed. * panel: Memory leak in method 'destroy'. fixed. * messager: Memory leak when messager box is closed. fixed. * dialog: No onLoad event occurs when loading remote data. fixed. * Improvement * panel: Add method 'setTitle'. * window: Add method 'setTitle'. * dialog: Add method 'setTitle'. * combotree: Add method 'getValue'. * combobox: Add method 'getValue'. * form: The 'load' method can load data and fill combobox and combotree field correctly. Version 1.0.3 ------------- * Bug * menu: When menu is show in a DIV container, it will be cropped. fixed. * layout: If you collpase a region panel and then expand it immediately, the region panel will not show normally. fixed. * accordion: If no panel selected then the first one will become selected and the first panel's body height will not set correctly. fixed. * Improvement * tree: Add some methods to support CRUD operation. * datagrid: Toolbar can accept a new property named 'disabled' to disable the specified tool button. * New Plugins * combobox: Combines a textbox with a list of options that users are able to choose from. * combotree: Combines combobox with drop-down tree component. * numberbox: Make input element can only enter number char. * dialog: rewrite the dialog plugin, dialog can contains toolbar and buttons. ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/_content.html ================================================ AJAX Content

        Here is the content loaded via AJAX.

        • easyui is a collection of user-interface plugin based on jQuery.
        • easyui provides essential functionality for building modern, interactive, javascript applications.
        • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
        • complete framework for HTML5 web page.
        • easyui save your time and scales while developing your products.
        • easyui is very easy but powerful.
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/actions.html ================================================ Accordion Actions - jQuery EasyUI Demo

        Accordion Actions

        Click the buttons below to add or remove accordion items.

        Accordion for jQuery

        Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/ajax.html ================================================ Loading Accordion Content with AJAX - jQuery EasyUI Demo

        Loading Accordion Content with AJAX

        Click AJAX panel header to load content via AJAX.

        Accordion for jQuery

        Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.

        The accordion allows you to provide multiple panels and display one or more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/basic.html ================================================ Basic Accordion - jQuery EasyUI Demo

        Basic Accordion

        Click on panel header to show its content.

        Accordion for jQuery

        Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.

        The accordion allows you to provide multiple panels and display one or more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.

        • Foods
          • Fruits
            • apple
            • orange
          • Vegetables
            • tomato
            • carrot
            • cabbage
            • potato
            • lettuce
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/datagrid_data1.json ================================================ {"total":28,"rows":[ {"productid":"FI-SW-01","productname":"Koi","unitcost":10.00,"status":"P","listprice":36.50,"attr1":"Large","itemid":"EST-1"}, {"productid":"K9-DL-01","productname":"Dalmation","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Spotted Adult Female","itemid":"EST-10"}, {"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":38.50,"attr1":"Venomless","itemid":"EST-11"}, {"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":26.50,"attr1":"Rattleless","itemid":"EST-12"}, {"productid":"RP-LI-02","productname":"Iguana","unitcost":12.00,"status":"P","listprice":35.50,"attr1":"Green Adult","itemid":"EST-13"}, {"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":158.50,"attr1":"Tailless","itemid":"EST-14"}, {"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":83.50,"attr1":"With tail","itemid":"EST-15"}, {"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":23.50,"attr1":"Adult Female","itemid":"EST-16"}, {"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":89.50,"attr1":"Adult Male","itemid":"EST-17"}, {"productid":"AV-CB-01","productname":"Amazon Parrot","unitcost":92.00,"status":"P","listprice":63.50,"attr1":"Adult Male","itemid":"EST-18"} ]} ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/expandable.html ================================================ Keep Expandable Panel in Accordion - jQuery EasyUI Demo

        Keep Expandable Panel in Accordion

        Keep a expandable panel and prevent it from collapsing.

        Accordion for jQuery

        Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.

        Content1

        Content2

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/fluid.html ================================================ Fluid Accordion - jQuery EasyUI Demo

        Fluid Accordion

        This example shows how to set the width of accordion to a percentage of its parent container.

        width: 100%

        width: 50%

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/multiple.html ================================================ Multiple Accordion Panels - jQuery EasyUI Demo

        Multiple Accordion Panels

        Enable 'multiple' mode to expand multiple panels at one time.

        A programming language is a formal language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms precisely.

        Java (Indonesian: Jawa) is an island of Indonesia. With a population of 135 million (excluding the 3.6 million on the island of Madura which is administered as part of the provinces of Java), Java is the world's most populous island, and one of the most densely populated places in the world.

        C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.

        A dynamic, reflective, general-purpose object-oriented programming language.

        Fortran (previously FORTRAN) is a general-purpose, imperative programming language that is especially suited to numeric computation and scientific computing.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/tools.html ================================================ Accordion Tools - jQuery EasyUI Demo

        Accordion Tools

        Click the tools on top right of panel to perform actions.

        Accordion for jQuery

        Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.

        The accordion allows you to provide multiple panels and display one ore more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.

        Item ID Product ID List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/calendar/basic.html ================================================ Basic Calendar - jQuery EasyUI Demo

        Basic Calendar

        Click to select date.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/calendar/custom.html ================================================ Custom Calendar - jQuery EasyUI Demo

        Custom Calendar

        This example shows how to custom the calendar date by using 'formatter' function.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/calendar/disabledate.html ================================================ Disable Calendar Date - jQuery EasyUI Demo

        Disable Calendar Date

        This example shows how to disable specified dates, only allows the user to select Mondays.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/calendar/firstday.html ================================================ First Day of Week - jQuery EasyUI Demo

        First Day of Week

        Choose the first day of the week.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/calendar/fluid.html ================================================ Fluid Calendar - jQuery EasyUI Demo

        Fluid Calendar

        This example shows how to set the width of calendar to a percentage of its parent container.

        width: 50%, height: 250px

        width: 30%, height: 40%

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combo/animation.html ================================================ Combo Animation - jQuery EasyUI Demo

        Combo Animation

        Change the animation type when open & close the drop-down panel.

        Animation Type:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combo/basic.html ================================================ Basic Combo - jQuery EasyUI Demo

        Basic Combo

        Click the right arrow button to show drop down panel that can be filled with any content.

        Select a language
        Java
        C#
        Ruby
        Basic
        Fortran
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/actions.html ================================================ ComboBox Actions - jQuery EasyUI Demo

        ComboBox

        Click the buttons below to perform actions.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/basic.html ================================================ Basic ComboBox - jQuery EasyUI Demo

        Basic ComboBox

        Type in ComboBox to try auto complete.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/combobox_data1.json ================================================ [{ "id":1, "text":"Java", "desc":"Write once, run anywhere" },{ "id":2, "text":"C#", "desc":"One of the programming languages designed for the Common Language Infrastructure" },{ "id":3, "text":"Ruby", "selected":true, "desc":"A dynamic, reflective, general-purpose object-oriented programming language" },{ "id":4, "text":"Perl", "desc":"A high-level, general-purpose, interpreted, dynamic programming language" },{ "id":5, "text":"Basic", "desc":"A family of general-purpose, high-level programming languages" }] ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/combobox_data2.json ================================================ [{ "value":"f20", "text":"Firefox 2.0 or higher", "group":"Firefox" },{ "value":"f15", "text":"Firefox 1.5.x", "group":"Firefox" },{ "value":"f10", "text":"Firefox 1.0.x", "group":"Firefox" },{ "value":"ie7", "text":"Microsoft Internet Explorer 7.0 or higher", "group":"Microsoft Internet Explorer" },{ "value":"ie6", "text":"Microsoft Internet Explorer 6.x", "group":"Microsoft Internet Explorer" },{ "value":"ie5", "text":"Microsoft Internet Explorer 5.x", "group":"Microsoft Internet Explorer" },{ "value":"ie4", "text":"Microsoft Internet Explorer 4.x", "group":"Microsoft Internet Explorer" },{ "value":"op9", "text":"Opera 9.0 or higher", "group":"Opera" },{ "value":"op8", "text":"Opera 8.x", "group":"Opera" },{ "value":"op7", "text":"Opera 7.x", "group":"Opera" },{ "value":"Safari", "text":"Safari" },{ "value":"Other", "text":"Other" }] ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/customformat.html ================================================ Custom Format in ComboBox - jQuery EasyUI Demo

        Custom Format in ComboBox

        This sample shows how to custom the format of list item.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/dynamicdata.html ================================================ Load Dynamic ComboBox Data - jQuery EasyUI Demo

        Load Dynamic ComboBox Data

        Click the button below to load data.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/fluid.html ================================================ Fluid ComboBox - jQuery EasyUI Demo

        Fluid ComboBox

        This example shows how to set the width of combobox to a percentage of its parent container.

        width: 50%

        width: 30%

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/group.html ================================================ Group ComboBox - jQuery EasyUI Demo

        Group ComboBox

        This example shows how to display combobox items in groups.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/icons.html ================================================ ComboBox with Extra Icons- jQuery EasyUI Demo

        ComboBox with Extra Icons

        The user can attach extra icons to the ComboBox.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/multiline.html ================================================ Multiline ComboBox - jQuery EasyUI Demo

        Multiline ComboBox

        This example shows how to create a multiline ComboBox.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/multiple.html ================================================ Multiple Select - jQuery EasyUI Demo

        Load Dynamic ComboBox Data

        Drop down the panel and select multiple items.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/navigation.html ================================================ Navigate ComboBox - jQuery EasyUI Demo

        Navigate ComboBox

        Navigate through combobox items width keyboard to select an item.

        SelectOnNavigation
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/remotedata.html ================================================ Binding to Remote Data - jQuery EasyUI Demo

        Binding to Remote Data

        The ComboBox is bound to a remote data.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/remotejsonp.html ================================================ Remote JSONP - jQuery EasyUI Demo

        Remote JSONP

        This sample shows how to use JSONP to retrieve data from a remote site.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/actions.html ================================================ ComboGrid Actions - jQuery EasyUI Demo

        ComboGrid Actions

        Click the buttons below to perform actions.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/basic.html ================================================ Basic ComboGrid - jQuery EasyUI Demo

        Basic ComboGrid

        Click the right arrow button to show the DataGrid.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/datagrid_data1.json ================================================ {"total":28,"rows":[ {"productid":"FI-SW-01","productname":"Koi","unitcost":10.00,"status":"P","listprice":36.50,"attr1":"Large","itemid":"EST-1"}, {"productid":"K9-DL-01","productname":"Dalmation","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Spotted Adult Female","itemid":"EST-10"}, {"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":38.50,"attr1":"Venomless","itemid":"EST-11"}, {"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":26.50,"attr1":"Rattleless","itemid":"EST-12"}, {"selected":true,"productid":"RP-LI-02","productname":"Iguana","unitcost":12.00,"status":"P","listprice":35.50,"attr1":"Green Adult","itemid":"EST-13"}, {"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":158.50,"attr1":"Tailless","itemid":"EST-14"}, {"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":83.50,"attr1":"With tail","itemid":"EST-15"}, {"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":23.50,"attr1":"Adult Female","itemid":"EST-16"}, {"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":89.50,"attr1":"Adult Male","itemid":"EST-17"}, {"productid":"AV-CB-01","productname":"Amazon Parrot","unitcost":92.00,"status":"P","listprice":63.50,"attr1":"Adult Male","itemid":"EST-18"} ]} ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/fluid.html ================================================ Fluid ComboGrid - jQuery EasyUI Demo

        Fluid ComboGrid

        This example shows how to set the width of ComboGrid to a percentage of its parent container.

        width: 50%

        width: 30%

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/initvalue.html ================================================ Initialize Value for ComboGrid - jQuery EasyUI Demo

        Initialize Value for ComboGrid

        Initialize value when ComboGrid is created.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/multiple.html ================================================ Multiple ComboGrid - jQuery EasyUI Demo

        Multiple ComboGrid

        Click the right arrow button to show the DataGrid and select items.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/navigation.html ================================================ Navigate ComboGrid - jQuery EasyUI Demo

        Navigate ComboGrid

        Navigate through grid items with keyboard to select an item.

        SelectOnNavigation
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/actions.html ================================================ ComboTree Actions - jQuery EasyUI Demo

        ComboTree Actions

        Click the buttons below to perform actions

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/basic.html ================================================ Basic ComboTree - jQuery EasyUI Demo

        Basic ComboTree

        Click the right arrow button to show the tree panel.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/fluid.html ================================================ Fluid ComboTree - jQuery EasyUI Demo

        Fluid ComboTree

        This example shows how to set the width of ComboTree to a percentage of its parent container.

        width: 50%

        width: 30%, height: 26px

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/initvalue.html ================================================ Initialize Value for ComboTree - jQuery EasyUI Demo

        Initialize Value for ComboTree

        Initialize Value when ComboTree is created.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/multiple.html ================================================ Multiple ComboTree - jQuery EasyUI Demo

        Multiple ComboTree

        Click the right arrow button to show the tree panel and select multiple nodes.

        Cascade Check:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/tree_data1.json ================================================ [{ "id":1, "text":"My Documents", "children":[{ "id":11, "text":"Photos", "state":"closed", "children":[{ "id":111, "text":"Friend" },{ "id":112, "text":"Wife" },{ "id":113, "text":"Company" }] },{ "id":12, "text":"Program Files", "children":[{ "id":121, "text":"Intel" },{ "id":122, "text":"Java", "attributes":{ "p1":"Custom Attribute1", "p2":"Custom Attribute2" } },{ "id":123, "text":"Microsoft Office" },{ "id":124, "text":"Games", "checked":true }] },{ "id":13, "text":"index.html" },{ "id":14, "text":"about.html" },{ "id":15, "text":"welcome.html" }] }] ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/aligncolumns.html ================================================ Aligning Columns in DataGrid - jQuery EasyUI Demo

        Aligning Columns in DataGrid

        Use align and halign properties to set the alignment of the columns and their header.

        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/basic.html ================================================ Basic DataGrid - jQuery EasyUI Demo

        Basic DataGrid

        The DataGrid is created from markup, no JavaScript code needed.

        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/cacheeditor.html ================================================ Cache Editor for DataGrid - jQuery EasyUI Demo

        Cache Editor for DataGrid

        This example shows how to cache the editors for datagrid to improve the editing speed.

        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/cellediting.html ================================================ Cell Editing in DataGrid - jQuery EasyUI Demo

        Cell Editing in DataGrid

        Click a cell to start editing.

        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/cellstyle.html ================================================ DataGrid Cell Style - jQuery EasyUI Demo

        DataGrid Cell Style

        The cells which listprice value is less than 30 are highlighted.

        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/checkbox.html ================================================ CheckBox Selection on DataGrid - jQuery EasyUI Demo

        CheckBox Selection on DataGrid

        Click the checkbox on header to select or unselect all selections.

        Item ID Product List Price Unit Cost Attribute Status
        Selection Mode:
        SelectOnCheck:
        CheckOnSelect:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/clientpagination.html ================================================ Client Side Pagination in DataGrid - jQuery EasyUI Demo

        Client Side Pagination in DataGrid

        This sample shows how to implement client side pagination in DataGrid.

        Inv No Date Name Amount Price Cost Note
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/columngroup.html ================================================ Column Group - jQuery EasyUI Demo

        Column Group

        The header cells can be merged. Useful to group columns under a category.

        Item ID Product Item Details
        List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/complextoolbar.html ================================================ DataGrid Complex Toolbar - jQuery EasyUI Demo

        DataGrid Complex Toolbar

        The DataGrid toolbar can be defined from a <div> markup, so you can define the layout of toolbar easily.

        Item ID Product List Price Unit Cost Attribute Status
        Date From: To: Language: Search
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/contextmenu.html ================================================ Context Menu on DataGrid - jQuery EasyUI Demo

        Context Menu on DataGrid

        Right click on the header of DataGrid to display context menu.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/custompager.html ================================================ Custom DataGrid Pager - jQuery EasyUI Demo

        Custom DataGrid Pager

        You can append some buttons to the standard datagrid pager bar.

        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/datagrid_data1.json ================================================ {"total":28,"rows":[ {"productid":"FI-SW-01","productname":"Koi","unitcost":10.00,"status":"P","listprice":36.50,"attr1":"Large","itemid":"EST-1"}, {"productid":"K9-DL-01","productname":"Dalmation","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Spotted Adult Female","itemid":"EST-10"}, {"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":38.50,"attr1":"Venomless","itemid":"EST-11"}, {"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":26.50,"attr1":"Rattleless","itemid":"EST-12"}, {"productid":"RP-LI-02","productname":"Iguana","unitcost":12.00,"status":"P","listprice":35.50,"attr1":"Green Adult","itemid":"EST-13"}, {"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":158.50,"attr1":"Tailless","itemid":"EST-14"}, {"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":83.50,"attr1":"With tail","itemid":"EST-15"}, {"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":23.50,"attr1":"Adult Female","itemid":"EST-16"}, {"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":89.50,"attr1":"Adult Male","itemid":"EST-17"}, {"productid":"AV-CB-01","productname":"Amazon Parrot","unitcost":92.00,"status":"P","listprice":63.50,"attr1":"Adult Male","itemid":"EST-18"} ]} ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/datagrid_data2.json ================================================ {"total":28,"rows":[ {"productid":"FI-SW-01","unitcost":10.00,"status":"P","listprice":36.50,"attr1":"Large","itemid":"EST-1"}, {"productid":"K9-DL-01","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Spotted Adult Female","itemid":"EST-10"}, {"productid":"RP-SN-01","unitcost":12.00,"status":"P","listprice":28.50,"attr1":"Venomless","itemid":"EST-11"}, {"productid":"RP-SN-01","unitcost":12.00,"status":"P","listprice":26.50,"attr1":"Rattleless","itemid":"EST-12"}, {"productid":"RP-LI-02","unitcost":12.00,"status":"P","listprice":35.50,"attr1":"Green Adult","itemid":"EST-13"}, {"productid":"FL-DSH-01","unitcost":12.00,"status":"P","listprice":158.50,"attr1":"Tailless","itemid":"EST-14"}, {"productid":"FL-DSH-01","unitcost":12.00,"status":"P","listprice":83.50,"attr1":"With tail","itemid":"EST-15"}, {"productid":"FL-DLH-02","unitcost":12.00,"status":"P","listprice":63.50,"attr1":"Adult Female","itemid":"EST-16"}, {"productid":"FL-DLH-02","unitcost":12.00,"status":"P","listprice":89.50,"attr1":"Adult Male","itemid":"EST-17"}, {"productid":"AV-CB-01","unitcost":92.00,"status":"P","listprice":63.50,"attr1":"Adult Male","itemid":"EST-18"} ],"footer":[ {"unitcost":19.80,"listprice":60.40,"productid":"Average:"}, {"unitcost":198.00,"listprice":604.00,"productid":"Total:"} ]} ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/fluid.html ================================================ Fluid DataGrid - jQuery EasyUI Demo

        Fluid DataGrid

        This example shows how to assign percentage width to a column in DataGrid.

        Item ID(15%) Product(15%) List Price(15%) Unit Cost(15%) Attribute(25%) Status(15%)
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/footer.html ================================================ Footer Rows in DataGrid - jQuery EasyUI Demo

        Footer Rows in DataGrid

        The summary informations can be displayed in footer rows.

        Item ID Product ID List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/formatcolumns.html ================================================ Format DataGrid Columns - jQuery EasyUI Demo

        Format DataGrid Columns

        The list price value will show red color when less than 30.

        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/frozencolumns.html ================================================ Frozen Columns in DataGrid - jQuery EasyUI Demo

        Frozen Columns in DataGrid

        You can freeze some columns that can't scroll out of view.

        Item ID Product
        List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/frozenrows.html ================================================ Frozen Rows in DataGrid - jQuery EasyUI Demo

        Frozen Rows in DataGrid

        This sample shows how to freeze some rows that will always be displayed at the top when the datagrid is scrolled down.

        Item ID Product
        List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/mergecells.html ================================================ Merge Cells for DataGrid - jQuery EasyUI Demo

        Merge Cells for DataGrid

        Cells in DataGrid body can be merged.

        Product Item ID List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/multisorting.html ================================================ Multiple Sorting - jQuery EasyUI Demo

        Multiple Sorting

        Set 'multiSort' property to true to enable multiple column sorting.

        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/products.json ================================================ [ {"productid":"FI-SW-01","productname":"Koi"}, {"productid":"K9-DL-01","productname":"Dalmation"}, {"productid":"RP-SN-01","productname":"Rattlesnake"}, {"productid":"RP-LI-02","productname":"Iguana"}, {"productid":"FL-DSH-01","productname":"Manx"}, {"productid":"FL-DLH-02","productname":"Persian"}, {"productid":"AV-CB-01","productname":"Amazon Parrot"} ] ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/rowborder.html ================================================ Row Border in DataGrid - jQuery EasyUI Demo

        Row Border in DataGrid

        This sample shows how to change the row border style of datagrid.

        Border: Striped:
        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/rowediting.html ================================================ Row Editing in DataGrid - jQuery EasyUI Demo

        Row Editing in DataGrid

        Click the row to start editing.

        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/rowstyle.html ================================================ DataGrid Row Style - jQuery EasyUI Demo

        DataGrid Row Style

        The rows which listprice value is less than 30 are highlighted.

        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/selection.html ================================================ DataGrid Selection - jQuery EasyUI Demo

        DataGrid Selection

        Choose a selection mode and select one or more rows.

        Item ID Product List Price Unit Cost Attribute Status
        Selection Mode:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/simpletoolbar.html ================================================ DataGrid with Toolbar - jQuery EasyUI Demo

        DataGrid with Toolbar

        Put buttons on top toolbar of DataGrid.

        Item ID Product List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/transform.html ================================================ Transform DataGrid from Table - jQuery EasyUI Demo

        Transform DataGrid from Table

        Transform DataGrid from an existing, unformatted html table.

        Item ID Product List Price Attribute
        EST-1FI-SW-0136.50Large
        EST-10K9-DL-0118.50Spotted Adult Female
        EST-11RP-SN-0128.50Venomless
        EST-12RP-SN-0126.50Rattleless
        EST-13RP-LI-0235.50Green Adult
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/basic.html ================================================ Basic DateBox - jQuery EasyUI Demo

        Basic DateBox

        Click the calendar image on the right side.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/buttons.html ================================================ DateBox Buttons - jQuery EasyUI Demo

        DateBox Buttons

        This example shows how to customize the datebox buttons underneath the calendar.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/dateformat.html ================================================ Date Format - jQuery EasyUI Demo

        Date Format

        Different date formats are applied to different DateBox components.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/events.html ================================================ DateBox Events - jQuery EasyUI Demo

        DateBox Events

        Click the calendar image on the right side.

        Selected Date:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/fluid.html ================================================ Fluid DateBox - jQuery EasyUI Demo

        Fluid DateBox

        This example shows how to set the width of DateBox to a percentage of its parent container.

        width: 50%

        width: 30%

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/restrict.html ================================================ Restrict Date Range in DateBox - jQuery EasyUI Demo

        Restrict Date Range in DateBox

        This example shows how to restrict the user to select only ten days from now.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/sharedcalendar.html ================================================ Shared Calendar in DateBox - jQuery EasyUI Demo

        Shared Calendar in DateBox

        Multiple datebox components can share a calendar and use it to pick dates.

        Start Date: End Date:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/validate.html ================================================ Validate DateBox - jQuery EasyUI Demo

        Validate DateBox

        When the selected date is greater than specified date. The field validator will raise an error.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimebox/basic.html ================================================ Basic DateTimeBox - jQuery EasyUI Demo

        Basic DateTimeBox

        Click the calendar image on the right side.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimebox/fluid.html ================================================ Fluid DateTimeBox - jQuery EasyUI Demo

        Fluid DateTimeBox

        This example shows how to set the width of DateTimeBox to a percentage of its parent container.

        width: 50%

        width: 30%

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimebox/initvalue.html ================================================ Initialize Value for DateTime - jQuery EasyUI Demo

        Initialize Value for DateTime

        The value is initialized when DateTimeBox has been created.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimebox/showseconds.html ================================================ Display Seconds - jQuery EasyUI Demo

        Display Seconds

        The user can decide to display seconds part or not.

        Show Seconds:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimespinner/basic.html ================================================ Basic DateTimeSpinner - jQuery EasyUI Demo

        Basic DateTimeSpinner

        Click spin button to adjust date and time.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimespinner/clearicon.html ================================================ DateTimeSpinner with Clear Icon - jQuery EasyUI Demo

        DateTimeSpinner with Clear Icon

        A clear icon can be attached to the datetimespinner. Click it to clear the entered value.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimespinner/fluid.html ================================================ Fluid DateTimeSpinner - jQuery EasyUI Demo

        Fluid DateTimeSpinner

        The width of datetimespinner is set in percentages.

        width: 50%

        width: 30%

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimespinner/format.html ================================================ Format DateTimeSpinner - jQuery EasyUI Demo

        Format DateTimeSpinner

        The DataTimeSpinner value can be formatted by specifying the 'formatter' and 'parser' functions.

        mm/dd/yyyy hh:mm

        mm/dd/yyyy

        yyyy-mm

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/demo.css ================================================ *{ font-size:12px; } body { font-family:verdana,helvetica,arial,sans-serif; padding:20px; font-size:12px; margin:0; } h2 { font-size:18px; font-weight:bold; margin:0; margin-bottom:15px; } .demo-info{ padding:0 0 12px 0; } .demo-tip{ display:none; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/dialog/basic.html ================================================ Basic Dialog - jQuery EasyUI Demo

        Basic Dialog

        Click below button to open or close dialog.

        The dialog content.
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/dialog/complextoolbar.html ================================================ Complex Toolbar on Dialog - jQuery EasyUI Demo

        Complex Toolbar on Dialog

        This sample shows how to create complex toolbar on dialog.

        The dialog content.
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/dialog/fluid.html ================================================ Fluid Dialog - jQuery EasyUI Demo

        Fluid Dialog

        This example shows how to set the width of Dialog to a percentage of its parent container.

        width: 80%; height: 200px

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/dialog/toolbarbuttons.html ================================================ Toolbar and Buttons - jQuery EasyUI Demo

        Toolbar and Buttons

        The toolbar and buttons can be added to dialog.

        The dialog content.
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/draggable/basic.html ================================================ Basic Draggable - jQuery EasyUI Demo

        Basic Draggable

        Move the boxes below by clicking on it with mouse.

        Title
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/draggable/constrain.html ================================================ Constrain Draggable - jQuery EasyUI Demo

        Constrain Draggable

        The draggable object can only be moved within its parent container.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/draggable/snap.html ================================================ Snap Draggable - jQuery EasyUI Demo

        Snap Draggable

        This sample shows how to snap a draggable object to a 20x20 grid.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/droppable/accept.html ================================================ Accept a Drop - jQuery EasyUI Demo

        Accept a Drop

        Some draggable object can not be accepted.

        drag me!
        Drag 1
        Drag 2
        Drag 3
        drop here!
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/droppable/basic.html ================================================ Basic Droppable - jQuery EasyUI Demo

        Basic Droppable

        Drag the boxed on left to the target area on right.

        Source
        Apple
        Peach
        Orange
        Target
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/droppable/sort.html ================================================ Change Items Order - jQuery EasyUI Demo

        Change Items Order

        Drag the list items to change their order.

        • Drag 1
        • Drag 2
        • Drag 3
        • Drag 4
        • Drag 5
        • Drag 6
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/easyloader/basic.html ================================================ Basic EasyLoader - jQuery EasyUI Demo

        Basic EasyLoader

        Click the buttons below to load components dynamically.
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/filebox/basic.html ================================================ Basic FileBox - jQuery EasyUI Demo

        Basic FileBox

        The filebox component represents a file field of the forms.

        Name:
        File1:
        File2:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/filebox/buttonalign.html ================================================ Button Align on FileBox - jQuery EasyUI Demo

        Button Align on FileBox

        Change the button align to the left or right of filebox.

        Select Button Align:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/filebox/fluid.html ================================================ Fluid FileBox - jQuery EasyUI Demo

        Fluid FileBox

        This example shows how to set the width of FileBox to a percentage of its parent container.

        width: 50%

        width: 30%

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/form/basic.html ================================================ Basic Form - jQuery EasyUI Demo

        Basic Form

        Fill the form and submit it.

        Name:
        Email:
        Subject:
        Message:
        Language:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/form/form_data1.json ================================================ { "name":"easyui", "email":"easyui@gmail.com", "subject":"Subject Title", "message":"Message Content", "language":"de" } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/form/load.html ================================================ Load Form Data - jQuery EasyUI Demo

        Load Form Data

        Click the buttons below to load form data.

        Name:
        Email:
        Subject:
        Message:
        Language:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/form/validateonsubmit.html ================================================ Validate Form on Submit - jQuery EasyUI Demo

        Validate Form on Submit

        The form does not perform validation before being submitted.

        Name:
        Email:
        Subject:
        Message:
        Language:
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/_content.html ================================================ AJAX Content

        jQuery EasyUI framework help you build your web page easily.

        • easyui is a collection of user-interface plugin based on jQuery.
        • easyui provides essential functionality for building modern, interactive, javascript applications.
        • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
        • complete framework for HTML5 web page.
        • easyui save your time and scales while developing your products.
        • easyui is very easy but powerful.
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/addremove.html ================================================ Add and Remove Layout - jQuery EasyUI Demo

        Add and Remove Layout

        Click the buttons below to add or remove region panel of layout.

        Select Region Panel: Add Remove
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/autoheight.html ================================================ Auto Height for Layout - jQuery EasyUI Demo

        Auto Height for Layout

        This example shows how to auto adjust layout height after dynamically adding items.

        Panel Content.

        Panel Content.

        Panel Content.

        Panel Content.

        Panel Content.

        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/basic.html ================================================ Basic Layout - jQuery EasyUI Demo

        Basic Layout

        The layout contains north,south,west,east and center regions.

        Item ID Product ID List Price Unit Cost Attribute Status
        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/complex.html ================================================ Complex Layout - jQuery EasyUI Demo

        Complex Layout

        This sample shows how to create a complex layout.

          content1
          content2
          content3
          Item ID Product ID List Price Unit Cost Attribute Status
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/datagrid_data1.json ================================================ {"total":28,"rows":[ {"productid":"FI-SW-01","productname":"Koi","unitcost":10.00,"status":"P","listprice":36.50,"attr1":"Large","itemid":"EST-1"}, {"productid":"K9-DL-01","productname":"Dalmation","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Spotted Adult Female","itemid":"EST-10"}, {"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":38.50,"attr1":"Venomless","itemid":"EST-11"}, {"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":26.50,"attr1":"Rattleless","itemid":"EST-12"}, {"productid":"RP-LI-02","productname":"Iguana","unitcost":12.00,"status":"P","listprice":35.50,"attr1":"Green Adult","itemid":"EST-13"}, {"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":158.50,"attr1":"Tailless","itemid":"EST-14"}, {"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":83.50,"attr1":"With tail","itemid":"EST-15"}, {"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":23.50,"attr1":"Adult Female","itemid":"EST-16"}, {"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":89.50,"attr1":"Adult Male","itemid":"EST-17"}, {"productid":"AV-CB-01","productname":"Amazon Parrot","unitcost":92.00,"status":"P","listprice":63.50,"attr1":"Adult Male","itemid":"EST-18"} ]} ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/fluid.html ================================================ Fluid Layout - jQuery EasyUI Demo

          Fluid Layout

          Percentage width of region panel in a layout.

          width: 30%

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/full.html ================================================ Full Layout - jQuery EasyUI Demo
          north region
          west content
          east region
          south region
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/nestedlayout.html ================================================ Nested Layout - jQuery EasyUI Demo

          Nested Layout

          The layout region panel contains another layout or other components.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/nocollapsible.html ================================================ No collapsible button in Layout - jQuery EasyUI Demo

          No collapsible button in Layout

          The layout region panel has no collapsible button.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/propertygrid_data1.json ================================================ {"total":7,"rows":[ {"name":"Name","value":"Bill Smith","group":"ID Settings","editor":"text"}, {"name":"Address","value":"","group":"ID Settings","editor":"text"}, {"name":"Age","value":"40","group":"ID Settings","editor":"numberbox"}, {"name":"Birthday","value":"01/02/2012","group":"ID Settings","editor":"datebox"}, {"name":"SSN","value":"123-456-7890","group":"ID Settings","editor":"text"}, {"name":"Email","value":"bill@gmail.com","group":"Marketing Settings","editor":{ "type":"validatebox", "options":{ "validType":"email" } }}, {"name":"FrequentBuyer","value":"false","group":"Marketing Settings","editor":{ "type":"checkbox", "options":{ "on":true, "off":false } }} ]} ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/tree_data1.json ================================================ [{ "id":1, "text":"My Documents", "children":[{ "id":11, "text":"Photos", "state":"closed", "children":[{ "id":111, "text":"Friend" },{ "id":112, "text":"Wife" },{ "id":113, "text":"Company" }] },{ "id":12, "text":"Program Files", "children":[{ "id":121, "text":"Intel" },{ "id":122, "text":"Java", "attributes":{ "p1":"Custom Attribute1", "p2":"Custom Attribute2" } },{ "id":123, "text":"Microsoft Office" },{ "id":124, "text":"Games", "checked":true }] },{ "id":13, "text":"index.html" },{ "id":14, "text":"about.html" },{ "id":15, "text":"welcome.html" }] }] ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/basic.html ================================================ Basic LinkButton - jQuery EasyUI Demo

          Basic LinkButton

          Buttons can be created from <a> or <button> elements.

          Basic Buttons

          Fixed Width Buttons

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/fluid.html ================================================ Fluid LinkButton - jQuery EasyUI Demo

          Fluid LinkButton

          This example shows how to set the width of LinkButton to a percentage of its parent container.

          width: 15%

          width: 20%

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/group.html ================================================ Button Group - jQuery EasyUI Demo

          Button Group

          In a button group only one button can be selected.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/iconalign.html ================================================ Icon Align on LinkButton - jQuery EasyUI Demo

          Icon Align on LinkButton

          Change the icon align to place icon on left, right, top or bottom of button.

          Select Icon Align:
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/plain.html ================================================ Plain LinkButton - jQuery EasyUI Demo

          Plain LinkButton

          The buttons with plain style have transparent background.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/size.html ================================================ LinkButton Size - jQuery EasyUI Demo

          LinkButton Size

          This sample shows how to display small buttons and large buttons.

          Small Buttons

          Large Buttons

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/style.html ================================================ Style LinkButton - jQuery EasyUI Demo

          Style LinkButton

          This example shows how to style a linkbutton.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/toggle.html ================================================ Toggle Button - jQuery EasyUI Demo

          Toggle Button

          Click the button below to switch its selected state.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menu/basic.html ================================================ Basic Menu - jQuery EasyUI Demo

          Basic Menu

          Right click on page to display menu.

          New
          Open
          Word
          Excel
          PowerPoint
          M1
          sub1
          sub2
          Sub
          sub21
          sub22
          sub23
          sub3
          Window Demos
          Window
          Dialog
          Save
          Print
          Exit
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menu/customitem.html ================================================ Custom Menu Item - jQuery EasyUI Demo

          Custom Menu Item

          Right click on page to display menu, move to the 'Open' item to display its custom sub content.

          New
          Open
          Save
          Print
          Exit
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menu/events.html ================================================ Menu Events - jQuery EasyUI Demo

          Menu Events

          Right click on page to display menu and click an item.

          New
          Save
          Print
          Exit
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menubutton/actions.html ================================================ MenuButton Actions - jQuery EasyUI Demo

          MenuButton Actions

          Click the buttons below to perform actions.

          Undo
          Redo
          Cut
          Copy
          Paste
          Toolbar
          Address
          Link
          Navigation Toolbar
          Bookmark Toolbar
          New Toolbar...
          Delete
          Select All
          Help
          Update
          About
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menubutton/alignment.html ================================================ Menu Alignment on MenuButton - jQuery EasyUI Demo

          Menu Alignment on MenuButton

          This example shows how to change the alignment of the top level menu.

          Change Alignment:
          Undo
          Redo
          Cut
          Copy
          Paste
          Toolbar
          Address
          Link
          Navigation Toolbar
          Bookmark Toolbar
          New Toolbar...
          Delete
          Select All
          Help
          Update
          About
          History
          Faq
          Our Team
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menubutton/basic.html ================================================ Basic MenuButton - jQuery EasyUI Demo

          Basic MenuButton

          Move mouse over the button to drop down menu.

          Undo
          Redo
          Cut
          Copy
          Paste
          Toolbar
          Address
          Link
          Navigation Toolbar
          Bookmark Toolbar
          New Toolbar...
          Delete
          Select All
          Help
          Update
          About
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/messager/alert.html ================================================ Alert Messager - jQuery EasyUI Demo

          Alert Messager

          Click on each button to display different alert message box.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/messager/basic.html ================================================ Basic Messager - jQuery EasyUI Demo

          Basic Messager

          Click on each button to see a distinct message box.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/messager/interactive.html ================================================ Interactive Messager - jQuery EasyUI Demo

          Interactive Messager

          Click on each button to display interactive message box.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/messager/position.html ================================================ Message Box Position - jQuery EasyUI Demo

          Message Box Position

          Click the buttons below to display message box on different position.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberbox/basic.html ================================================ Basic NumberBox - jQuery EasyUI Demo

          Basic NumberBox

          The NumberBox can only accept inputing numbers.

          List Price:

          Amount:

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberbox/fluid.html ================================================ Fluid NumberBox - jQuery EasyUI Demo

          Fluid NumberBox

          This example shows how to set the width of NumberBox to a percentage of its parent container.

          width: 100%

          width: 50%

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberbox/format.html ================================================ Format NumberBox - jQuery EasyUI Demo

          Format NumberBox

          Number formatting is the ability to control how a number is displayed.

          Number in the United States
          Number in France
          Currency:USD
          Currency:EUR
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberbox/range.html ================================================ Number Range - jQuery EasyUI Demo

          Number Range

          The value is constrained to a specified range.

          Amount:

          Weight:

          Age:

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberspinner/basic.html ================================================ Basic NumberSpinner - jQuery EasyUI Demo

          Basic NumberSpinner

          Click spinner button to change value.

          Value:
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberspinner/fluid.html ================================================ Fluid NumberSpinner - jQuery EasyUI Demo

          Fluid NumberSpinner

          This example shows how to set the width of NumberSpinner to a percentage of its parent container.

          width: 50%

          width: 30%

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberspinner/increment.html ================================================ Increment Number - jQuery EasyUI Demo

          Increment Number

          The sample shows how to set the increment step.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberspinner/range.html ================================================ Number Range - jQuery EasyUI Demo

          Number Range

          The value is constrained to a range between 10 and 100.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/attaching.html ================================================ Attaching Other Components - jQuery EasyUI Demo

          Attaching Other Components

          Any other components can be attached to page bar.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/basic.html ================================================ Basic Pagination - jQuery EasyUI Demo

          Basic Pagination

          The user can change page number and page size on page bar.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/custombuttons.html ================================================ Custom Pagination Buttons - jQuery EasyUI Demo

          Custom Pagination Buttons

          The customized buttons can be appended to page bar.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/layout.html ================================================ Pagination Layout - jQuery EasyUI Demo

          Pagination Layout

          The pagination layout supports various types of pages which you can choose.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/links.html ================================================ Pagination Links - jQuery EasyUI Demo

          Pagination Links

          The example shows how to customize numbered pagination links.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/simple.html ================================================ Simplify Pagination - jQuery EasyUI Demo

          Simplify Pagination

          The sample shows how to simplify pagination.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/_content.html ================================================ AJAX Content

          Here is the content loaded via AJAX.

          • easyui is a collection of user-interface plugin based on jQuery.
          • easyui provides essential functionality for building modern, interactive, javascript applications.
          • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
          • complete framework for HTML5 web page.
          • easyui save your time and scales while developing your products.
          • easyui is very easy but powerful.
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/basic.html ================================================ Basic Panel - jQuery EasyUI Demo

          Basic Panel

          The panel is a container for other components or elements.

          jQuery EasyUI framework helps you build your web pages easily.

          • easyui is a collection of user-interface plugin based on jQuery.
          • easyui provides essential functionality for building modem, interactive, javascript applications.
          • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
          • complete framework for HTML5 web page.
          • easyui save your time and scales while developing your products.
          • easyui is very easy but powerful.
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/customtools.html ================================================ Custom Panel Tools - jQuery EasyUI Demo

          Custom Panel Tools

          Click the right top buttons to perform actions with panel.

          jQuery EasyUI framework helps you build your web pages easily.

          • easyui is a collection of user-interface plugin based on jQuery.
          • easyui provides essential functionality for building modem, interactive, javascript applications.
          • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
          • complete framework for HTML5 web page.
          • easyui save your time and scales while developing your products.
          • easyui is very easy but powerful.
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/fluid.html ================================================ Fluid Panel - jQuery EasyUI Demo

          Fluid Panel

          This example shows how to set the width of Panel to a percentage of its parent container.

          The panel has a width of 100%.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/footer.html ================================================ Panel Footer - jQuery EasyUI Demo

          Panel Footer

          The panel footer is displayed at the bottom of the panel and can consist of any other components.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/loadcontent.html ================================================ Load Panel Content - jQuery EasyUI Demo

          Load Panel Content

          Click the refresh button on top right of panel to load content.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/nestedpanel.html ================================================ Nested Panel - jQuery EasyUI Demo

          Nested Panel

          The panel can be placed inside containers and can contain other components.

          Left Content
          Right Content
          Right Content
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/paneltools.html ================================================ Panel Tools - jQuery EasyUI Demo

          Panel Tools

          Click the right top buttons to perform actions with panel.

          jQuery EasyUI framework helps you build your web pages easily.

          • easyui is a collection of user-interface plugin based on jQuery.
          • easyui provides essential functionality for building modem, interactive, javascript applications.
          • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
          • complete framework for HTML5 web page.
          • easyui save your time and scales while developing your products.
          • easyui is very easy but powerful.
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/progressbar/basic.html ================================================ Basic ProgressBar - jQuery EasyUI Demo

          Basic ProgressBar

          Click the button below to show progress information.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/progressbar/fluid.html ================================================ Fluid ProgressBar - jQuery EasyUI Demo

          Fluid ProgressBar

          This example shows how to set the width of ProgressBar to a percentage of its parent container.

          width: 50%

          width: 30%

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/propertygrid/basic.html ================================================ Basic PropertyGrid - jQuery EasyUI Demo

          Basic PropertyGrid

          Click on row to change each property value.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/propertygrid/customcolumns.html ================================================ Customize Columns of PropertyGrid - jQuery EasyUI Demo

          Customize Columns of PropertyGrid

          The columns of PropertyGrid can be changed.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/propertygrid/groupformat.html ================================================ Group Format - jQuery EasyUI Demo

          Group Format

          The user can change the group information.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/propertygrid/propertygrid_data1.json ================================================ {"total":7,"rows":[ {"name":"Name","value":"Bill Smith","group":"ID Settings","editor":"text"}, {"name":"Address","value":"","group":"ID Settings","editor":"text"}, {"name":"Age","value":"40","group":"ID Settings","editor":"numberbox"}, {"name":"Birthday","value":"01/02/2012","group":"ID Settings","editor":"datebox"}, {"name":"SSN","value":"123-456-7890","group":"ID Settings","editor":"text"}, {"name":"Email","value":"bill@gmail.com","group":"Marketing Settings","editor":{ "type":"validatebox", "options":{ "validType":"email" } }}, {"name":"FrequentBuyer","value":"false","group":"Marketing Settings","editor":{ "type":"checkbox", "options":{ "on":true, "off":false } }} ]} ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/resizable/basic.html ================================================ Basic Resizable - jQuery EasyUI Demo

          Basic Resizable

          Click on the edge of box and move the edge to resize the box.

          Resize Me
          Title
          Drag and Resize Me
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/searchbox/basic.html ================================================ Basic SearchBox - jQuery EasyUI Demo

          Basic SearchBox

          Click search button or press enter key in input box to do searching.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/searchbox/category.html ================================================ Search Category - jQuery EasyUI Demo

          Search Category

          Select a category and click search button or press enter key in input box to do searching.

          All News
          Sports News
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/searchbox/fluid.html ================================================ Fluid SearchBox - jQuery EasyUI Demo

          Fluid SearchBox

          This example shows how to set the width of SearchBox to a percentage of its parent container.

          width: 50%

          width: 30%

          All News
          Sports News
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/basic.html ================================================ Basic Slider - jQuery EasyUI Demo

          Basic Slider

          Drag the slider to change value.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/fluid.html ================================================ Fluid Slider - jQuery EasyUI Demo

          Fluid Slider

          This example shows how to set the width of Slider to a percentage of its parent container.

          width: 50%

          width: 30%

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/formattip.html ================================================ Format Tip Information - jQuery EasyUI Demo

          Format Tip Information

          This sample shows how to format tip information.

          jQuery EasyUI
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/nonlinear.html ================================================ Non Linear Slider - jQuery EasyUI Demo

          Non Linear Slider

          This example shows how to create a slider with a non-linear scale.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/rule.html ================================================ Slider Rule - jQuery EasyUI Demo

          Slider Rule

          This sample shows how to define slider rule.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/vertical.html ================================================ Vertical Slider - jQuery EasyUI Demo

          Vertical Slider

          This sample shows how to create a vertical slider.

          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/splitbutton/actions.html ================================================ SplitButton Actions - jQuery EasyUI Demo

          SplitButton Actions

          Click the buttons below to perform actions.

          Undo
          Redo
          Cut
          Copy
          Paste
          Toolbar
          Address
          Link
          Navigation Toolbar
          Bookmark Toolbar
          New Toolbar...
          Delete
          Select All
          Ok
          Cancel
          Help
          Update
          About
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/splitbutton/basic.html ================================================ Basic SplitButton - jQuery EasyUI Demo

          Basic SplitButton

          Move mouse over the arrow area of button to drop down menu.

          Undo
          Redo
          Cut
          Copy
          Paste
          Toolbar
          Address
          Link
          Navigation Toolbar
          Bookmark Toolbar
          New Toolbar...
          Delete
          Select All
          Ok
          Cancel
          Help
          Update
          About
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/_content.html ================================================ AJAX Content

          Here is the content loaded via AJAX.

          • easyui is a collection of user-interface plugin based on jQuery.
          • easyui provides essential functionality for building modern, interactive, javascript applications.
          • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
          • complete framework for HTML5 web page.
          • easyui save your time and scales while developing your products.
          • easyui is very easy but powerful.
          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/autoheight.html ================================================ Auto Height for Tabs - jQuery EasyUI Demo

          Auto Height for Tabs

          The tabs height is auto adjusted according to tab panel content.

          jQuery EasyUI framework helps you build your web pages easily.

          • easyui is a collection of user-interface plugin based on jQuery.
          • easyui provides essential functionality for building modem, interactive, javascript applications.
          • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
          • complete framework for HTML5 web page.
          • easyui save your time and scales while developing your products.
          • easyui is very easy but powerful.
            This is the help content.
            ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/basic.html ================================================ Basic Tabs - jQuery EasyUI Demo

            Basic Tabs

            Click tab strip to swap tab panel content.

            jQuery EasyUI framework helps you build your web pages easily.

            • easyui is a collection of user-interface plugin based on jQuery.
            • easyui provides essential functionality for building modem, interactive, javascript applications.
            • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
            • complete framework for HTML5 web page.
            • easyui save your time and scales while developing your products.
            • easyui is very easy but powerful.
              This is the help content.
              ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/dropdown.html ================================================ Tabs with DropDown - jQuery EasyUI Demo

              Tabs with DropDown

              This sample shows how to add a dropdown menu over a tab strip.

              jQuery EasyUI framework helps you build your web pages easily.

              • easyui is a collection of user-interface plugin based on jQuery.
              • easyui provides essential functionality for building modem, interactive, javascript applications.
              • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
              • complete framework for HTML5 web page.
              • easyui save your time and scales while developing your products.
              • easyui is very easy but powerful.
                This is the help content.
                Welcome
                Help Contents
                Search
                Dynamic Help
                ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/fixedwidth.html ================================================ Fixed Tab Width - jQuery EasyUI Demo

                Fixed Tab Width

                The tab strips have fixed width and height.

                Home Content.

                Maps Content.

                Journal Content.

                History Content.

                References Content.

                Contact Content.

                ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/fluid.html ================================================ Fluid Tabs - jQuery EasyUI Demo

                Fluid Tabs

                This example shows how to set the width of Tabs to a percentage of its parent container.

                The tabs has a width of 100%.

                ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/hover.html ================================================ Hover Tabs - jQuery EasyUI Demo

                Hover Tabs

                Move mouse over the tab strip to open the tab panel.

                jQuery EasyUI framework helps you build your web pages easily.

                • easyui is a collection of user-interface plugin based on jQuery.
                • easyui provides essential functionality for building modem, interactive, javascript applications.
                • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
                • complete framework for HTML5 web page.
                • easyui save your time and scales while developing your products.
                • easyui is very easy but powerful.
                  This is the help content.
                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/nestedtabs.html ================================================ Nested Tabs - jQuery EasyUI Demo

                  Nested Tabs

                  The tab panel can contain sub tabs or other components.

                  Content 1
                  Content 2
                  Content 3
                  Title1 Title2 Title3
                  d11 d12 d13
                  d21 d22 d23
                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/striptools.html ================================================ Tabs Strip Tools - jQuery EasyUI Demo

                  Tabs Strip Tools

                  Click the mini-buttons on the tab strip to perform actions.

                  jQuery EasyUI framework helps you build your web pages easily.

                  • easyui is a collection of user-interface plugin based on jQuery.
                  • easyui provides essential functionality for building modem, interactive, javascript applications.
                  • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
                  • complete framework for HTML5 web page.
                  • easyui save your time and scales while developing your products.
                  • easyui is very easy but powerful.
                  This is the help content.
                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/tabimage.html ================================================ Tabs with Images - jQuery EasyUI Demo

                  Tabs with Images

                  The tab strip can display big images.

                  A modem (modulator-demodulator) is a device that modulates an analog carrier signal to encode digital information, and also demodulates such a carrier signal to decode the transmitted information.

                  In computing, an image scanner—often abbreviated to just scanner—is a device that optically scans images, printed text, handwriting, or an object, and converts it to a digital image.

                  A personal digital assistant (PDA), also known as a palmtop computer, or personal data assistant, is a mobile device that functions as a personal information manager. PDAs are largely considered obsolete with the widespread adoption of smartphones.

                  A tablet computer, or simply tablet, is a one-piece mobile computer. Devices typically have a touchscreen, with finger or stylus gestures replacing the conventional computer mouse.

                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/tabposition.html ================================================ Tab Position - jQuery EasyUI Demo

                  Tab Position

                  Click the 'position' drop-down list and select an item to change the tab position.

                  Position:

                  jQuery EasyUI framework helps you build your web pages easily.

                  • easyui is a collection of user-interface plugin based on jQuery.
                  • easyui provides essential functionality for building modem, interactive, javascript applications.
                  • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
                  • complete framework for HTML5 web page.
                  • easyui save your time and scales while developing your products.
                  • easyui is very easy but powerful.
                    This is the help content.
                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/tabstools.html ================================================ Tabs Tools - jQuery EasyUI Demo

                    Tabs Tools

                    Click the buttons on the top right of tabs header to add or remove tab panel.

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/tree_data1.json ================================================ [{ "id":1, "text":"My Documents", "children":[{ "id":11, "text":"Photos", "state":"closed", "children":[{ "id":111, "text":"Friend" },{ "id":112, "text":"Wife" },{ "id":113, "text":"Company" }] },{ "id":12, "text":"Program Files", "children":[{ "id":121, "text":"Intel" },{ "id":122, "text":"Java", "attributes":{ "p1":"Custom Attribute1", "p2":"Custom Attribute2" } },{ "id":123, "text":"Microsoft Office" },{ "id":124, "text":"Games", "checked":true }] },{ "id":13, "text":"index.html" },{ "id":14, "text":"about.html" },{ "id":15, "text":"welcome.html" }] }] ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/basic.html ================================================ Basic TextBox - jQuery EasyUI Demo

                    Basic TextBox

                    The textbox allows a user to enter information.

                    Email:
                    First Name:
                    Last Name:
                    Company:
                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/button.html ================================================ TextBox with Button - jQuery EasyUI Demo

                    TextBox with Button

                    The button can be attached to a textbox.

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/clearicon.html ================================================ TextBox with Clear Icon - jQuery EasyUI Demo

                    TextBox with Clear Icon

                    This example shows how to create an textbox with an icon to clear the input element itself.

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/custom.html ================================================ Custom TextBox - jQuery EasyUI Demo

                    Custom TextBox

                    This example shows how to custom a login form.

                    Remember me
                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/fluid.html ================================================ Fluid TextBox - jQuery EasyUI Demo

                    Fluid TextBox

                    This example shows how to set the width of TextBox to a percentage of its parent container.

                    width: 50%

                    width: 30%

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/icons.html ================================================ TextBox with Icons - jQuery EasyUI Demo

                    TextBox with Icons

                    Click the icons on textbox to perform actions.

                    Select Icon Align:
                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/multiline.html ================================================ Multiline TextBox - jQuery EasyUI Demo

                    Multiline TextBox

                    This example shows how to define a textbox for the user to enter multi-line text input.

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/size.html ================================================ TextBox Size - jQuery EasyUI Demo

                    TextBox Size

                    The textbox can vary in size.

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/timespinner/actions.html ================================================ TimeSpinner Actions - jQuery EasyUI Demo

                    TimeSpinner Actions

                    Click the buttons below to perform actions.

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/timespinner/basic.html ================================================ Basic TimeSpinner - jQuery EasyUI Demo

                    Basic TimeSpinner

                    Click spin button to adjust time.

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/timespinner/fluid.html ================================================ Fluid TimeSpinner - jQuery EasyUI Demo

                    Fluid TimeSpinner

                    This example shows how to set the width of TimeSpinner to a percentage of its parent container.

                    width: 50%

                    width: 30%

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/timespinner/range.html ================================================ Time Range - jQuery EasyUI Demo

                    Time Range

                    The time value is constrained in specified range.

                    From 08:30 to 18:00
                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/_content.html ================================================ AJAX Content

                    Here is the content loaded via AJAX.

                    • easyui is a collection of user-interface plugin based on jQuery.
                    • easyui provides essential functionality for building modern, interactive, javascript applications.
                    • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
                    • complete framework for HTML5 web page.
                    • easyui save your time and scales while developing your products.
                    • easyui is very easy but powerful.
                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/_dialog.html ================================================ Dialog Content
                    User Name:
                    Password:
                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/ajax.html ================================================ Ajax Tooltip - jQuery EasyUI Demo

                    Ajax Tooltip

                    The tooltip content can be loaded via AJAX.

                    Hove me to display tooltip content via AJAX. ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/basic.html ================================================ Basic Tooltip - jQuery EasyUI Demo

                    Basic Tooltip

                    Hover the links to display tooltip message.

                    The tooltip can use each elements title attribute. Hover me to display tooltip.

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/customcontent.html ================================================ Custom Tooltip Content - jQuery EasyUI Demo

                    Custom Tooltip Content

                    Access to each elements attribute to get the tooltip content.

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/customstyle.html ================================================ Custom Tooltip Style - jQuery EasyUI Demo

                    Custom Tooltip Style

                    This sample shows how to change the tooltip style.

                    Hover Me
                    Hover Me
                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/position.html ================================================ Tooltip Position - jQuery EasyUI Demo

                    Tooltip Position

                    Click the drop-down list below to change where the tooltip appears.

                    Select position:
                    Hover Me
                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/toolbar.html ================================================ Tooltip as Toolbar - jQuery EasyUI Demo

                    Tooltip as Toolbar

                    This sample shows how to create a tooltip style toolbar.

                    Hover me to display toolbar.

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/tooltipdialog.html ================================================ Tooltip Dialog - jQuery EasyUI Demo

                    Tooltip Dialog

                    This sample shows how to create a tooltip dialog.

                    Click here to see the tooltip dialog.

                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/actions.html ================================================ Tree Actions - jQuery EasyUI Demo

                    Tree Actions

                    Click the buttons below to perform actions.

                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/animation.html ================================================ Animation Tree - jQuery EasyUI Demo

                      Animation Tree

                      Apply 'animate' property to true to enable animation effect.

                        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/basic.html ================================================ Basic Tree - jQuery EasyUI Demo

                        Basic Tree

                        Click the arrow on the left to expand or collapse nodes.

                        • My Documents
                          • Photos
                            • Friend
                            • Wife
                            • Company
                          • Program Files
                            • Intel
                            • Java
                            • Microsoft Office
                            • Games
                          • index.html
                          • about.html
                          • welcome.html
                        ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/checkbox.html ================================================ CheckBox Tree - jQuery EasyUI Demo

                        CheckBox Tree

                        Tree nodes with check boxes.

                        CascadeCheck OnlyLeafCheck
                          ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/contextmenu.html ================================================ Tree Context Menu - jQuery EasyUI Demo

                          Tree Context Menu

                          Right click on a node to display context menu.

                            Append
                            Remove
                            Expand
                            Collapse
                            ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/dnd.html ================================================ Drag Drop Tree Nodes - jQuery EasyUI Demo

                            Drag Drop Tree Nodes

                            Press mouse down and drag a node to another position.

                              ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/editable.html ================================================ Editable Tree - jQuery EasyUI Demo

                              Editable Tree

                              Click the node to begin edit, press enter key to stop edit or esc key to cancel edit.

                                ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/formatting.html ================================================ Formatting Tree Nodes - jQuery EasyUI Demo

                                Formatting Tree Nodes

                                This example shows how to display extra information on nodes.

                                ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/icons.html ================================================ Tree Node Icons - jQuery EasyUI Demo

                                Tree Node Icons

                                This sample illustrates how to add icons to tree node.

                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/lazyload.html ================================================ Lazy Load Tree Nodes - jQuery EasyUI Demo

                                  Lazy Load Tree Nodes

                                  Get full hierarchical tree data but lazy load nodes level by level.

                                    ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/lines.html ================================================ Tree Lines - jQuery EasyUI Demo

                                    Tree Lines

                                    This sample shows how to show tree lines.

                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/tree_data1.json ================================================ [{ "id":1, "text":"My Documents", "children":[{ "id":11, "text":"Photos", "state":"closed", "children":[{ "id":111, "text":"Friend" },{ "id":112, "text":"Wife" },{ "id":113, "text":"Company" }] },{ "id":12, "text":"Program Files", "children":[{ "id":121, "text":"Intel" },{ "id":122, "text":"Java", "attributes":{ "p1":"Custom Attribute1", "p2":"Custom Attribute2" } },{ "id":123, "text":"Microsoft Office" },{ "id":124, "text":"Games", "checked":true }] },{ "id":13, "text":"index.html" },{ "id":14, "text":"about.html" },{ "id":15, "text":"welcome.html" }] }] ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/tree_data2.json ================================================ [{ "id":1, "text":"My Documents", "children":[{ "id":11, "text":"Photos", "state":"closed", "children":[{ "id":111, "text":"Friend" },{ "id":112, "text":"Wife" },{ "id":113, "text":"Company" }] },{ "id":12, "text":"Program Files", "state":"closed", "children":[{ "id":121, "text":"Intel" },{ "id":122, "text":"Java" },{ "id":123, "text":"Microsoft Office" },{ "id":124, "text":"Games" }] },{ "id":16, "text":"Actions", "children":[{ "text":"Add", "iconCls":"icon-add" },{ "text":"Remove", "iconCls":"icon-remove" },{ "text":"Save", "iconCls":"icon-save" },{ "text":"Search", "iconCls":"icon-search" }] },{ "id":13, "text":"index.html" },{ "id":14, "text":"about.html" },{ "id":15, "text":"welcome.html" }] }] ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/actions.html ================================================ TreeGrid Actions - jQuery EasyUI Demo

                                      TreeGrid Actions

                                      Click the buttons below to perform actions.

                                      Task Name Persons Begin Date End Date Progress
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/basic.html ================================================ Basic TreeGrid - jQuery EasyUI Demo

                                      Basic TreeGrid

                                      TreeGrid allows you to expand or collapse group rows.

                                      Name Size Modified Date
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/clientpagination.html ================================================ Client Side Pagination in TreeGrid - jQuery EasyUI Demo

                                      Client Side Pagination in TreeGrid

                                      This sample shows how to implement client side pagination in TreeGrid.

                                      Task Name Persons Begin Date End Date Progress
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/contextmenu.html ================================================ TreeGrid ContextMenu - jQuery EasyUI Demo

                                      TreeGrid ContextMenu

                                      Right click to display the context menu.

                                      Task Name Persons Begin Date End Date Progress
                                      Append
                                      Remove
                                      Collapse
                                      Expand
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/editable.html ================================================ Editable TreeGrid - jQuery EasyUI Demo

                                      Editable TreeGrid

                                      Select one node and click edit button to perform editing.

                                      Task Name Persons Begin Date End Date Progress
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/fluid.html ================================================ Fluid TreeGrid - jQuery EasyUI Demo

                                      Fluid TreeGrid

                                      This example shows how to assign percentage width to a column in TreeGrid.

                                      Name(50%) Size(20%) Modified Date(30%)
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/footer.html ================================================ TreeGrid with Footer - jQuery EasyUI Demo

                                      TreeGrid with Footer

                                      Show summary information on TreeGrid footer.

                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/lines.html ================================================ TreeGrid Lines - jQuery EasyUI Demo

                                      TreeGrid Lines

                                      This example shows how to show treegrid lines.

                                      Name Size Modified Date
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/reports.html ================================================ Reports using TreeGrid - jQuery EasyUI Demo

                                      Reports using TreeGrid

                                      Using TreeGrid to show complex reports.

                                      Region
                                      2009 2010
                                      1st qrt. 2st qrt. 3st qrt. 4st qrt. 1st qrt. 2st qrt. 3st qrt. 4st qrt.
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/treegrid_data1.json ================================================ [{ "id":1, "name":"C", "size":"", "date":"02/19/2010", "children":[{ "id":2, "name":"Program Files", "size":"120 MB", "date":"03/20/2010", "children":[{ "id":21, "name":"Java", "size":"", "date":"01/13/2010", "state":"closed", "children":[{ "id":211, "name":"java.exe", "size":"142 KB", "date":"01/13/2010" },{ "id":212, "name":"jawt.dll", "size":"5 KB", "date":"01/13/2010" }] },{ "id":22, "name":"MySQL", "size":"", "date":"01/13/2010", "state":"closed", "children":[{ "id":221, "name":"my.ini", "size":"10 KB", "date":"02/26/2009" },{ "id":222, "name":"my-huge.ini", "size":"5 KB", "date":"02/26/2009" },{ "id":223, "name":"my-large.ini", "size":"5 KB", "date":"02/26/2009" }] }] },{ "id":3, "name":"eclipse", "size":"", "date":"01/20/2010", "children":[{ "id":31, "name":"eclipse.exe", "size":"56 KB", "date":"05/19/2009" },{ "id":32, "name":"eclipse.ini", "size":"1 KB", "date":"04/20/2010" },{ "id":33, "name":"notice.html", "size":"7 KB", "date":"03/17/2005" }] }] }] ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/treegrid_data2.json ================================================ {"total":7,"rows":[ {"id":1,"name":"All Tasks","begin":"3/4/2010","end":"3/20/2010","progress":60,"iconCls":"icon-ok"}, {"id":2,"name":"Designing","begin":"3/4/2010","end":"3/10/2010","progress":100,"_parentId":1,"state":"closed"}, {"id":21,"name":"Database","persons":2,"begin":"3/4/2010","end":"3/6/2010","progress":100,"_parentId":2}, {"id":22,"name":"UML","persons":1,"begin":"3/7/2010","end":"3/8/2010","progress":100,"_parentId":2}, {"id":23,"name":"Export Document","persons":1,"begin":"3/9/2010","end":"3/10/2010","progress":100,"_parentId":2}, {"id":3,"name":"Coding","persons":2,"begin":"3/11/2010","end":"3/18/2010","progress":80}, {"id":4,"name":"Testing","persons":1,"begin":"3/19/2010","end":"3/20/2010","progress":20} ],"footer":[ {"name":"Total Persons:","persons":7,"iconCls":"icon-sum"} ]} ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/treegrid_data3.json ================================================ {"total":9,"rows":[ {"id":1,"region":"Wyoming"}, {"id":11,"region":"Albin","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":1}, {"id":12,"region":"Canon","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":1}, {"id":13,"region":"Egbert","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":1}, {"id":2,"region":"Washington"}, {"id":21,"region":"Bellingham","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2}, {"id":22,"region":"Chehalis","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2}, {"id":23,"region":"Ellensburg","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2}, {"id":24,"region":"Monroe","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2} ],"footer":[ {"region":"Total","f1":14000,"f2":12600,"f3":13321,"f4":15281,"f5":14931,"f6":13461,"f7":14126,"f8":12866} ]} ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/validatebox/basic.html ================================================ Basic ValidateBox - jQuery EasyUI Demo

                                      Basic ValidateBox

                                      It's easy to add validate logic to a input box.

                                      User Name:
                                      Email:
                                      Birthday:
                                      URL:
                                      Phone:
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/validatebox/customtooltip.html ================================================ Custom ValidateBox Tooltip - jQuery EasyUI Demo

                                      Custom ValidateBox Tooltip

                                      This sample shows how to display another tooltip message on a valid textbox.

                                      User Name:
                                      Email:
                                      Birthday:
                                      URL:
                                      Phone:
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/validatebox/validateonblur.html ================================================ Validate On Blur - jQuery EasyUI Demo

                                      Validate On Blur

                                      Active validation on first blur event.

                                      User Name:
                                      Email:
                                      Birthday:
                                      URL:
                                      Phone:
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/basic.html ================================================ Basic Window - jQuery EasyUI Demo

                                      Basic Window

                                      Window can be dragged freely on screen.

                                      The window content.
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/customtools.html ================================================ Custom Window Tools - jQuery EasyUI Demo

                                      Custom Window Tools

                                      Click the right top buttons to perform actions.

                                      The window content.
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/fluid.html ================================================ Fluid Window - jQuery EasyUI Demo

                                      Fluid Window

                                      This example shows how to set the width of Window to a percentage of its parent container.

                                      The window has a width of 80%.

                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/footer.html ================================================ Window with a Footer - jQuery EasyUI Demo

                                      Window with a Footer

                                      This example shows how to attach a footer bar to the window.

                                      The window content.
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/inlinewindow.html ================================================ Inline Window - jQuery EasyUI Demo

                                      Inline Window

                                      The inline window stay inside its parent.

                                      This window stay inside its parent
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/modalwindow.html ================================================ Modal Window - jQuery EasyUI Demo

                                      Modal Window

                                      Click the open button below to open the modal window.

                                      The window content.
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/windowlayout.html ================================================ Window Layout - jQuery EasyUI Demo

                                      Window Layout

                                      Using layout on window.

                                      jQuery EasyUI framework help you build your web page easily.
                                      ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/easyloader.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function(){ var _1={draggable:{js:"jquery.draggable.js"},droppable:{js:"jquery.droppable.js"},resizable:{js:"jquery.resizable.js"},linkbutton:{js:"jquery.linkbutton.js",css:"linkbutton.css"},progressbar:{js:"jquery.progressbar.js",css:"progressbar.css"},tooltip:{js:"jquery.tooltip.js",css:"tooltip.css"},pagination:{js:"jquery.pagination.js",css:"pagination.css",dependencies:["linkbutton"]},datagrid:{js:"jquery.datagrid.js",css:"datagrid.css",dependencies:["panel","resizable","linkbutton","pagination"]},treegrid:{js:"jquery.treegrid.js",css:"tree.css",dependencies:["datagrid"]},propertygrid:{js:"jquery.propertygrid.js",css:"propertygrid.css",dependencies:["datagrid"]},panel:{js:"jquery.panel.js",css:"panel.css"},window:{js:"jquery.window.js",css:"window.css",dependencies:["resizable","draggable","panel"]},dialog:{js:"jquery.dialog.js",css:"dialog.css",dependencies:["linkbutton","window"]},messager:{js:"jquery.messager.js",css:"messager.css",dependencies:["linkbutton","window","progressbar"]},layout:{js:"jquery.layout.js",css:"layout.css",dependencies:["resizable","panel"]},form:{js:"jquery.form.js"},menu:{js:"jquery.menu.js",css:"menu.css"},tabs:{js:"jquery.tabs.js",css:"tabs.css",dependencies:["panel","linkbutton"]},menubutton:{js:"jquery.menubutton.js",css:"menubutton.css",dependencies:["linkbutton","menu"]},splitbutton:{js:"jquery.splitbutton.js",css:"splitbutton.css",dependencies:["menubutton"]},accordion:{js:"jquery.accordion.js",css:"accordion.css",dependencies:["panel"]},calendar:{js:"jquery.calendar.js",css:"calendar.css"},textbox:{js:"jquery.textbox.js",css:"textbox.css",dependencies:["validatebox","linkbutton"]},filebox:{js:"jquery.filebox.js",css:"filebox.css",dependencies:["textbox"]},combo:{js:"jquery.combo.js",css:"combo.css",dependencies:["panel","textbox"]},combobox:{js:"jquery.combobox.js",css:"combobox.css",dependencies:["combo"]},combotree:{js:"jquery.combotree.js",dependencies:["combo","tree"]},combogrid:{js:"jquery.combogrid.js",dependencies:["combo","datagrid"]},validatebox:{js:"jquery.validatebox.js",css:"validatebox.css",dependencies:["tooltip"]},numberbox:{js:"jquery.numberbox.js",dependencies:["textbox"]},searchbox:{js:"jquery.searchbox.js",css:"searchbox.css",dependencies:["menubutton","textbox"]},spinner:{js:"jquery.spinner.js",css:"spinner.css",dependencies:["textbox"]},numberspinner:{js:"jquery.numberspinner.js",dependencies:["spinner","numberbox"]},timespinner:{js:"jquery.timespinner.js",dependencies:["spinner"]},tree:{js:"jquery.tree.js",css:"tree.css",dependencies:["draggable","droppable"]},datebox:{js:"jquery.datebox.js",css:"datebox.css",dependencies:["calendar","combo"]},datetimebox:{js:"jquery.datetimebox.js",dependencies:["datebox","timespinner"]},slider:{js:"jquery.slider.js",dependencies:["draggable"]},tooltip:{js:"jquery.tooltip.js"},parser:{js:"jquery.parser.js"}}; var _2={"af":"easyui-lang-af.js","ar":"easyui-lang-ar.js","bg":"easyui-lang-bg.js","ca":"easyui-lang-ca.js","cs":"easyui-lang-cs.js","cz":"easyui-lang-cz.js","da":"easyui-lang-da.js","de":"easyui-lang-de.js","el":"easyui-lang-el.js","en":"easyui-lang-en.js","es":"easyui-lang-es.js","fr":"easyui-lang-fr.js","it":"easyui-lang-it.js","jp":"easyui-lang-jp.js","nl":"easyui-lang-nl.js","pl":"easyui-lang-pl.js","pt_BR":"easyui-lang-pt_BR.js","ru":"easyui-lang-ru.js","sv_SE":"easyui-lang-sv_SE.js","tr":"easyui-lang-tr.js","zh_CN":"easyui-lang-zh_CN.js","zh_TW":"easyui-lang-zh_TW.js"}; var _3={}; function _4(_5,_6){ var _7=false; var _8=document.createElement("script"); _8.type="text/javascript"; _8.language="javascript"; _8.src=_5; _8.onload=_8.onreadystatechange=function(){ if(!_7&&(!_8.readyState||_8.readyState=="loaded"||_8.readyState=="complete")){ _7=true; _8.onload=_8.onreadystatechange=null; if(_6){ _6.call(_8); } } }; document.getElementsByTagName("head")[0].appendChild(_8); }; function _9(_a,_b){ _4(_a,function(){ document.getElementsByTagName("head")[0].removeChild(this); if(_b){ _b(); } }); }; function _c(_d,_e){ var _f=document.createElement("link"); _f.rel="stylesheet"; _f.type="text/css"; _f.media="screen"; _f.href=_d; document.getElementsByTagName("head")[0].appendChild(_f); if(_e){ _e.call(_f); } }; function _10(_11,_12){ _3[_11]="loading"; var _13=_1[_11]; var _14="loading"; var _15=(easyloader.css&&_13["css"])?"loading":"loaded"; if(easyloader.css&&_13["css"]){ if(/^http/i.test(_13["css"])){ var url=_13["css"]; }else{ var url=easyloader.base+"themes/"+easyloader.theme+"/"+_13["css"]; } _c(url,function(){ _15="loaded"; if(_14=="loaded"&&_15=="loaded"){ _16(); } }); } if(/^http/i.test(_13["js"])){ var url=_13["js"]; }else{ var url=easyloader.base+"plugins/"+_13["js"]; } _4(url,function(){ _14="loaded"; if(_14=="loaded"&&_15=="loaded"){ _16(); } }); function _16(){ _3[_11]="loaded"; easyloader.onProgress(_11); if(_12){ _12(); } }; }; function _17(_18,_19){ var mm=[]; var _1a=false; if(typeof _18=="string"){ add(_18); }else{ for(var i=0;i<_18.length;i++){ add(_18[i]); } } function add(_1b){ if(!_1[_1b]){ return; } var d=_1[_1b]["dependencies"]; if(d){ for(var i=0;i Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Galleria is a javascript image gallery written in jQuery Copyright (C) 2008 David Hellsing This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Galleria Copyright (C) 2008 David Hellsing This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-af.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Bladsy'; $.fn.pagination.defaults.afterPageText = 'Van {pages}'; $.fn.pagination.defaults.displayMsg = 'Wys (from) tot (to) van (total) items'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Verwerking, wag asseblief ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Die styl'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Die veld is verpligtend.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = "Gee 'n geldige e-pos adres."; $.fn.validatebox.defaults.rules.url.message = "Gee 'n geldige URL nie."; $.fn.validatebox.defaults.rules.length.message = "Voer 'n waarde tussen {0} en {1}."; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Vandag'; $.fn.datebox.defaults.closeText = 'Sluit'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-am.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Էջ'; $.fn.pagination.defaults.afterPageText = 'ից {pages}'; $.fn.pagination.defaults.displayMsg = 'Դիտել {from}-ից {to}-ը {total} գրառումից'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Մշակվում է, խնդրում ենք սպասել ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Այո'; $.messager.defaults.cancel = 'Փակել'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Այս դաշտը պարտադիր է.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Խնդրում ենք մուտքագրել գործող e-mail հասցե.'; $.fn.validatebox.defaults.rules.url.message = 'Խնդրում ենք մուտքագրել գործող URL.'; $.fn.validatebox.defaults.rules.length.message = 'Խնդրում ենք մուտքագրել արժեք {0} {1}.'; $.fn.validatebox.defaults.rules.remote.message = 'Խնդրում ենք ուղղել այս դաշտը.'; } if ($.fn.calendar){ $.fn.calendar.defaults.firstDay = 1; $.fn.calendar.defaults.weeks = ['Կ.','Ե.','Ե.','Չ.','Հ.','Ու.','Շ.']; $.fn.calendar.defaults.months = ['Հունվար', 'Փետրվար', 'Մարտ', 'Ապրիլ', 'Մայիս', 'Հունիս', 'Հուլիս', 'Օգոստոս', 'Սեպտեմբեր', 'Հոկտեմբեր', 'Նոյեմբեր', 'Դեկտեմբեր']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Այսօր'; $.fn.datebox.defaults.closeText = 'Փակել'; $.fn.datebox.defaults.okText = 'Այո'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-ar.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'صفحة'; $.fn.pagination.defaults.afterPageText = 'من {pages}'; $.fn.pagination.defaults.displayMsg = 'عرض {from} إلى {to} من {total} عنصر'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'معالجة, الرجاء الإنتظار ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'موافق'; $.messager.defaults.cancel = 'إلغاء'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'هذا الحقل مطلوب.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'الرجاء إدخال بريد إلكتروني صحيح.'; $.fn.validatebox.defaults.rules.url.message = 'الرجاء إدخال رابط صحيح.'; $.fn.validatebox.defaults.rules.length.message = 'الرجاء إدخال قيمة بين {0} و {1}.'; $.fn.validatebox.defaults.rules.remote.message = 'الرجاء التأكد من الحقل.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'اليوم'; $.fn.datebox.defaults.closeText = 'إغلاق'; $.fn.datebox.defaults.okText = 'موافق'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-bg.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Страница'; $.fn.pagination.defaults.afterPageText = 'от {pages}'; $.fn.pagination.defaults.displayMsg = 'Показани {from} за {to} от {total} продукти'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Обработка, моля изчакайте ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Добре'; $.messager.defaults.cancel = 'Задрасквам'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Това поле е задължително.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Моля, въведете валиден имейл адрес.'; $.fn.validatebox.defaults.rules.url.message = 'Моля въведете валиден URL.'; $.fn.validatebox.defaults.rules.length.message = 'Моля, въведете стойност между {0} и {1}.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Днес'; $.fn.datebox.defaults.closeText = 'Близо'; $.fn.datebox.defaults.okText = 'Добре'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-ca.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Pàgina'; $.fn.pagination.defaults.afterPageText = 'de {pages}'; $.fn.pagination.defaults.displayMsg = "Veient {from} a {to} de {total} d'articles"; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Elaboració, si us plau esperi ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Cancel'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Aquest camp és obligatori.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Introduïu una adreça de correu electrònic vàlida.'; $.fn.validatebox.defaults.rules.url.message = 'Si us plau, introduïu un URL vàlida.'; $.fn.validatebox.defaults.rules.length.message = 'Si us plau, introduïu un valor entre {0} i {1}.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Avui'; $.fn.datebox.defaults.closeText = 'Tancar'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-cs.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Strana'; $.fn.pagination.defaults.afterPageText = 'z {pages}'; $.fn.pagination.defaults.displayMsg = 'Zobrazuji {from} do {to} z {total} položky'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Zpracování, čekejte prosím ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Zrušit'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Toto pole je vyžadováno.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Zadejte prosím platnou e-mailovou adresu.'; $.fn.validatebox.defaults.rules.url.message = 'Zadejte prosím platnou adresu URL.'; $.fn.validatebox.defaults.rules.length.message = 'Prosím, zadejte hodnotu mezi {0} a {1}.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Dnes'; $.fn.datebox.defaults.closeText = 'Zavřít'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-cz.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Strana'; $.fn.pagination.defaults.afterPageText = 'z {pages}'; $.fn.pagination.defaults.displayMsg = 'Zobrazuji záznam {from} až {to} z {total}.'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Pracuji, čekejte prosím…'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Zrušit'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Toto pole je vyžadováno.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Zadejte, prosím, platnou e-mailovou adresu.'; $.fn.validatebox.defaults.rules.url.message = 'Zadejte, prosím, platnou adresu URL.'; $.fn.validatebox.defaults.rules.length.message = 'Zadejte, prosím, hodnotu mezi {0} a {1}.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['N','P','Ú','S','Č','P','S']; //neděle pondělí úterý středa čtvrtek pátek sobota $.fn.calendar.defaults.months = ['led', 'únr', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro']; //leden únor březen duben květen červen červenec srpen září říjen listopad prosinec } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Dnes'; $.fn.datebox.defaults.closeText = 'Zavřít'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-da.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Page'; $.fn.pagination.defaults.afterPageText = 'af {pages}'; $.fn.pagination.defaults.displayMsg = 'Viser {from} til {to} af {total} poster'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Behandling, vent venligst ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Annuller'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Dette felt er påkrævet.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Angiv en gyldig e-mail-adresse.'; $.fn.validatebox.defaults.rules.url.message = 'Angiv en gyldig webadresse.'; $.fn.validatebox.defaults.rules.length.message = 'Angiv en værdi mellem {0} og {1}.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'I dag'; $.fn.datebox.defaults.closeText = 'Luk'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-de.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Seite'; $.fn.pagination.defaults.afterPageText = 'von {pages}'; $.fn.pagination.defaults.displayMsg = '{from} bis {to} von {total} Datensätzen'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Verarbeitung läuft, bitte warten ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'OK'; $.messager.defaults.cancel = 'Abbruch'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Dieses Feld wird benötigt.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Bitte geben Sie eine gültige E-Mail-Adresse ein.'; $.fn.validatebox.defaults.rules.url.message = 'Bitte geben Sie eine gültige URL ein.'; $.fn.validatebox.defaults.rules.length.message = 'Bitte geben Sie einen Wert zwischen {0} und {1} ein.'; } if ($.fn.calendar){ $.fn.calendar.defaults.firstDay = 1; $.fn.calendar.defaults.weeks = ['S','M','D','M','D','F','S']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Heute'; $.fn.datebox.defaults.closeText = 'Schließen'; $.fn.datebox.defaults.okText = 'OK'; $.fn.datebox.defaults.formatter = function(date){ var y = date.getFullYear(); var m = date.getMonth()+1; var d = date.getDate(); return (d<10?('0'+d):d)+'.'+(m<10?('0'+m):m)+'.'+y; }; $.fn.datebox.defaults.parser = function(s){ if (!s) return new Date(); var ss = s.split('.'); var m = parseInt(ss[1],10); var d = parseInt(ss[0],10); var y = parseInt(ss[2],10); if (!isNaN(y) && !isNaN(m) && !isNaN(d)){ return new Date(y,m-1,d); } else { return new Date(); } }; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-el.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Σελίδα'; $.fn.pagination.defaults.afterPageText = 'από {pages}'; $.fn.pagination.defaults.displayMsg = 'Εμφάνιση {from} εώς {to} από {total} αντικείμενα'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Γίνεται Επεξεργασία, Παρακαλώ Περιμένετε ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Εντάξει'; $.messager.defaults.cancel = 'Άκυρο'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Το πεδίο είναι υποχρεωτικό.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Παρακαλώ εισάγετε σωστή Ηλ.Διεύθυνση.'; $.fn.validatebox.defaults.rules.url.message = 'Παρακαλώ εισάγετε σωστό σύνδεσμο.'; $.fn.validatebox.defaults.rules.length.message = 'Παρακαλώ εισάγετε τιμή μεταξύ {0} και {1}.'; $.fn.validatebox.defaults.rules.remote.message = 'Παρακαλώ διορθώστε αυτό το πεδίο.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ']; $.fn.calendar.defaults.months = ['Ιαν', 'Φεβ', 'Μαρ', 'Απρ', 'Μαϊ', 'Ιου', 'Ιου', 'Αυγ', 'Σεπ', 'Οκτ', 'Νοε', 'Δεκ']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Σήμερα'; $.fn.datebox.defaults.closeText = 'Κλείσιμο'; $.fn.datebox.defaults.okText = 'Εντάξει'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-en.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Page'; $.fn.pagination.defaults.afterPageText = 'of {pages}'; $.fn.pagination.defaults.displayMsg = 'Displaying {from} to {to} of {total} items'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Processing, please wait ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Cancel'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'This field is required.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Please enter a valid email address.'; $.fn.validatebox.defaults.rules.url.message = 'Please enter a valid URL.'; $.fn.validatebox.defaults.rules.length.message = 'Please enter a value between {0} and {1}.'; $.fn.validatebox.defaults.rules.remote.message = 'Please fix this field.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Today'; $.fn.datebox.defaults.closeText = 'Close'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-es.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Página'; $.fn.pagination.defaults.afterPageText = 'de {pages}'; $.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} elementos'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Procesando, por favor espere ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Aceptar'; $.messager.defaults.cancel = 'Cancelar'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Este campo es obligatorio.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Por favor ingrese una dirección de correo válida.'; $.fn.validatebox.defaults.rules.url.message = 'Por favor ingrese una URL válida.'; $.fn.validatebox.defaults.rules.length.message = 'Por favor ingrese un valor entre {0} y {1}.'; $.fn.validatebox.defaults.rules.remote.message = 'Por favor corrija este campo.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['Do','Lu','Ma','Mi','Ju','Vi','Sá']; $.fn.calendar.defaults.months = ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Hoy'; $.fn.datebox.defaults.closeText = 'Cerrar'; $.fn.datebox.defaults.okText = 'Aceptar'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-fr.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Page'; $.fn.pagination.defaults.afterPageText = 'de {pages}'; $.fn.pagination.defaults.displayMsg = 'Affichage de {from} et {to} au {total} des articles'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = "Traitement, s'il vous plaît patienter ..."; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Annuler'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Ce champ est obligatoire.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = "S'il vous plaît entrer une adresse email valide."; $.fn.validatebox.defaults.rules.url.message = "S'il vous plaît entrer une URL valide."; $.fn.validatebox.defaults.rules.length.message = "S'il vous plaît entrez une valeur comprise entre {0} et {1}."; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = "Aujourd'hui"; $.fn.datebox.defaults.closeText = 'Fermer'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-it.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Pagina'; $.fn.pagination.defaults.afterPageText = 'di {pages}'; $.fn.pagination.defaults.displayMsg = 'Visualizzazione {from} a {to} di {total} elementi'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'In lavorazione, attendere ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Annulla'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Questo campo è richiesto.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Inserisci un indirizzo email valido.'; $.fn.validatebox.defaults.rules.url.message = 'Inserisci un URL valido.'; $.fn.validatebox.defaults.rules.length.message = 'Inserisci un valore tra {0} e {1}.'; $.fn.validatebox.defaults.rules.remote.message = 'Aggiusta questo campo.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; $.fn.calendar.defaults.months = ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Oggi'; $.fn.datebox.defaults.closeText = 'Chiudi'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-jp.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'ページ'; $.fn.pagination.defaults.afterPageText = '{pages} 中'; $.fn.pagination.defaults.displayMsg = '全 {total} アイテム中 {from} から {to} を表示中'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = '処理中です。少々お待ちください...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'OK'; $.messager.defaults.cancel = 'キャンセル'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = '入力は必須です。'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = '正しいメールアドレスを入力してください。'; $.fn.validatebox.defaults.rules.url.message = '正しいURLを入力してください。'; $.fn.validatebox.defaults.rules.length.message = '{0} から {1} の範囲の正しい値を入力してください。'; $.fn.validatebox.defaults.rules.remote.message = 'このフィールドを修正してください。'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['日','月','火','水','木','金','土']; $.fn.calendar.defaults.months = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = '今日'; $.fn.datebox.defaults.closeText = '閉じる'; $.fn.datebox.defaults.okText = 'OK'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-nl.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Pagina'; $.fn.pagination.defaults.afterPageText = 'van {pages}'; $.fn.pagination.defaults.displayMsg = 'Tonen van {from} tot {to} van de {total} items'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Verwerking, even geduld ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Annuleren'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Dit veld is verplicht.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Geef een geldig e-mailadres.'; $.fn.validatebox.defaults.rules.url.message = 'Vul een geldige URL.'; $.fn.validatebox.defaults.rules.length.message = 'Voer een waarde tussen {0} en {1}.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Vandaag'; $.fn.datebox.defaults.closeText = 'Dicht'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-pl.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Strona'; $.fn.pagination.defaults.afterPageText = 'z {pages}'; $.fn.pagination.defaults.displayMsg = 'Wyświetlono elementy od {from} do {to} z {total}'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Przetwarzanie, proszę czekać ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Cancel'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'To pole jest wymagane.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Wprowadź poprawny adres email.'; $.fn.validatebox.defaults.rules.url.message = 'Wprowadź poprawny adres URL.'; $.fn.validatebox.defaults.rules.length.message = 'Wprowadź wartość z zakresu od {0} do {1}.'; $.fn.validatebox.defaults.rules.remote.message = 'Proszę poprawić to pole.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['N','P','W','Ś','C','P','S']; $.fn.calendar.defaults.months = ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Dzisiaj'; $.fn.datebox.defaults.closeText = 'Zamknij'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-pt_BR.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Página'; $.fn.pagination.defaults.afterPageText = 'de {pages}'; $.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} itens'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Processando, aguarde ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Cancelar'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Esse campo é requerido.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Insira um endereço de email válido.'; $.fn.validatebox.defaults.rules.url.message = 'Insira uma URL válida.'; $.fn.validatebox.defaults.rules.length.message = 'Insira uma valor entre {0} e {1}.'; $.fn.validatebox.defaults.rules.remote.message = 'Corrija esse campo.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['D','S','T','Q','Q','S','S']; $.fn.calendar.defaults.months = ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Hoje'; $.fn.datebox.defaults.closeText = 'Fechar'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-ru.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Страница'; $.fn.pagination.defaults.afterPageText = 'из {pages}'; $.fn.pagination.defaults.displayMsg = 'Просмотр {from} до {to} из {total} записей'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Обрабатывается, пожалуйста ждите ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Ок'; $.messager.defaults.cancel = 'Закрыть'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Это поле необходимо.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Пожалуйста введите корректный e-mail адрес.'; $.fn.validatebox.defaults.rules.url.message = 'Пожалуйста введите корректный URL.'; $.fn.validatebox.defaults.rules.length.message = 'Пожалуйста введите зачение между {0} и {1}.'; $.fn.validatebox.defaults.rules.remote.message = 'Пожалуйста исправте это поле.'; } if ($.fn.calendar){ $.fn.calendar.defaults.firstDay = 1; $.fn.calendar.defaults.weeks = ['В','П','В','С','Ч','П','С']; $.fn.calendar.defaults.months = ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Сегодня'; $.fn.datebox.defaults.closeText = 'Закрыть'; $.fn.datebox.defaults.okText = 'Ок'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-sv_SE.js ================================================ if ($.fn.pagination) { $.fn.pagination.defaults.beforePageText = 'Sida'; $.fn.pagination.defaults.afterPageText = 'av {pages}'; $.fn.pagination.defaults.displayMsg = 'Visar {from} till {to} av {total} poster'; } if ($.fn.datagrid) { $.fn.datagrid.defaults.loadMsg = 'Bearbetar, vänligen vänta ...'; } if ($.fn.treegrid && $.fn.datagrid) { $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager) { $.messager.defaults.ok = 'Ok'; $.messager.defaults.cancel = 'Avbryt'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Detta fält är obligatoriskt.'; } }); if ($.fn.validatebox) { $.fn.validatebox.defaults.rules.email.message = 'Vänligen ange en korrekt e-post adress.'; $.fn.validatebox.defaults.rules.url.message = 'Vänligen ange en korrekt URL.'; $.fn.validatebox.defaults.rules.length.message = 'Vänligen ange ett nummer mellan {0} och {1}.'; $.fn.validatebox.defaults.rules.remote.message = 'Vänligen åtgärda detta fält.'; } if ($.fn.calendar) { $.fn.calendar.defaults.weeks = ['Sön', 'Mån', 'Tis', 'Ons', 'Tors', 'Fre', 'Lör']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec']; } if ($.fn.datebox) { $.fn.datebox.defaults.currentText = 'I dag'; $.fn.datebox.defaults.closeText = 'Stäng'; $.fn.datebox.defaults.okText = 'Ok'; } if ($.fn.datetimebox && $.fn.datebox) { $.extend($.fn.datetimebox.defaults, { currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-tr.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Sayfa'; $.fn.pagination.defaults.afterPageText = ' / {pages}'; $.fn.pagination.defaults.displayMsg = '{from} ile {to} arası gösteriliyor, toplam {total} kayıt'; } if ($.fn.datagrid){ $.fn.panel.defaults.loadingMessage = "Yükleniyor..."; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadingMessage = "Yükleniyor..."; $.fn.datagrid.defaults.loadMsg = 'İşleminiz Yapılıyor, lütfen bekleyin ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'Tamam'; $.messager.defaults.cancel = 'İptal'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = 'Bu alan zorunludur.'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = 'Lütfen geçerli bir email adresi giriniz.'; $.fn.validatebox.defaults.rules.url.message = 'Lütfen geçerli bir URL giriniz.'; $.fn.validatebox.defaults.rules.length.message = 'Lütfen {0} ile {1} arasında bir değer giriniz.'; $.fn.validatebox.defaults.rules.remote.message = 'Lütfen bu alanı düzeltiniz.'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['Pz','Pt','Sa','Ça','Pe','Cu','Ct']; $.fn.calendar.defaults.months = ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Bugün'; $.fn.datebox.defaults.closeText = 'Kapat'; $.fn.datebox.defaults.okText = 'Tamam'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); $.fn.datebox.defaults.formatter=function(date){ var y=date.getFullYear(); var m=date.getMonth()+1; var d=date.getDate(); if(m<10){m="0"+m;} if(d<10){d="0"+d;} return d+"."+m+"."+y; }; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = '第'; $.fn.pagination.defaults.afterPageText = '共{pages}页'; $.fn.pagination.defaults.displayMsg = '显示{from}到{to},共{total}记录'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = '正在处理,请稍待。。。'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = '确定'; $.messager.defaults.cancel = '取消'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = '该输入项为必输项'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = '请输入有效的电子邮件地址'; $.fn.validatebox.defaults.rules.url.message = '请输入有效的URL地址'; $.fn.validatebox.defaults.rules.length.message = '输入内容长度必须介于{0}和{1}之间'; $.fn.validatebox.defaults.rules.remote.message = '请修正该字段'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六']; $.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = '今天'; $.fn.datebox.defaults.closeText = '关闭'; $.fn.datebox.defaults.okText = '确定'; $.fn.datebox.defaults.formatter = function(date){ var y = date.getFullYear(); var m = date.getMonth()+1; var d = date.getDate(); return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d); }; $.fn.datebox.defaults.parser = function(s){ if (!s) return new Date(); var ss = s.split('-'); var y = parseInt(ss[0],10); var m = parseInt(ss[1],10); var d = parseInt(ss[2],10); if (!isNaN(y) && !isNaN(m) && !isNaN(d)){ return new Date(y,m-1,d); } else { return new Date(); } }; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } if ($.fn.datetimespinner){ $.fn.datetimespinner.defaults.selections = [[0,4],[5,7],[8,10],[11,13],[14,16],[17,19]] } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-zh_TW.js ================================================ if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = '第'; $.fn.pagination.defaults.afterPageText = '共{pages}頁'; $.fn.pagination.defaults.displayMsg = '顯示{from}到{to},共{total}記錄'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = '正在處理,請稍待。。。'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = '確定'; $.messager.defaults.cancel = '取消'; } $.map(['validatebox','textbox','filebox','searchbox', 'combo','combobox','combogrid','combotree', 'datebox','datetimebox','numberbox', 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ if ($.fn[plugin]){ $.fn[plugin].defaults.missingMessage = '該輸入項為必輸項'; } }); if ($.fn.validatebox){ $.fn.validatebox.defaults.rules.email.message = '請輸入有效的電子郵件地址'; $.fn.validatebox.defaults.rules.url.message = '請輸入有效的URL地址'; $.fn.validatebox.defaults.rules.length.message = '輸入內容長度必須介於{0}和{1}之間'; $.fn.validatebox.defaults.rules.remote.message = '請修正此欄位'; } if ($.fn.calendar){ $.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六']; $.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = '今天'; $.fn.datebox.defaults.closeText = '關閉'; $.fn.datebox.defaults.okText = '確定'; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText }); } if ($.fn.datetimespinner){ $.fn.datetimespinner.defaults.selections = [[0,4],[5,7],[8,10],[11,13],[14,16],[17,19]] } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.accordion.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2,_3){ var _4=$.data(_2,"accordion"); var _5=_4.options; var _6=_4.panels; var cc=$(_2); if(_3){ $.extend(_5,{width:_3.width,height:_3.height}); } cc._size(_5); var _7=0; var _8="auto"; var _9=cc.find(">div.panel>div.accordion-header"); if(_9.length){ _7=$(_9[0]).css("height","")._outerHeight(); } if(!isNaN(parseInt(_5.height))){ _8=cc.height()-_7*_9.length; } _a(true,_8-_a(false)+1); function _a(_b,_c){ var _d=0; for(var i=0;i<_6.length;i++){ var p=_6[i]; var h=p.panel("header")._outerHeight(_7); if(p.panel("options").collapsible==_b){ var _e=isNaN(_c)?undefined:(_c+_7*h.length); p.panel("resize",{width:cc.width(),height:(_b?_e:undefined)}); _d+=p.panel("panel").outerHeight()-_7*h.length; } } return _d; }; }; function _f(_10,_11,_12,all){ var _13=$.data(_10,"accordion").panels; var pp=[]; for(var i=0;i<_13.length;i++){ var p=_13[i]; if(_11){ if(p.panel("options")[_11]==_12){ pp.push(p); } }else{ if(p[0]==$(_12)[0]){ return i; } } } if(_11){ return all?pp:(pp.length?pp[0]:null); }else{ return -1; } }; function _14(_15){ return _f(_15,"collapsed",false,true); }; function _16(_17){ var pp=_14(_17); return pp.length?pp[0]:null; }; function _18(_19,_1a){ return _f(_19,null,_1a); }; function _1b(_1c,_1d){ var _1e=$.data(_1c,"accordion").panels; if(typeof _1d=="number"){ if(_1d<0||_1d>=_1e.length){ return null; }else{ return _1e[_1d]; } } return _f(_1c,"title",_1d); }; function _1f(_20){ var _21=$.data(_20,"accordion").options; var cc=$(_20); if(_21.border){ cc.removeClass("accordion-noborder"); }else{ cc.addClass("accordion-noborder"); } }; function _22(_23){ var _24=$.data(_23,"accordion"); var cc=$(_23); cc.addClass("accordion"); _24.panels=[]; cc.children("div").each(function(){ var _25=$.extend({},$.parser.parseOptions(this),{selected:($(this).attr("selected")?true:undefined)}); var pp=$(this); _24.panels.push(pp); _27(_23,pp,_25); }); cc.bind("_resize",function(e,_26){ if($(this).hasClass("easyui-fluid")||_26){ _1(_23); } return false; }); }; function _27(_28,pp,_29){ var _2a=$.data(_28,"accordion").options; pp.panel($.extend({},{collapsible:true,minimizable:false,maximizable:false,closable:false,doSize:false,collapsed:true,headerCls:"accordion-header",bodyCls:"accordion-body"},_29,{onBeforeExpand:function(){ if(_29.onBeforeExpand){ if(_29.onBeforeExpand.call(this)==false){ return false; } } if(!_2a.multiple){ var all=$.grep(_14(_28),function(p){ return p.panel("options").collapsible; }); for(var i=0;i").addClass("accordion-collapse accordion-expand").appendTo(_2e); t.bind("click",function(){ var _2f=_18(_28,pp); if(pp.panel("options").collapsed){ _30(_28,_2f); }else{ _35(_28,_2f); } return false; }); pp.panel("options").collapsible?t.show():t.hide(); _2d.click(function(){ $(this).find("a.accordion-collapse:visible").triggerHandler("click"); return false; }); }; function _30(_31,_32){ var p=_1b(_31,_32); if(!p){ return; } _33(_31); var _34=$.data(_31,"accordion").options; p.panel("expand",_34.animate); }; function _35(_36,_37){ var p=_1b(_36,_37); if(!p){ return; } _33(_36); var _38=$.data(_36,"accordion").options; p.panel("collapse",_38.animate); }; function _39(_3a){ var _3b=$.data(_3a,"accordion").options; var p=_f(_3a,"selected",true); if(p){ _3c(_18(_3a,p)); }else{ _3c(_3b.selected); } function _3c(_3d){ var _3e=_3b.animate; _3b.animate=false; _30(_3a,_3d); _3b.animate=_3e; }; }; function _33(_3f){ var _40=$.data(_3f,"accordion").panels; for(var i=0;i<_40.length;i++){ _40[i].stop(true,true); } }; function add(_41,_42){ var _43=$.data(_41,"accordion"); var _44=_43.options; var _45=_43.panels; if(_42.selected==undefined){ _42.selected=true; } _33(_41); var pp=$("
                                      ").appendTo(_41); _45.push(pp); _27(_41,pp,_42); _1(_41); _44.onAdd.call(_41,_42.title,_45.length-1); if(_42.selected){ _30(_41,_45.length-1); } }; function _46(_47,_48){ var _49=$.data(_47,"accordion"); var _4a=_49.options; var _4b=_49.panels; _33(_47); var _4c=_1b(_47,_48); var _4d=_4c.panel("options").title; var _4e=_18(_47,_4c); if(!_4c){ return; } if(_4a.onBeforeRemove.call(_47,_4d,_4e)==false){ return; } _4b.splice(_4e,1); _4c.panel("destroy"); if(_4b.length){ _1(_47); var _4f=_16(_47); if(!_4f){ _30(_47,0); } } _4a.onRemove.call(_47,_4d,_4e); }; $.fn.accordion=function(_50,_51){ if(typeof _50=="string"){ return $.fn.accordion.methods[_50](this,_51); } _50=_50||{}; return this.each(function(){ var _52=$.data(this,"accordion"); if(_52){ $.extend(_52.options,_50); }else{ $.data(this,"accordion",{options:$.extend({},$.fn.accordion.defaults,$.fn.accordion.parseOptions(this),_50),accordion:$(this).addClass("accordion"),panels:[]}); _22(this); } _1f(this); _1(this); _39(this); }); }; $.fn.accordion.methods={options:function(jq){ return $.data(jq[0],"accordion").options; },panels:function(jq){ return $.data(jq[0],"accordion").panels; },resize:function(jq,_53){ return jq.each(function(){ _1(this,_53); }); },getSelections:function(jq){ return _14(jq[0]); },getSelected:function(jq){ return _16(jq[0]); },getPanel:function(jq,_54){ return _1b(jq[0],_54); },getPanelIndex:function(jq,_55){ return _18(jq[0],_55); },select:function(jq,_56){ return jq.each(function(){ _30(this,_56); }); },unselect:function(jq,_57){ return jq.each(function(){ _35(this,_57); }); },add:function(jq,_58){ return jq.each(function(){ add(this,_58); }); },remove:function(jq,_59){ return jq.each(function(){ _46(this,_59); }); }}; $.fn.accordion.parseOptions=function(_5a){ var t=$(_5a); return $.extend({},$.parser.parseOptions(_5a,["width","height",{fit:"boolean",border:"boolean",animate:"boolean",multiple:"boolean",selected:"number"}])); }; $.fn.accordion.defaults={width:"auto",height:"auto",fit:false,border:true,animate:true,multiple:false,selected:0,onSelect:function(_5b,_5c){ },onUnselect:function(_5d,_5e){ },onAdd:function(_5f,_60){ },onBeforeRemove:function(_61,_62){ },onRemove:function(_63,_64){ }}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.calendar.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2,_3){ var _4=$.data(_2,"calendar").options; var t=$(_2); if(_3){ $.extend(_4,{width:_3.width,height:_3.height}); } t._size(_4,t.parent()); t.find(".calendar-body")._outerHeight(t.height()-t.find(".calendar-header")._outerHeight()); if(t.find(".calendar-menu").is(":visible")){ _5(_2); } }; function _6(_7){ $(_7).addClass("calendar").html("
                                      "+"
                                      "+"
                                      "+"
                                      "+"
                                      "+"
                                      "+""+"
                                      "+"
                                      "+"
                                      "+"
                                      "+"
                                      "+""+""+""+"
                                      "+"
                                      "+"
                                      "+"
                                      "+"
                                      "); $(_7).bind("_resize",function(e,_8){ if($(this).hasClass("easyui-fluid")||_8){ _1(_7); } return false; }); }; function _9(_a){ var _b=$.data(_a,"calendar").options; var _c=$(_a).find(".calendar-menu"); _c.find(".calendar-menu-year").unbind(".calendar").bind("keypress.calendar",function(e){ if(e.keyCode==13){ _d(true); } }); $(_a).unbind(".calendar").bind("mouseover.calendar",function(e){ var t=_e(e.target); if(t.hasClass("calendar-nav")||t.hasClass("calendar-text")||(t.hasClass("calendar-day")&&!t.hasClass("calendar-disabled"))){ t.addClass("calendar-nav-hover"); } }).bind("mouseout.calendar",function(e){ var t=_e(e.target); if(t.hasClass("calendar-nav")||t.hasClass("calendar-text")||(t.hasClass("calendar-day")&&!t.hasClass("calendar-disabled"))){ t.removeClass("calendar-nav-hover"); } }).bind("click.calendar",function(e){ var t=_e(e.target); if(t.hasClass("calendar-menu-next")||t.hasClass("calendar-nextyear")){ _f(1); }else{ if(t.hasClass("calendar-menu-prev")||t.hasClass("calendar-prevyear")){ _f(-1); }else{ if(t.hasClass("calendar-menu-month")){ _c.find(".calendar-selected").removeClass("calendar-selected"); t.addClass("calendar-selected"); _d(true); }else{ if(t.hasClass("calendar-prevmonth")){ _10(-1); }else{ if(t.hasClass("calendar-nextmonth")){ _10(1); }else{ if(t.hasClass("calendar-text")){ if(_c.is(":visible")){ _c.hide(); }else{ _5(_a); } }else{ if(t.hasClass("calendar-day")){ if(t.hasClass("calendar-disabled")){ return; } var _11=_b.current; t.closest("div.calendar-body").find(".calendar-selected").removeClass("calendar-selected"); t.addClass("calendar-selected"); var _12=t.attr("abbr").split(","); var y=parseInt(_12[0]); var m=parseInt(_12[1]); var d=parseInt(_12[2]); _b.current=new Date(y,m-1,d); _b.onSelect.call(_a,_b.current); if(!_11||_11.getTime()!=_b.current.getTime()){ _b.onChange.call(_a,_b.current,_11); } if(_b.year!=y||_b.month!=m){ _b.year=y; _b.month=m; _19(_a); } } } } } } } } }); function _e(t){ var day=$(t).closest(".calendar-day"); if(day.length){ return day; }else{ return $(t); } }; function _d(_13){ var _14=$(_a).find(".calendar-menu"); var _15=_14.find(".calendar-menu-year").val(); var _16=_14.find(".calendar-selected").attr("abbr"); if(!isNaN(_15)){ _b.year=parseInt(_15); _b.month=parseInt(_16); _19(_a); } if(_13){ _14.hide(); } }; function _f(_17){ _b.year+=_17; _19(_a); _c.find(".calendar-menu-year").val(_b.year); }; function _10(_18){ _b.month+=_18; if(_b.month>12){ _b.year++; _b.month=1; }else{ if(_b.month<1){ _b.year--; _b.month=12; } } _19(_a); _c.find("td.calendar-selected").removeClass("calendar-selected"); _c.find("td:eq("+(_b.month-1)+")").addClass("calendar-selected"); }; }; function _5(_1a){ var _1b=$.data(_1a,"calendar").options; $(_1a).find(".calendar-menu").show(); if($(_1a).find(".calendar-menu-month-inner").is(":empty")){ $(_1a).find(".calendar-menu-month-inner").empty(); var t=$("
                                      ").appendTo($(_1a).find(".calendar-menu-month-inner")); var idx=0; for(var i=0;i<3;i++){ var tr=$("").appendTo(t); for(var j=0;j<4;j++){ $("").html(_1b.months[idx++]).attr("abbr",idx).appendTo(tr); } } } var _1c=$(_1a).find(".calendar-body"); var _1d=$(_1a).find(".calendar-menu"); var _1e=_1d.find(".calendar-menu-year-inner"); var _1f=_1d.find(".calendar-menu-month-inner"); _1e.find("input").val(_1b.year).focus(); _1f.find("td.calendar-selected").removeClass("calendar-selected"); _1f.find("td:eq("+(_1b.month-1)+")").addClass("calendar-selected"); _1d._outerWidth(_1c._outerWidth()); _1d._outerHeight(_1c._outerHeight()); _1f._outerHeight(_1d.height()-_1e._outerHeight()); }; function _20(_21,_22,_23){ var _24=$.data(_21,"calendar").options; var _25=[]; var _26=new Date(_22,_23,0).getDate(); for(var i=1;i<=_26;i++){ _25.push([_22,_23,i]); } var _27=[],_28=[]; var _29=-1; while(_25.length>0){ var _2a=_25.shift(); _28.push(_2a); var day=new Date(_2a[0],_2a[1]-1,_2a[2]).getDay(); if(_29==day){ day=0; }else{ if(day==(_24.firstDay==0?7:_24.firstDay)-1){ _27.push(_28); _28=[]; } } _29=day; } if(_28.length){ _27.push(_28); } var _2b=_27[0]; if(_2b.length<7){ while(_2b.length<7){ var _2c=_2b[0]; var _2a=new Date(_2c[0],_2c[1]-1,_2c[2]-1); _2b.unshift([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]); } }else{ var _2c=_2b[0]; var _28=[]; for(var i=1;i<=7;i++){ var _2a=new Date(_2c[0],_2c[1]-1,_2c[2]-i); _28.unshift([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]); } _27.unshift(_28); } var _2d=_27[_27.length-1]; while(_2d.length<7){ var _2e=_2d[_2d.length-1]; var _2a=new Date(_2e[0],_2e[1]-1,_2e[2]+1); _2d.push([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]); } if(_27.length<6){ var _2e=_2d[_2d.length-1]; var _28=[]; for(var i=1;i<=7;i++){ var _2a=new Date(_2e[0],_2e[1]-1,_2e[2]+i); _28.push([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]); } _27.push(_28); } return _27; }; function _19(_2f){ var _30=$.data(_2f,"calendar").options; if(_30.current&&!_30.validator.call(_2f,_30.current)){ _30.current=null; } var now=new Date(); var _31=now.getFullYear()+","+(now.getMonth()+1)+","+now.getDate(); var _32=_30.current?(_30.current.getFullYear()+","+(_30.current.getMonth()+1)+","+_30.current.getDate()):""; var _33=6-_30.firstDay; var _34=_33+1; if(_33>=7){ _33-=7; } if(_34>=7){ _34-=7; } $(_2f).find(".calendar-title span").html(_30.months[_30.month-1]+" "+_30.year); var _35=$(_2f).find("div.calendar-body"); _35.children("table").remove(); var _36=[""]; _36.push(""); for(var i=_30.firstDay;i<_30.weeks.length;i++){ _36.push(""); } for(var i=0;i<_30.firstDay;i++){ _36.push(""); } _36.push(""); _36.push(""); var _37=_20(_2f,_30.year,_30.month); for(var i=0;i<_37.length;i++){ var _38=_37[i]; var cls=""; if(i==0){ cls="calendar-first"; }else{ if(i==_37.length-1){ cls="calendar-last"; } } _36.push(""); for(var j=0;j<_38.length;j++){ var day=_38[j]; var s=day[0]+","+day[1]+","+day[2]; var _39=new Date(day[0],parseInt(day[1])-1,day[2]); var d=_30.formatter.call(_2f,_39); var css=_30.styler.call(_2f,_39); var _3a=""; var _3b=""; if(typeof css=="string"){ _3b=css; }else{ if(css){ _3a=css["class"]||""; _3b=css["style"]||""; } } var cls="calendar-day"; if(!(_30.year==day[0]&&_30.month==day[1])){ cls+=" calendar-other-month"; } if(s==_31){ cls+=" calendar-today"; } if(s==_32){ cls+=" calendar-selected"; } if(j==_33){ cls+=" calendar-saturday"; }else{ if(j==_34){ cls+=" calendar-sunday"; } } if(j==0){ cls+=" calendar-first"; }else{ if(j==_38.length-1){ cls+=" calendar-last"; } } cls+=" "+_3a; if(!_30.validator.call(_2f,_39)){ cls+=" calendar-disabled"; } _36.push(""); } _36.push(""); } _36.push(""); _36.push("
                                      "+_30.weeks[i]+""+_30.weeks[i]+"
                                      "+d+"
                                      "); _35.append(_36.join("")); _35.children("table.calendar-dtable").prependTo(_35); _30.onNavigate.call(_2f,_30.year,_30.month); }; $.fn.calendar=function(_3c,_3d){ if(typeof _3c=="string"){ return $.fn.calendar.methods[_3c](this,_3d); } _3c=_3c||{}; return this.each(function(){ var _3e=$.data(this,"calendar"); if(_3e){ $.extend(_3e.options,_3c); }else{ _3e=$.data(this,"calendar",{options:$.extend({},$.fn.calendar.defaults,$.fn.calendar.parseOptions(this),_3c)}); _6(this); } if(_3e.options.border==false){ $(this).addClass("calendar-noborder"); } _1(this); _9(this); _19(this); $(this).find("div.calendar-menu").hide(); }); }; $.fn.calendar.methods={options:function(jq){ return $.data(jq[0],"calendar").options; },resize:function(jq,_3f){ return jq.each(function(){ _1(this,_3f); }); },moveTo:function(jq,_40){ return jq.each(function(){ var _41=$(this).calendar("options"); if(_41.validator.call(this,_40)){ var _42=_41.current; $(this).calendar({year:_40.getFullYear(),month:_40.getMonth()+1,current:_40}); if(!_42||_42.getTime()!=_40.getTime()){ _41.onChange.call(this,_41.current,_42); } } }); }}; $.fn.calendar.parseOptions=function(_43){ var t=$(_43); return $.extend({},$.parser.parseOptions(_43,[{firstDay:"number",fit:"boolean",border:"boolean"}])); }; $.fn.calendar.defaults={width:180,height:180,fit:false,border:true,firstDay:0,weeks:["S","M","T","W","T","F","S"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],year:new Date().getFullYear(),month:new Date().getMonth()+1,current:(function(){ var d=new Date(); return new Date(d.getFullYear(),d.getMonth(),d.getDate()); })(),formatter:function(_44){ return _44.getDate(); },styler:function(_45){ return ""; },validator:function(_46){ return true; },onSelect:function(_47){ },onChange:function(_48,_49){ },onNavigate:function(_4a,_4b){ }}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.combo.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ $(function(){ $(document).unbind(".combo").bind("mousedown.combo mousewheel.combo",function(e){ var p=$(e.target).closest("span.combo,div.combo-p"); if(p.length){ _1(p); return; } $("body>div.combo-p>div.combo-panel:visible").panel("close"); }); }); function _2(_3){ var _4=$.data(_3,"combo"); var _5=_4.options; if(!_4.panel){ _4.panel=$("
                                      ").appendTo("body"); _4.panel.panel({minWidth:_5.panelMinWidth,maxWidth:_5.panelMaxWidth,minHeight:_5.panelMinHeight,maxHeight:_5.panelMaxHeight,doSize:false,closed:true,cls:"combo-p",style:{position:"absolute",zIndex:10},onOpen:function(){ var _6=$(this).panel("options").comboTarget; var _7=$.data(_6,"combo"); if(_7){ _7.options.onShowPanel.call(_6); } },onBeforeClose:function(){ _1(this); },onClose:function(){ var _8=$(this).panel("options").comboTarget; var _9=$.data(_8,"combo"); if(_9){ _9.options.onHidePanel.call(_8); } }}); } var _a=$.extend(true,[],_5.icons); if(_5.hasDownArrow){ _a.push({iconCls:"combo-arrow",handler:function(e){ _f(e.data.target); }}); } $(_3).addClass("combo-f").textbox($.extend({},_5,{icons:_a,onChange:function(){ }})); $(_3).attr("comboName",$(_3).attr("textboxName")); _4.combo=$(_3).next(); _4.combo.addClass("combo"); }; function _b(_c){ var _d=$.data(_c,"combo"); var _e=_d.options; var p=_d.panel; if(p.is(":visible")){ p.panel("close"); } if(!_e.cloned){ p.panel("destroy"); } $(_c).textbox("destroy"); }; function _f(_10){ var _11=$.data(_10,"combo").panel; if(_11.is(":visible")){ _12(_10); }else{ var p=$(_10).closest("div.combo-panel"); $("div.combo-panel:visible").not(_11).not(p).panel("close"); $(_10).combo("showPanel"); } $(_10).combo("textbox").focus(); }; function _1(_13){ $(_13).find(".combo-f").each(function(){ var p=$(this).combo("panel"); if(p.is(":visible")){ p.panel("close"); } }); }; function _14(e){ var _15=e.data.target; var _16=$.data(_15,"combo"); var _17=_16.options; var _18=_16.panel; if(!_17.editable){ _f(_15); }else{ var p=$(_15).closest("div.combo-panel"); $("div.combo-panel:visible").not(_18).not(p).panel("close"); } }; function _19(e){ var _1a=e.data.target; var t=$(_1a); var _1b=t.data("combo"); var _1c=t.combo("options"); switch(e.keyCode){ case 38: _1c.keyHandler.up.call(_1a,e); break; case 40: _1c.keyHandler.down.call(_1a,e); break; case 37: _1c.keyHandler.left.call(_1a,e); break; case 39: _1c.keyHandler.right.call(_1a,e); break; case 13: e.preventDefault(); _1c.keyHandler.enter.call(_1a,e); return false; case 9: case 27: _12(_1a); break; default: if(_1c.editable){ if(_1b.timer){ clearTimeout(_1b.timer); } _1b.timer=setTimeout(function(){ var q=t.combo("getText"); if(_1b.previousText!=q){ _1b.previousText=q; t.combo("showPanel"); _1c.keyHandler.query.call(_1a,q,e); t.combo("validate"); } },_1c.delay); } } }; function _1d(_1e){ var _1f=$.data(_1e,"combo"); var _20=_1f.combo; var _21=_1f.panel; var _22=$(_1e).combo("options"); var _23=_21.panel("options"); _23.comboTarget=_1e; if(_23.closed){ _21.panel("panel").show().css({zIndex:($.fn.menu?$.fn.menu.defaults.zIndex++:$.fn.window.defaults.zIndex++),left:-999999}); _21.panel("resize",{width:(_22.panelWidth?_22.panelWidth:_20._outerWidth()),height:_22.panelHeight}); _21.panel("panel").hide(); _21.panel("open"); } (function(){ if(_21.is(":visible")){ _21.panel("move",{left:_24(),top:_25()}); setTimeout(arguments.callee,200); } })(); function _24(){ var _26=_20.offset().left; if(_22.panelAlign=="right"){ _26+=_20._outerWidth()-_21._outerWidth(); } if(_26+_21._outerWidth()>$(window)._outerWidth()+$(document).scrollLeft()){ _26=$(window)._outerWidth()+$(document).scrollLeft()-_21._outerWidth(); } if(_26<0){ _26=0; } return _26; }; function _25(){ var top=_20.offset().top+_20._outerHeight(); if(top+_21._outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){ top=_20.offset().top-_21._outerHeight(); } if(top<$(document).scrollTop()){ top=_20.offset().top+_20._outerHeight(); } return top; }; }; function _12(_27){ var _28=$.data(_27,"combo").panel; _28.panel("close"); }; function _29(_2a){ var _2b=$.data(_2a,"combo"); var _2c=_2b.options; var _2d=_2b.combo; $(_2a).textbox("clear"); if(_2c.multiple){ _2d.find(".textbox-value").remove(); }else{ _2d.find(".textbox-value").val(""); } }; function _2e(_2f,_30){ var _31=$.data(_2f,"combo"); var _32=$(_2f).textbox("getText"); if(_32!=_30){ $(_2f).textbox("setText",_30); _31.previousText=_30; } }; function _33(_34){ var _35=[]; var _36=$.data(_34,"combo").combo; _36.find(".textbox-value").each(function(){ _35.push($(this).val()); }); return _35; }; function _37(_38,_39){ var _3a=$.data(_38,"combo"); var _3b=_3a.options; var _3c=_3a.combo; if(!$.isArray(_39)){ _39=_39.split(_3b.separator); } var _3d=_33(_38); _3c.find(".textbox-value").remove(); var _3e=$(_38).attr("textboxName")||""; for(var i=0;i<_39.length;i++){ var _3f=$("").appendTo(_3c); _3f.attr("name",_3e); if(_3b.disabled){ _3f.attr("disabled","disabled"); } _3f.val(_39[i]); } var _40=(function(){ if(_3d.length!=_39.length){ return true; } var a1=$.extend(true,[],_3d); var a2=$.extend(true,[],_39); a1.sort(); a2.sort(); for(var i=0;i_c.height()){ var h=_c.scrollTop()+_d.position().top+_d.outerHeight()-_c.height(); _c.scrollTop(h); } } } }; function _e(_f,dir){ var _10=$.data(_f,"combobox").options; var _11=$(_f).combobox("panel"); var _12=_11.children("div.combobox-item-hover"); if(!_12.length){ _12=_11.children("div.combobox-item-selected"); } _12.removeClass("combobox-item-hover"); var _13="div.combobox-item:visible:not(.combobox-item-disabled):first"; var _14="div.combobox-item:visible:not(.combobox-item-disabled):last"; if(!_12.length){ _12=_11.children(dir=="next"?_13:_14); }else{ if(dir=="next"){ _12=_12.nextAll(_13); if(!_12.length){ _12=_11.children(_13); } }else{ _12=_12.prevAll(_13); if(!_12.length){ _12=_11.children(_14); } } } if(_12.length){ _12.addClass("combobox-item-hover"); var row=_10.finder.getRow(_f,_12); if(row){ _8(_f,row[_10.valueField]); if(_10.selectOnNavigation){ _15(_f,row[_10.valueField]); } } } }; function _15(_16,_17){ var _18=$.data(_16,"combobox").options; var _19=$(_16).combo("getValues"); if($.inArray(_17+"",_19)==-1){ if(_18.multiple){ _19.push(_17); }else{ _19=[_17]; } _1a(_16,_19); _18.onSelect.call(_16,_18.finder.getRow(_16,_17)); } }; function _1b(_1c,_1d){ var _1e=$.data(_1c,"combobox").options; var _1f=$(_1c).combo("getValues"); var _20=$.inArray(_1d+"",_1f); if(_20>=0){ _1f.splice(_20,1); _1a(_1c,_1f); _1e.onUnselect.call(_1c,_1e.finder.getRow(_1c,_1d)); } }; function _1a(_21,_22,_23){ var _24=$.data(_21,"combobox").options; var _25=$(_21).combo("panel"); if(!$.isArray(_22)){ _22=_22.split(_24.separator); } _25.find("div.combobox-item-selected").removeClass("combobox-item-selected"); var vv=[],ss=[]; for(var i=0;i<_22.length;i++){ var v=_22[i]; var s=v; _24.finder.getEl(_21,v).addClass("combobox-item-selected"); var row=_24.finder.getRow(_21,v); if(row){ s=row[_24.textField]; } vv.push(v); ss.push(s); } $(_21).combo("setValues",vv); if(!_23){ $(_21).combo("setText",ss.join(_24.separator)); } }; function _26(_27,_28,_29){ var _2a=$.data(_27,"combobox"); var _2b=_2a.options; _2a.data=_2b.loadFilter.call(_27,_28); _2a.groups=[]; _28=_2a.data; var _2c=$(_27).combobox("getValues"); var dd=[]; var _2d=undefined; for(var i=0;i<_28.length;i++){ var row=_28[i]; var v=row[_2b.valueField]+""; var s=row[_2b.textField]; var g=row[_2b.groupField]; if(g){ if(_2d!=g){ _2d=g; _2a.groups.push(g); dd.push("
                                      "); dd.push(_2b.groupFormatter?_2b.groupFormatter.call(_27,g):g); dd.push("
                                      "); } }else{ _2d=undefined; } var cls="combobox-item"+(row.disabled?" combobox-item-disabled":"")+(g?" combobox-gitem":""); dd.push("
                                      "); dd.push(_2b.formatter?_2b.formatter.call(_27,row):s); dd.push("
                                      "); if(row["selected"]&&$.inArray(v,_2c)==-1){ _2c.push(v); } } $(_27).combo("panel").html(dd.join("")); if(_2b.multiple){ _1a(_27,_2c,_29); }else{ _1a(_27,_2c.length?[_2c[_2c.length-1]]:[],_29); } _2b.onLoadSuccess.call(_27,_28); }; function _2e(_2f,url,_30,_31){ var _32=$.data(_2f,"combobox").options; if(url){ _32.url=url; } _30=_30||{}; if(_32.onBeforeLoad.call(_2f,_30)==false){ return; } _32.loader.call(_2f,_30,function(_33){ _26(_2f,_33,_31); },function(){ _32.onLoadError.apply(this,arguments); }); }; function _34(_35,q){ var _36=$.data(_35,"combobox"); var _37=_36.options; if(_37.multiple&&!q){ _1a(_35,[],true); }else{ _1a(_35,[q],true); } if(_37.mode=="remote"){ _2e(_35,null,{q:q},true); }else{ var _38=$(_35).combo("panel"); _38.find("div.combobox-item-selected,div.combobox-item-hover").removeClass("combobox-item-selected combobox-item-hover"); _38.find("div.combobox-item,div.combobox-group").hide(); var _39=_36.data; var vv=[]; var qq=_37.multiple?q.split(_37.separator):[q]; $.map(qq,function(q){ q=$.trim(q); var _3a=undefined; for(var i=0;i<_39.length;i++){ var row=_39[i]; if(_37.filter.call(_35,q,row)){ var v=row[_37.valueField]; var s=row[_37.textField]; var g=row[_37.groupField]; var _3b=_37.finder.getEl(_35,v).show(); if(s.toLowerCase()==q.toLowerCase()){ vv.push(v); _3b.addClass("combobox-item-selected"); } if(_37.groupField&&_3a!=g){ $("#"+_36.groupIdPrefix+"_"+$.inArray(g,_36.groups)).show(); _3a=g; } } } }); _1a(_35,vv,true); } }; function _3c(_3d){ var t=$(_3d); var _3e=t.combobox("options"); var _3f=t.combobox("panel"); var _40=_3f.children("div.combobox-item-hover"); if(_40.length){ var row=_3e.finder.getRow(_3d,_40); var _41=row[_3e.valueField]; if(_3e.multiple){ if(_40.hasClass("combobox-item-selected")){ t.combobox("unselect",_41); }else{ t.combobox("select",_41); } }else{ t.combobox("select",_41); } } var vv=[]; $.map(t.combobox("getValues"),function(v){ if(_2(_3d,v)>=0){ vv.push(v); } }); t.combobox("setValues",vv); if(!_3e.multiple){ t.combobox("hidePanel"); } }; function _42(_43){ var _44=$.data(_43,"combobox"); var _45=_44.options; _1++; _44.itemIdPrefix="_easyui_combobox_i"+_1; _44.groupIdPrefix="_easyui_combobox_g"+_1; $(_43).addClass("combobox-f"); $(_43).combo($.extend({},_45,{onShowPanel:function(){ $(_43).combo("panel").find("div.combobox-item,div.combobox-group").show(); _8(_43,$(_43).combobox("getValue")); _45.onShowPanel.call(_43); }})); $(_43).combo("panel").unbind().bind("mouseover",function(e){ $(this).children("div.combobox-item-hover").removeClass("combobox-item-hover"); var _46=$(e.target).closest("div.combobox-item"); if(!_46.hasClass("combobox-item-disabled")){ _46.addClass("combobox-item-hover"); } e.stopPropagation(); }).bind("mouseout",function(e){ $(e.target).closest("div.combobox-item").removeClass("combobox-item-hover"); e.stopPropagation(); }).bind("click",function(e){ var _47=$(e.target).closest("div.combobox-item"); if(!_47.length||_47.hasClass("combobox-item-disabled")){ return; } var row=_45.finder.getRow(_43,_47); if(!row){ return; } var _48=row[_45.valueField]; if(_45.multiple){ if(_47.hasClass("combobox-item-selected")){ _1b(_43,_48); }else{ _15(_43,_48); } }else{ _15(_43,_48); $(_43).combo("hidePanel"); } e.stopPropagation(); }); }; $.fn.combobox=function(_49,_4a){ if(typeof _49=="string"){ var _4b=$.fn.combobox.methods[_49]; if(_4b){ return _4b(this,_4a); }else{ return this.combo(_49,_4a); } } _49=_49||{}; return this.each(function(){ var _4c=$.data(this,"combobox"); if(_4c){ $.extend(_4c.options,_49); _42(this); }else{ _4c=$.data(this,"combobox",{options:$.extend({},$.fn.combobox.defaults,$.fn.combobox.parseOptions(this),_49),data:[]}); _42(this); var _4d=$.fn.combobox.parseData(this); if(_4d.length){ _26(this,_4d); } } if(_4c.options.data){ _26(this,_4c.options.data); } _2e(this); }); }; $.fn.combobox.methods={options:function(jq){ var _4e=jq.combo("options"); return $.extend($.data(jq[0],"combobox").options,{width:_4e.width,height:_4e.height,originalValue:_4e.originalValue,disabled:_4e.disabled,readonly:_4e.readonly}); },getData:function(jq){ return $.data(jq[0],"combobox").data; },setValues:function(jq,_4f){ return jq.each(function(){ _1a(this,_4f); }); },setValue:function(jq,_50){ return jq.each(function(){ _1a(this,[_50]); }); },clear:function(jq){ return jq.each(function(){ $(this).combo("clear"); var _51=$(this).combo("panel"); _51.find("div.combobox-item-selected").removeClass("combobox-item-selected"); }); },reset:function(jq){ return jq.each(function(){ var _52=$(this).combobox("options"); if(_52.multiple){ $(this).combobox("setValues",_52.originalValue); }else{ $(this).combobox("setValue",_52.originalValue); } }); },loadData:function(jq,_53){ return jq.each(function(){ _26(this,_53); }); },reload:function(jq,url){ return jq.each(function(){ _2e(this,url); }); },select:function(jq,_54){ return jq.each(function(){ _15(this,_54); }); },unselect:function(jq,_55){ return jq.each(function(){ _1b(this,_55); }); }}; $.fn.combobox.parseOptions=function(_56){ var t=$(_56); return $.extend({},$.fn.combo.parseOptions(_56),$.parser.parseOptions(_56,["valueField","textField","groupField","mode","method","url"])); }; $.fn.combobox.parseData=function(_57){ var _58=[]; var _59=$(_57).combobox("options"); $(_57).children().each(function(){ if(this.tagName.toLowerCase()=="optgroup"){ var _5a=$(this).attr("label"); $(this).children().each(function(){ _5b(this,_5a); }); }else{ _5b(this); } }); return _58; function _5b(el,_5c){ var t=$(el); var row={}; row[_59.valueField]=t.attr("value")!=undefined?t.attr("value"):t.text(); row[_59.textField]=t.text(); row["selected"]=t.is(":selected"); row["disabled"]=t.is(":disabled"); if(_5c){ _59.groupField=_59.groupField||"group"; row[_59.groupField]=_5c; } _58.push(row); }; }; $.fn.combobox.defaults=$.extend({},$.fn.combo.defaults,{valueField:"value",textField:"text",groupField:null,groupFormatter:function(_5d){ return _5d; },mode:"local",method:"post",url:null,data:null,keyHandler:{up:function(e){ _e(this,"prev"); e.preventDefault(); },down:function(e){ _e(this,"next"); e.preventDefault(); },left:function(e){ },right:function(e){ },enter:function(e){ _3c(this); },query:function(q,e){ _34(this,q); }},filter:function(q,row){ var _5e=$(this).combobox("options"); return row[_5e.textField].toLowerCase().indexOf(q.toLowerCase())==0; },formatter:function(row){ var _5f=$(this).combobox("options"); return row[_5f.textField]; },loader:function(_60,_61,_62){ var _63=$(this).combobox("options"); if(!_63.url){ return false; } $.ajax({type:_63.method,url:_63.url,data:_60,dataType:"json",success:function(_64){ _61(_64); },error:function(){ _62.apply(this,arguments); }}); },loadFilter:function(_65){ return _65; },finder:{getEl:function(_66,_67){ var _68=_2(_66,_67); var id=$.data(_66,"combobox").itemIdPrefix+"_"+_68; return $("#"+id); },getRow:function(_69,p){ var _6a=$.data(_69,"combobox"); var _6b=(p instanceof jQuery)?p.attr("id").substr(_6a.itemIdPrefix.length+1):_2(_69,p); return _6a.data[parseInt(_6b)]; }},onBeforeLoad:function(_6c){ },onLoadSuccess:function(){ },onLoadError:function(){ },onSelect:function(_6d){ },onUnselect:function(_6e){ }}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.combogrid.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"combogrid"); var _4=_3.options; var _5=_3.grid; $(_2).addClass("combogrid-f").combo($.extend({},_4,{onShowPanel:function(){ var p=$(this).combogrid("panel"); var _6=p.outerHeight()-p.height(); var _7=p._size("minHeight"); var _8=p._size("maxHeight"); $(this).combogrid("grid").datagrid("resize",{width:"100%",height:(isNaN(parseInt(_4.panelHeight))?"auto":"100%"),minHeight:(_7?_7-_6:""),maxHeight:(_8?_8-_6:"")}); _4.onShowPanel.call(this); }})); var _9=$(_2).combo("panel"); if(!_5){ _5=$("
                                      ").appendTo(_9); _3.grid=_5; } _5.datagrid($.extend({},_4,{border:false,singleSelect:(!_4.multiple),onLoadSuccess:function(_a){ var _b=$(_2).combo("getValues"); var _c=_4.onSelect; _4.onSelect=function(){ }; _1c(_2,_b,_3.remainText); _4.onSelect=_c; _4.onLoadSuccess.apply(_2,arguments); },onClickRow:_d,onSelect:function(_e,_f){ _10(); _4.onSelect.call(this,_e,_f); },onUnselect:function(_11,row){ _10(); _4.onUnselect.call(this,_11,row); },onSelectAll:function(_12){ _10(); _4.onSelectAll.call(this,_12); },onUnselectAll:function(_13){ if(_4.multiple){ _10(); } _4.onUnselectAll.call(this,_13); }})); function _d(_14,row){ _3.remainText=false; _10(); if(!_4.multiple){ $(_2).combo("hidePanel"); } _4.onClickRow.call(this,_14,row); }; function _10(){ var _15=_5.datagrid("getSelections"); var vv=[],ss=[]; for(var i=0;i<_15.length;i++){ vv.push(_15[i][_4.idField]); ss.push(_15[i][_4.textField]); } if(!_4.multiple){ $(_2).combo("setValues",(vv.length?vv:[""])); }else{ $(_2).combo("setValues",vv); } if(!_3.remainText){ $(_2).combo("setText",ss.join(_4.separator)); } }; }; function nav(_16,dir){ var _17=$.data(_16,"combogrid"); var _18=_17.options; var _19=_17.grid; var _1a=_19.datagrid("getRows").length; if(!_1a){ return; } var tr=_18.finder.getTr(_19[0],null,"highlight"); if(!tr.length){ tr=_18.finder.getTr(_19[0],null,"selected"); } var _1b; if(!tr.length){ _1b=(dir=="next"?0:_1a-1); }else{ var _1b=parseInt(tr.attr("datagrid-row-index")); _1b+=(dir=="next"?1:-1); if(_1b<0){ _1b=_1a-1; } if(_1b>=_1a){ _1b=0; } } _19.datagrid("highlightRow",_1b); if(_18.selectOnNavigation){ _17.remainText=false; _19.datagrid("selectRow",_1b); } }; function _1c(_1d,_1e,_1f){ var _20=$.data(_1d,"combogrid"); var _21=_20.options; var _22=_20.grid; var _23=_22.datagrid("getRows"); var ss=[]; var _24=$(_1d).combo("getValues"); var _25=$(_1d).combo("options"); var _26=_25.onChange; _25.onChange=function(){ }; _22.datagrid("clearSelections"); if(!$.isArray(_1e)){ _1e=_1e.split(_21.separator); } for(var i=0;i<_1e.length;i++){ var _27=_22.datagrid("getRowIndex",_1e[i]); if(_27>=0){ _22.datagrid("selectRow",_27); ss.push(_23[_27][_21.textField]); }else{ ss.push(_1e[i]); } } $(_1d).combo("setValues",_24); _25.onChange=_26; $(_1d).combo("setValues",_1e); if(!_1f){ var s=ss.join(_21.separator); if($(_1d).combo("getText")!=s){ $(_1d).combo("setText",s); } } }; function _28(_29,q){ var _2a=$.data(_29,"combogrid"); var _2b=_2a.options; var _2c=_2a.grid; _2a.remainText=true; if(_2b.multiple&&!q){ _1c(_29,[],true); }else{ _1c(_29,[q],true); } if(_2b.mode=="remote"){ _2c.datagrid("clearSelections"); _2c.datagrid("load",$.extend({},_2b.queryParams,{q:q})); }else{ if(!q){ return; } _2c.datagrid("clearSelections").datagrid("highlightRow",-1); var _2d=_2c.datagrid("getRows"); var qq=_2b.multiple?q.split(_2b.separator):[q]; $.map(qq,function(q){ q=$.trim(q); if(q){ $.map(_2d,function(row,i){ if(q==row[_2b.textField]){ _2c.datagrid("selectRow",i); }else{ if(_2b.filter.call(_29,q,row)){ _2c.datagrid("highlightRow",i); } } }); } }); } }; function _2e(_2f){ var _30=$.data(_2f,"combogrid"); var _31=_30.options; var _32=_30.grid; var tr=_31.finder.getTr(_32[0],null,"highlight"); _30.remainText=false; if(tr.length){ var _33=parseInt(tr.attr("datagrid-row-index")); if(_31.multiple){ if(tr.hasClass("datagrid-row-selected")){ _32.datagrid("unselectRow",_33); }else{ _32.datagrid("selectRow",_33); } }else{ _32.datagrid("selectRow",_33); } } var vv=[]; $.map(_32.datagrid("getSelections"),function(row){ vv.push(row[_31.idField]); }); $(_2f).combogrid("setValues",vv); if(!_31.multiple){ $(_2f).combogrid("hidePanel"); } }; $.fn.combogrid=function(_34,_35){ if(typeof _34=="string"){ var _36=$.fn.combogrid.methods[_34]; if(_36){ return _36(this,_35); }else{ return this.combo(_34,_35); } } _34=_34||{}; return this.each(function(){ var _37=$.data(this,"combogrid"); if(_37){ $.extend(_37.options,_34); }else{ _37=$.data(this,"combogrid",{options:$.extend({},$.fn.combogrid.defaults,$.fn.combogrid.parseOptions(this),_34)}); } _1(this); }); }; $.fn.combogrid.methods={options:function(jq){ var _38=jq.combo("options"); return $.extend($.data(jq[0],"combogrid").options,{width:_38.width,height:_38.height,originalValue:_38.originalValue,disabled:_38.disabled,readonly:_38.readonly}); },grid:function(jq){ return $.data(jq[0],"combogrid").grid; },setValues:function(jq,_39){ return jq.each(function(){ _1c(this,_39); }); },setValue:function(jq,_3a){ return jq.each(function(){ _1c(this,[_3a]); }); },clear:function(jq){ return jq.each(function(){ $(this).combogrid("grid").datagrid("clearSelections"); $(this).combo("clear"); }); },reset:function(jq){ return jq.each(function(){ var _3b=$(this).combogrid("options"); if(_3b.multiple){ $(this).combogrid("setValues",_3b.originalValue); }else{ $(this).combogrid("setValue",_3b.originalValue); } }); }}; $.fn.combogrid.parseOptions=function(_3c){ var t=$(_3c); return $.extend({},$.fn.combo.parseOptions(_3c),$.fn.datagrid.parseOptions(_3c),$.parser.parseOptions(_3c,["idField","textField","mode"])); }; $.fn.combogrid.defaults=$.extend({},$.fn.combo.defaults,$.fn.datagrid.defaults,{height:22,loadMsg:null,idField:null,textField:null,mode:"local",keyHandler:{up:function(e){ nav(this,"prev"); e.preventDefault(); },down:function(e){ nav(this,"next"); e.preventDefault(); },left:function(e){ },right:function(e){ },enter:function(e){ _2e(this); },query:function(q,e){ _28(this,q); }},filter:function(q,row){ var _3d=$(this).combogrid("options"); return row[_3d.textField].toLowerCase().indexOf(q.toLowerCase())==0; }}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.combotree.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"combotree"); var _4=_3.options; var _5=_3.tree; $(_2).addClass("combotree-f"); $(_2).combo(_4); var _6=$(_2).combo("panel"); if(!_5){ _5=$("
                                        ").appendTo(_6); $.data(_2,"combotree").tree=_5; } _5.tree($.extend({},_4,{checkbox:_4.multiple,onLoadSuccess:function(_7,_8){ var _9=$(_2).combotree("getValues"); if(_4.multiple){ var _a=_5.tree("getChecked"); for(var i=0;i<_a.length;i++){ var id=_a[i].id; (function(){ for(var i=0;i<_9.length;i++){ if(id==_9[i]){ return; } } _9.push(id); })(); } } $(_2).combotree("setValues",_9); _4.onLoadSuccess.call(this,_7,_8); },onClick:function(_b){ if(_4.multiple){ $(this).tree(_b.checked?"uncheck":"check",_b.target); }else{ $(_2).combo("hidePanel"); } _e(_2); _4.onClick.call(this,_b); },onCheck:function(_c,_d){ _e(_2); _4.onCheck.call(this,_c,_d); }})); }; function _e(_f){ var _10=$.data(_f,"combotree"); var _11=_10.options; var _12=_10.tree; var vv=[],ss=[]; if(_11.multiple){ var _13=_12.tree("getChecked"); for(var i=0;i<_13.length;i++){ vv.push(_13[i].id); ss.push(_13[i].text); } }else{ var _14=_12.tree("getSelected"); if(_14){ vv.push(_14.id); ss.push(_14.text); } } $(_f).combo("setValues",vv).combo("setText",ss.join(_11.separator)); }; function _15(_16,_17){ var _18=$.data(_16,"combotree"); var _19=_18.options; var _1a=_18.tree; var _1b=_1a.tree("options"); var _1c=_1b.onCheck; var _1d=_1b.onSelect; _1b.onCheck=_1b.onSelect=function(){ }; _1a.find("span.tree-checkbox").addClass("tree-checkbox0").removeClass("tree-checkbox1 tree-checkbox2"); if(!$.isArray(_17)){ _17=_17.split(_19.separator); } for(var i=0;i<_17.length;i++){ var _1e=_1a.tree("find",_17[i]); if(_1e){ _1a.tree("check",_1e.target); _1a.tree("select",_1e.target); } } _1b.onCheck=_1c; _1b.onSelect=_1d; _e(_16); }; $.fn.combotree=function(_1f,_20){ if(typeof _1f=="string"){ var _21=$.fn.combotree.methods[_1f]; if(_21){ return _21(this,_20); }else{ return this.combo(_1f,_20); } } _1f=_1f||{}; return this.each(function(){ var _22=$.data(this,"combotree"); if(_22){ $.extend(_22.options,_1f); }else{ $.data(this,"combotree",{options:$.extend({},$.fn.combotree.defaults,$.fn.combotree.parseOptions(this),_1f)}); } _1(this); }); }; $.fn.combotree.methods={options:function(jq){ var _23=jq.combo("options"); return $.extend($.data(jq[0],"combotree").options,{width:_23.width,height:_23.height,originalValue:_23.originalValue,disabled:_23.disabled,readonly:_23.readonly}); },clone:function(jq,_24){ var t=jq.combo("clone",_24); t.data("combotree",{options:$.extend(true,{},jq.combotree("options")),tree:jq.combotree("tree")}); return t; },tree:function(jq){ return $.data(jq[0],"combotree").tree; },loadData:function(jq,_25){ return jq.each(function(){ var _26=$.data(this,"combotree").options; _26.data=_25; var _27=$.data(this,"combotree").tree; _27.tree("loadData",_25); }); },reload:function(jq,url){ return jq.each(function(){ var _28=$.data(this,"combotree").options; var _29=$.data(this,"combotree").tree; if(url){ _28.url=url; } _29.tree({url:_28.url}); }); },setValues:function(jq,_2a){ return jq.each(function(){ _15(this,_2a); }); },setValue:function(jq,_2b){ return jq.each(function(){ _15(this,[_2b]); }); },clear:function(jq){ return jq.each(function(){ var _2c=$.data(this,"combotree").tree; _2c.find("div.tree-node-selected").removeClass("tree-node-selected"); var cc=_2c.tree("getChecked"); for(var i=0;i"]; for(var i=0;i<_f.length;i++){ _e.cache[_f[i][0]]={width:_f[i][1]}; } var _10=0; for(var s in _e.cache){ var _11=_e.cache[s]; _11.index=_10++; ss.push(s+"{width:"+_11.width+"}"); } ss.push(""); $(ss.join("\n")).appendTo(cc); cc.children("style[easyui]:not(:last)").remove(); },getRule:function(_12){ var _13=cc.children("style[easyui]:last")[0]; var _14=_13.styleSheet?_13.styleSheet:(_13.sheet||document.styleSheets[document.styleSheets.length-1]); var _15=_14.cssRules||_14.rules; return _15[_12]; },set:function(_16,_17){ var _18=_e.cache[_16]; if(_18){ _18.width=_17; var _19=this.getRule(_18.index); if(_19){ _19.style["width"]=_17; } } },remove:function(_1a){ var tmp=[]; for(var s in _e.cache){ if(s.indexOf(_1a)==-1){ tmp.push([s,_e.cache[s].width]); } } _e.cache={}; this.add(tmp); },dirty:function(_1b){ if(_1b){ _e.dirty.push(_1b); } },clean:function(){ for(var i=0;i<_e.dirty.length;i++){ this.remove(_e.dirty[i]); } _e.dirty=[]; }}; }; function _1c(_1d,_1e){ var _1f=$.data(_1d,"datagrid"); var _20=_1f.options; var _21=_1f.panel; if(_1e){ $.extend(_20,_1e); } if(_20.fit==true){ var p=_21.panel("panel").parent(); _20.width=p.width(); _20.height=p.height(); } _21.panel("resize",_20); }; function _22(_23){ var _24=$.data(_23,"datagrid"); var _25=_24.options; var dc=_24.dc; var _26=_24.panel; var _27=_26.width(); var _28=_26.height(); var _29=dc.view; var _2a=dc.view1; var _2b=dc.view2; var _2c=_2a.children("div.datagrid-header"); var _2d=_2b.children("div.datagrid-header"); var _2e=_2c.find("table"); var _2f=_2d.find("table"); _29.width(_27); var _30=_2c.children("div.datagrid-header-inner").show(); _2a.width(_30.find("table").width()); if(!_25.showHeader){ _30.hide(); } _2b.width(_27-_2a._outerWidth()); _2a.children("div.datagrid-header,div.datagrid-body,div.datagrid-footer").width(_2a.width()); _2b.children("div.datagrid-header,div.datagrid-body,div.datagrid-footer").width(_2b.width()); var hh; _2c.add(_2d).css("height",""); _2e.add(_2f).css("height",""); hh=Math.max(_2e.height(),_2f.height()); _2e.add(_2f).height(hh); _2c.add(_2d)._outerHeight(hh); dc.body1.add(dc.body2).children("table.datagrid-btable-frozen").css({position:"absolute",top:dc.header2._outerHeight()}); var _31=dc.body2.children("table.datagrid-btable-frozen")._outerHeight(); var _32=_31+_2b.children("div.datagrid-header")._outerHeight()+_2b.children("div.datagrid-footer")._outerHeight()+_26.children("div.datagrid-toolbar")._outerHeight(); _26.children("div.datagrid-pager").each(function(){ _32+=$(this)._outerHeight(); }); var _33=_26.outerHeight()-_26.height(); var _34=_26._size("minHeight")||""; var _35=_26._size("maxHeight")||""; _2a.add(_2b).children("div.datagrid-body").css({marginTop:_31,height:(isNaN(parseInt(_25.height))?"":(_28-_32)),minHeight:(_34?_34-_33-_32:""),maxHeight:(_35?_35-_33-_32:"")}); _29.height(_2b.height()); }; function _36(_37,_38,_39){ var _3a=$.data(_37,"datagrid").data.rows; var _3b=$.data(_37,"datagrid").options; var dc=$.data(_37,"datagrid").dc; if(!dc.body1.is(":empty")&&(!_3b.nowrap||_3b.autoRowHeight||_39)){ if(_38!=undefined){ var tr1=_3b.finder.getTr(_37,_38,"body",1); var tr2=_3b.finder.getTr(_37,_38,"body",2); _3c(tr1,tr2); }else{ var tr1=_3b.finder.getTr(_37,0,"allbody",1); var tr2=_3b.finder.getTr(_37,0,"allbody",2); _3c(tr1,tr2); if(_3b.showFooter){ var tr1=_3b.finder.getTr(_37,0,"allfooter",1); var tr2=_3b.finder.getTr(_37,0,"allfooter",2); _3c(tr1,tr2); } } } _22(_37); if(_3b.height=="auto"){ var _3d=dc.body1.parent(); var _3e=dc.body2; var _3f=_40(_3e); var _41=_3f.height; if(_3f.width>_3e.width()){ _41+=18; } _41-=parseInt(_3e.css("marginTop"))||0; _3d.height(_41); _3e.height(_41); dc.view.height(dc.view2.height()); } dc.body2.triggerHandler("scroll"); function _3c(_42,_43){ for(var i=0;i<_43.length;i++){ var tr1=$(_42[i]); var tr2=$(_43[i]); tr1.css("height",""); tr2.css("height",""); var _44=Math.max(tr1.height(),tr2.height()); tr1.css("height",_44); tr2.css("height",_44); } }; function _40(cc){ var _45=0; var _46=0; $(cc).children().each(function(){ var c=$(this); if(c.is(":visible")){ _46+=c._outerHeight(); if(_45"); } _4c(true); _4c(false); _22(_48); function _4c(_4d){ var _4e=_4d?1:2; var tr=_4b.finder.getTr(_48,_49,"body",_4e); (_4d?dc.body1:dc.body2).children("table.datagrid-btable-frozen").append(tr); }; }; function _4f(_50,_51){ function _52(){ var _53=[]; var _54=[]; $(_50).children("thead").each(function(){ var opt=$.parser.parseOptions(this,[{frozen:"boolean"}]); $(this).find("tr").each(function(){ var _55=[]; $(this).find("th").each(function(){ var th=$(this); var col=$.extend({},$.parser.parseOptions(this,["field","align","halign","order","width",{sortable:"boolean",checkbox:"boolean",resizable:"boolean",fixed:"boolean"},{rowspan:"number",colspan:"number"}]),{title:(th.html()||undefined),hidden:(th.attr("hidden")?true:undefined),formatter:(th.attr("formatter")?eval(th.attr("formatter")):undefined),styler:(th.attr("styler")?eval(th.attr("styler")):undefined),sorter:(th.attr("sorter")?eval(th.attr("sorter")):undefined)}); if(col.width&&String(col.width).indexOf("%")==-1){ col.width=parseInt(col.width); } if(th.attr("editor")){ var s=$.trim(th.attr("editor")); if(s.substr(0,1)=="{"){ col.editor=eval("("+s+")"); }else{ col.editor=s; } } _55.push(col); }); opt.frozen?_53.push(_55):_54.push(_55); }); }); return [_53,_54]; }; var _56=$("
                                        "+"
                                        "+"
                                        "+"
                                        "+"
                                        "+"
                                        "+"
                                        "+"
                                        "+"
                                        "+"
                                        "+""+"
                                        "+"
                                        "+"
                                        "+"
                                        "+"
                                        "+"
                                        "+"
                                        "+"
                                        "+""+"
                                        "+"
                                        "+"
                                        "+"
                                        ").insertAfter(_50); _56.panel({doSize:false,cls:"datagrid"}); $(_50).addClass("datagrid-f").hide().appendTo(_56.children("div.datagrid-view")); var cc=_52(); var _57=_56.children("div.datagrid-view"); var _58=_57.children("div.datagrid-view1"); var _59=_57.children("div.datagrid-view2"); return {panel:_56,frozenColumns:cc[0],columns:cc[1],dc:{view:_57,view1:_58,view2:_59,header1:_58.children("div.datagrid-header").children("div.datagrid-header-inner"),header2:_59.children("div.datagrid-header").children("div.datagrid-header-inner"),body1:_58.children("div.datagrid-body").children("div.datagrid-body-inner"),body2:_59.children("div.datagrid-body"),footer1:_58.children("div.datagrid-footer").children("div.datagrid-footer-inner"),footer2:_59.children("div.datagrid-footer").children("div.datagrid-footer-inner")}}; }; function _5a(_5b){ var _5c=$.data(_5b,"datagrid"); var _5d=_5c.options; var dc=_5c.dc; var _5e=_5c.panel; _5c.ss=$(_5b).datagrid("createStyleSheet"); _5e.panel($.extend({},_5d,{id:null,doSize:false,onResize:function(_5f,_60){ setTimeout(function(){ if($.data(_5b,"datagrid")){ _22(_5b); _b0(_5b); _5d.onResize.call(_5e,_5f,_60); } },0); },onExpand:function(){ _36(_5b); _5d.onExpand.call(_5e); }})); _5c.rowIdPrefix="datagrid-row-r"+(++_1); _5c.cellClassPrefix="datagrid-cell-c"+_1; _61(dc.header1,_5d.frozenColumns,true); _61(dc.header2,_5d.columns,false); _62(); dc.header1.add(dc.header2).css("display",_5d.showHeader?"block":"none"); dc.footer1.add(dc.footer2).css("display",_5d.showFooter?"block":"none"); if(_5d.toolbar){ if($.isArray(_5d.toolbar)){ $("div.datagrid-toolbar",_5e).remove(); var tb=$("
                                        ").prependTo(_5e); var tr=tb.find("tr"); for(var i=0;i<_5d.toolbar.length;i++){ var btn=_5d.toolbar[i]; if(btn=="-"){ $("
                                        ").appendTo(tr); }else{ var td=$("").appendTo(tr); var _63=$("").appendTo(td); _63[0].onclick=eval(btn.handler||function(){ }); _63.linkbutton($.extend({},btn,{plain:true})); } } }else{ $(_5d.toolbar).addClass("datagrid-toolbar").prependTo(_5e); $(_5d.toolbar).show(); } }else{ $("div.datagrid-toolbar",_5e).remove(); } $("div.datagrid-pager",_5e).remove(); if(_5d.pagination){ var _64=$("
                                        "); if(_5d.pagePosition=="bottom"){ _64.appendTo(_5e); }else{ if(_5d.pagePosition=="top"){ _64.addClass("datagrid-pager-top").prependTo(_5e); }else{ var _65=$("
                                        ").prependTo(_5e); _64.appendTo(_5e); _64=_64.add(_65); } } _64.pagination({total:(_5d.pageNumber*_5d.pageSize),pageNumber:_5d.pageNumber,pageSize:_5d.pageSize,pageList:_5d.pageList,onSelectPage:function(_66,_67){ _5d.pageNumber=_66||1; _5d.pageSize=_67; _64.pagination("refresh",{pageNumber:_66,pageSize:_67}); _ae(_5b); }}); _5d.pageSize=_64.pagination("options").pageSize; } function _61(_68,_69,_6a){ if(!_69){ return; } $(_68).show(); $(_68).empty(); var _6b=[]; var _6c=[]; if(_5d.sortName){ _6b=_5d.sortName.split(","); _6c=_5d.sortOrder.split(","); } var t=$("
                                        ").appendTo(_68); for(var i=0;i<_69.length;i++){ var tr=$("").appendTo($("tbody",t)); var _6d=_69[i]; for(var j=0;j<_6d.length;j++){ var col=_6d[j]; var _6e=""; if(col.rowspan){ _6e+="rowspan=\""+col.rowspan+"\" "; } if(col.colspan){ _6e+="colspan=\""+col.colspan+"\" "; } var td=$("").appendTo(tr); if(col.checkbox){ td.attr("field",col.field); $("
                                        ").html("").appendTo(td); }else{ if(col.field){ td.attr("field",col.field); td.append("
                                        "); $("span",td).html(col.title); $("span.datagrid-sort-icon",td).html(" "); var _6f=td.find("div.datagrid-cell"); var pos=_2(_6b,col.field); if(pos>=0){ _6f.addClass("datagrid-sort-"+_6c[pos]); } if(col.resizable==false){ _6f.attr("resizable","false"); } if(col.width){ var _70=$.parser.parseValue("width",col.width,dc.view,_5d.scrollbarSize); _6f._outerWidth(_70-1); col.boxWidth=parseInt(_6f[0].style.width); col.deltaWidth=_70-col.boxWidth; }else{ col.auto=true; } _6f.css("text-align",(col.halign||col.align||"")); col.cellClass=_5c.cellClassPrefix+"-"+col.field.replace(/[\.|\s]/g,"-"); _6f.addClass(col.cellClass).css("width",""); }else{ $("
                                        ").html(col.title).appendTo(td); } } if(col.hidden){ td.hide(); } } } if(_6a&&_5d.rownumbers){ var td=$("
                                        "); if($("tr",t).length==0){ td.wrap("").parent().appendTo($("tbody",t)); }else{ td.prependTo($("tr:first",t)); } } }; function _62(){ var _71=[]; var _72=_73(_5b,true).concat(_73(_5b)); for(var i=0;i<_72.length;i++){ var col=_74(_5b,_72[i]); if(col&&!col.checkbox){ _71.push(["."+col.cellClass,col.boxWidth?col.boxWidth+"px":"auto"]); } } _5c.ss.add(_71); _5c.ss.dirty(_5c.cellSelectorPrefix); _5c.cellSelectorPrefix="."+_5c.cellClassPrefix; }; }; function _75(_76){ var _77=$.data(_76,"datagrid"); var _78=_77.panel; var _79=_77.options; var dc=_77.dc; var _7a=dc.header1.add(dc.header2); _7a.find("input[type=checkbox]").unbind(".datagrid").bind("click.datagrid",function(e){ if(_79.singleSelect&&_79.selectOnCheck){ return false; } if($(this).is(":checked")){ _123(_76); }else{ _129(_76); } e.stopPropagation(); }); var _7b=_7a.find("div.datagrid-cell"); _7b.closest("td").unbind(".datagrid").bind("mouseenter.datagrid",function(){ if(_77.resizing){ return; } $(this).addClass("datagrid-header-over"); }).bind("mouseleave.datagrid",function(){ $(this).removeClass("datagrid-header-over"); }).bind("contextmenu.datagrid",function(e){ var _7c=$(this).attr("field"); _79.onHeaderContextMenu.call(_76,e,_7c); }); _7b.unbind(".datagrid").bind("click.datagrid",function(e){ var p1=$(this).offset().left+5; var p2=$(this).offset().left+$(this)._outerWidth()-5; if(e.pageXp1){ _a2(_76,$(this).parent().attr("field")); } }).bind("dblclick.datagrid",function(e){ var p1=$(this).offset().left+5; var p2=$(this).offset().left+$(this)._outerWidth()-5; var _7d=_79.resizeHandle=="right"?(e.pageX>p2):(_79.resizeHandle=="left"?(e.pageXp2)); if(_7d){ var _7e=$(this).parent().attr("field"); var col=_74(_76,_7e); if(col.resizable==false){ return; } $(_76).datagrid("autoSizeColumn",_7e); col.auto=false; } }); var _7f=_79.resizeHandle=="right"?"e":(_79.resizeHandle=="left"?"w":"e,w"); _7b.each(function(){ $(this).resizable({handles:_7f,disabled:($(this).attr("resizable")?$(this).attr("resizable")=="false":false),minWidth:25,onStartResize:function(e){ _77.resizing=true; _7a.css("cursor",$("body").css("cursor")); if(!_77.proxy){ _77.proxy=$("
                                        ").appendTo(dc.view); } _77.proxy.css({left:e.pageX-$(_78).offset().left-1,display:"none"}); setTimeout(function(){ if(_77.proxy){ _77.proxy.show(); } },500); },onResize:function(e){ _77.proxy.css({left:e.pageX-$(_78).offset().left-1,display:"block"}); return false; },onStopResize:function(e){ _7a.css("cursor",""); $(this).css("height",""); var _80=$(this).parent().attr("field"); var col=_74(_76,_80); col.width=$(this)._outerWidth(); col.boxWidth=col.width-col.deltaWidth; col.auto=undefined; $(this).css("width",""); _d1(_76,_80); _77.proxy.remove(); _77.proxy=null; if($(this).parents("div:first.datagrid-header").parent().hasClass("datagrid-view1")){ _22(_76); } _b0(_76); _79.onResizeColumn.call(_76,_80,col.width); setTimeout(function(){ _77.resizing=false; },0); }}); }); var bb=dc.body1.add(dc.body2); bb.unbind(); for(var _81 in _79.rowEvents){ bb.bind(_81,_79.rowEvents[_81]); } dc.body1.bind("mousewheel DOMMouseScroll",function(e){ var e1=e.originalEvent||window.event; var _82=e1.wheelDelta||e1.detail*(-1); var dg=$(e.target).closest("div.datagrid-view").children(".datagrid-f"); var dc=dg.data("datagrid").dc; dc.body2.scrollTop(dc.body2.scrollTop()-_82); }); dc.body2.bind("scroll",function(){ var b1=dc.view1.children("div.datagrid-body"); b1.scrollTop($(this).scrollTop()); var c1=dc.body1.children(":first"); var c2=dc.body2.children(":first"); if(c1.length&&c2.length){ var _83=c1.offset().top; var _84=c2.offset().top; if(_83!=_84){ b1.scrollTop(b1.scrollTop()+_83-_84); } } dc.view2.children("div.datagrid-header,div.datagrid-footer")._scrollLeft($(this)._scrollLeft()); dc.body2.children("table.datagrid-btable-frozen").css("left",-$(this)._scrollLeft()); }); }; function _85(_86){ return function(e){ var tr=_87(e.target); if(!tr){ return; } var _88=_89(tr); if($.data(_88,"datagrid").resizing){ return; } var _8a=_8b(tr); if(_86){ _8c(_88,_8a); }else{ var _8d=$.data(_88,"datagrid").options; _8d.finder.getTr(_88,_8a).removeClass("datagrid-row-over"); } }; }; function _8e(e){ var tr=_87(e.target); if(!tr){ return; } var _8f=_89(tr); var _90=$.data(_8f,"datagrid").options; var _91=_8b(tr); var tt=$(e.target); if(tt.parent().hasClass("datagrid-cell-check")){ if(_90.singleSelect&&_90.selectOnCheck){ tt._propAttr("checked",!tt.is(":checked")); _92(_8f,_91); }else{ if(tt.is(":checked")){ tt._propAttr("checked",false); _92(_8f,_91); }else{ tt._propAttr("checked",true); _93(_8f,_91); } } }else{ var row=_90.finder.getRow(_8f,_91); var td=tt.closest("td[field]",tr); if(td.length){ var _94=td.attr("field"); _90.onClickCell.call(_8f,_91,_94,row[_94]); } if(_90.singleSelect==true){ _95(_8f,_91); }else{ if(_90.ctrlSelect){ if(e.ctrlKey){ if(tr.hasClass("datagrid-row-selected")){ _96(_8f,_91); }else{ _95(_8f,_91); } }else{ if(e.shiftKey){ $(_8f).datagrid("clearSelections"); var _97=Math.min(_90.lastSelectedIndex||0,_91); var _98=Math.max(_90.lastSelectedIndex||0,_91); for(var i=_97;i<=_98;i++){ _95(_8f,i); } }else{ $(_8f).datagrid("clearSelections"); _95(_8f,_91); _90.lastSelectedIndex=_91; } } }else{ if(tr.hasClass("datagrid-row-selected")){ _96(_8f,_91); }else{ _95(_8f,_91); } } } _90.onClickRow.call(_8f,_91,row); } }; function _99(e){ var tr=_87(e.target); if(!tr){ return; } var _9a=_89(tr); var _9b=$.data(_9a,"datagrid").options; var _9c=_8b(tr); var row=_9b.finder.getRow(_9a,_9c); var td=$(e.target).closest("td[field]",tr); if(td.length){ var _9d=td.attr("field"); _9b.onDblClickCell.call(_9a,_9c,_9d,row[_9d]); } _9b.onDblClickRow.call(_9a,_9c,row); }; function _9e(e){ var tr=_87(e.target); if(!tr){ return; } var _9f=_89(tr); var _a0=$.data(_9f,"datagrid").options; var _a1=_8b(tr); var row=_a0.finder.getRow(_9f,_a1); _a0.onRowContextMenu.call(_9f,e,_a1,row); }; function _89(t){ return $(t).closest("div.datagrid-view").children(".datagrid-f")[0]; }; function _87(t){ var tr=$(t).closest("tr.datagrid-row"); if(tr.length&&tr.parent().length){ return tr; }else{ return undefined; } }; function _8b(tr){ if(tr.attr("datagrid-row-index")){ return parseInt(tr.attr("datagrid-row-index")); }else{ return tr.attr("node-id"); } }; function _a2(_a3,_a4){ var _a5=$.data(_a3,"datagrid"); var _a6=_a5.options; _a4=_a4||{}; var _a7={sortName:_a6.sortName,sortOrder:_a6.sortOrder}; if(typeof _a4=="object"){ $.extend(_a7,_a4); } var _a8=[]; var _a9=[]; if(_a7.sortName){ _a8=_a7.sortName.split(","); _a9=_a7.sortOrder.split(","); } if(typeof _a4=="string"){ var _aa=_a4; var col=_74(_a3,_aa); if(!col.sortable||_a5.resizing){ return; } var _ab=col.order||"asc"; var pos=_2(_a8,_aa); if(pos>=0){ var _ac=_a9[pos]=="asc"?"desc":"asc"; if(_a6.multiSort&&_ac==_ab){ _a8.splice(pos,1); _a9.splice(pos,1); }else{ _a9[pos]=_ac; } }else{ if(_a6.multiSort){ _a8.push(_aa); _a9.push(_ab); }else{ _a8=[_aa]; _a9=[_ab]; } } _a7.sortName=_a8.join(","); _a7.sortOrder=_a9.join(","); } if(_a6.onBeforeSortColumn.call(_a3,_a7.sortName,_a7.sortOrder)==false){ return; } $.extend(_a6,_a7); var dc=_a5.dc; var _ad=dc.header1.add(dc.header2); _ad.find("div.datagrid-cell").removeClass("datagrid-sort-asc datagrid-sort-desc"); for(var i=0;i<_a8.length;i++){ var col=_74(_a3,_a8[i]); _ad.find("div."+col.cellClass).addClass("datagrid-sort-"+_a9[i]); } if(_a6.remoteSort){ _ae(_a3); }else{ _af(_a3,$(_a3).datagrid("getData")); } _a6.onSortColumn.call(_a3,_a6.sortName,_a6.sortOrder); }; function _b0(_b1){ var _b2=$.data(_b1,"datagrid"); var _b3=_b2.options; var dc=_b2.dc; var _b4=dc.view2.children("div.datagrid-header"); dc.body2.css("overflow-x",""); _b5(); _b6(); if(_b4.width()>=_b4.find("table").width()){ dc.body2.css("overflow-x","hidden"); } function _b6(){ if(!_b3.fitColumns){ return; } if(!_b2.leftWidth){ _b2.leftWidth=0; } var _b7=0; var cc=[]; var _b8=_73(_b1,false); for(var i=0;i<_b8.length;i++){ var col=_74(_b1,_b8[i]); if(_b9(col)){ _b7+=col.width; cc.push({field:col.field,col:col,addingWidth:0}); } } if(!_b7){ return; } cc[cc.length-1].addingWidth-=_b2.leftWidth; var _ba=_b4.children("div.datagrid-header-inner").show(); var _bb=_b4.width()-_b4.find("table").width()-_b3.scrollbarSize+_b2.leftWidth; var _bc=_bb/_b7; if(!_b3.showHeader){ _ba.hide(); } for(var i=0;i0){ c.col.boxWidth+=c.addingWidth; c.col.width+=c.addingWidth; } } _b2.leftWidth=_bb; _d1(_b1); }; function _b5(){ var _be=false; var _bf=_73(_b1,true).concat(_73(_b1,false)); $.map(_bf,function(_c0){ var col=_74(_b1,_c0); if(String(col.width||"").indexOf("%")>=0){ var _c1=$.parser.parseValue("width",col.width,dc.view,_b3.scrollbarSize)-col.deltaWidth; if(_c1>0){ col.boxWidth=_c1; _be=true; } } }); if(_be){ _d1(_b1); } }; function _b9(col){ if(String(col.width||"").indexOf("%")>=0){ return false; } if(!col.hidden&&!col.checkbox&&!col.auto&&!col.fixed){ return true; } }; }; function _c2(_c3,_c4){ var _c5=$.data(_c3,"datagrid"); var _c6=_c5.options; var dc=_c5.dc; var tmp=$("
                                        ").appendTo("body"); if(_c4){ _1c(_c4); if(_c6.fitColumns){ _22(_c3); _b0(_c3); } }else{ var _c7=false; var _c8=_73(_c3,true).concat(_73(_c3,false)); for(var i=0;i<_c8.length;i++){ var _c4=_c8[i]; var col=_74(_c3,_c4); if(col.auto){ _1c(_c4); _c7=true; } } if(_c7&&_c6.fitColumns){ _22(_c3); _b0(_c3); } } tmp.remove(); function _1c(_c9){ var _ca=dc.view.find("div.datagrid-header td[field=\""+_c9+"\"] div.datagrid-cell"); _ca.css("width",""); var col=$(_c3).datagrid("getColumnOption",_c9); col.width=undefined; col.boxWidth=undefined; col.auto=true; $(_c3).datagrid("fixColumnSize",_c9); var _cb=Math.max(_cc("header"),_cc("allbody"),_cc("allfooter"))+1; _ca._outerWidth(_cb-1); col.width=_cb; col.boxWidth=parseInt(_ca[0].style.width); col.deltaWidth=_cb-col.boxWidth; _ca.css("width",""); $(_c3).datagrid("fixColumnSize",_c9); _c6.onResizeColumn.call(_c3,_c9,col.width); function _cc(_cd){ var _ce=0; if(_cd=="header"){ _ce=_cf(_ca); }else{ _c6.finder.getTr(_c3,0,_cd).find("td[field=\""+_c9+"\"] div.datagrid-cell").each(function(){ var w=_cf($(this)); if(_ce=0){ var _ee=col.field||""; for(var c=0;c<(col.colspan||1);c++){ for(var r=0;r<(col.rowspan||1);r++){ aa[_eb+r][_ec]=_ee; } _ec++; } } }); } return aa[aa.length-1]; function _ea(){ var _ef=0; $.map(_e8[0],function(col){ _ef+=col.colspan||1; }); return _ef; }; function _ed(a){ for(var i=0;ib?1:-1); }; r=_f6(r1[sn],r2[sn])*(so=="asc"?1:-1); if(r!=0){ return r; } } return r; }); } if(_f3.view.onBeforeRender){ _f3.view.onBeforeRender.call(_f3.view,_f0,_f1.rows); } _f3.view.render.call(_f3.view,_f0,dc.body2,false); _f3.view.render.call(_f3.view,_f0,dc.body1,true); if(_f3.showFooter){ _f3.view.renderFooter.call(_f3.view,_f0,dc.footer2,false); _f3.view.renderFooter.call(_f3.view,_f0,dc.footer1,true); } if(_f3.view.onAfterRender){ _f3.view.onAfterRender.call(_f3.view,_f0); } _f2.ss.clean(); var _f7=$(_f0).datagrid("getPager"); if(_f7.length){ var _f8=_f7.pagination("options"); if(_f8.total!=_f1.total){ _f7.pagination("refresh",{total:_f1.total}); if(_f3.pageNumber!=_f8.pageNumber&&_f8.pageNumber>0){ _f3.pageNumber=_f8.pageNumber; _ae(_f0); } } } _36(_f0); dc.body2.triggerHandler("scroll"); $(_f0).datagrid("setSelectionState"); $(_f0).datagrid("autoSizeColumn"); _f3.onLoadSuccess.call(_f0,_f1); }; function _f9(_fa){ var _fb=$.data(_fa,"datagrid"); var _fc=_fb.options; var dc=_fb.dc; dc.header1.add(dc.header2).find("input[type=checkbox]")._propAttr("checked",false); if(_fc.idField){ var _fd=$.data(_fa,"treegrid")?true:false; var _fe=_fc.onSelect; var _ff=_fc.onCheck; _fc.onSelect=_fc.onCheck=function(){ }; var rows=_fc.finder.getRows(_fa); for(var i=0;i_110.height()-18){ _110.scrollTop(_110.scrollTop()+top+tr._outerHeight()-_110.height()+18); } } } }; function _8c(_112,_113){ var _114=$.data(_112,"datagrid"); var opts=_114.options; opts.finder.getTr(_112,_114.highlightIndex).removeClass("datagrid-row-over"); opts.finder.getTr(_112,_113).addClass("datagrid-row-over"); _114.highlightIndex=_113; }; function _95(_115,_116,_117){ var _118=$.data(_115,"datagrid"); var opts=_118.options; var row=opts.finder.getRow(_115,_116); if(opts.onBeforeSelect.call(_115,_116,row)==false){ return; } if(opts.singleSelect){ _119(_115,true); _118.selectedRows=[]; } if(!_117&&opts.checkOnSelect){ _92(_115,_116,true); } if(opts.idField){ _7(_118.selectedRows,opts.idField,row); } opts.finder.getTr(_115,_116).addClass("datagrid-row-selected"); opts.onSelect.call(_115,_116,row); _10b(_115,_116); }; function _96(_11a,_11b,_11c){ var _11d=$.data(_11a,"datagrid"); var dc=_11d.dc; var opts=_11d.options; var row=opts.finder.getRow(_11a,_11b); if(opts.onBeforeUnselect.call(_11a,_11b,row)==false){ return; } if(!_11c&&opts.checkOnSelect){ _93(_11a,_11b,true); } opts.finder.getTr(_11a,_11b).removeClass("datagrid-row-selected"); if(opts.idField){ _4(_11d.selectedRows,opts.idField,row[opts.idField]); } opts.onUnselect.call(_11a,_11b,row); }; function _11e(_11f,_120){ var _121=$.data(_11f,"datagrid"); var opts=_121.options; var rows=opts.finder.getRows(_11f); var _122=$.data(_11f,"datagrid").selectedRows; if(!_120&&opts.checkOnSelect){ _123(_11f,true); } opts.finder.getTr(_11f,"","allbody").addClass("datagrid-row-selected"); if(opts.idField){ for(var _124=0;_124"); cell.children("table").bind("click dblclick contextmenu",function(e){ e.stopPropagation(); }); $.data(cell[0],"datagrid.editor",{actions:_15a,target:_15a.init(cell.find("td"),_159),field:_157,type:_158,oldHtml:_15b}); } } }); _36(_155,_156,true); }; function _14c(_15d,_15e){ var opts=$.data(_15d,"datagrid").options; var tr=opts.finder.getTr(_15d,_15e); tr.children("td").each(function(){ var cell=$(this).find("div.datagrid-editable"); if(cell.length){ var ed=$.data(cell[0],"datagrid.editor"); if(ed.actions.destroy){ ed.actions.destroy(ed.target); } cell.html(ed.oldHtml); $.removeData(cell[0],"datagrid.editor"); cell.removeClass("datagrid-editable"); cell.css("width",""); } }); }; function _13f(_15f,_160){ var tr=$.data(_15f,"datagrid").options.finder.getTr(_15f,_160); if(!tr.hasClass("datagrid-row-editing")){ return true; } var vbox=tr.find(".validatebox-text"); vbox.validatebox("validate"); vbox.trigger("mouseleave"); var _161=tr.find(".validatebox-invalid"); return _161.length==0; }; function _162(_163,_164){ var _165=$.data(_163,"datagrid").insertedRows; var _166=$.data(_163,"datagrid").deletedRows; var _167=$.data(_163,"datagrid").updatedRows; if(!_164){ var rows=[]; rows=rows.concat(_165); rows=rows.concat(_166); rows=rows.concat(_167); return rows; }else{ if(_164=="inserted"){ return _165; }else{ if(_164=="deleted"){ return _166; }else{ if(_164=="updated"){ return _167; } } } } return []; }; function _168(_169,_16a){ var _16b=$.data(_169,"datagrid"); var opts=_16b.options; var data=_16b.data; var _16c=_16b.insertedRows; var _16d=_16b.deletedRows; $(_169).datagrid("cancelEdit",_16a); var row=opts.finder.getRow(_169,_16a); if(_2(_16c,row)>=0){ _4(_16c,row); }else{ _16d.push(row); } _4(_16b.selectedRows,opts.idField,row[opts.idField]); _4(_16b.checkedRows,opts.idField,row[opts.idField]); opts.view.deleteRow.call(opts.view,_169,_16a); if(opts.height=="auto"){ _36(_169); } $(_169).datagrid("getPager").pagination("refresh",{total:data.total}); }; function _16e(_16f,_170){ var data=$.data(_16f,"datagrid").data; var view=$.data(_16f,"datagrid").options.view; var _171=$.data(_16f,"datagrid").insertedRows; view.insertRow.call(view,_16f,_170.index,_170.row); _171.push(_170.row); $(_16f).datagrid("getPager").pagination("refresh",{total:data.total}); }; function _172(_173,row){ var data=$.data(_173,"datagrid").data; var view=$.data(_173,"datagrid").options.view; var _174=$.data(_173,"datagrid").insertedRows; view.insertRow.call(view,_173,null,row); _174.push(row); $(_173).datagrid("getPager").pagination("refresh",{total:data.total}); }; function _175(_176){ var _177=$.data(_176,"datagrid"); var data=_177.data; var rows=data.rows; var _178=[]; for(var i=0;i=0){ (_185=="s"?_95:_92)(_17c,_186,true); } } }; for(var i=0;i0){ _af(this,data); _175(this); } } _ae(this); }); }; function _197(_198){ var _199={}; $.map(_198,function(name){ _199[name]=_19a(name); }); return _199; function _19a(name){ function isA(_19b){ return $.data($(_19b)[0],name)!=undefined; }; return {init:function(_19c,_19d){ var _19e=$("").appendTo(_19c); if(_19e[name]&&name!="text"){ return _19e[name](_19d); }else{ return _19e; } },destroy:function(_19f){ if(isA(_19f,name)){ $(_19f)[name]("destroy"); } },getValue:function(_1a0){ if(isA(_1a0,name)){ var opts=$(_1a0)[name]("options"); if(opts.multiple){ return $(_1a0)[name]("getValues").join(opts.separator); }else{ return $(_1a0)[name]("getValue"); } }else{ return $(_1a0).val(); } },setValue:function(_1a1,_1a2){ if(isA(_1a1,name)){ var opts=$(_1a1)[name]("options"); if(opts.multiple){ if(_1a2){ $(_1a1)[name]("setValues",_1a2.split(opts.separator)); }else{ $(_1a1)[name]("clear"); } }else{ $(_1a1)[name]("setValue",_1a2); } }else{ $(_1a1).val(_1a2); } },resize:function(_1a3,_1a4){ if(isA(_1a3,name)){ $(_1a3)[name]("resize",_1a4); }else{ $(_1a3)._outerWidth(_1a4)._outerHeight(22); } }}; }; }; var _1a5=$.extend({},_197(["text","textbox","numberbox","numberspinner","combobox","combotree","combogrid","datebox","datetimebox","timespinner","datetimespinner"]),{textarea:{init:function(_1a6,_1a7){ var _1a8=$("").appendTo(_1a6); return _1a8; },getValue:function(_1a9){ return $(_1a9).val(); },setValue:function(_1aa,_1ab){ $(_1aa).val(_1ab); },resize:function(_1ac,_1ad){ $(_1ac)._outerWidth(_1ad); }},checkbox:{init:function(_1ae,_1af){ var _1b0=$("").appendTo(_1ae); _1b0.val(_1af.on); _1b0.attr("offval",_1af.off); return _1b0; },getValue:function(_1b1){ if($(_1b1).is(":checked")){ return $(_1b1).val(); }else{ return $(_1b1).attr("offval"); } },setValue:function(_1b2,_1b3){ var _1b4=false; if($(_1b2).val()==_1b3){ _1b4=true; } $(_1b2)._propAttr("checked",_1b4); }},validatebox:{init:function(_1b5,_1b6){ var _1b7=$("").appendTo(_1b5); _1b7.validatebox(_1b6); return _1b7; },destroy:function(_1b8){ $(_1b8).validatebox("destroy"); },getValue:function(_1b9){ return $(_1b9).val(); },setValue:function(_1ba,_1bb){ $(_1ba).val(_1bb); },resize:function(_1bc,_1bd){ $(_1bc)._outerWidth(_1bd)._outerHeight(22); }}}); $.fn.datagrid.methods={options:function(jq){ var _1be=$.data(jq[0],"datagrid").options; var _1bf=$.data(jq[0],"datagrid").panel.panel("options"); var opts=$.extend(_1be,{width:_1bf.width,height:_1bf.height,closed:_1bf.closed,collapsed:_1bf.collapsed,minimized:_1bf.minimized,maximized:_1bf.maximized}); return opts; },setSelectionState:function(jq){ return jq.each(function(){ _f9(this); }); },createStyleSheet:function(jq){ return _9(jq[0]); },getPanel:function(jq){ return $.data(jq[0],"datagrid").panel; },getPager:function(jq){ return $.data(jq[0],"datagrid").panel.children("div.datagrid-pager"); },getColumnFields:function(jq,_1c0){ return _73(jq[0],_1c0); },getColumnOption:function(jq,_1c1){ return _74(jq[0],_1c1); },resize:function(jq,_1c2){ return jq.each(function(){ _1c(this,_1c2); }); },load:function(jq,_1c3){ return jq.each(function(){ var opts=$(this).datagrid("options"); if(typeof _1c3=="string"){ opts.url=_1c3; _1c3=null; } opts.pageNumber=1; var _1c4=$(this).datagrid("getPager"); _1c4.pagination("refresh",{pageNumber:1}); _ae(this,_1c3); }); },reload:function(jq,_1c5){ return jq.each(function(){ var opts=$(this).datagrid("options"); if(typeof _1c5=="string"){ opts.url=_1c5; _1c5=null; } _ae(this,_1c5); }); },reloadFooter:function(jq,_1c6){ return jq.each(function(){ var opts=$.data(this,"datagrid").options; var dc=$.data(this,"datagrid").dc; if(_1c6){ $.data(this,"datagrid").footer=_1c6; } if(opts.showFooter){ opts.view.renderFooter.call(opts.view,this,dc.footer2,false); opts.view.renderFooter.call(opts.view,this,dc.footer1,true); if(opts.view.onAfterRender){ opts.view.onAfterRender.call(opts.view,this); } $(this).datagrid("fixRowHeight"); } }); },loading:function(jq){ return jq.each(function(){ var opts=$.data(this,"datagrid").options; $(this).datagrid("getPager").pagination("loading"); if(opts.loadMsg){ var _1c7=$(this).datagrid("getPanel"); if(!_1c7.children("div.datagrid-mask").length){ $("
                                        ").appendTo(_1c7); var msg=$("
                                        ").html(opts.loadMsg).appendTo(_1c7); msg._outerHeight(40); msg.css({marginLeft:(-msg.outerWidth()/2),lineHeight:(msg.height()+"px")}); } } }); },loaded:function(jq){ return jq.each(function(){ $(this).datagrid("getPager").pagination("loaded"); var _1c8=$(this).datagrid("getPanel"); _1c8.children("div.datagrid-mask-msg").remove(); _1c8.children("div.datagrid-mask").remove(); }); },fitColumns:function(jq){ return jq.each(function(){ _b0(this); }); },fixColumnSize:function(jq,_1c9){ return jq.each(function(){ _d1(this,_1c9); }); },fixRowHeight:function(jq,_1ca){ return jq.each(function(){ _36(this,_1ca); }); },freezeRow:function(jq,_1cb){ return jq.each(function(){ _47(this,_1cb); }); },autoSizeColumn:function(jq,_1cc){ return jq.each(function(){ _c2(this,_1cc); }); },loadData:function(jq,data){ return jq.each(function(){ _af(this,data); _175(this); }); },getData:function(jq){ return $.data(jq[0],"datagrid").data; },getRows:function(jq){ return $.data(jq[0],"datagrid").data.rows; },getFooterRows:function(jq){ return $.data(jq[0],"datagrid").footer; },getRowIndex:function(jq,id){ return _102(jq[0],id); },getChecked:function(jq){ return _108(jq[0]); },getSelected:function(jq){ var rows=_105(jq[0]); return rows.length>0?rows[0]:null; },getSelections:function(jq){ return _105(jq[0]); },clearSelections:function(jq){ return jq.each(function(){ var _1cd=$.data(this,"datagrid"); var _1ce=_1cd.selectedRows; var _1cf=_1cd.checkedRows; _1ce.splice(0,_1ce.length); _119(this); if(_1cd.options.checkOnSelect){ _1cf.splice(0,_1cf.length); } }); },clearChecked:function(jq){ return jq.each(function(){ var _1d0=$.data(this,"datagrid"); var _1d1=_1d0.selectedRows; var _1d2=_1d0.checkedRows; _1d2.splice(0,_1d2.length); _129(this); if(_1d0.options.selectOnCheck){ _1d1.splice(0,_1d1.length); } }); },scrollTo:function(jq,_1d3){ return jq.each(function(){ _10b(this,_1d3); }); },highlightRow:function(jq,_1d4){ return jq.each(function(){ _8c(this,_1d4); _10b(this,_1d4); }); },selectAll:function(jq){ return jq.each(function(){ _11e(this); }); },unselectAll:function(jq){ return jq.each(function(){ _119(this); }); },selectRow:function(jq,_1d5){ return jq.each(function(){ _95(this,_1d5); }); },selectRecord:function(jq,id){ return jq.each(function(){ var opts=$.data(this,"datagrid").options; if(opts.idField){ var _1d6=_102(this,id); if(_1d6>=0){ $(this).datagrid("selectRow",_1d6); } } }); },unselectRow:function(jq,_1d7){ return jq.each(function(){ _96(this,_1d7); }); },checkRow:function(jq,_1d8){ return jq.each(function(){ _92(this,_1d8); }); },uncheckRow:function(jq,_1d9){ return jq.each(function(){ _93(this,_1d9); }); },checkAll:function(jq){ return jq.each(function(){ _123(this); }); },uncheckAll:function(jq){ return jq.each(function(){ _129(this); }); },beginEdit:function(jq,_1da){ return jq.each(function(){ _13a(this,_1da); }); },endEdit:function(jq,_1db){ return jq.each(function(){ _140(this,_1db,false); }); },cancelEdit:function(jq,_1dc){ return jq.each(function(){ _140(this,_1dc,true); }); },getEditors:function(jq,_1dd){ return _14d(jq[0],_1dd); },getEditor:function(jq,_1de){ return _151(jq[0],_1de); },refreshRow:function(jq,_1df){ return jq.each(function(){ var opts=$.data(this,"datagrid").options; opts.view.refreshRow.call(opts.view,this,_1df); }); },validateRow:function(jq,_1e0){ return _13f(jq[0],_1e0); },updateRow:function(jq,_1e1){ return jq.each(function(){ var opts=$.data(this,"datagrid").options; opts.view.updateRow.call(opts.view,this,_1e1.index,_1e1.row); }); },appendRow:function(jq,row){ return jq.each(function(){ _172(this,row); }); },insertRow:function(jq,_1e2){ return jq.each(function(){ _16e(this,_1e2); }); },deleteRow:function(jq,_1e3){ return jq.each(function(){ _168(this,_1e3); }); },getChanges:function(jq,_1e4){ return _162(jq[0],_1e4); },acceptChanges:function(jq){ return jq.each(function(){ _179(this); }); },rejectChanges:function(jq){ return jq.each(function(){ _17b(this); }); },mergeCells:function(jq,_1e5){ return jq.each(function(){ _18e(this,_1e5); }); },showColumn:function(jq,_1e6){ return jq.each(function(){ var _1e7=$(this).datagrid("getPanel"); _1e7.find("td[field=\""+_1e6+"\"]").show(); $(this).datagrid("getColumnOption",_1e6).hidden=false; $(this).datagrid("fitColumns"); }); },hideColumn:function(jq,_1e8){ return jq.each(function(){ var _1e9=$(this).datagrid("getPanel"); _1e9.find("td[field=\""+_1e8+"\"]").hide(); $(this).datagrid("getColumnOption",_1e8).hidden=true; $(this).datagrid("fitColumns"); }); },sort:function(jq,_1ea){ return jq.each(function(){ _a2(this,_1ea); }); }}; $.fn.datagrid.parseOptions=function(_1eb){ var t=$(_1eb); return $.extend({},$.fn.panel.parseOptions(_1eb),$.parser.parseOptions(_1eb,["url","toolbar","idField","sortName","sortOrder","pagePosition","resizeHandle",{sharedStyleSheet:"boolean",fitColumns:"boolean",autoRowHeight:"boolean",striped:"boolean",nowrap:"boolean"},{rownumbers:"boolean",singleSelect:"boolean",ctrlSelect:"boolean",checkOnSelect:"boolean",selectOnCheck:"boolean"},{pagination:"boolean",pageSize:"number",pageNumber:"number"},{multiSort:"boolean",remoteSort:"boolean",showHeader:"boolean",showFooter:"boolean"},{scrollbarSize:"number"}]),{pageList:(t.attr("pageList")?eval(t.attr("pageList")):undefined),loadMsg:(t.attr("loadMsg")!=undefined?t.attr("loadMsg"):undefined),rowStyler:(t.attr("rowStyler")?eval(t.attr("rowStyler")):undefined)}); }; $.fn.datagrid.parseData=function(_1ec){ var t=$(_1ec); var data={total:0,rows:[]}; var _1ed=t.datagrid("getColumnFields",true).concat(t.datagrid("getColumnFields",false)); t.find("tbody tr").each(function(){ data.total++; var row={}; $.extend(row,$.parser.parseOptions(this,["iconCls","state"])); for(var i=0;i<_1ed.length;i++){ row[_1ed[i]]=$(this).find("td:eq("+i+")").html(); } data.rows.push(row); }); return data; }; var _1ee={render:function(_1ef,_1f0,_1f1){ var _1f2=$.data(_1ef,"datagrid"); var opts=_1f2.options; var rows=_1f2.data.rows; var _1f3=$(_1ef).datagrid("getColumnFields",_1f1); if(_1f1){ if(!(opts.rownumbers||(opts.frozenColumns&&opts.frozenColumns.length))){ return; } } var _1f4=[""]; for(var i=0;i"); _1f4.push(this.renderRow.call(this,_1ef,_1f3,_1f1,i,rows[i])); _1f4.push(""); } _1f4.push("
                                        "); $(_1f0).html(_1f4.join("")); },renderFooter:function(_1f9,_1fa,_1fb){ var opts=$.data(_1f9,"datagrid").options; var rows=$.data(_1f9,"datagrid").footer||[]; var _1fc=$(_1f9).datagrid("getColumnFields",_1fb); var _1fd=[""]; for(var i=0;i"); _1fd.push(this.renderRow.call(this,_1f9,_1fc,_1fb,i,rows[i])); _1fd.push(""); } _1fd.push("
                                        "); $(_1fa).html(_1fd.join("")); },renderRow:function(_1fe,_1ff,_200,_201,_202){ var opts=$.data(_1fe,"datagrid").options; var cc=[]; if(_200&&opts.rownumbers){ var _203=_201+1; if(opts.pagination){ _203+=(opts.pageNumber-1)*opts.pageSize; } cc.push("
                                        "+_203+"
                                        "); } for(var i=0;i<_1ff.length;i++){ var _204=_1ff[i]; var col=$(_1fe).datagrid("getColumnOption",_204); if(col){ var _205=_202[_204]; var css=col.styler?(col.styler(_205,_202,_201)||""):""; var _206=""; var _207=""; if(typeof css=="string"){ _207=css; }else{ if(css){ _206=css["class"]||""; _207=css["style"]||""; } } var cls=_206?"class=\""+_206+"\"":""; var _208=col.hidden?"style=\"display:none;"+_207+"\"":(_207?"style=\""+_207+"\"":""); cc.push(""); var _208=""; if(!col.checkbox){ if(col.align){ _208+="text-align:"+col.align+";"; } if(!opts.nowrap){ _208+="white-space:normal;height:auto;"; }else{ if(opts.autoRowHeight){ _208+="height:auto;"; } } } cc.push("
                                        "); if(col.checkbox){ cc.push(""); }else{ if(col.formatter){ cc.push(col.formatter(_205,_202,_201)); }else{ cc.push(_205); } } cc.push("
                                        "); cc.push(""); } } return cc.join(""); },refreshRow:function(_209,_20a){ this.updateRow.call(this,_209,_20a,{}); },updateRow:function(_20b,_20c,row){ var opts=$.data(_20b,"datagrid").options; var rows=$(_20b).datagrid("getRows"); var _20d=_20e(_20c); $.extend(rows[_20c],row); var _20f=_20e(_20c); var _210=_20d.c; var _211=_20f.s; var _212="datagrid-row "+(_20c%2&&opts.striped?"datagrid-row-alt ":" ")+_20f.c; function _20e(_213){ var css=opts.rowStyler?opts.rowStyler.call(_20b,_213,rows[_213]):""; var _214=""; var _215=""; if(typeof css=="string"){ _215=css; }else{ if(css){ _214=css["class"]||""; _215=css["style"]||""; } } return {c:_214,s:_215}; }; function _216(_217){ var _218=$(_20b).datagrid("getColumnFields",_217); var tr=opts.finder.getTr(_20b,_20c,"body",(_217?1:2)); var _219=tr.find("div.datagrid-cell-check input[type=checkbox]").is(":checked"); tr.html(this.renderRow.call(this,_20b,_218,_217,_20c,rows[_20c])); tr.attr("style",_211).removeClass(_210).addClass(_212); if(_219){ tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked",true); } }; _216.call(this,true); _216.call(this,false); $(_20b).datagrid("fixRowHeight",_20c); },insertRow:function(_21a,_21b,row){ var _21c=$.data(_21a,"datagrid"); var opts=_21c.options; var dc=_21c.dc; var data=_21c.data; if(_21b==undefined||_21b==null){ _21b=data.rows.length; } if(_21b>data.rows.length){ _21b=data.rows.length; } function _21d(_21e){ var _21f=_21e?1:2; for(var i=data.rows.length-1;i>=_21b;i--){ var tr=opts.finder.getTr(_21a,i,"body",_21f); tr.attr("datagrid-row-index",i+1); tr.attr("id",_21c.rowIdPrefix+"-"+_21f+"-"+(i+1)); if(_21e&&opts.rownumbers){ var _220=i+2; if(opts.pagination){ _220+=(opts.pageNumber-1)*opts.pageSize; } tr.find("div.datagrid-cell-rownumber").html(_220); } if(opts.striped){ tr.removeClass("datagrid-row-alt").addClass((i+1)%2?"datagrid-row-alt":""); } } }; function _221(_222){ var _223=_222?1:2; var _224=$(_21a).datagrid("getColumnFields",_222); var _225=_21c.rowIdPrefix+"-"+_223+"-"+_21b; var tr=""; if(_21b>=data.rows.length){ if(data.rows.length){ opts.finder.getTr(_21a,"","last",_223).after(tr); }else{ var cc=_222?dc.body1:dc.body2; cc.html(""+tr+"
                                        "); } }else{ opts.finder.getTr(_21a,_21b+1,"body",_223).before(tr); } }; _21d.call(this,true); _21d.call(this,false); _221.call(this,true); _221.call(this,false); data.total+=1; data.rows.splice(_21b,0,row); this.refreshRow.call(this,_21a,_21b); },deleteRow:function(_226,_227){ var _228=$.data(_226,"datagrid"); var opts=_228.options; var data=_228.data; function _229(_22a){ var _22b=_22a?1:2; for(var i=_227+1;itable>tbody>tr[datagrid-row-index="+_236+"]"); } return tr; }else{ if(type=="footer"){ return (_237==1?dc.footer1:dc.footer2).find(">table>tbody>tr[datagrid-row-index="+_236+"]"); }else{ if(type=="selected"){ return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-selected"); }else{ if(type=="highlight"){ return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-over"); }else{ if(type=="checked"){ return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-checked"); }else{ if(type=="editing"){ return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-editing"); }else{ if(type=="last"){ return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr[datagrid-row-index]:last"); }else{ if(type=="allbody"){ return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr[datagrid-row-index]"); }else{ if(type=="allfooter"){ return (_237==1?dc.footer1:dc.footer2).find(">table>tbody>tr[datagrid-row-index]"); } } } } } } } } } } },getRow:function(_239,p){ var _23a=(typeof p=="object")?p.attr("datagrid-row-index"):p; return $.data(_239,"datagrid").data.rows[parseInt(_23a)]; },getRows:function(_23b){ return $(_23b).datagrid("getRows"); }},view:_1ee,onBeforeLoad:function(_23c){ },onLoadSuccess:function(){ },onLoadError:function(){ },onClickRow:function(_23d,_23e){ },onDblClickRow:function(_23f,_240){ },onClickCell:function(_241,_242,_243){ },onDblClickCell:function(_244,_245,_246){ },onBeforeSortColumn:function(sort,_247){ },onSortColumn:function(sort,_248){ },onResizeColumn:function(_249,_24a){ },onBeforeSelect:function(_24b,_24c){ },onSelect:function(_24d,_24e){ },onBeforeUnselect:function(_24f,_250){ },onUnselect:function(_251,_252){ },onSelectAll:function(rows){ },onUnselectAll:function(rows){ },onBeforeCheck:function(_253,_254){ },onCheck:function(_255,_256){ },onBeforeUncheck:function(_257,_258){ },onUncheck:function(_259,_25a){ },onCheckAll:function(rows){ },onUncheckAll:function(rows){ },onBeforeEdit:function(_25b,_25c){ },onBeginEdit:function(_25d,_25e){ },onEndEdit:function(_25f,_260,_261){ },onAfterEdit:function(_262,_263,_264){ },onCancelEdit:function(_265,_266){ },onHeaderContextMenu:function(e,_267){ },onRowContextMenu:function(e,_268,_269){ }}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.datebox.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"datebox"); var _4=_3.options; $(_2).addClass("datebox-f").combo($.extend({},_4,{onShowPanel:function(){ _5(this); _6(this); _7(this); _18(this,$(this).datebox("getText"),true); _4.onShowPanel.call(this); }})); if(!_3.calendar){ var _8=$(_2).combo("panel").css("overflow","hidden"); _8.panel("options").onBeforeDestroy=function(){ var c=$(this).find(".calendar-shared"); if(c.length){ c.insertBefore(c[0].pholder); } }; var cc=$("
                                        ").prependTo(_8); if(_4.sharedCalendar){ var c=$(_4.sharedCalendar); if(!c[0].pholder){ c[0].pholder=$("
                                        ").insertAfter(c); } c.addClass("calendar-shared").appendTo(cc); if(!c.hasClass("calendar")){ c.calendar(); } _3.calendar=c; }else{ _3.calendar=$("
                                        ").appendTo(cc).calendar(); } $.extend(_3.calendar.calendar("options"),{fit:true,border:false,onSelect:function(_9){ var _a=this.target; var _b=$(_a).datebox("options"); _18(_a,_b.formatter.call(_a,_9)); $(_a).combo("hidePanel"); _b.onSelect.call(_a,_9); }}); } $(_2).combo("textbox").parent().addClass("datebox"); $(_2).datebox("initValue",_4.value); function _5(_c){ var _d=$(_c).datebox("options"); var _e=$(_c).combo("panel"); _e.unbind(".datebox").bind("click.datebox",function(e){ if($(e.target).hasClass("datebox-button-a")){ var _f=parseInt($(e.target).attr("datebox-button-index")); _d.buttons[_f].handler.call(e.target,_c); } }); }; function _6(_10){ var _11=$(_10).combo("panel"); if(_11.children("div.datebox-button").length){ return; } var _12=$("
                                        ").appendTo(_11); var tr=_12.find("tr"); for(var i=0;i<_4.buttons.length;i++){ var td=$("").appendTo(tr); var btn=_4.buttons[i]; var t=$("").html($.isFunction(btn.text)?btn.text(_10):btn.text).appendTo(td); t.attr("datebox-button-index",i); } tr.find("td").css("width",(100/_4.buttons.length)+"%"); }; function _7(_13){ var _14=$(_13).combo("panel"); var cc=_14.children("div.datebox-calendar-inner"); _14.children()._outerWidth(_14.width()); _3.calendar.appendTo(cc); _3.calendar[0].target=_13; if(_4.panelHeight!="auto"){ var _15=_14.height(); _14.children().not(cc).each(function(){ _15-=$(this).outerHeight(); }); cc._outerHeight(_15); } _3.calendar.calendar("resize"); }; }; function _16(_17,q){ _18(_17,q,true); }; function _19(_1a){ var _1b=$.data(_1a,"datebox"); var _1c=_1b.options; var _1d=_1b.calendar.calendar("options").current; if(_1d){ _18(_1a,_1c.formatter.call(_1a,_1d)); $(_1a).combo("hidePanel"); } }; function _18(_1e,_1f,_20){ var _21=$.data(_1e,"datebox"); var _22=_21.options; var _23=_21.calendar; $(_1e).combo("setValue",_1f); _23.calendar("moveTo",_22.parser.call(_1e,_1f)); if(!_20){ if(_1f){ _1f=_22.formatter.call(_1e,_23.calendar("options").current); $(_1e).combo("setValue",_1f).combo("setText",_1f); }else{ $(_1e).combo("setText",_1f); } } }; $.fn.datebox=function(_24,_25){ if(typeof _24=="string"){ var _26=$.fn.datebox.methods[_24]; if(_26){ return _26(this,_25); }else{ return this.combo(_24,_25); } } _24=_24||{}; return this.each(function(){ var _27=$.data(this,"datebox"); if(_27){ $.extend(_27.options,_24); }else{ $.data(this,"datebox",{options:$.extend({},$.fn.datebox.defaults,$.fn.datebox.parseOptions(this),_24)}); } _1(this); }); }; $.fn.datebox.methods={options:function(jq){ var _28=jq.combo("options"); return $.extend($.data(jq[0],"datebox").options,{width:_28.width,height:_28.height,originalValue:_28.originalValue,disabled:_28.disabled,readonly:_28.readonly}); },cloneFrom:function(jq,_29){ return jq.each(function(){ $(this).combo("cloneFrom",_29); $.data(this,"datebox",{options:$.extend(true,{},$(_29).datebox("options")),calendar:$(_29).datebox("calendar")}); $(this).addClass("datebox-f"); }); },calendar:function(jq){ return $.data(jq[0],"datebox").calendar; },initValue:function(jq,_2a){ return jq.each(function(){ var _2b=$(this).datebox("options"); var _2c=_2b.value; if(_2c){ _2c=_2b.formatter.call(this,_2b.parser.call(this,_2c)); } $(this).combo("initValue",_2c).combo("setText",_2c); }); },setValue:function(jq,_2d){ return jq.each(function(){ _18(this,_2d); }); },reset:function(jq){ return jq.each(function(){ var _2e=$(this).datebox("options"); $(this).datebox("setValue",_2e.originalValue); }); }}; $.fn.datebox.parseOptions=function(_2f){ return $.extend({},$.fn.combo.parseOptions(_2f),$.parser.parseOptions(_2f,["sharedCalendar"])); }; $.fn.datebox.defaults=$.extend({},$.fn.combo.defaults,{panelWidth:180,panelHeight:"auto",sharedCalendar:null,keyHandler:{up:function(e){ },down:function(e){ },left:function(e){ },right:function(e){ },enter:function(e){ _19(this); },query:function(q,e){ _16(this,q); }},currentText:"Today",closeText:"Close",okText:"Ok",buttons:[{text:function(_30){ return $(_30).datebox("options").currentText; },handler:function(_31){ $(_31).datebox("calendar").calendar({year:new Date().getFullYear(),month:new Date().getMonth()+1,current:new Date()}); _19(_31); }},{text:function(_32){ return $(_32).datebox("options").closeText; },handler:function(_33){ $(this).closest("div.combo-panel").panel("close"); }}],formatter:function(_34){ var y=_34.getFullYear(); var m=_34.getMonth()+1; var d=_34.getDate(); return (m<10?("0"+m):m)+"/"+(d<10?("0"+d):d)+"/"+y; },parser:function(s){ if(!s){ return new Date(); } var ss=s.split("/"); var m=parseInt(ss[0],10); var d=parseInt(ss[1],10); var y=parseInt(ss[2],10); if(!isNaN(y)&&!isNaN(m)&&!isNaN(d)){ return new Date(y,m-1,d); }else{ return new Date(); } },onSelect:function(_35){ }}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.datetimebox.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"datetimebox"); var _4=_3.options; $(_2).datebox($.extend({},_4,{onShowPanel:function(){ var _5=$(this).datetimebox("getValue"); _d(this,_5,true); _4.onShowPanel.call(this); },formatter:$.fn.datebox.defaults.formatter,parser:$.fn.datebox.defaults.parser})); $(_2).removeClass("datebox-f").addClass("datetimebox-f"); $(_2).datebox("calendar").calendar({onSelect:function(_6){ _4.onSelect.call(this.target,_6); }}); if(!_3.spinner){ var _7=$(_2).datebox("panel"); var p=$("
                                        ").insertAfter(_7.children("div.datebox-calendar-inner")); _3.spinner=p.children("input"); } _3.spinner.timespinner({width:_4.spinnerWidth,showSeconds:_4.showSeconds,separator:_4.timeSeparator}); $(_2).datetimebox("initValue",_4.value); }; function _8(_9){ var c=$(_9).datetimebox("calendar"); var t=$(_9).datetimebox("spinner"); var _a=c.calendar("options").current; return new Date(_a.getFullYear(),_a.getMonth(),_a.getDate(),t.timespinner("getHours"),t.timespinner("getMinutes"),t.timespinner("getSeconds")); }; function _b(_c,q){ _d(_c,q,true); }; function _e(_f){ var _10=$.data(_f,"datetimebox").options; var _11=_8(_f); _d(_f,_10.formatter.call(_f,_11)); $(_f).combo("hidePanel"); }; function _d(_12,_13,_14){ var _15=$.data(_12,"datetimebox").options; $(_12).combo("setValue",_13); if(!_14){ if(_13){ var _16=_15.parser.call(_12,_13); $(_12).combo("setValue",_15.formatter.call(_12,_16)); $(_12).combo("setText",_15.formatter.call(_12,_16)); }else{ $(_12).combo("setText",_13); } } var _16=_15.parser.call(_12,_13); $(_12).datetimebox("calendar").calendar("moveTo",_16); $(_12).datetimebox("spinner").timespinner("setValue",_17(_16)); function _17(_18){ function _19(_1a){ return (_1a<10?"0":"")+_1a; }; var tt=[_19(_18.getHours()),_19(_18.getMinutes())]; if(_15.showSeconds){ tt.push(_19(_18.getSeconds())); } return tt.join($(_12).datetimebox("spinner").timespinner("options").separator); }; }; $.fn.datetimebox=function(_1b,_1c){ if(typeof _1b=="string"){ var _1d=$.fn.datetimebox.methods[_1b]; if(_1d){ return _1d(this,_1c); }else{ return this.datebox(_1b,_1c); } } _1b=_1b||{}; return this.each(function(){ var _1e=$.data(this,"datetimebox"); if(_1e){ $.extend(_1e.options,_1b); }else{ $.data(this,"datetimebox",{options:$.extend({},$.fn.datetimebox.defaults,$.fn.datetimebox.parseOptions(this),_1b)}); } _1(this); }); }; $.fn.datetimebox.methods={options:function(jq){ var _1f=jq.datebox("options"); return $.extend($.data(jq[0],"datetimebox").options,{originalValue:_1f.originalValue,disabled:_1f.disabled,readonly:_1f.readonly}); },cloneFrom:function(jq,_20){ return jq.each(function(){ $(this).datebox("cloneFrom",_20); $.data(this,"datetimebox",{options:$.extend(true,{},$(_20).datetimebox("options")),spinner:$(_20).datetimebox("spinner")}); $(this).removeClass("datebox-f").addClass("datetimebox-f"); }); },spinner:function(jq){ return $.data(jq[0],"datetimebox").spinner; },initValue:function(jq,_21){ return jq.each(function(){ var _22=$(this).datetimebox("options"); var _23=_22.value; if(_23){ _23=_22.formatter.call(this,_22.parser.call(this,_23)); } $(this).combo("initValue",_23).combo("setText",_23); }); },setValue:function(jq,_24){ return jq.each(function(){ _d(this,_24); }); },reset:function(jq){ return jq.each(function(){ var _25=$(this).datetimebox("options"); $(this).datetimebox("setValue",_25.originalValue); }); }}; $.fn.datetimebox.parseOptions=function(_26){ var t=$(_26); return $.extend({},$.fn.datebox.parseOptions(_26),$.parser.parseOptions(_26,["timeSeparator","spinnerWidth",{showSeconds:"boolean"}])); }; $.fn.datetimebox.defaults=$.extend({},$.fn.datebox.defaults,{spinnerWidth:"100%",showSeconds:true,timeSeparator:":",keyHandler:{up:function(e){ },down:function(e){ },left:function(e){ },right:function(e){ },enter:function(e){ _e(this); },query:function(q,e){ _b(this,q); }},buttons:[{text:function(_27){ return $(_27).datetimebox("options").currentText; },handler:function(_28){ var _29=$(_28).datetimebox("options"); _d(_28,_29.formatter.call(_28,new Date())); $(_28).datetimebox("hidePanel"); }},{text:function(_2a){ return $(_2a).datetimebox("options").okText; },handler:function(_2b){ _e(_2b); }},{text:function(_2c){ return $(_2c).datetimebox("options").closeText; },handler:function(_2d){ $(_2d).datetimebox("hidePanel"); }}],formatter:function(_2e){ var h=_2e.getHours(); var M=_2e.getMinutes(); var s=_2e.getSeconds(); function _2f(_30){ return (_30<10?"0":"")+_30; }; var _31=$(this).datetimebox("spinner").timespinner("options").separator; var r=$.fn.datebox.defaults.formatter(_2e)+" "+_2f(h)+_31+_2f(M); if($(this).datetimebox("options").showSeconds){ r+=_31+_2f(s); } return r; },parser:function(s){ if($.trim(s)==""){ return new Date(); } var dt=s.split(" "); var d=$.fn.datebox.defaults.parser(dt[0]); if(dt.length<2){ return d; } var _32=$(this).datetimebox("spinner").timespinner("options").separator; var tt=dt[1].split(_32); var _33=parseInt(tt[0],10)||0; var _34=parseInt(tt[1],10)||0; var _35=parseInt(tt[2],10)||0; return new Date(d.getFullYear(),d.getMonth(),d.getDate(),_33,_34,_35); }}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.datetimespinner.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"datetimespinner").options; $(_2).addClass("datetimespinner-f").timespinner(_3); }; $.fn.datetimespinner=function(_4,_5){ if(typeof _4=="string"){ var _6=$.fn.datetimespinner.methods[_4]; if(_6){ return _6(this,_5); }else{ return this.timespinner(_4,_5); } } _4=_4||{}; return this.each(function(){ var _7=$.data(this,"datetimespinner"); if(_7){ $.extend(_7.options,_4); }else{ $.data(this,"datetimespinner",{options:$.extend({},$.fn.datetimespinner.defaults,$.fn.datetimespinner.parseOptions(this),_4)}); } _1(this); }); }; $.fn.datetimespinner.methods={options:function(jq){ var _8=jq.timespinner("options"); return $.extend($.data(jq[0],"datetimespinner").options,{width:_8.width,value:_8.value,originalValue:_8.originalValue,disabled:_8.disabled,readonly:_8.readonly}); }}; $.fn.datetimespinner.parseOptions=function(_9){ return $.extend({},$.fn.timespinner.parseOptions(_9),$.parser.parseOptions(_9,[])); }; $.fn.datetimespinner.defaults=$.extend({},$.fn.timespinner.defaults,{formatter:function(_a){ if(!_a){ return ""; } return $.fn.datebox.defaults.formatter.call(this,_a)+" "+$.fn.timespinner.defaults.formatter.call(this,_a); },parser:function(s){ s=$.trim(s); if(!s){ return null; } var dt=s.split(" "); var _b=$.fn.datebox.defaults.parser.call(this,dt[0]); if(dt.length<2){ return _b; } var _c=$.fn.timespinner.defaults.parser.call(this,dt[1]); return new Date(_b.getFullYear(),_b.getMonth(),_b.getDate(),_c.getHours(),_c.getMinutes(),_c.getSeconds()); },selections:[[0,2],[3,5],[6,10],[11,13],[14,16],[17,19]]}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.dialog.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"dialog").options; _3.inited=false; $(_2).window($.extend({},_3,{onResize:function(w,h){ if(_3.inited){ _a(this); _3.onResize.call(this,w,h); } }})); var _4=$(_2).window("window"); if(_3.toolbar){ if($.isArray(_3.toolbar)){ $(_2).siblings("div.dialog-toolbar").remove(); var _5=$("
                                        ").appendTo(_4); var tr=_5.find("tr"); for(var i=0;i<_3.toolbar.length;i++){ var _6=_3.toolbar[i]; if(_6=="-"){ $("
                                        ").appendTo(tr); }else{ var td=$("").appendTo(tr); var _7=$("").appendTo(td); _7[0].onclick=eval(_6.handler||function(){ }); _7.linkbutton($.extend({},_6,{plain:true})); } } }else{ $(_3.toolbar).addClass("dialog-toolbar").appendTo(_4); $(_3.toolbar).show(); } }else{ $(_2).siblings("div.dialog-toolbar").remove(); } if(_3.buttons){ if($.isArray(_3.buttons)){ $(_2).siblings("div.dialog-button").remove(); var _8=$("
                                        ").appendTo(_4); for(var i=0;i<_3.buttons.length;i++){ var p=_3.buttons[i]; var _9=$("").appendTo(_8); if(p.handler){ _9[0].onclick=p.handler; } _9.linkbutton(p); } }else{ $(_3.buttons).addClass("dialog-button").appendTo(_4); $(_3.buttons).show(); } }else{ $(_2).siblings("div.dialog-button").remove(); } _3.inited=true; _4.show(); $(_2).window("resize"); if(_3.closed){ _4.hide(); } }; function _a(_b,_c){ var t=$(_b); var _d=t.dialog("options"); var _e=_d.noheader; var tb=t.siblings(".dialog-toolbar"); var bb=t.siblings(".dialog-button"); tb.insertBefore(_b).css({position:"relative",borderTopWidth:(_e?1:0),top:(_e?tb.length:0)}); bb.insertAfter(_b).css({position:"relative",top:-1}); if(!isNaN(parseInt(_d.height))){ t._outerHeight(t._outerHeight()-tb._outerHeight()-bb._outerHeight()); } tb.add(bb)._outerWidth(t._outerWidth()); var _f=$.data(_b,"window").shadow; if(_f){ var cc=t.panel("panel"); _f.css({width:cc._outerWidth(),height:cc._outerHeight()}); } }; $.fn.dialog=function(_10,_11){ if(typeof _10=="string"){ var _12=$.fn.dialog.methods[_10]; if(_12){ return _12(this,_11); }else{ return this.window(_10,_11); } } _10=_10||{}; return this.each(function(){ var _13=$.data(this,"dialog"); if(_13){ $.extend(_13.options,_10); }else{ $.data(this,"dialog",{options:$.extend({},$.fn.dialog.defaults,$.fn.dialog.parseOptions(this),_10)}); } _1(this); }); }; $.fn.dialog.methods={options:function(jq){ var _14=$.data(jq[0],"dialog").options; var _15=jq.panel("options"); $.extend(_14,{width:_15.width,height:_15.height,left:_15.left,top:_15.top,closed:_15.closed,collapsed:_15.collapsed,minimized:_15.minimized,maximized:_15.maximized}); return _14; },dialog:function(jq){ return jq.window("window"); }}; $.fn.dialog.parseOptions=function(_16){ return $.extend({},$.fn.window.parseOptions(_16),$.parser.parseOptions(_16,["toolbar","buttons"])); }; $.fn.dialog.defaults=$.extend({},$.fn.window.defaults,{title:"New Dialog",collapsible:false,minimizable:false,maximizable:false,resizable:false,toolbar:null,buttons:null}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.draggable.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(e){ var _2=$.data(e.data.target,"draggable"); var _3=_2.options; var _4=_2.proxy; var _5=e.data; var _6=_5.startLeft+e.pageX-_5.startX; var _7=_5.startTop+e.pageY-_5.startY; if(_4){ if(_4.parent()[0]==document.body){ if(_3.deltaX!=null&&_3.deltaX!=undefined){ _6=e.pageX+_3.deltaX; }else{ _6=e.pageX-e.data.offsetWidth; } if(_3.deltaY!=null&&_3.deltaY!=undefined){ _7=e.pageY+_3.deltaY; }else{ _7=e.pageY-e.data.offsetHeight; } }else{ if(_3.deltaX!=null&&_3.deltaX!=undefined){ _6+=e.data.offsetWidth+_3.deltaX; } if(_3.deltaY!=null&&_3.deltaY!=undefined){ _7+=e.data.offsetHeight+_3.deltaY; } } } if(e.data.parent!=document.body){ _6+=$(e.data.parent).scrollLeft(); _7+=$(e.data.parent).scrollTop(); } if(_3.axis=="h"){ _5.left=_6; }else{ if(_3.axis=="v"){ _5.top=_7; }else{ _5.left=_6; _5.top=_7; } } }; function _8(e){ var _9=$.data(e.data.target,"draggable"); var _a=_9.options; var _b=_9.proxy; if(!_b){ _b=$(e.data.target); } _b.css({left:e.data.left,top:e.data.top}); $("body").css("cursor",_a.cursor); }; function _c(e){ $.fn.draggable.isDragging=true; var _d=$.data(e.data.target,"draggable"); var _e=_d.options; var _f=$(".droppable").filter(function(){ return e.data.target!=this; }).filter(function(){ var _10=$.data(this,"droppable").options.accept; if(_10){ return $(_10).filter(function(){ return this==e.data.target; }).length>0; }else{ return true; } }); _d.droppables=_f; var _11=_d.proxy; if(!_11){ if(_e.proxy){ if(_e.proxy=="clone"){ _11=$(e.data.target).clone().insertAfter(e.data.target); }else{ _11=_e.proxy.call(e.data.target,e.data.target); } _d.proxy=_11; }else{ _11=$(e.data.target); } } _11.css("position","absolute"); _1(e); _8(e); _e.onStartDrag.call(e.data.target,e); return false; }; function _12(e){ var _13=$.data(e.data.target,"draggable"); _1(e); if(_13.options.onDrag.call(e.data.target,e)!=false){ _8(e); } var _14=e.data.target; _13.droppables.each(function(){ var _15=$(this); if(_15.droppable("options").disabled){ return; } var p2=_15.offset(); if(e.pageX>p2.left&&e.pageXp2.top&&e.pageYp2.left&&e.pageXp2.top&&e.pageY_2a.options.edge; }; }); }; $.fn.draggable.methods={options:function(jq){ return $.data(jq[0],"draggable").options; },proxy:function(jq){ return $.data(jq[0],"draggable").proxy; },enable:function(jq){ return jq.each(function(){ $(this).draggable({disabled:false}); }); },disable:function(jq){ return jq.each(function(){ $(this).draggable({disabled:true}); }); }}; $.fn.draggable.parseOptions=function(_2f){ var t=$(_2f); return $.extend({},$.parser.parseOptions(_2f,["cursor","handle","axis",{"revert":"boolean","deltaX":"number","deltaY":"number","edge":"number"}]),{disabled:(t.attr("disabled")?true:undefined)}); }; $.fn.draggable.defaults={proxy:null,revert:false,cursor:"move",deltaX:null,deltaY:null,handle:null,disabled:false,edge:0,axis:null,onBeforeDrag:function(e){ },onStartDrag:function(e){ },onDrag:function(e){ },onStopDrag:function(e){ }}; $.fn.draggable.isDragging=false; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.droppable.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ $(_2).addClass("droppable"); $(_2).bind("_dragenter",function(e,_3){ $.data(_2,"droppable").options.onDragEnter.apply(_2,[e,_3]); }); $(_2).bind("_dragleave",function(e,_4){ $.data(_2,"droppable").options.onDragLeave.apply(_2,[e,_4]); }); $(_2).bind("_dragover",function(e,_5){ $.data(_2,"droppable").options.onDragOver.apply(_2,[e,_5]); }); $(_2).bind("_drop",function(e,_6){ $.data(_2,"droppable").options.onDrop.apply(_2,[e,_6]); }); }; $.fn.droppable=function(_7,_8){ if(typeof _7=="string"){ return $.fn.droppable.methods[_7](this,_8); } _7=_7||{}; return this.each(function(){ var _9=$.data(this,"droppable"); if(_9){ $.extend(_9.options,_7); }else{ _1(this); $.data(this,"droppable",{options:$.extend({},$.fn.droppable.defaults,$.fn.droppable.parseOptions(this),_7)}); } }); }; $.fn.droppable.methods={options:function(jq){ return $.data(jq[0],"droppable").options; },enable:function(jq){ return jq.each(function(){ $(this).droppable({disabled:false}); }); },disable:function(jq){ return jq.each(function(){ $(this).droppable({disabled:true}); }); }}; $.fn.droppable.parseOptions=function(_a){ var t=$(_a); return $.extend({},$.parser.parseOptions(_a,["accept"]),{disabled:(t.attr("disabled")?true:undefined)}); }; $.fn.droppable.defaults={accept:null,disabled:false,onDragEnter:function(e,_b){ },onDragOver:function(e,_c){ },onDragLeave:function(e,_d){ },onDrop:function(e,_e){ }}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.filebox.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ var _1=0; function _2(_3){ var _4=$.data(_3,"filebox"); var _5=_4.options; var id="filebox_file_id_"+(++_1); $(_3).addClass("filebox-f").textbox($.extend({},_5,{buttonText:_5.buttonText?(""):""})); $(_3).textbox("textbox").attr("readonly","readonly"); _4.filebox=$(_3).next().addClass("filebox"); _4.filebox.find(".textbox-value").remove(); _5.oldValue=""; var _6=$("").appendTo(_4.filebox); _6.attr("id",id).attr("name",$(_3).attr("textboxName")||""); _6.change(function(){ $(_3).filebox("setText",this.value); _5.onChange.call(_3,this.value,_5.oldValue); _5.oldValue=this.value; }); var _7=$(_3).filebox("button"); if(_7.length){ if(_7.linkbutton("options").disabled){ _6.attr("disabled","disabled"); }else{ _6.removeAttr("disabled"); } } }; $.fn.filebox=function(_8,_9){ if(typeof _8=="string"){ var _a=$.fn.filebox.methods[_8]; if(_a){ return _a(this,_9); }else{ return this.textbox(_8,_9); } } _8=_8||{}; return this.each(function(){ var _b=$.data(this,"filebox"); if(_b){ $.extend(_b.options,_8); }else{ $.data(this,"filebox",{options:$.extend({},$.fn.filebox.defaults,$.fn.filebox.parseOptions(this),_8)}); } _2(this); }); }; $.fn.filebox.methods={options:function(jq){ var _c=jq.textbox("options"); return $.extend($.data(jq[0],"filebox").options,{width:_c.width,value:_c.value,originalValue:_c.originalValue,disabled:_c.disabled,readonly:_c.readonly}); }}; $.fn.filebox.parseOptions=function(_d){ return $.extend({},$.fn.textbox.parseOptions(_d),{}); }; $.fn.filebox.defaults=$.extend({},$.fn.textbox.defaults,{buttonIcon:null,buttonText:"Choose File",buttonAlign:"right",inputEvents:{}}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.form.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2,_3){ var _4=$.data(_2,"form").options; $.extend(_4,_3||{}); var _5=$.extend({},_4.queryParams); if(_4.onSubmit.call(_2,_5)==false){ return; } $(_2).find(".textbox-text:focus").blur(); var _6="easyui_frame_"+(new Date().getTime()); var _7=$("").appendTo("body"); _7.attr("src",window.ActiveXObject?"javascript:false":"about:blank"); _7.css({position:"absolute",top:-1000,left:-1000}); _7.bind("load",cb); _8(_5); function _8(_9){ var _a=$(_2); if(_4.url){ _a.attr("action",_4.url); } var t=_a.attr("target"),a=_a.attr("action"); _a.attr("target",_6); var _b=$(); try{ for(var n in _9){ var _c=$("").val(_9[n]).appendTo(_a); _b=_b.add(_c); } _d(); _a[0].submit(); } finally{ _a.attr("action",a); t?_a.attr("target",t):_a.removeAttr("target"); _b.remove(); } }; function _d(){ var f=$("#"+_6); if(!f.length){ return; } try{ var s=f.contents()[0].readyState; if(s&&s.toLowerCase()=="uninitialized"){ setTimeout(_d,100); } } catch(e){ cb(); } }; var _e=10; function cb(){ var f=$("#"+_6); if(!f.length){ return; } f.unbind(); var _f=""; try{ var _10=f.contents().find("body"); _f=_10.html(); if(_f==""){ if(--_e){ setTimeout(cb,100); return; } } var ta=_10.find(">textarea"); if(ta.length){ _f=ta.val(); }else{ var pre=_10.find(">pre"); if(pre.length){ _f=pre.html(); } } } catch(e){ } _4.success(_f); setTimeout(function(){ f.unbind(); f.remove(); },100); }; }; function _11(_12,_13){ var _14=$.data(_12,"form").options; if(typeof _13=="string"){ var _15={}; if(_14.onBeforeLoad.call(_12,_15)==false){ return; } $.ajax({url:_13,data:_15,dataType:"json",success:function(_16){ _17(_16); },error:function(){ _14.onLoadError.apply(_12,arguments); }}); }else{ _17(_13); } function _17(_18){ var _19=$(_12); for(var _1a in _18){ var val=_18[_1a]; var rr=_1b(_1a,val); if(!rr.length){ var _1c=_1d(_1a,val); if(!_1c){ $("input[name=\""+_1a+"\"]",_19).val(val); $("textarea[name=\""+_1a+"\"]",_19).val(val); $("select[name=\""+_1a+"\"]",_19).val(val); } } _1e(_1a,val); } _14.onLoadSuccess.call(_12,_18); _2b(_12); }; function _1b(_1f,val){ var rr=$(_12).find("input[name=\""+_1f+"\"][type=radio], input[name=\""+_1f+"\"][type=checkbox]"); rr._propAttr("checked",false); rr.each(function(){ var f=$(this); if(f.val()==String(val)||$.inArray(f.val(),$.isArray(val)?val:[val])>=0){ f._propAttr("checked",true); } }); return rr; }; function _1d(_20,val){ var _21=0; var pp=["textbox","numberbox","slider"]; for(var i=0;i=0){ _17(_13,_15,this); } }); }; cc.children("form").length?_14(cc.children("form")):_14(cc); cc.append("
                                        "); cc.bind("_resize",function(e,_16){ if($(this).hasClass("easyui-fluid")||_16){ _2(_13); } return false; }); }; function _17(_18,_19,el){ _19.region=_19.region||"center"; var _1a=$.data(_18,"layout").panels; var cc=$(_18); var dir=_19.region; if(_1a[dir].length){ return; } var pp=$(el); if(!pp.length){ pp=$("
                                        ").appendTo(cc); } var _1b=$.extend({},$.fn.layout.paneldefaults,{width:(pp.length?parseInt(pp[0].style.width)||pp.outerWidth():"auto"),height:(pp.length?parseInt(pp[0].style.height)||pp.outerHeight():"auto"),doSize:false,collapsible:true,cls:("layout-panel layout-panel-"+dir),bodyCls:"layout-body",onOpen:function(){ var _1c=$(this).panel("header").children("div.panel-tool"); _1c.children("a.panel-tool-collapse").hide(); var _1d={north:"up",south:"down",east:"right",west:"left"}; if(!_1d[dir]){ return; } var _1e="layout-button-"+_1d[dir]; var t=_1c.children("a."+_1e); if(!t.length){ t=$("").addClass(_1e).appendTo(_1c); t.bind("click",{dir:dir},function(e){ _2b(_18,e.data.dir); return false; }); } $(this).panel("options").collapsible?t.show():t.hide(); }},_19); pp.panel(_1b); _1a[dir]=pp; if(pp.panel("options").split){ var _1f=pp.panel("panel"); _1f.addClass("layout-split-"+dir); var _20=""; if(dir=="north"){ _20="s"; } if(dir=="south"){ _20="n"; } if(dir=="east"){ _20="w"; } if(dir=="west"){ _20="e"; } _1f.resizable($.extend({},{handles:_20,onStartResize:function(e){ _1=true; if(dir=="north"||dir=="south"){ var _21=$(">div.layout-split-proxy-v",_18); }else{ var _21=$(">div.layout-split-proxy-h",_18); } var top=0,_22=0,_23=0,_24=0; var pos={display:"block"}; if(dir=="north"){ pos.top=parseInt(_1f.css("top"))+_1f.outerHeight()-_21.height(); pos.left=parseInt(_1f.css("left")); pos.width=_1f.outerWidth(); pos.height=_21.height(); }else{ if(dir=="south"){ pos.top=parseInt(_1f.css("top")); pos.left=parseInt(_1f.css("left")); pos.width=_1f.outerWidth(); pos.height=_21.height(); }else{ if(dir=="east"){ pos.top=parseInt(_1f.css("top"))||0; pos.left=parseInt(_1f.css("left"))||0; pos.width=_21.width(); pos.height=_1f.outerHeight(); }else{ if(dir=="west"){ pos.top=parseInt(_1f.css("top"))||0; pos.left=_1f.outerWidth()-_21.width(); pos.width=_21.width(); pos.height=_1f.outerHeight(); } } } } _21.css(pos); $("
                                        ").css({left:0,top:0,width:cc.width(),height:cc.height()}).appendTo(cc); },onResize:function(e){ if(dir=="north"||dir=="south"){ var _25=$(">div.layout-split-proxy-v",_18); _25.css("top",e.pageY-$(_18).offset().top-_25.height()/2); }else{ var _25=$(">div.layout-split-proxy-h",_18); _25.css("left",e.pageX-$(_18).offset().left-_25.width()/2); } return false; },onStopResize:function(e){ cc.children("div.layout-split-proxy-v,div.layout-split-proxy-h").hide(); pp.panel("resize",e.data); _2(_18); _1=false; cc.find(">div.layout-mask").remove(); }},_19)); } }; function _26(_27,_28){ var _29=$.data(_27,"layout").panels; if(_29[_28].length){ _29[_28].panel("destroy"); _29[_28]=$(); var _2a="expand"+_28.substring(0,1).toUpperCase()+_28.substring(1); if(_29[_2a]){ _29[_2a].panel("destroy"); _29[_2a]=undefined; } } }; function _2b(_2c,_2d,_2e){ if(_2e==undefined){ _2e="normal"; } var _2f=$.data(_2c,"layout").panels; var p=_2f[_2d]; var _30=p.panel("options"); if(_30.onBeforeCollapse.call(p)==false){ return; } var _31="expand"+_2d.substring(0,1).toUpperCase()+_2d.substring(1); if(!_2f[_31]){ _2f[_31]=_32(_2d); _2f[_31].panel("panel").bind("click",function(){ p.panel("expand",false).panel("open"); var _33=_34(); p.panel("resize",_33.collapse); p.panel("panel").animate(_33.expand,function(){ $(this).unbind(".layout").bind("mouseleave.layout",{region:_2d},function(e){ if(_1==true){ return; } if($("body>div.combo-p>div.combo-panel:visible").length){ return; } _2b(_2c,e.data.region); }); }); return false; }); } var _35=_34(); if(!_a(_2f[_31])){ _2f.center.panel("resize",_35.resizeC); } p.panel("panel").animate(_35.collapse,_2e,function(){ p.panel("collapse",false).panel("close"); _2f[_31].panel("open").panel("resize",_35.expandP); $(this).unbind(".layout"); }); function _32(dir){ var _36; if(dir=="east"){ _36="layout-button-left"; }else{ if(dir=="west"){ _36="layout-button-right"; }else{ if(dir=="north"){ _36="layout-button-down"; }else{ if(dir=="south"){ _36="layout-button-up"; } } } } var p=$("
                                        ").appendTo(_2c); p.panel($.extend({},$.fn.layout.paneldefaults,{cls:("layout-expand layout-expand-"+dir),title:" ",closed:true,minWidth:0,minHeight:0,doSize:false,tools:[{iconCls:_36,handler:function(){ _3c(_2c,_2d); return false; }}]})); p.panel("panel").hover(function(){ $(this).addClass("layout-expand-over"); },function(){ $(this).removeClass("layout-expand-over"); }); return p; }; function _34(){ var cc=$(_2c); var _37=_2f.center.panel("options"); var _38=_30.collapsedSize; if(_2d=="east"){ var _39=p.panel("panel")._outerWidth(); var _3a=_37.width+_39-_38; if(_30.split||!_30.border){ _3a++; } return {resizeC:{width:_3a},expand:{left:cc.width()-_39},expandP:{top:_37.top,left:cc.width()-_38,width:_38,height:_37.height},collapse:{left:cc.width(),top:_37.top,height:_37.height}}; }else{ if(_2d=="west"){ var _39=p.panel("panel")._outerWidth(); var _3a=_37.width+_39-_38; if(_30.split||!_30.border){ _3a++; } return {resizeC:{width:_3a,left:_38-1},expand:{left:0},expandP:{left:0,top:_37.top,width:_38,height:_37.height},collapse:{left:-_39,top:_37.top,height:_37.height}}; }else{ if(_2d=="north"){ var _3b=p.panel("panel")._outerHeight(); var hh=_37.height; if(!_a(_2f.expandNorth)){ hh+=_3b-_38+((_30.split||!_30.border)?1:0); } _2f.east.add(_2f.west).add(_2f.expandEast).add(_2f.expandWest).panel("resize",{top:_38-1,height:hh}); return {resizeC:{top:_38-1,height:hh},expand:{top:0},expandP:{top:0,left:0,width:cc.width(),height:_38},collapse:{top:-_3b,width:cc.width()}}; }else{ if(_2d=="south"){ var _3b=p.panel("panel")._outerHeight(); var hh=_37.height; if(!_a(_2f.expandSouth)){ hh+=_3b-_38+((_30.split||!_30.border)?1:0); } _2f.east.add(_2f.west).add(_2f.expandEast).add(_2f.expandWest).panel("resize",{height:hh}); return {resizeC:{height:hh},expand:{top:cc.height()-_3b},expandP:{top:cc.height()-_38,left:0,width:cc.width(),height:_38},collapse:{top:cc.height(),width:cc.width()}}; } } } } }; }; function _3c(_3d,_3e){ var _3f=$.data(_3d,"layout").panels; var p=_3f[_3e]; var _40=p.panel("options"); if(_40.onBeforeExpand.call(p)==false){ return; } var _41="expand"+_3e.substring(0,1).toUpperCase()+_3e.substring(1); if(_3f[_41]){ _3f[_41].panel("close"); p.panel("panel").stop(true,true); p.panel("expand",false).panel("open"); var _42=_43(); p.panel("resize",_42.collapse); p.panel("panel").animate(_42.expand,function(){ _2(_3d); }); } function _43(){ var cc=$(_3d); var _44=_3f.center.panel("options"); if(_3e=="east"&&_3f.expandEast){ return {collapse:{left:cc.width(),top:_44.top,height:_44.height},expand:{left:cc.width()-p.panel("panel")._outerWidth()}}; }else{ if(_3e=="west"&&_3f.expandWest){ return {collapse:{left:-p.panel("panel")._outerWidth(),top:_44.top,height:_44.height},expand:{left:0}}; }else{ if(_3e=="north"&&_3f.expandNorth){ return {collapse:{top:-p.panel("panel")._outerHeight(),width:cc.width()},expand:{top:0}}; }else{ if(_3e=="south"&&_3f.expandSouth){ return {collapse:{top:cc.height(),width:cc.width()},expand:{top:cc.height()-p.panel("panel")._outerHeight()}}; } } } } }; }; function _a(pp){ if(!pp){ return false; } if(pp.length){ return pp.panel("panel").is(":visible"); }else{ return false; } }; function _45(_46){ var _47=$.data(_46,"layout").panels; if(_47.east.length&&_47.east.panel("options").collapsed){ _2b(_46,"east",0); } if(_47.west.length&&_47.west.panel("options").collapsed){ _2b(_46,"west",0); } if(_47.north.length&&_47.north.panel("options").collapsed){ _2b(_46,"north",0); } if(_47.south.length&&_47.south.panel("options").collapsed){ _2b(_46,"south",0); } }; $.fn.layout=function(_48,_49){ if(typeof _48=="string"){ return $.fn.layout.methods[_48](this,_49); } _48=_48||{}; return this.each(function(){ var _4a=$.data(this,"layout"); if(_4a){ $.extend(_4a.options,_48); }else{ var _4b=$.extend({},$.fn.layout.defaults,$.fn.layout.parseOptions(this),_48); $.data(this,"layout",{options:_4b,panels:{center:$(),north:$(),south:$(),east:$(),west:$()}}); _12(this); } _2(this); _45(this); }); }; $.fn.layout.methods={options:function(jq){ return $.data(jq[0],"layout").options; },resize:function(jq,_4c){ return jq.each(function(){ _2(this,_4c); }); },panel:function(jq,_4d){ return $.data(jq[0],"layout").panels[_4d]; },collapse:function(jq,_4e){ return jq.each(function(){ _2b(this,_4e); }); },expand:function(jq,_4f){ return jq.each(function(){ _3c(this,_4f); }); },add:function(jq,_50){ return jq.each(function(){ _17(this,_50); _2(this); if($(this).layout("panel",_50.region).panel("options").collapsed){ _2b(this,_50.region,0); } }); },remove:function(jq,_51){ return jq.each(function(){ _26(this,_51); _2(this); }); }}; $.fn.layout.parseOptions=function(_52){ return $.extend({},$.parser.parseOptions(_52,[{fit:"boolean"}])); }; $.fn.layout.defaults={fit:false}; $.fn.layout.parsePanelOptions=function(_53){ var t=$(_53); return $.extend({},$.fn.panel.parseOptions(_53),$.parser.parseOptions(_53,["region",{split:"boolean",collpasedSize:"number",minWidth:"number",minHeight:"number",maxWidth:"number",maxHeight:"number"}])); }; $.fn.layout.paneldefaults=$.extend({},$.fn.panel.defaults,{region:null,split:false,collapsedSize:28,minWidth:10,minHeight:10,maxWidth:10000,maxHeight:10000}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.linkbutton.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2,_3){ var _4=$.data(_2,"linkbutton").options; if(_3){ $.extend(_4,_3); } if(_4.width||_4.height||_4.fit){ var _5=$(_2); var _6=_5.parent(); var _7=_5.is(":visible"); if(!_7){ var _8=$("
                                        ").insertBefore(_2); var _9={position:_5.css("position"),display:_5.css("display"),left:_5.css("left")}; _5.appendTo("body"); _5.css({position:"absolute",display:"inline-block",left:-20000}); } _5._size(_4,_6); var _a=_5.find(".l-btn-left"); _a.css("margin-top",0); _a.css("margin-top",parseInt((_5.height()-_a.height())/2)+"px"); if(!_7){ _5.insertAfter(_8); _5.css(_9); _8.remove(); } } }; function _b(_c){ var _d=$.data(_c,"linkbutton").options; var t=$(_c).empty(); t.addClass("l-btn").removeClass("l-btn-plain l-btn-selected l-btn-plain-selected"); t.removeClass("l-btn-small l-btn-medium l-btn-large").addClass("l-btn-"+_d.size); if(_d.plain){ t.addClass("l-btn-plain"); } if(_d.selected){ t.addClass(_d.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected"); } t.attr("group",_d.group||""); t.attr("id",_d.id||""); var _e=$("").appendTo(t); if(_d.text){ $("").html(_d.text).appendTo(_e); }else{ $(" ").appendTo(_e); } if(_d.iconCls){ $(" ").addClass(_d.iconCls).appendTo(_e); _e.addClass("l-btn-icon-"+_d.iconAlign); } t.unbind(".linkbutton").bind("focus.linkbutton",function(){ if(!_d.disabled){ $(this).addClass("l-btn-focus"); } }).bind("blur.linkbutton",function(){ $(this).removeClass("l-btn-focus"); }).bind("click.linkbutton",function(){ if(!_d.disabled){ if(_d.toggle){ if(_d.selected){ $(this).linkbutton("unselect"); }else{ $(this).linkbutton("select"); } } _d.onClick.call(this); } }); _f(_c,_d.selected); _10(_c,_d.disabled); }; function _f(_11,_12){ var _13=$.data(_11,"linkbutton").options; if(_12){ if(_13.group){ $("a.l-btn[group=\""+_13.group+"\"]").each(function(){ var o=$(this).linkbutton("options"); if(o.toggle){ $(this).removeClass("l-btn-selected l-btn-plain-selected"); o.selected=false; } }); } $(_11).addClass(_13.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected"); _13.selected=true; }else{ if(!_13.group){ $(_11).removeClass("l-btn-selected l-btn-plain-selected"); _13.selected=false; } } }; function _10(_14,_15){ var _16=$.data(_14,"linkbutton"); var _17=_16.options; $(_14).removeClass("l-btn-disabled l-btn-plain-disabled"); if(_15){ _17.disabled=true; var _18=$(_14).attr("href"); if(_18){ _16.href=_18; $(_14).attr("href","javascript:void(0)"); } if(_14.onclick){ _16.onclick=_14.onclick; _14.onclick=null; } _17.plain?$(_14).addClass("l-btn-disabled l-btn-plain-disabled"):$(_14).addClass("l-btn-disabled"); }else{ _17.disabled=false; if(_16.href){ $(_14).attr("href",_16.href); } if(_16.onclick){ _14.onclick=_16.onclick; } } }; $.fn.linkbutton=function(_19,_1a){ if(typeof _19=="string"){ return $.fn.linkbutton.methods[_19](this,_1a); } _19=_19||{}; return this.each(function(){ var _1b=$.data(this,"linkbutton"); if(_1b){ $.extend(_1b.options,_19); }else{ $.data(this,"linkbutton",{options:$.extend({},$.fn.linkbutton.defaults,$.fn.linkbutton.parseOptions(this),_19)}); $(this).removeAttr("disabled"); $(this).bind("_resize",function(e,_1c){ if($(this).hasClass("easyui-fluid")||_1c){ _1(this); } return false; }); } _b(this); _1(this); }); }; $.fn.linkbutton.methods={options:function(jq){ return $.data(jq[0],"linkbutton").options; },resize:function(jq,_1d){ return jq.each(function(){ _1(this,_1d); }); },enable:function(jq){ return jq.each(function(){ _10(this,false); }); },disable:function(jq){ return jq.each(function(){ _10(this,true); }); },select:function(jq){ return jq.each(function(){ _f(this,true); }); },unselect:function(jq){ return jq.each(function(){ _f(this,false); }); }}; $.fn.linkbutton.parseOptions=function(_1e){ var t=$(_1e); return $.extend({},$.parser.parseOptions(_1e,["id","iconCls","iconAlign","group","size",{plain:"boolean",toggle:"boolean",selected:"boolean"}]),{disabled:(t.attr("disabled")?true:undefined),text:$.trim(t.html()),iconCls:(t.attr("icon")||t.attr("iconCls"))}); }; $.fn.linkbutton.defaults={id:null,disabled:false,toggle:false,selected:false,group:null,plain:false,text:"",iconCls:null,iconAlign:"left",size:"small",onClick:function(){ }}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.menu.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ $(_2).appendTo("body"); $(_2).addClass("menu-top"); $(document).unbind(".menu").bind("mousedown.menu",function(e){ var m=$(e.target).closest("div.menu,div.combo-p"); if(m.length){ return; } $("body>div.menu-top:visible").menu("hide"); }); var _3=_4($(_2)); for(var i=0;i<_3.length;i++){ _5(_3[i]); } function _4(_6){ var _7=[]; _6.addClass("menu"); _7.push(_6); if(!_6.hasClass("menu-content")){ _6.children("div").each(function(){ var _8=$(this).children("div"); if(_8.length){ _8.insertAfter(_2); this.submenu=_8; var mm=_4(_8); _7=_7.concat(mm); } }); } return _7; }; function _5(_9){ var wh=$.parser.parseOptions(_9[0],["width","height"]); _9[0].originalHeight=wh.height||0; if(_9.hasClass("menu-content")){ _9[0].originalWidth=wh.width||_9._outerWidth(); }else{ _9[0].originalWidth=wh.width||0; _9.children("div").each(function(){ var _a=$(this); var _b=$.extend({},$.parser.parseOptions(this,["name","iconCls","href",{separator:"boolean"}]),{disabled:(_a.attr("disabled")?true:undefined)}); if(_b.separator){ _a.addClass("menu-sep"); } if(!_a.hasClass("menu-sep")){ _a[0].itemName=_b.name||""; _a[0].itemHref=_b.href||""; var _c=_a.addClass("menu-item").html(); _a.empty().append($("
                                        ").html(_c)); if(_b.iconCls){ $("
                                        ").addClass(_b.iconCls).appendTo(_a); } if(_b.disabled){ _d(_2,_a[0],true); } if(_a[0].submenu){ $("
                                        ").appendTo(_a); } _e(_2,_a); } }); $("
                                        ").prependTo(_9); } _f(_2,_9); _9.hide(); _10(_2,_9); }; }; function _f(_11,_12){ var _13=$.data(_11,"menu").options; var _14=_12.attr("style")||""; _12.css({display:"block",left:-10000,height:"auto",overflow:"hidden"}); var el=_12[0]; var _15=el.originalWidth||0; if(!_15){ _15=0; _12.find("div.menu-text").each(function(){ if(_15<$(this)._outerWidth()){ _15=$(this)._outerWidth(); } $(this).closest("div.menu-item")._outerHeight($(this)._outerHeight()+2); }); _15+=40; } _15=Math.max(_15,_13.minWidth); var _16=el.originalHeight||0; if(!_16){ _16=_12.outerHeight(); if(_12.hasClass("menu-top")&&_13.alignTo){ var at=$(_13.alignTo); var h1=at.offset().top-$(document).scrollTop(); var h2=$(window)._outerHeight()+$(document).scrollTop()-at.offset().top-at._outerHeight(); _16=Math.min(_16,Math.max(h1,h2)); }else{ if(_16>$(window)._outerHeight()){ _16=$(window).height(); _14+=";overflow:auto"; }else{ _14+=";overflow:hidden"; } } } var _17=Math.max(el.originalHeight,_12.outerHeight())-2; _12._outerWidth(_15)._outerHeight(_16); _12.children("div.menu-line")._outerHeight(_17); _14+=";width:"+el.style.width+";height:"+el.style.height; _12.attr("style",_14); }; function _10(_18,_19){ var _1a=$.data(_18,"menu"); _19.unbind(".menu").bind("mouseenter.menu",function(){ if(_1a.timer){ clearTimeout(_1a.timer); _1a.timer=null; } }).bind("mouseleave.menu",function(){ if(_1a.options.hideOnUnhover){ _1a.timer=setTimeout(function(){ _1b(_18); },_1a.options.duration); } }); }; function _e(_1c,_1d){ if(!_1d.hasClass("menu-item")){ return; } _1d.unbind(".menu"); _1d.bind("click.menu",function(){ if($(this).hasClass("menu-item-disabled")){ return; } if(!this.submenu){ _1b(_1c); var _1e=this.itemHref; if(_1e){ location.href=_1e; } } var _1f=$(_1c).menu("getItem",this); $.data(_1c,"menu").options.onClick.call(_1c,_1f); }).bind("mouseenter.menu",function(e){ _1d.siblings().each(function(){ if(this.submenu){ _22(this.submenu); } $(this).removeClass("menu-active"); }); _1d.addClass("menu-active"); if($(this).hasClass("menu-item-disabled")){ _1d.addClass("menu-active-disabled"); return; } var _20=_1d[0].submenu; if(_20){ $(_1c).menu("show",{menu:_20,parent:_1d}); } }).bind("mouseleave.menu",function(e){ _1d.removeClass("menu-active menu-active-disabled"); var _21=_1d[0].submenu; if(_21){ if(e.pageX>=parseInt(_21.css("left"))){ _1d.addClass("menu-active"); }else{ _22(_21); } }else{ _1d.removeClass("menu-active"); } }); }; function _1b(_23){ var _24=$.data(_23,"menu"); if(_24){ if($(_23).is(":visible")){ _22($(_23)); _24.options.onHide.call(_23); } } return false; }; function _25(_26,_27){ var _28,top; _27=_27||{}; var _29=$(_27.menu||_26); $(_26).menu("resize",_29[0]); if(_29.hasClass("menu-top")){ var _2a=$.data(_26,"menu").options; $.extend(_2a,_27); _28=_2a.left; top=_2a.top; if(_2a.alignTo){ var at=$(_2a.alignTo); _28=at.offset().left; top=at.offset().top+at._outerHeight(); if(_2a.align=="right"){ _28+=at.outerWidth()-_29.outerWidth(); } } if(_28+_29.outerWidth()>$(window)._outerWidth()+$(document)._scrollLeft()){ _28=$(window)._outerWidth()+$(document).scrollLeft()-_29.outerWidth()-5; } if(_28<0){ _28=0; } top=_2b(top,_2a.alignTo); }else{ var _2c=_27.parent; _28=_2c.offset().left+_2c.outerWidth()-2; if(_28+_29.outerWidth()+5>$(window)._outerWidth()+$(document).scrollLeft()){ _28=_2c.offset().left-_29.outerWidth()+2; } top=_2b(_2c.offset().top-3); } function _2b(top,_2d){ if(top+_29.outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){ if(_2d){ top=$(_2d).offset().top-_29._outerHeight(); }else{ top=$(window)._outerHeight()+$(document).scrollTop()-_29.outerHeight(); } } if(top<0){ top=0; } return top; }; _29.css({left:_28,top:top}); _29.show(0,function(){ if(!_29[0].shadow){ _29[0].shadow=$("
                                        ").insertAfter(_29); } _29[0].shadow.css({display:"block",zIndex:$.fn.menu.defaults.zIndex++,left:_29.css("left"),top:_29.css("top"),width:_29.outerWidth(),height:_29.outerHeight()}); _29.css("z-index",$.fn.menu.defaults.zIndex++); if(_29.hasClass("menu-top")){ $.data(_29[0],"menu").options.onShow.call(_29[0]); } }); }; function _22(_2e){ if(!_2e){ return; } _2f(_2e); _2e.find("div.menu-item").each(function(){ if(this.submenu){ _22(this.submenu); } $(this).removeClass("menu-active"); }); function _2f(m){ m.stop(true,true); if(m[0].shadow){ m[0].shadow.hide(); } m.hide(); }; }; function _30(_31,_32){ var _33=null; var tmp=$("
                                        "); function _34(_35){ _35.children("div.menu-item").each(function(){ var _36=$(_31).menu("getItem",this); var s=tmp.empty().html(_36.text).text(); if(_32==$.trim(s)){ _33=_36; }else{ if(this.submenu&&!_33){ _34(this.submenu); } } }); }; _34($(_31)); tmp.remove(); return _33; }; function _d(_37,_38,_39){ var t=$(_38); if(!t.hasClass("menu-item")){ return; } if(_39){ t.addClass("menu-item-disabled"); if(_38.onclick){ _38.onclick1=_38.onclick; _38.onclick=null; } }else{ t.removeClass("menu-item-disabled"); if(_38.onclick1){ _38.onclick=_38.onclick1; _38.onclick1=null; } } }; function _3a(_3b,_3c){ var _3d=$(_3b); if(_3c.parent){ if(!_3c.parent.submenu){ var _3e=$("
                                        ").appendTo("body"); _3e.hide(); _3c.parent.submenu=_3e; $("
                                        ").appendTo(_3c.parent); } _3d=_3c.parent.submenu; } if(_3c.separator){ var _3f=$("
                                        ").appendTo(_3d); }else{ var _3f=$("
                                        ").appendTo(_3d); $("
                                        ").html(_3c.text).appendTo(_3f); } if(_3c.iconCls){ $("
                                        ").addClass(_3c.iconCls).appendTo(_3f); } if(_3c.id){ _3f.attr("id",_3c.id); } if(_3c.name){ _3f[0].itemName=_3c.name; } if(_3c.href){ _3f[0].itemHref=_3c.href; } if(_3c.onclick){ if(typeof _3c.onclick=="string"){ _3f.attr("onclick",_3c.onclick); }else{ _3f[0].onclick=eval(_3c.onclick); } } if(_3c.handler){ _3f[0].onclick=eval(_3c.handler); } if(_3c.disabled){ _d(_3b,_3f[0],true); } _e(_3b,_3f); _10(_3b,_3d); _f(_3b,_3d); }; function _40(_41,_42){ function _43(el){ if(el.submenu){ el.submenu.children("div.menu-item").each(function(){ _43(this); }); var _44=el.submenu[0].shadow; if(_44){ _44.remove(); } el.submenu.remove(); } $(el).remove(); }; var _45=$(_42).parent(); _43(_42); _f(_41,_45); }; function _46(_47,_48,_49){ var _4a=$(_48).parent(); if(_49){ $(_48).show(); }else{ $(_48).hide(); } _f(_47,_4a); }; function _4b(_4c){ $(_4c).children("div.menu-item").each(function(){ _40(_4c,this); }); if(_4c.shadow){ _4c.shadow.remove(); } $(_4c).remove(); }; $.fn.menu=function(_4d,_4e){ if(typeof _4d=="string"){ return $.fn.menu.methods[_4d](this,_4e); } _4d=_4d||{}; return this.each(function(){ var _4f=$.data(this,"menu"); if(_4f){ $.extend(_4f.options,_4d); }else{ _4f=$.data(this,"menu",{options:$.extend({},$.fn.menu.defaults,$.fn.menu.parseOptions(this),_4d)}); _1(this); } $(this).css({left:_4f.options.left,top:_4f.options.top}); }); }; $.fn.menu.methods={options:function(jq){ return $.data(jq[0],"menu").options; },show:function(jq,pos){ return jq.each(function(){ _25(this,pos); }); },hide:function(jq){ return jq.each(function(){ _1b(this); }); },destroy:function(jq){ return jq.each(function(){ _4b(this); }); },setText:function(jq,_50){ return jq.each(function(){ $(_50.target).children("div.menu-text").html(_50.text); }); },setIcon:function(jq,_51){ return jq.each(function(){ $(_51.target).children("div.menu-icon").remove(); if(_51.iconCls){ $("
                                        ").addClass(_51.iconCls).appendTo(_51.target); } }); },getItem:function(jq,_52){ var t=$(_52); var _53={target:_52,id:t.attr("id"),text:$.trim(t.children("div.menu-text").html()),disabled:t.hasClass("menu-item-disabled"),name:_52.itemName,href:_52.itemHref,onclick:_52.onclick}; var _54=t.children("div.menu-icon"); if(_54.length){ var cc=[]; var aa=_54.attr("class").split(" "); for(var i=0;i").addClass(_3.cls.arrow).appendTo(_5); $("").addClass("m-btn-line").appendTo(_5); if(_3.menu){ $(_3.menu).menu({duration:_3.duration}); var _6=$(_3.menu).menu("options"); var _7=_6.onShow; var _8=_6.onHide; $.extend(_6,{onShow:function(){ var _9=$(this).menu("options"); var _a=$(_9.alignTo); var _b=_a.menubutton("options"); _a.addClass((_b.plain==true)?_b.cls.btn2:_b.cls.btn1); _7.call(this); },onHide:function(){ var _c=$(this).menu("options"); var _d=$(_c.alignTo); var _e=_d.menubutton("options"); _d.removeClass((_e.plain==true)?_e.cls.btn2:_e.cls.btn1); _8.call(this); }}); } }; function _f(_10){ var _11=$.data(_10,"menubutton").options; var btn=$(_10); var t=btn.find("."+_11.cls.trigger); if(!t.length){ t=btn; } t.unbind(".menubutton"); var _12=null; t.bind("click.menubutton",function(){ if(!_13()){ _14(_10); return false; } }).bind("mouseenter.menubutton",function(){ if(!_13()){ _12=setTimeout(function(){ _14(_10); },_11.duration); return false; } }).bind("mouseleave.menubutton",function(){ if(_12){ clearTimeout(_12); } $(_11.menu).triggerHandler("mouseleave"); }); function _13(){ return $(_10).linkbutton("options").disabled; }; }; function _14(_15){ var _16=$(_15).menubutton("options"); if(_16.disabled||!_16.menu){ return; } $("body>div.menu-top").menu("hide"); var btn=$(_15); var mm=$(_16.menu); if(mm.length){ mm.menu("options").alignTo=btn; mm.menu("show",{alignTo:btn,align:_16.menuAlign}); } btn.blur(); }; $.fn.menubutton=function(_17,_18){ if(typeof _17=="string"){ var _19=$.fn.menubutton.methods[_17]; if(_19){ return _19(this,_18); }else{ return this.linkbutton(_17,_18); } } _17=_17||{}; return this.each(function(){ var _1a=$.data(this,"menubutton"); if(_1a){ $.extend(_1a.options,_17); }else{ $.data(this,"menubutton",{options:$.extend({},$.fn.menubutton.defaults,$.fn.menubutton.parseOptions(this),_17)}); $(this).removeAttr("disabled"); } _1(this); _f(this); }); }; $.fn.menubutton.methods={options:function(jq){ var _1b=jq.linkbutton("options"); return $.extend($.data(jq[0],"menubutton").options,{toggle:_1b.toggle,selected:_1b.selected,disabled:_1b.disabled}); },destroy:function(jq){ return jq.each(function(){ var _1c=$(this).menubutton("options"); if(_1c.menu){ $(_1c.menu).menu("destroy"); } $(this).remove(); }); }}; $.fn.menubutton.parseOptions=function(_1d){ var t=$(_1d); return $.extend({},$.fn.linkbutton.parseOptions(_1d),$.parser.parseOptions(_1d,["menu",{plain:"boolean",duration:"number"}])); }; $.fn.menubutton.defaults=$.extend({},$.fn.linkbutton.defaults,{plain:true,menu:null,menuAlign:"left",duration:100,cls:{btn1:"m-btn-active",btn2:"m-btn-plain-active",arrow:"m-btn-downarrow",trigger:"m-btn"}}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.messager.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(el,_2,_3,_4){ var _5=$(el).window("window"); if(!_5){ return; } switch(_2){ case null: _5.show(); break; case "slide": _5.slideDown(_3); break; case "fade": _5.fadeIn(_3); break; case "show": _5.show(_3); break; } var _6=null; if(_4>0){ _6=setTimeout(function(){ _7(el,_2,_3); },_4); } _5.hover(function(){ if(_6){ clearTimeout(_6); } },function(){ if(_4>0){ _6=setTimeout(function(){ _7(el,_2,_3); },_4); } }); }; function _7(el,_8,_9){ if(el.locked==true){ return; } el.locked=true; var _a=$(el).window("window"); if(!_a){ return; } switch(_8){ case null: _a.hide(); break; case "slide": _a.slideUp(_9); break; case "fade": _a.fadeOut(_9); break; case "show": _a.hide(_9); break; } setTimeout(function(){ $(el).window("destroy"); },_9); }; function _b(_c){ var _d=$.extend({},$.fn.window.defaults,{collapsible:false,minimizable:false,maximizable:false,shadow:false,draggable:false,resizable:false,closed:true,style:{left:"",top:"",right:0,zIndex:$.fn.window.defaults.zIndex++,bottom:-document.body.scrollTop-document.documentElement.scrollTop},onBeforeOpen:function(){ _1(this,_d.showType,_d.showSpeed,_d.timeout); return false; },onBeforeClose:function(){ _7(this,_d.showType,_d.showSpeed); return false; }},{title:"",width:250,height:100,showType:"slide",showSpeed:600,msg:"",timeout:4000},_c); _d.style.zIndex=$.fn.window.defaults.zIndex++; var _e=$("
                                        ").html(_d.msg).appendTo("body"); _e.window(_d); _e.window("window").css(_d.style); _e.window("open"); return _e; }; function _f(_10,_11,_12){ var win=$("
                                        ").appendTo("body"); win.append(_11); if(_12){ var tb=$("
                                        ").appendTo(win); for(var _13 in _12){ $("").attr("href","javascript:void(0)").text(_13).css("margin-left",10).bind("click",eval(_12[_13])).appendTo(tb).linkbutton(); } } win.window({title:_10,noheader:(_10?false:true),width:300,height:"auto",modal:true,collapsible:false,minimizable:false,maximizable:false,resizable:false,onClose:function(){ setTimeout(function(){ win.window("destroy"); },100); }}); win.window("window").addClass("messager-window"); win.children("div.messager-button").children("a:first").focus(); return win; }; $.messager={show:function(_14){ return _b(_14); },alert:function(_15,msg,_16,fn){ var _17="
                                        "+msg+"
                                        "; switch(_16){ case "error": _17="
                                        "+_17; break; case "info": _17="
                                        "+_17; break; case "question": _17="
                                        "+_17; break; case "warning": _17="
                                        "+_17; break; } _17+="
                                        "; var _18={}; _18[$.messager.defaults.ok]=function(){ win.window("close"); if(fn){ fn(); return false; } }; var win=_f(_15,_17,_18); return win; },confirm:function(_19,msg,fn){ var _1a="
                                        "+"
                                        "+msg+"
                                        "+"
                                        "; var _1b={}; _1b[$.messager.defaults.ok]=function(){ win.window("close"); if(fn){ fn(true); return false; } }; _1b[$.messager.defaults.cancel]=function(){ win.window("close"); if(fn){ fn(false); return false; } }; var win=_f(_19,_1a,_1b); return win; },prompt:function(_1c,msg,fn){ var _1d="
                                        "+"
                                        "+msg+"
                                        "+"
                                        "+"
                                        "+"
                                        "; var _1e={}; _1e[$.messager.defaults.ok]=function(){ win.window("close"); if(fn){ fn($(".messager-input",win).val()); return false; } }; _1e[$.messager.defaults.cancel]=function(){ win.window("close"); if(fn){ fn(); return false; } }; var win=_f(_1c,_1d,_1e); win.children("input.messager-input").focus(); return win; },progress:function(_1f){ var _20={bar:function(){ return $("body>div.messager-window").find("div.messager-p-bar"); },close:function(){ var win=$("body>div.messager-window>div.messager-body:has(div.messager-progress)"); if(win.length){ win.window("close"); } }}; if(typeof _1f=="string"){ var _21=_20[_1f]; return _21(); } var _22=$.extend({title:"",msg:"",text:undefined,interval:300},_1f||{}); var _23="
                                        "; var win=_f(_22.title,_23,null); win.find("div.messager-p-msg").html(_22.msg); var bar=win.find("div.messager-p-bar"); bar.progressbar({text:_22.text}); win.window({closable:false,onClose:function(){ if(this.timer){ clearInterval(this.timer); } $(this).window("destroy"); }}); if(_22.interval){ win[0].timer=setInterval(function(){ var v=bar.progressbar("getValue"); v+=10; if(v>100){ v=0; } bar.progressbar("setValue",v); },_22.interval); } return win; }}; $.messager.defaults={ok:"Ok",cancel:"Cancel"}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.numberbox.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"numberbox"); var _4=_3.options; $(_2).addClass("numberbox-f").textbox(_4); $(_2).textbox("textbox").css({imeMode:"disabled"}); $(_2).attr("numberboxName",$(_2).attr("textboxName")); _3.numberbox=$(_2).next(); _3.numberbox.addClass("numberbox"); var _5=_4.parser.call(_2,_4.value); var _6=_4.formatter.call(_2,_5); $(_2).numberbox("initValue",_5).numberbox("setText",_6); }; function _7(_8,_9){ var _a=$.data(_8,"numberbox"); var _b=_a.options; var _9=_b.parser.call(_8,_9); var _c=_b.formatter.call(_8,_9); _b.value=_9; $(_8).textbox("setValue",_9).textbox("setText",_c); }; $.fn.numberbox=function(_d,_e){ if(typeof _d=="string"){ var _f=$.fn.numberbox.methods[_d]; if(_f){ return _f(this,_e); }else{ return this.textbox(_d,_e); } } _d=_d||{}; return this.each(function(){ var _10=$.data(this,"numberbox"); if(_10){ $.extend(_10.options,_d); }else{ _10=$.data(this,"numberbox",{options:$.extend({},$.fn.numberbox.defaults,$.fn.numberbox.parseOptions(this),_d)}); } _1(this); }); }; $.fn.numberbox.methods={options:function(jq){ var _11=jq.data("textbox")?jq.textbox("options"):{}; return $.extend($.data(jq[0],"numberbox").options,{width:_11.width,originalValue:_11.originalValue,disabled:_11.disabled,readonly:_11.readonly}); },fix:function(jq){ return jq.each(function(){ $(this).numberbox("setValue",$(this).numberbox("getText")); }); },setValue:function(jq,_12){ return jq.each(function(){ _7(this,_12); }); },clear:function(jq){ return jq.each(function(){ $(this).textbox("clear"); $(this).numberbox("options").value=""; }); },reset:function(jq){ return jq.each(function(){ $(this).textbox("reset"); $(this).numberbox("setValue",$(this).numberbox("getValue")); }); }}; $.fn.numberbox.parseOptions=function(_13){ var t=$(_13); return $.extend({},$.fn.textbox.parseOptions(_13),$.parser.parseOptions(_13,["decimalSeparator","groupSeparator","suffix",{min:"number",max:"number",precision:"number"}]),{prefix:(t.attr("prefix")?t.attr("prefix"):undefined)}); }; $.fn.numberbox.defaults=$.extend({},$.fn.textbox.defaults,{inputEvents:{keypress:function(e){ var _14=e.data.target; var _15=$(_14).numberbox("options"); return _15.filter.call(_14,e); },blur:function(e){ var _16=e.data.target; $(_16).numberbox("setValue",$(_16).numberbox("getText")); },keydown:function(e){ if(e.keyCode==13){ var _17=e.data.target; $(_17).numberbox("setValue",$(_17).numberbox("getText")); } }},min:null,max:null,precision:0,decimalSeparator:".",groupSeparator:"",prefix:"",suffix:"",filter:function(e){ var _18=$(this).numberbox("options"); var s=$(this).numberbox("getText"); if(e.which==13){ return true; } if(e.which==45){ return (s.indexOf("-")==-1?true:false); } var c=String.fromCharCode(e.which); if(c==_18.decimalSeparator){ return (s.indexOf(c)==-1?true:false); }else{ if(c==_18.groupSeparator){ return true; }else{ if((e.which>=48&&e.which<=57&&e.ctrlKey==false&&e.shiftKey==false)||e.which==0||e.which==8){ return true; }else{ if(e.ctrlKey==true&&(e.which==99||e.which==118)){ return true; }else{ return false; } } } } },formatter:function(_19){ if(!_19){ return _19; } _19=_19+""; var _1a=$(this).numberbox("options"); var s1=_19,s2=""; var _1b=_19.indexOf("."); if(_1b>=0){ s1=_19.substring(0,_1b); s2=_19.substring(_1b+1,_19.length); } if(_1a.groupSeparator){ var p=/(\d+)(\d{3})/; while(p.test(s1)){ s1=s1.replace(p,"$1"+_1a.groupSeparator+"$2"); } } if(s2){ return _1a.prefix+s1+_1a.decimalSeparator+s2+_1a.suffix; }else{ return _1a.prefix+s1+_1a.suffix; } },parser:function(s){ s=s+""; var _1c=$(this).numberbox("options"); if(parseFloat(s)!=s){ if(_1c.prefix){ s=$.trim(s.replace(new RegExp("\\"+$.trim(_1c.prefix),"g"),"")); } if(_1c.suffix){ s=$.trim(s.replace(new RegExp("\\"+$.trim(_1c.suffix),"g"),"")); } if(_1c.groupSeparator){ s=$.trim(s.replace(new RegExp("\\"+_1c.groupSeparator,"g"),"")); } if(_1c.decimalSeparator){ s=$.trim(s.replace(new RegExp("\\"+_1c.decimalSeparator,"g"),".")); } s=s.replace(/\s/g,""); } var val=parseFloat(s).toFixed(_1c.precision); if(isNaN(val)){ val=""; }else{ if(typeof (_1c.min)=="number"&&val<_1c.min){ val=_1c.min.toFixed(_1c.precision); }else{ if(typeof (_1c.max)=="number"&&val>_1c.max){ val=_1c.max.toFixed(_1c.precision); } } } return val; }}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.numberspinner.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ $(_2).addClass("numberspinner-f"); var _3=$.data(_2,"numberspinner").options; $(_2).numberbox(_3).spinner(_3); $(_2).numberbox("setValue",_3.value); }; function _4(_5,_6){ var _7=$.data(_5,"numberspinner").options; var v=parseFloat($(_5).numberbox("getValue")||_7.value)||0; if(_6){ v-=_7.increment; }else{ v+=_7.increment; } $(_5).numberbox("setValue",v); }; $.fn.numberspinner=function(_8,_9){ if(typeof _8=="string"){ var _a=$.fn.numberspinner.methods[_8]; if(_a){ return _a(this,_9); }else{ return this.numberbox(_8,_9); } } _8=_8||{}; return this.each(function(){ var _b=$.data(this,"numberspinner"); if(_b){ $.extend(_b.options,_8); }else{ $.data(this,"numberspinner",{options:$.extend({},$.fn.numberspinner.defaults,$.fn.numberspinner.parseOptions(this),_8)}); } _1(this); }); }; $.fn.numberspinner.methods={options:function(jq){ var _c=jq.numberbox("options"); return $.extend($.data(jq[0],"numberspinner").options,{width:_c.width,value:_c.value,originalValue:_c.originalValue,disabled:_c.disabled,readonly:_c.readonly}); }}; $.fn.numberspinner.parseOptions=function(_d){ return $.extend({},$.fn.spinner.parseOptions(_d),$.fn.numberbox.parseOptions(_d),{}); }; $.fn.numberspinner.defaults=$.extend({},$.fn.spinner.defaults,$.fn.numberbox.defaults,{spin:function(_e){ _4(this,_e); }}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.pagination.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"pagination"); var _4=_3.options; var bb=_3.bb={}; var _5=$(_2).addClass("pagination").html("
                                        "); var tr=_5.find("tr"); var aa=$.extend([],_4.layout); if(!_4.showPageList){ _6(aa,"list"); } if(!_4.showRefresh){ _6(aa,"refresh"); } if(aa[0]=="sep"){ aa.shift(); } if(aa[aa.length-1]=="sep"){ aa.pop(); } for(var _7=0;_7"); ps.bind("change",function(){ _4.pageSize=parseInt($(this).val()); _4.onChangePageSize.call(_2,_4.pageSize); _10(_2,_4.pageNumber); }); for(var i=0;i<_4.pageList.length;i++){ $("").text(_4.pageList[i]).appendTo(ps); } $("").append(ps).appendTo(tr); }else{ if(_8=="sep"){ $("
                                        ").appendTo(tr); }else{ if(_8=="first"){ bb.first=_9("first"); }else{ if(_8=="prev"){ bb.prev=_9("prev"); }else{ if(_8=="next"){ bb.next=_9("next"); }else{ if(_8=="last"){ bb.last=_9("last"); }else{ if(_8=="manual"){ $("").html(_4.beforePageText).appendTo(tr).wrap(""); bb.num=$("").appendTo(tr).wrap(""); bb.num.unbind(".pagination").bind("keydown.pagination",function(e){ if(e.keyCode==13){ var _a=parseInt($(this).val())||1; _10(_2,_a); return false; } }); bb.after=$("").appendTo(tr).wrap(""); }else{ if(_8=="refresh"){ bb.refresh=_9("refresh"); }else{ if(_8=="links"){ $("").appendTo(tr); } } } } } } } } } } if(_4.buttons){ $("
                                        ").appendTo(tr); if($.isArray(_4.buttons)){ for(var i=0;i<_4.buttons.length;i++){ var _b=_4.buttons[i]; if(_b=="-"){ $("
                                        ").appendTo(tr); }else{ var td=$("").appendTo(tr); var a=$("").appendTo(td); a[0].onclick=eval(_b.handler||function(){ }); a.linkbutton($.extend({},_b,{plain:true})); } } }else{ var td=$("").appendTo(tr); $(_4.buttons).appendTo(td).show(); } } $("
                                        ").appendTo(_5); $("
                                        ").appendTo(_5); function _9(_c){ var _d=_4.nav[_c]; var a=$("").appendTo(tr); a.wrap(""); a.linkbutton({iconCls:_d.iconCls,plain:true}).unbind(".pagination").bind("click.pagination",function(){ _d.handler.call(_2); }); return a; }; function _6(aa,_e){ var _f=$.inArray(_e,aa); if(_f>=0){ aa.splice(_f,1); } return aa; }; }; function _10(_11,_12){ var _13=$.data(_11,"pagination").options; _14(_11,{pageNumber:_12}); _13.onSelectPage.call(_11,_13.pageNumber,_13.pageSize); }; function _14(_15,_16){ var _17=$.data(_15,"pagination"); var _18=_17.options; var bb=_17.bb; $.extend(_18,_16||{}); var ps=$(_15).find("select.pagination-page-list"); if(ps.length){ ps.val(_18.pageSize+""); _18.pageSize=parseInt(ps.val()); } var _19=Math.ceil(_18.total/_18.pageSize)||1; if(_18.pageNumber<1){ _18.pageNumber=1; } if(_18.pageNumber>_19){ _18.pageNumber=_19; } if(_18.total==0){ _18.pageNumber=0; _19=0; } if(bb.num){ bb.num.val(_18.pageNumber); } if(bb.after){ bb.after.html(_18.afterPageText.replace(/{pages}/,_19)); } var td=$(_15).find("td.pagination-links"); if(td.length){ td.empty(); var _1a=_18.pageNumber-Math.floor(_18.links/2); if(_1a<1){ _1a=1; } var _1b=_1a+_18.links-1; if(_1b>_19){ _1b=_19; } _1a=_1b-_18.links+1; if(_1a<1){ _1a=1; } for(var i=_1a;i<=_1b;i++){ var a=$("").appendTo(td); a.linkbutton({plain:true,text:i}); if(i==_18.pageNumber){ a.linkbutton("select"); }else{ a.unbind(".pagination").bind("click.pagination",{pageNumber:i},function(e){ _10(_15,e.data.pageNumber); }); } } } var _1c=_18.displayMsg; _1c=_1c.replace(/{from}/,_18.total==0?0:_18.pageSize*(_18.pageNumber-1)+1); _1c=_1c.replace(/{to}/,Math.min(_18.pageSize*(_18.pageNumber),_18.total)); _1c=_1c.replace(/{total}/,_18.total); $(_15).find("div.pagination-info").html(_1c); if(bb.first){ bb.first.linkbutton({disabled:((!_18.total)||_18.pageNumber==1)}); } if(bb.prev){ bb.prev.linkbutton({disabled:((!_18.total)||_18.pageNumber==1)}); } if(bb.next){ bb.next.linkbutton({disabled:(_18.pageNumber==_19)}); } if(bb.last){ bb.last.linkbutton({disabled:(_18.pageNumber==_19)}); } _1d(_15,_18.loading); }; function _1d(_1e,_1f){ var _20=$.data(_1e,"pagination"); var _21=_20.options; _21.loading=_1f; if(_21.showRefresh&&_20.bb.refresh){ _20.bb.refresh.linkbutton({iconCls:(_21.loading?"pagination-loading":"pagination-load")}); } }; $.fn.pagination=function(_22,_23){ if(typeof _22=="string"){ return $.fn.pagination.methods[_22](this,_23); } _22=_22||{}; return this.each(function(){ var _24; var _25=$.data(this,"pagination"); if(_25){ _24=$.extend(_25.options,_22); }else{ _24=$.extend({},$.fn.pagination.defaults,$.fn.pagination.parseOptions(this),_22); $.data(this,"pagination",{options:_24}); } _1(this); _14(this); }); }; $.fn.pagination.methods={options:function(jq){ return $.data(jq[0],"pagination").options; },loading:function(jq){ return jq.each(function(){ _1d(this,true); }); },loaded:function(jq){ return jq.each(function(){ _1d(this,false); }); },refresh:function(jq,_26){ return jq.each(function(){ _14(this,_26); }); },select:function(jq,_27){ return jq.each(function(){ _10(this,_27); }); }}; $.fn.pagination.parseOptions=function(_28){ var t=$(_28); return $.extend({},$.parser.parseOptions(_28,[{total:"number",pageSize:"number",pageNumber:"number",links:"number"},{loading:"boolean",showPageList:"boolean",showRefresh:"boolean"}]),{pageList:(t.attr("pageList")?eval(t.attr("pageList")):undefined)}); }; $.fn.pagination.defaults={total:1,pageSize:10,pageNumber:1,pageList:[10,20,30,50],loading:false,buttons:null,showPageList:true,showRefresh:true,links:10,layout:["list","sep","first","prev","sep","manual","sep","next","last","sep","refresh"],onSelectPage:function(_29,_2a){ },onBeforeRefresh:function(_2b,_2c){ },onRefresh:function(_2d,_2e){ },onChangePageSize:function(_2f){ },beforePageText:"Page",afterPageText:"of {pages}",displayMsg:"Displaying {from} to {to} of {total} items",nav:{first:{iconCls:"pagination-first",handler:function(){ var _30=$(this).pagination("options"); if(_30.pageNumber>1){ $(this).pagination("select",1); } }},prev:{iconCls:"pagination-prev",handler:function(){ var _31=$(this).pagination("options"); if(_31.pageNumber>1){ $(this).pagination("select",_31.pageNumber-1); } }},next:{iconCls:"pagination-next",handler:function(){ var _32=$(this).pagination("options"); var _33=Math.ceil(_32.total/_32.pageSize); if(_32.pageNumber<_33){ $(this).pagination("select",_32.pageNumber+1); } }},last:{iconCls:"pagination-last",handler:function(){ var _34=$(this).pagination("options"); var _35=Math.ceil(_34.total/_34.pageSize); if(_34.pageNumber<_35){ $(this).pagination("select",_35); } }},refresh:{iconCls:"pagination-refresh",handler:function(){ var _36=$(this).pagination("options"); if(_36.onBeforeRefresh.call(this,_36.pageNumber,_36.pageSize)!=false){ $(this).pagination("select",_36.pageNumber); _36.onRefresh.call(this,_36.pageNumber,_36.pageSize); } }}}}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.panel.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ $.fn._remove=function(){ return this.each(function(){ $(this).remove(); try{ this.outerHTML=""; } catch(err){ } }); }; function _1(_2){ _2._remove(); }; function _3(_4,_5){ var _6=$.data(_4,"panel"); var _7=_6.options; var _8=_6.panel; var _9=_8.children("div.panel-header"); var _a=_8.children("div.panel-body"); var _b=_8.children("div.panel-footer"); if(_5){ $.extend(_7,{width:_5.width,height:_5.height,minWidth:_5.minWidth,maxWidth:_5.maxWidth,minHeight:_5.minHeight,maxHeight:_5.maxHeight,left:_5.left,top:_5.top}); } _8._size(_7); _9.add(_a)._outerWidth(_8.width()); if(!isNaN(parseInt(_7.height))){ _a._outerHeight(_8.height()-_9._outerHeight()-_b._outerHeight()); }else{ _a.css("height",""); var _c=$.parser.parseValue("minHeight",_7.minHeight,_8.parent()); var _d=$.parser.parseValue("maxHeight",_7.maxHeight,_8.parent()); var _e=_9._outerHeight()+_b._outerHeight()+_8._outerHeight()-_8.height(); _a._size("minHeight",_c?(_c-_e):""); _a._size("maxHeight",_d?(_d-_e):""); } _8.css({height:"",minHeight:"",maxHeight:"",left:_7.left,top:_7.top}); _7.onResize.apply(_4,[_7.width,_7.height]); $(_4).panel("doLayout"); }; function _f(_10,_11){ var _12=$.data(_10,"panel").options; var _13=$.data(_10,"panel").panel; if(_11){ if(_11.left!=null){ _12.left=_11.left; } if(_11.top!=null){ _12.top=_11.top; } } _13.css({left:_12.left,top:_12.top}); _12.onMove.apply(_10,[_12.left,_12.top]); }; function _14(_15){ $(_15).addClass("panel-body")._size("clear"); var _16=$("
                                        ").insertBefore(_15); _16[0].appendChild(_15); _16.bind("_resize",function(e,_17){ if($(this).hasClass("easyui-fluid")||_17){ _3(_15); } return false; }); return _16; }; function _18(_19){ var _1a=$.data(_19,"panel"); var _1b=_1a.options; var _1c=_1a.panel; _1c.css(_1b.style); _1c.addClass(_1b.cls); _1d(); _1e(); var _1f=$(_19).panel("header"); var _20=$(_19).panel("body"); var _21=$(_19).siblings("div.panel-footer"); if(_1b.border){ _1f.removeClass("panel-header-noborder"); _20.removeClass("panel-body-noborder"); _21.removeClass("panel-footer-noborder"); }else{ _1f.addClass("panel-header-noborder"); _20.addClass("panel-body-noborder"); _21.addClass("panel-footer-noborder"); } _1f.addClass(_1b.headerCls); _20.addClass(_1b.bodyCls); $(_19).attr("id",_1b.id||""); if(_1b.content){ $(_19).panel("clear"); $(_19).html(_1b.content); $.parser.parse($(_19)); } function _1d(){ if(_1b.tools&&typeof _1b.tools=="string"){ _1c.find(">div.panel-header>div.panel-tool .panel-tool-a").appendTo(_1b.tools); } _1(_1c.children("div.panel-header")); if(_1b.title&&!_1b.noheader){ var _22=$("
                                        ").prependTo(_1c); var _23=$("
                                        ").html(_1b.title).appendTo(_22); if(_1b.iconCls){ _23.addClass("panel-with-icon"); $("
                                        ").addClass(_1b.iconCls).appendTo(_22); } var _24=$("
                                        ").appendTo(_22); _24.bind("click",function(e){ e.stopPropagation(); }); if(_1b.tools){ if($.isArray(_1b.tools)){ for(var i=0;i<_1b.tools.length;i++){ var t=$("").addClass(_1b.tools[i].iconCls).appendTo(_24); if(_1b.tools[i].handler){ t.bind("click",eval(_1b.tools[i].handler)); } } }else{ $(_1b.tools).children().each(function(){ $(this).addClass($(this).attr("iconCls")).addClass("panel-tool-a").appendTo(_24); }); } } if(_1b.collapsible){ $("").appendTo(_24).bind("click",function(){ if(_1b.collapsed==true){ _4a(_19,true); }else{ _38(_19,true); } return false; }); } if(_1b.minimizable){ $("").appendTo(_24).bind("click",function(){ _55(_19); return false; }); } if(_1b.maximizable){ $("").appendTo(_24).bind("click",function(){ if(_1b.maximized==true){ _59(_19); }else{ _37(_19); } return false; }); } if(_1b.closable){ $("").appendTo(_24).bind("click",function(){ _39(_19); return false; }); } _1c.children("div.panel-body").removeClass("panel-body-noheader"); }else{ _1c.children("div.panel-body").addClass("panel-body-noheader"); } }; function _1e(){ if(_1b.footer){ $(_1b.footer).addClass("panel-footer").appendTo(_1c); $(_19).addClass("panel-body-nobottom"); }else{ _1c.children("div.panel-footer").remove(); $(_19).removeClass("panel-body-nobottom"); } }; }; function _25(_26,_27){ var _28=$.data(_26,"panel"); var _29=_28.options; if(_2a){ _29.queryParams=_27; } if(!_29.href){ return; } if(!_28.isLoaded||!_29.cache){ var _2a=$.extend({},_29.queryParams); if(_29.onBeforeLoad.call(_26,_2a)==false){ return; } _28.isLoaded=false; $(_26).panel("clear"); if(_29.loadingMessage){ $(_26).html($("
                                        ").html(_29.loadingMessage)); } _29.loader.call(_26,_2a,function(_2b){ var _2c=_29.extractor.call(_26,_2b); $(_26).html(_2c); $.parser.parse($(_26)); _29.onLoad.apply(_26,arguments); _28.isLoaded=true; },function(){ _29.onLoadError.apply(_26,arguments); }); } }; function _2d(_2e){ var t=$(_2e); t.find(".combo-f").each(function(){ $(this).combo("destroy"); }); t.find(".m-btn").each(function(){ $(this).menubutton("destroy"); }); t.find(".s-btn").each(function(){ $(this).splitbutton("destroy"); }); t.find(".tooltip-f").each(function(){ $(this).tooltip("destroy"); }); t.children("div").each(function(){ $(this)._size("unfit"); }); t.empty(); }; function _2f(_30){ $(_30).panel("doLayout",true); }; function _31(_32,_33){ var _34=$.data(_32,"panel").options; var _35=$.data(_32,"panel").panel; if(_33!=true){ if(_34.onBeforeOpen.call(_32)==false){ return; } } _35.stop(true,true); if($.isFunction(_34.openAnimation)){ _34.openAnimation.call(_32,cb); }else{ switch(_34.openAnimation){ case "slide": _35.slideDown(_34.openDuration,cb); break; case "fade": _35.fadeIn(_34.openDuration,cb); break; case "show": _35.show(_34.openDuration,cb); break; default: _35.show(); cb(); } } function cb(){ _34.closed=false; _34.minimized=false; var _36=_35.children("div.panel-header").find("a.panel-tool-restore"); if(_36.length){ _34.maximized=true; } _34.onOpen.call(_32); if(_34.maximized==true){ _34.maximized=false; _37(_32); } if(_34.collapsed==true){ _34.collapsed=false; _38(_32); } if(!_34.collapsed){ _25(_32); _2f(_32); } }; }; function _39(_3a,_3b){ var _3c=$.data(_3a,"panel").options; var _3d=$.data(_3a,"panel").panel; if(_3b!=true){ if(_3c.onBeforeClose.call(_3a)==false){ return; } } _3d.stop(true,true); _3d._size("unfit"); if($.isFunction(_3c.closeAnimation)){ _3c.closeAnimation.call(_3a,cb); }else{ switch(_3c.closeAnimation){ case "slide": _3d.slideUp(_3c.closeDuration,cb); break; case "fade": _3d.fadeOut(_3c.closeDuration,cb); break; case "hide": _3d.hide(_3c.closeDuration,cb); break; default: _3d.hide(); cb(); } } function cb(){ _3c.closed=true; _3c.onClose.call(_3a); }; }; function _3e(_3f,_40){ var _41=$.data(_3f,"panel"); var _42=_41.options; var _43=_41.panel; if(_40!=true){ if(_42.onBeforeDestroy.call(_3f)==false){ return; } } $(_3f).panel("clear").panel("clear","footer"); _1(_43); _42.onDestroy.call(_3f); }; function _38(_44,_45){ var _46=$.data(_44,"panel").options; var _47=$.data(_44,"panel").panel; var _48=_47.children("div.panel-body"); var _49=_47.children("div.panel-header").find("a.panel-tool-collapse"); if(_46.collapsed==true){ return; } _48.stop(true,true); if(_46.onBeforeCollapse.call(_44)==false){ return; } _49.addClass("panel-tool-expand"); if(_45==true){ _48.slideUp("normal",function(){ _46.collapsed=true; _46.onCollapse.call(_44); }); }else{ _48.hide(); _46.collapsed=true; _46.onCollapse.call(_44); } }; function _4a(_4b,_4c){ var _4d=$.data(_4b,"panel").options; var _4e=$.data(_4b,"panel").panel; var _4f=_4e.children("div.panel-body"); var _50=_4e.children("div.panel-header").find("a.panel-tool-collapse"); if(_4d.collapsed==false){ return; } _4f.stop(true,true); if(_4d.onBeforeExpand.call(_4b)==false){ return; } _50.removeClass("panel-tool-expand"); if(_4c==true){ _4f.slideDown("normal",function(){ _4d.collapsed=false; _4d.onExpand.call(_4b); _25(_4b); _2f(_4b); }); }else{ _4f.show(); _4d.collapsed=false; _4d.onExpand.call(_4b); _25(_4b); _2f(_4b); } }; function _37(_51){ var _52=$.data(_51,"panel").options; var _53=$.data(_51,"panel").panel; var _54=_53.children("div.panel-header").find("a.panel-tool-max"); if(_52.maximized==true){ return; } _54.addClass("panel-tool-restore"); if(!$.data(_51,"panel").original){ $.data(_51,"panel").original={width:_52.width,height:_52.height,left:_52.left,top:_52.top,fit:_52.fit}; } _52.left=0; _52.top=0; _52.fit=true; _3(_51); _52.minimized=false; _52.maximized=true; _52.onMaximize.call(_51); }; function _55(_56){ var _57=$.data(_56,"panel").options; var _58=$.data(_56,"panel").panel; _58._size("unfit"); _58.hide(); _57.minimized=true; _57.maximized=false; _57.onMinimize.call(_56); }; function _59(_5a){ var _5b=$.data(_5a,"panel").options; var _5c=$.data(_5a,"panel").panel; var _5d=_5c.children("div.panel-header").find("a.panel-tool-max"); if(_5b.maximized==false){ return; } _5c.show(); _5d.removeClass("panel-tool-restore"); $.extend(_5b,$.data(_5a,"panel").original); _3(_5a); _5b.minimized=false; _5b.maximized=false; $.data(_5a,"panel").original=null; _5b.onRestore.call(_5a); }; function _5e(_5f,_60){ $.data(_5f,"panel").options.title=_60; $(_5f).panel("header").find("div.panel-title").html(_60); }; var _61=null; $(window).unbind(".panel").bind("resize.panel",function(){ if(_61){ clearTimeout(_61); } _61=setTimeout(function(){ var _62=$("body.layout"); if(_62.length){ _62.layout("resize"); $("body").children(".easyui-fluid:visible").trigger("_resize"); }else{ $("body").panel("doLayout"); } _61=null; },100); }); $.fn.panel=function(_63,_64){ if(typeof _63=="string"){ return $.fn.panel.methods[_63](this,_64); } _63=_63||{}; return this.each(function(){ var _65=$.data(this,"panel"); var _66; if(_65){ _66=$.extend(_65.options,_63); _65.isLoaded=false; }else{ _66=$.extend({},$.fn.panel.defaults,$.fn.panel.parseOptions(this),_63); $(this).attr("title",""); _65=$.data(this,"panel",{options:_66,panel:_14(this),isLoaded:false}); } _18(this); if(_66.doSize==true){ _65.panel.css("display","block"); _3(this); } if(_66.closed==true||_66.minimized==true){ _65.panel.hide(); }else{ _31(this); } }); }; $.fn.panel.methods={options:function(jq){ return $.data(jq[0],"panel").options; },panel:function(jq){ return $.data(jq[0],"panel").panel; },header:function(jq){ return $.data(jq[0],"panel").panel.find(">div.panel-header"); },footer:function(jq){ return jq.panel("panel").children(".panel-footer"); },body:function(jq){ return $.data(jq[0],"panel").panel.find(">div.panel-body"); },setTitle:function(jq,_67){ return jq.each(function(){ _5e(this,_67); }); },open:function(jq,_68){ return jq.each(function(){ _31(this,_68); }); },close:function(jq,_69){ return jq.each(function(){ _39(this,_69); }); },destroy:function(jq,_6a){ return jq.each(function(){ _3e(this,_6a); }); },clear:function(jq,_6b){ return jq.each(function(){ _2d(_6b=="footer"?$(this).panel("footer"):this); }); },refresh:function(jq,_6c){ return jq.each(function(){ var _6d=$.data(this,"panel"); _6d.isLoaded=false; if(_6c){ if(typeof _6c=="string"){ _6d.options.href=_6c; }else{ _6d.options.queryParams=_6c; } } _25(this); }); },resize:function(jq,_6e){ return jq.each(function(){ _3(this,_6e); }); },doLayout:function(jq,all){ return jq.each(function(){ _6f(this,"body"); _6f($(this).siblings("div.panel-footer")[0],"footer"); function _6f(_70,_71){ if(!_70){ return; } var _72=_70==$("body")[0]; var s=$(_70).find("div.panel:visible,div.accordion:visible,div.tabs-container:visible,div.layout:visible,.easyui-fluid:visible").filter(function(_73,el){ var p=$(el).parents("div.panel-"+_71+":first"); return _72?p.length==0:p[0]==_70; }); s.trigger("_resize",[all||false]); }; }); },move:function(jq,_74){ return jq.each(function(){ _f(this,_74); }); },maximize:function(jq){ return jq.each(function(){ _37(this); }); },minimize:function(jq){ return jq.each(function(){ _55(this); }); },restore:function(jq){ return jq.each(function(){ _59(this); }); },collapse:function(jq,_75){ return jq.each(function(){ _38(this,_75); }); },expand:function(jq,_76){ return jq.each(function(){ _4a(this,_76); }); }}; $.fn.panel.parseOptions=function(_77){ var t=$(_77); return $.extend({},$.parser.parseOptions(_77,["id","width","height","left","top","title","iconCls","cls","headerCls","bodyCls","tools","href","method",{cache:"boolean",fit:"boolean",border:"boolean",noheader:"boolean"},{collapsible:"boolean",minimizable:"boolean",maximizable:"boolean"},{closable:"boolean",collapsed:"boolean",minimized:"boolean",maximized:"boolean",closed:"boolean"},"openAnimation","closeAnimation",{openDuration:"number",closeDuration:"number"},]),{loadingMessage:(t.attr("loadingMessage")!=undefined?t.attr("loadingMessage"):undefined)}); }; $.fn.panel.defaults={id:null,title:null,iconCls:null,width:"auto",height:"auto",left:null,top:null,cls:null,headerCls:null,bodyCls:null,style:{},href:null,cache:true,fit:false,border:true,doSize:true,noheader:false,content:null,collapsible:false,minimizable:false,maximizable:false,closable:false,collapsed:false,minimized:false,maximized:false,closed:false,openAnimation:false,openDuration:400,closeAnimation:false,closeDuration:400,tools:null,footer:null,queryParams:{},method:"get",href:null,loadingMessage:"Loading...",loader:function(_78,_79,_7a){ var _7b=$(this).panel("options"); if(!_7b.href){ return false; } $.ajax({type:_7b.method,url:_7b.href,cache:false,data:_78,dataType:"html",success:function(_7c){ _79(_7c); },error:function(){ _7a.apply(this,arguments); }}); },extractor:function(_7d){ var _7e=/]*>((.|[\n\r])*)<\/body>/im; var _7f=_7e.exec(_7d); if(_7f){ return _7f[1]; }else{ return _7d; } },onBeforeLoad:function(_80){ },onLoad:function(){ },onLoadError:function(){ },onBeforeOpen:function(){ },onOpen:function(){ },onBeforeClose:function(){ },onClose:function(){ },onBeforeDestroy:function(){ },onDestroy:function(){ },onResize:function(_81,_82){ },onMove:function(_83,top){ },onMaximize:function(){ },onRestore:function(){ },onMinimize:function(){ },onBeforeCollapse:function(){ },onBeforeExpand:function(){ },onCollapse:function(){ },onExpand:function(){ }}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.parser.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ $.parser={auto:true,onComplete:function(_1){ },plugins:["draggable","droppable","resizable","pagination","tooltip","linkbutton","menu","menubutton","splitbutton","progressbar","tree","textbox","filebox","combo","combobox","combotree","combogrid","numberbox","validatebox","searchbox","spinner","numberspinner","timespinner","datetimespinner","calendar","datebox","datetimebox","slider","layout","panel","datagrid","propertygrid","treegrid","tabs","accordion","window","dialog","form"],parse:function(_2){ var aa=[]; for(var i=0;i<$.parser.plugins.length;i++){ var _3=$.parser.plugins[i]; var r=$(".easyui-"+_3,_2); if(r.length){ if(r[_3]){ r[_3](); }else{ aa.push({name:_3,jq:r}); } } } if(aa.length&&window.easyloader){ var _4=[]; for(var i=0;i=0){ v=Math.floor((_8.width()-_9)*v/100); }else{ v=Math.floor((_8.height()-_9)*v/100); } }else{ v=parseInt(v)||undefined; } return v; },parseOptions:function(_b,_c){ var t=$(_b); var _d={}; var s=$.trim(t.attr("data-options")); if(s){ if(s.substring(0,1)!="{"){ s="{"+s+"}"; } _d=(new Function("return "+s))(); } $.map(["width","height","left","top","minWidth","maxWidth","minHeight","maxHeight"],function(p){ var pv=$.trim(_b.style[p]||""); if(pv){ if(pv.indexOf("%")==-1){ pv=parseInt(pv)||undefined; } _d[p]=pv; } }); if(_c){ var _e={}; for(var i=0;i<_c.length;i++){ var pp=_c[i]; if(typeof pp=="string"){ _e[pp]=t.attr(pp); }else{ for(var _f in pp){ var _10=pp[_f]; if(_10=="boolean"){ _e[_f]=t.attr(_f)?(t.attr(_f)=="true"):undefined; }else{ if(_10=="number"){ _e[_f]=t.attr(_f)=="0"?0:parseFloat(t.attr(_f))||undefined; } } } } } $.extend(_d,_e); } return _d; }}; $(function(){ var d=$("
                                        ").appendTo("body"); $._boxModel=d.outerWidth()!=100; d.remove(); if(!window.easyloader&&$.parser.auto){ $.parser.parse(); } }); $.fn._outerWidth=function(_11){ if(_11==undefined){ if(this[0]==window){ return this.width()||document.body.clientWidth; } return this.outerWidth()||0; } return this._size("width",_11); }; $.fn._outerHeight=function(_12){ if(_12==undefined){ if(this[0]==window){ return this.height()||document.body.clientHeight; } return this.outerHeight()||0; } return this._size("height",_12); }; $.fn._scrollLeft=function(_13){ if(_13==undefined){ return this.scrollLeft(); }else{ return this.each(function(){ $(this).scrollLeft(_13); }); } }; $.fn._propAttr=$.fn.prop||$.fn.attr; $.fn._size=function(_14,_15){ if(typeof _14=="string"){ if(_14=="clear"){ return this.each(function(){ $(this).css({width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:""}); }); }else{ if(_14=="fit"){ return this.each(function(){ _16(this,this.tagName=="BODY"?$("body"):$(this).parent(),true); }); }else{ if(_14=="unfit"){ return this.each(function(){ _16(this,$(this).parent(),false); }); }else{ if(_15==undefined){ return _17(this[0],_14); }else{ return this.each(function(){ _17(this,_14,_15); }); } } } } }else{ return this.each(function(){ _15=_15||$(this).parent(); $.extend(_14,_16(this,_15,_14.fit)||{}); var r1=_18(this,"width",_15,_14); var r2=_18(this,"height",_15,_14); if(r1||r2){ $(this).addClass("easyui-fluid"); }else{ $(this).removeClass("easyui-fluid"); } }); } function _16(_19,_1a,fit){ if(!_1a.length){ return false; } var t=$(_19)[0]; var p=_1a[0]; var _1b=p.fcount||0; if(fit){ if(!t.fitted){ t.fitted=true; p.fcount=_1b+1; $(p).addClass("panel-noscroll"); if(p.tagName=="BODY"){ $("html").addClass("panel-fit"); } } return {width:($(p).width()||1),height:($(p).height()||1)}; }else{ if(t.fitted){ t.fitted=false; p.fcount=_1b-1; if(p.fcount==0){ $(p).removeClass("panel-noscroll"); if(p.tagName=="BODY"){ $("html").removeClass("panel-fit"); } } } return false; } }; function _18(_1c,_1d,_1e,_1f){ var t=$(_1c); var p=_1d; var p1=p.substr(0,1).toUpperCase()+p.substr(1); var min=$.parser.parseValue("min"+p1,_1f["min"+p1],_1e); var max=$.parser.parseValue("max"+p1,_1f["max"+p1],_1e); var val=$.parser.parseValue(p,_1f[p],_1e); var _20=(String(_1f[p]||"").indexOf("%")>=0?true:false); if(!isNaN(val)){ var v=Math.min(Math.max(val,min||0),max||99999); if(!_20){ _1f[p]=v; } t._size("min"+p1,""); t._size("max"+p1,""); t._size(p,v); }else{ t._size(p,""); t._size("min"+p1,min); t._size("max"+p1,max); } return _20||_1f.fit; }; function _17(_21,_22,_23){ var t=$(_21); if(_23==undefined){ _23=parseInt(_21.style[_22]); if(isNaN(_23)){ return undefined; } if($._boxModel){ _23+=_24(); } return _23; }else{ if(_23===""){ t.css(_22,""); }else{ if($._boxModel){ _23-=_24(); if(_23<0){ _23=0; } } t.css(_22,_23+"px"); } } function _24(){ if(_22.toLowerCase().indexOf("width")>=0){ return t.outerWidth()-t.width(); }else{ return t.outerHeight()-t.height(); } }; }; }; })(jQuery); (function($){ var _25=null; var _26=null; var _27=false; function _28(e){ if(e.touches.length!=1){ return; } if(!_27){ _27=true; dblClickTimer=setTimeout(function(){ _27=false; },500); }else{ clearTimeout(dblClickTimer); _27=false; _29(e,"dblclick"); } _25=setTimeout(function(){ _29(e,"contextmenu",3); },1000); _29(e,"mousedown"); if($.fn.draggable.isDragging||$.fn.resizable.isResizing){ e.preventDefault(); } }; function _2a(e){ if(e.touches.length!=1){ return; } if(_25){ clearTimeout(_25); } _29(e,"mousemove"); if($.fn.draggable.isDragging||$.fn.resizable.isResizing){ e.preventDefault(); } }; function _2b(e){ if(_25){ clearTimeout(_25); } _29(e,"mouseup"); if($.fn.draggable.isDragging||$.fn.resizable.isResizing){ e.preventDefault(); } }; function _29(e,_2c,_2d){ var _2e=new $.Event(_2c); _2e.pageX=e.changedTouches[0].pageX; _2e.pageY=e.changedTouches[0].pageY; _2e.which=_2d||1; $(e.target).trigger(_2e); }; if(document.addEventListener){ document.addEventListener("touchstart",_28,true); document.addEventListener("touchmove",_2a,true); document.addEventListener("touchend",_2b,true); } })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.progressbar.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ $(_2).addClass("progressbar"); $(_2).html("
                                        "); $(_2).bind("_resize",function(e,_3){ if($(this).hasClass("easyui-fluid")||_3){ _4(_2); } return false; }); return $(_2); }; function _4(_5,_6){ var _7=$.data(_5,"progressbar").options; var _8=$.data(_5,"progressbar").bar; if(_6){ _7.width=_6; } _8._size(_7); _8.find("div.progressbar-text").css("width",_8.width()); _8.find("div.progressbar-text,div.progressbar-value").css({height:_8.height()+"px",lineHeight:_8.height()+"px"}); }; $.fn.progressbar=function(_9,_a){ if(typeof _9=="string"){ var _b=$.fn.progressbar.methods[_9]; if(_b){ return _b(this,_a); } } _9=_9||{}; return this.each(function(){ var _c=$.data(this,"progressbar"); if(_c){ $.extend(_c.options,_9); }else{ _c=$.data(this,"progressbar",{options:$.extend({},$.fn.progressbar.defaults,$.fn.progressbar.parseOptions(this),_9),bar:_1(this)}); } $(this).progressbar("setValue",_c.options.value); _4(this); }); }; $.fn.progressbar.methods={options:function(jq){ return $.data(jq[0],"progressbar").options; },resize:function(jq,_d){ return jq.each(function(){ _4(this,_d); }); },getValue:function(jq){ return $.data(jq[0],"progressbar").options.value; },setValue:function(jq,_e){ if(_e<0){ _e=0; } if(_e>100){ _e=100; } return jq.each(function(){ var _f=$.data(this,"progressbar").options; var _10=_f.text.replace(/{value}/,_e); var _11=_f.value; _f.value=_e; $(this).find("div.progressbar-value").width(_e+"%"); $(this).find("div.progressbar-text").html(_10); if(_11!=_e){ _f.onChange.call(this,_e,_11); } }); }}; $.fn.progressbar.parseOptions=function(_12){ return $.extend({},$.parser.parseOptions(_12,["width","height","text",{value:"number"}])); }; $.fn.progressbar.defaults={width:"auto",height:22,value:0,text:"{value}%",onChange:function(_13,_14){ }}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.propertygrid.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ var _1; $(document).unbind(".propertygrid").bind("mousedown.propertygrid",function(e){ var p=$(e.target).closest("div.datagrid-view,div.combo-panel"); if(p.length){ return; } _2(_1); _1=undefined; }); function _3(_4){ var _5=$.data(_4,"propertygrid"); var _6=$.data(_4,"propertygrid").options; $(_4).datagrid($.extend({},_6,{cls:"propertygrid",view:(_6.showGroup?_6.groupView:_6.view),onBeforeEdit:function(_7,_8){ if(_6.onBeforeEdit.call(_4,_7,_8)==false){ return false; } var dg=$(this); var _8=dg.datagrid("getRows")[_7]; var _9=dg.datagrid("getColumnOption","value"); _9.editor=_8.editor; },onClickCell:function(_a,_b,_c){ if(_1!=this){ _2(_1); _1=this; } if(_6.editIndex!=_a){ _2(_1); $(this).datagrid("beginEdit",_a); var ed=$(this).datagrid("getEditor",{index:_a,field:_b}); if(!ed){ ed=$(this).datagrid("getEditor",{index:_a,field:"value"}); } if(ed){ var t=$(ed.target); var _d=t.data("textbox")?t.textbox("textbox"):t; _d.focus(); _6.editIndex=_a; } } _6.onClickCell.call(_4,_a,_b,_c); },loadFilter:function(_e){ _2(this); return _6.loadFilter.call(this,_e); }})); }; function _2(_f){ var t=$(_f); if(!t.length){ return; } var _10=$.data(_f,"propertygrid").options; _10.finder.getTr(_f,null,"editing").each(function(){ var _11=parseInt($(this).attr("datagrid-row-index")); if(t.datagrid("validateRow",_11)){ t.datagrid("endEdit",_11); }else{ t.datagrid("cancelEdit",_11); } }); }; $.fn.propertygrid=function(_12,_13){ if(typeof _12=="string"){ var _14=$.fn.propertygrid.methods[_12]; if(_14){ return _14(this,_13); }else{ return this.datagrid(_12,_13); } } _12=_12||{}; return this.each(function(){ var _15=$.data(this,"propertygrid"); if(_15){ $.extend(_15.options,_12); }else{ var _16=$.extend({},$.fn.propertygrid.defaults,$.fn.propertygrid.parseOptions(this),_12); _16.frozenColumns=$.extend(true,[],_16.frozenColumns); _16.columns=$.extend(true,[],_16.columns); $.data(this,"propertygrid",{options:_16}); } _3(this); }); }; $.fn.propertygrid.methods={options:function(jq){ return $.data(jq[0],"propertygrid").options; }}; $.fn.propertygrid.parseOptions=function(_17){ return $.extend({},$.fn.datagrid.parseOptions(_17),$.parser.parseOptions(_17,[{showGroup:"boolean"}])); }; var _18=$.extend({},$.fn.datagrid.defaults.view,{render:function(_19,_1a,_1b){ var _1c=[]; var _1d=this.groups; for(var i=0;i<_1d.length;i++){ _1c.push(this.renderGroup.call(this,_19,i,_1d[i],_1b)); } $(_1a).html(_1c.join("")); },renderGroup:function(_1e,_1f,_20,_21){ var _22=$.data(_1e,"datagrid"); var _23=_22.options; var _24=$(_1e).datagrid("getColumnFields",_21); var _25=[]; _25.push("
                                        "); _25.push(""); _25.push(""); if((_21&&(_23.rownumbers||_23.frozenColumns.length))||(!_21&&!(_23.rownumbers||_23.frozenColumns.length))){ _25.push(""); } _25.push(""); _25.push(""); _25.push("
                                         "); if(!_21){ _25.push(""); _25.push(_23.groupFormatter.call(_1e,_20.value,_20.rows)); _25.push(""); } _25.push("
                                        "); _25.push("
                                        "); _25.push(""); var _26=_20.startIndex; for(var j=0;j<_20.rows.length;j++){ var css=_23.rowStyler?_23.rowStyler.call(_1e,_26,_20.rows[j]):""; var _27=""; var _28=""; if(typeof css=="string"){ _28=css; }else{ if(css){ _27=css["class"]||""; _28=css["style"]||""; } } var cls="class=\"datagrid-row "+(_26%2&&_23.striped?"datagrid-row-alt ":" ")+_27+"\""; var _29=_28?"style=\""+_28+"\"":""; var _2a=_22.rowIdPrefix+"-"+(_21?1:2)+"-"+_26; _25.push(""); _25.push(this.renderRow.call(this,_1e,_24,_21,_26,_20.rows[j])); _25.push(""); _26++; } _25.push("
                                        "); return _25.join(""); },bindEvents:function(_2b){ var _2c=$.data(_2b,"datagrid"); var dc=_2c.dc; var _2d=dc.body1.add(dc.body2); var _2e=($.data(_2d[0],"events")||$._data(_2d[0],"events")).click[0].handler; _2d.unbind("click").bind("click",function(e){ var tt=$(e.target); var _2f=tt.closest("span.datagrid-row-expander"); if(_2f.length){ var _30=_2f.closest("div.datagrid-group").attr("group-index"); if(_2f.hasClass("datagrid-row-collapse")){ $(_2b).datagrid("collapseGroup",_30); }else{ $(_2b).datagrid("expandGroup",_30); } }else{ _2e(e); } e.stopPropagation(); }); },onBeforeRender:function(_31,_32){ var _33=$.data(_31,"datagrid"); var _34=_33.options; _35(); var _36=[]; for(var i=0;i<_32.length;i++){ var row=_32[i]; var _37=_38(row[_34.groupField]); if(!_37){ _37={value:row[_34.groupField],rows:[row]}; _36.push(_37); }else{ _37.rows.push(row); } } var _39=0; var _3a=[]; for(var i=0;i<_36.length;i++){ var _37=_36[i]; _37.startIndex=_39; _39+=_37.rows.length; _3a=_3a.concat(_37.rows); } _33.data.rows=_3a; this.groups=_36; var _3b=this; setTimeout(function(){ _3b.bindEvents(_31); },0); function _38(_3c){ for(var i=0;i<_36.length;i++){ var _3d=_36[i]; if(_3d.value==_3c){ return _3d; } } return null; }; function _35(){ if(!$("#datagrid-group-style").length){ $("head").append(""); } }; }}); $.extend($.fn.datagrid.methods,{expandGroup:function(jq,_3e){ return jq.each(function(){ var _3f=$.data(this,"datagrid").dc.view; var _40=_3f.find(_3e!=undefined?"div.datagrid-group[group-index=\""+_3e+"\"]":"div.datagrid-group"); var _41=_40.find("span.datagrid-row-expander"); if(_41.hasClass("datagrid-row-expand")){ _41.removeClass("datagrid-row-expand").addClass("datagrid-row-collapse"); _40.next("table").show(); } $(this).datagrid("fixRowHeight"); }); },collapseGroup:function(jq,_42){ return jq.each(function(){ var _43=$.data(this,"datagrid").dc.view; var _44=_43.find(_42!=undefined?"div.datagrid-group[group-index=\""+_42+"\"]":"div.datagrid-group"); var _45=_44.find("span.datagrid-row-expander"); if(_45.hasClass("datagrid-row-collapse")){ _45.removeClass("datagrid-row-collapse").addClass("datagrid-row-expand"); _44.next("table").hide(); } $(this).datagrid("fixRowHeight"); }); }}); $.extend(_18,{refreshGroupTitle:function(_46,_47){ var _48=$.data(_46,"datagrid"); var _49=_48.options; var dc=_48.dc; var _4a=this.groups[_47]; var _4b=dc.body2.children("div.datagrid-group[group-index="+_47+"]").find("span.datagrid-group-title"); _4b.html(_49.groupFormatter.call(_46,_4a.value,_4a.rows)); },insertRow:function(_4c,_4d,row){ var _4e=$.data(_4c,"datagrid"); var _4f=_4e.options; var dc=_4e.dc; var _50=null; var _51; for(var i=0;i_50.startIndex+_50.rows.length){ _4d=_50.startIndex+_50.rows.length; } } $.fn.datagrid.defaults.view.insertRow.call(this,_4c,_4d,row); if(_4d>=_50.startIndex+_50.rows.length){ _52(_4d,true); _52(_4d,false); } _50.rows.splice(_4d-_50.startIndex,0,row); }else{ _50={value:row[_4f.groupField],rows:[row],startIndex:_4e.data.rows.length}; _51=this.groups.length; dc.body1.append(this.renderGroup.call(this,_4c,_51,_50,true)); dc.body2.append(this.renderGroup.call(this,_4c,_51,_50,false)); this.groups.push(_50); _4e.data.rows.push(row); } this.refreshGroupTitle(_4c,_51); function _52(_53,_54){ var _55=_54?1:2; var _56=_4f.finder.getTr(_4c,_53-1,"body",_55); var tr=_4f.finder.getTr(_4c,_53,"body",_55); tr.insertAfter(_56); }; },updateRow:function(_57,_58,row){ var _59=$.data(_57,"datagrid").options; $.fn.datagrid.defaults.view.updateRow.call(this,_57,_58,row); var tb=_59.finder.getTr(_57,_58,"body",2).closest("table.datagrid-btable"); var _5a=parseInt(tb.prev().attr("group-index")); this.refreshGroupTitle(_57,_5a); },deleteRow:function(_5b,_5c){ var _5d=$.data(_5b,"datagrid"); var _5e=_5d.options; var dc=_5d.dc; var _5f=dc.body1.add(dc.body2); var tb=_5e.finder.getTr(_5b,_5c,"body",2).closest("table.datagrid-btable"); var _60=parseInt(tb.prev().attr("group-index")); $.fn.datagrid.defaults.view.deleteRow.call(this,_5b,_5c); var _61=this.groups[_60]; if(_61.rows.length>1){ _61.rows.splice(_5c-_61.startIndex,1); this.refreshGroupTitle(_5b,_60); }else{ _5f.children("div.datagrid-group[group-index="+_60+"]").remove(); for(var i=_60+1;i_13.top&&e.pageY<_13.top+_16){ dir+="n"; }else{ if(e.pageY<_13.top+_15&&e.pageY>_13.top+_15-_16){ dir+="s"; } } if(e.pageX>_13.left&&e.pageX<_13.left+_16){ dir+="w"; }else{ if(e.pageX<_13.left+_14&&e.pageX>_13.left+_14-_16){ dir+="e"; } } var _17=_d.handles.split(","); for(var i=0;i<_17.length;i++){ var _18=_17[i].replace(/(^\s*)|(\s*$)/g,""); if(_18=="all"||_18==dir){ return dir; } } return ""; }; }); }; $.fn.resizable.methods={options:function(jq){ return $.data(jq[0],"resizable").options; },enable:function(jq){ return jq.each(function(){ $(this).resizable({disabled:false}); }); },disable:function(jq){ return jq.each(function(){ $(this).resizable({disabled:true}); }); }}; $.fn.resizable.parseOptions=function(_19){ var t=$(_19); return $.extend({},$.parser.parseOptions(_19,["handles",{minWidth:"number",minHeight:"number",maxWidth:"number",maxHeight:"number",edge:"number"}]),{disabled:(t.attr("disabled")?true:undefined)}); }; $.fn.resizable.defaults={disabled:false,handles:"n, e, s, w, ne, se, sw, nw, all",minWidth:10,minHeight:10,maxWidth:10000,maxHeight:10000,edge:5,onStartResize:function(e){ },onResize:function(e){ },onStopResize:function(e){ }}; $.fn.resizable.isResizing=false; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.searchbox.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"searchbox"); var _4=_3.options; var _5=$.extend(true,[],_4.icons); _5.push({iconCls:"searchbox-button",handler:function(e){ var t=$(e.data.target); var _6=t.searchbox("options"); _6.searcher.call(e.data.target,t.searchbox("getValue"),t.searchbox("getName")); }}); _7(); var _8=_9(); $(_2).addClass("searchbox-f").textbox($.extend({},_4,{icons:_5,buttonText:(_8?_8.text:"")})); $(_2).attr("searchboxName",$(_2).attr("textboxName")); _3.searchbox=$(_2).next(); _3.searchbox.addClass("searchbox"); _a(_8); function _7(){ if(_4.menu){ _3.menu=$(_4.menu).menu(); var _b=_3.menu.menu("options"); var _c=_b.onClick; _b.onClick=function(_d){ _a(_d); _c.call(this,_d); }; }else{ if(_3.menu){ _3.menu.menu("destroy"); } _3.menu=null; } }; function _9(){ if(_3.menu){ var _e=_3.menu.children("div.menu-item:first"); _3.menu.children("div.menu-item").each(function(){ var _f=$.extend({},$.parser.parseOptions(this),{selected:($(this).attr("selected")?true:undefined)}); if(_f.selected){ _e=$(this); return false; } }); return _3.menu.menu("getItem",_e[0]); }else{ return null; } }; function _a(_10){ if(!_10){ return; } $(_2).textbox("button").menubutton({text:_10.text,iconCls:(_10.iconCls||null),menu:_3.menu,menuAlign:_4.buttonAlign,plain:false}); _3.searchbox.find("input.textbox-value").attr("name",_10.name||_10.text); $(_2).searchbox("resize"); }; }; $.fn.searchbox=function(_11,_12){ if(typeof _11=="string"){ var _13=$.fn.searchbox.methods[_11]; if(_13){ return _13(this,_12); }else{ return this.textbox(_11,_12); } } _11=_11||{}; return this.each(function(){ var _14=$.data(this,"searchbox"); if(_14){ $.extend(_14.options,_11); }else{ $.data(this,"searchbox",{options:$.extend({},$.fn.searchbox.defaults,$.fn.searchbox.parseOptions(this),_11)}); } _1(this); }); }; $.fn.searchbox.methods={options:function(jq){ var _15=jq.textbox("options"); return $.extend($.data(jq[0],"searchbox").options,{width:_15.width,value:_15.value,originalValue:_15.originalValue,disabled:_15.disabled,readonly:_15.readonly}); },menu:function(jq){ return $.data(jq[0],"searchbox").menu; },getName:function(jq){ return $.data(jq[0],"searchbox").searchbox.find("input.textbox-value").attr("name"); },selectName:function(jq,_16){ return jq.each(function(){ var _17=$.data(this,"searchbox").menu; if(_17){ _17.children("div.menu-item").each(function(){ var _18=_17.menu("getItem",this); if(_18.name==_16){ $(this).triggerHandler("click"); return false; } }); } }); },destroy:function(jq){ return jq.each(function(){ var _19=$(this).searchbox("menu"); if(_19){ _19.menu("destroy"); } $(this).textbox("destroy"); }); }}; $.fn.searchbox.parseOptions=function(_1a){ var t=$(_1a); return $.extend({},$.fn.textbox.parseOptions(_1a),$.parser.parseOptions(_1a,["menu"]),{searcher:(t.attr("searcher")?eval(t.attr("searcher")):undefined)}); }; $.fn.searchbox.defaults=$.extend({},$.fn.textbox.defaults,{inputEvents:$.extend({},$.fn.textbox.defaults.inputEvents,{keydown:function(e){ if(e.keyCode==13){ e.preventDefault(); var t=$(e.data.target); var _1b=t.searchbox("options"); t.searchbox("setValue",$(this).val()); _1b.searcher.call(e.data.target,t.searchbox("getValue"),t.searchbox("getName")); return false; } }}),buttonAlign:"left",menu:null,searcher:function(_1c,_1d){ }}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.slider.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$("
                                        "+"
                                        "+""+""+"
                                        "+"
                                        "+"
                                        "+"
                                        "+""+"
                                        ").insertAfter(_2); var t=$(_2); t.addClass("slider-f").hide(); var _4=t.attr("name"); if(_4){ _3.find("input.slider-value").attr("name",_4); t.removeAttr("name").attr("sliderName",_4); } _3.bind("_resize",function(e,_5){ if($(this).hasClass("easyui-fluid")||_5){ _6(_2); } return false; }); return _3; }; function _6(_7,_8){ var _9=$.data(_7,"slider"); var _a=_9.options; var _b=_9.slider; if(_8){ if(_8.width){ _a.width=_8.width; } if(_8.height){ _a.height=_8.height; } } _b._size(_a); if(_a.mode=="h"){ _b.css("height",""); _b.children("div").css("height",""); }else{ _b.css("width",""); _b.children("div").css("width",""); _b.children("div.slider-rule,div.slider-rulelabel,div.slider-inner")._outerHeight(_b._outerHeight()); } _c(_7); }; function _d(_e){ var _f=$.data(_e,"slider"); var _10=_f.options; var _11=_f.slider; var aa=_10.mode=="h"?_10.rule:_10.rule.slice(0).reverse(); if(_10.reversed){ aa=aa.slice(0).reverse(); } _12(aa); function _12(aa){ var _13=_11.find("div.slider-rule"); var _14=_11.find("div.slider-rulelabel"); _13.empty(); _14.empty(); for(var i=0;i").appendTo(_13); _16.css((_10.mode=="h"?"left":"top"),_15); if(aa[i]!="|"){ _16=$("").appendTo(_14); _16.html(aa[i]); if(_10.mode=="h"){ _16.css({left:_15,marginLeft:-Math.round(_16.outerWidth()/2)}); }else{ _16.css({top:_15,marginTop:-Math.round(_16.outerHeight()/2)}); } } } }; }; function _17(_18){ var _19=$.data(_18,"slider"); var _1a=_19.options; var _1b=_19.slider; _1b.removeClass("slider-h slider-v slider-disabled"); _1b.addClass(_1a.mode=="h"?"slider-h":"slider-v"); _1b.addClass(_1a.disabled?"slider-disabled":""); _1b.find("a.slider-handle").draggable({axis:_1a.mode,cursor:"pointer",disabled:_1a.disabled,onDrag:function(e){ var _1c=e.data.left; var _1d=_1b.width(); if(_1a.mode!="h"){ _1c=e.data.top; _1d=_1b.height(); } if(_1c<0||_1c>_1d){ return false; }else{ var _1e=_34(_18,_1c); _1f(_1e); return false; } },onBeforeDrag:function(){ _19.isDragging=true; },onStartDrag:function(){ _1a.onSlideStart.call(_18,_1a.value); },onStopDrag:function(e){ var _20=_34(_18,(_1a.mode=="h"?e.data.left:e.data.top)); _1f(_20); _1a.onSlideEnd.call(_18,_1a.value); _1a.onComplete.call(_18,_1a.value); _19.isDragging=false; }}); _1b.find("div.slider-inner").unbind(".slider").bind("mousedown.slider",function(e){ if(_19.isDragging||_1a.disabled){ return; } var pos=$(this).offset(); var _21=_34(_18,(_1a.mode=="h"?(e.pageX-pos.left):(e.pageY-pos.top))); _1f(_21); _1a.onComplete.call(_18,_1a.value); }); function _1f(_22){ var s=Math.abs(_22%_1a.step); if(s<_1a.step/2){ _22-=s; }else{ _22=_22-s+_1a.step; } _23(_18,_22); }; }; function _23(_24,_25){ var _26=$.data(_24,"slider"); var _27=_26.options; var _28=_26.slider; var _29=_27.value; if(_25<_27.min){ _25=_27.min; } if(_25>_27.max){ _25=_27.max; } _27.value=_25; $(_24).val(_25); _28.find("input.slider-value").val(_25); var pos=_2a(_24,_25); var tip=_28.find(".slider-tip"); if(_27.showTip){ tip.show(); tip.html(_27.tipFormatter.call(_24,_27.value)); }else{ tip.hide(); } if(_27.mode=="h"){ var _2b="left:"+pos+"px;"; _28.find(".slider-handle").attr("style",_2b); tip.attr("style",_2b+"margin-left:"+(-Math.round(tip.outerWidth()/2))+"px"); }else{ var _2b="top:"+pos+"px;"; _28.find(".slider-handle").attr("style",_2b); tip.attr("style",_2b+"margin-left:"+(-Math.round(tip.outerWidth()))+"px"); } if(_29!=_25){ _27.onChange.call(_24,_25,_29); } }; function _c(_2c){ var _2d=$.data(_2c,"slider").options; var fn=_2d.onChange; _2d.onChange=function(){ }; _23(_2c,_2d.value); _2d.onChange=fn; }; function _2a(_2e,_2f){ var _30=$.data(_2e,"slider"); var _31=_30.options; var _32=_30.slider; var _33=_31.mode=="h"?_32.width():_32.height(); var pos=_31.converter.toPosition.call(_2e,_2f,_33); if(_31.mode=="v"){ pos=_32.height()-pos; } if(_31.reversed){ pos=_33-pos; } return pos.toFixed(0); }; function _34(_35,pos){ var _36=$.data(_35,"slider"); var _37=_36.options; var _38=_36.slider; var _39=_37.mode=="h"?_38.width():_38.height(); var _3a=_37.converter.toValue.call(_35,_37.mode=="h"?(_37.reversed?(_39-pos):pos):(_39-pos),_39); return _3a.toFixed(0); }; $.fn.slider=function(_3b,_3c){ if(typeof _3b=="string"){ return $.fn.slider.methods[_3b](this,_3c); } _3b=_3b||{}; return this.each(function(){ var _3d=$.data(this,"slider"); if(_3d){ $.extend(_3d.options,_3b); }else{ _3d=$.data(this,"slider",{options:$.extend({},$.fn.slider.defaults,$.fn.slider.parseOptions(this),_3b),slider:_1(this)}); $(this).removeAttr("disabled"); } var _3e=_3d.options; _3e.min=parseFloat(_3e.min); _3e.max=parseFloat(_3e.max); _3e.value=parseFloat(_3e.value); _3e.step=parseFloat(_3e.step); _3e.originalValue=_3e.value; _17(this); _d(this); _6(this); }); }; $.fn.slider.methods={options:function(jq){ return $.data(jq[0],"slider").options; },destroy:function(jq){ return jq.each(function(){ $.data(this,"slider").slider.remove(); $(this).remove(); }); },resize:function(jq,_3f){ return jq.each(function(){ _6(this,_3f); }); },getValue:function(jq){ return jq.slider("options").value; },setValue:function(jq,_40){ return jq.each(function(){ _23(this,_40); }); },clear:function(jq){ return jq.each(function(){ var _41=$(this).slider("options"); _23(this,_41.min); }); },reset:function(jq){ return jq.each(function(){ var _42=$(this).slider("options"); _23(this,_42.originalValue); }); },enable:function(jq){ return jq.each(function(){ $.data(this,"slider").options.disabled=false; _17(this); }); },disable:function(jq){ return jq.each(function(){ $.data(this,"slider").options.disabled=true; _17(this); }); }}; $.fn.slider.parseOptions=function(_43){ var t=$(_43); return $.extend({},$.parser.parseOptions(_43,["width","height","mode",{reversed:"boolean",showTip:"boolean",min:"number",max:"number",step:"number"}]),{value:(t.val()||undefined),disabled:(t.attr("disabled")?true:undefined),rule:(t.attr("rule")?eval(t.attr("rule")):undefined)}); }; $.fn.slider.defaults={width:"auto",height:"auto",mode:"h",reversed:false,showTip:false,disabled:false,value:0,min:0,max:100,step:1,rule:[],tipFormatter:function(_44){ return _44; },converter:{toPosition:function(_45,_46){ var _47=$(this).slider("options"); return (_45-_47.min)/(_47.max-_47.min)*_46; },toValue:function(pos,_48){ var _49=$(this).slider("options"); return _49.min+(_49.max-_49.min)*(pos/_48); }},onChange:function(_4a,_4b){ },onSlideStart:function(_4c){ },onSlideEnd:function(_4d){ },onComplete:function(_4e){ }}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.spinner.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"spinner"); var _4=_3.options; var _5=$.extend(true,[],_4.icons); _5.push({iconCls:"spinner-arrow",handler:function(e){ _6(e); }}); $(_2).addClass("spinner-f").textbox($.extend({},_4,{icons:_5})); var _7=$(_2).textbox("getIcon",_5.length-1); _7.append(""); _7.append(""); $(_2).attr("spinnerName",$(_2).attr("textboxName")); _3.spinner=$(_2).next(); _3.spinner.addClass("spinner"); }; function _6(e){ var _8=e.data.target; var _9=$(_8).spinner("options"); var up=$(e.target).closest("a.spinner-arrow-up"); if(up.length){ _9.spin.call(_8,false); _9.onSpinUp.call(_8); $(_8).spinner("validate"); } var _a=$(e.target).closest("a.spinner-arrow-down"); if(_a.length){ _9.spin.call(_8,true); _9.onSpinDown.call(_8); $(_8).spinner("validate"); } }; $.fn.spinner=function(_b,_c){ if(typeof _b=="string"){ var _d=$.fn.spinner.methods[_b]; if(_d){ return _d(this,_c); }else{ return this.textbox(_b,_c); } } _b=_b||{}; return this.each(function(){ var _e=$.data(this,"spinner"); if(_e){ $.extend(_e.options,_b); }else{ _e=$.data(this,"spinner",{options:$.extend({},$.fn.spinner.defaults,$.fn.spinner.parseOptions(this),_b)}); } _1(this); }); }; $.fn.spinner.methods={options:function(jq){ var _f=jq.textbox("options"); return $.extend($.data(jq[0],"spinner").options,{width:_f.width,value:_f.value,originalValue:_f.originalValue,disabled:_f.disabled,readonly:_f.readonly}); }}; $.fn.spinner.parseOptions=function(_10){ return $.extend({},$.fn.textbox.parseOptions(_10),$.parser.parseOptions(_10,["min","max",{increment:"number"}])); }; $.fn.spinner.defaults=$.extend({},$.fn.textbox.defaults,{min:null,max:null,increment:1,spin:function(_11){ },onSpinUp:function(){ },onSpinDown:function(){ }}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.splitbutton.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"splitbutton").options; $(_2).menubutton(_3); $(_2).addClass("s-btn"); }; $.fn.splitbutton=function(_4,_5){ if(typeof _4=="string"){ var _6=$.fn.splitbutton.methods[_4]; if(_6){ return _6(this,_5); }else{ return this.menubutton(_4,_5); } } _4=_4||{}; return this.each(function(){ var _7=$.data(this,"splitbutton"); if(_7){ $.extend(_7.options,_4); }else{ $.data(this,"splitbutton",{options:$.extend({},$.fn.splitbutton.defaults,$.fn.splitbutton.parseOptions(this),_4)}); $(this).removeAttr("disabled"); } _1(this); }); }; $.fn.splitbutton.methods={options:function(jq){ var _8=jq.menubutton("options"); var _9=$.data(jq[0],"splitbutton").options; $.extend(_9,{disabled:_8.disabled,toggle:_8.toggle,selected:_8.selected}); return _9; }}; $.fn.splitbutton.parseOptions=function(_a){ var t=$(_a); return $.extend({},$.fn.linkbutton.parseOptions(_a),$.parser.parseOptions(_a,["menu",{plain:"boolean",duration:"number"}])); }; $.fn.splitbutton.defaults=$.extend({},$.fn.linkbutton.defaults,{plain:true,menu:null,duration:100,cls:{btn1:"m-btn-active s-btn-active",btn2:"m-btn-plain-active s-btn-plain-active",arrow:"m-btn-downarrow",trigger:"m-btn-line"}}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.tabs.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"tabs").options; if(_3.tabPosition=="left"||_3.tabPosition=="right"||!_3.showHeader){ return; } var _4=$(_2).children("div.tabs-header"); var _5=_4.children("div.tabs-tool"); var _6=_4.children("div.tabs-scroller-left"); var _7=_4.children("div.tabs-scroller-right"); var _8=_4.children("div.tabs-wrap"); var _9=_4.outerHeight(); if(_3.plain){ _9-=_9-_4.height(); } _5._outerHeight(_9); var _a=0; $("ul.tabs li",_4).each(function(){ _a+=$(this).outerWidth(true); }); var _b=_4.width()-_5._outerWidth(); if(_a>_b){ _6.add(_7).show()._outerHeight(_9); if(_3.toolPosition=="left"){ _5.css({left:_6.outerWidth(),right:""}); _8.css({marginLeft:_6.outerWidth()+_5._outerWidth(),marginRight:_7._outerWidth(),width:_b-_6.outerWidth()-_7.outerWidth()}); }else{ _5.css({left:"",right:_7.outerWidth()}); _8.css({marginLeft:_6.outerWidth(),marginRight:_7.outerWidth()+_5._outerWidth(),width:_b-_6.outerWidth()-_7.outerWidth()}); } }else{ _6.add(_7).hide(); if(_3.toolPosition=="left"){ _5.css({left:0,right:""}); _8.css({marginLeft:_5._outerWidth(),marginRight:0,width:_b}); }else{ _5.css({left:"",right:0}); _8.css({marginLeft:0,marginRight:_5._outerWidth(),width:_b}); } } }; function _c(_d){ var _e=$.data(_d,"tabs").options; var _f=$(_d).children("div.tabs-header"); if(_e.tools){ if(typeof _e.tools=="string"){ $(_e.tools).addClass("tabs-tool").appendTo(_f); $(_e.tools).show(); }else{ _f.children("div.tabs-tool").remove(); var _10=$("
                                        ").appendTo(_f); var tr=_10.find("tr"); for(var i=0;i<_e.tools.length;i++){ var td=$("").appendTo(tr); var _11=$("").appendTo(td); _11[0].onclick=eval(_e.tools[i].handler||function(){ }); _11.linkbutton($.extend({},_e.tools[i],{plain:true})); } } }else{ _f.children("div.tabs-tool").remove(); } }; function _12(_13,_14){ var _15=$.data(_13,"tabs"); var _16=_15.options; var cc=$(_13); if(_14){ $.extend(_16,{width:_14.width,height:_14.height}); } cc._size(_16); var _17=cc.children("div.tabs-header"); var _18=cc.children("div.tabs-panels"); var _19=_17.find("div.tabs-wrap"); var ul=_19.find(".tabs"); for(var i=0;i<_15.tabs.length;i++){ var _1a=_15.tabs[i].panel("options"); var p_t=_1a.tab.find("a.tabs-inner"); var _1b=parseInt(_1a.tabWidth||_16.tabWidth)||undefined; if(_1b){ p_t._outerWidth(_1b); }else{ p_t.css("width",""); } p_t._outerHeight(_16.tabHeight); p_t.css("lineHeight",p_t.height()+"px"); } if(_16.tabPosition=="left"||_16.tabPosition=="right"){ _17._outerWidth(_16.showHeader?_16.headerWidth:0); _18._outerWidth(cc.width()-_17.outerWidth()); _17.add(_18)._outerHeight(_16.height); _19._outerWidth(_17.width()); ul._outerWidth(_19.width()).css("height",""); }else{ var lrt=_17.children("div.tabs-scroller-left,div.tabs-scroller-right,div.tabs-tool"); _17._outerWidth(_16.width).css("height",""); if(_16.showHeader){ _17.css("background-color",""); _19.css("height",""); lrt.show(); }else{ _17.css("background-color","transparent"); _17._outerHeight(0); _19._outerHeight(0); lrt.hide(); } ul._outerHeight(_16.tabHeight).css("width",""); _1(_13); _18._size("height",isNaN(_16.height)?"":(_16.height-_17.outerHeight())); _18._size("width",isNaN(_16.width)?"":_16.width); } }; function _1c(_1d){ var _1e=$.data(_1d,"tabs").options; var tab=_1f(_1d); if(tab){ var _20=$(_1d).children("div.tabs-panels"); var _21=_1e.width=="auto"?"auto":_20.width(); var _22=_1e.height=="auto"?"auto":_20.height(); tab.panel("resize",{width:_21,height:_22}); } }; function _23(_24){ var _25=$.data(_24,"tabs").tabs; var cc=$(_24); cc.addClass("tabs-container"); var pp=$("
                                        ").insertBefore(cc); cc.children("div").each(function(){ pp[0].appendChild(this); }); cc[0].appendChild(pp[0]); $("
                                        "+"
                                        "+"
                                        "+"
                                        "+"
                                          "+"
                                          "+"
                                          ").prependTo(_24); cc.children("div.tabs-panels").children("div").each(function(i){ var _26=$.extend({},$.parser.parseOptions(this),{selected:($(this).attr("selected")?true:undefined)}); var pp=$(this); _25.push(pp); _35(_24,pp,_26); }); cc.children("div.tabs-header").find(".tabs-scroller-left, .tabs-scroller-right").hover(function(){ $(this).addClass("tabs-scroller-over"); },function(){ $(this).removeClass("tabs-scroller-over"); }); cc.bind("_resize",function(e,_27){ if($(this).hasClass("easyui-fluid")||_27){ _12(_24); _1c(_24); } return false; }); }; function _28(_29){ var _2a=$.data(_29,"tabs"); var _2b=_2a.options; $(_29).children("div.tabs-header").unbind().bind("click",function(e){ if($(e.target).hasClass("tabs-scroller-left")){ $(_29).tabs("scrollBy",-_2b.scrollIncrement); }else{ if($(e.target).hasClass("tabs-scroller-right")){ $(_29).tabs("scrollBy",_2b.scrollIncrement); }else{ var li=$(e.target).closest("li"); if(li.hasClass("tabs-disabled")){ return; } var a=$(e.target).closest("a.tabs-close"); if(a.length){ _4c(_29,_2c(li)); }else{ if(li.length){ var _2d=_2c(li); var _2e=_2a.tabs[_2d].panel("options"); if(_2e.collapsible){ _2e.closed?_41(_29,_2d):_6b(_29,_2d); }else{ _41(_29,_2d); } } } } } }).bind("contextmenu",function(e){ var li=$(e.target).closest("li"); if(li.hasClass("tabs-disabled")){ return; } if(li.length){ _2b.onContextMenu.call(_29,e,li.find("span.tabs-title").html(),_2c(li)); } }); function _2c(li){ var _2f=0; li.parent().children("li").each(function(i){ if(li[0]==this){ _2f=i; return false; } }); return _2f; }; }; function _30(_31){ var _32=$.data(_31,"tabs").options; var _33=$(_31).children("div.tabs-header"); var _34=$(_31).children("div.tabs-panels"); _33.removeClass("tabs-header-top tabs-header-bottom tabs-header-left tabs-header-right"); _34.removeClass("tabs-panels-top tabs-panels-bottom tabs-panels-left tabs-panels-right"); if(_32.tabPosition=="top"){ _33.insertBefore(_34); }else{ if(_32.tabPosition=="bottom"){ _33.insertAfter(_34); _33.addClass("tabs-header-bottom"); _34.addClass("tabs-panels-top"); }else{ if(_32.tabPosition=="left"){ _33.addClass("tabs-header-left"); _34.addClass("tabs-panels-right"); }else{ if(_32.tabPosition=="right"){ _33.addClass("tabs-header-right"); _34.addClass("tabs-panels-left"); } } } } if(_32.plain==true){ _33.addClass("tabs-header-plain"); }else{ _33.removeClass("tabs-header-plain"); } if(_32.border==true){ _33.removeClass("tabs-header-noborder"); _34.removeClass("tabs-panels-noborder"); }else{ _33.addClass("tabs-header-noborder"); _34.addClass("tabs-panels-noborder"); } }; function _35(_36,pp,_37){ var _38=$.data(_36,"tabs"); _37=_37||{}; pp.panel($.extend({},_37,{border:false,noheader:true,closed:true,doSize:false,iconCls:(_37.icon?_37.icon:undefined),onLoad:function(){ if(_37.onLoad){ _37.onLoad.call(this,arguments); } _38.options.onLoad.call(_36,$(this)); }})); var _39=pp.panel("options"); var _3a=$(_36).children("div.tabs-header").find("ul.tabs"); _39.tab=$("
                                        • ").appendTo(_3a); _39.tab.append(""+""+""+""); $(_36).tabs("update",{tab:pp,options:_39,type:"header"}); }; function _3b(_3c,_3d){ var _3e=$.data(_3c,"tabs"); var _3f=_3e.options; var _40=_3e.tabs; if(_3d.selected==undefined){ _3d.selected=true; } var pp=$("
                                          ").appendTo($(_3c).children("div.tabs-panels")); _40.push(pp); _35(_3c,pp,_3d); _3f.onAdd.call(_3c,_3d.title,_40.length-1); _12(_3c); if(_3d.selected){ _41(_3c,_40.length-1); } }; function _42(_43,_44){ _44.type=_44.type||"all"; var _45=$.data(_43,"tabs").selectHis; var pp=_44.tab; var _46=pp.panel("options").title; if(_44.type=="all"||_44=="body"){ pp.panel($.extend({},_44.options,{iconCls:(_44.options.icon?_44.options.icon:undefined)})); } if(_44.type=="all"||_44.type=="header"){ var _47=pp.panel("options"); var tab=_47.tab; var _48=tab.find("span.tabs-title"); var _49=tab.find("span.tabs-icon"); _48.html(_47.title); _49.attr("class","tabs-icon"); tab.find("a.tabs-close").remove(); if(_47.closable){ _48.addClass("tabs-closable"); $("").appendTo(tab); }else{ _48.removeClass("tabs-closable"); } if(_47.iconCls){ _48.addClass("tabs-with-icon"); _49.addClass(_47.iconCls); }else{ _48.removeClass("tabs-with-icon"); } if(_46!=_47.title){ for(var i=0;i<_45.length;i++){ if(_45[i]==_46){ _45[i]=_47.title; } } } tab.find("span.tabs-p-tool").remove(); if(_47.tools){ var _4a=$("").insertAfter(tab.find("a.tabs-inner")); if($.isArray(_47.tools)){ for(var i=0;i<_47.tools.length;i++){ var t=$("").appendTo(_4a); t.addClass(_47.tools[i].iconCls); if(_47.tools[i].handler){ t.bind("click",{handler:_47.tools[i].handler},function(e){ if($(this).parents("li").hasClass("tabs-disabled")){ return; } e.data.handler.call(this); }); } } }else{ $(_47.tools).children().appendTo(_4a); } var pr=_4a.children().length*12; if(_47.closable){ pr+=8; }else{ pr-=3; _4a.css("right","5px"); } _48.css("padding-right",pr+"px"); } } _12(_43); $.data(_43,"tabs").options.onUpdate.call(_43,_47.title,_4b(_43,pp)); }; function _4c(_4d,_4e){ var _4f=$.data(_4d,"tabs").options; var _50=$.data(_4d,"tabs").tabs; var _51=$.data(_4d,"tabs").selectHis; if(!_52(_4d,_4e)){ return; } var tab=_53(_4d,_4e); var _54=tab.panel("options").title; var _55=_4b(_4d,tab); if(_4f.onBeforeClose.call(_4d,_54,_55)==false){ return; } var tab=_53(_4d,_4e,true); tab.panel("options").tab.remove(); tab.panel("destroy"); _4f.onClose.call(_4d,_54,_55); _12(_4d); for(var i=0;i<_51.length;i++){ if(_51[i]==_54){ _51.splice(i,1); i--; } } var _56=_51.pop(); if(_56){ _41(_4d,_56); }else{ if(_50.length){ _41(_4d,0); } } }; function _53(_57,_58,_59){ var _5a=$.data(_57,"tabs").tabs; if(typeof _58=="number"){ if(_58<0||_58>=_5a.length){ return null; }else{ var tab=_5a[_58]; if(_59){ _5a.splice(_58,1); } return tab; } } for(var i=0;i<_5a.length;i++){ var tab=_5a[i]; if(tab.panel("options").title==_58){ if(_59){ _5a.splice(i,1); } return tab; } } return null; }; function _4b(_5b,tab){ var _5c=$.data(_5b,"tabs").tabs; for(var i=0;i<_5c.length;i++){ if(_5c[i][0]==$(tab)[0]){ return i; } } return -1; }; function _1f(_5d){ var _5e=$.data(_5d,"tabs").tabs; for(var i=0;i<_5e.length;i++){ var tab=_5e[i]; if(tab.panel("options").closed==false){ return tab; } } return null; }; function _5f(_60){ var _61=$.data(_60,"tabs"); var _62=_61.tabs; for(var i=0;i<_62.length;i++){ if(_62[i].panel("options").selected){ _41(_60,i); return; } } _41(_60,_61.options.selected); }; function _41(_63,_64){ var _65=$.data(_63,"tabs"); var _66=_65.options; var _67=_65.tabs; var _68=_65.selectHis; if(_67.length==0){ return; } var _69=_53(_63,_64); if(!_69){ return; } var _6a=_1f(_63); if(_6a){ if(_69[0]==_6a[0]){ _1c(_63); return; } _6b(_63,_4b(_63,_6a)); if(!_6a.panel("options").closed){ return; } } _69.panel("open"); var _6c=_69.panel("options").title; _68.push(_6c); var tab=_69.panel("options").tab; tab.addClass("tabs-selected"); var _6d=$(_63).find(">div.tabs-header>div.tabs-wrap"); var _6e=tab.position().left; var _6f=_6e+tab.outerWidth(); if(_6e<0||_6f>_6d.width()){ var _70=_6e-(_6d.width()-tab.width())/2; $(_63).tabs("scrollBy",_70); }else{ $(_63).tabs("scrollBy",0); } _1c(_63); _66.onSelect.call(_63,_6c,_4b(_63,_69)); }; function _6b(_71,_72){ var _73=$.data(_71,"tabs"); var p=_53(_71,_72); if(p){ var _74=p.panel("options"); if(!_74.closed){ p.panel("close"); if(_74.closed){ _74.tab.removeClass("tabs-selected"); _73.options.onUnselect.call(_71,_74.title,_4b(_71,p)); } } } }; function _52(_75,_76){ return _53(_75,_76)!=null; }; function _77(_78,_79){ var _7a=$.data(_78,"tabs").options; _7a.showHeader=_79; $(_78).tabs("resize"); }; $.fn.tabs=function(_7b,_7c){ if(typeof _7b=="string"){ return $.fn.tabs.methods[_7b](this,_7c); } _7b=_7b||{}; return this.each(function(){ var _7d=$.data(this,"tabs"); if(_7d){ $.extend(_7d.options,_7b); }else{ $.data(this,"tabs",{options:$.extend({},$.fn.tabs.defaults,$.fn.tabs.parseOptions(this),_7b),tabs:[],selectHis:[]}); _23(this); } _c(this); _30(this); _12(this); _28(this); _5f(this); }); }; $.fn.tabs.methods={options:function(jq){ var cc=jq[0]; var _7e=$.data(cc,"tabs").options; var s=_1f(cc); _7e.selected=s?_4b(cc,s):-1; return _7e; },tabs:function(jq){ return $.data(jq[0],"tabs").tabs; },resize:function(jq,_7f){ return jq.each(function(){ _12(this,_7f); _1c(this); }); },add:function(jq,_80){ return jq.each(function(){ _3b(this,_80); }); },close:function(jq,_81){ return jq.each(function(){ _4c(this,_81); }); },getTab:function(jq,_82){ return _53(jq[0],_82); },getTabIndex:function(jq,tab){ return _4b(jq[0],tab); },getSelected:function(jq){ return _1f(jq[0]); },select:function(jq,_83){ return jq.each(function(){ _41(this,_83); }); },unselect:function(jq,_84){ return jq.each(function(){ _6b(this,_84); }); },exists:function(jq,_85){ return _52(jq[0],_85); },update:function(jq,_86){ return jq.each(function(){ _42(this,_86); }); },enableTab:function(jq,_87){ return jq.each(function(){ $(this).tabs("getTab",_87).panel("options").tab.removeClass("tabs-disabled"); }); },disableTab:function(jq,_88){ return jq.each(function(){ $(this).tabs("getTab",_88).panel("options").tab.addClass("tabs-disabled"); }); },showHeader:function(jq){ return jq.each(function(){ _77(this,true); }); },hideHeader:function(jq){ return jq.each(function(){ _77(this,false); }); },scrollBy:function(jq,_89){ return jq.each(function(){ var _8a=$(this).tabs("options"); var _8b=$(this).find(">div.tabs-header>div.tabs-wrap"); var pos=Math.min(_8b._scrollLeft()+_89,_8c()); _8b.animate({scrollLeft:pos},_8a.scrollDuration); function _8c(){ var w=0; var ul=_8b.children("ul"); ul.children("li").each(function(){ w+=$(this).outerWidth(true); }); return w-_8b.width()+(ul.outerWidth()-ul.width()); }; }); }}; $.fn.tabs.parseOptions=function(_8d){ return $.extend({},$.parser.parseOptions(_8d,["tools","toolPosition","tabPosition",{fit:"boolean",border:"boolean",plain:"boolean",headerWidth:"number",tabWidth:"number",tabHeight:"number",selected:"number",showHeader:"boolean"}])); }; $.fn.tabs.defaults={width:"auto",height:"auto",headerWidth:150,tabWidth:"auto",tabHeight:27,selected:0,showHeader:true,plain:false,fit:false,border:true,tools:null,toolPosition:"right",tabPosition:"top",scrollIncrement:100,scrollDuration:400,onLoad:function(_8e){ },onSelect:function(_8f,_90){ },onUnselect:function(_91,_92){ },onBeforeClose:function(_93,_94){ },onClose:function(_95,_96){ },onAdd:function(_97,_98){ },onUpdate:function(_99,_9a){ },onContextMenu:function(e,_9b,_9c){ }}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.textbox.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ $(_2).addClass("textbox-f").hide(); var _3=$(""+""+""+"").insertAfter(_2); var _4=$(_2).attr("name"); if(_4){ _3.find("input.textbox-value").attr("name",_4); $(_2).removeAttr("name").attr("textboxName",_4); } return _3; }; function _5(_6){ var _7=$.data(_6,"textbox"); var _8=_7.options; var tb=_7.textbox; tb.find(".textbox-text").remove(); if(_8.multiline){ $("").prependTo(tb); }else{ $("").prependTo(tb); } tb.find(".textbox-addon").remove(); var bb=_8.icons?$.extend(true,[],_8.icons):[]; if(_8.iconCls){ bb.push({iconCls:_8.iconCls,disabled:true}); } if(bb.length){ var bc=$("").prependTo(tb); bc.addClass("textbox-addon-"+_8.iconAlign); for(var i=0;i"); } } tb.find(".textbox-button").remove(); if(_8.buttonText||_8.buttonIcon){ var _9=$("").prependTo(tb); _9.addClass("textbox-button-"+_8.buttonAlign).linkbutton({text:_8.buttonText,iconCls:_8.buttonIcon}); } _a(_6,_8.disabled); _b(_6,_8.readonly); }; function _c(_d){ var tb=$.data(_d,"textbox").textbox; tb.find(".textbox-text").validatebox("destroy"); tb.remove(); $(_d).remove(); }; function _e(_f,_10){ var _11=$.data(_f,"textbox"); var _12=_11.options; var tb=_11.textbox; var _13=tb.parent(); if(_10){ _12.width=_10; } if(isNaN(parseInt(_12.width))){ var c=$(_f).clone(); c.css("visibility","hidden"); c.insertAfter(_f); _12.width=c.outerWidth(); c.remove(); } tb.appendTo("body"); var _14=tb.find(".textbox-text"); var btn=tb.find(".textbox-button"); var _15=tb.find(".textbox-addon"); var _16=_15.find(".textbox-icon"); tb._size(_12,_13); btn.linkbutton("resize",{height:tb.height()}); btn.css({left:(_12.buttonAlign=="left"?0:""),right:(_12.buttonAlign=="right"?0:"")}); _15.css({left:(_12.iconAlign=="left"?(_12.buttonAlign=="left"?btn._outerWidth():0):""),right:(_12.iconAlign=="right"?(_12.buttonAlign=="right"?btn._outerWidth():0):"")}); _16.css({width:_12.iconWidth+"px",height:tb.height()+"px"}); _14.css({paddingLeft:(_f.style.paddingLeft||""),paddingRight:(_f.style.paddingRight||""),marginLeft:_17("left"),marginRight:_17("right")}); if(_12.multiline){ _14.css({paddingTop:(_f.style.paddingTop||""),paddingBottom:(_f.style.paddingBottom||"")}); _14._outerHeight(tb.height()); }else{ var _18=Math.floor((tb.height()-_14.height())/2); _14.css({paddingTop:_18+"px",paddingBottom:_18+"px"}); } _14._outerWidth(tb.width()-_16.length*_12.iconWidth-btn._outerWidth()); tb.insertAfter(_f); _12.onResize.call(_f,_12.width,_12.height); function _17(_19){ return (_12.iconAlign==_19?_15._outerWidth():0)+(_12.buttonAlign==_19?btn._outerWidth():0); }; }; function _1a(_1b){ var _1c=$(_1b).textbox("options"); var _1d=$(_1b).textbox("textbox"); _1d.validatebox($.extend({},_1c,{deltaX:$(_1b).textbox("getTipX"),onBeforeValidate:function(){ var box=$(this); if(!box.is(":focus")){ _1c.oldInputValue=box.val(); box.val(_1c.value); } },onValidate:function(_1e){ var box=$(this); if(_1c.oldInputValue!=undefined){ box.val(_1c.oldInputValue); _1c.oldInputValue=undefined; } var tb=box.parent(); if(_1e){ tb.removeClass("textbox-invalid"); }else{ tb.addClass("textbox-invalid"); } }})); }; function _1f(_20){ var _21=$.data(_20,"textbox"); var _22=_21.options; var tb=_21.textbox; var _23=tb.find(".textbox-text"); _23.attr("placeholder",_22.prompt); _23.unbind(".textbox"); if(!_22.disabled&&!_22.readonly){ _23.bind("blur.textbox",function(e){ if(!tb.hasClass("textbox-focused")){ return; } _22.value=$(this).val(); if(_22.value==""){ $(this).val(_22.prompt).addClass("textbox-prompt"); }else{ $(this).removeClass("textbox-prompt"); } tb.removeClass("textbox-focused"); }).bind("focus.textbox",function(e){ if(tb.hasClass("textbox-focused")){ return; } if($(this).val()!=_22.value){ $(this).val(_22.value); } $(this).removeClass("textbox-prompt"); tb.addClass("textbox-focused"); }); for(var _24 in _22.inputEvents){ _23.bind(_24+".textbox",{target:_20},_22.inputEvents[_24]); } } var _25=tb.find(".textbox-addon"); _25.unbind().bind("click",{target:_20},function(e){ var _26=$(e.target).closest("a.textbox-icon:not(.textbox-icon-disabled)"); if(_26.length){ var _27=parseInt(_26.attr("icon-index")); var _28=_22.icons[_27]; if(_28&&_28.handler){ _28.handler.call(_26[0],e); _22.onClickIcon.call(_20,_27); } } }); _25.find(".textbox-icon").each(function(_29){ var _2a=_22.icons[_29]; var _2b=$(this); if(!_2a||_2a.disabled||_22.disabled||_22.readonly){ _2b.addClass("textbox-icon-disabled"); }else{ _2b.removeClass("textbox-icon-disabled"); } }); var btn=tb.find(".textbox-button"); btn.unbind(".textbox").bind("click.textbox",function(){ if(!btn.linkbutton("options").disabled){ _22.onClickButton.call(_20); } }); btn.linkbutton((_22.disabled||_22.readonly)?"disable":"enable"); tb.unbind(".textbox").bind("_resize.textbox",function(e,_2c){ if($(this).hasClass("easyui-fluid")||_2c){ _e(_20); } return false; }); }; function _a(_2d,_2e){ var _2f=$.data(_2d,"textbox"); var _30=_2f.options; var tb=_2f.textbox; if(_2e){ _30.disabled=true; $(_2d).attr("disabled","disabled"); tb.find(".textbox-text,.textbox-value").attr("disabled","disabled"); }else{ _30.disabled=false; $(_2d).removeAttr("disabled"); tb.find(".textbox-text,.textbox-value").removeAttr("disabled"); } }; function _b(_31,_32){ var _33=$.data(_31,"textbox"); var _34=_33.options; _34.readonly=_32==undefined?true:_32; var _35=_33.textbox.find(".textbox-text"); _35.removeAttr("readonly").removeClass("textbox-text-readonly"); if(_34.readonly||!_34.editable){ _35.attr("readonly","readonly").addClass("textbox-text-readonly"); } }; $.fn.textbox=function(_36,_37){ if(typeof _36=="string"){ var _38=$.fn.textbox.methods[_36]; if(_38){ return _38(this,_37); }else{ return this.each(function(){ var _39=$(this).textbox("textbox"); _39.validatebox(_36,_37); }); } } _36=_36||{}; return this.each(function(){ var _3a=$.data(this,"textbox"); if(_3a){ $.extend(_3a.options,_36); if(_36.value!=undefined){ _3a.options.originalValue=_36.value; } }else{ _3a=$.data(this,"textbox",{options:$.extend({},$.fn.textbox.defaults,$.fn.textbox.parseOptions(this),_36),textbox:_1(this)}); _3a.options.originalValue=_3a.options.value; } _5(this); _1f(this); _e(this); _1a(this); $(this).textbox("initValue",_3a.options.value); }); }; $.fn.textbox.methods={options:function(jq){ return $.data(jq[0],"textbox").options; },cloneFrom:function(jq,_3b){ return jq.each(function(){ var t=$(this); if(t.data("textbox")){ return; } if(!$(_3b).data("textbox")){ $(_3b).textbox(); } var _3c=t.attr("name")||""; t.addClass("textbox-f").hide(); t.removeAttr("name").attr("textboxName",_3c); var _3d=$(_3b).next().clone().insertAfter(t); _3d.find("input.textbox-value").attr("name",_3c); $.data(this,"textbox",{options:$.extend(true,{},$(_3b).textbox("options")),textbox:_3d}); var _3e=$(_3b).textbox("button"); if(_3e.length){ t.textbox("button").linkbutton($.extend(true,{},_3e.linkbutton("options"))); } _1f(this); _1a(this); }); },textbox:function(jq){ return $.data(jq[0],"textbox").textbox.find(".textbox-text"); },button:function(jq){ return $.data(jq[0],"textbox").textbox.find(".textbox-button"); },destroy:function(jq){ return jq.each(function(){ _c(this); }); },resize:function(jq,_3f){ return jq.each(function(){ _e(this,_3f); }); },disable:function(jq){ return jq.each(function(){ _a(this,true); _1f(this); }); },enable:function(jq){ return jq.each(function(){ _a(this,false); _1f(this); }); },readonly:function(jq,_40){ return jq.each(function(){ _b(this,_40); _1f(this); }); },isValid:function(jq){ return jq.textbox("textbox").validatebox("isValid"); },clear:function(jq){ return jq.each(function(){ $(this).textbox("setValue",""); }); },setText:function(jq,_41){ return jq.each(function(){ var _42=$(this).textbox("options"); var _43=$(this).textbox("textbox"); if($(this).textbox("getText")!=_41){ _42.value=_41; _43.val(_41); } if(!_43.is(":focus")){ if(_41){ _43.removeClass("textbox-prompt"); }else{ _43.val(_42.prompt).addClass("textbox-prompt"); } } $(this).textbox("validate"); }); },initValue:function(jq,_44){ return jq.each(function(){ var _45=$.data(this,"textbox"); _45.options.value=""; $(this).textbox("setText",_44); _45.textbox.find(".textbox-value").val(_44); $(this).val(_44); }); },setValue:function(jq,_46){ return jq.each(function(){ var _47=$.data(this,"textbox").options; var _48=$(this).textbox("getValue"); $(this).textbox("initValue",_46); if(_48!=_46){ _47.onChange.call(this,_46,_48); } }); },getText:function(jq){ var _49=jq.textbox("textbox"); if(_49.is(":focus")){ return _49.val(); }else{ return jq.textbox("options").value; } },getValue:function(jq){ return jq.data("textbox").textbox.find(".textbox-value").val(); },reset:function(jq){ return jq.each(function(){ var _4a=$(this).textbox("options"); $(this).textbox("setValue",_4a.originalValue); }); },getIcon:function(jq,_4b){ return jq.data("textbox").textbox.find(".textbox-icon:eq("+_4b+")"); },getTipX:function(jq){ var _4c=jq.data("textbox"); var _4d=_4c.options; var tb=_4c.textbox; var _4e=tb.find(".textbox-text"); var _4f=tb.find(".textbox-addon")._outerWidth(); var _50=tb.find(".textbox-button")._outerWidth(); if(_4d.tipPosition=="right"){ return (_4d.iconAlign=="right"?_4f:0)+(_4d.buttonAlign=="right"?_50:0)+1; }else{ if(_4d.tipPosition=="left"){ return (_4d.iconAlign=="left"?-_4f:0)+(_4d.buttonAlign=="left"?-_50:0)-1; }else{ return _4f/2*(_4d.iconAlign=="right"?1:-1); } } }}; $.fn.textbox.parseOptions=function(_51){ var t=$(_51); return $.extend({},$.fn.validatebox.parseOptions(_51),$.parser.parseOptions(_51,["prompt","iconCls","iconAlign","buttonText","buttonIcon","buttonAlign",{multiline:"boolean",editable:"boolean",iconWidth:"number"}]),{value:(t.val()||undefined),type:(t.attr("type")?t.attr("type"):undefined),disabled:(t.attr("disabled")?true:undefined),readonly:(t.attr("readonly")?true:undefined)}); }; $.fn.textbox.defaults=$.extend({},$.fn.validatebox.defaults,{width:"auto",height:22,prompt:"",value:"",type:"text",multiline:false,editable:true,disabled:false,readonly:false,icons:[],iconCls:null,iconAlign:"right",iconWidth:18,buttonText:"",buttonIcon:null,buttonAlign:"right",inputEvents:{blur:function(e){ var t=$(e.data.target); var _52=t.textbox("options"); t.textbox("setValue",_52.value); },keydown:function(e){ if(e.keyCode==13){ var t=$(e.data.target); t.textbox("setValue",t.textbox("getText")); } }},onChange:function(_53,_54){ },onResize:function(_55,_56){ },onClickButton:function(){ },onClickIcon:function(_57){ }}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.timespinner.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=0; if(_2.selectionStart){ _3=_2.selectionStart; }else{ if(_2.createTextRange){ var _4=_2.createTextRange(); var s=document.selection.createRange(); s.setEndPoint("StartToStart",_4); _3=s.text.length; } } return _3; }; function _5(_6,_7,_8){ if(_6.selectionStart){ _6.setSelectionRange(_7,_8); }else{ if(_6.createTextRange){ var _9=_6.createTextRange(); _9.collapse(); _9.moveEnd("character",_8); _9.moveStart("character",_7); _9.select(); } } }; function _a(_b){ var _c=$.data(_b,"timespinner").options; $(_b).addClass("timespinner-f").spinner(_c); var _d=_c.formatter.call(_b,_c.parser.call(_b,_c.value)); $(_b).timespinner("initValue",_d); }; function _e(e){ var _f=e.data.target; var _10=$.data(_f,"timespinner").options; var _11=_1(this); for(var i=0;i<_10.selections.length;i++){ var _12=_10.selections[i]; if(_11>=_12[0]&&_11<=_12[1]){ _13(_f,i); return; } } }; function _13(_14,_15){ var _16=$.data(_14,"timespinner").options; if(_15!=undefined){ _16.highlight=_15; } var _17=_16.selections[_16.highlight]; if(_17){ var tb=$(_14).timespinner("textbox"); _5(tb[0],_17[0],_17[1]); tb.focus(); } }; function _18(_19,_1a){ var _1b=$.data(_19,"timespinner").options; var _1a=_1b.parser.call(_19,_1a); var _1c=_1b.formatter.call(_19,_1a); $(_19).spinner("setValue",_1c); }; function _1d(_1e,_1f){ var _20=$.data(_1e,"timespinner").options; var s=$(_1e).timespinner("getValue"); var _21=_20.selections[_20.highlight]; var s1=s.substring(0,_21[0]); var s2=s.substring(_21[0],_21[1]); var s3=s.substring(_21[1]); var v=s1+((parseInt(s2)||0)+_20.increment*(_1f?-1:1))+s3; $(_1e).timespinner("setValue",v); _13(_1e); }; $.fn.timespinner=function(_22,_23){ if(typeof _22=="string"){ var _24=$.fn.timespinner.methods[_22]; if(_24){ return _24(this,_23); }else{ return this.spinner(_22,_23); } } _22=_22||{}; return this.each(function(){ var _25=$.data(this,"timespinner"); if(_25){ $.extend(_25.options,_22); }else{ $.data(this,"timespinner",{options:$.extend({},$.fn.timespinner.defaults,$.fn.timespinner.parseOptions(this),_22)}); } _a(this); }); }; $.fn.timespinner.methods={options:function(jq){ var _26=jq.data("spinner")?jq.spinner("options"):{}; return $.extend($.data(jq[0],"timespinner").options,{width:_26.width,value:_26.value,originalValue:_26.originalValue,disabled:_26.disabled,readonly:_26.readonly}); },setValue:function(jq,_27){ return jq.each(function(){ _18(this,_27); }); },getHours:function(jq){ var _28=$.data(jq[0],"timespinner").options; var vv=jq.timespinner("getValue").split(_28.separator); return parseInt(vv[0],10); },getMinutes:function(jq){ var _29=$.data(jq[0],"timespinner").options; var vv=jq.timespinner("getValue").split(_29.separator); return parseInt(vv[1],10); },getSeconds:function(jq){ var _2a=$.data(jq[0],"timespinner").options; var vv=jq.timespinner("getValue").split(_2a.separator); return parseInt(vv[2],10)||0; }}; $.fn.timespinner.parseOptions=function(_2b){ return $.extend({},$.fn.spinner.parseOptions(_2b),$.parser.parseOptions(_2b,["separator",{showSeconds:"boolean",highlight:"number"}])); }; $.fn.timespinner.defaults=$.extend({},$.fn.spinner.defaults,{inputEvents:$.extend({},$.fn.spinner.defaults.inputEvents,{click:function(e){ _e.call(this,e); },blur:function(e){ var t=$(e.data.target); t.timespinner("setValue",t.timespinner("getText")); },keydown:function(e){ if(e.keyCode==13){ var t=$(e.data.target); t.timespinner("setValue",t.timespinner("getText")); } }}),formatter:function(_2c){ if(!_2c){ return ""; } var _2d=$(this).timespinner("options"); var tt=[_2e(_2c.getHours()),_2e(_2c.getMinutes())]; if(_2d.showSeconds){ tt.push(_2e(_2c.getSeconds())); } return tt.join(_2d.separator); function _2e(_2f){ return (_2f<10?"0":"")+_2f; }; },parser:function(s){ var _30=$(this).timespinner("options"); var _31=_32(s); if(_31){ var min=_32(_30.min); var max=_32(_30.max); if(min&&min>_31){ _31=min; } if(max&&max<_31){ _31=max; } } return _31; function _32(s){ if(!s){ return null; } var tt=s.split(_30.separator); return new Date(1900,0,0,parseInt(tt[0],10)||0,parseInt(tt[1],10)||0,parseInt(tt[2],10)||0); }; if(!s){ return null; } var tt=s.split(_30.separator); return new Date(1900,0,0,parseInt(tt[0],10)||0,parseInt(tt[1],10)||0,parseInt(tt[2],10)||0); },selections:[[0,2],[3,5],[6,8]],separator:":",showSeconds:false,highlight:0,spin:function(_33){ _1d(this,_33); }}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.tooltip.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ $(_2).addClass("tooltip-f"); }; function _3(_4){ var _5=$.data(_4,"tooltip").options; $(_4).unbind(".tooltip").bind(_5.showEvent+".tooltip",function(e){ $(_4).tooltip("show",e); }).bind(_5.hideEvent+".tooltip",function(e){ $(_4).tooltip("hide",e); }).bind("mousemove.tooltip",function(e){ if(_5.trackMouse){ _5.trackMouseX=e.pageX; _5.trackMouseY=e.pageY; $(_4).tooltip("reposition"); } }); }; function _6(_7){ var _8=$.data(_7,"tooltip"); if(_8.showTimer){ clearTimeout(_8.showTimer); _8.showTimer=null; } if(_8.hideTimer){ clearTimeout(_8.hideTimer); _8.hideTimer=null; } }; function _9(_a){ var _b=$.data(_a,"tooltip"); if(!_b||!_b.tip){ return; } var _c=_b.options; var _d=_b.tip; var _e={left:-100000,top:-100000}; if($(_a).is(":visible")){ _e=_f(_c.position); if(_c.position=="top"&&_e.top<0){ _e=_f("bottom"); }else{ if((_c.position=="bottom")&&(_e.top+_d._outerHeight()>$(window)._outerHeight()+$(document).scrollTop())){ _e=_f("top"); } } if(_e.left<0){ if(_c.position=="left"){ _e=_f("right"); }else{ $(_a).tooltip("arrow").css("left",_d._outerWidth()/2+_e.left); _e.left=0; } }else{ if(_e.left+_d._outerWidth()>$(window)._outerWidth()+$(document)._scrollLeft()){ if(_c.position=="right"){ _e=_f("left"); }else{ var _10=_e.left; _e.left=$(window)._outerWidth()+$(document)._scrollLeft()-_d._outerWidth(); $(_a).tooltip("arrow").css("left",_d._outerWidth()/2-(_e.left-_10)); } } } } _d.css({left:_e.left,top:_e.top,zIndex:(_c.zIndex!=undefined?_c.zIndex:($.fn.window?$.fn.window.defaults.zIndex++:""))}); _c.onPosition.call(_a,_e.left,_e.top); function _f(_11){ _c.position=_11||"bottom"; _d.removeClass("tooltip-top tooltip-bottom tooltip-left tooltip-right").addClass("tooltip-"+_c.position); var _12,top; if(_c.trackMouse){ t=$(); _12=_c.trackMouseX+_c.deltaX; top=_c.trackMouseY+_c.deltaY; }else{ var t=$(_a); _12=t.offset().left+_c.deltaX; top=t.offset().top+_c.deltaY; } switch(_c.position){ case "right": _12+=t._outerWidth()+12+(_c.trackMouse?12:0); top-=(_d._outerHeight()-t._outerHeight())/2; break; case "left": _12-=_d._outerWidth()+12+(_c.trackMouse?12:0); top-=(_d._outerHeight()-t._outerHeight())/2; break; case "top": _12-=(_d._outerWidth()-t._outerWidth())/2; top-=_d._outerHeight()+12+(_c.trackMouse?12:0); break; case "bottom": _12-=(_d._outerWidth()-t._outerWidth())/2; top+=t._outerHeight()+12+(_c.trackMouse?12:0); break; } return {left:_12,top:top}; }; }; function _13(_14,e){ var _15=$.data(_14,"tooltip"); var _16=_15.options; var tip=_15.tip; if(!tip){ tip=$("
                                          "+"
                                          "+"
                                          "+"
                                          "+"
                                          ").appendTo("body"); _15.tip=tip; _17(_14); } _6(_14); _15.showTimer=setTimeout(function(){ $(_14).tooltip("reposition"); tip.show(); _16.onShow.call(_14,e); var _18=tip.children(".tooltip-arrow-outer"); var _19=tip.children(".tooltip-arrow"); var bc="border-"+_16.position+"-color"; _18.add(_19).css({borderTopColor:"",borderBottomColor:"",borderLeftColor:"",borderRightColor:""}); _18.css(bc,tip.css(bc)); _19.css(bc,tip.css("backgroundColor")); },_16.showDelay); }; function _1a(_1b,e){ var _1c=$.data(_1b,"tooltip"); if(_1c&&_1c.tip){ _6(_1b); _1c.hideTimer=setTimeout(function(){ _1c.tip.hide(); _1c.options.onHide.call(_1b,e); },_1c.options.hideDelay); } }; function _17(_1d,_1e){ var _1f=$.data(_1d,"tooltip"); var _20=_1f.options; if(_1e){ _20.content=_1e; } if(!_1f.tip){ return; } var cc=typeof _20.content=="function"?_20.content.call(_1d):_20.content; _1f.tip.children(".tooltip-content").html(cc); _20.onUpdate.call(_1d,cc); }; function _21(_22){ var _23=$.data(_22,"tooltip"); if(_23){ _6(_22); var _24=_23.options; if(_23.tip){ _23.tip.remove(); } if(_24._title){ $(_22).attr("title",_24._title); } $.removeData(_22,"tooltip"); $(_22).unbind(".tooltip").removeClass("tooltip-f"); _24.onDestroy.call(_22); } }; $.fn.tooltip=function(_25,_26){ if(typeof _25=="string"){ return $.fn.tooltip.methods[_25](this,_26); } _25=_25||{}; return this.each(function(){ var _27=$.data(this,"tooltip"); if(_27){ $.extend(_27.options,_25); }else{ $.data(this,"tooltip",{options:$.extend({},$.fn.tooltip.defaults,$.fn.tooltip.parseOptions(this),_25)}); _1(this); } _3(this); _17(this); }); }; $.fn.tooltip.methods={options:function(jq){ return $.data(jq[0],"tooltip").options; },tip:function(jq){ return $.data(jq[0],"tooltip").tip; },arrow:function(jq){ return jq.tooltip("tip").children(".tooltip-arrow-outer,.tooltip-arrow"); },show:function(jq,e){ return jq.each(function(){ _13(this,e); }); },hide:function(jq,e){ return jq.each(function(){ _1a(this,e); }); },update:function(jq,_28){ return jq.each(function(){ _17(this,_28); }); },reposition:function(jq){ return jq.each(function(){ _9(this); }); },destroy:function(jq){ return jq.each(function(){ _21(this); }); }}; $.fn.tooltip.parseOptions=function(_29){ var t=$(_29); var _2a=$.extend({},$.parser.parseOptions(_29,["position","showEvent","hideEvent","content",{trackMouse:"boolean",deltaX:"number",deltaY:"number",showDelay:"number",hideDelay:"number"}]),{_title:t.attr("title")}); t.attr("title",""); if(!_2a.content){ _2a.content=_2a._title; } return _2a; }; $.fn.tooltip.defaults={position:"bottom",content:null,trackMouse:false,deltaX:0,deltaY:0,showEvent:"mouseenter",hideEvent:"mouseleave",showDelay:200,hideDelay:100,onShow:function(e){ },onHide:function(e){ },onUpdate:function(_2b){ },onPosition:function(_2c,top){ },onDestroy:function(){ }}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.tree.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$(_2); _3.addClass("tree"); return _3; }; function _4(_5){ var _6=$.data(_5,"tree").options; $(_5).unbind().bind("mouseover",function(e){ var tt=$(e.target); var _7=tt.closest("div.tree-node"); if(!_7.length){ return; } _7.addClass("tree-node-hover"); if(tt.hasClass("tree-hit")){ if(tt.hasClass("tree-expanded")){ tt.addClass("tree-expanded-hover"); }else{ tt.addClass("tree-collapsed-hover"); } } e.stopPropagation(); }).bind("mouseout",function(e){ var tt=$(e.target); var _8=tt.closest("div.tree-node"); if(!_8.length){ return; } _8.removeClass("tree-node-hover"); if(tt.hasClass("tree-hit")){ if(tt.hasClass("tree-expanded")){ tt.removeClass("tree-expanded-hover"); }else{ tt.removeClass("tree-collapsed-hover"); } } e.stopPropagation(); }).bind("click",function(e){ var tt=$(e.target); var _9=tt.closest("div.tree-node"); if(!_9.length){ return; } if(tt.hasClass("tree-hit")){ _81(_5,_9[0]); return false; }else{ if(tt.hasClass("tree-checkbox")){ _34(_5,_9[0],!tt.hasClass("tree-checkbox1")); return false; }else{ _db(_5,_9[0]); _6.onClick.call(_5,_c(_5,_9[0])); } } e.stopPropagation(); }).bind("dblclick",function(e){ var _a=$(e.target).closest("div.tree-node"); if(!_a.length){ return; } _db(_5,_a[0]); _6.onDblClick.call(_5,_c(_5,_a[0])); e.stopPropagation(); }).bind("contextmenu",function(e){ var _b=$(e.target).closest("div.tree-node"); if(!_b.length){ return; } _6.onContextMenu.call(_5,e,_c(_5,_b[0])); e.stopPropagation(); }); }; function _d(_e){ var _f=$.data(_e,"tree").options; _f.dnd=false; var _10=$(_e).find("div.tree-node"); _10.draggable("disable"); _10.css("cursor","pointer"); }; function _11(_12){ var _13=$.data(_12,"tree"); var _14=_13.options; var _15=_13.tree; _13.disabledNodes=[]; _14.dnd=true; _15.find("div.tree-node").draggable({disabled:false,revert:true,cursor:"pointer",proxy:function(_16){ var p=$("
                                          ").appendTo("body"); p.html(" "+$(_16).find(".tree-title").html()); p.hide(); return p; },deltaX:15,deltaY:15,onBeforeDrag:function(e){ if(_14.onBeforeDrag.call(_12,_c(_12,this))==false){ return false; } if($(e.target).hasClass("tree-hit")||$(e.target).hasClass("tree-checkbox")){ return false; } if(e.which!=1){ return false; } $(this).next("ul").find("div.tree-node").droppable({accept:"no-accept"}); var _17=$(this).find("span.tree-indent"); if(_17.length){ e.data.offsetWidth-=_17.length*_17.width(); } },onStartDrag:function(){ $(this).draggable("proxy").css({left:-10000,top:-10000}); _14.onStartDrag.call(_12,_c(_12,this)); var _18=_c(_12,this); if(_18.id==undefined){ _18.id="easyui_tree_node_id_temp"; _56(_12,_18); } _13.draggingNodeId=_18.id; },onDrag:function(e){ var x1=e.pageX,y1=e.pageY,x2=e.data.startX,y2=e.data.startY; var d=Math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)); if(d>3){ $(this).draggable("proxy").show(); } this.pageY=e.pageY; },onStopDrag:function(){ $(this).next("ul").find("div.tree-node").droppable({accept:"div.tree-node"}); for(var i=0;i<_13.disabledNodes.length;i++){ $(_13.disabledNodes[i]).droppable("enable"); } _13.disabledNodes=[]; var _19=_ce(_12,_13.draggingNodeId); if(_19&&_19.id=="easyui_tree_node_id_temp"){ _19.id=""; _56(_12,_19); } _14.onStopDrag.call(_12,_19); }}).droppable({accept:"div.tree-node",onDragEnter:function(e,_1a){ if(_14.onDragEnter.call(_12,this,_1b(_1a))==false){ _1c(_1a,false); $(this).removeClass("tree-node-append tree-node-top tree-node-bottom"); $(this).droppable("disable"); _13.disabledNodes.push(this); } },onDragOver:function(e,_1d){ if($(this).droppable("options").disabled){ return; } var _1e=_1d.pageY; var top=$(this).offset().top; var _1f=top+$(this).outerHeight(); _1c(_1d,true); $(this).removeClass("tree-node-append tree-node-top tree-node-bottom"); if(_1e>top+(_1f-top)/2){ if(_1f-_1e<5){ $(this).addClass("tree-node-bottom"); }else{ $(this).addClass("tree-node-append"); } }else{ if(_1e-top<5){ $(this).addClass("tree-node-top"); }else{ $(this).addClass("tree-node-append"); } } if(_14.onDragOver.call(_12,this,_1b(_1d))==false){ _1c(_1d,false); $(this).removeClass("tree-node-append tree-node-top tree-node-bottom"); $(this).droppable("disable"); _13.disabledNodes.push(this); } },onDragLeave:function(e,_20){ _1c(_20,false); $(this).removeClass("tree-node-append tree-node-top tree-node-bottom"); _14.onDragLeave.call(_12,this,_1b(_20)); },onDrop:function(e,_21){ var _22=this; var _23,_24; if($(this).hasClass("tree-node-append")){ _23=_25; _24="append"; }else{ _23=_26; _24=$(this).hasClass("tree-node-top")?"top":"bottom"; } if(_14.onBeforeDrop.call(_12,_22,_1b(_21),_24)==false){ $(this).removeClass("tree-node-append tree-node-top tree-node-bottom"); return; } _23(_21,_22,_24); $(this).removeClass("tree-node-append tree-node-top tree-node-bottom"); }}); function _1b(_27,pop){ return $(_27).closest("ul.tree").tree(pop?"pop":"getData",_27); }; function _1c(_28,_29){ var _2a=$(_28).draggable("proxy").find("span.tree-dnd-icon"); _2a.removeClass("tree-dnd-yes tree-dnd-no").addClass(_29?"tree-dnd-yes":"tree-dnd-no"); }; function _25(_2b,_2c){ if(_c(_12,_2c).state=="closed"){ _75(_12,_2c,function(){ _2d(); }); }else{ _2d(); } function _2d(){ var _2e=_1b(_2b,true); $(_12).tree("append",{parent:_2c,data:[_2e]}); _14.onDrop.call(_12,_2c,_2e,"append"); }; }; function _26(_2f,_30,_31){ var _32={}; if(_31=="top"){ _32.before=_30; }else{ _32.after=_30; } var _33=_1b(_2f,true); _32.data=_33; $(_12).tree("insert",_32); _14.onDrop.call(_12,_30,_33,_31); }; }; function _34(_35,_36,_37){ var _38=$.data(_35,"tree").options; if(!_38.checkbox){ return; } var _39=_c(_35,_36); if(_38.onBeforeCheck.call(_35,_39,_37)==false){ return; } var _3a=$(_36); var ck=_3a.find(".tree-checkbox"); ck.removeClass("tree-checkbox0 tree-checkbox1 tree-checkbox2"); if(_37){ ck.addClass("tree-checkbox1"); }else{ ck.addClass("tree-checkbox0"); } if(_38.cascadeCheck){ _3b(_3a); _3c(_3a); } _38.onCheck.call(_35,_39,_37); function _3c(_3d){ var _3e=_3d.next().find(".tree-checkbox"); _3e.removeClass("tree-checkbox0 tree-checkbox1 tree-checkbox2"); if(_3d.find(".tree-checkbox").hasClass("tree-checkbox1")){ _3e.addClass("tree-checkbox1"); }else{ _3e.addClass("tree-checkbox0"); } }; function _3b(_3f){ var _40=_8c(_35,_3f[0]); if(_40){ var ck=$(_40.target).find(".tree-checkbox"); ck.removeClass("tree-checkbox0 tree-checkbox1 tree-checkbox2"); if(_41(_3f)){ ck.addClass("tree-checkbox1"); }else{ if(_42(_3f)){ ck.addClass("tree-checkbox0"); }else{ ck.addClass("tree-checkbox2"); } } _3b($(_40.target)); } function _41(n){ var ck=n.find(".tree-checkbox"); if(ck.hasClass("tree-checkbox0")||ck.hasClass("tree-checkbox2")){ return false; } var b=true; n.parent().siblings().each(function(){ if(!$(this).children("div.tree-node").children(".tree-checkbox").hasClass("tree-checkbox1")){ b=false; } }); return b; }; function _42(n){ var ck=n.find(".tree-checkbox"); if(ck.hasClass("tree-checkbox1")||ck.hasClass("tree-checkbox2")){ return false; } var b=true; n.parent().siblings().each(function(){ if(!$(this).children("div.tree-node").children(".tree-checkbox").hasClass("tree-checkbox0")){ b=false; } }); return b; }; }; }; function _43(_44,_45){ var _46=$.data(_44,"tree").options; if(!_46.checkbox){ return; } var _47=$(_45); if(_48(_44,_45)){ var ck=_47.find(".tree-checkbox"); if(ck.length){ if(ck.hasClass("tree-checkbox1")){ _34(_44,_45,true); }else{ _34(_44,_45,false); } }else{ if(_46.onlyLeafCheck){ $("").insertBefore(_47.find(".tree-title")); } } }else{ var ck=_47.find(".tree-checkbox"); if(_46.onlyLeafCheck){ ck.remove(); }else{ if(ck.hasClass("tree-checkbox1")){ _34(_44,_45,true); }else{ if(ck.hasClass("tree-checkbox2")){ var _49=true; var _4a=true; var _4b=_4c(_44,_45); for(var i=0;i<_4b.length;i++){ if(_4b[i].checked){ _4a=false; }else{ _49=false; } } if(_49){ _34(_44,_45,true); } if(_4a){ _34(_44,_45,false); } } } } } }; function _4d(_4e,ul,_4f,_50){ var _51=$.data(_4e,"tree"); var _52=_51.options; var _53=$(ul).prevAll("div.tree-node:first"); _4f=_52.loadFilter.call(_4e,_4f,_53[0]); var _54=_55(_4e,"domId",_53.attr("id")); if(!_50){ _54?_54.children=_4f:_51.data=_4f; $(ul).empty(); }else{ if(_54){ _54.children?_54.children=_54.children.concat(_4f):_54.children=_4f; }else{ _51.data=_51.data.concat(_4f); } } _52.view.render.call(_52.view,_4e,ul,_4f); if(_52.dnd){ _11(_4e); } if(_54){ _56(_4e,_54); } var _57=[]; var _58=[]; for(var i=0;i<_4f.length;i++){ var _59=_4f[i]; if(!_59.checked){ _57.push(_59); } } _5a(_4f,function(_5b){ if(_5b.checked){ _58.push(_5b); } }); var _5c=_52.onCheck; _52.onCheck=function(){ }; if(_57.length){ _34(_4e,$("#"+_57[0].domId)[0],false); } for(var i=0;i<_58.length;i++){ _34(_4e,$("#"+_58[i].domId)[0],true); } _52.onCheck=_5c; setTimeout(function(){ _5d(_4e,_4e); },0); _52.onLoadSuccess.call(_4e,_54,_4f); }; function _5d(_5e,ul,_5f){ var _60=$.data(_5e,"tree").options; if(_60.lines){ $(_5e).addClass("tree-lines"); }else{ $(_5e).removeClass("tree-lines"); return; } if(!_5f){ _5f=true; $(_5e).find("span.tree-indent").removeClass("tree-line tree-join tree-joinbottom"); $(_5e).find("div.tree-node").removeClass("tree-node-last tree-root-first tree-root-one"); var _61=$(_5e).tree("getRoots"); if(_61.length>1){ $(_61[0].target).addClass("tree-root-first"); }else{ if(_61.length==1){ $(_61[0].target).addClass("tree-root-one"); } } } $(ul).children("li").each(function(){ var _62=$(this).children("div.tree-node"); var ul=_62.next("ul"); if(ul.length){ if($(this).next().length){ _63(_62); } _5d(_5e,ul,_5f); }else{ _64(_62); } }); var _65=$(ul).children("li:last").children("div.tree-node").addClass("tree-node-last"); _65.children("span.tree-join").removeClass("tree-join").addClass("tree-joinbottom"); function _64(_66,_67){ var _68=_66.find("span.tree-icon"); _68.prev("span.tree-indent").addClass("tree-join"); }; function _63(_69){ var _6a=_69.find("span.tree-indent, span.tree-hit").length; _69.next().find("div.tree-node").each(function(){ $(this).children("span:eq("+(_6a-1)+")").addClass("tree-line"); }); }; }; function _6b(_6c,ul,_6d,_6e){ var _6f=$.data(_6c,"tree").options; _6d=$.extend({},_6f.queryParams,_6d||{}); var _70=null; if(_6c!=ul){ var _71=$(ul).prev(); _70=_c(_6c,_71[0]); } if(_6f.onBeforeLoad.call(_6c,_70,_6d)==false){ return; } var _72=$(ul).prev().children("span.tree-folder"); _72.addClass("tree-loading"); var _73=_6f.loader.call(_6c,_6d,function(_74){ _72.removeClass("tree-loading"); _4d(_6c,ul,_74); if(_6e){ _6e(); } },function(){ _72.removeClass("tree-loading"); _6f.onLoadError.apply(_6c,arguments); if(_6e){ _6e(); } }); if(_73==false){ _72.removeClass("tree-loading"); } }; function _75(_76,_77,_78){ var _79=$.data(_76,"tree").options; var hit=$(_77).children("span.tree-hit"); if(hit.length==0){ return; } if(hit.hasClass("tree-expanded")){ return; } var _7a=_c(_76,_77); if(_79.onBeforeExpand.call(_76,_7a)==false){ return; } hit.removeClass("tree-collapsed tree-collapsed-hover").addClass("tree-expanded"); hit.next().addClass("tree-folder-open"); var ul=$(_77).next(); if(ul.length){ if(_79.animate){ ul.slideDown("normal",function(){ _7a.state="open"; _79.onExpand.call(_76,_7a); if(_78){ _78(); } }); }else{ ul.css("display","block"); _7a.state="open"; _79.onExpand.call(_76,_7a); if(_78){ _78(); } } }else{ var _7b=$("
                                            ").insertAfter(_77); _6b(_76,_7b[0],{id:_7a.id},function(){ if(_7b.is(":empty")){ _7b.remove(); } if(_79.animate){ _7b.slideDown("normal",function(){ _7a.state="open"; _79.onExpand.call(_76,_7a); if(_78){ _78(); } }); }else{ _7b.css("display","block"); _7a.state="open"; _79.onExpand.call(_76,_7a); if(_78){ _78(); } } }); } }; function _7c(_7d,_7e){ var _7f=$.data(_7d,"tree").options; var hit=$(_7e).children("span.tree-hit"); if(hit.length==0){ return; } if(hit.hasClass("tree-collapsed")){ return; } var _80=_c(_7d,_7e); if(_7f.onBeforeCollapse.call(_7d,_80)==false){ return; } hit.removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed"); hit.next().removeClass("tree-folder-open"); var ul=$(_7e).next(); if(_7f.animate){ ul.slideUp("normal",function(){ _80.state="closed"; _7f.onCollapse.call(_7d,_80); }); }else{ ul.css("display","none"); _80.state="closed"; _7f.onCollapse.call(_7d,_80); } }; function _81(_82,_83){ var hit=$(_83).children("span.tree-hit"); if(hit.length==0){ return; } if(hit.hasClass("tree-expanded")){ _7c(_82,_83); }else{ _75(_82,_83); } }; function _84(_85,_86){ var _87=_4c(_85,_86); if(_86){ _87.unshift(_c(_85,_86)); } for(var i=0;i<_87.length;i++){ _75(_85,_87[i].target); } }; function _88(_89,_8a){ var _8b=[]; var p=_8c(_89,_8a); while(p){ _8b.unshift(p); p=_8c(_89,p.target); } for(var i=0;i<_8b.length;i++){ _75(_89,_8b[i].target); } }; function _8d(_8e,_8f){ var c=$(_8e).parent(); while(c[0].tagName!="BODY"&&c.css("overflow-y")!="auto"){ c=c.parent(); } var n=$(_8f); var _90=n.offset().top; if(c[0].tagName!="BODY"){ var _91=c.offset().top; if(_90<_91){ c.scrollTop(c.scrollTop()+_90-_91); }else{ if(_90+n.outerHeight()>_91+c.outerHeight()-18){ c.scrollTop(c.scrollTop()+_90+n.outerHeight()-_91-c.outerHeight()+18); } } }else{ c.scrollTop(_90); } }; function _92(_93,_94){ var _95=_4c(_93,_94); if(_94){ _95.unshift(_c(_93,_94)); } for(var i=0;i<_95.length;i++){ _7c(_93,_95[i].target); } }; function _96(_97,_98){ var _99=$(_98.parent); var _9a=_98.data; if(!_9a){ return; } _9a=$.isArray(_9a)?_9a:[_9a]; if(!_9a.length){ return; } var ul; if(_99.length==0){ ul=$(_97); }else{ if(_48(_97,_99[0])){ var _9b=_99.find("span.tree-icon"); _9b.removeClass("tree-file").addClass("tree-folder tree-folder-open"); var hit=$("").insertBefore(_9b); if(hit.prev().length){ hit.prev().remove(); } } ul=_99.next(); if(!ul.length){ ul=$("
                                              ").insertAfter(_99); } } _4d(_97,ul[0],_9a,true); _43(_97,ul.prev()); }; function _9c(_9d,_9e){ var ref=_9e.before||_9e.after; var _9f=_8c(_9d,ref); var _a0=_9e.data; if(!_a0){ return; } _a0=$.isArray(_a0)?_a0:[_a0]; if(!_a0.length){ return; } _96(_9d,{parent:(_9f?_9f.target:null),data:_a0}); var _a1=_9f?_9f.children:$(_9d).tree("getRoots"); for(var i=0;i<_a1.length;i++){ if(_a1[i].domId==$(ref).attr("id")){ for(var j=_a0.length-1;j>=0;j--){ _a1.splice((_9e.before?i:(i+1)),0,_a0[j]); } _a1.splice(_a1.length-_a0.length,_a0.length); break; } } var li=$(); for(var i=0;i<_a0.length;i++){ li=li.add($("#"+_a0[i].domId).parent()); } if(_9e.before){ li.insertBefore($(ref).parent()); }else{ li.insertAfter($(ref).parent()); } }; function _a2(_a3,_a4){ var _a5=del(_a4); $(_a4).parent().remove(); if(_a5){ if(!_a5.children||!_a5.children.length){ var _a6=$(_a5.target); _a6.find(".tree-icon").removeClass("tree-folder").addClass("tree-file"); _a6.find(".tree-hit").remove(); $("").prependTo(_a6); _a6.next().remove(); } _56(_a3,_a5); _43(_a3,_a5.target); } _5d(_a3,_a3); function del(_a7){ var id=$(_a7).attr("id"); var _a8=_8c(_a3,_a7); var cc=_a8?_a8.children:$.data(_a3,"tree").data; for(var i=0;i=0;i--){ _d9.unshift(_da.children[i]); } } } }; function _db(_dc,_dd){ var _de=$.data(_dc,"tree").options; var _df=_c(_dc,_dd); if(_de.onBeforeSelect.call(_dc,_df)==false){ return; } $(_dc).find("div.tree-node-selected").removeClass("tree-node-selected"); $(_dd).addClass("tree-node-selected"); _de.onSelect.call(_dc,_df); }; function _48(_e0,_e1){ return $(_e1).children("span.tree-hit").length==0; }; function _e2(_e3,_e4){ var _e5=$.data(_e3,"tree").options; var _e6=_c(_e3,_e4); if(_e5.onBeforeEdit.call(_e3,_e6)==false){ return; } $(_e4).css("position","relative"); var nt=$(_e4).find(".tree-title"); var _e7=nt.outerWidth(); nt.empty(); var _e8=$("").appendTo(nt); _e8.val(_e6.text).focus(); _e8.width(_e7+20); _e8.height(document.compatMode=="CSS1Compat"?(18-(_e8.outerHeight()-_e8.height())):18); _e8.bind("click",function(e){ return false; }).bind("mousedown",function(e){ e.stopPropagation(); }).bind("mousemove",function(e){ e.stopPropagation(); }).bind("keydown",function(e){ if(e.keyCode==13){ _e9(_e3,_e4); return false; }else{ if(e.keyCode==27){ _ef(_e3,_e4); return false; } } }).bind("blur",function(e){ e.stopPropagation(); _e9(_e3,_e4); }); }; function _e9(_ea,_eb){ var _ec=$.data(_ea,"tree").options; $(_eb).css("position",""); var _ed=$(_eb).find("input.tree-editor"); var val=_ed.val(); _ed.remove(); var _ee=_c(_ea,_eb); _ee.text=val; _56(_ea,_ee); _ec.onAfterEdit.call(_ea,_ee); }; function _ef(_f0,_f1){ var _f2=$.data(_f0,"tree").options; $(_f1).css("position",""); $(_f1).find("input.tree-editor").remove(); var _f3=_c(_f0,_f1); _56(_f0,_f3); _f2.onCancelEdit.call(_f0,_f3); }; $.fn.tree=function(_f4,_f5){ if(typeof _f4=="string"){ return $.fn.tree.methods[_f4](this,_f5); } var _f4=_f4||{}; return this.each(function(){ var _f6=$.data(this,"tree"); var _f7; if(_f6){ _f7=$.extend(_f6.options,_f4); _f6.options=_f7; }else{ _f7=$.extend({},$.fn.tree.defaults,$.fn.tree.parseOptions(this),_f4); $.data(this,"tree",{options:_f7,tree:_1(this),data:[]}); var _f8=$.fn.tree.parseData(this); if(_f8.length){ _4d(this,this,_f8); } } _4(this); if(_f7.data){ _4d(this,this,$.extend(true,[],_f7.data)); } _6b(this,this); }); }; $.fn.tree.methods={options:function(jq){ return $.data(jq[0],"tree").options; },loadData:function(jq,_f9){ return jq.each(function(){ _4d(this,this,_f9); }); },getNode:function(jq,_fa){ return _c(jq[0],_fa); },getData:function(jq,_fb){ return _c7(jq[0],_fb); },reload:function(jq,_fc){ return jq.each(function(){ if(_fc){ var _fd=$(_fc); var hit=_fd.children("span.tree-hit"); hit.removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed"); _fd.next().remove(); _75(this,_fc); }else{ $(this).empty(); _6b(this,this); } }); },getRoot:function(jq,_fe){ return _af(jq[0],_fe); },getRoots:function(jq){ return _b3(jq[0]); },getParent:function(jq,_ff){ return _8c(jq[0],_ff); },getChildren:function(jq,_100){ return _4c(jq[0],_100); },getChecked:function(jq,_101){ return _be(jq[0],_101); },getSelected:function(jq){ return _c4(jq[0]); },isLeaf:function(jq,_102){ return _48(jq[0],_102); },find:function(jq,id){ return _ce(jq[0],id); },select:function(jq,_103){ return jq.each(function(){ _db(this,_103); }); },check:function(jq,_104){ return jq.each(function(){ _34(this,_104,true); }); },uncheck:function(jq,_105){ return jq.each(function(){ _34(this,_105,false); }); },collapse:function(jq,_106){ return jq.each(function(){ _7c(this,_106); }); },expand:function(jq,_107){ return jq.each(function(){ _75(this,_107); }); },collapseAll:function(jq,_108){ return jq.each(function(){ _92(this,_108); }); },expandAll:function(jq,_109){ return jq.each(function(){ _84(this,_109); }); },expandTo:function(jq,_10a){ return jq.each(function(){ _88(this,_10a); }); },scrollTo:function(jq,_10b){ return jq.each(function(){ _8d(this,_10b); }); },toggle:function(jq,_10c){ return jq.each(function(){ _81(this,_10c); }); },append:function(jq,_10d){ return jq.each(function(){ _96(this,_10d); }); },insert:function(jq,_10e){ return jq.each(function(){ _9c(this,_10e); }); },remove:function(jq,_10f){ return jq.each(function(){ _a2(this,_10f); }); },pop:function(jq,_110){ var node=jq.tree("getData",_110); jq.tree("remove",_110); return node; },update:function(jq,_111){ return jq.each(function(){ _56(this,_111); }); },enableDnd:function(jq){ return jq.each(function(){ _11(this); }); },disableDnd:function(jq){ return jq.each(function(){ _d(this); }); },beginEdit:function(jq,_112){ return jq.each(function(){ _e2(this,_112); }); },endEdit:function(jq,_113){ return jq.each(function(){ _e9(this,_113); }); },cancelEdit:function(jq,_114){ return jq.each(function(){ _ef(this,_114); }); }}; $.fn.tree.parseOptions=function(_115){ var t=$(_115); return $.extend({},$.parser.parseOptions(_115,["url","method",{checkbox:"boolean",cascadeCheck:"boolean",onlyLeafCheck:"boolean"},{animate:"boolean",lines:"boolean",dnd:"boolean"}])); }; $.fn.tree.parseData=function(_116){ var data=[]; _117(data,$(_116)); return data; function _117(aa,tree){ tree.children("li").each(function(){ var node=$(this); var item=$.extend({},$.parser.parseOptions(this,["id","iconCls","state"]),{checked:(node.attr("checked")?true:undefined)}); item.text=node.children("span").html(); if(!item.text){ item.text=node.html(); } var _118=node.children("ul"); if(_118.length){ item.children=[]; _117(item.children,_118); } aa.push(item); }); }; }; var _119=1; var _11a={render:function(_11b,ul,data){ var opts=$.data(_11b,"tree").options; var _11c=$(ul).prev("div.tree-node").find("span.tree-indent, span.tree-hit").length; var cc=_11d(_11c,data); $(ul).append(cc.join("")); function _11d(_11e,_11f){ var cc=[]; for(var i=0;i<_11f.length;i++){ var item=_11f[i]; if(item.state!="open"&&item.state!="closed"){ item.state="open"; } item.domId="_easyui_tree_"+_119++; cc.push("
                                            • "); cc.push("
                                              "); for(var j=0;j<_11e;j++){ cc.push(""); } var _120=false; if(item.state=="closed"){ cc.push(""); cc.push(""); }else{ if(item.children&&item.children.length){ cc.push(""); cc.push(""); }else{ cc.push(""); cc.push(""); _120=true; } } if(opts.checkbox){ if((!opts.onlyLeafCheck)||_120){ cc.push(""); } } cc.push(""+opts.formatter.call(_11b,item)+""); cc.push("
                                              "); if(item.children&&item.children.length){ var tmp=_11d(_11e+1,item.children); cc.push("
                                                "); cc=cc.concat(tmp); cc.push("
                                              "); } cc.push("
                                            • "); } return cc; }; }}; $.fn.tree.defaults={url:null,method:"post",animate:false,checkbox:false,cascadeCheck:true,onlyLeafCheck:false,lines:false,dnd:false,data:null,queryParams:{},formatter:function(node){ return node.text; },loader:function(_121,_122,_123){ var opts=$(this).tree("options"); if(!opts.url){ return false; } $.ajax({type:opts.method,url:opts.url,data:_121,dataType:"json",success:function(data){ _122(data); },error:function(){ _123.apply(this,arguments); }}); },loadFilter:function(data,_124){ return data; },view:_11a,onBeforeLoad:function(node,_125){ },onLoadSuccess:function(node,data){ },onLoadError:function(){ },onClick:function(node){ },onDblClick:function(node){ },onBeforeExpand:function(node){ },onExpand:function(node){ },onBeforeCollapse:function(node){ },onCollapse:function(node){ },onBeforeCheck:function(node,_126){ },onCheck:function(node,_127){ },onBeforeSelect:function(node){ },onSelect:function(node){ },onContextMenu:function(e,node){ },onBeforeDrag:function(node){ },onStartDrag:function(node){ },onStopDrag:function(node){ },onDragEnter:function(_128,_129){ },onDragOver:function(_12a,_12b){ },onDragLeave:function(_12c,_12d){ },onBeforeDrop:function(_12e,_12f,_130){ },onDrop:function(_131,_132,_133){ },onBeforeEdit:function(node){ },onAfterEdit:function(node){ },onCancelEdit:function(node){ }}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.treegrid.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"treegrid"); var _4=_3.options; $(_2).datagrid($.extend({},_4,{url:null,data:null,loader:function(){ return false; },onBeforeLoad:function(){ return false; },onLoadSuccess:function(){ },onResizeColumn:function(_5,_6){ _26(_2); _4.onResizeColumn.call(_2,_5,_6); },onBeforeSortColumn:function(_7,_8){ if(_4.onBeforeSortColumn.call(_2,_7,_8)==false){ return false; } },onSortColumn:function(_9,_a){ _4.sortName=_9; _4.sortOrder=_a; if(_4.remoteSort){ _25(_2); }else{ var _b=$(_2).treegrid("getData"); _3f(_2,0,_b); } _4.onSortColumn.call(_2,_9,_a); },onBeforeEdit:function(_c,_d){ if(_4.onBeforeEdit.call(_2,_d)==false){ return false; } },onAfterEdit:function(_e,_f,_10){ _4.onAfterEdit.call(_2,_f,_10); },onCancelEdit:function(_11,row){ _4.onCancelEdit.call(_2,row); },onBeforeSelect:function(_12){ if(_4.onBeforeSelect.call(_2,_47(_2,_12))==false){ return false; } },onSelect:function(_13){ _4.onSelect.call(_2,_47(_2,_13)); },onBeforeUnselect:function(_14){ if(_4.onBeforeUnselect.call(_2,_47(_2,_14))==false){ return false; } },onUnselect:function(_15){ _4.onUnselect.call(_2,_47(_2,_15)); },onBeforeCheck:function(_16){ if(_4.onBeforeCheck.call(_2,_47(_2,_16))==false){ return false; } },onCheck:function(_17){ _4.onCheck.call(_2,_47(_2,_17)); },onBeforeUncheck:function(_18){ if(_4.onBeforeUncheck.call(_2,_47(_2,_18))==false){ return false; } },onUncheck:function(_19){ _4.onUncheck.call(_2,_47(_2,_19)); },onClickRow:function(_1a){ _4.onClickRow.call(_2,_47(_2,_1a)); },onDblClickRow:function(_1b){ _4.onDblClickRow.call(_2,_47(_2,_1b)); },onClickCell:function(_1c,_1d){ _4.onClickCell.call(_2,_1d,_47(_2,_1c)); },onDblClickCell:function(_1e,_1f){ _4.onDblClickCell.call(_2,_1f,_47(_2,_1e)); },onRowContextMenu:function(e,_20){ _4.onContextMenu.call(_2,e,_47(_2,_20)); }})); if(!_4.columns){ var _21=$.data(_2,"datagrid").options; _4.columns=_21.columns; _4.frozenColumns=_21.frozenColumns; } _3.dc=$.data(_2,"datagrid").dc; if(_4.pagination){ var _22=$(_2).datagrid("getPager"); _22.pagination({pageNumber:_4.pageNumber,pageSize:_4.pageSize,pageList:_4.pageList,onSelectPage:function(_23,_24){ _4.pageNumber=_23; _4.pageSize=_24; _25(_2); }}); _4.pageSize=_22.pagination("options").pageSize; } }; function _26(_27,_28){ var _29=$.data(_27,"datagrid").options; var dc=$.data(_27,"datagrid").dc; if(!dc.body1.is(":empty")&&(!_29.nowrap||_29.autoRowHeight)){ if(_28!=undefined){ var _2a=_2b(_27,_28); for(var i=0;i<_2a.length;i++){ _2c(_2a[i][_29.idField]); } } } $(_27).datagrid("fixRowHeight",_28); function _2c(_2d){ var tr1=_29.finder.getTr(_27,_2d,"body",1); var tr2=_29.finder.getTr(_27,_2d,"body",2); tr1.css("height",""); tr2.css("height",""); var _2e=Math.max(tr1.height(),tr2.height()); tr1.css("height",_2e); tr2.css("height",_2e); }; }; function _2f(_30){ var dc=$.data(_30,"datagrid").dc; var _31=$.data(_30,"treegrid").options; if(!_31.rownumbers){ return; } dc.body1.find("div.datagrid-cell-rownumber").each(function(i){ $(this).html(i+1); }); }; function _32(_33){ return function(e){ $.fn.datagrid.defaults.rowEvents[_33?"mouseover":"mouseout"](e); var tt=$(e.target); var fn=_33?"addClass":"removeClass"; if(tt.hasClass("tree-hit")){ tt.hasClass("tree-expanded")?tt[fn]("tree-expanded-hover"):tt[fn]("tree-collapsed-hover"); } }; }; function _34(e){ var tt=$(e.target); if(tt.hasClass("tree-hit")){ var tr=tt.closest("tr.datagrid-row"); var _35=tr.closest("div.datagrid-view").children(".datagrid-f")[0]; _36(_35,tr.attr("node-id")); }else{ $.fn.datagrid.defaults.rowEvents.click(e); } }; function _37(_38,_39){ var _3a=$.data(_38,"treegrid").options; var tr1=_3a.finder.getTr(_38,_39,"body",1); var tr2=_3a.finder.getTr(_38,_39,"body",2); var _3b=$(_38).datagrid("getColumnFields",true).length+(_3a.rownumbers?1:0); var _3c=$(_38).datagrid("getColumnFields",false).length; _3d(tr1,_3b); _3d(tr2,_3c); function _3d(tr,_3e){ $(""+""+"
                                              "+""+"").insertAfter(tr); }; }; function _3f(_40,_41,_42,_43){ var _44=$.data(_40,"treegrid"); var _45=_44.options; var dc=_44.dc; _42=_45.loadFilter.call(_40,_42,_41); var _46=_47(_40,_41); if(_46){ var _48=_45.finder.getTr(_40,_41,"body",1); var _49=_45.finder.getTr(_40,_41,"body",2); var cc1=_48.next("tr.treegrid-tr-tree").children("td").children("div"); var cc2=_49.next("tr.treegrid-tr-tree").children("td").children("div"); if(!_43){ _46.children=[]; } }else{ var cc1=dc.body1; var cc2=dc.body2; if(!_43){ _44.data=[]; } } if(!_43){ cc1.empty(); cc2.empty(); } if(_45.view.onBeforeRender){ _45.view.onBeforeRender.call(_45.view,_40,_41,_42); } _45.view.render.call(_45.view,_40,cc1,true); _45.view.render.call(_45.view,_40,cc2,false); if(_45.showFooter){ _45.view.renderFooter.call(_45.view,_40,dc.footer1,true); _45.view.renderFooter.call(_45.view,_40,dc.footer2,false); } if(_45.view.onAfterRender){ _45.view.onAfterRender.call(_45.view,_40); } if(!_41&&_45.pagination){ var _4a=$.data(_40,"treegrid").total; var _4b=$(_40).datagrid("getPager"); if(_4b.pagination("options").total!=_4a){ _4b.pagination({total:_4a}); } } _26(_40); _2f(_40); $(_40).treegrid("showLines"); $(_40).treegrid("setSelectionState"); $(_40).treegrid("autoSizeColumn"); _45.onLoadSuccess.call(_40,_46,_42); }; function _25(_4c,_4d,_4e,_4f,_50){ var _51=$.data(_4c,"treegrid").options; var _52=$(_4c).datagrid("getPanel").find("div.datagrid-body"); if(_4e){ _51.queryParams=_4e; } var _53=$.extend({},_51.queryParams); if(_51.pagination){ $.extend(_53,{page:_51.pageNumber,rows:_51.pageSize}); } if(_51.sortName){ $.extend(_53,{sort:_51.sortName,order:_51.sortOrder}); } var row=_47(_4c,_4d); if(_51.onBeforeLoad.call(_4c,row,_53)==false){ return; } var _54=_52.find("tr[node-id=\""+_4d+"\"] span.tree-folder"); _54.addClass("tree-loading"); $(_4c).treegrid("loading"); var _55=_51.loader.call(_4c,_53,function(_56){ _54.removeClass("tree-loading"); $(_4c).treegrid("loaded"); _3f(_4c,_4d,_56,_4f); if(_50){ _50(); } },function(){ _54.removeClass("tree-loading"); $(_4c).treegrid("loaded"); _51.onLoadError.apply(_4c,arguments); if(_50){ _50(); } }); if(_55==false){ _54.removeClass("tree-loading"); $(_4c).treegrid("loaded"); } }; function _57(_58){ var _59=_5a(_58); if(_59.length){ return _59[0]; }else{ return null; } }; function _5a(_5b){ return $.data(_5b,"treegrid").data; }; function _5c(_5d,_5e){ var row=_47(_5d,_5e); if(row._parentId){ return _47(_5d,row._parentId); }else{ return null; } }; function _2b(_5f,_60){ var _61=$.data(_5f,"treegrid").options; var _62=$(_5f).datagrid("getPanel").find("div.datagrid-view2 div.datagrid-body"); var _63=[]; if(_60){ _64(_60); }else{ var _65=_5a(_5f); for(var i=0;i<_65.length;i++){ _63.push(_65[i]); _64(_65[i][_61.idField]); } } function _64(_66){ var _67=_47(_5f,_66); if(_67&&_67.children){ for(var i=0,len=_67.children.length;i").insertBefore(_95); if(hit.prev().length){ hit.prev().remove(); } } } _3f(_91,_92.parent,_92.data,true); }; function _96(_97,_98){ var ref=_98.before||_98.after; var _99=$.data(_97,"treegrid").options; var _9a=_5c(_97,ref); _90(_97,{parent:(_9a?_9a[_99.idField]:null),data:[_98.data]}); var _9b=_9a?_9a.children:$(_97).treegrid("getRoots"); for(var i=0;i<_9b.length;i++){ if(_9b[i][_99.idField]==ref){ var _9c=_9b[_9b.length-1]; _9b.splice(_98.before?i:(i+1),0,_9c); _9b.splice(_9b.length-1,1); break; } } _9d(true); _9d(false); _2f(_97); $(_97).treegrid("showLines"); function _9d(_9e){ var _9f=_9e?1:2; var tr=_99.finder.getTr(_97,_98.data[_99.idField],"body",_9f); var _a0=tr.closest("table.datagrid-btable"); tr=tr.parent().children(); var _a1=_99.finder.getTr(_97,ref,"body",_9f); if(_98.before){ tr.insertBefore(_a1); }else{ var sub=_a1.next("tr.treegrid-tr-tree"); tr.insertAfter(sub.length?sub:_a1); } _a0.remove(); }; }; function _a2(_a3,_a4){ var _a5=$.data(_a3,"treegrid"); $(_a3).datagrid("deleteRow",_a4); _2f(_a3); _a5.total-=1; $(_a3).datagrid("getPager").pagination("refresh",{total:_a5.total}); $(_a3).treegrid("showLines"); }; function _a6(_a7){ var t=$(_a7); var _a8=t.treegrid("options"); if(_a8.lines){ t.treegrid("getPanel").addClass("tree-lines"); }else{ t.treegrid("getPanel").removeClass("tree-lines"); return; } t.treegrid("getPanel").find("span.tree-indent").removeClass("tree-line tree-join tree-joinbottom"); t.treegrid("getPanel").find("div.datagrid-cell").removeClass("tree-node-last tree-root-first tree-root-one"); var _a9=t.treegrid("getRoots"); if(_a9.length>1){ _aa(_a9[0]).addClass("tree-root-first"); }else{ if(_a9.length==1){ _aa(_a9[0]).addClass("tree-root-one"); } } _ab(_a9); _ac(_a9); function _ab(_ad){ $.map(_ad,function(_ae){ if(_ae.children&&_ae.children.length){ _ab(_ae.children); }else{ var _af=_aa(_ae); _af.find(".tree-icon").prev().addClass("tree-join"); } }); if(_ad.length){ var _b0=_aa(_ad[_ad.length-1]); _b0.addClass("tree-node-last"); _b0.find(".tree-join").removeClass("tree-join").addClass("tree-joinbottom"); } }; function _ac(_b1){ $.map(_b1,function(_b2){ if(_b2.children&&_b2.children.length){ _ac(_b2.children); } }); for(var i=0;i<_b1.length-1;i++){ var _b3=_b1[i]; var _b4=t.treegrid("getLevel",_b3[_a8.idField]); var tr=_a8.finder.getTr(_a7,_b3[_a8.idField]); var cc=tr.next().find("tr.datagrid-row td[field=\""+_a8.treeField+"\"] div.datagrid-cell"); cc.find("span:eq("+(_b4-1)+")").addClass("tree-line"); } }; function _aa(_b5){ var tr=_a8.finder.getTr(_a7,_b5[_a8.idField]); var _b6=tr.find("td[field=\""+_a8.treeField+"\"] div.datagrid-cell"); return _b6; }; }; $.fn.treegrid=function(_b7,_b8){ if(typeof _b7=="string"){ var _b9=$.fn.treegrid.methods[_b7]; if(_b9){ return _b9(this,_b8); }else{ return this.datagrid(_b7,_b8); } } _b7=_b7||{}; return this.each(function(){ var _ba=$.data(this,"treegrid"); if(_ba){ $.extend(_ba.options,_b7); }else{ _ba=$.data(this,"treegrid",{options:$.extend({},$.fn.treegrid.defaults,$.fn.treegrid.parseOptions(this),_b7),data:[]}); } _1(this); if(_ba.options.data){ $(this).treegrid("loadData",_ba.options.data); } _25(this); }); }; $.fn.treegrid.methods={options:function(jq){ return $.data(jq[0],"treegrid").options; },resize:function(jq,_bb){ return jq.each(function(){ $(this).datagrid("resize",_bb); }); },fixRowHeight:function(jq,_bc){ return jq.each(function(){ _26(this,_bc); }); },loadData:function(jq,_bd){ return jq.each(function(){ _3f(this,_bd.parent,_bd); }); },load:function(jq,_be){ return jq.each(function(){ $(this).treegrid("options").pageNumber=1; $(this).treegrid("getPager").pagination({pageNumber:1}); $(this).treegrid("reload",_be); }); },reload:function(jq,id){ return jq.each(function(){ var _bf=$(this).treegrid("options"); var _c0={}; if(typeof id=="object"){ _c0=id; }else{ _c0=$.extend({},_bf.queryParams); _c0.id=id; } if(_c0.id){ var _c1=$(this).treegrid("find",_c0.id); if(_c1.children){ _c1.children.splice(0,_c1.children.length); } _bf.queryParams=_c0; var tr=_bf.finder.getTr(this,_c0.id); tr.next("tr.treegrid-tr-tree").remove(); tr.find("span.tree-hit").removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed"); _78(this,_c0.id); }else{ _25(this,null,_c0); } }); },reloadFooter:function(jq,_c2){ return jq.each(function(){ var _c3=$.data(this,"treegrid").options; var dc=$.data(this,"datagrid").dc; if(_c2){ $.data(this,"treegrid").footer=_c2; } if(_c3.showFooter){ _c3.view.renderFooter.call(_c3.view,this,dc.footer1,true); _c3.view.renderFooter.call(_c3.view,this,dc.footer2,false); if(_c3.view.onAfterRender){ _c3.view.onAfterRender.call(_c3.view,this); } $(this).treegrid("fixRowHeight"); } }); },getData:function(jq){ return $.data(jq[0],"treegrid").data; },getFooterRows:function(jq){ return $.data(jq[0],"treegrid").footer; },getRoot:function(jq){ return _57(jq[0]); },getRoots:function(jq){ return _5a(jq[0]); },getParent:function(jq,id){ return _5c(jq[0],id); },getChildren:function(jq,id){ return _2b(jq[0],id); },getLevel:function(jq,id){ return _69(jq[0],id); },find:function(jq,id){ return _47(jq[0],id); },isLeaf:function(jq,id){ var _c4=$.data(jq[0],"treegrid").options; var tr=_c4.finder.getTr(jq[0],id); var hit=tr.find("span.tree-hit"); return hit.length==0; },select:function(jq,id){ return jq.each(function(){ $(this).datagrid("selectRow",id); }); },unselect:function(jq,id){ return jq.each(function(){ $(this).datagrid("unselectRow",id); }); },collapse:function(jq,id){ return jq.each(function(){ _74(this,id); }); },expand:function(jq,id){ return jq.each(function(){ _78(this,id); }); },toggle:function(jq,id){ return jq.each(function(){ _36(this,id); }); },collapseAll:function(jq,id){ return jq.each(function(){ _82(this,id); }); },expandAll:function(jq,id){ return jq.each(function(){ _87(this,id); }); },expandTo:function(jq,id){ return jq.each(function(){ _8c(this,id); }); },append:function(jq,_c5){ return jq.each(function(){ _90(this,_c5); }); },insert:function(jq,_c6){ return jq.each(function(){ _96(this,_c6); }); },remove:function(jq,id){ return jq.each(function(){ _a2(this,id); }); },pop:function(jq,id){ var row=jq.treegrid("find",id); jq.treegrid("remove",id); return row; },refresh:function(jq,id){ return jq.each(function(){ var _c7=$.data(this,"treegrid").options; _c7.view.refreshRow.call(_c7.view,this,id); }); },update:function(jq,_c8){ return jq.each(function(){ var _c9=$.data(this,"treegrid").options; _c9.view.updateRow.call(_c9.view,this,_c8.id,_c8.row); }); },beginEdit:function(jq,id){ return jq.each(function(){ $(this).datagrid("beginEdit",id); $(this).treegrid("fixRowHeight",id); }); },endEdit:function(jq,id){ return jq.each(function(){ $(this).datagrid("endEdit",id); }); },cancelEdit:function(jq,id){ return jq.each(function(){ $(this).datagrid("cancelEdit",id); }); },showLines:function(jq){ return jq.each(function(){ _a6(this); }); }}; $.fn.treegrid.parseOptions=function(_ca){ return $.extend({},$.fn.datagrid.parseOptions(_ca),$.parser.parseOptions(_ca,["treeField",{animate:"boolean"}])); }; var _cb=$.extend({},$.fn.datagrid.defaults.view,{render:function(_cc,_cd,_ce){ var _cf=$.data(_cc,"treegrid").options; var _d0=$(_cc).datagrid("getColumnFields",_ce); var _d1=$.data(_cc,"datagrid").rowIdPrefix; if(_ce){ if(!(_cf.rownumbers||(_cf.frozenColumns&&_cf.frozenColumns.length))){ return; } } var _d2=this; if(this.treeNodes&&this.treeNodes.length){ var _d3=_d4(_ce,this.treeLevel,this.treeNodes); $(_cd).append(_d3.join("")); } function _d4(_d5,_d6,_d7){ var _d8=$(_cc).treegrid("getParent",_d7[0][_cf.idField]); var _d9=(_d8?_d8.children.length:$(_cc).treegrid("getRoots").length)-_d7.length; var _da=[""]; for(var i=0;i<_d7.length;i++){ var row=_d7[i]; if(row.state!="open"&&row.state!="closed"){ row.state="open"; } var css=_cf.rowStyler?_cf.rowStyler.call(_cc,row):""; var _db=""; var _dc=""; if(typeof css=="string"){ _dc=css; }else{ if(css){ _db=css["class"]||""; _dc=css["style"]||""; } } var cls="class=\"datagrid-row "+(_d9++%2&&_cf.striped?"datagrid-row-alt ":" ")+_db+"\""; var _dd=_dc?"style=\""+_dc+"\"":""; var _de=_d1+"-"+(_d5?1:2)+"-"+row[_cf.idField]; _da.push(""); _da=_da.concat(_d2.renderRow.call(_d2,_cc,_d0,_d5,_d6,row)); _da.push(""); if(row.children&&row.children.length){ var tt=_d4(_d5,_d6+1,row.children); var v=row.state=="closed"?"none":"block"; _da.push(""); } } _da.push("
                                              "); _da=_da.concat(tt); _da.push("
                                              "); return _da; }; },renderFooter:function(_df,_e0,_e1){ var _e2=$.data(_df,"treegrid").options; var _e3=$.data(_df,"treegrid").footer||[]; var _e4=$(_df).datagrid("getColumnFields",_e1); var _e5=[""]; for(var i=0;i<_e3.length;i++){ var row=_e3[i]; row[_e2.idField]=row[_e2.idField]||("foot-row-id"+i); _e5.push(""); _e5.push(this.renderRow.call(this,_df,_e4,_e1,0,row)); _e5.push(""); } _e5.push("
                                              "); $(_e0).html(_e5.join("")); },renderRow:function(_e6,_e7,_e8,_e9,row){ var _ea=$.data(_e6,"treegrid").options; var cc=[]; if(_e8&&_ea.rownumbers){ cc.push("
                                              0
                                              "); } for(var i=0;i<_e7.length;i++){ var _eb=_e7[i]; var col=$(_e6).datagrid("getColumnOption",_eb); if(col){ var css=col.styler?(col.styler(row[_eb],row)||""):""; var _ec=""; var _ed=""; if(typeof css=="string"){ _ed=css; }else{ if(cc){ _ec=css["class"]||""; _ed=css["style"]||""; } } var cls=_ec?"class=\""+_ec+"\"":""; var _ee=col.hidden?"style=\"display:none;"+_ed+"\"":(_ed?"style=\""+_ed+"\"":""); cc.push(""); var _ee=""; if(!col.checkbox){ if(col.align){ _ee+="text-align:"+col.align+";"; } if(!_ea.nowrap){ _ee+="white-space:normal;height:auto;"; }else{ if(_ea.autoRowHeight){ _ee+="height:auto;"; } } } cc.push("
                                              "); if(col.checkbox){ if(row.checked){ cc.push(""); }else{ var val=null; if(col.formatter){ val=col.formatter(row[_eb],row); }else{ val=row[_eb]; } if(_eb==_ea.treeField){ for(var j=0;j<_e9;j++){ cc.push(""); } if(row.state=="closed"){ cc.push(""); cc.push(""); }else{ if(row.children&&row.children.length){ cc.push(""); cc.push(""); }else{ cc.push(""); cc.push(""); } } cc.push(""+val+""); }else{ cc.push(val); } } cc.push("
                                              "); cc.push(""); } } return cc.join(""); },refreshRow:function(_ef,id){ this.updateRow.call(this,_ef,id,{}); },updateRow:function(_f0,id,row){ var _f1=$.data(_f0,"treegrid").options; var _f2=$(_f0).treegrid("find",id); $.extend(_f2,row); var _f3=$(_f0).treegrid("getLevel",id)-1; var _f4=_f1.rowStyler?_f1.rowStyler.call(_f0,_f2):""; var _f5=$.data(_f0,"datagrid").rowIdPrefix; var _f6=_f2[_f1.idField]; function _f7(_f8){ var _f9=$(_f0).treegrid("getColumnFields",_f8); var tr=_f1.finder.getTr(_f0,id,"body",(_f8?1:2)); var _fa=tr.find("div.datagrid-cell-rownumber").html(); var _fb=tr.find("div.datagrid-cell-check input[type=checkbox]").is(":checked"); tr.html(this.renderRow(_f0,_f9,_f8,_f3,_f2)); tr.attr("style",_f4||""); tr.find("div.datagrid-cell-rownumber").html(_fa); if(_fb){ tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked",true); } if(_f6!=id){ tr.attr("id",_f5+"-"+(_f8?1:2)+"-"+_f6); tr.attr("node-id",_f6); } }; _f7.call(this,true); _f7.call(this,false); $(_f0).treegrid("fixRowHeight",id); },deleteRow:function(_fc,id){ var _fd=$.data(_fc,"treegrid").options; var tr=_fd.finder.getTr(_fc,id); tr.next("tr.treegrid-tr-tree").remove(); tr.remove(); var _fe=del(id); if(_fe){ if(_fe.children.length==0){ tr=_fd.finder.getTr(_fc,_fe[_fd.idField]); tr.next("tr.treegrid-tr-tree").remove(); var _ff=tr.children("td[field=\""+_fd.treeField+"\"]").children("div.datagrid-cell"); _ff.find(".tree-icon").removeClass("tree-folder").addClass("tree-file"); _ff.find(".tree-hit").remove(); $("").prependTo(_ff); } } function del(id){ var cc; var _100=$(_fc).treegrid("getParent",id); if(_100){ cc=_100.children; }else{ cc=$(_fc).treegrid("getData"); } for(var i=0;ib?1:-1); }; r=_10b(r1[sn],r2[sn])*(so=="asc"?1:-1); if(r!=0){ return r; } } return r; }); for(var i=0;i=_3d[0]&&len<=_3d[1]; },message:"Please enter a value between {0} and {1}."},remote:{validator:function(_3e,_3f){ var _40={}; _40[_3f[1]]=_3e; var _41=$.ajax({url:_3f[0],dataType:"json",data:_40,async:false,cache:false,type:"post"}).responseText; return _41=="true"; },message:"Please fix this field."}},onBeforeValidate:function(){ },onValidate:function(_42){ }}; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.window.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2,_3){ var _4=$.data(_2,"window"); if(_3){ if(_3.left!=null){ _4.options.left=_3.left; } if(_3.top!=null){ _4.options.top=_3.top; } } $(_2).panel("move",_4.options); if(_4.shadow){ _4.shadow.css({left:_4.options.left,top:_4.options.top}); } }; function _5(_6,_7){ var _8=$.data(_6,"window").options; var pp=$(_6).window("panel"); var _9=pp._outerWidth(); if(_8.inline){ var _a=pp.parent(); _8.left=Math.ceil((_a.width()-_9)/2+_a.scrollLeft()); }else{ _8.left=Math.ceil(($(window)._outerWidth()-_9)/2+$(document).scrollLeft()); } if(_7){ _1(_6); } }; function _b(_c,_d){ var _e=$.data(_c,"window").options; var pp=$(_c).window("panel"); var _f=pp._outerHeight(); if(_e.inline){ var _10=pp.parent(); _e.top=Math.ceil((_10.height()-_f)/2+_10.scrollTop()); }else{ _e.top=Math.ceil(($(window)._outerHeight()-_f)/2+$(document).scrollTop()); } if(_d){ _1(_c); } }; function _11(_12){ var _13=$.data(_12,"window"); var _14=_13.options; var win=$(_12).panel($.extend({},_13.options,{border:false,doSize:true,closed:true,cls:"window",headerCls:"window-header",bodyCls:"window-body "+(_14.noheader?"window-body-noheader":""),onBeforeDestroy:function(){ if(_14.onBeforeDestroy.call(_12)==false){ return false; } if(_13.shadow){ _13.shadow.remove(); } if(_13.mask){ _13.mask.remove(); } },onClose:function(){ if(_13.shadow){ _13.shadow.hide(); } if(_13.mask){ _13.mask.hide(); } _14.onClose.call(_12); },onOpen:function(){ if(_13.mask){ _13.mask.css({display:"block",zIndex:$.fn.window.defaults.zIndex++}); } if(_13.shadow){ _13.shadow.css({display:"block",zIndex:$.fn.window.defaults.zIndex++,left:_14.left,top:_14.top,width:_13.window._outerWidth(),height:_13.window._outerHeight()}); } _13.window.css("z-index",$.fn.window.defaults.zIndex++); _14.onOpen.call(_12); },onResize:function(_15,_16){ var _17=$(this).panel("options"); $.extend(_14,{width:_17.width,height:_17.height,left:_17.left,top:_17.top}); if(_13.shadow){ _13.shadow.css({left:_14.left,top:_14.top,width:_13.window._outerWidth(),height:_13.window._outerHeight()}); } _14.onResize.call(_12,_15,_16); },onMinimize:function(){ if(_13.shadow){ _13.shadow.hide(); } if(_13.mask){ _13.mask.hide(); } _13.options.onMinimize.call(_12); },onBeforeCollapse:function(){ if(_14.onBeforeCollapse.call(_12)==false){ return false; } if(_13.shadow){ _13.shadow.hide(); } },onExpand:function(){ if(_13.shadow){ _13.shadow.show(); } _14.onExpand.call(_12); }})); _13.window=win.panel("panel"); if(_13.mask){ _13.mask.remove(); } if(_14.modal==true){ _13.mask=$("
                                              ").insertAfter(_13.window); _13.mask.css({width:(_14.inline?_13.mask.parent().width():_18().width),height:(_14.inline?_13.mask.parent().height():_18().height),display:"none"}); } if(_13.shadow){ _13.shadow.remove(); } if(_14.shadow==true){ _13.shadow=$("
                                              ").insertAfter(_13.window); _13.shadow.css({display:"none"}); } if(_14.left==null){ _5(_12); } if(_14.top==null){ _b(_12); } _1(_12); if(!_14.closed){ win.window("open"); } }; function _19(_1a){ var _1b=$.data(_1a,"window"); _1b.window.draggable({handle:">div.panel-header>div.panel-title",disabled:_1b.options.draggable==false,onStartDrag:function(e){ if(_1b.mask){ _1b.mask.css("z-index",$.fn.window.defaults.zIndex++); } if(_1b.shadow){ _1b.shadow.css("z-index",$.fn.window.defaults.zIndex++); } _1b.window.css("z-index",$.fn.window.defaults.zIndex++); if(!_1b.proxy){ _1b.proxy=$("
                                              ").insertAfter(_1b.window); } _1b.proxy.css({display:"none",zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top}); _1b.proxy._outerWidth(_1b.window._outerWidth()); _1b.proxy._outerHeight(_1b.window._outerHeight()); setTimeout(function(){ if(_1b.proxy){ _1b.proxy.show(); } },500); },onDrag:function(e){ _1b.proxy.css({display:"block",left:e.data.left,top:e.data.top}); return false; },onStopDrag:function(e){ _1b.options.left=e.data.left; _1b.options.top=e.data.top; $(_1a).window("move"); _1b.proxy.remove(); _1b.proxy=null; }}); _1b.window.resizable({disabled:_1b.options.resizable==false,onStartResize:function(e){ if(_1b.pmask){ _1b.pmask.remove(); } _1b.pmask=$("
                                              ").insertAfter(_1b.window); _1b.pmask.css({zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top,width:_1b.window._outerWidth(),height:_1b.window._outerHeight()}); if(_1b.proxy){ _1b.proxy.remove(); } _1b.proxy=$("
                                              ").insertAfter(_1b.window); _1b.proxy.css({zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top}); _1b.proxy._outerWidth(e.data.width)._outerHeight(e.data.height); },onResize:function(e){ _1b.proxy.css({left:e.data.left,top:e.data.top}); _1b.proxy._outerWidth(e.data.width); _1b.proxy._outerHeight(e.data.height); return false; },onStopResize:function(e){ $(_1a).window("resize",e.data); _1b.pmask.remove(); _1b.pmask=null; _1b.proxy.remove(); _1b.proxy=null; }}); }; function _18(){ if(document.compatMode=="BackCompat"){ return {width:Math.max(document.body.scrollWidth,document.body.clientWidth),height:Math.max(document.body.scrollHeight,document.body.clientHeight)}; }else{ return {width:Math.max(document.documentElement.scrollWidth,document.documentElement.clientWidth),height:Math.max(document.documentElement.scrollHeight,document.documentElement.clientHeight)}; } }; $(window).resize(function(){ $("body>div.window-mask").css({width:$(window)._outerWidth(),height:$(window)._outerHeight()}); setTimeout(function(){ $("body>div.window-mask").css({width:_18().width,height:_18().height}); },50); }); $.fn.window=function(_1c,_1d){ if(typeof _1c=="string"){ var _1e=$.fn.window.methods[_1c]; if(_1e){ return _1e(this,_1d); }else{ return this.panel(_1c,_1d); } } _1c=_1c||{}; return this.each(function(){ var _1f=$.data(this,"window"); if(_1f){ $.extend(_1f.options,_1c); }else{ _1f=$.data(this,"window",{options:$.extend({},$.fn.window.defaults,$.fn.window.parseOptions(this),_1c)}); if(!_1f.options.inline){ document.body.appendChild(this); } } _11(this); _19(this); }); }; $.fn.window.methods={options:function(jq){ var _20=jq.panel("options"); var _21=$.data(jq[0],"window").options; return $.extend(_21,{closed:_20.closed,collapsed:_20.collapsed,minimized:_20.minimized,maximized:_20.maximized}); },window:function(jq){ return $.data(jq[0],"window").window; },move:function(jq,_22){ return jq.each(function(){ _1(this,_22); }); },hcenter:function(jq){ return jq.each(function(){ _5(this,true); }); },vcenter:function(jq){ return jq.each(function(){ _b(this,true); }); },center:function(jq){ return jq.each(function(){ _5(this); _b(this); _1(this); }); }}; $.fn.window.parseOptions=function(_23){ return $.extend({},$.fn.panel.parseOptions(_23),$.parser.parseOptions(_23,[{draggable:"boolean",resizable:"boolean",shadow:"boolean",modal:"boolean",inline:"boolean"}])); }; $.fn.window.defaults=$.extend({},$.fn.panel.defaults,{zIndex:9000,draggable:true,resizable:true,shadow:true,modal:false,inline:false,title:"New Window",collapsible:true,minimizable:true,maximizable:true,closable:true,closed:false}); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/readme.txt ================================================ Current Version: 1.4.1 ====================== This software is allowed to use under GPL or you need to buy commercial license for better support or other purpose. Please contact us at info@jeasyui.com ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/easyloader.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * easyloader - jQuery EasyUI * */ (function(){ var modules = { draggable:{ js:'jquery.draggable.js' }, droppable:{ js:'jquery.droppable.js' }, resizable:{ js:'jquery.resizable.js' }, linkbutton:{ js:'jquery.linkbutton.js', css:'linkbutton.css' }, progressbar:{ js:'jquery.progressbar.js', css:'progressbar.css' }, tooltip:{ js:'jquery.tooltip.js', css:'tooltip.css' }, pagination:{ js:'jquery.pagination.js', css:'pagination.css', dependencies:['linkbutton'] }, datagrid:{ js:'jquery.datagrid.js', css:'datagrid.css', dependencies:['panel','resizable','linkbutton','pagination'] }, treegrid:{ js:'jquery.treegrid.js', css:'tree.css', dependencies:['datagrid'] }, propertygrid:{ js:'jquery.propertygrid.js', css:'propertygrid.css', dependencies:['datagrid'] }, panel: { js:'jquery.panel.js', css:'panel.css' }, window:{ js:'jquery.window.js', css:'window.css', dependencies:['resizable','draggable','panel'] }, dialog:{ js:'jquery.dialog.js', css:'dialog.css', dependencies:['linkbutton','window'] }, messager:{ js:'jquery.messager.js', css:'messager.css', dependencies:['linkbutton','window','progressbar'] }, layout:{ js:'jquery.layout.js', css:'layout.css', dependencies:['resizable','panel'] }, form:{ js:'jquery.form.js' }, menu:{ js:'jquery.menu.js', css:'menu.css' }, tabs:{ js:'jquery.tabs.js', css:'tabs.css', dependencies:['panel','linkbutton'] }, menubutton:{ js:'jquery.menubutton.js', css:'menubutton.css', dependencies:['linkbutton','menu'] }, splitbutton:{ js:'jquery.splitbutton.js', css:'splitbutton.css', dependencies:['menubutton'] }, accordion:{ js:'jquery.accordion.js', css:'accordion.css', dependencies:['panel'] }, calendar:{ js:'jquery.calendar.js', css:'calendar.css' }, textbox:{ js:'jquery.textbox.js', css:'textbox.css', dependencies:['validatebox','linkbutton'] }, filebox:{ js:'jquery.filebox.js', css:'filebox.css', dependencies:['textbox'] }, combo:{ js:'jquery.combo.js', css:'combo.css', dependencies:['panel','textbox'] }, combobox:{ js:'jquery.combobox.js', css:'combobox.css', dependencies:['combo'] }, combotree:{ js:'jquery.combotree.js', dependencies:['combo','tree'] }, combogrid:{ js:'jquery.combogrid.js', dependencies:['combo','datagrid'] }, validatebox:{ js:'jquery.validatebox.js', css:'validatebox.css', dependencies:['tooltip'] }, numberbox:{ js:'jquery.numberbox.js', dependencies:['textbox'] }, searchbox:{ js:'jquery.searchbox.js', css:'searchbox.css', dependencies:['menubutton','textbox'] }, spinner:{ js:'jquery.spinner.js', css:'spinner.css', dependencies:['textbox'] }, numberspinner:{ js:'jquery.numberspinner.js', dependencies:['spinner','numberbox'] }, timespinner:{ js:'jquery.timespinner.js', dependencies:['spinner'] }, tree:{ js:'jquery.tree.js', css:'tree.css', dependencies:['draggable','droppable'] }, datebox:{ js:'jquery.datebox.js', css:'datebox.css', dependencies:['calendar','combo'] }, datetimebox:{ js:'jquery.datetimebox.js', dependencies:['datebox','timespinner'] }, slider:{ js:'jquery.slider.js', dependencies:['draggable'] }, tooltip:{ js:'jquery.tooltip.js' }, parser:{ js:'jquery.parser.js' } }; var locales = { 'af':'easyui-lang-af.js', 'ar':'easyui-lang-ar.js', 'bg':'easyui-lang-bg.js', 'ca':'easyui-lang-ca.js', 'cs':'easyui-lang-cs.js', 'cz':'easyui-lang-cz.js', 'da':'easyui-lang-da.js', 'de':'easyui-lang-de.js', 'el':'easyui-lang-el.js', 'en':'easyui-lang-en.js', 'es':'easyui-lang-es.js', 'fr':'easyui-lang-fr.js', 'it':'easyui-lang-it.js', 'jp':'easyui-lang-jp.js', 'nl':'easyui-lang-nl.js', 'pl':'easyui-lang-pl.js', 'pt_BR':'easyui-lang-pt_BR.js', 'ru':'easyui-lang-ru.js', 'sv_SE':'easyui-lang-sv_SE.js', 'tr':'easyui-lang-tr.js', 'zh_CN':'easyui-lang-zh_CN.js', 'zh_TW':'easyui-lang-zh_TW.js' }; var queues = {}; function loadJs(url, callback){ var done = false; var script = document.createElement('script'); script.type = 'text/javascript'; script.language = 'javascript'; script.src = url; script.onload = script.onreadystatechange = function(){ if (!done && (!script.readyState || script.readyState == 'loaded' || script.readyState == 'complete')){ done = true; script.onload = script.onreadystatechange = null; if (callback){ callback.call(script); } } } document.getElementsByTagName("head")[0].appendChild(script); } function runJs(url, callback){ loadJs(url, function(){ document.getElementsByTagName("head")[0].removeChild(this); if (callback){ callback(); } }); } function loadCss(url, callback){ var link = document.createElement('link'); link.rel = 'stylesheet'; link.type = 'text/css'; link.media = 'screen'; link.href = url; document.getElementsByTagName('head')[0].appendChild(link); if (callback){ callback.call(link); } } function loadSingle(name, callback){ queues[name] = 'loading'; var module = modules[name]; var jsStatus = 'loading'; var cssStatus = (easyloader.css && module['css']) ? 'loading' : 'loaded'; if (easyloader.css && module['css']){ if (/^http/i.test(module['css'])){ var url = module['css']; } else { var url = easyloader.base + 'themes/' + easyloader.theme + '/' + module['css']; } loadCss(url, function(){ cssStatus = 'loaded'; if (jsStatus == 'loaded' && cssStatus == 'loaded'){ finish(); } }); } if (/^http/i.test(module['js'])){ var url = module['js']; } else { var url = easyloader.base + 'plugins/' + module['js']; } loadJs(url, function(){ jsStatus = 'loaded'; if (jsStatus == 'loaded' && cssStatus == 'loaded'){ finish(); } }); function finish(){ queues[name] = 'loaded'; easyloader.onProgress(name); if (callback){ callback(); } } } function loadModule(name, callback){ var mm = []; var doLoad = false; if (typeof name == 'string'){ add(name); } else { for(var i=0; idiv.panel>div.accordion-header'); if (headers.length){ headerHeight = $(headers[0]).css('height', '')._outerHeight(); } if (!isNaN(parseInt(opts.height))){ bodyHeight = cc.height() - headerHeight*headers.length; } _resize(true, bodyHeight - _resize(false) + 1); function _resize(collapsible, height){ var totalHeight = 0; for(var i=0; i= panels.length){ return null; } else { return panels[which]; } } return findBy(container, 'title', which); } function setProperties(container){ var opts = $.data(container, 'accordion').options; var cc = $(container); if (opts.border){ cc.removeClass('accordion-noborder'); } else { cc.addClass('accordion-noborder'); } } function init(container){ var state = $.data(container, 'accordion'); var cc = $(container); cc.addClass('accordion'); state.panels = []; cc.children('div').each(function(){ var opts = $.extend({}, $.parser.parseOptions(this), { selected: ($(this).attr('selected') ? true : undefined) }); var pp = $(this); state.panels.push(pp); createPanel(container, pp, opts); }); cc.bind('_resize', function(e,force){ if ($(this).hasClass('easyui-fluid') || force){ setSize(container); } return false; }); } function createPanel(container, pp, options){ var opts = $.data(container, 'accordion').options; pp.panel($.extend({}, { collapsible: true, minimizable: false, maximizable: false, closable: false, doSize: false, collapsed: true, headerCls: 'accordion-header', bodyCls: 'accordion-body' }, options, { onBeforeExpand: function(){ if (options.onBeforeExpand){ if (options.onBeforeExpand.call(this) == false){return false} } if (!opts.multiple){ // get all selected panel var all = $.grep(getSelections(container), function(p){ return p.panel('options').collapsible; }); for(var i=0; i').addClass('accordion-collapse accordion-expand').appendTo(tool); t.bind('click', function(){ var index = getPanelIndex(container, pp); if (pp.panel('options').collapsed){ select(container, index); } else { unselect(container, index); } return false; }); pp.panel('options').collapsible ? t.show() : t.hide(); header.click(function(){ $(this).find('a.accordion-collapse:visible').triggerHandler('click'); return false; }); } /** * select and set the specified panel active */ function select(container, which){ var p = getPanel(container, which); if (!p){return} stopAnimate(container); var opts = $.data(container, 'accordion').options; p.panel('expand', opts.animate); } function unselect(container, which){ var p = getPanel(container, which); if (!p){return} stopAnimate(container); var opts = $.data(container, 'accordion').options; p.panel('collapse', opts.animate); } function doFirstSelect(container){ var opts = $.data(container, 'accordion').options; var p = findBy(container, 'selected', true); if (p){ _select(getPanelIndex(container, p)); } else { _select(opts.selected); } function _select(index){ var animate = opts.animate; opts.animate = false; select(container, index); opts.animate = animate; } } /** * stop the animation of all panels */ function stopAnimate(container){ var panels = $.data(container, 'accordion').panels; for(var i=0; i
                                              ').appendTo(container); panels.push(pp); createPanel(container, pp, options); setSize(container); opts.onAdd.call(container, options.title, panels.length-1); if (options.selected){ select(container, panels.length-1); } } function remove(container, which){ var state = $.data(container, 'accordion'); var opts = state.options; var panels = state.panels; stopAnimate(container); var panel = getPanel(container, which); var title = panel.panel('options').title; var index = getPanelIndex(container, panel); if (!panel){return} if (opts.onBeforeRemove.call(container, title, index) == false){return} panels.splice(index, 1); panel.panel('destroy'); if (panels.length){ setSize(container); var curr = getSelected(container); if (!curr){ select(container, 0); } } opts.onRemove.call(container, title, index); } $.fn.accordion = function(options, param){ if (typeof options == 'string'){ return $.fn.accordion.methods[options](this, param); } options = options || {}; return this.each(function(){ var state = $.data(this, 'accordion'); if (state){ $.extend(state.options, options); } else { $.data(this, 'accordion', { options: $.extend({}, $.fn.accordion.defaults, $.fn.accordion.parseOptions(this), options), accordion: $(this).addClass('accordion'), panels: [] }); init(this); } setProperties(this); setSize(this); doFirstSelect(this); }); }; $.fn.accordion.methods = { options: function(jq){ return $.data(jq[0], 'accordion').options; }, panels: function(jq){ return $.data(jq[0], 'accordion').panels; }, resize: function(jq, param){ return jq.each(function(){ setSize(this, param); }); }, getSelections: function(jq){ return getSelections(jq[0]); }, getSelected: function(jq){ return getSelected(jq[0]); }, getPanel: function(jq, which){ return getPanel(jq[0], which); }, getPanelIndex: function(jq, panel){ return getPanelIndex(jq[0], panel); }, select: function(jq, which){ return jq.each(function(){ select(this, which); }); }, unselect: function(jq, which){ return jq.each(function(){ unselect(this, which); }); }, add: function(jq, options){ return jq.each(function(){ add(this, options); }); }, remove: function(jq, which){ return jq.each(function(){ remove(this, which); }); } }; $.fn.accordion.parseOptions = function(target){ var t = $(target); return $.extend({}, $.parser.parseOptions(target, [ 'width','height', {fit:'boolean',border:'boolean',animate:'boolean',multiple:'boolean',selected:'number'} ])); }; $.fn.accordion.defaults = { width: 'auto', height: 'auto', fit: false, border: true, animate: true, multiple: false, selected: 0, onSelect: function(title, index){}, onUnselect: function(title, index){}, onAdd: function(title, index){}, onBeforeRemove: function(title, index){}, onRemove: function(title, index){} }; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.calendar.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * calendar - jQuery EasyUI * */ (function($){ function setSize(target, param){ var opts = $.data(target, 'calendar').options; var t = $(target); if (param){ $.extend(opts, { width: param.width, height: param.height }); } t._size(opts, t.parent()); t.find('.calendar-body')._outerHeight(t.height() - t.find('.calendar-header')._outerHeight()); if (t.find('.calendar-menu').is(':visible')){ showSelectMenus(target); } } function init(target){ $(target).addClass('calendar').html( '
                                              ' + '
                                              ' + '
                                              ' + '
                                              ' + '
                                              ' + '
                                              ' + '' + '
                                              ' + '
                                              ' + '
                                              ' + '
                                              ' + '
                                              ' + '' + '' + '' + '
                                              ' + '
                                              ' + '
                                              ' + '
                                              ' + '
                                              ' ); $(target).bind('_resize', function(e,force){ if ($(this).hasClass('easyui-fluid') || force){ setSize(target); } return false; }); } function bindEvents(target){ var opts = $.data(target, 'calendar').options; var menu = $(target).find('.calendar-menu'); menu.find('.calendar-menu-year').unbind('.calendar').bind('keypress.calendar', function(e){ if (e.keyCode == 13){ setDate(true); } }); $(target).unbind('.calendar').bind('mouseover.calendar', function(e){ var t = toTarget(e.target); if (t.hasClass('calendar-nav') || t.hasClass('calendar-text') || (t.hasClass('calendar-day') && !t.hasClass('calendar-disabled'))){ t.addClass('calendar-nav-hover'); } }).bind('mouseout.calendar', function(e){ var t = toTarget(e.target); if (t.hasClass('calendar-nav') || t.hasClass('calendar-text') || (t.hasClass('calendar-day') && !t.hasClass('calendar-disabled'))){ t.removeClass('calendar-nav-hover'); } }).bind('click.calendar', function(e){ var t = toTarget(e.target); if (t.hasClass('calendar-menu-next') || t.hasClass('calendar-nextyear')){ showYear(1); } else if (t.hasClass('calendar-menu-prev') || t.hasClass('calendar-prevyear')){ showYear(-1); } else if (t.hasClass('calendar-menu-month')){ menu.find('.calendar-selected').removeClass('calendar-selected'); t.addClass('calendar-selected'); setDate(true); } else if (t.hasClass('calendar-prevmonth')){ showMonth(-1); } else if (t.hasClass('calendar-nextmonth')){ showMonth(1); } else if (t.hasClass('calendar-text')){ if (menu.is(':visible')){ menu.hide(); } else { showSelectMenus(target); } } else if (t.hasClass('calendar-day')){ if (t.hasClass('calendar-disabled')){return} var oldValue = opts.current; t.closest('div.calendar-body').find('.calendar-selected').removeClass('calendar-selected'); t.addClass('calendar-selected'); var parts = t.attr('abbr').split(','); var y = parseInt(parts[0]); var m = parseInt(parts[1]); var d = parseInt(parts[2]); opts.current = new Date(y, m-1, d); opts.onSelect.call(target, opts.current); if (!oldValue || oldValue.getTime() != opts.current.getTime()){ opts.onChange.call(target, opts.current, oldValue); } if (opts.year != y || opts.month != m){ opts.year = y; opts.month = m; show(target); } } }); function toTarget(t){ var day = $(t).closest('.calendar-day'); if (day.length){ return day; } else { return $(t); } } function setDate(hideMenu){ var menu = $(target).find('.calendar-menu'); var year = menu.find('.calendar-menu-year').val(); var month = menu.find('.calendar-selected').attr('abbr'); if (!isNaN(year)){ opts.year = parseInt(year); opts.month = parseInt(month); show(target); } if (hideMenu){menu.hide()} } function showYear(delta){ opts.year += delta; show(target); menu.find('.calendar-menu-year').val(opts.year); } function showMonth(delta){ opts.month += delta; if (opts.month > 12){ opts.year++; opts.month = 1; } else if (opts.month < 1){ opts.year--; opts.month = 12; } show(target); menu.find('td.calendar-selected').removeClass('calendar-selected'); menu.find('td:eq(' + (opts.month-1) + ')').addClass('calendar-selected'); } } /** * show the select menu that can change year or month, if the menu is not be created then create it. */ function showSelectMenus(target){ var opts = $.data(target, 'calendar').options; $(target).find('.calendar-menu').show(); if ($(target).find('.calendar-menu-month-inner').is(':empty')){ $(target).find('.calendar-menu-month-inner').empty(); var t = $('
                                              ').appendTo($(target).find('.calendar-menu-month-inner')); var idx = 0; for(var i=0; i<3; i++){ var tr = $('').appendTo(t); for(var j=0; j<4; j++){ $('').html(opts.months[idx++]).attr('abbr',idx).appendTo(tr); } } } var body = $(target).find('.calendar-body'); var sele = $(target).find('.calendar-menu'); var seleYear = sele.find('.calendar-menu-year-inner'); var seleMonth = sele.find('.calendar-menu-month-inner'); seleYear.find('input').val(opts.year).focus(); seleMonth.find('td.calendar-selected').removeClass('calendar-selected'); seleMonth.find('td:eq('+(opts.month-1)+')').addClass('calendar-selected'); sele._outerWidth(body._outerWidth()); sele._outerHeight(body._outerHeight()); seleMonth._outerHeight(sele.height() - seleYear._outerHeight()); } /** * get weeks data. */ function getWeeks(target, year, month){ var opts = $.data(target, 'calendar').options; var dates = []; var lastDay = new Date(year, month, 0).getDate(); for(var i=1; i<=lastDay; i++) dates.push([year,month,i]); // group date by week var weeks = [], week = []; var memoDay = -1; while(dates.length > 0){ var date = dates.shift(); week.push(date); var day = new Date(date[0],date[1]-1,date[2]).getDay(); if (memoDay == day){ day = 0; } else if (day == (opts.firstDay==0 ? 7 : opts.firstDay) - 1){ weeks.push(week); week = []; } memoDay = day; } if (week.length){ weeks.push(week); } var firstWeek = weeks[0]; if (firstWeek.length < 7){ while(firstWeek.length < 7){ var firstDate = firstWeek[0]; var date = new Date(firstDate[0],firstDate[1]-1,firstDate[2]-1) firstWeek.unshift([date.getFullYear(), date.getMonth()+1, date.getDate()]); } } else { var firstDate = firstWeek[0]; var week = []; for(var i=1; i<=7; i++){ var date = new Date(firstDate[0], firstDate[1]-1, firstDate[2]-i); week.unshift([date.getFullYear(), date.getMonth()+1, date.getDate()]); } weeks.unshift(week); } var lastWeek = weeks[weeks.length-1]; while(lastWeek.length < 7){ var lastDate = lastWeek[lastWeek.length-1]; var date = new Date(lastDate[0], lastDate[1]-1, lastDate[2]+1); lastWeek.push([date.getFullYear(), date.getMonth()+1, date.getDate()]); } if (weeks.length < 6){ var lastDate = lastWeek[lastWeek.length-1]; var week = []; for(var i=1; i<=7; i++){ var date = new Date(lastDate[0], lastDate[1]-1, lastDate[2]+i); week.push([date.getFullYear(), date.getMonth()+1, date.getDate()]); } weeks.push(week); } return weeks; } /** * show the calendar day. */ function show(target){ var opts = $.data(target, 'calendar').options; if (opts.current && !opts.validator.call(target, opts.current)){ opts.current = null; } var now = new Date(); var todayInfo = now.getFullYear()+','+(now.getMonth()+1)+','+now.getDate(); var currentInfo = opts.current ? (opts.current.getFullYear()+','+(opts.current.getMonth()+1)+','+opts.current.getDate()) : ''; // calulate the saturday and sunday index var saIndex = 6 - opts.firstDay; var suIndex = saIndex + 1; if (saIndex >= 7) saIndex -= 7; if (suIndex >= 7) suIndex -= 7; $(target).find('.calendar-title span').html(opts.months[opts.month-1] + ' ' + opts.year); var body = $(target).find('div.calendar-body'); body.children('table').remove(); var data = ['']; data.push(''); for(var i=opts.firstDay; i'+opts.weeks[i]+''); } for(var i=0; i'+opts.weeks[i]+''); } data.push(''); data.push(''); var weeks = getWeeks(target, opts.year, opts.month); for(var i=0; i'); for(var j=0; j' + d + ''); } data.push(''); } data.push(''); data.push('
                                              '); body.append(data.join('')); body.children('table.calendar-dtable').prependTo(body); opts.onNavigate.call(target, opts.year, opts.month); } $.fn.calendar = function(options, param){ if (typeof options == 'string'){ return $.fn.calendar.methods[options](this, param); } options = options || {}; return this.each(function(){ var state = $.data(this, 'calendar'); if (state){ $.extend(state.options, options); } else { state = $.data(this, 'calendar', { options:$.extend({}, $.fn.calendar.defaults, $.fn.calendar.parseOptions(this), options) }); init(this); } if (state.options.border == false){ $(this).addClass('calendar-noborder'); } setSize(this); bindEvents(this); show(this); $(this).find('div.calendar-menu').hide(); // hide the calendar menu }); }; $.fn.calendar.methods = { options: function(jq){ return $.data(jq[0], 'calendar').options; }, resize: function(jq, param){ return jq.each(function(){ setSize(this, param); }); }, moveTo: function(jq, date){ return jq.each(function(){ var opts = $(this).calendar('options'); if (opts.validator.call(this, date)){ var oldValue = opts.current; $(this).calendar({ year: date.getFullYear(), month: date.getMonth()+1, current: date }); if (!oldValue || oldValue.getTime() != date.getTime()){ opts.onChange.call(this, opts.current, oldValue); } } }); } }; $.fn.calendar.parseOptions = function(target){ var t = $(target); return $.extend({}, $.parser.parseOptions(target, [ {firstDay:'number',fit:'boolean',border:'boolean'} ])); }; $.fn.calendar.defaults = { width:180, height:180, fit:false, border:true, firstDay:0, weeks:['S','M','T','W','T','F','S'], months:['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], year:new Date().getFullYear(), month:new Date().getMonth()+1, current:(function(){ var d = new Date(); return new Date(d.getFullYear(), d.getMonth(), d.getDate()); })(), formatter:function(date){return date.getDate()}, styler:function(date){return ''}, validator:function(date){return true}, onSelect: function(date){}, onChange: function(newDate, oldDate){}, onNavigate: function(year, month){} }; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.combobox.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * combobox - jQuery EasyUI * * Dependencies: * combo * */ (function($){ var COMBOBOX_SERNO = 0; function getRowIndex(target, value){ var state = $.data(target, 'combobox'); var opts = state.options; var data = state.data; for(var i=0; i panel.height()){ var h = panel.scrollTop() + item.position().top + item.outerHeight() - panel.height(); panel.scrollTop(h); } } } function nav(target, dir){ var opts = $.data(target, 'combobox').options; var panel = $(target).combobox('panel'); var item = panel.children('div.combobox-item-hover'); if (!item.length){ item = panel.children('div.combobox-item-selected'); } item.removeClass('combobox-item-hover'); var firstSelector = 'div.combobox-item:visible:not(.combobox-item-disabled):first'; var lastSelector = 'div.combobox-item:visible:not(.combobox-item-disabled):last'; if (!item.length){ item = panel.children(dir=='next' ? firstSelector : lastSelector); // item = panel.children('div.combobox-item:visible:' + (dir=='next'?'first':'last')); } else { if (dir == 'next'){ item = item.nextAll(firstSelector); // item = item.nextAll('div.combobox-item:visible:first'); if (!item.length){ item = panel.children(firstSelector); // item = panel.children('div.combobox-item:visible:first'); } } else { item = item.prevAll(firstSelector); // item = item.prevAll('div.combobox-item:visible:first'); if (!item.length){ item = panel.children(lastSelector); // item = panel.children('div.combobox-item:visible:last'); } } } if (item.length){ item.addClass('combobox-item-hover'); var row = opts.finder.getRow(target, item); if (row){ scrollTo(target, row[opts.valueField]); if (opts.selectOnNavigation){ select(target, row[opts.valueField]); } } } } /** * select the specified value */ function select(target, value){ var opts = $.data(target, 'combobox').options; var values = $(target).combo('getValues'); if ($.inArray(value+'', values) == -1){ if (opts.multiple){ values.push(value); } else { values = [value]; } setValues(target, values); opts.onSelect.call(target, opts.finder.getRow(target, value)); } } /** * unselect the specified value */ function unselect(target, value){ var opts = $.data(target, 'combobox').options; var values = $(target).combo('getValues'); var index = $.inArray(value+'', values); if (index >= 0){ values.splice(index, 1); setValues(target, values); opts.onUnselect.call(target, opts.finder.getRow(target, value)); } } /** * set values */ function setValues(target, values, remainText){ var opts = $.data(target, 'combobox').options; var panel = $(target).combo('panel'); if (!$.isArray(values)){values = values.split(opts.separator)} panel.find('div.combobox-item-selected').removeClass('combobox-item-selected'); var vv = [], ss = []; for(var i=0; i'); dd.push(opts.groupFormatter ? opts.groupFormatter.call(target, g) : g); dd.push('
                                              '); } } else { group = undefined; } var cls = 'combobox-item' + (row.disabled ? ' combobox-item-disabled' : '') + (g ? ' combobox-gitem' : ''); dd.push('
                                              '); dd.push(opts.formatter ? opts.formatter.call(target, row) : s); dd.push('
                                              '); // if (item['selected']){ // (function(){ // for(var i=0; i= 0){ vv.push(v); } }); t.combobox('setValues', vv); if (!opts.multiple){ t.combobox('hidePanel'); } } /** * create the component */ function create(target){ var state = $.data(target, 'combobox'); var opts = state.options; COMBOBOX_SERNO++; state.itemIdPrefix = '_easyui_combobox_i' + COMBOBOX_SERNO; state.groupIdPrefix = '_easyui_combobox_g' + COMBOBOX_SERNO; $(target).addClass('combobox-f'); $(target).combo($.extend({}, opts, { onShowPanel: function(){ $(target).combo('panel').find('div.combobox-item,div.combobox-group').show(); scrollTo(target, $(target).combobox('getValue')); opts.onShowPanel.call(target); } })); $(target).combo('panel').unbind().bind('mouseover', function(e){ $(this).children('div.combobox-item-hover').removeClass('combobox-item-hover'); var item = $(e.target).closest('div.combobox-item'); if (!item.hasClass('combobox-item-disabled')){ item.addClass('combobox-item-hover'); } e.stopPropagation(); }).bind('mouseout', function(e){ $(e.target).closest('div.combobox-item').removeClass('combobox-item-hover'); e.stopPropagation(); }).bind('click', function(e){ var item = $(e.target).closest('div.combobox-item'); if (!item.length || item.hasClass('combobox-item-disabled')){return} var row = opts.finder.getRow(target, item); if (!row){return} var value = row[opts.valueField]; if (opts.multiple){ if (item.hasClass('combobox-item-selected')){ unselect(target, value); } else { select(target, value); } } else { select(target, value); $(target).combo('hidePanel'); } e.stopPropagation(); }); } $.fn.combobox = function(options, param){ if (typeof options == 'string'){ var method = $.fn.combobox.methods[options]; if (method){ return method(this, param); } else { return this.combo(options, param); } } options = options || {}; return this.each(function(){ var state = $.data(this, 'combobox'); if (state){ $.extend(state.options, options); create(this); } else { state = $.data(this, 'combobox', { options: $.extend({}, $.fn.combobox.defaults, $.fn.combobox.parseOptions(this), options), data: [] }); create(this); var data = $.fn.combobox.parseData(this); if (data.length){ loadData(this, data); } } if (state.options.data){ loadData(this, state.options.data); } request(this); }); }; $.fn.combobox.methods = { options: function(jq){ var copts = jq.combo('options'); return $.extend($.data(jq[0], 'combobox').options, { width: copts.width, height: copts.height, originalValue: copts.originalValue, disabled: copts.disabled, readonly: copts.readonly }); }, getData: function(jq){ return $.data(jq[0], 'combobox').data; }, setValues: function(jq, values){ return jq.each(function(){ setValues(this, values); }); }, setValue: function(jq, value){ return jq.each(function(){ setValues(this, [value]); }); }, clear: function(jq){ return jq.each(function(){ $(this).combo('clear'); var panel = $(this).combo('panel'); panel.find('div.combobox-item-selected').removeClass('combobox-item-selected'); }); }, reset: function(jq){ return jq.each(function(){ var opts = $(this).combobox('options'); if (opts.multiple){ $(this).combobox('setValues', opts.originalValue); } else { $(this).combobox('setValue', opts.originalValue); } }); }, loadData: function(jq, data){ return jq.each(function(){ loadData(this, data); }); }, reload: function(jq, url){ return jq.each(function(){ request(this, url); }); }, select: function(jq, value){ return jq.each(function(){ select(this, value); }); }, unselect: function(jq, value){ return jq.each(function(){ unselect(this, value); }); } }; $.fn.combobox.parseOptions = function(target){ var t = $(target); return $.extend({}, $.fn.combo.parseOptions(target), $.parser.parseOptions(target,[ 'valueField','textField','groupField','mode','method','url' ])); }; $.fn.combobox.parseData = function(target){ var data = []; var opts = $(target).combobox('options'); $(target).children().each(function(){ if (this.tagName.toLowerCase() == 'optgroup'){ var group = $(this).attr('label'); $(this).children().each(function(){ _parseItem(this, group); }); } else { _parseItem(this); } }); return data; function _parseItem(el, group){ var t = $(el); var row = {}; row[opts.valueField] = t.attr('value')!=undefined ? t.attr('value') : t.text(); row[opts.textField] = t.text(); row['selected'] = t.is(':selected'); row['disabled'] = t.is(':disabled'); if (group){ opts.groupField = opts.groupField || 'group'; row[opts.groupField] = group; } data.push(row); } }; $.fn.combobox.defaults = $.extend({}, $.fn.combo.defaults, { valueField: 'value', textField: 'text', groupField: null, groupFormatter: function(group){return group;}, mode: 'local', // or 'remote' method: 'post', url: null, data: null, keyHandler: { up: function(e){nav(this,'prev');e.preventDefault()}, down: function(e){nav(this,'next');e.preventDefault()}, left: function(e){}, right: function(e){}, enter: function(e){doEnter(this)}, query: function(q,e){doQuery(this, q)} }, filter: function(q, row){ var opts = $(this).combobox('options'); return row[opts.textField].toLowerCase().indexOf(q.toLowerCase()) == 0; }, formatter: function(row){ var opts = $(this).combobox('options'); return row[opts.textField]; }, loader: function(param, success, error){ var opts = $(this).combobox('options'); if (!opts.url) return false; $.ajax({ type: opts.method, url: opts.url, data: param, dataType: 'json', success: function(data){ success(data); }, error: function(){ error.apply(this, arguments); } }); }, loadFilter: function(data){ return data; }, finder:{ getEl:function(target, value){ var index = getRowIndex(target, value); var id = $.data(target, 'combobox').itemIdPrefix + '_' + index; return $('#'+id); }, getRow:function(target, p){ var state = $.data(target, 'combobox'); var index = (p instanceof jQuery) ? p.attr('id').substr(state.itemIdPrefix.length+1) : getRowIndex(target, p); return state.data[parseInt(index)]; } }, onBeforeLoad: function(param){}, onLoadSuccess: function(){}, onLoadError: function(){}, onSelect: function(record){}, onUnselect: function(record){} }); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.datebox.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * datebox - jQuery EasyUI * * Dependencies: * calendar * combo * */ (function($){ /** * create date box */ function createBox(target){ var state = $.data(target, 'datebox'); var opts = state.options; $(target).addClass('datebox-f').combo($.extend({}, opts, { onShowPanel:function(){ bindEvents(this); setButtons(this); setCalendar(this); setValue(this, $(this).datebox('getText'), true); opts.onShowPanel.call(this); } })); /** * if the calendar isn't created, create it. */ if (!state.calendar){ var panel = $(target).combo('panel').css('overflow','hidden'); panel.panel('options').onBeforeDestroy = function(){ var c = $(this).find('.calendar-shared'); if (c.length){ c.insertBefore(c[0].pholder); } }; var cc = $('
                                              ').prependTo(panel); if (opts.sharedCalendar){ var c = $(opts.sharedCalendar); if (!c[0].pholder){ c[0].pholder = $('').insertAfter(c); } c.addClass('calendar-shared').appendTo(cc); if (!c.hasClass('calendar')){ c.calendar(); } state.calendar = c; } else { state.calendar = $('
                                              ').appendTo(cc).calendar(); } $.extend(state.calendar.calendar('options'), { fit:true, border:false, onSelect:function(date){ var target = this.target; var opts = $(target).datebox('options'); setValue(target, opts.formatter.call(target, date)); $(target).combo('hidePanel'); opts.onSelect.call(target, date); } }); } $(target).combo('textbox').parent().addClass('datebox'); $(target).datebox('initValue', opts.value); function bindEvents(target){ var opts = $(target).datebox('options'); var panel = $(target).combo('panel'); panel.unbind('.datebox').bind('click.datebox', function(e){ if ($(e.target).hasClass('datebox-button-a')){ var index = parseInt($(e.target).attr('datebox-button-index')); opts.buttons[index].handler.call(e.target, target); } }); } function setButtons(target){ var panel = $(target).combo('panel'); if (panel.children('div.datebox-button').length){return} var button = $('
                                              ').appendTo(panel); var tr = button.find('tr'); for(var i=0; i').appendTo(tr); var btn = opts.buttons[i]; var t = $('').html($.isFunction(btn.text) ? btn.text(target) : btn.text).appendTo(td); t.attr('datebox-button-index', i); } tr.find('td').css('width', (100/opts.buttons.length)+'%'); } function setCalendar(target){ var panel = $(target).combo('panel'); var cc = panel.children('div.datebox-calendar-inner'); panel.children()._outerWidth(panel.width()); state.calendar.appendTo(cc); state.calendar[0].target = target; if (opts.panelHeight != 'auto'){ var height = panel.height(); panel.children().not(cc).each(function(){ height -= $(this).outerHeight(); }); cc._outerHeight(height); } state.calendar.calendar('resize'); } } /** * called when user inputs some value in text box */ function doQuery(target, q){ setValue(target, q, true); } /** * called when user press enter key */ function doEnter(target){ var state = $.data(target, 'datebox'); var opts = state.options; var current = state.calendar.calendar('options').current; if (current){ setValue(target, opts.formatter.call(target, current)); $(target).combo('hidePanel'); } } function setValue(target, value, remainText){ var state = $.data(target, 'datebox'); var opts = state.options; var calendar = state.calendar; $(target).combo('setValue', value); calendar.calendar('moveTo', opts.parser.call(target, value)); if (!remainText){ if (value){ value = opts.formatter.call(target, calendar.calendar('options').current); $(target).combo('setValue', value).combo('setText', value); } else { $(target).combo('setText', value); } } } $.fn.datebox = function(options, param){ if (typeof options == 'string'){ var method = $.fn.datebox.methods[options]; if (method){ return method(this, param); } else { return this.combo(options, param); } } options = options || {}; return this.each(function(){ var state = $.data(this, 'datebox'); if (state){ $.extend(state.options, options); } else { $.data(this, 'datebox', { options: $.extend({}, $.fn.datebox.defaults, $.fn.datebox.parseOptions(this), options) }); } createBox(this); }); }; $.fn.datebox.methods = { options: function(jq){ var copts = jq.combo('options'); return $.extend($.data(jq[0], 'datebox').options, { width: copts.width, height: copts.height, originalValue: copts.originalValue, disabled: copts.disabled, readonly: copts.readonly }); }, cloneFrom: function(jq, from){ return jq.each(function(){ $(this).combo('cloneFrom', from); $.data(this, 'datebox', { options: $.extend(true, {}, $(from).datebox('options')), calendar: $(from).datebox('calendar') }); $(this).addClass('datebox-f'); }); }, calendar: function(jq){ // get the calendar object return $.data(jq[0], 'datebox').calendar; }, initValue: function(jq, value){ return jq.each(function(){ var opts = $(this).datebox('options'); var value = opts.value; if (value){ value = opts.formatter.call(this, opts.parser.call(this, value)); } $(this).combo('initValue', value).combo('setText', value); }); }, setValue: function(jq, value){ return jq.each(function(){ setValue(this, value); }); }, reset: function(jq){ return jq.each(function(){ var opts = $(this).datebox('options'); $(this).datebox('setValue', opts.originalValue); }); } }; $.fn.datebox.parseOptions = function(target){ return $.extend({}, $.fn.combo.parseOptions(target), $.parser.parseOptions(target, ['sharedCalendar'])); }; $.fn.datebox.defaults = $.extend({}, $.fn.combo.defaults, { panelWidth:180, panelHeight:'auto', sharedCalendar:null, keyHandler: { up:function(e){}, down:function(e){}, left: function(e){}, right: function(e){}, enter:function(e){doEnter(this)}, query:function(q,e){doQuery(this, q)} }, currentText:'Today', closeText:'Close', okText:'Ok', buttons:[{ text: function(target){return $(target).datebox('options').currentText;}, handler: function(target){ $(target).datebox('calendar').calendar({ year:new Date().getFullYear(), month:new Date().getMonth()+1, current:new Date() }); doEnter(target); } },{ text: function(target){return $(target).datebox('options').closeText;}, handler: function(target){ $(this).closest('div.combo-panel').panel('close'); } }], formatter:function(date){ var y = date.getFullYear(); var m = date.getMonth()+1; var d = date.getDate(); return (m<10?('0'+m):m)+'/'+(d<10?('0'+d):d)+'/'+y; }, parser:function(s){ if (!s) return new Date(); var ss = s.split('/'); var m = parseInt(ss[0],10); var d = parseInt(ss[1],10); var y = parseInt(ss[2],10); if (!isNaN(y) && !isNaN(m) && !isNaN(d)){ return new Date(y,m-1,d); } else { return new Date(); } }, onSelect:function(date){} }); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.draggable.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * draggable - jQuery EasyUI * */ (function($){ // var isDragging = false; function drag(e){ var state = $.data(e.data.target, 'draggable'); var opts = state.options; var proxy = state.proxy; var dragData = e.data; var left = dragData.startLeft + e.pageX - dragData.startX; var top = dragData.startTop + e.pageY - dragData.startY; if (proxy){ if (proxy.parent()[0] == document.body){ if (opts.deltaX != null && opts.deltaX != undefined){ left = e.pageX + opts.deltaX; } else { left = e.pageX - e.data.offsetWidth; } if (opts.deltaY != null && opts.deltaY != undefined){ top = e.pageY + opts.deltaY; } else { top = e.pageY - e.data.offsetHeight; } } else { if (opts.deltaX != null && opts.deltaX != undefined){ left += e.data.offsetWidth + opts.deltaX; } if (opts.deltaY != null && opts.deltaY != undefined){ top += e.data.offsetHeight + opts.deltaY; } } } // if (opts.deltaX != null && opts.deltaX != undefined){ // left = e.pageX + opts.deltaX; // } // if (opts.deltaY != null && opts.deltaY != undefined){ // top = e.pageY + opts.deltaY; // } if (e.data.parent != document.body) { left += $(e.data.parent).scrollLeft(); top += $(e.data.parent).scrollTop(); } if (opts.axis == 'h') { dragData.left = left; } else if (opts.axis == 'v') { dragData.top = top; } else { dragData.left = left; dragData.top = top; } } function applyDrag(e){ var state = $.data(e.data.target, 'draggable'); var opts = state.options; var proxy = state.proxy; if (!proxy){ proxy = $(e.data.target); } // if (proxy){ // proxy.css('cursor', opts.cursor); // } else { // proxy = $(e.data.target); // $.data(e.data.target, 'draggable').handle.css('cursor', opts.cursor); // } proxy.css({ left:e.data.left, top:e.data.top }); $('body').css('cursor', opts.cursor); } function doDown(e){ // isDragging = true; $.fn.draggable.isDragging = true; var state = $.data(e.data.target, 'draggable'); var opts = state.options; var droppables = $('.droppable').filter(function(){ return e.data.target != this; }).filter(function(){ var accept = $.data(this, 'droppable').options.accept; if (accept){ return $(accept).filter(function(){ return this == e.data.target; }).length > 0; } else { return true; } }); state.droppables = droppables; var proxy = state.proxy; if (!proxy){ if (opts.proxy){ if (opts.proxy == 'clone'){ proxy = $(e.data.target).clone().insertAfter(e.data.target); } else { proxy = opts.proxy.call(e.data.target, e.data.target); } state.proxy = proxy; } else { proxy = $(e.data.target); } } proxy.css('position', 'absolute'); drag(e); applyDrag(e); opts.onStartDrag.call(e.data.target, e); return false; } function doMove(e){ var state = $.data(e.data.target, 'draggable'); drag(e); if (state.options.onDrag.call(e.data.target, e) != false){ applyDrag(e); } var source = e.data.target; state.droppables.each(function(){ var dropObj = $(this); if (dropObj.droppable('options').disabled){return;} var p2 = dropObj.offset(); if (e.pageX > p2.left && e.pageX < p2.left + dropObj.outerWidth() && e.pageY > p2.top && e.pageY < p2.top + dropObj.outerHeight()){ if (!this.entered){ $(this).trigger('_dragenter', [source]); this.entered = true; } $(this).trigger('_dragover', [source]); } else { if (this.entered){ $(this).trigger('_dragleave', [source]); this.entered = false; } } }); return false; } function doUp(e){ // isDragging = false; $.fn.draggable.isDragging = false; // drag(e); doMove(e); var state = $.data(e.data.target, 'draggable'); var proxy = state.proxy; var opts = state.options; if (opts.revert){ if (checkDrop() == true){ $(e.data.target).css({ position:e.data.startPosition, left:e.data.startLeft, top:e.data.startTop }); } else { if (proxy){ var left, top; if (proxy.parent()[0] == document.body){ left = e.data.startX - e.data.offsetWidth; top = e.data.startY - e.data.offsetHeight; } else { left = e.data.startLeft; top = e.data.startTop; } proxy.animate({ left: left, top: top }, function(){ removeProxy(); }); } else { $(e.data.target).animate({ left:e.data.startLeft, top:e.data.startTop }, function(){ $(e.data.target).css('position', e.data.startPosition); }); } } } else { $(e.data.target).css({ position:'absolute', left:e.data.left, top:e.data.top }); checkDrop(); } opts.onStopDrag.call(e.data.target, e); $(document).unbind('.draggable'); setTimeout(function(){ $('body').css('cursor',''); },100); function removeProxy(){ if (proxy){ proxy.remove(); } state.proxy = null; } function checkDrop(){ var dropped = false; state.droppables.each(function(){ var dropObj = $(this); if (dropObj.droppable('options').disabled){return;} var p2 = dropObj.offset(); if (e.pageX > p2.left && e.pageX < p2.left + dropObj.outerWidth() && e.pageY > p2.top && e.pageY < p2.top + dropObj.outerHeight()){ if (opts.revert){ $(e.data.target).css({ position:e.data.startPosition, left:e.data.startLeft, top:e.data.startTop }); } $(this).trigger('_drop', [e.data.target]); removeProxy(); dropped = true; this.entered = false; return false; } }); if (!dropped && !opts.revert){ removeProxy(); } return dropped; } return false; } $.fn.draggable = function(options, param){ if (typeof options == 'string'){ return $.fn.draggable.methods[options](this, param); } return this.each(function(){ var opts; var state = $.data(this, 'draggable'); if (state) { state.handle.unbind('.draggable'); opts = $.extend(state.options, options); } else { opts = $.extend({}, $.fn.draggable.defaults, $.fn.draggable.parseOptions(this), options || {}); } var handle = opts.handle ? (typeof opts.handle=='string' ? $(opts.handle, this) : opts.handle) : $(this); $.data(this, 'draggable', { options: opts, handle: handle }); if (opts.disabled) { $(this).css('cursor', ''); return; } handle.unbind('.draggable').bind('mousemove.draggable', {target:this}, function(e){ // if (isDragging) return; if ($.fn.draggable.isDragging){return} var opts = $.data(e.data.target, 'draggable').options; if (checkArea(e)){ $(this).css('cursor', opts.cursor); } else { $(this).css('cursor', ''); } }).bind('mouseleave.draggable', {target:this}, function(e){ $(this).css('cursor', ''); }).bind('mousedown.draggable', {target:this}, function(e){ if (checkArea(e) == false) return; $(this).css('cursor', ''); var position = $(e.data.target).position(); var offset = $(e.data.target).offset(); var data = { startPosition: $(e.data.target).css('position'), startLeft: position.left, startTop: position.top, left: position.left, top: position.top, startX: e.pageX, startY: e.pageY, offsetWidth: (e.pageX - offset.left), offsetHeight: (e.pageY - offset.top), target: e.data.target, parent: $(e.data.target).parent()[0] }; $.extend(e.data, data); var opts = $.data(e.data.target, 'draggable').options; if (opts.onBeforeDrag.call(e.data.target, e) == false) return; $(document).bind('mousedown.draggable', e.data, doDown); $(document).bind('mousemove.draggable', e.data, doMove); $(document).bind('mouseup.draggable', e.data, doUp); // $('body').css('cursor', opts.cursor); }); // check if the handle can be dragged function checkArea(e) { var state = $.data(e.data.target, 'draggable'); var handle = state.handle; var offset = $(handle).offset(); var width = $(handle).outerWidth(); var height = $(handle).outerHeight(); var t = e.pageY - offset.top; var r = offset.left + width - e.pageX; var b = offset.top + height - e.pageY; var l = e.pageX - offset.left; return Math.min(t,r,b,l) > state.options.edge; } }); }; $.fn.draggable.methods = { options: function(jq){ return $.data(jq[0], 'draggable').options; }, proxy: function(jq){ return $.data(jq[0], 'draggable').proxy; }, enable: function(jq){ return jq.each(function(){ $(this).draggable({disabled:false}); }); }, disable: function(jq){ return jq.each(function(){ $(this).draggable({disabled:true}); }); } }; $.fn.draggable.parseOptions = function(target){ var t = $(target); return $.extend({}, $.parser.parseOptions(target, ['cursor','handle','axis', {'revert':'boolean','deltaX':'number','deltaY':'number','edge':'number'}]), { disabled: (t.attr('disabled') ? true : undefined) }); }; $.fn.draggable.defaults = { proxy:null, // 'clone' or a function that will create the proxy object, // the function has the source parameter that indicate the source object dragged. revert:false, cursor:'move', deltaX:null, deltaY:null, handle: null, disabled: false, edge:0, axis:null, // v or h onBeforeDrag: function(e){}, onStartDrag: function(e){}, onDrag: function(e){}, onStopDrag: function(e){} }; $.fn.draggable.isDragging = false; // $(function(){ // function touchHandler(e) { // var touches = e.changedTouches, first = touches[0], type = ""; // // switch(e.type) { // case "touchstart": type = "mousedown"; break; // case "touchmove": type = "mousemove"; break; // case "touchend": type = "mouseup"; break; // default: return; // } // var simulatedEvent = document.createEvent("MouseEvent"); // simulatedEvent.initMouseEvent(type, true, true, window, 1, // first.screenX, first.screenY, // first.clientX, first.clientY, false, // false, false, false, 0/*left*/, null); // // first.target.dispatchEvent(simulatedEvent); // if (isDragging){ // e.preventDefault(); // } // } // // if (document.addEventListener){ // document.addEventListener("touchstart", touchHandler, true); // document.addEventListener("touchmove", touchHandler, true); // document.addEventListener("touchend", touchHandler, true); // document.addEventListener("touchcancel", touchHandler, true); // } // }); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.droppable.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * droppable - jQuery EasyUI * */ (function($){ function init(target){ $(target).addClass('droppable'); $(target).bind('_dragenter', function(e, source){ $.data(target, 'droppable').options.onDragEnter.apply(target, [e, source]); }); $(target).bind('_dragleave', function(e, source){ $.data(target, 'droppable').options.onDragLeave.apply(target, [e, source]); }); $(target).bind('_dragover', function(e, source){ $.data(target, 'droppable').options.onDragOver.apply(target, [e, source]); }); $(target).bind('_drop', function(e, source){ $.data(target, 'droppable').options.onDrop.apply(target, [e, source]); }); } $.fn.droppable = function(options, param){ if (typeof options == 'string'){ return $.fn.droppable.methods[options](this, param); } options = options || {}; return this.each(function(){ var state = $.data(this, 'droppable'); if (state){ $.extend(state.options, options); } else { init(this); $.data(this, 'droppable', { options: $.extend({}, $.fn.droppable.defaults, $.fn.droppable.parseOptions(this), options) }); } }); }; $.fn.droppable.methods = { options: function(jq){ return $.data(jq[0], 'droppable').options; }, enable: function(jq){ return jq.each(function(){ $(this).droppable({disabled:false}); }); }, disable: function(jq){ return jq.each(function(){ $(this).droppable({disabled:true}); }); } }; $.fn.droppable.parseOptions = function(target){ var t = $(target); return $.extend({}, $.parser.parseOptions(target, ['accept']), { disabled: (t.attr('disabled') ? true : undefined) }); }; $.fn.droppable.defaults = { accept:null, disabled:false, onDragEnter:function(e, source){}, onDragOver:function(e, source){}, onDragLeave:function(e, source){}, onDrop:function(e, source){} }; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.form.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * form - jQuery EasyUI * */ (function($){ /** * submit the form */ function ajaxSubmit(target, options){ var opts = $.data(target, 'form').options; $.extend(opts, options||{}); var param = $.extend({}, opts.queryParams); if (opts.onSubmit.call(target, param) == false){return;} $(target).find('.textbox-text:focus').blur(); var frameId = 'easyui_frame_' + (new Date().getTime()); var frame = $('').appendTo('body') frame.attr('src', window.ActiveXObject ? 'javascript:false' : 'about:blank'); frame.css({ position:'absolute', top:-1000, left:-1000 }); frame.bind('load', cb); submit(param); function submit(param){ var form = $(target); if (opts.url){ form.attr('action', opts.url); } var t = form.attr('target'), a = form.attr('action'); form.attr('target', frameId); var paramFields = $(); try { for(var n in param){ var field = $('').val(param[n]).appendTo(form); paramFields = paramFields.add(field); } checkState(); form[0].submit(); } finally { form.attr('action', a); t ? form.attr('target', t) : form.removeAttr('target'); paramFields.remove(); } } function checkState(){ var f = $('#'+frameId); if (!f.length){return} try{ var s = f.contents()[0].readyState; if (s && s.toLowerCase() == 'uninitialized'){ setTimeout(checkState, 100); } } catch(e){ cb(); } } var checkCount = 10; function cb(){ var f = $('#'+frameId); if (!f.length){return} f.unbind(); var data = ''; try{ var body = f.contents().find('body'); data = body.html(); if (data == ''){ if (--checkCount){ setTimeout(cb, 100); return; } } var ta = body.find('>textarea'); if (ta.length){ data = ta.val(); } else { var pre = body.find('>pre'); if (pre.length){ data = pre.html(); } } } catch(e){ } opts.success(data); setTimeout(function(){ f.unbind(); f.remove(); }, 100); } } /** * load form data * if data is a URL string type load from remote site, * otherwise load from local data object. */ function load(target, data){ var opts = $.data(target, 'form').options; if (typeof data == 'string'){ var param = {}; if (opts.onBeforeLoad.call(target, param) == false) return; $.ajax({ url: data, data: param, dataType: 'json', success: function(data){ _load(data); }, error: function(){ opts.onLoadError.apply(target, arguments); } }); } else { _load(data); } function _load(data){ var form = $(target); for(var name in data){ var val = data[name]; var rr = _checkField(name, val); if (!rr.length){ var count = _loadOther(name, val); if (!count){ $('input[name="'+name+'"]', form).val(val); $('textarea[name="'+name+'"]', form).val(val); $('select[name="'+name+'"]', form).val(val); } } _loadCombo(name, val); } opts.onLoadSuccess.call(target, data); validate(target); } /** * check the checkbox and radio fields */ function _checkField(name, val){ var rr = $(target).find('input[name="'+name+'"][type=radio], input[name="'+name+'"][type=checkbox]'); rr._propAttr('checked', false); rr.each(function(){ var f = $(this); if (f.val() == String(val) || $.inArray(f.val(), $.isArray(val)?val:[val]) >= 0){ f._propAttr('checked', true); } }); return rr; } function _loadOther(name, val){ var count = 0; var pp = ['textbox','numberbox','slider']; for(var i=0; i
                                              ').insertBefore(target); var style = { position: btn.css('position'), display: btn.css('display'), left: btn.css('left') }; btn.appendTo('body'); btn.css({ position: 'absolute', display: 'inline-block', left: -20000 }); } btn._size(opts, parent); var left = btn.find('.l-btn-left'); left.css('margin-top', 0); left.css('margin-top', parseInt((btn.height()-left.height())/2)+'px'); if (!isVisible){ btn.insertAfter(spacer); btn.css(style); spacer.remove(); } } } function createButton(target) { var opts = $.data(target, 'linkbutton').options; var t = $(target).empty(); t.addClass('l-btn').removeClass('l-btn-plain l-btn-selected l-btn-plain-selected'); t.removeClass('l-btn-small l-btn-medium l-btn-large').addClass('l-btn-'+opts.size); if (opts.plain){t.addClass('l-btn-plain')} if (opts.selected){ t.addClass(opts.plain ? 'l-btn-selected l-btn-plain-selected' : 'l-btn-selected'); } t.attr('group', opts.group || ''); t.attr('id', opts.id || ''); var inner = $('').appendTo(t); if (opts.text){ $('').html(opts.text).appendTo(inner); } else { $(' ').appendTo(inner); } if (opts.iconCls){ $(' ').addClass(opts.iconCls).appendTo(inner); inner.addClass('l-btn-icon-'+opts.iconAlign); } t.unbind('.linkbutton').bind('focus.linkbutton',function(){ if (!opts.disabled){ $(this).addClass('l-btn-focus'); } }).bind('blur.linkbutton',function(){ $(this).removeClass('l-btn-focus'); }).bind('click.linkbutton',function(){ if (!opts.disabled){ if (opts.toggle){ if (opts.selected){ $(this).linkbutton('unselect'); } else { $(this).linkbutton('select'); } } opts.onClick.call(this); } // return false; }); // if (opts.toggle && !opts.disabled){ // t.bind('click.linkbutton', function(){ // if (opts.selected){ // $(this).linkbutton('unselect'); // } else { // $(this).linkbutton('select'); // } // }); // } setSelected(target, opts.selected) setDisabled(target, opts.disabled); } function setSelected(target, selected){ var opts = $.data(target, 'linkbutton').options; if (selected){ if (opts.group){ $('a.l-btn[group="'+opts.group+'"]').each(function(){ var o = $(this).linkbutton('options'); if (o.toggle){ $(this).removeClass('l-btn-selected l-btn-plain-selected'); o.selected = false; } }); } $(target).addClass(opts.plain ? 'l-btn-selected l-btn-plain-selected' : 'l-btn-selected'); opts.selected = true; } else { if (!opts.group){ $(target).removeClass('l-btn-selected l-btn-plain-selected'); opts.selected = false; } } } function setDisabled(target, disabled){ var state = $.data(target, 'linkbutton'); var opts = state.options; $(target).removeClass('l-btn-disabled l-btn-plain-disabled'); if (disabled){ opts.disabled = true; var href = $(target).attr('href'); if (href){ state.href = href; $(target).attr('href', 'javascript:void(0)'); } if (target.onclick){ state.onclick = target.onclick; target.onclick = null; } opts.plain ? $(target).addClass('l-btn-disabled l-btn-plain-disabled') : $(target).addClass('l-btn-disabled'); } else { opts.disabled = false; if (state.href) { $(target).attr('href', state.href); } if (state.onclick) { target.onclick = state.onclick; } } } $.fn.linkbutton = function(options, param){ if (typeof options == 'string'){ return $.fn.linkbutton.methods[options](this, param); } options = options || {}; return this.each(function(){ var state = $.data(this, 'linkbutton'); if (state){ $.extend(state.options, options); } else { $.data(this, 'linkbutton', { options: $.extend({}, $.fn.linkbutton.defaults, $.fn.linkbutton.parseOptions(this), options) }); $(this).removeAttr('disabled'); $(this).bind('_resize', function(e, force){ if ($(this).hasClass('easyui-fluid') || force){ setSize(this); } return false; }); } createButton(this); setSize(this); }); }; $.fn.linkbutton.methods = { options: function(jq){ return $.data(jq[0], 'linkbutton').options; }, resize: function(jq, param){ return jq.each(function(){ setSize(this, param); }); }, enable: function(jq){ return jq.each(function(){ setDisabled(this, false); }); }, disable: function(jq){ return jq.each(function(){ setDisabled(this, true); }); }, select: function(jq){ return jq.each(function(){ setSelected(this, true); }); }, unselect: function(jq){ return jq.each(function(){ setSelected(this, false); }); } }; $.fn.linkbutton.parseOptions = function(target){ var t = $(target); return $.extend({}, $.parser.parseOptions(target, ['id','iconCls','iconAlign','group','size',{plain:'boolean',toggle:'boolean',selected:'boolean'}] ), { disabled: (t.attr('disabled') ? true : undefined), text: $.trim(t.html()), iconCls: (t.attr('icon') || t.attr('iconCls')) }); }; $.fn.linkbutton.defaults = { id: null, disabled: false, toggle: false, selected: false, group: null, plain: false, text: '', iconCls: null, iconAlign: 'left', size: 'small', // small,large onClick: function(){} }; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.menu.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * menu - jQuery EasyUI * */ (function($){ /** * initialize the target menu, the function can be invoked only once */ function init(target){ $(target).appendTo('body'); $(target).addClass('menu-top'); // the top menu $(document).unbind('.menu').bind('mousedown.menu', function(e){ // var allMenu = $('body>div.menu:visible'); // var m = $(e.target).closest('div.menu', allMenu); var m = $(e.target).closest('div.menu,div.combo-p'); if (m.length){return} $('body>div.menu-top:visible').menu('hide'); }); var menus = splitMenu($(target)); for(var i=0; i
                                              ').html(text)); if (itemOpts.iconCls){ $('').addClass(itemOpts.iconCls).appendTo(item); } if (itemOpts.disabled){ setDisabled(target, item[0], true); } if (item[0].submenu){ $('').appendTo(item); // has sub menu } bindMenuItemEvent(target, item); } }); $('').prependTo(menu); } setMenuSize(target, menu); menu.hide(); bindMenuEvent(target, menu); } } function setMenuSize(target, menu){ var opts = $.data(target, 'menu').options; var style = menu.attr('style') || ''; menu.css({ display: 'block', left:-10000, height: 'auto', overflow: 'hidden' }); var el = menu[0]; var width = el.originalWidth || 0; if (!width){ width = 0; menu.find('div.menu-text').each(function(){ if (width < $(this)._outerWidth()){ width = $(this)._outerWidth(); } $(this).closest('div.menu-item')._outerHeight($(this)._outerHeight()+2); }); width += 40; } width = Math.max(width, opts.minWidth); // var height = el.originalHeight || menu.outerHeight(); var height = el.originalHeight || 0; if (!height){ height = menu.outerHeight(); if (menu.hasClass('menu-top') && opts.alignTo){ var at = $(opts.alignTo); var h1 = at.offset().top - $(document).scrollTop(); var h2 = $(window)._outerHeight() + $(document).scrollTop() - at.offset().top - at._outerHeight(); height = Math.min(height, Math.max(h1, h2)); } else if (height > $(window)._outerHeight()){ height = $(window).height(); style += ';overflow:auto'; } else { style += ';overflow:hidden'; } // if (height > $(window).height()-5){ // height = $(window).height()-5; // style += ';overflow:auto'; // } else { // style += ';overflow:hidden'; // } } var lineHeight = Math.max(el.originalHeight, menu.outerHeight()) - 2; menu._outerWidth(width)._outerHeight(height); menu.children('div.menu-line')._outerHeight(lineHeight); style += ';width:' + el.style.width + ';height:' + el.style.height; menu.attr('style', style); } /** * bind menu event */ function bindMenuEvent(target, menu){ var state = $.data(target, 'menu'); menu.unbind('.menu').bind('mouseenter.menu', function(){ if (state.timer){ clearTimeout(state.timer); state.timer = null; } }).bind('mouseleave.menu', function(){ if (state.options.hideOnUnhover){ state.timer = setTimeout(function(){ hideAll(target); }, state.options.duration); } }); } /** * bind menu item event */ function bindMenuItemEvent(target, item){ if (!item.hasClass('menu-item')){return} item.unbind('.menu'); item.bind('click.menu', function(){ if ($(this).hasClass('menu-item-disabled')){ return; } // only the sub menu clicked can hide all menus if (!this.submenu){ hideAll(target); var href = this.itemHref; if (href){ location.href = href; } } var item = $(target).menu('getItem', this); $.data(target, 'menu').options.onClick.call(target, item); }).bind('mouseenter.menu', function(e){ // hide other menu item.siblings().each(function(){ if (this.submenu){ hideMenu(this.submenu); } $(this).removeClass('menu-active'); }); // show this menu item.addClass('menu-active'); if ($(this).hasClass('menu-item-disabled')){ item.addClass('menu-active-disabled'); return; } var submenu = item[0].submenu; if (submenu){ $(target).menu('show', { menu: submenu, parent: item }); } }).bind('mouseleave.menu', function(e){ item.removeClass('menu-active menu-active-disabled'); var submenu = item[0].submenu; if (submenu){ if (e.pageX>=parseInt(submenu.css('left'))){ item.addClass('menu-active'); } else { hideMenu(submenu); } } else { item.removeClass('menu-active'); } }); } /** * hide top menu and it's all sub menus */ function hideAll(target){ var state = $.data(target, 'menu'); if (state){ if ($(target).is(':visible')){ hideMenu($(target)); state.options.onHide.call(target); } } return false; } /** * show the menu, the 'param' object has one or more properties: * left: the left position to display * top: the top position to display * menu: the menu to display, if not defined, the 'target menu' is used * parent: the parent menu item to align to * alignTo: the element object to align to */ function showMenu(target, param){ var left,top; param = param || {}; var menu = $(param.menu || target); $(target).menu('resize', menu[0]); if (menu.hasClass('menu-top')){ var opts = $.data(target, 'menu').options; $.extend(opts, param); left = opts.left; top = opts.top; if (opts.alignTo){ var at = $(opts.alignTo); left = at.offset().left; top = at.offset().top + at._outerHeight(); if (opts.align == 'right'){ left += at.outerWidth() - menu.outerWidth(); } } if (left + menu.outerWidth() > $(window)._outerWidth() + $(document)._scrollLeft()){ left = $(window)._outerWidth() + $(document).scrollLeft() - menu.outerWidth() - 5; } if (left < 0){left = 0;} top = _fixTop(top, opts.alignTo); } else { var parent = param.parent; // the parent menu item left = parent.offset().left + parent.outerWidth() - 2; if (left + menu.outerWidth() + 5 > $(window)._outerWidth() + $(document).scrollLeft()){ left = parent.offset().left - menu.outerWidth() + 2; } top = _fixTop(parent.offset().top - 3); } function _fixTop(top, alignTo){ if (top + menu.outerHeight() > $(window)._outerHeight() + $(document).scrollTop()){ if (alignTo){ top = $(alignTo).offset().top - menu._outerHeight(); } else { top = $(window)._outerHeight() + $(document).scrollTop() - menu.outerHeight(); } } if (top < 0){top = 0;} return top; } menu.css({left:left,top:top}); menu.show(0, function(){ if (!menu[0].shadow){ menu[0].shadow = $('').insertAfter(menu); } menu[0].shadow.css({ display:'block', zIndex:$.fn.menu.defaults.zIndex++, left:menu.css('left'), top:menu.css('top'), width:menu.outerWidth(), height:menu.outerHeight() }); menu.css('z-index', $.fn.menu.defaults.zIndex++); if (menu.hasClass('menu-top')){ $.data(menu[0], 'menu').options.onShow.call(menu[0]); } }); } function hideMenu(menu){ if (!menu) return; hideit(menu); menu.find('div.menu-item').each(function(){ if (this.submenu){ hideMenu(this.submenu); } $(this).removeClass('menu-active'); }); function hideit(m){ m.stop(true,true); if (m[0].shadow){ m[0].shadow.hide(); } m.hide(); } } function findItem(target, text){ var result = null; var tmp = $('
                                              '); function find(menu){ menu.children('div.menu-item').each(function(){ var item = $(target).menu('getItem', this); var s = tmp.empty().html(item.text).text(); if (text == $.trim(s)) { result = item; } else if (this.submenu && !result){ find(this.submenu); } }); } find($(target)); tmp.remove(); return result; } function setDisabled(target, itemEl, disabled){ var t = $(itemEl); if (!t.hasClass('menu-item')){return} if (disabled){ t.addClass('menu-item-disabled'); if (itemEl.onclick){ itemEl.onclick1 = itemEl.onclick; itemEl.onclick = null; } } else { t.removeClass('menu-item-disabled'); if (itemEl.onclick1){ itemEl.onclick = itemEl.onclick1; itemEl.onclick1 = null; } } } function appendItem(target, param){ var menu = $(target); if (param.parent){ if (!param.parent.submenu){ var submenu = $('').appendTo('body'); submenu.hide(); param.parent.submenu = submenu; $('').appendTo(param.parent); } menu = param.parent.submenu; } if (param.separator){ var item = $('').appendTo(menu); } else { var item = $('').appendTo(menu); $('').html(param.text).appendTo(item); } if (param.iconCls) $('').addClass(param.iconCls).appendTo(item); if (param.id) item.attr('id', param.id); if (param.name){item[0].itemName = param.name} if (param.href){item[0].itemHref = param.href} if (param.onclick){ if (typeof param.onclick == 'string'){ item.attr('onclick', param.onclick); } else { item[0].onclick = eval(param.onclick); } } if (param.handler){item[0].onclick = eval(param.handler)} if (param.disabled){setDisabled(target, item[0], true)} bindMenuItemEvent(target, item); bindMenuEvent(target, menu); setMenuSize(target, menu); } function removeItem(target, itemEl){ function removeit(el){ if (el.submenu){ el.submenu.children('div.menu-item').each(function(){ removeit(this); }); var shadow = el.submenu[0].shadow; if (shadow) shadow.remove(); el.submenu.remove(); } $(el).remove(); } var menu = $(itemEl).parent(); removeit(itemEl); setMenuSize(target, menu); } function setVisible(target, itemEl, visible){ var menu = $(itemEl).parent(); if (visible){ $(itemEl).show(); } else { $(itemEl).hide(); } setMenuSize(target, menu); } function destroyMenu(target){ $(target).children('div.menu-item').each(function(){ removeItem(target, this); }); if (target.shadow) target.shadow.remove(); $(target).remove(); } $.fn.menu = function(options, param){ if (typeof options == 'string'){ return $.fn.menu.methods[options](this, param); } options = options || {}; return this.each(function(){ var state = $.data(this, 'menu'); if (state){ $.extend(state.options, options); } else { state = $.data(this, 'menu', { options: $.extend({}, $.fn.menu.defaults, $.fn.menu.parseOptions(this), options) }); init(this); } $(this).css({ left: state.options.left, top: state.options.top }); }); }; $.fn.menu.methods = { options: function(jq){ return $.data(jq[0], 'menu').options; }, show: function(jq, pos){ return jq.each(function(){ showMenu(this, pos); }); }, hide: function(jq){ return jq.each(function(){ hideAll(this); }); }, destroy: function(jq){ return jq.each(function(){ destroyMenu(this); }); }, /** * set the menu item text * param: { * target: DOM object, indicate the menu item * text: string, the new text * } */ setText: function(jq, param){ return jq.each(function(){ $(param.target).children('div.menu-text').html(param.text); }); }, /** * set the menu icon class * param: { * target: DOM object, indicate the menu item * iconCls: the menu item icon class * } */ setIcon: function(jq, param){ return jq.each(function(){ $(param.target).children('div.menu-icon').remove(); if (param.iconCls){ $('').addClass(param.iconCls).appendTo(param.target); } }); }, /** * get the menu item data that contains the following property: * { * target: DOM object, the menu item * id: the menu id * text: the menu item text * iconCls: the icon class * href: a remote address to redirect to * onclick: a function to be called when the item is clicked * } */ getItem: function(jq, itemEl){ var t = $(itemEl); var item = { target: itemEl, id: t.attr('id'), text: $.trim(t.children('div.menu-text').html()), disabled: t.hasClass('menu-item-disabled'), // href: t.attr('href'), // name: t.attr('name'), name: itemEl.itemName, href: itemEl.itemHref, onclick: itemEl.onclick } var icon = t.children('div.menu-icon'); if (icon.length){ var cc = []; var aa = icon.attr('class').split(' '); for(var i=0; i= 0){ v = Math.floor((parent.width()-delta) * v / 100.0); } else { v = Math.floor((parent.height()-delta) * v / 100.0); } } else { v = parseInt(v) || undefined; } return v; }, /** * parse options, including standard 'data-options' attribute. * * calling examples: * $.parser.parseOptions(target); * $.parser.parseOptions(target, ['id','title','width',{fit:'boolean',border:'boolean'},{min:'number'}]); */ parseOptions: function(target, properties){ var t = $(target); var options = {}; var s = $.trim(t.attr('data-options')); if (s){ if (s.substring(0, 1) != '{'){ s = '{' + s + '}'; } options = (new Function('return ' + s))(); } $.map(['width','height','left','top','minWidth','maxWidth','minHeight','maxHeight'], function(p){ var pv = $.trim(target.style[p] || ''); if (pv){ if (pv.indexOf('%') == -1){ pv = parseInt(pv) || undefined; } options[p] = pv; } }); if (properties){ var opts = {}; for(var i=0; i
                                            ').appendTo('body'); $._boxModel = d.outerWidth()!=100; d.remove(); if (!window.easyloader && $.parser.auto){ $.parser.parse(); } }); /** * extend plugin to set box model width */ $.fn._outerWidth = function(width){ if (width == undefined){ if (this[0] == window){ return this.width() || document.body.clientWidth; } return this.outerWidth()||0; } return this._size('width', width); }; /** * extend plugin to set box model height */ $.fn._outerHeight = function(height){ if (height == undefined){ if (this[0] == window){ return this.height() || document.body.clientHeight; } return this.outerHeight()||0; } return this._size('height', height); }; $.fn._scrollLeft = function(left){ if (left == undefined){ return this.scrollLeft(); } else { return this.each(function(){$(this).scrollLeft(left)}); } }; $.fn._propAttr = $.fn.prop || $.fn.attr; $.fn._size = function(options, parent){ if (typeof options == 'string'){ if (options == 'clear'){ return this.each(function(){ $(this).css({width:'',minWidth:'',maxWidth:'',height:'',minHeight:'',maxHeight:''}); }); } else if (options == 'fit'){ return this.each(function(){ _fit(this, this.tagName=='BODY' ? $('body') : $(this).parent(), true); }); } else if (options == 'unfit'){ return this.each(function(){ _fit(this, $(this).parent(), false); }); } else { if (parent == undefined){ return _css(this[0], options); } else { return this.each(function(){ _css(this, options, parent); }); } } } else { return this.each(function(){ parent = parent || $(this).parent(); $.extend(options, _fit(this, parent, options.fit)||{}); var r1 = _setSize(this, 'width', parent, options); var r2 = _setSize(this, 'height', parent, options); if (r1 || r2){ $(this).addClass('easyui-fluid'); } else { $(this).removeClass('easyui-fluid'); } }); } function _fit(target, parent, fit){ if (!parent.length){return false;} var t = $(target)[0]; var p = parent[0]; var fcount = p.fcount || 0; if (fit){ if (!t.fitted){ t.fitted = true; p.fcount = fcount + 1; $(p).addClass('panel-noscroll'); if (p.tagName == 'BODY'){ $('html').addClass('panel-fit'); } } return { width: ($(p).width()||1), height: ($(p).height()||1) }; } else { if (t.fitted){ t.fitted = false; p.fcount = fcount - 1; if (p.fcount == 0){ $(p).removeClass('panel-noscroll'); if (p.tagName == 'BODY'){ $('html').removeClass('panel-fit'); } } } return false; } } function _setSize(target, property, parent, options){ var t = $(target); var p = property; var p1 = p.substr(0,1).toUpperCase() + p.substr(1); var min = $.parser.parseValue('min'+p1, options['min'+p1], parent);// || 0; var max = $.parser.parseValue('max'+p1, options['max'+p1], parent);// || 99999; var val = $.parser.parseValue(p, options[p], parent); var fluid = (String(options[p]||'').indexOf('%') >= 0 ? true : false); if (!isNaN(val)){ var v = Math.min(Math.max(val, min||0), max||99999); if (!fluid){ options[p] = v; } t._size('min'+p1, ''); t._size('max'+p1, ''); t._size(p, v); } else { t._size(p, ''); t._size('min'+p1, min); t._size('max'+p1, max); } return fluid || options.fit; } function _css(target, property, value){ var t = $(target); if (value == undefined){ value = parseInt(target.style[property]); if (isNaN(value)){return undefined;} if ($._boxModel){ value += getDeltaSize(); } return value; } else if (value === ''){ t.css(property, ''); } else { if ($._boxModel){ value -= getDeltaSize(); if (value < 0){value = 0;} } t.css(property, value+'px'); } function getDeltaSize(){ if (property.toLowerCase().indexOf('width') >= 0){ return t.outerWidth() - t.width(); } else { return t.outerHeight() - t.height(); } } } }; })(jQuery); /** * support for mobile devices */ (function($){ var longTouchTimer = null; var dblTouchTimer = null; var isDblClick = false; function onTouchStart(e){ if (e.touches.length != 1){return} if (!isDblClick){ isDblClick = true; dblClickTimer = setTimeout(function(){ isDblClick = false; }, 500); } else { clearTimeout(dblClickTimer); isDblClick = false; fire(e, 'dblclick'); // e.preventDefault(); } longTouchTimer = setTimeout(function(){ fire(e, 'contextmenu', 3); }, 1000); fire(e, 'mousedown'); if ($.fn.draggable.isDragging || $.fn.resizable.isResizing){ e.preventDefault(); } } function onTouchMove(e){ if (e.touches.length != 1){return} if (longTouchTimer){ clearTimeout(longTouchTimer); } fire(e, 'mousemove'); if ($.fn.draggable.isDragging || $.fn.resizable.isResizing){ e.preventDefault(); } } function onTouchEnd(e){ // if (e.touches.length > 0){return} if (longTouchTimer){ clearTimeout(longTouchTimer); } fire(e, 'mouseup'); if ($.fn.draggable.isDragging || $.fn.resizable.isResizing){ e.preventDefault(); } } function fire(e, name, which){ var event = new $.Event(name); event.pageX = e.changedTouches[0].pageX; event.pageY = e.changedTouches[0].pageY; event.which = which || 1; $(e.target).trigger(event); } if (document.addEventListener){ document.addEventListener("touchstart", onTouchStart, true); document.addEventListener("touchmove", onTouchMove, true); document.addEventListener("touchend", onTouchEnd, true); } })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.progressbar.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * progressbar - jQuery EasyUI * * Dependencies: * none * */ (function($){ function init(target){ $(target).addClass('progressbar'); $(target).html('
                                            '); $(target).bind('_resize', function(e,force){ if ($(this).hasClass('easyui-fluid') || force){ setSize(target); } return false; }); return $(target); } function setSize(target,width){ var opts = $.data(target, 'progressbar').options; var bar = $.data(target, 'progressbar').bar; if (width) opts.width = width; bar._size(opts); bar.find('div.progressbar-text').css('width', bar.width()); bar.find('div.progressbar-text,div.progressbar-value').css({ height: bar.height()+'px', lineHeight: bar.height()+'px' }); } $.fn.progressbar = function(options, param){ if (typeof options == 'string'){ var method = $.fn.progressbar.methods[options]; if (method){ return method(this, param); } } options = options || {}; return this.each(function(){ var state = $.data(this, 'progressbar'); if (state){ $.extend(state.options, options); } else { state = $.data(this, 'progressbar', { options: $.extend({}, $.fn.progressbar.defaults, $.fn.progressbar.parseOptions(this), options), bar: init(this) }); } $(this).progressbar('setValue', state.options.value); setSize(this); }); }; $.fn.progressbar.methods = { options: function(jq){ return $.data(jq[0], 'progressbar').options; }, resize: function(jq, width){ return jq.each(function(){ setSize(this, width); }); }, getValue: function(jq){ return $.data(jq[0], 'progressbar').options.value; }, setValue: function(jq, value){ if (value < 0) value = 0; if (value > 100) value = 100; return jq.each(function(){ var opts = $.data(this, 'progressbar').options; var text = opts.text.replace(/{value}/, value); var oldValue = opts.value; opts.value = value; $(this).find('div.progressbar-value').width(value+'%'); $(this).find('div.progressbar-text').html(text); if (oldValue != value){ opts.onChange.call(this, value, oldValue); } }); } }; $.fn.progressbar.parseOptions = function(target){ return $.extend({}, $.parser.parseOptions(target, ['width','height','text',{value:'number'}])); }; $.fn.progressbar.defaults = { width: 'auto', height: 22, value: 0, // percentage value text: '{value}%', onChange:function(newValue,oldValue){} }; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.propertygrid.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * propertygrid - jQuery EasyUI * * Dependencies: * datagrid * */ (function($){ var currTarget; $(document).unbind('.propertygrid').bind('mousedown.propertygrid', function(e){ var p = $(e.target).closest('div.datagrid-view,div.combo-panel'); if (p.length){return;} stopEditing(currTarget); currTarget = undefined; }); function buildGrid(target){ var state = $.data(target, 'propertygrid'); var opts = $.data(target, 'propertygrid').options; $(target).datagrid($.extend({}, opts, { cls:'propertygrid', view:(opts.showGroup ? opts.groupView : opts.view), onBeforeEdit:function(index, row){ if (opts.onBeforeEdit.call(target, index, row) == false){return false;} var dg = $(this); var row = dg.datagrid('getRows')[index]; var col = dg.datagrid('getColumnOption', 'value'); col.editor = row.editor; }, onClickCell:function(index, field, value){ if (currTarget != this){ stopEditing(currTarget); currTarget = this; } if (opts.editIndex != index){ stopEditing(currTarget); $(this).datagrid('beginEdit', index); var ed = $(this).datagrid('getEditor', {index:index,field:field}); if (!ed){ ed = $(this).datagrid('getEditor', {index:index,field:'value'}); } if (ed){ var t = $(ed.target); var input = t.data('textbox') ? t.textbox('textbox') : t; input.focus(); opts.editIndex = index; } } opts.onClickCell.call(target, index, field, value); }, loadFilter:function(data){ stopEditing(this); return opts.loadFilter.call(this, data); } })); } function stopEditing(target){ var t = $(target); if (!t.length){return} var opts = $.data(target, 'propertygrid').options; opts.finder.getTr(target, null, 'editing').each(function(){ var index = parseInt($(this).attr('datagrid-row-index')); if (t.datagrid('validateRow', index)){ t.datagrid('endEdit', index); } else { t.datagrid('cancelEdit', index); } }); } $.fn.propertygrid = function(options, param){ if (typeof options == 'string'){ var method = $.fn.propertygrid.methods[options]; if (method){ return method(this, param); } else { return this.datagrid(options, param); } } options = options || {}; return this.each(function(){ var state = $.data(this, 'propertygrid'); if (state){ $.extend(state.options, options); } else { var opts = $.extend({}, $.fn.propertygrid.defaults, $.fn.propertygrid.parseOptions(this), options); opts.frozenColumns = $.extend(true, [], opts.frozenColumns); opts.columns = $.extend(true, [], opts.columns); $.data(this, 'propertygrid', { options: opts }); } buildGrid(this); }); } $.fn.propertygrid.methods = { options: function(jq){ return $.data(jq[0], 'propertygrid').options; } }; $.fn.propertygrid.parseOptions = function(target){ return $.extend({}, $.fn.datagrid.parseOptions(target), $.parser.parseOptions(target,[{showGroup:'boolean'}])); }; // the group view definition var groupview = $.extend({}, $.fn.datagrid.defaults.view, { render: function(target, container, frozen){ var table = []; var groups = this.groups; for(var i=0; i'); table.push(''); table.push(''); if ((frozen && (opts.rownumbers || opts.frozenColumns.length)) || (!frozen && !(opts.rownumbers || opts.frozenColumns.length))){ table.push(''); } table.push(''); table.push(''); table.push('
                                             '); if (!frozen){ table.push(''); table.push(opts.groupFormatter.call(target, group.value, group.rows)); table.push(''); } table.push('
                                            '); table.push(''); table.push(''); var index = group.startIndex; for(var j=0; j'); table.push(this.renderRow.call(this, target, fields, frozen, index, group.rows[j])); table.push(''); index++; } table.push('
                                            '); return table.join(''); }, bindEvents: function(target){ var state = $.data(target, 'datagrid'); var dc = state.dc; var body = dc.body1.add(dc.body2); var clickHandler = ($.data(body[0],'events')||$._data(body[0],'events')).click[0].handler; body.unbind('click').bind('click', function(e){ var tt = $(e.target); var expander = tt.closest('span.datagrid-row-expander'); if (expander.length){ var gindex = expander.closest('div.datagrid-group').attr('group-index'); if (expander.hasClass('datagrid-row-collapse')){ $(target).datagrid('collapseGroup', gindex); } else { $(target).datagrid('expandGroup', gindex); } } else { clickHandler(e); } e.stopPropagation(); }); }, onBeforeRender: function(target, rows){ var state = $.data(target, 'datagrid'); var opts = state.options; initCss(); var groups = []; for(var i=0; i' + '.datagrid-group{height:25px;overflow:hidden;font-weight:bold;border-bottom:1px solid #ccc;}' + '' ); } } } }); $.extend($.fn.datagrid.methods, { expandGroup:function(jq, groupIndex){ return jq.each(function(){ var view = $.data(this, 'datagrid').dc.view; var group = view.find(groupIndex!=undefined ? 'div.datagrid-group[group-index="'+groupIndex+'"]' : 'div.datagrid-group'); var expander = group.find('span.datagrid-row-expander'); if (expander.hasClass('datagrid-row-expand')){ expander.removeClass('datagrid-row-expand').addClass('datagrid-row-collapse'); group.next('table').show(); } $(this).datagrid('fixRowHeight'); }); }, collapseGroup:function(jq, groupIndex){ return jq.each(function(){ var view = $.data(this, 'datagrid').dc.view; var group = view.find(groupIndex!=undefined ? 'div.datagrid-group[group-index="'+groupIndex+'"]' : 'div.datagrid-group'); var expander = group.find('span.datagrid-row-expander'); if (expander.hasClass('datagrid-row-collapse')){ expander.removeClass('datagrid-row-collapse').addClass('datagrid-row-expand'); group.next('table').hide(); } $(this).datagrid('fixRowHeight'); }); } }); $.extend(groupview, { refreshGroupTitle: function(target, groupIndex){ var state = $.data(target, 'datagrid'); var opts = state.options; var dc = state.dc; var group = this.groups[groupIndex]; var span = dc.body2.children('div.datagrid-group[group-index=' + groupIndex + ']').find('span.datagrid-group-title'); span.html(opts.groupFormatter.call(target, group.value, group.rows)); }, insertRow: function(target, index, row){ var state = $.data(target, 'datagrid'); var opts = state.options; var dc = state.dc; var group = null; var groupIndex; for(var i=0; i group.startIndex + group.rows.length){ index = group.startIndex + group.rows.length; } $.fn.datagrid.defaults.view.insertRow.call(this, target, index, row); if (index >= group.startIndex + group.rows.length){ _moveTr(index, true); _moveTr(index, false); } group.rows.splice(index - group.startIndex, 0, row); } else { group = { value: row[opts.groupField], rows: [row], startIndex: state.data.rows.length } groupIndex = this.groups.length; dc.body1.append(this.renderGroup.call(this, target, groupIndex, group, true)); dc.body2.append(this.renderGroup.call(this, target, groupIndex, group, false)); this.groups.push(group); state.data.rows.push(row); } this.refreshGroupTitle(target, groupIndex); function _moveTr(index,frozen){ var serno = frozen?1:2; var prevTr = opts.finder.getTr(target, index-1, 'body', serno); var tr = opts.finder.getTr(target, index, 'body', serno); tr.insertAfter(prevTr); } }, updateRow: function(target, index, row){ var opts = $.data(target, 'datagrid').options; $.fn.datagrid.defaults.view.updateRow.call(this, target, index, row); var tb = opts.finder.getTr(target, index, 'body', 2).closest('table.datagrid-btable'); var groupIndex = parseInt(tb.prev().attr('group-index')); this.refreshGroupTitle(target, groupIndex); }, deleteRow: function(target, index){ var state = $.data(target, 'datagrid'); var opts = state.options; var dc = state.dc; var body = dc.body1.add(dc.body2); var tb = opts.finder.getTr(target, index, 'body', 2).closest('table.datagrid-btable'); var groupIndex = parseInt(tb.prev().attr('group-index')); $.fn.datagrid.defaults.view.deleteRow.call(this, target, index); var group = this.groups[groupIndex]; if (group.rows.length > 1){ group.rows.splice(index-group.startIndex, 1); this.refreshGroupTitle(target, groupIndex); } else { body.children('div.datagrid-group[group-index='+groupIndex+']').remove(); for(var i=groupIndex+1; i= options.minWidth && resizeData.width <= options.maxWidth) { // resizeData.left = resizeData.startLeft + e.pageX - resizeData.startX; // } } if (resizeData.dir.indexOf('n') != -1) { var height = resizeData.startHeight - e.pageY + resizeData.startY; height = Math.min( Math.max(height, options.minHeight), options.maxHeight ); resizeData.height = height; resizeData.top = resizeData.startTop + resizeData.startHeight - resizeData.height; // resizeData.height = resizeData.startHeight - e.pageY + resizeData.startY; // if (resizeData.height >= options.minHeight && resizeData.height <= options.maxHeight) { // resizeData.top = resizeData.startTop + e.pageY - resizeData.startY; // } } } function applySize(e){ var resizeData = e.data; var t = $(resizeData.target); t.css({ left: resizeData.left, top: resizeData.top }); if (t.outerWidth() != resizeData.width){t._outerWidth(resizeData.width)} if (t.outerHeight() != resizeData.height){t._outerHeight(resizeData.height)} // t._outerWidth(resizeData.width)._outerHeight(resizeData.height); } function doDown(e){ // isResizing = true; $.fn.resizable.isResizing = true; $.data(e.data.target, 'resizable').options.onStartResize.call(e.data.target, e); return false; } function doMove(e){ resize(e); if ($.data(e.data.target, 'resizable').options.onResize.call(e.data.target, e) != false){ applySize(e) } return false; } function doUp(e){ // isResizing = false; $.fn.resizable.isResizing = false; resize(e, true); applySize(e); $.data(e.data.target, 'resizable').options.onStopResize.call(e.data.target, e); $(document).unbind('.resizable'); $('body').css('cursor',''); // $('body').css('cursor','auto'); return false; } return this.each(function(){ var opts = null; var state = $.data(this, 'resizable'); if (state) { $(this).unbind('.resizable'); opts = $.extend(state.options, options || {}); } else { opts = $.extend({}, $.fn.resizable.defaults, $.fn.resizable.parseOptions(this), options || {}); $.data(this, 'resizable', { options:opts }); } if (opts.disabled == true) { return; } // bind mouse event using namespace resizable $(this).bind('mousemove.resizable', {target:this}, function(e){ // if (isResizing) return; if ($.fn.resizable.isResizing){return} var dir = getDirection(e); if (dir == '') { $(e.data.target).css('cursor', ''); } else { $(e.data.target).css('cursor', dir + '-resize'); } }).bind('mouseleave.resizable', {target:this}, function(e){ $(e.data.target).css('cursor', ''); }).bind('mousedown.resizable', {target:this}, function(e){ var dir = getDirection(e); if (dir == '') return; function getCssValue(css) { var val = parseInt($(e.data.target).css(css)); if (isNaN(val)) { return 0; } else { return val; } } var data = { target: e.data.target, dir: dir, startLeft: getCssValue('left'), startTop: getCssValue('top'), left: getCssValue('left'), top: getCssValue('top'), startX: e.pageX, startY: e.pageY, startWidth: $(e.data.target).outerWidth(), startHeight: $(e.data.target).outerHeight(), width: $(e.data.target).outerWidth(), height: $(e.data.target).outerHeight(), deltaWidth: $(e.data.target).outerWidth() - $(e.data.target).width(), deltaHeight: $(e.data.target).outerHeight() - $(e.data.target).height() }; $(document).bind('mousedown.resizable', data, doDown); $(document).bind('mousemove.resizable', data, doMove); $(document).bind('mouseup.resizable', data, doUp); $('body').css('cursor', dir+'-resize'); }); // get the resize direction function getDirection(e) { var tt = $(e.data.target); var dir = ''; var offset = tt.offset(); var width = tt.outerWidth(); var height = tt.outerHeight(); var edge = opts.edge; if (e.pageY > offset.top && e.pageY < offset.top + edge) { dir += 'n'; } else if (e.pageY < offset.top + height && e.pageY > offset.top + height - edge) { dir += 's'; } if (e.pageX > offset.left && e.pageX < offset.left + edge) { dir += 'w'; } else if (e.pageX < offset.left + width && e.pageX > offset.left + width - edge) { dir += 'e'; } var handles = opts.handles.split(','); for(var i=0; i' + '
                                            ' + '' + '' + '
                                            ' + '
                                            ' + '
                                            ' + '
                                            ' + '' + '').insertAfter(target); var t = $(target); t.addClass('slider-f').hide(); var name = t.attr('name'); if (name){ slider.find('input.slider-value').attr('name', name); t.removeAttr('name').attr('sliderName', name); } slider.bind('_resize', function(e,force){ if ($(this).hasClass('easyui-fluid') || force){ setSize(target); } return false; }); return slider; } /** * set the slider size, for vertical slider, the height property is required */ function setSize(target, param){ var state = $.data(target, 'slider'); var opts = state.options; var slider = state.slider; if (param){ if (param.width) opts.width = param.width; if (param.height) opts.height = param.height; } slider._size(opts); if (opts.mode == 'h'){ slider.css('height', ''); slider.children('div').css('height', ''); } else { slider.css('width', ''); slider.children('div').css('width', ''); slider.children('div.slider-rule,div.slider-rulelabel,div.slider-inner')._outerHeight(slider._outerHeight()); } initValue(target); } /** * show slider rule if needed */ function showRule(target){ var state = $.data(target, 'slider'); var opts = state.options; var slider = state.slider; var aa = opts.mode == 'h' ? opts.rule : opts.rule.slice(0).reverse(); if (opts.reversed){ aa = aa.slice(0).reverse(); } _build(aa); function _build(aa){ var rule = slider.find('div.slider-rule'); var label = slider.find('div.slider-rulelabel'); rule.empty(); label.empty(); for(var i=0; i').appendTo(rule); span.css((opts.mode=='h'?'left':'top'), distance); // show the labels if (aa[i] != '|'){ span = $('').appendTo(label); span.html(aa[i]); if (opts.mode == 'h'){ span.css({ left: distance, marginLeft: -Math.round(span.outerWidth()/2) }); } else { span.css({ top: distance, marginTop: -Math.round(span.outerHeight()/2) }); } } } } } /** * build the slider and set some properties */ function buildSlider(target){ var state = $.data(target, 'slider'); var opts = state.options; var slider = state.slider; slider.removeClass('slider-h slider-v slider-disabled'); slider.addClass(opts.mode == 'h' ? 'slider-h' : 'slider-v'); slider.addClass(opts.disabled ? 'slider-disabled' : ''); slider.find('a.slider-handle').draggable({ axis:opts.mode, cursor:'pointer', disabled: opts.disabled, onDrag:function(e){ var left = e.data.left; var width = slider.width(); if (opts.mode!='h'){ left = e.data.top; width = slider.height(); } if (left < 0 || left > width) { return false; } else { var value = pos2value(target, left); adjustValue(value); return false; } }, onBeforeDrag:function(){ state.isDragging = true; }, onStartDrag:function(){ opts.onSlideStart.call(target, opts.value); }, onStopDrag:function(e){ var value = pos2value(target, (opts.mode=='h'?e.data.left:e.data.top)); adjustValue(value); opts.onSlideEnd.call(target, opts.value); opts.onComplete.call(target, opts.value); state.isDragging = false; } }); slider.find('div.slider-inner').unbind('.slider').bind('mousedown.slider', function(e){ if (state.isDragging || opts.disabled){return} var pos = $(this).offset(); var value = pos2value(target, (opts.mode=='h'?(e.pageX-pos.left):(e.pageY-pos.top))); adjustValue(value); opts.onComplete.call(target, opts.value); }); function adjustValue(value){ var s = Math.abs(value % opts.step); if (s < opts.step/2){ value -= s; } else { value = value - s + opts.step; } setValue(target, value); } } /** * set a specified value to slider */ function setValue(target, value){ var state = $.data(target, 'slider'); var opts = state.options; var slider = state.slider; var oldValue = opts.value; if (value < opts.min) value = opts.min; if (value > opts.max) value = opts.max; opts.value = value; $(target).val(value); slider.find('input.slider-value').val(value); var pos = value2pos(target, value); var tip = slider.find('.slider-tip'); if (opts.showTip){ tip.show(); tip.html(opts.tipFormatter.call(target, opts.value)); } else { tip.hide(); } if (opts.mode == 'h'){ var style = 'left:'+pos+'px;'; slider.find('.slider-handle').attr('style', style); tip.attr('style', style + 'margin-left:' + (-Math.round(tip.outerWidth()/2)) + 'px'); } else { var style = 'top:' + pos + 'px;'; slider.find('.slider-handle').attr('style', style); tip.attr('style', style + 'margin-left:' + (-Math.round(tip.outerWidth())) + 'px'); } if (oldValue != value){ opts.onChange.call(target, value, oldValue); } } function initValue(target){ var opts = $.data(target, 'slider').options; var fn = opts.onChange; opts.onChange = function(){}; setValue(target, opts.value); opts.onChange = fn; } /** * translate value to slider position */ // function value2pos(target, value){ // var state = $.data(target, 'slider'); // var opts = state.options; // var slider = state.slider; // if (opts.mode == 'h'){ // var pos = (value-opts.min)/(opts.max-opts.min)*slider.width(); // if (opts.reversed){ // pos = slider.width() - pos; // } // } else { // var pos = slider.height() - (value-opts.min)/(opts.max-opts.min)*slider.height(); // if (opts.reversed){ // pos = slider.height() - pos; // } // } // return pos.toFixed(0); // } function value2pos(target, value){ var state = $.data(target, 'slider'); var opts = state.options; var slider = state.slider; var size = opts.mode == 'h' ? slider.width() : slider.height(); var pos = opts.converter.toPosition.call(target, value, size); if (opts.mode == 'v'){ pos = slider.height() - pos; } if (opts.reversed){ pos = size - pos; } return pos.toFixed(0); } /** * translate slider position to value */ // function pos2value(target, pos){ // var state = $.data(target, 'slider'); // var opts = state.options; // var slider = state.slider; // if (opts.mode == 'h'){ // var value = opts.min + (opts.max-opts.min)*(pos/slider.width()); // } else { // var value = opts.min + (opts.max-opts.min)*((slider.height()-pos)/slider.height()); // } // return opts.reversed ? opts.max - value.toFixed(0) : value.toFixed(0); // } function pos2value(target, pos){ var state = $.data(target, 'slider'); var opts = state.options; var slider = state.slider; var size = opts.mode == 'h' ? slider.width() : slider.height(); var value = opts.converter.toValue.call(target, opts.mode=='h'?(opts.reversed?(size-pos):pos):(size-pos), size); return value.toFixed(0); // var value = opts.converter.toValue.call(target, opts.mode=='h'?pos:(size-pos), size); // return opts.reversed ? opts.max - value.toFixed(0) : value.toFixed(0); } $.fn.slider = function(options, param){ if (typeof options == 'string'){ return $.fn.slider.methods[options](this, param); } options = options || {}; return this.each(function(){ var state = $.data(this, 'slider'); if (state){ $.extend(state.options, options); } else { state = $.data(this, 'slider', { options: $.extend({}, $.fn.slider.defaults, $.fn.slider.parseOptions(this), options), slider: init(this) }); $(this).removeAttr('disabled'); } var opts = state.options; opts.min = parseFloat(opts.min); opts.max = parseFloat(opts.max); opts.value = parseFloat(opts.value); opts.step = parseFloat(opts.step); opts.originalValue = opts.value; buildSlider(this); showRule(this); setSize(this); }); }; $.fn.slider.methods = { options: function(jq){ return $.data(jq[0], 'slider').options; }, destroy: function(jq){ return jq.each(function(){ $.data(this, 'slider').slider.remove(); $(this).remove(); }); }, resize: function(jq, param){ return jq.each(function(){ setSize(this, param); }); }, getValue: function(jq){ return jq.slider('options').value; }, setValue: function(jq, value){ return jq.each(function(){ setValue(this, value); }); }, clear: function(jq){ return jq.each(function(){ var opts = $(this).slider('options'); setValue(this, opts.min); }); }, reset: function(jq){ return jq.each(function(){ var opts = $(this).slider('options'); setValue(this, opts.originalValue); }); }, enable: function(jq){ return jq.each(function(){ $.data(this, 'slider').options.disabled = false; buildSlider(this); }); }, disable: function(jq){ return jq.each(function(){ $.data(this, 'slider').options.disabled = true; buildSlider(this); }); } }; $.fn.slider.parseOptions = function(target){ var t = $(target); return $.extend({}, $.parser.parseOptions(target, [ 'width','height','mode',{reversed:'boolean',showTip:'boolean',min:'number',max:'number',step:'number'} ]), { value: (t.val() || undefined), disabled: (t.attr('disabled') ? true : undefined), rule: (t.attr('rule') ? eval(t.attr('rule')) : undefined) }); }; $.fn.slider.defaults = { width: 'auto', height: 'auto', mode: 'h', // 'h'(horizontal) or 'v'(vertical) reversed: false, showTip: false, disabled: false, value: 0, min: 0, max: 100, step: 1, rule: [], // [0,'|',100] tipFormatter: function(value){return value}, converter:{ toPosition:function(value, size){ var opts = $(this).slider('options'); return (value-opts.min)/(opts.max-opts.min)*size; }, toValue:function(pos, size){ var opts = $(this).slider('options'); return opts.min + (opts.max-opts.min)*(pos/size); } }, onChange: function(value, oldValue){}, onSlideStart: function(value){}, onSlideEnd: function(value){}, onComplete: function(value){} }; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.tabs.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * tabs - jQuery EasyUI * * Dependencies: * panel * linkbutton * */ (function($){ /** * set the tabs scrollers to show or not, * dependent on the tabs count and width */ function setScrollers(container) { var opts = $.data(container, 'tabs').options; if (opts.tabPosition == 'left' || opts.tabPosition == 'right' || !opts.showHeader){return} var header = $(container).children('div.tabs-header'); var tool = header.children('div.tabs-tool'); var sLeft = header.children('div.tabs-scroller-left'); var sRight = header.children('div.tabs-scroller-right'); var wrap = header.children('div.tabs-wrap'); // set the tool height var tHeight = header.outerHeight(); if (opts.plain){ tHeight -= tHeight - header.height(); } tool._outerHeight(tHeight); var tabsWidth = 0; $('ul.tabs li', header).each(function(){ tabsWidth += $(this).outerWidth(true); }); var cWidth = header.width() - tool._outerWidth(); if (tabsWidth > cWidth) { sLeft.add(sRight).show()._outerHeight(tHeight); if (opts.toolPosition == 'left'){ tool.css({ left: sLeft.outerWidth(), right: '' }); wrap.css({ marginLeft: sLeft.outerWidth() + tool._outerWidth(), marginRight: sRight._outerWidth(), width: cWidth - sLeft.outerWidth() - sRight.outerWidth() }); } else { tool.css({ left: '', right: sRight.outerWidth() }); wrap.css({ marginLeft: sLeft.outerWidth(), marginRight: sRight.outerWidth() + tool._outerWidth(), width: cWidth - sLeft.outerWidth() - sRight.outerWidth() }); } } else { sLeft.add(sRight).hide(); if (opts.toolPosition == 'left'){ tool.css({ left: 0, right: '' }); wrap.css({ marginLeft: tool._outerWidth(), marginRight: 0, width: cWidth }); } else { tool.css({ left: '', right: 0 }); wrap.css({ marginLeft: 0, marginRight: tool._outerWidth(), width: cWidth }); } } } function addTools(container){ var opts = $.data(container, 'tabs').options; var header = $(container).children('div.tabs-header'); if (opts.tools) { if (typeof opts.tools == 'string'){ $(opts.tools).addClass('tabs-tool').appendTo(header); $(opts.tools).show(); } else { header.children('div.tabs-tool').remove(); var tools = $('
                                            ').appendTo(header); var tr = tools.find('tr'); for(var i=0; i').appendTo(tr); var tool = $('').appendTo(td); tool[0].onclick = eval(opts.tools[i].handler || function(){}); tool.linkbutton($.extend({}, opts.tools[i], { plain: true })); } } } else { header.children('div.tabs-tool').remove(); } } function setSize(container, param) { var state = $.data(container, 'tabs'); var opts = state.options; var cc = $(container); if (param){ $.extend(opts, { width: param.width, height: param.height }); } cc._size(opts); var header = cc.children('div.tabs-header'); var panels = cc.children('div.tabs-panels'); var wrap = header.find('div.tabs-wrap'); var ul = wrap.find('.tabs'); for(var i=0; i').insertBefore(cc); cc.children('div').each(function(){ pp[0].appendChild(this); }); cc[0].appendChild(pp[0]); // cc.wrapInner('
                                            '); $('
                                            ' + '
                                            ' + '
                                            ' + '
                                            ' + '
                                              ' + '
                                              ' + '
                                              ').prependTo(container); cc.children('div.tabs-panels').children('div').each(function(i){ var opts = $.extend({}, $.parser.parseOptions(this), { selected: ($(this).attr('selected') ? true : undefined) }); var pp = $(this); tabs.push(pp); createTab(container, pp, opts); }); cc.children('div.tabs-header').find('.tabs-scroller-left, .tabs-scroller-right').hover( function(){$(this).addClass('tabs-scroller-over');}, function(){$(this).removeClass('tabs-scroller-over');} ); cc.bind('_resize', function(e,force){ if ($(this).hasClass('easyui-fluid') || force){ setSize(container); setSelectedSize(container); } return false; }); } function bindEvents(container){ var state = $.data(container, 'tabs') var opts = state.options; $(container).children('div.tabs-header').unbind().bind('click', function(e){ if ($(e.target).hasClass('tabs-scroller-left')){ $(container).tabs('scrollBy', -opts.scrollIncrement); } else if ($(e.target).hasClass('tabs-scroller-right')){ $(container).tabs('scrollBy', opts.scrollIncrement); } else { var li = $(e.target).closest('li'); if (li.hasClass('tabs-disabled')){return;} var a = $(e.target).closest('a.tabs-close'); if (a.length){ closeTab(container, getLiIndex(li)); } else if (li.length){ // selectTab(container, getLiIndex(li)); var index = getLiIndex(li); var popts = state.tabs[index].panel('options'); if (popts.collapsible){ popts.closed ? selectTab(container, index) : unselectTab(container, index); } else { selectTab(container, index); } } } }).bind('contextmenu', function(e){ var li = $(e.target).closest('li'); if (li.hasClass('tabs-disabled')){return;} if (li.length){ opts.onContextMenu.call(container, e, li.find('span.tabs-title').html(), getLiIndex(li)); } }); function getLiIndex(li){ var index = 0; li.parent().children('li').each(function(i){ if (li[0] == this){ index = i; return false; } }); return index; } } function setProperties(container){ var opts = $.data(container, 'tabs').options; var header = $(container).children('div.tabs-header'); var panels = $(container).children('div.tabs-panels'); header.removeClass('tabs-header-top tabs-header-bottom tabs-header-left tabs-header-right'); panels.removeClass('tabs-panels-top tabs-panels-bottom tabs-panels-left tabs-panels-right'); if (opts.tabPosition == 'top'){ header.insertBefore(panels); } else if (opts.tabPosition == 'bottom'){ header.insertAfter(panels); header.addClass('tabs-header-bottom'); panels.addClass('tabs-panels-top'); } else if (opts.tabPosition == 'left'){ header.addClass('tabs-header-left'); panels.addClass('tabs-panels-right'); } else if (opts.tabPosition == 'right'){ header.addClass('tabs-header-right'); panels.addClass('tabs-panels-left'); } if (opts.plain == true) { header.addClass('tabs-header-plain'); } else { header.removeClass('tabs-header-plain'); } if (opts.border == true){ header.removeClass('tabs-header-noborder'); panels.removeClass('tabs-panels-noborder'); } else { header.addClass('tabs-header-noborder'); panels.addClass('tabs-panels-noborder'); } } function createTab(container, pp, options) { var state = $.data(container, 'tabs'); options = options || {}; // create panel pp.panel($.extend({}, options, { border: false, noheader: true, closed: true, doSize: false, iconCls: (options.icon ? options.icon : undefined), onLoad: function(){ if (options.onLoad){ options.onLoad.call(this, arguments); } state.options.onLoad.call(container, $(this)); } })); var opts = pp.panel('options'); var tabs = $(container).children('div.tabs-header').find('ul.tabs'); opts.tab = $('
                                            • ').appendTo(tabs); // set the tab object in panel options opts.tab.append( '' + '' + '' + '' ); // only update the tab header $(container).tabs('update', { tab: pp, options: opts, type: 'header' }); } function addTab(container, options) { var state = $.data(container, 'tabs'); var opts = state.options; var tabs = state.tabs; if (options.selected == undefined) options.selected = true; var pp = $('
                                              ').appendTo($(container).children('div.tabs-panels')); tabs.push(pp); createTab(container, pp, options); opts.onAdd.call(container, options.title, tabs.length-1); setSize(container); if (options.selected){ selectTab(container, tabs.length-1); // select the added tab panel } } /** * update tab panel, param has following properties: * tab: the tab panel to be updated * options: the tab panel options * type: the update type, possible values are: 'header','body','all' */ function updateTab(container, param){ param.type = param.type || 'all'; var selectHis = $.data(container, 'tabs').selectHis; var pp = param.tab; // the tab panel var oldTitle = pp.panel('options').title; if (param.type == 'all' || param == 'body'){ pp.panel($.extend({}, param.options, { iconCls: (param.options.icon ? param.options.icon : undefined) })); } if (param.type == 'all' || param.type == 'header'){ var opts = pp.panel('options'); // get the tab panel options var tab = opts.tab; var s_title = tab.find('span.tabs-title'); var s_icon = tab.find('span.tabs-icon'); s_title.html(opts.title); s_icon.attr('class', 'tabs-icon'); tab.find('a.tabs-close').remove(); if (opts.closable){ s_title.addClass('tabs-closable'); $('').appendTo(tab); } else{ s_title.removeClass('tabs-closable'); } if (opts.iconCls){ s_title.addClass('tabs-with-icon'); s_icon.addClass(opts.iconCls); } else { s_title.removeClass('tabs-with-icon'); } if (oldTitle != opts.title){ for(var i=0; i').insertAfter(tab.find('a.tabs-inner')); if ($.isArray(opts.tools)){ for(var i=0; i').appendTo(p_tool); t.addClass(opts.tools[i].iconCls); if (opts.tools[i].handler){ t.bind('click', {handler:opts.tools[i].handler}, function(e){ if ($(this).parents('li').hasClass('tabs-disabled')){return;} e.data.handler.call(this); }); } } } else { $(opts.tools).children().appendTo(p_tool); } var pr = p_tool.children().length * 12; if (opts.closable) { pr += 8; } else { pr -= 3; p_tool.css('right','5px'); } s_title.css('padding-right', pr+'px'); } } setSize(container); $.data(container, 'tabs').options.onUpdate.call(container, opts.title, getTabIndex(container, pp)); } /** * close a tab with specified index or title */ function closeTab(container, which) { var opts = $.data(container, 'tabs').options; var tabs = $.data(container, 'tabs').tabs; var selectHis = $.data(container, 'tabs').selectHis; if (!exists(container, which)) return; var tab = getTab(container, which); var title = tab.panel('options').title; var index = getTabIndex(container, tab); if (opts.onBeforeClose.call(container, title, index) == false) return; var tab = getTab(container, which, true); tab.panel('options').tab.remove(); tab.panel('destroy'); opts.onClose.call(container, title, index); // setScrollers(container); setSize(container); // remove the select history item for(var i=0; i= tabs.length){ return null; } else { var tab = tabs[which]; if (removeit) { tabs.splice(which, 1); } return tab; } } for(var i=0; idiv.tabs-header>div.tabs-wrap'); var left = tab.position().left; var right = left + tab.outerWidth(); if (left < 0 || right > wrap.width()){ var deltaX = left - (wrap.width()-tab.width()) / 2; $(container).tabs('scrollBy', deltaX); } else { $(container).tabs('scrollBy', 0); } setSelectedSize(container); opts.onSelect.call(container, title, getTabIndex(container, panel)); } function unselectTab(container, which){ var state = $.data(container, 'tabs'); var p = getTab(container, which); if (p){ var opts = p.panel('options'); if (!opts.closed){ p.panel('close'); if (opts.closed){ opts.tab.removeClass('tabs-selected'); state.options.onUnselect.call(container, opts.title, getTabIndex(container, p)); } } } } function exists(container, which){ return getTab(container, which) != null; } function showHeader(container, visible){ var opts = $.data(container, 'tabs').options; opts.showHeader = visible; $(container).tabs('resize'); } $.fn.tabs = function(options, param){ if (typeof options == 'string') { return $.fn.tabs.methods[options](this, param); } options = options || {}; return this.each(function(){ var state = $.data(this, 'tabs'); if (state) { $.extend(state.options, options); } else { $.data(this, 'tabs', { options: $.extend({},$.fn.tabs.defaults, $.fn.tabs.parseOptions(this), options), tabs: [], selectHis: [] }); wrapTabs(this); } addTools(this); setProperties(this); setSize(this); bindEvents(this); doFirstSelect(this); }); }; $.fn.tabs.methods = { options: function(jq){ var cc = jq[0]; var opts = $.data(cc, 'tabs').options; var s = getSelectedTab(cc); opts.selected = s ? getTabIndex(cc, s) : -1; return opts; }, tabs: function(jq){ return $.data(jq[0], 'tabs').tabs; }, resize: function(jq, param){ return jq.each(function(){ setSize(this, param); setSelectedSize(this); }); }, add: function(jq, options){ return jq.each(function(){ addTab(this, options); }); }, close: function(jq, which){ return jq.each(function(){ closeTab(this, which); }); }, getTab: function(jq, which){ return getTab(jq[0], which); }, getTabIndex: function(jq, tab){ return getTabIndex(jq[0], tab); }, getSelected: function(jq){ return getSelectedTab(jq[0]); }, select: function(jq, which){ return jq.each(function(){ selectTab(this, which); }); }, unselect: function(jq, which){ return jq.each(function(){ unselectTab(this, which); }); }, exists: function(jq, which){ return exists(jq[0], which); }, update: function(jq, options){ return jq.each(function(){ updateTab(this, options); }); }, enableTab: function(jq, which){ return jq.each(function(){ $(this).tabs('getTab', which).panel('options').tab.removeClass('tabs-disabled'); }); }, disableTab: function(jq, which){ return jq.each(function(){ $(this).tabs('getTab', which).panel('options').tab.addClass('tabs-disabled'); }); }, showHeader: function(jq){ return jq.each(function(){ showHeader(this, true); }); }, hideHeader: function(jq){ return jq.each(function(){ showHeader(this, false); }); }, scrollBy: function(jq, deltaX){ // scroll the tab header by the specified amount of pixels return jq.each(function(){ var opts = $(this).tabs('options'); var wrap = $(this).find('>div.tabs-header>div.tabs-wrap'); var pos = Math.min(wrap._scrollLeft() + deltaX, getMaxScrollWidth()); wrap.animate({scrollLeft: pos}, opts.scrollDuration); function getMaxScrollWidth(){ var w = 0; var ul = wrap.children('ul'); ul.children('li').each(function(){ w += $(this).outerWidth(true); }); return w - wrap.width() + (ul.outerWidth() - ul.width()); } }); } }; $.fn.tabs.parseOptions = function(target){ return $.extend({}, $.parser.parseOptions(target, [ 'tools','toolPosition','tabPosition', {fit:'boolean',border:'boolean',plain:'boolean',headerWidth:'number',tabWidth:'number',tabHeight:'number',selected:'number',showHeader:'boolean'} ])); }; $.fn.tabs.defaults = { width: 'auto', height: 'auto', headerWidth: 150, // the tab header width, it is valid only when tabPosition set to 'left' or 'right' tabWidth: 'auto', // the tab width tabHeight: 27, // the tab height selected: 0, // the initialized selected tab index showHeader: true, plain: false, fit: false, border: true, tools: null, toolPosition: 'right', // left,right tabPosition: 'top', // possible values: top,bottom scrollIncrement: 100, scrollDuration: 400, onLoad: function(panel){}, onSelect: function(title, index){}, onUnselect: function(title, index){}, onBeforeClose: function(title, index){}, onClose: function(title, index){}, onAdd: function(title, index){}, onUpdate: function(title, index){}, onContextMenu: function(e, title, index){} }; })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.window.js ================================================ /** * jQuery EasyUI 1.4.1 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ /** * window - jQuery EasyUI * * Dependencies: * panel * draggable * resizable * */ (function($){ function moveWindow(target, param){ var state = $.data(target, 'window'); if (param){ if (param.left != null) state.options.left = param.left; if (param.top != null) state.options.top = param.top; } $(target).panel('move', state.options); if (state.shadow){ state.shadow.css({ left: state.options.left, top: state.options.top }); } } /** * center the window only horizontally */ function hcenter(target, tomove){ var opts = $.data(target, 'window').options; var pp = $(target).window('panel'); var width = pp._outerWidth(); if (opts.inline){ var parent = pp.parent(); opts.left = Math.ceil((parent.width() - width) / 2 + parent.scrollLeft()); } else { opts.left = Math.ceil(($(window)._outerWidth() - width) / 2 + $(document).scrollLeft()); } if (tomove){moveWindow(target);} } /** * center the window only vertically */ function vcenter(target, tomove){ var opts = $.data(target, 'window').options; var pp = $(target).window('panel'); var height = pp._outerHeight(); if (opts.inline){ var parent = pp.parent(); opts.top = Math.ceil((parent.height() - height) / 2 + parent.scrollTop()); } else { opts.top = Math.ceil(($(window)._outerHeight() - height) / 2 + $(document).scrollTop()); } if (tomove){moveWindow(target);} } function create(target){ var state = $.data(target, 'window'); var opts = state.options; var win = $(target).panel($.extend({}, state.options, { border: false, doSize: true, // size the panel, the property undefined in window component closed: true, // close the panel cls: 'window', headerCls: 'window-header', bodyCls: 'window-body ' + (opts.noheader ? 'window-body-noheader' : ''), onBeforeDestroy: function(){ if (opts.onBeforeDestroy.call(target) == false){return false;} if (state.shadow){state.shadow.remove();} if (state.mask){state.mask.remove();} }, onClose: function(){ if (state.shadow){state.shadow.hide();} if (state.mask){state.mask.hide();} opts.onClose.call(target); }, onOpen: function(){ if (state.mask){ state.mask.css({ display:'block', zIndex: $.fn.window.defaults.zIndex++ }); } if (state.shadow){ state.shadow.css({ display:'block', zIndex: $.fn.window.defaults.zIndex++, left: opts.left, top: opts.top, width: state.window._outerWidth(), height: state.window._outerHeight() }); } state.window.css('z-index', $.fn.window.defaults.zIndex++); opts.onOpen.call(target); }, onResize: function(width, height){ var popts = $(this).panel('options'); $.extend(opts, { width: popts.width, height: popts.height, left: popts.left, top: popts.top }); if (state.shadow){ state.shadow.css({ left: opts.left, top: opts.top, width: state.window._outerWidth(), height: state.window._outerHeight() }); } opts.onResize.call(target, width, height); }, onMinimize: function(){ if (state.shadow){state.shadow.hide();} if (state.mask){state.mask.hide();} state.options.onMinimize.call(target); }, onBeforeCollapse: function(){ if (opts.onBeforeCollapse.call(target) == false){return false;} if (state.shadow){state.shadow.hide();} }, onExpand: function(){ if (state.shadow){state.shadow.show();} opts.onExpand.call(target); } })); state.window = win.panel('panel'); // create mask if (state.mask){state.mask.remove();} if (opts.modal == true){ state.mask = $('
                                              ').insertAfter(state.window); state.mask.css({ width: (opts.inline ? state.mask.parent().width() : getPageArea().width), height: (opts.inline ? state.mask.parent().height() : getPageArea().height), display: 'none' }); } // create shadow if (state.shadow){state.shadow.remove();} if (opts.shadow == true){ state.shadow = $('
                                              ').insertAfter(state.window); state.shadow.css({ display: 'none' }); } // if require center the window if (opts.left == null){hcenter(target);} if (opts.top == null){vcenter(target);} moveWindow(target); if (!opts.closed){ win.window('open'); // open the window } } /** * set window drag and resize property */ function setProperties(target){ var state = $.data(target, 'window'); state.window.draggable({ handle: '>div.panel-header>div.panel-title', disabled: state.options.draggable == false, onStartDrag: function(e){ if (state.mask) state.mask.css('z-index', $.fn.window.defaults.zIndex++); if (state.shadow) state.shadow.css('z-index', $.fn.window.defaults.zIndex++); state.window.css('z-index', $.fn.window.defaults.zIndex++); if (!state.proxy){ state.proxy = $('
                                              ').insertAfter(state.window); } state.proxy.css({ display:'none', zIndex: $.fn.window.defaults.zIndex++, left: e.data.left, top: e.data.top }); state.proxy._outerWidth(state.window._outerWidth()); state.proxy._outerHeight(state.window._outerHeight()); setTimeout(function(){ if (state.proxy) state.proxy.show(); }, 500); }, onDrag: function(e){ state.proxy.css({ display:'block', left: e.data.left, top: e.data.top }); return false; }, onStopDrag: function(e){ state.options.left = e.data.left; state.options.top = e.data.top; $(target).window('move'); state.proxy.remove(); state.proxy = null; } }); state.window.resizable({ disabled: state.options.resizable == false, onStartResize:function(e){ if (state.pmask){state.pmask.remove();} state.pmask = $('
                                              ').insertAfter(state.window); state.pmask.css({ zIndex: $.fn.window.defaults.zIndex++, left: e.data.left, top: e.data.top, width: state.window._outerWidth(), height: state.window._outerHeight() }); if (state.proxy){state.proxy.remove();} state.proxy = $('
                                              ').insertAfter(state.window); state.proxy.css({ zIndex: $.fn.window.defaults.zIndex++, left: e.data.left, top: e.data.top }); state.proxy._outerWidth(e.data.width)._outerHeight(e.data.height); }, onResize: function(e){ state.proxy.css({ left: e.data.left, top: e.data.top }); state.proxy._outerWidth(e.data.width); state.proxy._outerHeight(e.data.height); return false; }, onStopResize: function(e){ $(target).window('resize', e.data); state.pmask.remove(); state.pmask = null; state.proxy.remove(); state.proxy = null; } }); } function getPageArea() { if (document.compatMode == 'BackCompat') { return { width: Math.max(document.body.scrollWidth, document.body.clientWidth), height: Math.max(document.body.scrollHeight, document.body.clientHeight) } } else { return { width: Math.max(document.documentElement.scrollWidth, document.documentElement.clientWidth), height: Math.max(document.documentElement.scrollHeight, document.documentElement.clientHeight) } } } // when window resize, reset the width and height of the window's mask $(window).resize(function(){ $('body>div.window-mask').css({ width: $(window)._outerWidth(), height: $(window)._outerHeight() }); setTimeout(function(){ $('body>div.window-mask').css({ width: getPageArea().width, height: getPageArea().height }); }, 50); }); $.fn.window = function(options, param){ if (typeof options == 'string'){ var method = $.fn.window.methods[options]; if (method){ return method(this, param); } else { return this.panel(options, param); } } options = options || {}; return this.each(function(){ var state = $.data(this, 'window'); if (state){ $.extend(state.options, options); } else { state = $.data(this, 'window', { options: $.extend({}, $.fn.window.defaults, $.fn.window.parseOptions(this), options) }); if (!state.options.inline){ // $(this).appendTo('body'); document.body.appendChild(this); } } create(this); setProperties(this); }); }; $.fn.window.methods = { options: function(jq){ var popts = jq.panel('options'); var wopts = $.data(jq[0], 'window').options; return $.extend(wopts, { closed: popts.closed, collapsed: popts.collapsed, minimized: popts.minimized, maximized: popts.maximized }); }, window: function(jq){ return $.data(jq[0], 'window').window; }, move: function(jq, param){ return jq.each(function(){ moveWindow(this, param); }); }, hcenter: function(jq){ return jq.each(function(){ hcenter(this, true); }); }, vcenter: function(jq){ return jq.each(function(){ vcenter(this, true); }); }, center: function(jq){ return jq.each(function(){ hcenter(this); vcenter(this); moveWindow(this); }); } }; $.fn.window.parseOptions = function(target){ return $.extend({}, $.fn.panel.parseOptions(target), $.parser.parseOptions(target, [ {draggable:'boolean',resizable:'boolean',shadow:'boolean',modal:'boolean',inline:'boolean'} ])); }; // Inherited from $.fn.panel.defaults $.fn.window.defaults = $.extend({}, $.fn.panel.defaults, { zIndex: 9000, draggable: true, resizable: true, shadow: true, modal: false, inline: false, // true to stay inside its parent, false to go on top of all elements // window's property which difference from panel title: 'New Window', collapsible: true, minimizable: true, maximizable: true, closable: true, closed: false }); })(jQuery); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/accordion.css ================================================ .accordion { overflow: hidden; border-width: 1px; border-style: solid; } .accordion .accordion-header { border-width: 0 0 1px; cursor: pointer; } .accordion .accordion-body { border-width: 0 0 1px; } .accordion-noborder { border-width: 0; } .accordion-noborder .accordion-header { border-width: 0 0 1px; } .accordion-noborder .accordion-body { border-width: 0 0 1px; } .accordion-collapse { background: url('images/accordion_arrows.png') no-repeat 0 0; } .accordion-expand { background: url('images/accordion_arrows.png') no-repeat -16px 0; } .accordion { background: #666; border-color: #000; } .accordion .accordion-header { background: #3d3d3d; filter: none; } .accordion .accordion-header-selected { background: #0052A3; } .accordion .accordion-header-selected .panel-title { color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/calendar.css ================================================ .calendar { border-width: 1px; border-style: solid; padding: 1px; overflow: hidden; } .calendar table { table-layout: fixed; border-collapse: separate; font-size: 12px; width: 100%; height: 100%; } .calendar table td, .calendar table th { font-size: 12px; } .calendar-noborder { border: 0; } .calendar-header { position: relative; height: 22px; } .calendar-title { text-align: center; height: 22px; } .calendar-title span { position: relative; display: inline-block; top: 2px; padding: 0 3px; height: 18px; line-height: 18px; font-size: 12px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth, .calendar-nextmonth, .calendar-prevyear, .calendar-nextyear { position: absolute; top: 50%; margin-top: -7px; width: 14px; height: 14px; cursor: pointer; font-size: 1px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth { left: 20px; background: url('images/calendar_arrows.png') no-repeat -18px -2px; } .calendar-nextmonth { right: 20px; background: url('images/calendar_arrows.png') no-repeat -34px -2px; } .calendar-prevyear { left: 3px; background: url('images/calendar_arrows.png') no-repeat -1px -2px; } .calendar-nextyear { right: 3px; background: url('images/calendar_arrows.png') no-repeat -49px -2px; } .calendar-body { position: relative; } .calendar-body th, .calendar-body td { text-align: center; } .calendar-day { border: 0; padding: 1px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-other-month { opacity: 0.3; filter: alpha(opacity=30); } .calendar-disabled { opacity: 0.6; filter: alpha(opacity=60); cursor: default; } .calendar-menu { position: absolute; top: 0; left: 0; width: 180px; height: 150px; padding: 5px; font-size: 12px; display: none; overflow: hidden; } .calendar-menu-year-inner { text-align: center; padding-bottom: 5px; } .calendar-menu-year { width: 40px; text-align: center; border-width: 1px; border-style: solid; margin: 0; padding: 2px; font-weight: bold; font-size: 12px; } .calendar-menu-prev, .calendar-menu-next { display: inline-block; width: 21px; height: 21px; vertical-align: top; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-menu-prev { margin-right: 10px; background: url('images/calendar_arrows.png') no-repeat 2px 2px; } .calendar-menu-next { margin-left: 10px; background: url('images/calendar_arrows.png') no-repeat -45px 2px; } .calendar-menu-month { text-align: center; cursor: pointer; font-weight: bold; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-body th, .calendar-menu-month { color: #ffffff; } .calendar-day { color: #fff; } .calendar-sunday { color: #CC2222; } .calendar-saturday { color: #00ee00; } .calendar-today { color: #0000ff; } .calendar-menu-year { border-color: #000; } .calendar { border-color: #000; } .calendar-header { background: #3d3d3d; } .calendar-body, .calendar-menu { background: #666; } .calendar-body th { background: #555; padding: 2px 0; } .calendar-hover, .calendar-nav-hover, .calendar-menu-hover { background-color: #777; color: #fff; } .calendar-hover { border: 1px solid #555; padding: 0; } .calendar-selected { background-color: #0052A3; color: #fff; border: 1px solid #00458a; padding: 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/combo.css ================================================ .combo { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .combo .combo-text { font-size: 12px; border: 0px; margin: 0; padding: 0px 2px; vertical-align: baseline; } .combo-arrow { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .combo-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .combo-panel { overflow: auto; } .combo-arrow { background: url('images/combo_arrow.png') no-repeat center center; } .combo-panel { background-color: #666; } .combo { border-color: #000; background-color: #fff; } .combo-arrow { background-color: #3d3d3d; } .combo-arrow-hover { background-color: #777; } .combo-arrow:hover { background-color: #777; } .combo .textbox-icon-disabled:hover { cursor: default; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/combobox.css ================================================ .combobox-item, .combobox-group { font-size: 12px; padding: 3px; padding-right: 0px; } .combobox-item-disabled { opacity: 0.5; filter: alpha(opacity=50); } .combobox-gitem { padding-left: 10px; } .combobox-group { font-weight: bold; } .combobox-item-hover { background-color: #777; color: #fff; } .combobox-item-selected { background-color: #0052A3; color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/datagrid.css ================================================ .datagrid .panel-body { overflow: hidden; position: relative; } .datagrid-view { position: relative; overflow: hidden; } .datagrid-view1, .datagrid-view2 { position: absolute; overflow: hidden; top: 0; } .datagrid-view1 { left: 0; } .datagrid-view2 { right: 0; } .datagrid-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.3; filter: alpha(opacity=30); display: none; } .datagrid-mask-msg { position: absolute; top: 50%; margin-top: -20px; padding: 10px 5px 10px 30px; width: auto; height: 16px; border-width: 2px; border-style: solid; display: none; } .datagrid-sort-icon { padding: 0; } .datagrid-toolbar { height: auto; padding: 1px 2px; border-width: 0 0 1px 0; border-style: solid; } .datagrid-btn-separator { float: left; height: 24px; border-left: 1px solid #444; border-right: 1px solid #777; margin: 2px 1px; } .datagrid .datagrid-pager { display: block; margin: 0; border-width: 1px 0 0 0; border-style: solid; } .datagrid .datagrid-pager-top { border-width: 0 0 1px 0; } .datagrid-header { overflow: hidden; cursor: default; border-width: 0 0 1px 0; border-style: solid; } .datagrid-header-inner { float: left; width: 10000px; } .datagrid-header-row, .datagrid-row { height: 25px; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-width: 0 1px 1px 0; border-style: dotted; margin: 0; padding: 0; } .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber { margin: 0; padding: 0 4px; white-space: nowrap; word-wrap: normal; overflow: hidden; height: 18px; line-height: 18px; font-size: 12px; } .datagrid-header .datagrid-cell { height: auto; } .datagrid-header .datagrid-cell span { font-size: 12px; } .datagrid-cell-group { text-align: center; } .datagrid-header-rownumber, .datagrid-cell-rownumber { width: 25px; text-align: center; margin: 0; padding: 0; } .datagrid-body { margin: 0; padding: 0; overflow: auto; zoom: 1; } .datagrid-view1 .datagrid-body-inner { padding-bottom: 20px; } .datagrid-view1 .datagrid-body { overflow: hidden; } .datagrid-footer { overflow: hidden; } .datagrid-footer-inner { border-width: 1px 0 0 0; border-style: solid; width: 10000px; float: left; } .datagrid-row-editing .datagrid-cell { height: auto; } .datagrid-header-check, .datagrid-cell-check { padding: 0; width: 27px; height: 18px; font-size: 1px; text-align: center; overflow: hidden; } .datagrid-header-check input, .datagrid-cell-check input { margin: 0; padding: 0; width: 15px; height: 18px; } .datagrid-resize-proxy { position: absolute; width: 1px; height: 10000px; top: 0; cursor: e-resize; display: none; } .datagrid-body .datagrid-editable { margin: 0; padding: 0; } .datagrid-body .datagrid-editable table { width: 100%; height: 100%; } .datagrid-body .datagrid-editable td { border: 0; margin: 0; padding: 0; } .datagrid-view .datagrid-editable-input { margin: 0; padding: 2px 4px; border: 1px solid #000; font-size: 12px; outline-style: none; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .datagrid-sort-desc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat -16px center; } .datagrid-sort-asc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat 0px center; } .datagrid-row-collapse { background: url('images/datagrid_icons.png') no-repeat -48px center; } .datagrid-row-expand { background: url('images/datagrid_icons.png') no-repeat -32px center; } .datagrid-mask-msg { background: #666 url('images/loading.gif') no-repeat scroll 5px center; } .datagrid-header, .datagrid-td-rownumber { background-color: #444; background: -webkit-linear-gradient(top,#4c4c4c 0,#3f3f3f 100%); background: -moz-linear-gradient(top,#4c4c4c 0,#3f3f3f 100%); background: -o-linear-gradient(top,#4c4c4c 0,#3f3f3f 100%); background: linear-gradient(to bottom,#4c4c4c 0,#3f3f3f 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4c4c4c,endColorstr=#3f3f3f,GradientType=0); } .datagrid-cell-rownumber { color: #fff; } .datagrid-resize-proxy { background: #cccccc; } .datagrid-mask { background: #000; } .datagrid-mask-msg { border-color: #000; } .datagrid-toolbar, .datagrid-pager { background: #555; } .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner { border-color: #222; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-color: #222; } .datagrid-htable, .datagrid-btable, .datagrid-ftable { color: #fff; border-collapse: separate; } .datagrid-row-alt { background: #555; } .datagrid-row-over, .datagrid-header td.datagrid-header-over { background: #777; color: #fff; cursor: default; } .datagrid-row-selected { background: #0052A3; color: #fff; } .datagrid-row-editing .textbox, .datagrid-row-editing .textbox-text { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/datebox.css ================================================ .datebox-calendar-inner { height: 180px; } .datebox-button { height: 18px; padding: 2px 5px; text-align: center; } .datebox-button a { font-size: 12px; font-weight: bold; text-decoration: none; opacity: 0.6; filter: alpha(opacity=60); } .datebox-button a:hover { opacity: 1.0; filter: alpha(opacity=100); } .datebox-current, .datebox-close { float: left; } .datebox-close { float: right; } .datebox .combo-arrow { background-image: url('images/datebox_arrow.png'); background-position: center center; } .datebox-button { background-color: #555; } .datebox-button a { color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/dialog.css ================================================ .dialog-content { overflow: auto; } .dialog-toolbar { padding: 2px 5px; } .dialog-tool-separator { float: left; height: 24px; border-left: 1px solid #444; border-right: 1px solid #777; margin: 2px 1px; } .dialog-button { padding: 5px; text-align: right; } .dialog-button .l-btn { margin-left: 5px; } .dialog-toolbar, .dialog-button { background: #555; border-width: 1px; border-style: solid; } .dialog-toolbar { border-color: #000 #000 #222 #000; } .dialog-button { border-color: #222 #000 #000 #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/easyui.css ================================================ .panel { overflow: hidden; text-align: left; margin: 0; border: 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .panel-header, .panel-body { border-width: 1px; border-style: solid; } .panel-header { padding: 5px; position: relative; } .panel-title { background: url('images/blank.gif') no-repeat; } .panel-header-noborder { border-width: 0 0 1px 0; } .panel-body { overflow: auto; border-top-width: 0; padding: 0; } .panel-body-noheader { border-top-width: 1px; } .panel-body-noborder { border-width: 0px; } .panel-body-nobottom { border-bottom-width: 0; } .panel-with-icon { padding-left: 18px; } .panel-icon, .panel-tool { position: absolute; top: 50%; margin-top: -8px; height: 16px; overflow: hidden; } .panel-icon { left: 5px; width: 16px; } .panel-tool { right: 5px; width: auto; } .panel-tool a { display: inline-block; width: 16px; height: 16px; opacity: 0.6; filter: alpha(opacity=60); margin: 0 0 0 2px; vertical-align: top; } .panel-tool a:hover { opacity: 1; filter: alpha(opacity=100); background-color: #777; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; } .panel-loading { padding: 11px 0px 10px 30px; } .panel-noscroll { overflow: hidden; } .panel-fit, .panel-fit body { height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .panel-loading { background: url('images/loading.gif') no-repeat 10px 10px; } .panel-tool-close { background: url('images/panel_tools.png') no-repeat -16px 0px; } .panel-tool-min { background: url('images/panel_tools.png') no-repeat 0px 0px; } .panel-tool-max { background: url('images/panel_tools.png') no-repeat 0px -16px; } .panel-tool-restore { background: url('images/panel_tools.png') no-repeat -16px -16px; } .panel-tool-collapse { background: url('images/panel_tools.png') no-repeat -32px 0; } .panel-tool-expand { background: url('images/panel_tools.png') no-repeat -32px -16px; } .panel-header, .panel-body { border-color: #000; } .panel-header { background-color: #3d3d3d; background: -webkit-linear-gradient(top,#454545 0,#383838 100%); background: -moz-linear-gradient(top,#454545 0,#383838 100%); background: -o-linear-gradient(top,#454545 0,#383838 100%); background: linear-gradient(to bottom,#454545 0,#383838 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#454545,endColorstr=#383838,GradientType=0); } .panel-body { background-color: #666; color: #fff; font-size: 12px; } .panel-title { font-size: 12px; font-weight: bold; color: #fff; height: 16px; line-height: 16px; } .panel-footer { border: 1px solid #000; overflow: hidden; background: #555; } .panel-footer-noborder { border-width: 1px 0 0 0; } .accordion { overflow: hidden; border-width: 1px; border-style: solid; } .accordion .accordion-header { border-width: 0 0 1px; cursor: pointer; } .accordion .accordion-body { border-width: 0 0 1px; } .accordion-noborder { border-width: 0; } .accordion-noborder .accordion-header { border-width: 0 0 1px; } .accordion-noborder .accordion-body { border-width: 0 0 1px; } .accordion-collapse { background: url('images/accordion_arrows.png') no-repeat 0 0; } .accordion-expand { background: url('images/accordion_arrows.png') no-repeat -16px 0; } .accordion { background: #666; border-color: #000; } .accordion .accordion-header { background: #3d3d3d; filter: none; } .accordion .accordion-header-selected { background: #0052A3; } .accordion .accordion-header-selected .panel-title { color: #fff; } .window { overflow: hidden; padding: 5px; border-width: 1px; border-style: solid; } .window .window-header { background: transparent; padding: 0px 0px 6px 0px; } .window .window-body { border-width: 1px; border-style: solid; border-top-width: 0px; } .window .window-body-noheader { border-top-width: 1px; } .window .panel-body-nobottom { border-bottom-width: 0; } .window .window-header .panel-icon, .window .window-header .panel-tool { top: 50%; margin-top: -11px; } .window .window-header .panel-icon { left: 1px; } .window .window-header .panel-tool { right: 1px; } .window .window-header .panel-with-icon { padding-left: 18px; } .window-proxy { position: absolute; overflow: hidden; } .window-proxy-mask { position: absolute; filter: alpha(opacity=5); opacity: 0.05; } .window-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: alpha(opacity=40); opacity: 0.40; font-size: 1px; overflow: hidden; } .window, .window-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .window-shadow { background: #777; -moz-box-shadow: 2px 2px 3px #787878; -webkit-box-shadow: 2px 2px 3px #787878; box-shadow: 2px 2px 3px #787878; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .window, .window .window-body { border-color: #000; } .window { background-color: #3d3d3d; background: -webkit-linear-gradient(top,#454545 0,#383838 20%); background: -moz-linear-gradient(top,#454545 0,#383838 20%); background: -o-linear-gradient(top,#454545 0,#383838 20%); background: linear-gradient(to bottom,#454545 0,#383838 20%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#454545,endColorstr=#383838,GradientType=0); } .window-proxy { border: 1px dashed #000; } .window-proxy-mask, .window-mask { background: #000; } .window .panel-footer { border: 1px solid #000; position: relative; top: -1px; } .dialog-content { overflow: auto; } .dialog-toolbar { padding: 2px 5px; } .dialog-tool-separator { float: left; height: 24px; border-left: 1px solid #444; border-right: 1px solid #777; margin: 2px 1px; } .dialog-button { padding: 5px; text-align: right; } .dialog-button .l-btn { margin-left: 5px; } .dialog-toolbar, .dialog-button { background: #555; border-width: 1px; border-style: solid; } .dialog-toolbar { border-color: #000 #000 #222 #000; } .dialog-button { border-color: #222 #000 #000 #000; } .l-btn { text-decoration: none; display: inline-block; overflow: hidden; margin: 0; padding: 0; cursor: pointer; outline: none; text-align: center; vertical-align: middle; } .l-btn-plain { border: 0; padding: 1px; } .l-btn-left { display: inline-block; position: relative; overflow: hidden; margin: 0; padding: 0; vertical-align: top; } .l-btn-text { display: inline-block; vertical-align: top; width: auto; line-height: 24px; font-size: 12px; padding: 0; margin: 0 4px; } .l-btn-icon { display: inline-block; width: 16px; height: 16px; line-height: 16px; position: absolute; top: 50%; margin-top: -8px; font-size: 1px; } .l-btn span span .l-btn-empty { display: inline-block; margin: 0; width: 16px; height: 24px; font-size: 1px; vertical-align: top; } .l-btn span .l-btn-icon-left { padding: 0 0 0 20px; background-position: left center; } .l-btn span .l-btn-icon-right { padding: 0 20px 0 0; background-position: right center; } .l-btn-icon-left .l-btn-text { margin: 0 4px 0 24px; } .l-btn-icon-left .l-btn-icon { left: 4px; } .l-btn-icon-right .l-btn-text { margin: 0 24px 0 4px; } .l-btn-icon-right .l-btn-icon { right: 4px; } .l-btn-icon-top .l-btn-text { margin: 20px 4px 0 4px; } .l-btn-icon-top .l-btn-icon { top: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-icon-bottom .l-btn-text { margin: 0 4px 20px 4px; } .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-left .l-btn-empty { margin: 0 4px; width: 16px; } .l-btn-plain:hover { padding: 0; } .l-btn-focus { outline: #0000FF dotted thin; } .l-btn-large .l-btn-text { line-height: 40px; } .l-btn-large .l-btn-icon { width: 32px; height: 32px; line-height: 32px; margin-top: -16px; } .l-btn-large .l-btn-icon-left .l-btn-text { margin-left: 40px; } .l-btn-large .l-btn-icon-right .l-btn-text { margin-right: 40px; } .l-btn-large .l-btn-icon-top .l-btn-text { margin-top: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-top .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-bottom .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-left .l-btn-empty { margin: 0 4px; width: 32px; } .l-btn { color: #fff; background: #777; background-repeat: repeat-x; border: 1px solid #555; background: -webkit-linear-gradient(top,#919191 0,#6a6a6a 100%); background: -moz-linear-gradient(top,#919191 0,#6a6a6a 100%); background: -o-linear-gradient(top,#919191 0,#6a6a6a 100%); background: linear-gradient(to bottom,#919191 0,#6a6a6a 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#919191,endColorstr=#6a6a6a,GradientType=0); -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn:hover { background: #777; color: #fff; border: 1px solid #555; filter: none; } .l-btn-plain { background: transparent; border: 0; filter: none; } .l-btn-plain:hover { background: #777; color: #fff; border: 1px solid #555; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn-disabled, .l-btn-disabled:hover { opacity: 0.5; cursor: default; background: #777; color: #fff; background: -webkit-linear-gradient(top,#919191 0,#6a6a6a 100%); background: -moz-linear-gradient(top,#919191 0,#6a6a6a 100%); background: -o-linear-gradient(top,#919191 0,#6a6a6a 100%); background: linear-gradient(to bottom,#919191 0,#6a6a6a 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#919191,endColorstr=#6a6a6a,GradientType=0); } .l-btn-disabled .l-btn-text, .l-btn-disabled .l-btn-icon { filter: alpha(opacity=50); } .l-btn-plain-disabled, .l-btn-plain-disabled:hover { background: transparent; filter: alpha(opacity=50); } .l-btn-selected, .l-btn-selected:hover { background: #000; filter: none; } .l-btn-plain-selected, .l-btn-plain-selected:hover { background: #000; } .textbox { position: relative; border: 1px solid #000; background-color: #fff; vertical-align: middle; display: inline-block; overflow: hidden; white-space: nowrap; margin: 0; padding: 0; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-text { font-size: 12px; border: 0; margin: 0; padding: 4px; white-space: normal; vertical-align: top; outline-style: none; resize: none; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-prompt { font-size: 12px; color: #aaa; } .textbox-button, .textbox-button:hover { position: absolute; top: 0; padding: 0; vertical-align: top; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .textbox-button-right, .textbox-button-right:hover { border-width: 0 0 0 1px; } .textbox-button-left, .textbox-button-left:hover { border-width: 0 1px 0 0; } .textbox-addon { position: absolute; top: 0; } .textbox-icon { display: inline-block; width: 18px; height: 20px; overflow: hidden; vertical-align: top; background-position: center center; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); text-decoration: none; outline-style: none; } .textbox-icon-disabled, .textbox-icon-readonly { cursor: default; } .textbox-icon:hover { opacity: 1.0; filter: alpha(opacity=100); } .textbox-icon-disabled:hover { opacity: 0.6; filter: alpha(opacity=60); } .textbox-focused { -moz-box-shadow: 0 0 3px 0 #000; -webkit-box-shadow: 0 0 3px 0 #000; box-shadow: 0 0 3px 0 #000; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .filebox .textbox-value { vertical-align: top; position: absolute; top: 0; left: -5000px; } .combo { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .combo .combo-text { font-size: 12px; border: 0px; margin: 0; padding: 0px 2px; vertical-align: baseline; } .combo-arrow { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .combo-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .combo-panel { overflow: auto; } .combo-arrow { background: url('images/combo_arrow.png') no-repeat center center; } .combo-panel { background-color: #666; } .combo { border-color: #000; background-color: #fff; } .combo-arrow { background-color: #3d3d3d; } .combo-arrow-hover { background-color: #777; } .combo-arrow:hover { background-color: #777; } .combo .textbox-icon-disabled:hover { cursor: default; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .combobox-item, .combobox-group { font-size: 12px; padding: 3px; padding-right: 0px; } .combobox-item-disabled { opacity: 0.5; filter: alpha(opacity=50); } .combobox-gitem { padding-left: 10px; } .combobox-group { font-weight: bold; } .combobox-item-hover { background-color: #777; color: #fff; } .combobox-item-selected { background-color: #0052A3; color: #fff; } .layout { position: relative; overflow: hidden; margin: 0; padding: 0; z-index: 0; } .layout-panel { position: absolute; overflow: hidden; } .layout-panel-east, .layout-panel-west { z-index: 2; } .layout-panel-north, .layout-panel-south { z-index: 3; } .layout-expand { position: absolute; padding: 0px; font-size: 1px; cursor: pointer; z-index: 1; } .layout-expand .panel-header, .layout-expand .panel-body { background: transparent; filter: none; overflow: hidden; } .layout-expand .panel-header { border-bottom-width: 0px; } .layout-split-proxy-h, .layout-split-proxy-v { position: absolute; font-size: 1px; display: none; z-index: 5; } .layout-split-proxy-h { width: 5px; cursor: e-resize; } .layout-split-proxy-v { height: 5px; cursor: n-resize; } .layout-mask { position: absolute; background: #fafafa; filter: alpha(opacity=10); opacity: 0.10; z-index: 4; } .layout-button-up { background: url('images/layout_arrows.png') no-repeat -16px -16px; } .layout-button-down { background: url('images/layout_arrows.png') no-repeat -16px 0; } .layout-button-left { background: url('images/layout_arrows.png') no-repeat 0 0; } .layout-button-right { background: url('images/layout_arrows.png') no-repeat 0 -16px; } .layout-split-proxy-h, .layout-split-proxy-v { background-color: #cccccc; } .layout-split-north { border-bottom: 5px solid #444; } .layout-split-south { border-top: 5px solid #444; } .layout-split-east { border-left: 5px solid #444; } .layout-split-west { border-right: 5px solid #444; } .layout-expand { background-color: #3d3d3d; } .layout-expand-over { background-color: #3d3d3d; } .tabs-container { overflow: hidden; } .tabs-header { border-width: 1px; border-style: solid; border-bottom-width: 0; position: relative; padding: 0; padding-top: 2px; overflow: hidden; } .tabs-header-plain { border: 0; background: transparent; } .tabs-scroller-left, .tabs-scroller-right { position: absolute; top: auto; bottom: 0; width: 18px; font-size: 1px; display: none; cursor: pointer; border-width: 1px; border-style: solid; } .tabs-scroller-left { left: 0; } .tabs-scroller-right { right: 0; } .tabs-tool { position: absolute; bottom: 0; padding: 1px; overflow: hidden; border-width: 1px; border-style: solid; } .tabs-header-plain .tabs-tool { padding: 0 1px; } .tabs-wrap { position: relative; left: 0; overflow: hidden; width: 100%; margin: 0; padding: 0; } .tabs-scrolling { margin-left: 18px; margin-right: 18px; } .tabs-disabled { opacity: 0.3; filter: alpha(opacity=30); } .tabs { list-style-type: none; height: 26px; margin: 0px; padding: 0px; padding-left: 4px; width: 50000px; border-style: solid; border-width: 0 0 1px 0; } .tabs li { float: left; display: inline-block; margin: 0 4px -1px 0; padding: 0; position: relative; border: 0; } .tabs li a.tabs-inner { display: inline-block; text-decoration: none; margin: 0; padding: 0 10px; height: 25px; line-height: 25px; text-align: center; white-space: nowrap; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .tabs li.tabs-selected a.tabs-inner { font-weight: bold; outline: none; } .tabs li.tabs-selected a:hover.tabs-inner { cursor: default; pointer: default; } .tabs li a.tabs-close, .tabs-p-tool { position: absolute; font-size: 1px; display: block; height: 12px; padding: 0; top: 50%; margin-top: -6px; overflow: hidden; } .tabs li a.tabs-close { width: 12px; right: 5px; opacity: 0.6; filter: alpha(opacity=60); } .tabs-p-tool { right: 16px; } .tabs-p-tool a { display: inline-block; font-size: 1px; width: 12px; height: 12px; margin: 0; opacity: 0.6; filter: alpha(opacity=60); } .tabs li a:hover.tabs-close, .tabs-p-tool a:hover { opacity: 1; filter: alpha(opacity=100); cursor: hand; cursor: pointer; } .tabs-with-icon { padding-left: 18px; } .tabs-icon { position: absolute; width: 16px; height: 16px; left: 10px; top: 50%; margin-top: -8px; } .tabs-title { font-size: 12px; } .tabs-closable { padding-right: 8px; } .tabs-panels { margin: 0px; padding: 0px; border-width: 1px; border-style: solid; border-top-width: 0; overflow: hidden; } .tabs-header-bottom { border-width: 0 1px 1px 1px; padding: 0 0 2px 0; } .tabs-header-bottom .tabs { border-width: 1px 0 0 0; } .tabs-header-bottom .tabs li { margin: -1px 4px 0 0; } .tabs-header-bottom .tabs li a.tabs-inner { -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; } .tabs-header-bottom .tabs-tool { top: 0; } .tabs-header-bottom .tabs-scroller-left, .tabs-header-bottom .tabs-scroller-right { top: 0; bottom: auto; } .tabs-panels-top { border-width: 1px 1px 0 1px; } .tabs-header-left { float: left; border-width: 1px 0 1px 1px; padding: 0; } .tabs-header-right { float: right; border-width: 1px 1px 1px 0; padding: 0; } .tabs-header-left .tabs-wrap, .tabs-header-right .tabs-wrap { height: 100%; } .tabs-header-left .tabs { height: 100%; padding: 4px 0 0 4px; border-width: 0 1px 0 0; } .tabs-header-right .tabs { height: 100%; padding: 4px 4px 0 0; border-width: 0 0 0 1px; } .tabs-header-left .tabs li, .tabs-header-right .tabs li { display: block; width: 100%; position: relative; } .tabs-header-left .tabs li { left: auto; right: 0; margin: 0 -1px 4px 0; float: right; } .tabs-header-right .tabs li { left: 0; right: auto; margin: 0 0 4px -1px; float: left; } .tabs-header-left .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .tabs-header-right .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0 5px 5px 0; -webkit-border-radius: 0 5px 5px 0; border-radius: 0 5px 5px 0; } .tabs-panels-right { float: right; border-width: 1px 1px 1px 0; } .tabs-panels-left { float: left; border-width: 1px 0 1px 1px; } .tabs-header-noborder, .tabs-panels-noborder { border: 0px; } .tabs-header-plain { border: 0px; background: transparent; } .tabs-scroller-left { background: #3d3d3d url('images/tabs_icons.png') no-repeat 1px center; } .tabs-scroller-right { background: #3d3d3d url('images/tabs_icons.png') no-repeat -15px center; } .tabs li a.tabs-close { background: url('images/tabs_icons.png') no-repeat -34px center; } .tabs li a.tabs-inner:hover { background: #777; color: #fff; filter: none; } .tabs li.tabs-selected a.tabs-inner { background-color: #666; color: #fff; background: -webkit-linear-gradient(top,#454545 0,#666 100%); background: -moz-linear-gradient(top,#454545 0,#666 100%); background: -o-linear-gradient(top,#454545 0,#666 100%); background: linear-gradient(to bottom,#454545 0,#666 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#454545,endColorstr=#666,GradientType=0); } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(top,#666 0,#454545 100%); background: -moz-linear-gradient(top,#666 0,#454545 100%); background: -o-linear-gradient(top,#666 0,#454545 100%); background: linear-gradient(to bottom,#666 0,#454545 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#666,endColorstr=#454545,GradientType=0); } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#454545 0,#666 100%); background: -moz-linear-gradient(left,#454545 0,#666 100%); background: -o-linear-gradient(left,#454545 0,#666 100%); background: linear-gradient(to right,#454545 0,#666 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#454545,endColorstr=#666,GradientType=1); } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#666 0,#454545 100%); background: -moz-linear-gradient(left,#666 0,#454545 100%); background: -o-linear-gradient(left,#666 0,#454545 100%); background: linear-gradient(to right,#666 0,#454545 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#666,endColorstr=#454545,GradientType=1); } .tabs li a.tabs-inner { color: #fff; background-color: #3d3d3d; background: -webkit-linear-gradient(top,#454545 0,#383838 100%); background: -moz-linear-gradient(top,#454545 0,#383838 100%); background: -o-linear-gradient(top,#454545 0,#383838 100%); background: linear-gradient(to bottom,#454545 0,#383838 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#454545,endColorstr=#383838,GradientType=0); } .tabs-header, .tabs-tool { background-color: #3d3d3d; } .tabs-header-plain { background: transparent; } .tabs-header, .tabs-scroller-left, .tabs-scroller-right, .tabs-tool, .tabs, .tabs-panels, .tabs li a.tabs-inner, .tabs li.tabs-selected a.tabs-inner, .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner, .tabs-header-left .tabs li.tabs-selected a.tabs-inner, .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-color: #000; } .tabs-p-tool a:hover, .tabs li a:hover.tabs-close, .tabs-scroller-over { background-color: #777; } .tabs li.tabs-selected a.tabs-inner { border-bottom: 1px solid #666; } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { border-top: 1px solid #666; } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { border-right: 1px solid #666; } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-left: 1px solid #666; } .datagrid .panel-body { overflow: hidden; position: relative; } .datagrid-view { position: relative; overflow: hidden; } .datagrid-view1, .datagrid-view2 { position: absolute; overflow: hidden; top: 0; } .datagrid-view1 { left: 0; } .datagrid-view2 { right: 0; } .datagrid-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.3; filter: alpha(opacity=30); display: none; } .datagrid-mask-msg { position: absolute; top: 50%; margin-top: -20px; padding: 10px 5px 10px 30px; width: auto; height: 16px; border-width: 2px; border-style: solid; display: none; } .datagrid-sort-icon { padding: 0; } .datagrid-toolbar { height: auto; padding: 1px 2px; border-width: 0 0 1px 0; border-style: solid; } .datagrid-btn-separator { float: left; height: 24px; border-left: 1px solid #444; border-right: 1px solid #777; margin: 2px 1px; } .datagrid .datagrid-pager { display: block; margin: 0; border-width: 1px 0 0 0; border-style: solid; } .datagrid .datagrid-pager-top { border-width: 0 0 1px 0; } .datagrid-header { overflow: hidden; cursor: default; border-width: 0 0 1px 0; border-style: solid; } .datagrid-header-inner { float: left; width: 10000px; } .datagrid-header-row, .datagrid-row { height: 25px; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-width: 0 1px 1px 0; border-style: dotted; margin: 0; padding: 0; } .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber { margin: 0; padding: 0 4px; white-space: nowrap; word-wrap: normal; overflow: hidden; height: 18px; line-height: 18px; font-size: 12px; } .datagrid-header .datagrid-cell { height: auto; } .datagrid-header .datagrid-cell span { font-size: 12px; } .datagrid-cell-group { text-align: center; } .datagrid-header-rownumber, .datagrid-cell-rownumber { width: 25px; text-align: center; margin: 0; padding: 0; } .datagrid-body { margin: 0; padding: 0; overflow: auto; zoom: 1; } .datagrid-view1 .datagrid-body-inner { padding-bottom: 20px; } .datagrid-view1 .datagrid-body { overflow: hidden; } .datagrid-footer { overflow: hidden; } .datagrid-footer-inner { border-width: 1px 0 0 0; border-style: solid; width: 10000px; float: left; } .datagrid-row-editing .datagrid-cell { height: auto; } .datagrid-header-check, .datagrid-cell-check { padding: 0; width: 27px; height: 18px; font-size: 1px; text-align: center; overflow: hidden; } .datagrid-header-check input, .datagrid-cell-check input { margin: 0; padding: 0; width: 15px; height: 18px; } .datagrid-resize-proxy { position: absolute; width: 1px; height: 10000px; top: 0; cursor: e-resize; display: none; } .datagrid-body .datagrid-editable { margin: 0; padding: 0; } .datagrid-body .datagrid-editable table { width: 100%; height: 100%; } .datagrid-body .datagrid-editable td { border: 0; margin: 0; padding: 0; } .datagrid-view .datagrid-editable-input { margin: 0; padding: 2px 4px; border: 1px solid #000; font-size: 12px; outline-style: none; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .datagrid-sort-desc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat -16px center; } .datagrid-sort-asc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat 0px center; } .datagrid-row-collapse { background: url('images/datagrid_icons.png') no-repeat -48px center; } .datagrid-row-expand { background: url('images/datagrid_icons.png') no-repeat -32px center; } .datagrid-mask-msg { background: #666 url('images/loading.gif') no-repeat scroll 5px center; } .datagrid-header, .datagrid-td-rownumber { background-color: #444; background: -webkit-linear-gradient(top,#4c4c4c 0,#3f3f3f 100%); background: -moz-linear-gradient(top,#4c4c4c 0,#3f3f3f 100%); background: -o-linear-gradient(top,#4c4c4c 0,#3f3f3f 100%); background: linear-gradient(to bottom,#4c4c4c 0,#3f3f3f 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4c4c4c,endColorstr=#3f3f3f,GradientType=0); } .datagrid-cell-rownumber { color: #fff; } .datagrid-resize-proxy { background: #cccccc; } .datagrid-mask { background: #000; } .datagrid-mask-msg { border-color: #000; } .datagrid-toolbar, .datagrid-pager { background: #555; } .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner { border-color: #222; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-color: #222; } .datagrid-htable, .datagrid-btable, .datagrid-ftable { color: #fff; border-collapse: separate; } .datagrid-row-alt { background: #555; } .datagrid-row-over, .datagrid-header td.datagrid-header-over { background: #777; color: #fff; cursor: default; } .datagrid-row-selected { background: #0052A3; color: #fff; } .datagrid-row-editing .textbox, .datagrid-row-editing .textbox-text { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .propertygrid .datagrid-view1 .datagrid-body td { padding-bottom: 1px; border-width: 0 1px 0 0; } .propertygrid .datagrid-group { height: 21px; overflow: hidden; border-width: 0 0 1px 0; border-style: solid; } .propertygrid .datagrid-group span { font-weight: bold; } .propertygrid .datagrid-view1 .datagrid-body td { border-color: #222; } .propertygrid .datagrid-view1 .datagrid-group { border-color: #3d3d3d; } .propertygrid .datagrid-view2 .datagrid-group { border-color: #222; } .propertygrid .datagrid-group, .propertygrid .datagrid-view1 .datagrid-body, .propertygrid .datagrid-view1 .datagrid-row-over, .propertygrid .datagrid-view1 .datagrid-row-selected { background: #3d3d3d; } .pagination { zoom: 1; } .pagination table { float: left; height: 30px; } .pagination td { border: 0; } .pagination-btn-separator { float: left; height: 24px; border-left: 1px solid #444; border-right: 1px solid #777; margin: 3px 1px; } .pagination .pagination-num { border-width: 1px; border-style: solid; margin: 0 2px; padding: 2px; width: 2em; height: auto; } .pagination-page-list { margin: 0px 6px; padding: 1px 2px; width: auto; height: auto; border-width: 1px; border-style: solid; } .pagination-info { float: right; margin: 0 6px 0 0; padding: 0; height: 30px; line-height: 30px; font-size: 12px; } .pagination span { font-size: 12px; } .pagination-link .l-btn-text { width: 24px; text-align: center; margin: 0; } .pagination-first { background: url('images/pagination_icons.png') no-repeat 0 center; } .pagination-prev { background: url('images/pagination_icons.png') no-repeat -16px center; } .pagination-next { background: url('images/pagination_icons.png') no-repeat -32px center; } .pagination-last { background: url('images/pagination_icons.png') no-repeat -48px center; } .pagination-load { background: url('images/pagination_icons.png') no-repeat -64px center; } .pagination-loading { background: url('images/loading.gif') no-repeat center center; } .pagination-page-list, .pagination .pagination-num { border-color: #000; } .calendar { border-width: 1px; border-style: solid; padding: 1px; overflow: hidden; } .calendar table { table-layout: fixed; border-collapse: separate; font-size: 12px; width: 100%; height: 100%; } .calendar table td, .calendar table th { font-size: 12px; } .calendar-noborder { border: 0; } .calendar-header { position: relative; height: 22px; } .calendar-title { text-align: center; height: 22px; } .calendar-title span { position: relative; display: inline-block; top: 2px; padding: 0 3px; height: 18px; line-height: 18px; font-size: 12px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth, .calendar-nextmonth, .calendar-prevyear, .calendar-nextyear { position: absolute; top: 50%; margin-top: -7px; width: 14px; height: 14px; cursor: pointer; font-size: 1px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth { left: 20px; background: url('images/calendar_arrows.png') no-repeat -18px -2px; } .calendar-nextmonth { right: 20px; background: url('images/calendar_arrows.png') no-repeat -34px -2px; } .calendar-prevyear { left: 3px; background: url('images/calendar_arrows.png') no-repeat -1px -2px; } .calendar-nextyear { right: 3px; background: url('images/calendar_arrows.png') no-repeat -49px -2px; } .calendar-body { position: relative; } .calendar-body th, .calendar-body td { text-align: center; } .calendar-day { border: 0; padding: 1px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-other-month { opacity: 0.3; filter: alpha(opacity=30); } .calendar-disabled { opacity: 0.6; filter: alpha(opacity=60); cursor: default; } .calendar-menu { position: absolute; top: 0; left: 0; width: 180px; height: 150px; padding: 5px; font-size: 12px; display: none; overflow: hidden; } .calendar-menu-year-inner { text-align: center; padding-bottom: 5px; } .calendar-menu-year { width: 40px; text-align: center; border-width: 1px; border-style: solid; margin: 0; padding: 2px; font-weight: bold; font-size: 12px; } .calendar-menu-prev, .calendar-menu-next { display: inline-block; width: 21px; height: 21px; vertical-align: top; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-menu-prev { margin-right: 10px; background: url('images/calendar_arrows.png') no-repeat 2px 2px; } .calendar-menu-next { margin-left: 10px; background: url('images/calendar_arrows.png') no-repeat -45px 2px; } .calendar-menu-month { text-align: center; cursor: pointer; font-weight: bold; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-body th, .calendar-menu-month { color: #ffffff; } .calendar-day { color: #fff; } .calendar-sunday { color: #CC2222; } .calendar-saturday { color: #00ee00; } .calendar-today { color: #0000ff; } .calendar-menu-year { border-color: #000; } .calendar { border-color: #000; } .calendar-header { background: #3d3d3d; } .calendar-body, .calendar-menu { background: #666; } .calendar-body th { background: #555; padding: 2px 0; } .calendar-hover, .calendar-nav-hover, .calendar-menu-hover { background-color: #777; color: #fff; } .calendar-hover { border: 1px solid #555; padding: 0; } .calendar-selected { background-color: #0052A3; color: #fff; border: 1px solid #00458a; padding: 0; } .datebox-calendar-inner { height: 180px; } .datebox-button { height: 18px; padding: 2px 5px; text-align: center; } .datebox-button a { font-size: 12px; font-weight: bold; text-decoration: none; opacity: 0.6; filter: alpha(opacity=60); } .datebox-button a:hover { opacity: 1.0; filter: alpha(opacity=100); } .datebox-current, .datebox-close { float: left; } .datebox-close { float: right; } .datebox .combo-arrow { background-image: url('images/datebox_arrow.png'); background-position: center center; } .datebox-button { background-color: #555; } .datebox-button a { color: #fff; } .numberbox { border: 1px solid #000; margin: 0; padding: 0 2px; vertical-align: middle; } .textbox { padding: 0; } .spinner { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .spinner .spinner-text { font-size: 12px; border: 0px; margin: 0; padding: 0 2px; vertical-align: baseline; } .spinner-arrow { background-color: #3d3d3d; display: inline-block; overflow: hidden; vertical-align: top; margin: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); width: 18px; } .spinner-arrow-up, .spinner-arrow-down { opacity: 0.6; filter: alpha(opacity=60); display: block; font-size: 1px; width: 18px; height: 10px; width: 100%; height: 50%; outline-style: none; } .spinner-arrow-hover { background-color: #777; opacity: 1.0; filter: alpha(opacity=100); } .spinner-arrow-up:hover, .spinner-arrow-down:hover { opacity: 1.0; filter: alpha(opacity=100); background-color: #777; } .textbox-icon-disabled .spinner-arrow-up:hover, .textbox-icon-disabled .spinner-arrow-down:hover { opacity: 0.6; filter: alpha(opacity=60); background-color: #3d3d3d; cursor: default; } .spinner .textbox-icon-disabled { opacity: 0.6; filter: alpha(opacity=60); } .spinner-arrow-up { background: url('images/spinner_arrows.png') no-repeat 1px center; } .spinner-arrow-down { background: url('images/spinner_arrows.png') no-repeat -15px center; } .spinner { border-color: #000; } .progressbar { border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; overflow: hidden; position: relative; } .progressbar-text { text-align: center; position: absolute; } .progressbar-value { position: relative; overflow: hidden; width: 0; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .progressbar { border-color: #000; } .progressbar-text { color: #fff; font-size: 12px; } .progressbar-value .progressbar-text { background-color: #0052A3; color: #fff; } .searchbox { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .searchbox .searchbox-text { font-size: 12px; border: 0; margin: 0; padding: 0 2px; vertical-align: top; } .searchbox .searchbox-prompt { font-size: 12px; color: #ccc; } .searchbox-button { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .searchbox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .searchbox .l-btn-plain { border: 0; padding: 0; vertical-align: top; opacity: 0.6; filter: alpha(opacity=60); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .l-btn-plain:hover { border: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox a.m-btn-plain-active { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .m-btn-active { border-width: 0 1px 0 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .textbox-button-right { border-width: 0 0 0 1px; } .searchbox .textbox-button-left { border-width: 0 1px 0 0; } .searchbox-button { background: url('images/searchbox_button.png') no-repeat center center; } .searchbox { border-color: #000; background-color: #fff; } .searchbox .l-btn-plain { background: #3d3d3d; } .searchbox .l-btn-plain-disabled, .searchbox .l-btn-plain-disabled:hover { opacity: 0.5; filter: alpha(opacity=50); } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .slider-disabled { opacity: 0.5; filter: alpha(opacity=50); } .slider-h { height: 22px; } .slider-v { width: 22px; } .slider-inner { position: relative; height: 6px; top: 7px; border-width: 1px; border-style: solid; border-radius: 5px; } .slider-handle { position: absolute; display: block; outline: none; width: 20px; height: 20px; top: 50%; margin-top: -10px; margin-left: -10px; } .slider-tip { position: absolute; display: inline-block; line-height: 12px; font-size: 12px; white-space: nowrap; top: -22px; } .slider-rule { position: relative; top: 15px; } .slider-rule span { position: absolute; display: inline-block; font-size: 0; height: 5px; border-width: 0 0 0 1px; border-style: solid; } .slider-rulelabel { position: relative; top: 20px; } .slider-rulelabel span { position: absolute; display: inline-block; font-size: 12px; } .slider-v .slider-inner { width: 6px; left: 7px; top: 0; float: left; } .slider-v .slider-handle { left: 50%; margin-top: -10px; } .slider-v .slider-tip { left: -10px; margin-top: -6px; } .slider-v .slider-rule { float: left; top: 0; left: 16px; } .slider-v .slider-rule span { width: 5px; height: 'auto'; border-left: 0; border-width: 1px 0 0 0; border-style: solid; } .slider-v .slider-rulelabel { float: left; top: 0; left: 23px; } .slider-handle { background: url('images/slider_handle.png') no-repeat; } .slider-inner { border-color: #000; background: #3d3d3d; } .slider-rule span { border-color: #000; } .slider-rulelabel span { color: #fff; } .menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; background: #777; -moz-box-shadow: 2px 2px 3px #787878; -webkit-box-shadow: 2px 2px 3px #787878; box-shadow: 2px 2px 3px #787878; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #444; border-right: 1px solid #777; } .menu-sep { border-top: 1px solid #444; border-bottom: 1px solid #777; } .menu { background-color: #666; border-color: #444; color: #fff; } .menu-content { background: #666; } .menu-item { border-color: transparent; _border-color: #666; } .menu-active { border-color: #555; color: #fff; background: #777; } .menu-active-disabled { border-color: transparent; background: transparent; color: #fff; } .m-btn-downarrow, .s-btn-downarrow { display: inline-block; position: absolute; width: 16px; height: 16px; font-size: 1px; right: 0; top: 50%; margin-top: -8px; } .m-btn-active, .s-btn-active { background: #777; color: #fff; border: 1px solid #555; filter: none; } .m-btn-plain-active, .s-btn-plain-active { background: transparent; padding: 0; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .m-btn .l-btn-left .l-btn-text { margin-right: 20px; } .m-btn .l-btn-icon-right .l-btn-text { margin-right: 40px; } .m-btn .l-btn-icon-right .l-btn-icon { right: 20px; } .m-btn .l-btn-icon-top .l-btn-text { margin-right: 4px; margin-bottom: 14px; } .m-btn .l-btn-icon-bottom .l-btn-text { margin-right: 4px; margin-bottom: 34px; } .m-btn .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 20px; } .m-btn .l-btn-icon-top .m-btn-downarrow, .m-btn .l-btn-icon-bottom .m-btn-downarrow { top: auto; bottom: 0px; left: 50%; margin-left: -8px; } .m-btn-line { display: inline-block; position: absolute; font-size: 1px; display: none; } .m-btn .l-btn-left .m-btn-line { right: 0; width: 16px; height: 500px; border-style: solid; border-color: #cccccc; border-width: 0 0 0 1px; } .m-btn .l-btn-icon-top .m-btn-line, .m-btn .l-btn-icon-bottom .m-btn-line { left: 0; bottom: 0; width: 500px; height: 16px; border-width: 1px 0 0 0; } .m-btn-large .l-btn-icon-right .l-btn-text { margin-right: 56px; } .m-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 50px; } .m-btn-downarrow, .s-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 0 center; } .m-btn-plain-active, .s-btn-plain-active { border-color: #555; background-color: #777; color: #fff; } .s-btn:hover .m-btn-line, .s-btn-active .m-btn-line, .s-btn-plain-active .m-btn-line { display: inline-block; } .l-btn:hover .s-btn-downarrow, .s-btn-active .s-btn-downarrow, .s-btn-plain-active .s-btn-downarrow { border-style: solid; border-color: #cccccc; border-width: 0 0 0 1px; } .messager-body { padding: 10px; overflow: hidden; } .messager-button { text-align: center; padding-top: 10px; } .messager-button .l-btn { width: 70px; } .messager-icon { float: left; width: 32px; height: 32px; margin: 0 10px 10px 0; } .messager-error { background: url('images/messager_icons.png') no-repeat scroll -64px 0; } .messager-info { background: url('images/messager_icons.png') no-repeat scroll 0 0; } .messager-question { background: url('images/messager_icons.png') no-repeat scroll -32px 0; } .messager-warning { background: url('images/messager_icons.png') no-repeat scroll -96px 0; } .messager-progress { padding: 10px; } .messager-p-msg { margin-bottom: 5px; } .messager-body .messager-input { width: 100%; padding: 1px 0; border: 1px solid #000; } .tree { margin: 0; padding: 0; list-style-type: none; } .tree li { white-space: nowrap; } .tree li ul { list-style-type: none; margin: 0; padding: 0; } .tree-node { height: 18px; white-space: nowrap; cursor: pointer; } .tree-hit { cursor: pointer; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; vertical-align: top; overflow: hidden; } .tree-expanded { background: url('images/tree_icons.png') no-repeat -18px 0px; } .tree-expanded-hover { background: url('images/tree_icons.png') no-repeat -50px 0px; } .tree-collapsed { background: url('images/tree_icons.png') no-repeat 0px 0px; } .tree-collapsed-hover { background: url('images/tree_icons.png') no-repeat -32px 0px; } .tree-lines .tree-expanded, .tree-lines .tree-root-first .tree-expanded { background: url('images/tree_icons.png') no-repeat -144px 0; } .tree-lines .tree-collapsed, .tree-lines .tree-root-first .tree-collapsed { background: url('images/tree_icons.png') no-repeat -128px 0; } .tree-lines .tree-node-last .tree-expanded, .tree-lines .tree-root-one .tree-expanded { background: url('images/tree_icons.png') no-repeat -80px 0; } .tree-lines .tree-node-last .tree-collapsed, .tree-lines .tree-root-one .tree-collapsed { background: url('images/tree_icons.png') no-repeat -64px 0; } .tree-line { background: url('images/tree_icons.png') no-repeat -176px 0; } .tree-join { background: url('images/tree_icons.png') no-repeat -192px 0; } .tree-joinbottom { background: url('images/tree_icons.png') no-repeat -160px 0; } .tree-folder { background: url('images/tree_icons.png') no-repeat -208px 0; } .tree-folder-open { background: url('images/tree_icons.png') no-repeat -224px 0; } .tree-file { background: url('images/tree_icons.png') no-repeat -240px 0; } .tree-loading { background: url('images/loading.gif') no-repeat center center; } .tree-checkbox0 { background: url('images/tree_icons.png') no-repeat -208px -18px; } .tree-checkbox1 { background: url('images/tree_icons.png') no-repeat -224px -18px; } .tree-checkbox2 { background: url('images/tree_icons.png') no-repeat -240px -18px; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: top; white-space: nowrap; padding: 0 2px; height: 18px; line-height: 18px; } .tree-node-proxy { font-size: 12px; line-height: 20px; padding: 0 2px 0 20px; border-width: 1px; border-style: solid; z-index: 9900000; } .tree-dnd-icon { display: inline-block; position: absolute; width: 16px; height: 18px; left: 2px; top: 50%; margin-top: -9px; } .tree-dnd-yes { background: url('images/tree_icons.png') no-repeat -256px 0; } .tree-dnd-no { background: url('images/tree_icons.png') no-repeat -256px -18px; } .tree-node-top { border-top: 1px dotted red; } .tree-node-bottom { border-bottom: 1px dotted red; } .tree-node-append .tree-title { border: 1px dotted red; } .tree-editor { border: 1px solid #ccc; font-size: 12px; height: 14px !important; height: 18px; line-height: 14px; padding: 1px 2px; width: 80px; position: absolute; top: 0; } .tree-node-proxy { background-color: #666; color: #fff; border-color: #000; } .tree-node-hover { background: #777; color: #fff; } .tree-node-selected { background: #0052A3; color: #fff; } .validatebox-invalid { border-color: #ffa8a8; background-color: #fff3f3; color: #000; } .tooltip { position: absolute; display: none; z-index: 9900000; outline: none; opacity: 1; filter: alpha(opacity=100); padding: 5px; border-width: 1px; border-style: solid; border-radius: 5px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .tooltip-content { font-size: 12px; } .tooltip-arrow-outer, .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border-style: solid; border-width: 6px; border-color: transparent; _border-color: tomato; _filter: chroma(color=tomato); } .tooltip-right .tooltip-arrow-outer { left: 0; top: 50%; margin: -6px 0 0 -13px; } .tooltip-right .tooltip-arrow { left: 0; top: 50%; margin: -6px 0 0 -12px; } .tooltip-left .tooltip-arrow-outer { right: 0; top: 50%; margin: -6px -13px 0 0; } .tooltip-left .tooltip-arrow { right: 0; top: 50%; margin: -6px -12px 0 0; } .tooltip-top .tooltip-arrow-outer { bottom: 0; left: 50%; margin: 0 0 -13px -6px; } .tooltip-top .tooltip-arrow { bottom: 0; left: 50%; margin: 0 0 -12px -6px; } .tooltip-bottom .tooltip-arrow-outer { top: 0; left: 50%; margin: -13px 0 0 -6px; } .tooltip-bottom .tooltip-arrow { top: 0; left: 50%; margin: -12px 0 0 -6px; } .tooltip { background-color: #666; border-color: #000; color: #fff; } .tooltip-right .tooltip-arrow-outer { border-right-color: #000; } .tooltip-right .tooltip-arrow { border-right-color: #666; } .tooltip-left .tooltip-arrow-outer { border-left-color: #000; } .tooltip-left .tooltip-arrow { border-left-color: #666; } .tooltip-top .tooltip-arrow-outer { border-top-color: #000; } .tooltip-top .tooltip-arrow { border-top-color: #666; } .tooltip-bottom .tooltip-arrow-outer { border-bottom-color: #000; } .tooltip-bottom .tooltip-arrow { border-bottom-color: #666; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/filebox.css ================================================ .filebox .textbox-value { vertical-align: top; position: absolute; top: 0; left: -5000px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/layout.css ================================================ .layout { position: relative; overflow: hidden; margin: 0; padding: 0; z-index: 0; } .layout-panel { position: absolute; overflow: hidden; } .layout-panel-east, .layout-panel-west { z-index: 2; } .layout-panel-north, .layout-panel-south { z-index: 3; } .layout-expand { position: absolute; padding: 0px; font-size: 1px; cursor: pointer; z-index: 1; } .layout-expand .panel-header, .layout-expand .panel-body { background: transparent; filter: none; overflow: hidden; } .layout-expand .panel-header { border-bottom-width: 0px; } .layout-split-proxy-h, .layout-split-proxy-v { position: absolute; font-size: 1px; display: none; z-index: 5; } .layout-split-proxy-h { width: 5px; cursor: e-resize; } .layout-split-proxy-v { height: 5px; cursor: n-resize; } .layout-mask { position: absolute; background: #fafafa; filter: alpha(opacity=10); opacity: 0.10; z-index: 4; } .layout-button-up { background: url('images/layout_arrows.png') no-repeat -16px -16px; } .layout-button-down { background: url('images/layout_arrows.png') no-repeat -16px 0; } .layout-button-left { background: url('images/layout_arrows.png') no-repeat 0 0; } .layout-button-right { background: url('images/layout_arrows.png') no-repeat 0 -16px; } .layout-split-proxy-h, .layout-split-proxy-v { background-color: #cccccc; } .layout-split-north { border-bottom: 5px solid #444; } .layout-split-south { border-top: 5px solid #444; } .layout-split-east { border-left: 5px solid #444; } .layout-split-west { border-right: 5px solid #444; } .layout-expand { background-color: #3d3d3d; } .layout-expand-over { background-color: #3d3d3d; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/linkbutton.css ================================================ .l-btn { text-decoration: none; display: inline-block; overflow: hidden; margin: 0; padding: 0; cursor: pointer; outline: none; text-align: center; vertical-align: middle; } .l-btn-plain { border: 0; padding: 1px; } .l-btn-left { display: inline-block; position: relative; overflow: hidden; margin: 0; padding: 0; vertical-align: top; } .l-btn-text { display: inline-block; vertical-align: top; width: auto; line-height: 24px; font-size: 12px; padding: 0; margin: 0 4px; } .l-btn-icon { display: inline-block; width: 16px; height: 16px; line-height: 16px; position: absolute; top: 50%; margin-top: -8px; font-size: 1px; } .l-btn span span .l-btn-empty { display: inline-block; margin: 0; width: 16px; height: 24px; font-size: 1px; vertical-align: top; } .l-btn span .l-btn-icon-left { padding: 0 0 0 20px; background-position: left center; } .l-btn span .l-btn-icon-right { padding: 0 20px 0 0; background-position: right center; } .l-btn-icon-left .l-btn-text { margin: 0 4px 0 24px; } .l-btn-icon-left .l-btn-icon { left: 4px; } .l-btn-icon-right .l-btn-text { margin: 0 24px 0 4px; } .l-btn-icon-right .l-btn-icon { right: 4px; } .l-btn-icon-top .l-btn-text { margin: 20px 4px 0 4px; } .l-btn-icon-top .l-btn-icon { top: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-icon-bottom .l-btn-text { margin: 0 4px 20px 4px; } .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-left .l-btn-empty { margin: 0 4px; width: 16px; } .l-btn-plain:hover { padding: 0; } .l-btn-focus { outline: #0000FF dotted thin; } .l-btn-large .l-btn-text { line-height: 40px; } .l-btn-large .l-btn-icon { width: 32px; height: 32px; line-height: 32px; margin-top: -16px; } .l-btn-large .l-btn-icon-left .l-btn-text { margin-left: 40px; } .l-btn-large .l-btn-icon-right .l-btn-text { margin-right: 40px; } .l-btn-large .l-btn-icon-top .l-btn-text { margin-top: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-top .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-bottom .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-left .l-btn-empty { margin: 0 4px; width: 32px; } .l-btn { color: #fff; background: #777; background-repeat: repeat-x; border: 1px solid #555; background: -webkit-linear-gradient(top,#919191 0,#6a6a6a 100%); background: -moz-linear-gradient(top,#919191 0,#6a6a6a 100%); background: -o-linear-gradient(top,#919191 0,#6a6a6a 100%); background: linear-gradient(to bottom,#919191 0,#6a6a6a 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#919191,endColorstr=#6a6a6a,GradientType=0); -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn:hover { background: #777; color: #fff; border: 1px solid #555; filter: none; } .l-btn-plain { background: transparent; border: 0; filter: none; } .l-btn-plain:hover { background: #777; color: #fff; border: 1px solid #555; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn-disabled, .l-btn-disabled:hover { opacity: 0.5; cursor: default; background: #777; color: #fff; background: -webkit-linear-gradient(top,#919191 0,#6a6a6a 100%); background: -moz-linear-gradient(top,#919191 0,#6a6a6a 100%); background: -o-linear-gradient(top,#919191 0,#6a6a6a 100%); background: linear-gradient(to bottom,#919191 0,#6a6a6a 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#919191,endColorstr=#6a6a6a,GradientType=0); } .l-btn-disabled .l-btn-text, .l-btn-disabled .l-btn-icon { filter: alpha(opacity=50); } .l-btn-plain-disabled, .l-btn-plain-disabled:hover { background: transparent; filter: alpha(opacity=50); } .l-btn-selected, .l-btn-selected:hover { background: #000; filter: none; } .l-btn-plain-selected, .l-btn-plain-selected:hover { background: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/menu.css ================================================ .menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; background: #777; -moz-box-shadow: 2px 2px 3px #787878; -webkit-box-shadow: 2px 2px 3px #787878; box-shadow: 2px 2px 3px #787878; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #444; border-right: 1px solid #777; } .menu-sep { border-top: 1px solid #444; border-bottom: 1px solid #777; } .menu { background-color: #666; border-color: #444; color: #fff; } .menu-content { background: #666; } .menu-item { border-color: transparent; _border-color: #666; } .menu-active { border-color: #555; color: #fff; background: #777; } .menu-active-disabled { border-color: transparent; background: transparent; color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/menubutton.css ================================================ .m-btn-downarrow, .s-btn-downarrow { display: inline-block; position: absolute; width: 16px; height: 16px; font-size: 1px; right: 0; top: 50%; margin-top: -8px; } .m-btn-active, .s-btn-active { background: #777; color: #fff; border: 1px solid #555; filter: none; } .m-btn-plain-active, .s-btn-plain-active { background: transparent; padding: 0; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .m-btn .l-btn-left .l-btn-text { margin-right: 20px; } .m-btn .l-btn-icon-right .l-btn-text { margin-right: 40px; } .m-btn .l-btn-icon-right .l-btn-icon { right: 20px; } .m-btn .l-btn-icon-top .l-btn-text { margin-right: 4px; margin-bottom: 14px; } .m-btn .l-btn-icon-bottom .l-btn-text { margin-right: 4px; margin-bottom: 34px; } .m-btn .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 20px; } .m-btn .l-btn-icon-top .m-btn-downarrow, .m-btn .l-btn-icon-bottom .m-btn-downarrow { top: auto; bottom: 0px; left: 50%; margin-left: -8px; } .m-btn-line { display: inline-block; position: absolute; font-size: 1px; display: none; } .m-btn .l-btn-left .m-btn-line { right: 0; width: 16px; height: 500px; border-style: solid; border-color: #cccccc; border-width: 0 0 0 1px; } .m-btn .l-btn-icon-top .m-btn-line, .m-btn .l-btn-icon-bottom .m-btn-line { left: 0; bottom: 0; width: 500px; height: 16px; border-width: 1px 0 0 0; } .m-btn-large .l-btn-icon-right .l-btn-text { margin-right: 56px; } .m-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 50px; } .m-btn-downarrow, .s-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 0 center; } .m-btn-plain-active, .s-btn-plain-active { border-color: #555; background-color: #777; color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/messager.css ================================================ .messager-body { padding: 10px; overflow: hidden; } .messager-button { text-align: center; padding-top: 10px; } .messager-button .l-btn { width: 70px; } .messager-icon { float: left; width: 32px; height: 32px; margin: 0 10px 10px 0; } .messager-error { background: url('images/messager_icons.png') no-repeat scroll -64px 0; } .messager-info { background: url('images/messager_icons.png') no-repeat scroll 0 0; } .messager-question { background: url('images/messager_icons.png') no-repeat scroll -32px 0; } .messager-warning { background: url('images/messager_icons.png') no-repeat scroll -96px 0; } .messager-progress { padding: 10px; } .messager-p-msg { margin-bottom: 5px; } .messager-body .messager-input { width: 100%; padding: 1px 0; border: 1px solid #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/numberbox.css ================================================ .numberbox { border: 1px solid #000; margin: 0; padding: 0 2px; vertical-align: middle; } .textbox { padding: 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/pagination.css ================================================ .pagination { zoom: 1; } .pagination table { float: left; height: 30px; } .pagination td { border: 0; } .pagination-btn-separator { float: left; height: 24px; border-left: 1px solid #444; border-right: 1px solid #777; margin: 3px 1px; } .pagination .pagination-num { border-width: 1px; border-style: solid; margin: 0 2px; padding: 2px; width: 2em; height: auto; } .pagination-page-list { margin: 0px 6px; padding: 1px 2px; width: auto; height: auto; border-width: 1px; border-style: solid; } .pagination-info { float: right; margin: 0 6px 0 0; padding: 0; height: 30px; line-height: 30px; font-size: 12px; } .pagination span { font-size: 12px; } .pagination-link .l-btn-text { width: 24px; text-align: center; margin: 0; } .pagination-first { background: url('images/pagination_icons.png') no-repeat 0 center; } .pagination-prev { background: url('images/pagination_icons.png') no-repeat -16px center; } .pagination-next { background: url('images/pagination_icons.png') no-repeat -32px center; } .pagination-last { background: url('images/pagination_icons.png') no-repeat -48px center; } .pagination-load { background: url('images/pagination_icons.png') no-repeat -64px center; } .pagination-loading { background: url('images/loading.gif') no-repeat center center; } .pagination-page-list, .pagination .pagination-num { border-color: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/panel.css ================================================ .panel { overflow: hidden; text-align: left; margin: 0; border: 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .panel-header, .panel-body { border-width: 1px; border-style: solid; } .panel-header { padding: 5px; position: relative; } .panel-title { background: url('images/blank.gif') no-repeat; } .panel-header-noborder { border-width: 0 0 1px 0; } .panel-body { overflow: auto; border-top-width: 0; padding: 0; } .panel-body-noheader { border-top-width: 1px; } .panel-body-noborder { border-width: 0px; } .panel-body-nobottom { border-bottom-width: 0; } .panel-with-icon { padding-left: 18px; } .panel-icon, .panel-tool { position: absolute; top: 50%; margin-top: -8px; height: 16px; overflow: hidden; } .panel-icon { left: 5px; width: 16px; } .panel-tool { right: 5px; width: auto; } .panel-tool a { display: inline-block; width: 16px; height: 16px; opacity: 0.6; filter: alpha(opacity=60); margin: 0 0 0 2px; vertical-align: top; } .panel-tool a:hover { opacity: 1; filter: alpha(opacity=100); background-color: #777; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; } .panel-loading { padding: 11px 0px 10px 30px; } .panel-noscroll { overflow: hidden; } .panel-fit, .panel-fit body { height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .panel-loading { background: url('images/loading.gif') no-repeat 10px 10px; } .panel-tool-close { background: url('images/panel_tools.png') no-repeat -16px 0px; } .panel-tool-min { background: url('images/panel_tools.png') no-repeat 0px 0px; } .panel-tool-max { background: url('images/panel_tools.png') no-repeat 0px -16px; } .panel-tool-restore { background: url('images/panel_tools.png') no-repeat -16px -16px; } .panel-tool-collapse { background: url('images/panel_tools.png') no-repeat -32px 0; } .panel-tool-expand { background: url('images/panel_tools.png') no-repeat -32px -16px; } .panel-header, .panel-body { border-color: #000; } .panel-header { background-color: #3d3d3d; background: -webkit-linear-gradient(top,#454545 0,#383838 100%); background: -moz-linear-gradient(top,#454545 0,#383838 100%); background: -o-linear-gradient(top,#454545 0,#383838 100%); background: linear-gradient(to bottom,#454545 0,#383838 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#454545,endColorstr=#383838,GradientType=0); } .panel-body { background-color: #666; color: #fff; font-size: 12px; } .panel-title { font-size: 12px; font-weight: bold; color: #fff; height: 16px; line-height: 16px; } .panel-footer { border: 1px solid #000; overflow: hidden; background: #555; } .panel-footer-noborder { border-width: 1px 0 0 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/progressbar.css ================================================ .progressbar { border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; overflow: hidden; position: relative; } .progressbar-text { text-align: center; position: absolute; } .progressbar-value { position: relative; overflow: hidden; width: 0; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .progressbar { border-color: #000; } .progressbar-text { color: #fff; font-size: 12px; } .progressbar-value .progressbar-text { background-color: #0052A3; color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/propertygrid.css ================================================ .propertygrid .datagrid-view1 .datagrid-body td { padding-bottom: 1px; border-width: 0 1px 0 0; } .propertygrid .datagrid-group { height: 21px; overflow: hidden; border-width: 0 0 1px 0; border-style: solid; } .propertygrid .datagrid-group span { font-weight: bold; } .propertygrid .datagrid-view1 .datagrid-body td { border-color: #222; } .propertygrid .datagrid-view1 .datagrid-group { border-color: #3d3d3d; } .propertygrid .datagrid-view2 .datagrid-group { border-color: #222; } .propertygrid .datagrid-group, .propertygrid .datagrid-view1 .datagrid-body, .propertygrid .datagrid-view1 .datagrid-row-over, .propertygrid .datagrid-view1 .datagrid-row-selected { background: #3d3d3d; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/searchbox.css ================================================ .searchbox { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .searchbox .searchbox-text { font-size: 12px; border: 0; margin: 0; padding: 0 2px; vertical-align: top; } .searchbox .searchbox-prompt { font-size: 12px; color: #ccc; } .searchbox-button { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .searchbox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .searchbox .l-btn-plain { border: 0; padding: 0; vertical-align: top; opacity: 0.6; filter: alpha(opacity=60); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .l-btn-plain:hover { border: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox a.m-btn-plain-active { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .m-btn-active { border-width: 0 1px 0 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .textbox-button-right { border-width: 0 0 0 1px; } .searchbox .textbox-button-left { border-width: 0 1px 0 0; } .searchbox-button { background: url('images/searchbox_button.png') no-repeat center center; } .searchbox { border-color: #000; background-color: #fff; } .searchbox .l-btn-plain { background: #3d3d3d; } .searchbox .l-btn-plain-disabled, .searchbox .l-btn-plain-disabled:hover { opacity: 0.5; filter: alpha(opacity=50); } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/slider.css ================================================ .slider-disabled { opacity: 0.5; filter: alpha(opacity=50); } .slider-h { height: 22px; } .slider-v { width: 22px; } .slider-inner { position: relative; height: 6px; top: 7px; border-width: 1px; border-style: solid; border-radius: 5px; } .slider-handle { position: absolute; display: block; outline: none; width: 20px; height: 20px; top: 50%; margin-top: -10px; margin-left: -10px; } .slider-tip { position: absolute; display: inline-block; line-height: 12px; font-size: 12px; white-space: nowrap; top: -22px; } .slider-rule { position: relative; top: 15px; } .slider-rule span { position: absolute; display: inline-block; font-size: 0; height: 5px; border-width: 0 0 0 1px; border-style: solid; } .slider-rulelabel { position: relative; top: 20px; } .slider-rulelabel span { position: absolute; display: inline-block; font-size: 12px; } .slider-v .slider-inner { width: 6px; left: 7px; top: 0; float: left; } .slider-v .slider-handle { left: 50%; margin-top: -10px; } .slider-v .slider-tip { left: -10px; margin-top: -6px; } .slider-v .slider-rule { float: left; top: 0; left: 16px; } .slider-v .slider-rule span { width: 5px; height: 'auto'; border-left: 0; border-width: 1px 0 0 0; border-style: solid; } .slider-v .slider-rulelabel { float: left; top: 0; left: 23px; } .slider-handle { background: url('images/slider_handle.png') no-repeat; } .slider-inner { border-color: #000; background: #3d3d3d; } .slider-rule span { border-color: #000; } .slider-rulelabel span { color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/spinner.css ================================================ .spinner { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .spinner .spinner-text { font-size: 12px; border: 0px; margin: 0; padding: 0 2px; vertical-align: baseline; } .spinner-arrow { background-color: #3d3d3d; display: inline-block; overflow: hidden; vertical-align: top; margin: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); width: 18px; } .spinner-arrow-up, .spinner-arrow-down { opacity: 0.6; filter: alpha(opacity=60); display: block; font-size: 1px; width: 18px; height: 10px; width: 100%; height: 50%; outline-style: none; } .spinner-arrow-hover { background-color: #777; opacity: 1.0; filter: alpha(opacity=100); } .spinner-arrow-up:hover, .spinner-arrow-down:hover { opacity: 1.0; filter: alpha(opacity=100); background-color: #777; } .textbox-icon-disabled .spinner-arrow-up:hover, .textbox-icon-disabled .spinner-arrow-down:hover { opacity: 0.6; filter: alpha(opacity=60); background-color: #3d3d3d; cursor: default; } .spinner .textbox-icon-disabled { opacity: 0.6; filter: alpha(opacity=60); } .spinner-arrow-up { background: url('images/spinner_arrows.png') no-repeat 1px center; } .spinner-arrow-down { background: url('images/spinner_arrows.png') no-repeat -15px center; } .spinner { border-color: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/splitbutton.css ================================================ .s-btn:hover .m-btn-line, .s-btn-active .m-btn-line, .s-btn-plain-active .m-btn-line { display: inline-block; } .l-btn:hover .s-btn-downarrow, .s-btn-active .s-btn-downarrow, .s-btn-plain-active .s-btn-downarrow { border-style: solid; border-color: #cccccc; border-width: 0 0 0 1px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/tabs.css ================================================ .tabs-container { overflow: hidden; } .tabs-header { border-width: 1px; border-style: solid; border-bottom-width: 0; position: relative; padding: 0; padding-top: 2px; overflow: hidden; } .tabs-header-plain { border: 0; background: transparent; } .tabs-scroller-left, .tabs-scroller-right { position: absolute; top: auto; bottom: 0; width: 18px; font-size: 1px; display: none; cursor: pointer; border-width: 1px; border-style: solid; } .tabs-scroller-left { left: 0; } .tabs-scroller-right { right: 0; } .tabs-tool { position: absolute; bottom: 0; padding: 1px; overflow: hidden; border-width: 1px; border-style: solid; } .tabs-header-plain .tabs-tool { padding: 0 1px; } .tabs-wrap { position: relative; left: 0; overflow: hidden; width: 100%; margin: 0; padding: 0; } .tabs-scrolling { margin-left: 18px; margin-right: 18px; } .tabs-disabled { opacity: 0.3; filter: alpha(opacity=30); } .tabs { list-style-type: none; height: 26px; margin: 0px; padding: 0px; padding-left: 4px; width: 50000px; border-style: solid; border-width: 0 0 1px 0; } .tabs li { float: left; display: inline-block; margin: 0 4px -1px 0; padding: 0; position: relative; border: 0; } .tabs li a.tabs-inner { display: inline-block; text-decoration: none; margin: 0; padding: 0 10px; height: 25px; line-height: 25px; text-align: center; white-space: nowrap; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .tabs li.tabs-selected a.tabs-inner { font-weight: bold; outline: none; } .tabs li.tabs-selected a:hover.tabs-inner { cursor: default; pointer: default; } .tabs li a.tabs-close, .tabs-p-tool { position: absolute; font-size: 1px; display: block; height: 12px; padding: 0; top: 50%; margin-top: -6px; overflow: hidden; } .tabs li a.tabs-close { width: 12px; right: 5px; opacity: 0.6; filter: alpha(opacity=60); } .tabs-p-tool { right: 16px; } .tabs-p-tool a { display: inline-block; font-size: 1px; width: 12px; height: 12px; margin: 0; opacity: 0.6; filter: alpha(opacity=60); } .tabs li a:hover.tabs-close, .tabs-p-tool a:hover { opacity: 1; filter: alpha(opacity=100); cursor: hand; cursor: pointer; } .tabs-with-icon { padding-left: 18px; } .tabs-icon { position: absolute; width: 16px; height: 16px; left: 10px; top: 50%; margin-top: -8px; } .tabs-title { font-size: 12px; } .tabs-closable { padding-right: 8px; } .tabs-panels { margin: 0px; padding: 0px; border-width: 1px; border-style: solid; border-top-width: 0; overflow: hidden; } .tabs-header-bottom { border-width: 0 1px 1px 1px; padding: 0 0 2px 0; } .tabs-header-bottom .tabs { border-width: 1px 0 0 0; } .tabs-header-bottom .tabs li { margin: -1px 4px 0 0; } .tabs-header-bottom .tabs li a.tabs-inner { -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; } .tabs-header-bottom .tabs-tool { top: 0; } .tabs-header-bottom .tabs-scroller-left, .tabs-header-bottom .tabs-scroller-right { top: 0; bottom: auto; } .tabs-panels-top { border-width: 1px 1px 0 1px; } .tabs-header-left { float: left; border-width: 1px 0 1px 1px; padding: 0; } .tabs-header-right { float: right; border-width: 1px 1px 1px 0; padding: 0; } .tabs-header-left .tabs-wrap, .tabs-header-right .tabs-wrap { height: 100%; } .tabs-header-left .tabs { height: 100%; padding: 4px 0 0 4px; border-width: 0 1px 0 0; } .tabs-header-right .tabs { height: 100%; padding: 4px 4px 0 0; border-width: 0 0 0 1px; } .tabs-header-left .tabs li, .tabs-header-right .tabs li { display: block; width: 100%; position: relative; } .tabs-header-left .tabs li { left: auto; right: 0; margin: 0 -1px 4px 0; float: right; } .tabs-header-right .tabs li { left: 0; right: auto; margin: 0 0 4px -1px; float: left; } .tabs-header-left .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .tabs-header-right .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0 5px 5px 0; -webkit-border-radius: 0 5px 5px 0; border-radius: 0 5px 5px 0; } .tabs-panels-right { float: right; border-width: 1px 1px 1px 0; } .tabs-panels-left { float: left; border-width: 1px 0 1px 1px; } .tabs-header-noborder, .tabs-panels-noborder { border: 0px; } .tabs-header-plain { border: 0px; background: transparent; } .tabs-scroller-left { background: #3d3d3d url('images/tabs_icons.png') no-repeat 1px center; } .tabs-scroller-right { background: #3d3d3d url('images/tabs_icons.png') no-repeat -15px center; } .tabs li a.tabs-close { background: url('images/tabs_icons.png') no-repeat -34px center; } .tabs li a.tabs-inner:hover { background: #777; color: #fff; filter: none; } .tabs li.tabs-selected a.tabs-inner { background-color: #666; color: #fff; background: -webkit-linear-gradient(top,#454545 0,#666 100%); background: -moz-linear-gradient(top,#454545 0,#666 100%); background: -o-linear-gradient(top,#454545 0,#666 100%); background: linear-gradient(to bottom,#454545 0,#666 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#454545,endColorstr=#666,GradientType=0); } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(top,#666 0,#454545 100%); background: -moz-linear-gradient(top,#666 0,#454545 100%); background: -o-linear-gradient(top,#666 0,#454545 100%); background: linear-gradient(to bottom,#666 0,#454545 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#666,endColorstr=#454545,GradientType=0); } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#454545 0,#666 100%); background: -moz-linear-gradient(left,#454545 0,#666 100%); background: -o-linear-gradient(left,#454545 0,#666 100%); background: linear-gradient(to right,#454545 0,#666 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#454545,endColorstr=#666,GradientType=1); } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#666 0,#454545 100%); background: -moz-linear-gradient(left,#666 0,#454545 100%); background: -o-linear-gradient(left,#666 0,#454545 100%); background: linear-gradient(to right,#666 0,#454545 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#666,endColorstr=#454545,GradientType=1); } .tabs li a.tabs-inner { color: #fff; background-color: #3d3d3d; background: -webkit-linear-gradient(top,#454545 0,#383838 100%); background: -moz-linear-gradient(top,#454545 0,#383838 100%); background: -o-linear-gradient(top,#454545 0,#383838 100%); background: linear-gradient(to bottom,#454545 0,#383838 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#454545,endColorstr=#383838,GradientType=0); } .tabs-header, .tabs-tool { background-color: #3d3d3d; } .tabs-header-plain { background: transparent; } .tabs-header, .tabs-scroller-left, .tabs-scroller-right, .tabs-tool, .tabs, .tabs-panels, .tabs li a.tabs-inner, .tabs li.tabs-selected a.tabs-inner, .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner, .tabs-header-left .tabs li.tabs-selected a.tabs-inner, .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-color: #000; } .tabs-p-tool a:hover, .tabs li a:hover.tabs-close, .tabs-scroller-over { background-color: #777; } .tabs li.tabs-selected a.tabs-inner { border-bottom: 1px solid #666; } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { border-top: 1px solid #666; } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { border-right: 1px solid #666; } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-left: 1px solid #666; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/textbox.css ================================================ .textbox { position: relative; border: 1px solid #000; background-color: #fff; vertical-align: middle; display: inline-block; overflow: hidden; white-space: nowrap; margin: 0; padding: 0; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-text { font-size: 12px; border: 0; margin: 0; padding: 4px; white-space: normal; vertical-align: top; outline-style: none; resize: none; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-prompt { font-size: 12px; color: #aaa; } .textbox-button, .textbox-button:hover { position: absolute; top: 0; padding: 0; vertical-align: top; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .textbox-button-right, .textbox-button-right:hover { border-width: 0 0 0 1px; } .textbox-button-left, .textbox-button-left:hover { border-width: 0 1px 0 0; } .textbox-addon { position: absolute; top: 0; } .textbox-icon { display: inline-block; width: 18px; height: 20px; overflow: hidden; vertical-align: top; background-position: center center; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); text-decoration: none; outline-style: none; } .textbox-icon-disabled, .textbox-icon-readonly { cursor: default; } .textbox-icon:hover { opacity: 1.0; filter: alpha(opacity=100); } .textbox-icon-disabled:hover { opacity: 0.6; filter: alpha(opacity=60); } .textbox-focused { -moz-box-shadow: 0 0 3px 0 #000; -webkit-box-shadow: 0 0 3px 0 #000; box-shadow: 0 0 3px 0 #000; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/tooltip.css ================================================ .tooltip { position: absolute; display: none; z-index: 9900000; outline: none; opacity: 1; filter: alpha(opacity=100); padding: 5px; border-width: 1px; border-style: solid; border-radius: 5px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .tooltip-content { font-size: 12px; } .tooltip-arrow-outer, .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border-style: solid; border-width: 6px; border-color: transparent; _border-color: tomato; _filter: chroma(color=tomato); } .tooltip-right .tooltip-arrow-outer { left: 0; top: 50%; margin: -6px 0 0 -13px; } .tooltip-right .tooltip-arrow { left: 0; top: 50%; margin: -6px 0 0 -12px; } .tooltip-left .tooltip-arrow-outer { right: 0; top: 50%; margin: -6px -13px 0 0; } .tooltip-left .tooltip-arrow { right: 0; top: 50%; margin: -6px -12px 0 0; } .tooltip-top .tooltip-arrow-outer { bottom: 0; left: 50%; margin: 0 0 -13px -6px; } .tooltip-top .tooltip-arrow { bottom: 0; left: 50%; margin: 0 0 -12px -6px; } .tooltip-bottom .tooltip-arrow-outer { top: 0; left: 50%; margin: -13px 0 0 -6px; } .tooltip-bottom .tooltip-arrow { top: 0; left: 50%; margin: -12px 0 0 -6px; } .tooltip { background-color: #666; border-color: #000; color: #fff; } .tooltip-right .tooltip-arrow-outer { border-right-color: #000; } .tooltip-right .tooltip-arrow { border-right-color: #666; } .tooltip-left .tooltip-arrow-outer { border-left-color: #000; } .tooltip-left .tooltip-arrow { border-left-color: #666; } .tooltip-top .tooltip-arrow-outer { border-top-color: #000; } .tooltip-top .tooltip-arrow { border-top-color: #666; } .tooltip-bottom .tooltip-arrow-outer { border-bottom-color: #000; } .tooltip-bottom .tooltip-arrow { border-bottom-color: #666; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/tree.css ================================================ .tree { margin: 0; padding: 0; list-style-type: none; } .tree li { white-space: nowrap; } .tree li ul { list-style-type: none; margin: 0; padding: 0; } .tree-node { height: 18px; white-space: nowrap; cursor: pointer; } .tree-hit { cursor: pointer; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; vertical-align: top; overflow: hidden; } .tree-expanded { background: url('images/tree_icons.png') no-repeat -18px 0px; } .tree-expanded-hover { background: url('images/tree_icons.png') no-repeat -50px 0px; } .tree-collapsed { background: url('images/tree_icons.png') no-repeat 0px 0px; } .tree-collapsed-hover { background: url('images/tree_icons.png') no-repeat -32px 0px; } .tree-lines .tree-expanded, .tree-lines .tree-root-first .tree-expanded { background: url('images/tree_icons.png') no-repeat -144px 0; } .tree-lines .tree-collapsed, .tree-lines .tree-root-first .tree-collapsed { background: url('images/tree_icons.png') no-repeat -128px 0; } .tree-lines .tree-node-last .tree-expanded, .tree-lines .tree-root-one .tree-expanded { background: url('images/tree_icons.png') no-repeat -80px 0; } .tree-lines .tree-node-last .tree-collapsed, .tree-lines .tree-root-one .tree-collapsed { background: url('images/tree_icons.png') no-repeat -64px 0; } .tree-line { background: url('images/tree_icons.png') no-repeat -176px 0; } .tree-join { background: url('images/tree_icons.png') no-repeat -192px 0; } .tree-joinbottom { background: url('images/tree_icons.png') no-repeat -160px 0; } .tree-folder { background: url('images/tree_icons.png') no-repeat -208px 0; } .tree-folder-open { background: url('images/tree_icons.png') no-repeat -224px 0; } .tree-file { background: url('images/tree_icons.png') no-repeat -240px 0; } .tree-loading { background: url('images/loading.gif') no-repeat center center; } .tree-checkbox0 { background: url('images/tree_icons.png') no-repeat -208px -18px; } .tree-checkbox1 { background: url('images/tree_icons.png') no-repeat -224px -18px; } .tree-checkbox2 { background: url('images/tree_icons.png') no-repeat -240px -18px; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: top; white-space: nowrap; padding: 0 2px; height: 18px; line-height: 18px; } .tree-node-proxy { font-size: 12px; line-height: 20px; padding: 0 2px 0 20px; border-width: 1px; border-style: solid; z-index: 9900000; } .tree-dnd-icon { display: inline-block; position: absolute; width: 16px; height: 18px; left: 2px; top: 50%; margin-top: -9px; } .tree-dnd-yes { background: url('images/tree_icons.png') no-repeat -256px 0; } .tree-dnd-no { background: url('images/tree_icons.png') no-repeat -256px -18px; } .tree-node-top { border-top: 1px dotted red; } .tree-node-bottom { border-bottom: 1px dotted red; } .tree-node-append .tree-title { border: 1px dotted red; } .tree-editor { border: 1px solid #ccc; font-size: 12px; height: 14px !important; height: 18px; line-height: 14px; padding: 1px 2px; width: 80px; position: absolute; top: 0; } .tree-node-proxy { background-color: #666; color: #fff; border-color: #000; } .tree-node-hover { background: #777; color: #fff; } .tree-node-selected { background: #0052A3; color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/validatebox.css ================================================ .validatebox-invalid { border-color: #ffa8a8; background-color: #fff3f3; color: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/black/window.css ================================================ .window { overflow: hidden; padding: 5px; border-width: 1px; border-style: solid; } .window .window-header { background: transparent; padding: 0px 0px 6px 0px; } .window .window-body { border-width: 1px; border-style: solid; border-top-width: 0px; } .window .window-body-noheader { border-top-width: 1px; } .window .panel-body-nobottom { border-bottom-width: 0; } .window .window-header .panel-icon, .window .window-header .panel-tool { top: 50%; margin-top: -11px; } .window .window-header .panel-icon { left: 1px; } .window .window-header .panel-tool { right: 1px; } .window .window-header .panel-with-icon { padding-left: 18px; } .window-proxy { position: absolute; overflow: hidden; } .window-proxy-mask { position: absolute; filter: alpha(opacity=5); opacity: 0.05; } .window-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: alpha(opacity=40); opacity: 0.40; font-size: 1px; overflow: hidden; } .window, .window-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .window-shadow { background: #777; -moz-box-shadow: 2px 2px 3px #787878; -webkit-box-shadow: 2px 2px 3px #787878; box-shadow: 2px 2px 3px #787878; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .window, .window .window-body { border-color: #000; } .window { background-color: #3d3d3d; background: -webkit-linear-gradient(top,#454545 0,#383838 20%); background: -moz-linear-gradient(top,#454545 0,#383838 20%); background: -o-linear-gradient(top,#454545 0,#383838 20%); background: linear-gradient(to bottom,#454545 0,#383838 20%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#454545,endColorstr=#383838,GradientType=0); } .window-proxy { border: 1px dashed #000; } .window-proxy-mask, .window-mask { background: #000; } .window .panel-footer { border: 1px solid #000; position: relative; top: -1px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/accordion.css ================================================ .accordion { overflow: hidden; border-width: 1px; border-style: solid; } .accordion .accordion-header { border-width: 0 0 1px; cursor: pointer; } .accordion .accordion-body { border-width: 0 0 1px; } .accordion-noborder { border-width: 0; } .accordion-noborder .accordion-header { border-width: 0 0 1px; } .accordion-noborder .accordion-body { border-width: 0 0 1px; } .accordion-collapse { background: url('images/accordion_arrows.png') no-repeat 0 0; } .accordion-expand { background: url('images/accordion_arrows.png') no-repeat -16px 0; } .accordion { background: #ffffff; border-color: #D4D4D4; } .accordion .accordion-header { background: #F2F2F2; filter: none; } .accordion .accordion-header-selected { background: #0081c2; } .accordion .accordion-header-selected .panel-title { color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/calendar.css ================================================ .calendar { border-width: 1px; border-style: solid; padding: 1px; overflow: hidden; } .calendar table { table-layout: fixed; border-collapse: separate; font-size: 12px; width: 100%; height: 100%; } .calendar table td, .calendar table th { font-size: 12px; } .calendar-noborder { border: 0; } .calendar-header { position: relative; height: 22px; } .calendar-title { text-align: center; height: 22px; } .calendar-title span { position: relative; display: inline-block; top: 2px; padding: 0 3px; height: 18px; line-height: 18px; font-size: 12px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth, .calendar-nextmonth, .calendar-prevyear, .calendar-nextyear { position: absolute; top: 50%; margin-top: -7px; width: 14px; height: 14px; cursor: pointer; font-size: 1px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth { left: 20px; background: url('images/calendar_arrows.png') no-repeat -18px -2px; } .calendar-nextmonth { right: 20px; background: url('images/calendar_arrows.png') no-repeat -34px -2px; } .calendar-prevyear { left: 3px; background: url('images/calendar_arrows.png') no-repeat -1px -2px; } .calendar-nextyear { right: 3px; background: url('images/calendar_arrows.png') no-repeat -49px -2px; } .calendar-body { position: relative; } .calendar-body th, .calendar-body td { text-align: center; } .calendar-day { border: 0; padding: 1px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-other-month { opacity: 0.3; filter: alpha(opacity=30); } .calendar-disabled { opacity: 0.6; filter: alpha(opacity=60); cursor: default; } .calendar-menu { position: absolute; top: 0; left: 0; width: 180px; height: 150px; padding: 5px; font-size: 12px; display: none; overflow: hidden; } .calendar-menu-year-inner { text-align: center; padding-bottom: 5px; } .calendar-menu-year { width: 40px; text-align: center; border-width: 1px; border-style: solid; margin: 0; padding: 2px; font-weight: bold; font-size: 12px; } .calendar-menu-prev, .calendar-menu-next { display: inline-block; width: 21px; height: 21px; vertical-align: top; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-menu-prev { margin-right: 10px; background: url('images/calendar_arrows.png') no-repeat 2px 2px; } .calendar-menu-next { margin-left: 10px; background: url('images/calendar_arrows.png') no-repeat -45px 2px; } .calendar-menu-month { text-align: center; cursor: pointer; font-weight: bold; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-body th, .calendar-menu-month { color: #808080; } .calendar-day { color: #333; } .calendar-sunday { color: #CC2222; } .calendar-saturday { color: #00ee00; } .calendar-today { color: #0000ff; } .calendar-menu-year { border-color: #D4D4D4; } .calendar { border-color: #D4D4D4; } .calendar-header { background: #F2F2F2; } .calendar-body, .calendar-menu { background: #ffffff; } .calendar-body th { background: #F5F5F5; padding: 2px 0; } .calendar-hover, .calendar-nav-hover, .calendar-menu-hover { background-color: #e6e6e6; color: #00438a; } .calendar-hover { border: 1px solid #ddd; padding: 0; } .calendar-selected { background-color: #0081c2; color: #fff; border: 1px solid #0070a9; padding: 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/combo.css ================================================ .combo { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .combo .combo-text { font-size: 12px; border: 0px; margin: 0; padding: 0px 2px; vertical-align: baseline; } .combo-arrow { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .combo-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .combo-panel { overflow: auto; } .combo-arrow { background: url('images/combo_arrow.png') no-repeat center center; } .combo-panel { background-color: #ffffff; } .combo { border-color: #D4D4D4; background-color: #fff; } .combo-arrow { background-color: #F2F2F2; } .combo-arrow-hover { background-color: #e6e6e6; } .combo-arrow:hover { background-color: #e6e6e6; } .combo .textbox-icon-disabled:hover { cursor: default; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/combobox.css ================================================ .combobox-item, .combobox-group { font-size: 12px; padding: 3px; padding-right: 0px; } .combobox-item-disabled { opacity: 0.5; filter: alpha(opacity=50); } .combobox-gitem { padding-left: 10px; } .combobox-group { font-weight: bold; } .combobox-item-hover { background-color: #e6e6e6; color: #00438a; } .combobox-item-selected { background-color: #0081c2; color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/datagrid.css ================================================ .datagrid .panel-body { overflow: hidden; position: relative; } .datagrid-view { position: relative; overflow: hidden; } .datagrid-view1, .datagrid-view2 { position: absolute; overflow: hidden; top: 0; } .datagrid-view1 { left: 0; } .datagrid-view2 { right: 0; } .datagrid-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.3; filter: alpha(opacity=30); display: none; } .datagrid-mask-msg { position: absolute; top: 50%; margin-top: -20px; padding: 10px 5px 10px 30px; width: auto; height: 16px; border-width: 2px; border-style: solid; display: none; } .datagrid-sort-icon { padding: 0; } .datagrid-toolbar { height: auto; padding: 1px 2px; border-width: 0 0 1px 0; border-style: solid; } .datagrid-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .datagrid .datagrid-pager { display: block; margin: 0; border-width: 1px 0 0 0; border-style: solid; } .datagrid .datagrid-pager-top { border-width: 0 0 1px 0; } .datagrid-header { overflow: hidden; cursor: default; border-width: 0 0 1px 0; border-style: solid; } .datagrid-header-inner { float: left; width: 10000px; } .datagrid-header-row, .datagrid-row { height: 25px; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-width: 0 1px 1px 0; border-style: dotted; margin: 0; padding: 0; } .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber { margin: 0; padding: 0 4px; white-space: nowrap; word-wrap: normal; overflow: hidden; height: 18px; line-height: 18px; font-size: 12px; } .datagrid-header .datagrid-cell { height: auto; } .datagrid-header .datagrid-cell span { font-size: 12px; } .datagrid-cell-group { text-align: center; } .datagrid-header-rownumber, .datagrid-cell-rownumber { width: 25px; text-align: center; margin: 0; padding: 0; } .datagrid-body { margin: 0; padding: 0; overflow: auto; zoom: 1; } .datagrid-view1 .datagrid-body-inner { padding-bottom: 20px; } .datagrid-view1 .datagrid-body { overflow: hidden; } .datagrid-footer { overflow: hidden; } .datagrid-footer-inner { border-width: 1px 0 0 0; border-style: solid; width: 10000px; float: left; } .datagrid-row-editing .datagrid-cell { height: auto; } .datagrid-header-check, .datagrid-cell-check { padding: 0; width: 27px; height: 18px; font-size: 1px; text-align: center; overflow: hidden; } .datagrid-header-check input, .datagrid-cell-check input { margin: 0; padding: 0; width: 15px; height: 18px; } .datagrid-resize-proxy { position: absolute; width: 1px; height: 10000px; top: 0; cursor: e-resize; display: none; } .datagrid-body .datagrid-editable { margin: 0; padding: 0; } .datagrid-body .datagrid-editable table { width: 100%; height: 100%; } .datagrid-body .datagrid-editable td { border: 0; margin: 0; padding: 0; } .datagrid-view .datagrid-editable-input { margin: 0; padding: 2px 4px; border: 1px solid #D4D4D4; font-size: 12px; outline-style: none; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .datagrid-sort-desc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat -16px center; } .datagrid-sort-asc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat 0px center; } .datagrid-row-collapse { background: url('images/datagrid_icons.png') no-repeat -48px center; } .datagrid-row-expand { background: url('images/datagrid_icons.png') no-repeat -32px center; } .datagrid-mask-msg { background: #ffffff url('images/loading.gif') no-repeat scroll 5px center; } .datagrid-header, .datagrid-td-rownumber { background-color: #F2F2F2; background: -webkit-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -moz-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -o-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: linear-gradient(to bottom,#ffffff 0,#F2F2F2 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F2F2F2,GradientType=0); } .datagrid-cell-rownumber { color: #333; } .datagrid-resize-proxy { background: #bbb; } .datagrid-mask { background: #ccc; } .datagrid-mask-msg { border-color: #D4D4D4; } .datagrid-toolbar, .datagrid-pager { background: #F5F5F5; } .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner { border-color: #e6e6e6; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-color: #ccc; } .datagrid-htable, .datagrid-btable, .datagrid-ftable { color: #333; border-collapse: separate; } .datagrid-row-alt { background: #F5F5F5; } .datagrid-row-over, .datagrid-header td.datagrid-header-over { background: #e6e6e6; color: #00438a; cursor: default; } .datagrid-row-selected { background: #0081c2; color: #fff; } .datagrid-row-editing .textbox, .datagrid-row-editing .textbox-text { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/datebox.css ================================================ .datebox-calendar-inner { height: 180px; } .datebox-button { height: 18px; padding: 2px 5px; text-align: center; } .datebox-button a { font-size: 12px; font-weight: bold; text-decoration: none; opacity: 0.6; filter: alpha(opacity=60); } .datebox-button a:hover { opacity: 1.0; filter: alpha(opacity=100); } .datebox-current, .datebox-close { float: left; } .datebox-close { float: right; } .datebox .combo-arrow { background-image: url('images/datebox_arrow.png'); background-position: center center; } .datebox-button { background-color: #F5F5F5; } .datebox-button a { color: #444; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/dialog.css ================================================ .dialog-content { overflow: auto; } .dialog-toolbar { padding: 2px 5px; } .dialog-tool-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .dialog-button { padding: 5px; text-align: right; } .dialog-button .l-btn { margin-left: 5px; } .dialog-toolbar, .dialog-button { background: #F5F5F5; border-width: 1px; border-style: solid; } .dialog-toolbar { border-color: #D4D4D4 #D4D4D4 #e6e6e6 #D4D4D4; } .dialog-button { border-color: #e6e6e6 #D4D4D4 #D4D4D4 #D4D4D4; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/easyui.css ================================================ .panel { overflow: hidden; text-align: left; margin: 0; border: 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .panel-header, .panel-body { border-width: 1px; border-style: solid; } .panel-header { padding: 5px; position: relative; } .panel-title { background: url('images/blank.gif') no-repeat; } .panel-header-noborder { border-width: 0 0 1px 0; } .panel-body { overflow: auto; border-top-width: 0; padding: 0; } .panel-body-noheader { border-top-width: 1px; } .panel-body-noborder { border-width: 0px; } .panel-body-nobottom { border-bottom-width: 0; } .panel-with-icon { padding-left: 18px; } .panel-icon, .panel-tool { position: absolute; top: 50%; margin-top: -8px; height: 16px; overflow: hidden; } .panel-icon { left: 5px; width: 16px; } .panel-tool { right: 5px; width: auto; } .panel-tool a { display: inline-block; width: 16px; height: 16px; opacity: 0.6; filter: alpha(opacity=60); margin: 0 0 0 2px; vertical-align: top; } .panel-tool a:hover { opacity: 1; filter: alpha(opacity=100); background-color: #e6e6e6; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; } .panel-loading { padding: 11px 0px 10px 30px; } .panel-noscroll { overflow: hidden; } .panel-fit, .panel-fit body { height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .panel-loading { background: url('images/loading.gif') no-repeat 10px 10px; } .panel-tool-close { background: url('images/panel_tools.png') no-repeat -16px 0px; } .panel-tool-min { background: url('images/panel_tools.png') no-repeat 0px 0px; } .panel-tool-max { background: url('images/panel_tools.png') no-repeat 0px -16px; } .panel-tool-restore { background: url('images/panel_tools.png') no-repeat -16px -16px; } .panel-tool-collapse { background: url('images/panel_tools.png') no-repeat -32px 0; } .panel-tool-expand { background: url('images/panel_tools.png') no-repeat -32px -16px; } .panel-header, .panel-body { border-color: #D4D4D4; } .panel-header { background-color: #F2F2F2; background: -webkit-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -moz-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -o-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: linear-gradient(to bottom,#ffffff 0,#F2F2F2 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F2F2F2,GradientType=0); } .panel-body { background-color: #ffffff; color: #333; font-size: 12px; } .panel-title { font-size: 12px; font-weight: bold; color: #777; height: 16px; line-height: 16px; } .panel-footer { border: 1px solid #D4D4D4; overflow: hidden; background: #F5F5F5; } .panel-footer-noborder { border-width: 1px 0 0 0; } .accordion { overflow: hidden; border-width: 1px; border-style: solid; } .accordion .accordion-header { border-width: 0 0 1px; cursor: pointer; } .accordion .accordion-body { border-width: 0 0 1px; } .accordion-noborder { border-width: 0; } .accordion-noborder .accordion-header { border-width: 0 0 1px; } .accordion-noborder .accordion-body { border-width: 0 0 1px; } .accordion-collapse { background: url('images/accordion_arrows.png') no-repeat 0 0; } .accordion-expand { background: url('images/accordion_arrows.png') no-repeat -16px 0; } .accordion { background: #ffffff; border-color: #D4D4D4; } .accordion .accordion-header { background: #F2F2F2; filter: none; } .accordion .accordion-header-selected { background: #0081c2; } .accordion .accordion-header-selected .panel-title { color: #fff; } .window { overflow: hidden; padding: 5px; border-width: 1px; border-style: solid; } .window .window-header { background: transparent; padding: 0px 0px 6px 0px; } .window .window-body { border-width: 1px; border-style: solid; border-top-width: 0px; } .window .window-body-noheader { border-top-width: 1px; } .window .panel-body-nobottom { border-bottom-width: 0; } .window .window-header .panel-icon, .window .window-header .panel-tool { top: 50%; margin-top: -11px; } .window .window-header .panel-icon { left: 1px; } .window .window-header .panel-tool { right: 1px; } .window .window-header .panel-with-icon { padding-left: 18px; } .window-proxy { position: absolute; overflow: hidden; } .window-proxy-mask { position: absolute; filter: alpha(opacity=5); opacity: 0.05; } .window-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: alpha(opacity=40); opacity: 0.40; font-size: 1px; overflow: hidden; } .window, .window-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .window-shadow { background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .window, .window .window-body { border-color: #D4D4D4; } .window { background-color: #F2F2F2; background: -webkit-linear-gradient(top,#ffffff 0,#F2F2F2 20%); background: -moz-linear-gradient(top,#ffffff 0,#F2F2F2 20%); background: -o-linear-gradient(top,#ffffff 0,#F2F2F2 20%); background: linear-gradient(to bottom,#ffffff 0,#F2F2F2 20%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F2F2F2,GradientType=0); } .window-proxy { border: 1px dashed #D4D4D4; } .window-proxy-mask, .window-mask { background: #ccc; } .window .panel-footer { border: 1px solid #D4D4D4; position: relative; top: -1px; } .dialog-content { overflow: auto; } .dialog-toolbar { padding: 2px 5px; } .dialog-tool-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .dialog-button { padding: 5px; text-align: right; } .dialog-button .l-btn { margin-left: 5px; } .dialog-toolbar, .dialog-button { background: #F5F5F5; border-width: 1px; border-style: solid; } .dialog-toolbar { border-color: #D4D4D4 #D4D4D4 #e6e6e6 #D4D4D4; } .dialog-button { border-color: #e6e6e6 #D4D4D4 #D4D4D4 #D4D4D4; } .l-btn { text-decoration: none; display: inline-block; overflow: hidden; margin: 0; padding: 0; cursor: pointer; outline: none; text-align: center; vertical-align: middle; } .l-btn-plain { border: 0; padding: 1px; } .l-btn-left { display: inline-block; position: relative; overflow: hidden; margin: 0; padding: 0; vertical-align: top; } .l-btn-text { display: inline-block; vertical-align: top; width: auto; line-height: 24px; font-size: 12px; padding: 0; margin: 0 4px; } .l-btn-icon { display: inline-block; width: 16px; height: 16px; line-height: 16px; position: absolute; top: 50%; margin-top: -8px; font-size: 1px; } .l-btn span span .l-btn-empty { display: inline-block; margin: 0; width: 16px; height: 24px; font-size: 1px; vertical-align: top; } .l-btn span .l-btn-icon-left { padding: 0 0 0 20px; background-position: left center; } .l-btn span .l-btn-icon-right { padding: 0 20px 0 0; background-position: right center; } .l-btn-icon-left .l-btn-text { margin: 0 4px 0 24px; } .l-btn-icon-left .l-btn-icon { left: 4px; } .l-btn-icon-right .l-btn-text { margin: 0 24px 0 4px; } .l-btn-icon-right .l-btn-icon { right: 4px; } .l-btn-icon-top .l-btn-text { margin: 20px 4px 0 4px; } .l-btn-icon-top .l-btn-icon { top: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-icon-bottom .l-btn-text { margin: 0 4px 20px 4px; } .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-left .l-btn-empty { margin: 0 4px; width: 16px; } .l-btn-plain:hover { padding: 0; } .l-btn-focus { outline: #0000FF dotted thin; } .l-btn-large .l-btn-text { line-height: 40px; } .l-btn-large .l-btn-icon { width: 32px; height: 32px; line-height: 32px; margin-top: -16px; } .l-btn-large .l-btn-icon-left .l-btn-text { margin-left: 40px; } .l-btn-large .l-btn-icon-right .l-btn-text { margin-right: 40px; } .l-btn-large .l-btn-icon-top .l-btn-text { margin-top: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-top .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-bottom .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-left .l-btn-empty { margin: 0 4px; width: 32px; } .l-btn { color: #444; background: #f5f5f5; background-repeat: repeat-x; border: 1px solid #bbb; background: -webkit-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: -moz-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: -o-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: linear-gradient(to bottom,#ffffff 0,#e6e6e6 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#e6e6e6,GradientType=0); -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn:hover { background: #e6e6e6; color: #00438a; border: 1px solid #ddd; filter: none; } .l-btn-plain { background: transparent; border: 0; filter: none; } .l-btn-plain:hover { background: #e6e6e6; color: #00438a; border: 1px solid #ddd; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn-disabled, .l-btn-disabled:hover { opacity: 0.5; cursor: default; background: #f5f5f5; color: #444; background: -webkit-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: -moz-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: -o-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: linear-gradient(to bottom,#ffffff 0,#e6e6e6 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#e6e6e6,GradientType=0); } .l-btn-disabled .l-btn-text, .l-btn-disabled .l-btn-icon { filter: alpha(opacity=50); } .l-btn-plain-disabled, .l-btn-plain-disabled:hover { background: transparent; filter: alpha(opacity=50); } .l-btn-selected, .l-btn-selected:hover { background: #ddd; filter: none; } .l-btn-plain-selected, .l-btn-plain-selected:hover { background: #ddd; } .textbox { position: relative; border: 1px solid #D4D4D4; background-color: #fff; vertical-align: middle; display: inline-block; overflow: hidden; white-space: nowrap; margin: 0; padding: 0; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-text { font-size: 12px; border: 0; margin: 0; padding: 4px; white-space: normal; vertical-align: top; outline-style: none; resize: none; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-prompt { font-size: 12px; color: #aaa; } .textbox-button, .textbox-button:hover { position: absolute; top: 0; padding: 0; vertical-align: top; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .textbox-button-right, .textbox-button-right:hover { border-width: 0 0 0 1px; } .textbox-button-left, .textbox-button-left:hover { border-width: 0 1px 0 0; } .textbox-addon { position: absolute; top: 0; } .textbox-icon { display: inline-block; width: 18px; height: 20px; overflow: hidden; vertical-align: top; background-position: center center; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); text-decoration: none; outline-style: none; } .textbox-icon-disabled, .textbox-icon-readonly { cursor: default; } .textbox-icon:hover { opacity: 1.0; filter: alpha(opacity=100); } .textbox-icon-disabled:hover { opacity: 0.6; filter: alpha(opacity=60); } .textbox-focused { -moz-box-shadow: 0 0 3px 0 #D4D4D4; -webkit-box-shadow: 0 0 3px 0 #D4D4D4; box-shadow: 0 0 3px 0 #D4D4D4; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .filebox .textbox-value { vertical-align: top; position: absolute; top: 0; left: -5000px; } .combo { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .combo .combo-text { font-size: 12px; border: 0px; margin: 0; padding: 0px 2px; vertical-align: baseline; } .combo-arrow { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .combo-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .combo-panel { overflow: auto; } .combo-arrow { background: url('images/combo_arrow.png') no-repeat center center; } .combo-panel { background-color: #ffffff; } .combo { border-color: #D4D4D4; background-color: #fff; } .combo-arrow { background-color: #F2F2F2; } .combo-arrow-hover { background-color: #e6e6e6; } .combo-arrow:hover { background-color: #e6e6e6; } .combo .textbox-icon-disabled:hover { cursor: default; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .combobox-item, .combobox-group { font-size: 12px; padding: 3px; padding-right: 0px; } .combobox-item-disabled { opacity: 0.5; filter: alpha(opacity=50); } .combobox-gitem { padding-left: 10px; } .combobox-group { font-weight: bold; } .combobox-item-hover { background-color: #e6e6e6; color: #00438a; } .combobox-item-selected { background-color: #0081c2; color: #fff; } .layout { position: relative; overflow: hidden; margin: 0; padding: 0; z-index: 0; } .layout-panel { position: absolute; overflow: hidden; } .layout-panel-east, .layout-panel-west { z-index: 2; } .layout-panel-north, .layout-panel-south { z-index: 3; } .layout-expand { position: absolute; padding: 0px; font-size: 1px; cursor: pointer; z-index: 1; } .layout-expand .panel-header, .layout-expand .panel-body { background: transparent; filter: none; overflow: hidden; } .layout-expand .panel-header { border-bottom-width: 0px; } .layout-split-proxy-h, .layout-split-proxy-v { position: absolute; font-size: 1px; display: none; z-index: 5; } .layout-split-proxy-h { width: 5px; cursor: e-resize; } .layout-split-proxy-v { height: 5px; cursor: n-resize; } .layout-mask { position: absolute; background: #fafafa; filter: alpha(opacity=10); opacity: 0.10; z-index: 4; } .layout-button-up { background: url('images/layout_arrows.png') no-repeat -16px -16px; } .layout-button-down { background: url('images/layout_arrows.png') no-repeat -16px 0; } .layout-button-left { background: url('images/layout_arrows.png') no-repeat 0 0; } .layout-button-right { background: url('images/layout_arrows.png') no-repeat 0 -16px; } .layout-split-proxy-h, .layout-split-proxy-v { background-color: #bbb; } .layout-split-north { border-bottom: 5px solid #eee; } .layout-split-south { border-top: 5px solid #eee; } .layout-split-east { border-left: 5px solid #eee; } .layout-split-west { border-right: 5px solid #eee; } .layout-expand { background-color: #F2F2F2; } .layout-expand-over { background-color: #F2F2F2; } .tabs-container { overflow: hidden; } .tabs-header { border-width: 1px; border-style: solid; border-bottom-width: 0; position: relative; padding: 0; padding-top: 2px; overflow: hidden; } .tabs-header-plain { border: 0; background: transparent; } .tabs-scroller-left, .tabs-scroller-right { position: absolute; top: auto; bottom: 0; width: 18px; font-size: 1px; display: none; cursor: pointer; border-width: 1px; border-style: solid; } .tabs-scroller-left { left: 0; } .tabs-scroller-right { right: 0; } .tabs-tool { position: absolute; bottom: 0; padding: 1px; overflow: hidden; border-width: 1px; border-style: solid; } .tabs-header-plain .tabs-tool { padding: 0 1px; } .tabs-wrap { position: relative; left: 0; overflow: hidden; width: 100%; margin: 0; padding: 0; } .tabs-scrolling { margin-left: 18px; margin-right: 18px; } .tabs-disabled { opacity: 0.3; filter: alpha(opacity=30); } .tabs { list-style-type: none; height: 26px; margin: 0px; padding: 0px; padding-left: 4px; width: 50000px; border-style: solid; border-width: 0 0 1px 0; } .tabs li { float: left; display: inline-block; margin: 0 4px -1px 0; padding: 0; position: relative; border: 0; } .tabs li a.tabs-inner { display: inline-block; text-decoration: none; margin: 0; padding: 0 10px; height: 25px; line-height: 25px; text-align: center; white-space: nowrap; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .tabs li.tabs-selected a.tabs-inner { font-weight: bold; outline: none; } .tabs li.tabs-selected a:hover.tabs-inner { cursor: default; pointer: default; } .tabs li a.tabs-close, .tabs-p-tool { position: absolute; font-size: 1px; display: block; height: 12px; padding: 0; top: 50%; margin-top: -6px; overflow: hidden; } .tabs li a.tabs-close { width: 12px; right: 5px; opacity: 0.6; filter: alpha(opacity=60); } .tabs-p-tool { right: 16px; } .tabs-p-tool a { display: inline-block; font-size: 1px; width: 12px; height: 12px; margin: 0; opacity: 0.6; filter: alpha(opacity=60); } .tabs li a:hover.tabs-close, .tabs-p-tool a:hover { opacity: 1; filter: alpha(opacity=100); cursor: hand; cursor: pointer; } .tabs-with-icon { padding-left: 18px; } .tabs-icon { position: absolute; width: 16px; height: 16px; left: 10px; top: 50%; margin-top: -8px; } .tabs-title { font-size: 12px; } .tabs-closable { padding-right: 8px; } .tabs-panels { margin: 0px; padding: 0px; border-width: 1px; border-style: solid; border-top-width: 0; overflow: hidden; } .tabs-header-bottom { border-width: 0 1px 1px 1px; padding: 0 0 2px 0; } .tabs-header-bottom .tabs { border-width: 1px 0 0 0; } .tabs-header-bottom .tabs li { margin: -1px 4px 0 0; } .tabs-header-bottom .tabs li a.tabs-inner { -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; } .tabs-header-bottom .tabs-tool { top: 0; } .tabs-header-bottom .tabs-scroller-left, .tabs-header-bottom .tabs-scroller-right { top: 0; bottom: auto; } .tabs-panels-top { border-width: 1px 1px 0 1px; } .tabs-header-left { float: left; border-width: 1px 0 1px 1px; padding: 0; } .tabs-header-right { float: right; border-width: 1px 1px 1px 0; padding: 0; } .tabs-header-left .tabs-wrap, .tabs-header-right .tabs-wrap { height: 100%; } .tabs-header-left .tabs { height: 100%; padding: 4px 0 0 4px; border-width: 0 1px 0 0; } .tabs-header-right .tabs { height: 100%; padding: 4px 4px 0 0; border-width: 0 0 0 1px; } .tabs-header-left .tabs li, .tabs-header-right .tabs li { display: block; width: 100%; position: relative; } .tabs-header-left .tabs li { left: auto; right: 0; margin: 0 -1px 4px 0; float: right; } .tabs-header-right .tabs li { left: 0; right: auto; margin: 0 0 4px -1px; float: left; } .tabs-header-left .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .tabs-header-right .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0 5px 5px 0; -webkit-border-radius: 0 5px 5px 0; border-radius: 0 5px 5px 0; } .tabs-panels-right { float: right; border-width: 1px 1px 1px 0; } .tabs-panels-left { float: left; border-width: 1px 0 1px 1px; } .tabs-header-noborder, .tabs-panels-noborder { border: 0px; } .tabs-header-plain { border: 0px; background: transparent; } .tabs-scroller-left { background: #F2F2F2 url('images/tabs_icons.png') no-repeat 1px center; } .tabs-scroller-right { background: #F2F2F2 url('images/tabs_icons.png') no-repeat -15px center; } .tabs li a.tabs-close { background: url('images/tabs_icons.png') no-repeat -34px center; } .tabs li a.tabs-inner:hover { background: #e6e6e6; color: #00438a; filter: none; } .tabs li.tabs-selected a.tabs-inner { background-color: #ffffff; color: #777; background: -webkit-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(top,#ffffff 0,#ffffff 100%); background: linear-gradient(to bottom,#ffffff 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=0); } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(top,#ffffff 0,#ffffff 100%); background: linear-gradient(to bottom,#ffffff 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=0); } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(left,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(left,#ffffff 0,#ffffff 100%); background: linear-gradient(to right,#ffffff 0,#ffffff 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=1); } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(left,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(left,#ffffff 0,#ffffff 100%); background: linear-gradient(to right,#ffffff 0,#ffffff 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=1); } .tabs li a.tabs-inner { color: #777; background-color: #F2F2F2; background: -webkit-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -moz-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -o-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: linear-gradient(to bottom,#ffffff 0,#F2F2F2 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F2F2F2,GradientType=0); } .tabs-header, .tabs-tool { background-color: #F2F2F2; } .tabs-header-plain { background: transparent; } .tabs-header, .tabs-scroller-left, .tabs-scroller-right, .tabs-tool, .tabs, .tabs-panels, .tabs li a.tabs-inner, .tabs li.tabs-selected a.tabs-inner, .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner, .tabs-header-left .tabs li.tabs-selected a.tabs-inner, .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-color: #D4D4D4; } .tabs-p-tool a:hover, .tabs li a:hover.tabs-close, .tabs-scroller-over { background-color: #e6e6e6; } .tabs li.tabs-selected a.tabs-inner { border-bottom: 1px solid #ffffff; } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { border-top: 1px solid #ffffff; } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { border-right: 1px solid #ffffff; } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-left: 1px solid #ffffff; } .datagrid .panel-body { overflow: hidden; position: relative; } .datagrid-view { position: relative; overflow: hidden; } .datagrid-view1, .datagrid-view2 { position: absolute; overflow: hidden; top: 0; } .datagrid-view1 { left: 0; } .datagrid-view2 { right: 0; } .datagrid-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.3; filter: alpha(opacity=30); display: none; } .datagrid-mask-msg { position: absolute; top: 50%; margin-top: -20px; padding: 10px 5px 10px 30px; width: auto; height: 16px; border-width: 2px; border-style: solid; display: none; } .datagrid-sort-icon { padding: 0; } .datagrid-toolbar { height: auto; padding: 1px 2px; border-width: 0 0 1px 0; border-style: solid; } .datagrid-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .datagrid .datagrid-pager { display: block; margin: 0; border-width: 1px 0 0 0; border-style: solid; } .datagrid .datagrid-pager-top { border-width: 0 0 1px 0; } .datagrid-header { overflow: hidden; cursor: default; border-width: 0 0 1px 0; border-style: solid; } .datagrid-header-inner { float: left; width: 10000px; } .datagrid-header-row, .datagrid-row { height: 25px; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-width: 0 1px 1px 0; border-style: dotted; margin: 0; padding: 0; } .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber { margin: 0; padding: 0 4px; white-space: nowrap; word-wrap: normal; overflow: hidden; height: 18px; line-height: 18px; font-size: 12px; } .datagrid-header .datagrid-cell { height: auto; } .datagrid-header .datagrid-cell span { font-size: 12px; } .datagrid-cell-group { text-align: center; } .datagrid-header-rownumber, .datagrid-cell-rownumber { width: 25px; text-align: center; margin: 0; padding: 0; } .datagrid-body { margin: 0; padding: 0; overflow: auto; zoom: 1; } .datagrid-view1 .datagrid-body-inner { padding-bottom: 20px; } .datagrid-view1 .datagrid-body { overflow: hidden; } .datagrid-footer { overflow: hidden; } .datagrid-footer-inner { border-width: 1px 0 0 0; border-style: solid; width: 10000px; float: left; } .datagrid-row-editing .datagrid-cell { height: auto; } .datagrid-header-check, .datagrid-cell-check { padding: 0; width: 27px; height: 18px; font-size: 1px; text-align: center; overflow: hidden; } .datagrid-header-check input, .datagrid-cell-check input { margin: 0; padding: 0; width: 15px; height: 18px; } .datagrid-resize-proxy { position: absolute; width: 1px; height: 10000px; top: 0; cursor: e-resize; display: none; } .datagrid-body .datagrid-editable { margin: 0; padding: 0; } .datagrid-body .datagrid-editable table { width: 100%; height: 100%; } .datagrid-body .datagrid-editable td { border: 0; margin: 0; padding: 0; } .datagrid-view .datagrid-editable-input { margin: 0; padding: 2px 4px; border: 1px solid #D4D4D4; font-size: 12px; outline-style: none; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .datagrid-sort-desc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat -16px center; } .datagrid-sort-asc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat 0px center; } .datagrid-row-collapse { background: url('images/datagrid_icons.png') no-repeat -48px center; } .datagrid-row-expand { background: url('images/datagrid_icons.png') no-repeat -32px center; } .datagrid-mask-msg { background: #ffffff url('images/loading.gif') no-repeat scroll 5px center; } .datagrid-header, .datagrid-td-rownumber { background-color: #F2F2F2; background: -webkit-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -moz-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -o-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: linear-gradient(to bottom,#ffffff 0,#F2F2F2 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F2F2F2,GradientType=0); } .datagrid-cell-rownumber { color: #333; } .datagrid-resize-proxy { background: #bbb; } .datagrid-mask { background: #ccc; } .datagrid-mask-msg { border-color: #D4D4D4; } .datagrid-toolbar, .datagrid-pager { background: #F5F5F5; } .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner { border-color: #e6e6e6; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-color: #ccc; } .datagrid-htable, .datagrid-btable, .datagrid-ftable { color: #333; border-collapse: separate; } .datagrid-row-alt { background: #F5F5F5; } .datagrid-row-over, .datagrid-header td.datagrid-header-over { background: #e6e6e6; color: #00438a; cursor: default; } .datagrid-row-selected { background: #0081c2; color: #fff; } .datagrid-row-editing .textbox, .datagrid-row-editing .textbox-text { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .propertygrid .datagrid-view1 .datagrid-body td { padding-bottom: 1px; border-width: 0 1px 0 0; } .propertygrid .datagrid-group { height: 21px; overflow: hidden; border-width: 0 0 1px 0; border-style: solid; } .propertygrid .datagrid-group span { font-weight: bold; } .propertygrid .datagrid-view1 .datagrid-body td { border-color: #e6e6e6; } .propertygrid .datagrid-view1 .datagrid-group { border-color: #F2F2F2; } .propertygrid .datagrid-view2 .datagrid-group { border-color: #e6e6e6; } .propertygrid .datagrid-group, .propertygrid .datagrid-view1 .datagrid-body, .propertygrid .datagrid-view1 .datagrid-row-over, .propertygrid .datagrid-view1 .datagrid-row-selected { background: #F2F2F2; } .pagination { zoom: 1; } .pagination table { float: left; height: 30px; } .pagination td { border: 0; } .pagination-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 3px 1px; } .pagination .pagination-num { border-width: 1px; border-style: solid; margin: 0 2px; padding: 2px; width: 2em; height: auto; } .pagination-page-list { margin: 0px 6px; padding: 1px 2px; width: auto; height: auto; border-width: 1px; border-style: solid; } .pagination-info { float: right; margin: 0 6px 0 0; padding: 0; height: 30px; line-height: 30px; font-size: 12px; } .pagination span { font-size: 12px; } .pagination-link .l-btn-text { width: 24px; text-align: center; margin: 0; } .pagination-first { background: url('images/pagination_icons.png') no-repeat 0 center; } .pagination-prev { background: url('images/pagination_icons.png') no-repeat -16px center; } .pagination-next { background: url('images/pagination_icons.png') no-repeat -32px center; } .pagination-last { background: url('images/pagination_icons.png') no-repeat -48px center; } .pagination-load { background: url('images/pagination_icons.png') no-repeat -64px center; } .pagination-loading { background: url('images/loading.gif') no-repeat center center; } .pagination-page-list, .pagination .pagination-num { border-color: #D4D4D4; } .calendar { border-width: 1px; border-style: solid; padding: 1px; overflow: hidden; } .calendar table { table-layout: fixed; border-collapse: separate; font-size: 12px; width: 100%; height: 100%; } .calendar table td, .calendar table th { font-size: 12px; } .calendar-noborder { border: 0; } .calendar-header { position: relative; height: 22px; } .calendar-title { text-align: center; height: 22px; } .calendar-title span { position: relative; display: inline-block; top: 2px; padding: 0 3px; height: 18px; line-height: 18px; font-size: 12px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth, .calendar-nextmonth, .calendar-prevyear, .calendar-nextyear { position: absolute; top: 50%; margin-top: -7px; width: 14px; height: 14px; cursor: pointer; font-size: 1px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth { left: 20px; background: url('images/calendar_arrows.png') no-repeat -18px -2px; } .calendar-nextmonth { right: 20px; background: url('images/calendar_arrows.png') no-repeat -34px -2px; } .calendar-prevyear { left: 3px; background: url('images/calendar_arrows.png') no-repeat -1px -2px; } .calendar-nextyear { right: 3px; background: url('images/calendar_arrows.png') no-repeat -49px -2px; } .calendar-body { position: relative; } .calendar-body th, .calendar-body td { text-align: center; } .calendar-day { border: 0; padding: 1px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-other-month { opacity: 0.3; filter: alpha(opacity=30); } .calendar-disabled { opacity: 0.6; filter: alpha(opacity=60); cursor: default; } .calendar-menu { position: absolute; top: 0; left: 0; width: 180px; height: 150px; padding: 5px; font-size: 12px; display: none; overflow: hidden; } .calendar-menu-year-inner { text-align: center; padding-bottom: 5px; } .calendar-menu-year { width: 40px; text-align: center; border-width: 1px; border-style: solid; margin: 0; padding: 2px; font-weight: bold; font-size: 12px; } .calendar-menu-prev, .calendar-menu-next { display: inline-block; width: 21px; height: 21px; vertical-align: top; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-menu-prev { margin-right: 10px; background: url('images/calendar_arrows.png') no-repeat 2px 2px; } .calendar-menu-next { margin-left: 10px; background: url('images/calendar_arrows.png') no-repeat -45px 2px; } .calendar-menu-month { text-align: center; cursor: pointer; font-weight: bold; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-body th, .calendar-menu-month { color: #808080; } .calendar-day { color: #333; } .calendar-sunday { color: #CC2222; } .calendar-saturday { color: #00ee00; } .calendar-today { color: #0000ff; } .calendar-menu-year { border-color: #D4D4D4; } .calendar { border-color: #D4D4D4; } .calendar-header { background: #F2F2F2; } .calendar-body, .calendar-menu { background: #ffffff; } .calendar-body th { background: #F5F5F5; padding: 2px 0; } .calendar-hover, .calendar-nav-hover, .calendar-menu-hover { background-color: #e6e6e6; color: #00438a; } .calendar-hover { border: 1px solid #ddd; padding: 0; } .calendar-selected { background-color: #0081c2; color: #fff; border: 1px solid #0070a9; padding: 0; } .datebox-calendar-inner { height: 180px; } .datebox-button { height: 18px; padding: 2px 5px; text-align: center; } .datebox-button a { font-size: 12px; font-weight: bold; text-decoration: none; opacity: 0.6; filter: alpha(opacity=60); } .datebox-button a:hover { opacity: 1.0; filter: alpha(opacity=100); } .datebox-current, .datebox-close { float: left; } .datebox-close { float: right; } .datebox .combo-arrow { background-image: url('images/datebox_arrow.png'); background-position: center center; } .datebox-button { background-color: #F5F5F5; } .datebox-button a { color: #444; } .numberbox { border: 1px solid #D4D4D4; margin: 0; padding: 0 2px; vertical-align: middle; } .textbox { padding: 0; } .spinner { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .spinner .spinner-text { font-size: 12px; border: 0px; margin: 0; padding: 0 2px; vertical-align: baseline; } .spinner-arrow { background-color: #F2F2F2; display: inline-block; overflow: hidden; vertical-align: top; margin: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); width: 18px; } .spinner-arrow-up, .spinner-arrow-down { opacity: 0.6; filter: alpha(opacity=60); display: block; font-size: 1px; width: 18px; height: 10px; width: 100%; height: 50%; outline-style: none; } .spinner-arrow-hover { background-color: #e6e6e6; opacity: 1.0; filter: alpha(opacity=100); } .spinner-arrow-up:hover, .spinner-arrow-down:hover { opacity: 1.0; filter: alpha(opacity=100); background-color: #e6e6e6; } .textbox-icon-disabled .spinner-arrow-up:hover, .textbox-icon-disabled .spinner-arrow-down:hover { opacity: 0.6; filter: alpha(opacity=60); background-color: #F2F2F2; cursor: default; } .spinner .textbox-icon-disabled { opacity: 0.6; filter: alpha(opacity=60); } .spinner-arrow-up { background: url('images/spinner_arrows.png') no-repeat 1px center; } .spinner-arrow-down { background: url('images/spinner_arrows.png') no-repeat -15px center; } .spinner { border-color: #D4D4D4; } .progressbar { border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; overflow: hidden; position: relative; } .progressbar-text { text-align: center; position: absolute; } .progressbar-value { position: relative; overflow: hidden; width: 0; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .progressbar { border-color: #D4D4D4; } .progressbar-text { color: #333; font-size: 12px; } .progressbar-value .progressbar-text { background-color: #0081c2; color: #fff; } .searchbox { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .searchbox .searchbox-text { font-size: 12px; border: 0; margin: 0; padding: 0 2px; vertical-align: top; } .searchbox .searchbox-prompt { font-size: 12px; color: #ccc; } .searchbox-button { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .searchbox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .searchbox .l-btn-plain { border: 0; padding: 0; vertical-align: top; opacity: 0.6; filter: alpha(opacity=60); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .l-btn-plain:hover { border: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox a.m-btn-plain-active { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .m-btn-active { border-width: 0 1px 0 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .textbox-button-right { border-width: 0 0 0 1px; } .searchbox .textbox-button-left { border-width: 0 1px 0 0; } .searchbox-button { background: url('images/searchbox_button.png') no-repeat center center; } .searchbox { border-color: #D4D4D4; background-color: #fff; } .searchbox .l-btn-plain { background: #F2F2F2; } .searchbox .l-btn-plain-disabled, .searchbox .l-btn-plain-disabled:hover { opacity: 0.5; filter: alpha(opacity=50); } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .slider-disabled { opacity: 0.5; filter: alpha(opacity=50); } .slider-h { height: 22px; } .slider-v { width: 22px; } .slider-inner { position: relative; height: 6px; top: 7px; border-width: 1px; border-style: solid; border-radius: 5px; } .slider-handle { position: absolute; display: block; outline: none; width: 20px; height: 20px; top: 50%; margin-top: -10px; margin-left: -10px; } .slider-tip { position: absolute; display: inline-block; line-height: 12px; font-size: 12px; white-space: nowrap; top: -22px; } .slider-rule { position: relative; top: 15px; } .slider-rule span { position: absolute; display: inline-block; font-size: 0; height: 5px; border-width: 0 0 0 1px; border-style: solid; } .slider-rulelabel { position: relative; top: 20px; } .slider-rulelabel span { position: absolute; display: inline-block; font-size: 12px; } .slider-v .slider-inner { width: 6px; left: 7px; top: 0; float: left; } .slider-v .slider-handle { left: 50%; margin-top: -10px; } .slider-v .slider-tip { left: -10px; margin-top: -6px; } .slider-v .slider-rule { float: left; top: 0; left: 16px; } .slider-v .slider-rule span { width: 5px; height: 'auto'; border-left: 0; border-width: 1px 0 0 0; border-style: solid; } .slider-v .slider-rulelabel { float: left; top: 0; left: 23px; } .slider-handle { background: url('images/slider_handle.png') no-repeat; } .slider-inner { border-color: #D4D4D4; background: #F2F2F2; } .slider-rule span { border-color: #D4D4D4; } .slider-rulelabel span { color: #333; } .menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #ccc; border-right: 1px solid #fff; } .menu-sep { border-top: 1px solid #ccc; border-bottom: 1px solid #fff; } .menu { background-color: #fff; border-color: #e6e6e6; color: #333; } .menu-content { background: #ffffff; } .menu-item { border-color: transparent; _border-color: #fff; } .menu-active { border-color: #ddd; color: #00438a; background: #e6e6e6; } .menu-active-disabled { border-color: transparent; background: transparent; color: #333; } .m-btn-downarrow, .s-btn-downarrow { display: inline-block; position: absolute; width: 16px; height: 16px; font-size: 1px; right: 0; top: 50%; margin-top: -8px; } .m-btn-active, .s-btn-active { background: #e6e6e6; color: #00438a; border: 1px solid #ddd; filter: none; } .m-btn-plain-active, .s-btn-plain-active { background: transparent; padding: 0; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .m-btn .l-btn-left .l-btn-text { margin-right: 20px; } .m-btn .l-btn-icon-right .l-btn-text { margin-right: 40px; } .m-btn .l-btn-icon-right .l-btn-icon { right: 20px; } .m-btn .l-btn-icon-top .l-btn-text { margin-right: 4px; margin-bottom: 14px; } .m-btn .l-btn-icon-bottom .l-btn-text { margin-right: 4px; margin-bottom: 34px; } .m-btn .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 20px; } .m-btn .l-btn-icon-top .m-btn-downarrow, .m-btn .l-btn-icon-bottom .m-btn-downarrow { top: auto; bottom: 0px; left: 50%; margin-left: -8px; } .m-btn-line { display: inline-block; position: absolute; font-size: 1px; display: none; } .m-btn .l-btn-left .m-btn-line { right: 0; width: 16px; height: 500px; border-style: solid; border-color: #bbb; border-width: 0 0 0 1px; } .m-btn .l-btn-icon-top .m-btn-line, .m-btn .l-btn-icon-bottom .m-btn-line { left: 0; bottom: 0; width: 500px; height: 16px; border-width: 1px 0 0 0; } .m-btn-large .l-btn-icon-right .l-btn-text { margin-right: 56px; } .m-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 50px; } .m-btn-downarrow, .s-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 0 center; } .m-btn-plain-active, .s-btn-plain-active { border-color: #ddd; background-color: #e6e6e6; color: #00438a; } .s-btn:hover .m-btn-line, .s-btn-active .m-btn-line, .s-btn-plain-active .m-btn-line { display: inline-block; } .l-btn:hover .s-btn-downarrow, .s-btn-active .s-btn-downarrow, .s-btn-plain-active .s-btn-downarrow { border-style: solid; border-color: #bbb; border-width: 0 0 0 1px; } .messager-body { padding: 10px; overflow: hidden; } .messager-button { text-align: center; padding-top: 10px; } .messager-button .l-btn { width: 70px; } .messager-icon { float: left; width: 32px; height: 32px; margin: 0 10px 10px 0; } .messager-error { background: url('images/messager_icons.png') no-repeat scroll -64px 0; } .messager-info { background: url('images/messager_icons.png') no-repeat scroll 0 0; } .messager-question { background: url('images/messager_icons.png') no-repeat scroll -32px 0; } .messager-warning { background: url('images/messager_icons.png') no-repeat scroll -96px 0; } .messager-progress { padding: 10px; } .messager-p-msg { margin-bottom: 5px; } .messager-body .messager-input { width: 100%; padding: 1px 0; border: 1px solid #D4D4D4; } .tree { margin: 0; padding: 0; list-style-type: none; } .tree li { white-space: nowrap; } .tree li ul { list-style-type: none; margin: 0; padding: 0; } .tree-node { height: 18px; white-space: nowrap; cursor: pointer; } .tree-hit { cursor: pointer; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; vertical-align: top; overflow: hidden; } .tree-expanded { background: url('images/tree_icons.png') no-repeat -18px 0px; } .tree-expanded-hover { background: url('images/tree_icons.png') no-repeat -50px 0px; } .tree-collapsed { background: url('images/tree_icons.png') no-repeat 0px 0px; } .tree-collapsed-hover { background: url('images/tree_icons.png') no-repeat -32px 0px; } .tree-lines .tree-expanded, .tree-lines .tree-root-first .tree-expanded { background: url('images/tree_icons.png') no-repeat -144px 0; } .tree-lines .tree-collapsed, .tree-lines .tree-root-first .tree-collapsed { background: url('images/tree_icons.png') no-repeat -128px 0; } .tree-lines .tree-node-last .tree-expanded, .tree-lines .tree-root-one .tree-expanded { background: url('images/tree_icons.png') no-repeat -80px 0; } .tree-lines .tree-node-last .tree-collapsed, .tree-lines .tree-root-one .tree-collapsed { background: url('images/tree_icons.png') no-repeat -64px 0; } .tree-line { background: url('images/tree_icons.png') no-repeat -176px 0; } .tree-join { background: url('images/tree_icons.png') no-repeat -192px 0; } .tree-joinbottom { background: url('images/tree_icons.png') no-repeat -160px 0; } .tree-folder { background: url('images/tree_icons.png') no-repeat -208px 0; } .tree-folder-open { background: url('images/tree_icons.png') no-repeat -224px 0; } .tree-file { background: url('images/tree_icons.png') no-repeat -240px 0; } .tree-loading { background: url('images/loading.gif') no-repeat center center; } .tree-checkbox0 { background: url('images/tree_icons.png') no-repeat -208px -18px; } .tree-checkbox1 { background: url('images/tree_icons.png') no-repeat -224px -18px; } .tree-checkbox2 { background: url('images/tree_icons.png') no-repeat -240px -18px; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: top; white-space: nowrap; padding: 0 2px; height: 18px; line-height: 18px; } .tree-node-proxy { font-size: 12px; line-height: 20px; padding: 0 2px 0 20px; border-width: 1px; border-style: solid; z-index: 9900000; } .tree-dnd-icon { display: inline-block; position: absolute; width: 16px; height: 18px; left: 2px; top: 50%; margin-top: -9px; } .tree-dnd-yes { background: url('images/tree_icons.png') no-repeat -256px 0; } .tree-dnd-no { background: url('images/tree_icons.png') no-repeat -256px -18px; } .tree-node-top { border-top: 1px dotted red; } .tree-node-bottom { border-bottom: 1px dotted red; } .tree-node-append .tree-title { border: 1px dotted red; } .tree-editor { border: 1px solid #ccc; font-size: 12px; height: 14px !important; height: 18px; line-height: 14px; padding: 1px 2px; width: 80px; position: absolute; top: 0; } .tree-node-proxy { background-color: #ffffff; color: #333; border-color: #D4D4D4; } .tree-node-hover { background: #e6e6e6; color: #00438a; } .tree-node-selected { background: #0081c2; color: #fff; } .validatebox-invalid { border-color: #ffa8a8; background-color: #fff3f3; color: #000; } .tooltip { position: absolute; display: none; z-index: 9900000; outline: none; opacity: 1; filter: alpha(opacity=100); padding: 5px; border-width: 1px; border-style: solid; border-radius: 5px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .tooltip-content { font-size: 12px; } .tooltip-arrow-outer, .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border-style: solid; border-width: 6px; border-color: transparent; _border-color: tomato; _filter: chroma(color=tomato); } .tooltip-right .tooltip-arrow-outer { left: 0; top: 50%; margin: -6px 0 0 -13px; } .tooltip-right .tooltip-arrow { left: 0; top: 50%; margin: -6px 0 0 -12px; } .tooltip-left .tooltip-arrow-outer { right: 0; top: 50%; margin: -6px -13px 0 0; } .tooltip-left .tooltip-arrow { right: 0; top: 50%; margin: -6px -12px 0 0; } .tooltip-top .tooltip-arrow-outer { bottom: 0; left: 50%; margin: 0 0 -13px -6px; } .tooltip-top .tooltip-arrow { bottom: 0; left: 50%; margin: 0 0 -12px -6px; } .tooltip-bottom .tooltip-arrow-outer { top: 0; left: 50%; margin: -13px 0 0 -6px; } .tooltip-bottom .tooltip-arrow { top: 0; left: 50%; margin: -12px 0 0 -6px; } .tooltip { background-color: #ffffff; border-color: #D4D4D4; color: #333; } .tooltip-right .tooltip-arrow-outer { border-right-color: #D4D4D4; } .tooltip-right .tooltip-arrow { border-right-color: #ffffff; } .tooltip-left .tooltip-arrow-outer { border-left-color: #D4D4D4; } .tooltip-left .tooltip-arrow { border-left-color: #ffffff; } .tooltip-top .tooltip-arrow-outer { border-top-color: #D4D4D4; } .tooltip-top .tooltip-arrow { border-top-color: #ffffff; } .tooltip-bottom .tooltip-arrow-outer { border-bottom-color: #D4D4D4; } .tooltip-bottom .tooltip-arrow { border-bottom-color: #ffffff; } .tabs-panels { border-color: transparent; } .tabs li a.tabs-inner { border-color: transparent; background: transparent; filter: none; color: #0088CC; } .menu-active { background-color: #0081C2; border-color: #0081C2; color: #fff; } .menu-active-disabled { border-color: transparent; background: transparent; color: #333; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/filebox.css ================================================ .filebox .textbox-value { vertical-align: top; position: absolute; top: 0; left: -5000px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/layout.css ================================================ .layout { position: relative; overflow: hidden; margin: 0; padding: 0; z-index: 0; } .layout-panel { position: absolute; overflow: hidden; } .layout-panel-east, .layout-panel-west { z-index: 2; } .layout-panel-north, .layout-panel-south { z-index: 3; } .layout-expand { position: absolute; padding: 0px; font-size: 1px; cursor: pointer; z-index: 1; } .layout-expand .panel-header, .layout-expand .panel-body { background: transparent; filter: none; overflow: hidden; } .layout-expand .panel-header { border-bottom-width: 0px; } .layout-split-proxy-h, .layout-split-proxy-v { position: absolute; font-size: 1px; display: none; z-index: 5; } .layout-split-proxy-h { width: 5px; cursor: e-resize; } .layout-split-proxy-v { height: 5px; cursor: n-resize; } .layout-mask { position: absolute; background: #fafafa; filter: alpha(opacity=10); opacity: 0.10; z-index: 4; } .layout-button-up { background: url('images/layout_arrows.png') no-repeat -16px -16px; } .layout-button-down { background: url('images/layout_arrows.png') no-repeat -16px 0; } .layout-button-left { background: url('images/layout_arrows.png') no-repeat 0 0; } .layout-button-right { background: url('images/layout_arrows.png') no-repeat 0 -16px; } .layout-split-proxy-h, .layout-split-proxy-v { background-color: #bbb; } .layout-split-north { border-bottom: 5px solid #eee; } .layout-split-south { border-top: 5px solid #eee; } .layout-split-east { border-left: 5px solid #eee; } .layout-split-west { border-right: 5px solid #eee; } .layout-expand { background-color: #F2F2F2; } .layout-expand-over { background-color: #F2F2F2; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/linkbutton.css ================================================ .l-btn { text-decoration: none; display: inline-block; overflow: hidden; margin: 0; padding: 0; cursor: pointer; outline: none; text-align: center; vertical-align: middle; } .l-btn-plain { border: 0; padding: 1px; } .l-btn-left { display: inline-block; position: relative; overflow: hidden; margin: 0; padding: 0; vertical-align: top; } .l-btn-text { display: inline-block; vertical-align: top; width: auto; line-height: 24px; font-size: 12px; padding: 0; margin: 0 4px; } .l-btn-icon { display: inline-block; width: 16px; height: 16px; line-height: 16px; position: absolute; top: 50%; margin-top: -8px; font-size: 1px; } .l-btn span span .l-btn-empty { display: inline-block; margin: 0; width: 16px; height: 24px; font-size: 1px; vertical-align: top; } .l-btn span .l-btn-icon-left { padding: 0 0 0 20px; background-position: left center; } .l-btn span .l-btn-icon-right { padding: 0 20px 0 0; background-position: right center; } .l-btn-icon-left .l-btn-text { margin: 0 4px 0 24px; } .l-btn-icon-left .l-btn-icon { left: 4px; } .l-btn-icon-right .l-btn-text { margin: 0 24px 0 4px; } .l-btn-icon-right .l-btn-icon { right: 4px; } .l-btn-icon-top .l-btn-text { margin: 20px 4px 0 4px; } .l-btn-icon-top .l-btn-icon { top: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-icon-bottom .l-btn-text { margin: 0 4px 20px 4px; } .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-left .l-btn-empty { margin: 0 4px; width: 16px; } .l-btn-plain:hover { padding: 0; } .l-btn-focus { outline: #0000FF dotted thin; } .l-btn-large .l-btn-text { line-height: 40px; } .l-btn-large .l-btn-icon { width: 32px; height: 32px; line-height: 32px; margin-top: -16px; } .l-btn-large .l-btn-icon-left .l-btn-text { margin-left: 40px; } .l-btn-large .l-btn-icon-right .l-btn-text { margin-right: 40px; } .l-btn-large .l-btn-icon-top .l-btn-text { margin-top: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-top .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-bottom .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-left .l-btn-empty { margin: 0 4px; width: 32px; } .l-btn { color: #444; background: #f5f5f5; background-repeat: repeat-x; border: 1px solid #bbb; background: -webkit-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: -moz-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: -o-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: linear-gradient(to bottom,#ffffff 0,#e6e6e6 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#e6e6e6,GradientType=0); -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn:hover { background: #e6e6e6; color: #00438a; border: 1px solid #ddd; filter: none; } .l-btn-plain { background: transparent; border: 0; filter: none; } .l-btn-plain:hover { background: #e6e6e6; color: #00438a; border: 1px solid #ddd; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn-disabled, .l-btn-disabled:hover { opacity: 0.5; cursor: default; background: #f5f5f5; color: #444; background: -webkit-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: -moz-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: -o-linear-gradient(top,#ffffff 0,#e6e6e6 100%); background: linear-gradient(to bottom,#ffffff 0,#e6e6e6 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#e6e6e6,GradientType=0); } .l-btn-disabled .l-btn-text, .l-btn-disabled .l-btn-icon { filter: alpha(opacity=50); } .l-btn-plain-disabled, .l-btn-plain-disabled:hover { background: transparent; filter: alpha(opacity=50); } .l-btn-selected, .l-btn-selected:hover { background: #ddd; filter: none; } .l-btn-plain-selected, .l-btn-plain-selected:hover { background: #ddd; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/menu.css ================================================ .menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #ccc; border-right: 1px solid #fff; } .menu-sep { border-top: 1px solid #ccc; border-bottom: 1px solid #fff; } .menu { background-color: #fff; border-color: #e6e6e6; color: #333; } .menu-content { background: #ffffff; } .menu-item { border-color: transparent; _border-color: #fff; } .menu-active { border-color: #ddd; color: #00438a; background: #e6e6e6; } .menu-active-disabled { border-color: transparent; background: transparent; color: #333; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/menubutton.css ================================================ .m-btn-downarrow, .s-btn-downarrow { display: inline-block; position: absolute; width: 16px; height: 16px; font-size: 1px; right: 0; top: 50%; margin-top: -8px; } .m-btn-active, .s-btn-active { background: #e6e6e6; color: #00438a; border: 1px solid #ddd; filter: none; } .m-btn-plain-active, .s-btn-plain-active { background: transparent; padding: 0; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .m-btn .l-btn-left .l-btn-text { margin-right: 20px; } .m-btn .l-btn-icon-right .l-btn-text { margin-right: 40px; } .m-btn .l-btn-icon-right .l-btn-icon { right: 20px; } .m-btn .l-btn-icon-top .l-btn-text { margin-right: 4px; margin-bottom: 14px; } .m-btn .l-btn-icon-bottom .l-btn-text { margin-right: 4px; margin-bottom: 34px; } .m-btn .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 20px; } .m-btn .l-btn-icon-top .m-btn-downarrow, .m-btn .l-btn-icon-bottom .m-btn-downarrow { top: auto; bottom: 0px; left: 50%; margin-left: -8px; } .m-btn-line { display: inline-block; position: absolute; font-size: 1px; display: none; } .m-btn .l-btn-left .m-btn-line { right: 0; width: 16px; height: 500px; border-style: solid; border-color: #bbb; border-width: 0 0 0 1px; } .m-btn .l-btn-icon-top .m-btn-line, .m-btn .l-btn-icon-bottom .m-btn-line { left: 0; bottom: 0; width: 500px; height: 16px; border-width: 1px 0 0 0; } .m-btn-large .l-btn-icon-right .l-btn-text { margin-right: 56px; } .m-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 50px; } .m-btn-downarrow, .s-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 0 center; } .m-btn-plain-active, .s-btn-plain-active { border-color: #ddd; background-color: #e6e6e6; color: #00438a; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/messager.css ================================================ .messager-body { padding: 10px; overflow: hidden; } .messager-button { text-align: center; padding-top: 10px; } .messager-button .l-btn { width: 70px; } .messager-icon { float: left; width: 32px; height: 32px; margin: 0 10px 10px 0; } .messager-error { background: url('images/messager_icons.png') no-repeat scroll -64px 0; } .messager-info { background: url('images/messager_icons.png') no-repeat scroll 0 0; } .messager-question { background: url('images/messager_icons.png') no-repeat scroll -32px 0; } .messager-warning { background: url('images/messager_icons.png') no-repeat scroll -96px 0; } .messager-progress { padding: 10px; } .messager-p-msg { margin-bottom: 5px; } .messager-body .messager-input { width: 100%; padding: 1px 0; border: 1px solid #D4D4D4; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/numberbox.css ================================================ .numberbox { border: 1px solid #D4D4D4; margin: 0; padding: 0 2px; vertical-align: middle; } .textbox { padding: 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/pagination.css ================================================ .pagination { zoom: 1; } .pagination table { float: left; height: 30px; } .pagination td { border: 0; } .pagination-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 3px 1px; } .pagination .pagination-num { border-width: 1px; border-style: solid; margin: 0 2px; padding: 2px; width: 2em; height: auto; } .pagination-page-list { margin: 0px 6px; padding: 1px 2px; width: auto; height: auto; border-width: 1px; border-style: solid; } .pagination-info { float: right; margin: 0 6px 0 0; padding: 0; height: 30px; line-height: 30px; font-size: 12px; } .pagination span { font-size: 12px; } .pagination-link .l-btn-text { width: 24px; text-align: center; margin: 0; } .pagination-first { background: url('images/pagination_icons.png') no-repeat 0 center; } .pagination-prev { background: url('images/pagination_icons.png') no-repeat -16px center; } .pagination-next { background: url('images/pagination_icons.png') no-repeat -32px center; } .pagination-last { background: url('images/pagination_icons.png') no-repeat -48px center; } .pagination-load { background: url('images/pagination_icons.png') no-repeat -64px center; } .pagination-loading { background: url('images/loading.gif') no-repeat center center; } .pagination-page-list, .pagination .pagination-num { border-color: #D4D4D4; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/panel.css ================================================ .panel { overflow: hidden; text-align: left; margin: 0; border: 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .panel-header, .panel-body { border-width: 1px; border-style: solid; } .panel-header { padding: 5px; position: relative; } .panel-title { background: url('images/blank.gif') no-repeat; } .panel-header-noborder { border-width: 0 0 1px 0; } .panel-body { overflow: auto; border-top-width: 0; padding: 0; } .panel-body-noheader { border-top-width: 1px; } .panel-body-noborder { border-width: 0px; } .panel-body-nobottom { border-bottom-width: 0; } .panel-with-icon { padding-left: 18px; } .panel-icon, .panel-tool { position: absolute; top: 50%; margin-top: -8px; height: 16px; overflow: hidden; } .panel-icon { left: 5px; width: 16px; } .panel-tool { right: 5px; width: auto; } .panel-tool a { display: inline-block; width: 16px; height: 16px; opacity: 0.6; filter: alpha(opacity=60); margin: 0 0 0 2px; vertical-align: top; } .panel-tool a:hover { opacity: 1; filter: alpha(opacity=100); background-color: #e6e6e6; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; } .panel-loading { padding: 11px 0px 10px 30px; } .panel-noscroll { overflow: hidden; } .panel-fit, .panel-fit body { height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .panel-loading { background: url('images/loading.gif') no-repeat 10px 10px; } .panel-tool-close { background: url('images/panel_tools.png') no-repeat -16px 0px; } .panel-tool-min { background: url('images/panel_tools.png') no-repeat 0px 0px; } .panel-tool-max { background: url('images/panel_tools.png') no-repeat 0px -16px; } .panel-tool-restore { background: url('images/panel_tools.png') no-repeat -16px -16px; } .panel-tool-collapse { background: url('images/panel_tools.png') no-repeat -32px 0; } .panel-tool-expand { background: url('images/panel_tools.png') no-repeat -32px -16px; } .panel-header, .panel-body { border-color: #D4D4D4; } .panel-header { background-color: #F2F2F2; background: -webkit-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -moz-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -o-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: linear-gradient(to bottom,#ffffff 0,#F2F2F2 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F2F2F2,GradientType=0); } .panel-body { background-color: #ffffff; color: #333; font-size: 12px; } .panel-title { font-size: 12px; font-weight: bold; color: #777; height: 16px; line-height: 16px; } .panel-footer { border: 1px solid #D4D4D4; overflow: hidden; background: #F5F5F5; } .panel-footer-noborder { border-width: 1px 0 0 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/progressbar.css ================================================ .progressbar { border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; overflow: hidden; position: relative; } .progressbar-text { text-align: center; position: absolute; } .progressbar-value { position: relative; overflow: hidden; width: 0; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .progressbar { border-color: #D4D4D4; } .progressbar-text { color: #333; font-size: 12px; } .progressbar-value .progressbar-text { background-color: #0081c2; color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/propertygrid.css ================================================ .propertygrid .datagrid-view1 .datagrid-body td { padding-bottom: 1px; border-width: 0 1px 0 0; } .propertygrid .datagrid-group { height: 21px; overflow: hidden; border-width: 0 0 1px 0; border-style: solid; } .propertygrid .datagrid-group span { font-weight: bold; } .propertygrid .datagrid-view1 .datagrid-body td { border-color: #e6e6e6; } .propertygrid .datagrid-view1 .datagrid-group { border-color: #F2F2F2; } .propertygrid .datagrid-view2 .datagrid-group { border-color: #e6e6e6; } .propertygrid .datagrid-group, .propertygrid .datagrid-view1 .datagrid-body, .propertygrid .datagrid-view1 .datagrid-row-over, .propertygrid .datagrid-view1 .datagrid-row-selected { background: #F2F2F2; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/searchbox.css ================================================ .searchbox { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .searchbox .searchbox-text { font-size: 12px; border: 0; margin: 0; padding: 0 2px; vertical-align: top; } .searchbox .searchbox-prompt { font-size: 12px; color: #ccc; } .searchbox-button { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .searchbox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .searchbox .l-btn-plain { border: 0; padding: 0; vertical-align: top; opacity: 0.6; filter: alpha(opacity=60); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .l-btn-plain:hover { border: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox a.m-btn-plain-active { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .m-btn-active { border-width: 0 1px 0 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .textbox-button-right { border-width: 0 0 0 1px; } .searchbox .textbox-button-left { border-width: 0 1px 0 0; } .searchbox-button { background: url('images/searchbox_button.png') no-repeat center center; } .searchbox { border-color: #D4D4D4; background-color: #fff; } .searchbox .l-btn-plain { background: #F2F2F2; } .searchbox .l-btn-plain-disabled, .searchbox .l-btn-plain-disabled:hover { opacity: 0.5; filter: alpha(opacity=50); } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/slider.css ================================================ .slider-disabled { opacity: 0.5; filter: alpha(opacity=50); } .slider-h { height: 22px; } .slider-v { width: 22px; } .slider-inner { position: relative; height: 6px; top: 7px; border-width: 1px; border-style: solid; border-radius: 5px; } .slider-handle { position: absolute; display: block; outline: none; width: 20px; height: 20px; top: 50%; margin-top: -10px; margin-left: -10px; } .slider-tip { position: absolute; display: inline-block; line-height: 12px; font-size: 12px; white-space: nowrap; top: -22px; } .slider-rule { position: relative; top: 15px; } .slider-rule span { position: absolute; display: inline-block; font-size: 0; height: 5px; border-width: 0 0 0 1px; border-style: solid; } .slider-rulelabel { position: relative; top: 20px; } .slider-rulelabel span { position: absolute; display: inline-block; font-size: 12px; } .slider-v .slider-inner { width: 6px; left: 7px; top: 0; float: left; } .slider-v .slider-handle { left: 50%; margin-top: -10px; } .slider-v .slider-tip { left: -10px; margin-top: -6px; } .slider-v .slider-rule { float: left; top: 0; left: 16px; } .slider-v .slider-rule span { width: 5px; height: 'auto'; border-left: 0; border-width: 1px 0 0 0; border-style: solid; } .slider-v .slider-rulelabel { float: left; top: 0; left: 23px; } .slider-handle { background: url('images/slider_handle.png') no-repeat; } .slider-inner { border-color: #D4D4D4; background: #F2F2F2; } .slider-rule span { border-color: #D4D4D4; } .slider-rulelabel span { color: #333; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/spinner.css ================================================ .spinner { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .spinner .spinner-text { font-size: 12px; border: 0px; margin: 0; padding: 0 2px; vertical-align: baseline; } .spinner-arrow { background-color: #F2F2F2; display: inline-block; overflow: hidden; vertical-align: top; margin: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); width: 18px; } .spinner-arrow-up, .spinner-arrow-down { opacity: 0.6; filter: alpha(opacity=60); display: block; font-size: 1px; width: 18px; height: 10px; width: 100%; height: 50%; outline-style: none; } .spinner-arrow-hover { background-color: #e6e6e6; opacity: 1.0; filter: alpha(opacity=100); } .spinner-arrow-up:hover, .spinner-arrow-down:hover { opacity: 1.0; filter: alpha(opacity=100); background-color: #e6e6e6; } .textbox-icon-disabled .spinner-arrow-up:hover, .textbox-icon-disabled .spinner-arrow-down:hover { opacity: 0.6; filter: alpha(opacity=60); background-color: #F2F2F2; cursor: default; } .spinner .textbox-icon-disabled { opacity: 0.6; filter: alpha(opacity=60); } .spinner-arrow-up { background: url('images/spinner_arrows.png') no-repeat 1px center; } .spinner-arrow-down { background: url('images/spinner_arrows.png') no-repeat -15px center; } .spinner { border-color: #D4D4D4; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/splitbutton.css ================================================ .s-btn:hover .m-btn-line, .s-btn-active .m-btn-line, .s-btn-plain-active .m-btn-line { display: inline-block; } .l-btn:hover .s-btn-downarrow, .s-btn-active .s-btn-downarrow, .s-btn-plain-active .s-btn-downarrow { border-style: solid; border-color: #bbb; border-width: 0 0 0 1px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/tabs.css ================================================ .tabs-container { overflow: hidden; } .tabs-header { border-width: 1px; border-style: solid; border-bottom-width: 0; position: relative; padding: 0; padding-top: 2px; overflow: hidden; } .tabs-header-plain { border: 0; background: transparent; } .tabs-scroller-left, .tabs-scroller-right { position: absolute; top: auto; bottom: 0; width: 18px; font-size: 1px; display: none; cursor: pointer; border-width: 1px; border-style: solid; } .tabs-scroller-left { left: 0; } .tabs-scroller-right { right: 0; } .tabs-tool { position: absolute; bottom: 0; padding: 1px; overflow: hidden; border-width: 1px; border-style: solid; } .tabs-header-plain .tabs-tool { padding: 0 1px; } .tabs-wrap { position: relative; left: 0; overflow: hidden; width: 100%; margin: 0; padding: 0; } .tabs-scrolling { margin-left: 18px; margin-right: 18px; } .tabs-disabled { opacity: 0.3; filter: alpha(opacity=30); } .tabs { list-style-type: none; height: 26px; margin: 0px; padding: 0px; padding-left: 4px; width: 50000px; border-style: solid; border-width: 0 0 1px 0; } .tabs li { float: left; display: inline-block; margin: 0 4px -1px 0; padding: 0; position: relative; border: 0; } .tabs li a.tabs-inner { display: inline-block; text-decoration: none; margin: 0; padding: 0 10px; height: 25px; line-height: 25px; text-align: center; white-space: nowrap; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .tabs li.tabs-selected a.tabs-inner { font-weight: bold; outline: none; } .tabs li.tabs-selected a:hover.tabs-inner { cursor: default; pointer: default; } .tabs li a.tabs-close, .tabs-p-tool { position: absolute; font-size: 1px; display: block; height: 12px; padding: 0; top: 50%; margin-top: -6px; overflow: hidden; } .tabs li a.tabs-close { width: 12px; right: 5px; opacity: 0.6; filter: alpha(opacity=60); } .tabs-p-tool { right: 16px; } .tabs-p-tool a { display: inline-block; font-size: 1px; width: 12px; height: 12px; margin: 0; opacity: 0.6; filter: alpha(opacity=60); } .tabs li a:hover.tabs-close, .tabs-p-tool a:hover { opacity: 1; filter: alpha(opacity=100); cursor: hand; cursor: pointer; } .tabs-with-icon { padding-left: 18px; } .tabs-icon { position: absolute; width: 16px; height: 16px; left: 10px; top: 50%; margin-top: -8px; } .tabs-title { font-size: 12px; } .tabs-closable { padding-right: 8px; } .tabs-panels { margin: 0px; padding: 0px; border-width: 1px; border-style: solid; border-top-width: 0; overflow: hidden; } .tabs-header-bottom { border-width: 0 1px 1px 1px; padding: 0 0 2px 0; } .tabs-header-bottom .tabs { border-width: 1px 0 0 0; } .tabs-header-bottom .tabs li { margin: -1px 4px 0 0; } .tabs-header-bottom .tabs li a.tabs-inner { -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; } .tabs-header-bottom .tabs-tool { top: 0; } .tabs-header-bottom .tabs-scroller-left, .tabs-header-bottom .tabs-scroller-right { top: 0; bottom: auto; } .tabs-panels-top { border-width: 1px 1px 0 1px; } .tabs-header-left { float: left; border-width: 1px 0 1px 1px; padding: 0; } .tabs-header-right { float: right; border-width: 1px 1px 1px 0; padding: 0; } .tabs-header-left .tabs-wrap, .tabs-header-right .tabs-wrap { height: 100%; } .tabs-header-left .tabs { height: 100%; padding: 4px 0 0 4px; border-width: 0 1px 0 0; } .tabs-header-right .tabs { height: 100%; padding: 4px 4px 0 0; border-width: 0 0 0 1px; } .tabs-header-left .tabs li, .tabs-header-right .tabs li { display: block; width: 100%; position: relative; } .tabs-header-left .tabs li { left: auto; right: 0; margin: 0 -1px 4px 0; float: right; } .tabs-header-right .tabs li { left: 0; right: auto; margin: 0 0 4px -1px; float: left; } .tabs-header-left .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .tabs-header-right .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0 5px 5px 0; -webkit-border-radius: 0 5px 5px 0; border-radius: 0 5px 5px 0; } .tabs-panels-right { float: right; border-width: 1px 1px 1px 0; } .tabs-panels-left { float: left; border-width: 1px 0 1px 1px; } .tabs-header-noborder, .tabs-panels-noborder { border: 0px; } .tabs-header-plain { border: 0px; background: transparent; } .tabs-scroller-left { background: #F2F2F2 url('images/tabs_icons.png') no-repeat 1px center; } .tabs-scroller-right { background: #F2F2F2 url('images/tabs_icons.png') no-repeat -15px center; } .tabs li a.tabs-close { background: url('images/tabs_icons.png') no-repeat -34px center; } .tabs li a.tabs-inner:hover { background: #e6e6e6; color: #00438a; filter: none; } .tabs li.tabs-selected a.tabs-inner { background-color: #ffffff; color: #777; background: -webkit-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(top,#ffffff 0,#ffffff 100%); background: linear-gradient(to bottom,#ffffff 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=0); } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(top,#ffffff 0,#ffffff 100%); background: linear-gradient(to bottom,#ffffff 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=0); } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(left,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(left,#ffffff 0,#ffffff 100%); background: linear-gradient(to right,#ffffff 0,#ffffff 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=1); } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(left,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(left,#ffffff 0,#ffffff 100%); background: linear-gradient(to right,#ffffff 0,#ffffff 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=1); } .tabs li a.tabs-inner { color: #777; background-color: #F2F2F2; background: -webkit-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -moz-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: -o-linear-gradient(top,#ffffff 0,#F2F2F2 100%); background: linear-gradient(to bottom,#ffffff 0,#F2F2F2 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F2F2F2,GradientType=0); } .tabs-header, .tabs-tool { background-color: #F2F2F2; } .tabs-header-plain { background: transparent; } .tabs-header, .tabs-scroller-left, .tabs-scroller-right, .tabs-tool, .tabs, .tabs-panels, .tabs li a.tabs-inner, .tabs li.tabs-selected a.tabs-inner, .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner, .tabs-header-left .tabs li.tabs-selected a.tabs-inner, .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-color: #D4D4D4; } .tabs-p-tool a:hover, .tabs li a:hover.tabs-close, .tabs-scroller-over { background-color: #e6e6e6; } .tabs li.tabs-selected a.tabs-inner { border-bottom: 1px solid #ffffff; } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { border-top: 1px solid #ffffff; } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { border-right: 1px solid #ffffff; } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-left: 1px solid #ffffff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/textbox.css ================================================ .textbox { position: relative; border: 1px solid #D4D4D4; background-color: #fff; vertical-align: middle; display: inline-block; overflow: hidden; white-space: nowrap; margin: 0; padding: 0; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-text { font-size: 12px; border: 0; margin: 0; padding: 4px; white-space: normal; vertical-align: top; outline-style: none; resize: none; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-prompt { font-size: 12px; color: #aaa; } .textbox-button, .textbox-button:hover { position: absolute; top: 0; padding: 0; vertical-align: top; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .textbox-button-right, .textbox-button-right:hover { border-width: 0 0 0 1px; } .textbox-button-left, .textbox-button-left:hover { border-width: 0 1px 0 0; } .textbox-addon { position: absolute; top: 0; } .textbox-icon { display: inline-block; width: 18px; height: 20px; overflow: hidden; vertical-align: top; background-position: center center; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); text-decoration: none; outline-style: none; } .textbox-icon-disabled, .textbox-icon-readonly { cursor: default; } .textbox-icon:hover { opacity: 1.0; filter: alpha(opacity=100); } .textbox-icon-disabled:hover { opacity: 0.6; filter: alpha(opacity=60); } .textbox-focused { -moz-box-shadow: 0 0 3px 0 #D4D4D4; -webkit-box-shadow: 0 0 3px 0 #D4D4D4; box-shadow: 0 0 3px 0 #D4D4D4; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/tooltip.css ================================================ .tooltip { position: absolute; display: none; z-index: 9900000; outline: none; opacity: 1; filter: alpha(opacity=100); padding: 5px; border-width: 1px; border-style: solid; border-radius: 5px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .tooltip-content { font-size: 12px; } .tooltip-arrow-outer, .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border-style: solid; border-width: 6px; border-color: transparent; _border-color: tomato; _filter: chroma(color=tomato); } .tooltip-right .tooltip-arrow-outer { left: 0; top: 50%; margin: -6px 0 0 -13px; } .tooltip-right .tooltip-arrow { left: 0; top: 50%; margin: -6px 0 0 -12px; } .tooltip-left .tooltip-arrow-outer { right: 0; top: 50%; margin: -6px -13px 0 0; } .tooltip-left .tooltip-arrow { right: 0; top: 50%; margin: -6px -12px 0 0; } .tooltip-top .tooltip-arrow-outer { bottom: 0; left: 50%; margin: 0 0 -13px -6px; } .tooltip-top .tooltip-arrow { bottom: 0; left: 50%; margin: 0 0 -12px -6px; } .tooltip-bottom .tooltip-arrow-outer { top: 0; left: 50%; margin: -13px 0 0 -6px; } .tooltip-bottom .tooltip-arrow { top: 0; left: 50%; margin: -12px 0 0 -6px; } .tooltip { background-color: #ffffff; border-color: #D4D4D4; color: #333; } .tooltip-right .tooltip-arrow-outer { border-right-color: #D4D4D4; } .tooltip-right .tooltip-arrow { border-right-color: #ffffff; } .tooltip-left .tooltip-arrow-outer { border-left-color: #D4D4D4; } .tooltip-left .tooltip-arrow { border-left-color: #ffffff; } .tooltip-top .tooltip-arrow-outer { border-top-color: #D4D4D4; } .tooltip-top .tooltip-arrow { border-top-color: #ffffff; } .tooltip-bottom .tooltip-arrow-outer { border-bottom-color: #D4D4D4; } .tooltip-bottom .tooltip-arrow { border-bottom-color: #ffffff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/tree.css ================================================ .tree { margin: 0; padding: 0; list-style-type: none; } .tree li { white-space: nowrap; } .tree li ul { list-style-type: none; margin: 0; padding: 0; } .tree-node { height: 18px; white-space: nowrap; cursor: pointer; } .tree-hit { cursor: pointer; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; vertical-align: top; overflow: hidden; } .tree-expanded { background: url('images/tree_icons.png') no-repeat -18px 0px; } .tree-expanded-hover { background: url('images/tree_icons.png') no-repeat -50px 0px; } .tree-collapsed { background: url('images/tree_icons.png') no-repeat 0px 0px; } .tree-collapsed-hover { background: url('images/tree_icons.png') no-repeat -32px 0px; } .tree-lines .tree-expanded, .tree-lines .tree-root-first .tree-expanded { background: url('images/tree_icons.png') no-repeat -144px 0; } .tree-lines .tree-collapsed, .tree-lines .tree-root-first .tree-collapsed { background: url('images/tree_icons.png') no-repeat -128px 0; } .tree-lines .tree-node-last .tree-expanded, .tree-lines .tree-root-one .tree-expanded { background: url('images/tree_icons.png') no-repeat -80px 0; } .tree-lines .tree-node-last .tree-collapsed, .tree-lines .tree-root-one .tree-collapsed { background: url('images/tree_icons.png') no-repeat -64px 0; } .tree-line { background: url('images/tree_icons.png') no-repeat -176px 0; } .tree-join { background: url('images/tree_icons.png') no-repeat -192px 0; } .tree-joinbottom { background: url('images/tree_icons.png') no-repeat -160px 0; } .tree-folder { background: url('images/tree_icons.png') no-repeat -208px 0; } .tree-folder-open { background: url('images/tree_icons.png') no-repeat -224px 0; } .tree-file { background: url('images/tree_icons.png') no-repeat -240px 0; } .tree-loading { background: url('images/loading.gif') no-repeat center center; } .tree-checkbox0 { background: url('images/tree_icons.png') no-repeat -208px -18px; } .tree-checkbox1 { background: url('images/tree_icons.png') no-repeat -224px -18px; } .tree-checkbox2 { background: url('images/tree_icons.png') no-repeat -240px -18px; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: top; white-space: nowrap; padding: 0 2px; height: 18px; line-height: 18px; } .tree-node-proxy { font-size: 12px; line-height: 20px; padding: 0 2px 0 20px; border-width: 1px; border-style: solid; z-index: 9900000; } .tree-dnd-icon { display: inline-block; position: absolute; width: 16px; height: 18px; left: 2px; top: 50%; margin-top: -9px; } .tree-dnd-yes { background: url('images/tree_icons.png') no-repeat -256px 0; } .tree-dnd-no { background: url('images/tree_icons.png') no-repeat -256px -18px; } .tree-node-top { border-top: 1px dotted red; } .tree-node-bottom { border-bottom: 1px dotted red; } .tree-node-append .tree-title { border: 1px dotted red; } .tree-editor { border: 1px solid #ccc; font-size: 12px; height: 14px !important; height: 18px; line-height: 14px; padding: 1px 2px; width: 80px; position: absolute; top: 0; } .tree-node-proxy { background-color: #ffffff; color: #333; border-color: #D4D4D4; } .tree-node-hover { background: #e6e6e6; color: #00438a; } .tree-node-selected { background: #0081c2; color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/validatebox.css ================================================ .validatebox-invalid { border-color: #ffa8a8; background-color: #fff3f3; color: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/bootstrap/window.css ================================================ .window { overflow: hidden; padding: 5px; border-width: 1px; border-style: solid; } .window .window-header { background: transparent; padding: 0px 0px 6px 0px; } .window .window-body { border-width: 1px; border-style: solid; border-top-width: 0px; } .window .window-body-noheader { border-top-width: 1px; } .window .panel-body-nobottom { border-bottom-width: 0; } .window .window-header .panel-icon, .window .window-header .panel-tool { top: 50%; margin-top: -11px; } .window .window-header .panel-icon { left: 1px; } .window .window-header .panel-tool { right: 1px; } .window .window-header .panel-with-icon { padding-left: 18px; } .window-proxy { position: absolute; overflow: hidden; } .window-proxy-mask { position: absolute; filter: alpha(opacity=5); opacity: 0.05; } .window-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: alpha(opacity=40); opacity: 0.40; font-size: 1px; overflow: hidden; } .window, .window-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .window-shadow { background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .window, .window .window-body { border-color: #D4D4D4; } .window { background-color: #F2F2F2; background: -webkit-linear-gradient(top,#ffffff 0,#F2F2F2 20%); background: -moz-linear-gradient(top,#ffffff 0,#F2F2F2 20%); background: -o-linear-gradient(top,#ffffff 0,#F2F2F2 20%); background: linear-gradient(to bottom,#ffffff 0,#F2F2F2 20%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F2F2F2,GradientType=0); } .window-proxy { border: 1px dashed #D4D4D4; } .window-proxy-mask, .window-mask { background: #ccc; } .window .panel-footer { border: 1px solid #D4D4D4; position: relative; top: -1px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/color.css ================================================ .c1,.c1:hover{ color: #fff; border-color: #3c8b3c; background: #4cae4c; background: -webkit-linear-gradient(top,#4cae4c 0,#449d44 100%); background: -moz-linear-gradient(top,#4cae4c 0,#449d44 100%); background: -o-linear-gradient(top,#4cae4c 0,#449d44 100%); background: linear-gradient(to bottom,#4cae4c 0,#449d44 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4cae4c,endColorstr=#449d44,GradientType=0); } a.c1:hover{ background: #449d44; filter: none; } .c2,.c2:hover{ color: #fff; border-color: #5f5f5f; background: #747474; background: -webkit-linear-gradient(top,#747474 0,#676767 100%); background: -moz-linear-gradient(top,#747474 0,#676767 100%); background: -o-linear-gradient(top,#747474 0,#676767 100%); background: linear-gradient(to bottom,#747474 0,#676767 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#747474,endColorstr=#676767,GradientType=0); } a.c2:hover{ background: #676767; filter: none; } .c3,.c3:hover{ color: #333; border-color: #ff8080; background: #ffb3b3; background: -webkit-linear-gradient(top,#ffb3b3 0,#ff9999 100%); background: -moz-linear-gradient(top,#ffb3b3 0,#ff9999 100%); background: -o-linear-gradient(top,#ffb3b3 0,#ff9999 100%); background: linear-gradient(to bottom,#ffb3b3 0,#ff9999 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffb3b3,endColorstr=#ff9999,GradientType=0); } a.c3:hover{ background: #ff9999; filter: none; } .c4,.c4:hover{ color: #333; border-color: #52d689; background: #b8eecf; background: -webkit-linear-gradient(top,#b8eecf 0,#a4e9c1 100%); background: -moz-linear-gradient(top,#b8eecf 0,#a4e9c1 100%); background: -o-linear-gradient(top,#b8eecf 0,#a4e9c1 100%); background: linear-gradient(to bottom,#b8eecf 0,#a4e9c1 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b8eecf,endColorstr=#a4e9c1,GradientType=0); } a.c4:hover{ background: #a4e9c1; filter: none; } .c5,.c5:hover{ color: #fff; border-color: #b52b27; background: #d84f4b; background: -webkit-linear-gradient(top,#d84f4b 0,#c9302c 100%); background: -moz-linear-gradient(top,#d84f4b 0,#c9302c 100%); background: -o-linear-gradient(top,#d84f4b 0,#c9302c 100%); background: linear-gradient(to bottom,#d84f4b 0,#c9302c 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#d84f4b,endColorstr=#c9302c,GradientType=0); } a.c5:hover{ background: #c9302c; filter: none; } .c6,.c6:hover{ color: #fff; border-color: #1f637b; background: #2984a4; background: -webkit-linear-gradient(top,#2984a4 0,#24748f 100%); background: -moz-linear-gradient(top,#2984a4 0,#24748f 100%); background: -o-linear-gradient(top,#2984a4 0,#24748f 100%); background: linear-gradient(to bottom,#2984a4 0,#24748f 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#2984a4,endColorstr=#24748f,GradientType=0); } a.c6:hover{ background: #24748f; filter: none; } .c7,.c7:hover{ color: #333; border-color: #e68900; background: #ffab2e; background: -webkit-linear-gradient(top,#ffab2e 0,#ff9900 100%); background: -moz-linear-gradient(top,#ffab2e 0,#ff9900 100%); background: -o-linear-gradient(top,#ffab2e 0,#ff9900 100%); background: linear-gradient(to bottom,#ffab2e 0,#ff9900 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffab2e,endColorstr=#ff9900,GradientType=0); } a.c7:hover{ background: #ff9900; filter: none; } .c8,.c8:hover{ color: #fff; border-color: #4b72a4; background: #698cba; background: -webkit-linear-gradient(top,#698cba 0,#577eb2 100%); background: -moz-linear-gradient(top,#698cba 0,#577eb2 100%); background: -o-linear-gradient(top,#698cba 0,#577eb2 100%); background: linear-gradient(to bottom,#698cba 0,#577eb2 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#698cba,endColorstr=#577eb2,GradientType=0); } a.c8:hover{ background: #577eb2; filter: none; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/accordion.css ================================================ .accordion { overflow: hidden; border-width: 1px; border-style: solid; } .accordion .accordion-header { border-width: 0 0 1px; cursor: pointer; } .accordion .accordion-body { border-width: 0 0 1px; } .accordion-noborder { border-width: 0; } .accordion-noborder .accordion-header { border-width: 0 0 1px; } .accordion-noborder .accordion-body { border-width: 0 0 1px; } .accordion-collapse { background: url('images/accordion_arrows.png') no-repeat 0 0; } .accordion-expand { background: url('images/accordion_arrows.png') no-repeat -16px 0; } .accordion { background: #ffffff; border-color: #95B8E7; } .accordion .accordion-header { background: #E0ECFF; filter: none; } .accordion .accordion-header-selected { background: #ffe48d; } .accordion .accordion-header-selected .panel-title { color: #000000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/calendar.css ================================================ .calendar { border-width: 1px; border-style: solid; padding: 1px; overflow: hidden; } .calendar table { table-layout: fixed; border-collapse: separate; font-size: 12px; width: 100%; height: 100%; } .calendar table td, .calendar table th { font-size: 12px; } .calendar-noborder { border: 0; } .calendar-header { position: relative; height: 22px; } .calendar-title { text-align: center; height: 22px; } .calendar-title span { position: relative; display: inline-block; top: 2px; padding: 0 3px; height: 18px; line-height: 18px; font-size: 12px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth, .calendar-nextmonth, .calendar-prevyear, .calendar-nextyear { position: absolute; top: 50%; margin-top: -7px; width: 14px; height: 14px; cursor: pointer; font-size: 1px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth { left: 20px; background: url('images/calendar_arrows.png') no-repeat -18px -2px; } .calendar-nextmonth { right: 20px; background: url('images/calendar_arrows.png') no-repeat -34px -2px; } .calendar-prevyear { left: 3px; background: url('images/calendar_arrows.png') no-repeat -1px -2px; } .calendar-nextyear { right: 3px; background: url('images/calendar_arrows.png') no-repeat -49px -2px; } .calendar-body { position: relative; } .calendar-body th, .calendar-body td { text-align: center; } .calendar-day { border: 0; padding: 1px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-other-month { opacity: 0.3; filter: alpha(opacity=30); } .calendar-disabled { opacity: 0.6; filter: alpha(opacity=60); cursor: default; } .calendar-menu { position: absolute; top: 0; left: 0; width: 180px; height: 150px; padding: 5px; font-size: 12px; display: none; overflow: hidden; } .calendar-menu-year-inner { text-align: center; padding-bottom: 5px; } .calendar-menu-year { width: 40px; text-align: center; border-width: 1px; border-style: solid; margin: 0; padding: 2px; font-weight: bold; font-size: 12px; } .calendar-menu-prev, .calendar-menu-next { display: inline-block; width: 21px; height: 21px; vertical-align: top; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-menu-prev { margin-right: 10px; background: url('images/calendar_arrows.png') no-repeat 2px 2px; } .calendar-menu-next { margin-left: 10px; background: url('images/calendar_arrows.png') no-repeat -45px 2px; } .calendar-menu-month { text-align: center; cursor: pointer; font-weight: bold; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-body th, .calendar-menu-month { color: #4d4d4d; } .calendar-day { color: #000000; } .calendar-sunday { color: #CC2222; } .calendar-saturday { color: #00ee00; } .calendar-today { color: #0000ff; } .calendar-menu-year { border-color: #95B8E7; } .calendar { border-color: #95B8E7; } .calendar-header { background: #E0ECFF; } .calendar-body, .calendar-menu { background: #ffffff; } .calendar-body th { background: #F4F4F4; padding: 2px 0; } .calendar-hover, .calendar-nav-hover, .calendar-menu-hover { background-color: #eaf2ff; color: #000000; } .calendar-hover { border: 1px solid #b7d2ff; padding: 0; } .calendar-selected { background-color: #ffe48d; color: #000000; border: 1px solid #ffab3f; padding: 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/combo.css ================================================ .combo { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .combo .combo-text { font-size: 12px; border: 0px; margin: 0; padding: 0px 2px; vertical-align: baseline; } .combo-arrow { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .combo-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .combo-panel { overflow: auto; } .combo-arrow { background: url('images/combo_arrow.png') no-repeat center center; } .combo-panel { background-color: #ffffff; } .combo { border-color: #95B8E7; background-color: #fff; } .combo-arrow { background-color: #E0ECFF; } .combo-arrow-hover { background-color: #eaf2ff; } .combo-arrow:hover { background-color: #eaf2ff; } .combo .textbox-icon-disabled:hover { cursor: default; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/combobox.css ================================================ .combobox-item, .combobox-group { font-size: 12px; padding: 3px; padding-right: 0px; } .combobox-item-disabled { opacity: 0.5; filter: alpha(opacity=50); } .combobox-gitem { padding-left: 10px; } .combobox-group { font-weight: bold; } .combobox-item-hover { background-color: #eaf2ff; color: #000000; } .combobox-item-selected { background-color: #ffe48d; color: #000000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/datagrid.css ================================================ .datagrid .panel-body { overflow: hidden; position: relative; } .datagrid-view { position: relative; overflow: hidden; } .datagrid-view1, .datagrid-view2 { position: absolute; overflow: hidden; top: 0; } .datagrid-view1 { left: 0; } .datagrid-view2 { right: 0; } .datagrid-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.3; filter: alpha(opacity=30); display: none; } .datagrid-mask-msg { position: absolute; top: 50%; margin-top: -20px; padding: 10px 5px 10px 30px; width: auto; height: 16px; border-width: 2px; border-style: solid; display: none; } .datagrid-sort-icon { padding: 0; } .datagrid-toolbar { height: auto; padding: 1px 2px; border-width: 0 0 1px 0; border-style: solid; } .datagrid-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .datagrid .datagrid-pager { display: block; margin: 0; border-width: 1px 0 0 0; border-style: solid; } .datagrid .datagrid-pager-top { border-width: 0 0 1px 0; } .datagrid-header { overflow: hidden; cursor: default; border-width: 0 0 1px 0; border-style: solid; } .datagrid-header-inner { float: left; width: 10000px; } .datagrid-header-row, .datagrid-row { height: 25px; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-width: 0 1px 1px 0; border-style: dotted; margin: 0; padding: 0; } .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber { margin: 0; padding: 0 4px; white-space: nowrap; word-wrap: normal; overflow: hidden; height: 18px; line-height: 18px; font-size: 12px; } .datagrid-header .datagrid-cell { height: auto; } .datagrid-header .datagrid-cell span { font-size: 12px; } .datagrid-cell-group { text-align: center; } .datagrid-header-rownumber, .datagrid-cell-rownumber { width: 25px; text-align: center; margin: 0; padding: 0; } .datagrid-body { margin: 0; padding: 0; overflow: auto; zoom: 1; } .datagrid-view1 .datagrid-body-inner { padding-bottom: 20px; } .datagrid-view1 .datagrid-body { overflow: hidden; } .datagrid-footer { overflow: hidden; } .datagrid-footer-inner { border-width: 1px 0 0 0; border-style: solid; width: 10000px; float: left; } .datagrid-row-editing .datagrid-cell { height: auto; } .datagrid-header-check, .datagrid-cell-check { padding: 0; width: 27px; height: 18px; font-size: 1px; text-align: center; overflow: hidden; } .datagrid-header-check input, .datagrid-cell-check input { margin: 0; padding: 0; width: 15px; height: 18px; } .datagrid-resize-proxy { position: absolute; width: 1px; height: 10000px; top: 0; cursor: e-resize; display: none; } .datagrid-body .datagrid-editable { margin: 0; padding: 0; } .datagrid-body .datagrid-editable table { width: 100%; height: 100%; } .datagrid-body .datagrid-editable td { border: 0; margin: 0; padding: 0; } .datagrid-view .datagrid-editable-input { margin: 0; padding: 2px 4px; border: 1px solid #95B8E7; font-size: 12px; outline-style: none; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .datagrid-sort-desc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat -16px center; } .datagrid-sort-asc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat 0px center; } .datagrid-row-collapse { background: url('images/datagrid_icons.png') no-repeat -48px center; } .datagrid-row-expand { background: url('images/datagrid_icons.png') no-repeat -32px center; } .datagrid-mask-msg { background: #ffffff url('images/loading.gif') no-repeat scroll 5px center; } .datagrid-header, .datagrid-td-rownumber { background-color: #efefef; background: -webkit-linear-gradient(top,#F9F9F9 0,#efefef 100%); background: -moz-linear-gradient(top,#F9F9F9 0,#efefef 100%); background: -o-linear-gradient(top,#F9F9F9 0,#efefef 100%); background: linear-gradient(to bottom,#F9F9F9 0,#efefef 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F9F9F9,endColorstr=#efefef,GradientType=0); } .datagrid-cell-rownumber { color: #000000; } .datagrid-resize-proxy { background: #aac5e7; } .datagrid-mask { background: #ccc; } .datagrid-mask-msg { border-color: #95B8E7; } .datagrid-toolbar, .datagrid-pager { background: #F4F4F4; } .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner { border-color: #dddddd; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-color: #ccc; } .datagrid-htable, .datagrid-btable, .datagrid-ftable { color: #000000; border-collapse: separate; } .datagrid-row-alt { background: #fafafa; } .datagrid-row-over, .datagrid-header td.datagrid-header-over { background: #eaf2ff; color: #000000; cursor: default; } .datagrid-row-selected { background: #ffe48d; color: #000000; } .datagrid-row-editing .textbox, .datagrid-row-editing .textbox-text { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/datebox.css ================================================ .datebox-calendar-inner { height: 180px; } .datebox-button { height: 18px; padding: 2px 5px; text-align: center; } .datebox-button a { font-size: 12px; font-weight: bold; text-decoration: none; opacity: 0.6; filter: alpha(opacity=60); } .datebox-button a:hover { opacity: 1.0; filter: alpha(opacity=100); } .datebox-current, .datebox-close { float: left; } .datebox-close { float: right; } .datebox .combo-arrow { background-image: url('images/datebox_arrow.png'); background-position: center center; } .datebox-button { background-color: #F4F4F4; } .datebox-button a { color: #444; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/dialog.css ================================================ .dialog-content { overflow: auto; } .dialog-toolbar { padding: 2px 5px; } .dialog-tool-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .dialog-button { padding: 5px; text-align: right; } .dialog-button .l-btn { margin-left: 5px; } .dialog-toolbar, .dialog-button { background: #F4F4F4; border-width: 1px; border-style: solid; } .dialog-toolbar { border-color: #95B8E7 #95B8E7 #dddddd #95B8E7; } .dialog-button { border-color: #dddddd #95B8E7 #95B8E7 #95B8E7; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/easyui.css ================================================ .panel { overflow: hidden; text-align: left; margin: 0; border: 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .panel-header, .panel-body { border-width: 1px; border-style: solid; } .panel-header { padding: 5px; position: relative; } .panel-title { background: url('images/blank.gif') no-repeat; } .panel-header-noborder { border-width: 0 0 1px 0; } .panel-body { overflow: auto; border-top-width: 0; padding: 0; } .panel-body-noheader { border-top-width: 1px; } .panel-body-noborder { border-width: 0px; } .panel-body-nobottom { border-bottom-width: 0; } .panel-with-icon { padding-left: 18px; } .panel-icon, .panel-tool { position: absolute; top: 50%; margin-top: -8px; height: 16px; overflow: hidden; } .panel-icon { left: 5px; width: 16px; } .panel-tool { right: 5px; width: auto; } .panel-tool a { display: inline-block; width: 16px; height: 16px; opacity: 0.6; filter: alpha(opacity=60); margin: 0 0 0 2px; vertical-align: top; } .panel-tool a:hover { opacity: 1; filter: alpha(opacity=100); background-color: #eaf2ff; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; } .panel-loading { padding: 11px 0px 10px 30px; } .panel-noscroll { overflow: hidden; } .panel-fit, .panel-fit body { height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .panel-loading { background: url('images/loading.gif') no-repeat 10px 10px; } .panel-tool-close { background: url('images/panel_tools.png') no-repeat -16px 0px; } .panel-tool-min { background: url('images/panel_tools.png') no-repeat 0px 0px; } .panel-tool-max { background: url('images/panel_tools.png') no-repeat 0px -16px; } .panel-tool-restore { background: url('images/panel_tools.png') no-repeat -16px -16px; } .panel-tool-collapse { background: url('images/panel_tools.png') no-repeat -32px 0; } .panel-tool-expand { background: url('images/panel_tools.png') no-repeat -32px -16px; } .panel-header, .panel-body { border-color: #95B8E7; } .panel-header { background-color: #E0ECFF; background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0); } .panel-body { background-color: #ffffff; color: #000000; font-size: 12px; } .panel-title { font-size: 12px; font-weight: bold; color: #0E2D5F; height: 16px; line-height: 16px; } .panel-footer { border: 1px solid #95B8E7; overflow: hidden; background: #F4F4F4; } .panel-footer-noborder { border-width: 1px 0 0 0; } .accordion { overflow: hidden; border-width: 1px; border-style: solid; } .accordion .accordion-header { border-width: 0 0 1px; cursor: pointer; } .accordion .accordion-body { border-width: 0 0 1px; } .accordion-noborder { border-width: 0; } .accordion-noborder .accordion-header { border-width: 0 0 1px; } .accordion-noborder .accordion-body { border-width: 0 0 1px; } .accordion-collapse { background: url('images/accordion_arrows.png') no-repeat 0 0; } .accordion-expand { background: url('images/accordion_arrows.png') no-repeat -16px 0; } .accordion { background: #ffffff; border-color: #95B8E7; } .accordion .accordion-header { background: #E0ECFF; filter: none; } .accordion .accordion-header-selected { background: #ffe48d; } .accordion .accordion-header-selected .panel-title { color: #000000; } .window { overflow: hidden; padding: 5px; border-width: 1px; border-style: solid; } .window .window-header { background: transparent; padding: 0px 0px 6px 0px; } .window .window-body { border-width: 1px; border-style: solid; border-top-width: 0px; } .window .window-body-noheader { border-top-width: 1px; } .window .panel-body-nobottom { border-bottom-width: 0; } .window .window-header .panel-icon, .window .window-header .panel-tool { top: 50%; margin-top: -11px; } .window .window-header .panel-icon { left: 1px; } .window .window-header .panel-tool { right: 1px; } .window .window-header .panel-with-icon { padding-left: 18px; } .window-proxy { position: absolute; overflow: hidden; } .window-proxy-mask { position: absolute; filter: alpha(opacity=5); opacity: 0.05; } .window-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: alpha(opacity=40); opacity: 0.40; font-size: 1px; overflow: hidden; } .window, .window-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .window-shadow { background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .window, .window .window-body { border-color: #95B8E7; } .window { background-color: #E0ECFF; background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%); background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%); background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%); background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 20%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0); } .window-proxy { border: 1px dashed #95B8E7; } .window-proxy-mask, .window-mask { background: #ccc; } .window .panel-footer { border: 1px solid #95B8E7; position: relative; top: -1px; } .dialog-content { overflow: auto; } .dialog-toolbar { padding: 2px 5px; } .dialog-tool-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .dialog-button { padding: 5px; text-align: right; } .dialog-button .l-btn { margin-left: 5px; } .dialog-toolbar, .dialog-button { background: #F4F4F4; border-width: 1px; border-style: solid; } .dialog-toolbar { border-color: #95B8E7 #95B8E7 #dddddd #95B8E7; } .dialog-button { border-color: #dddddd #95B8E7 #95B8E7 #95B8E7; } .l-btn { text-decoration: none; display: inline-block; overflow: hidden; margin: 0; padding: 0; cursor: pointer; outline: none; text-align: center; vertical-align: middle; } .l-btn-plain { border: 0; padding: 1px; } .l-btn-left { display: inline-block; position: relative; overflow: hidden; margin: 0; padding: 0; vertical-align: top; } .l-btn-text { display: inline-block; vertical-align: top; width: auto; line-height: 24px; font-size: 12px; padding: 0; margin: 0 4px; } .l-btn-icon { display: inline-block; width: 16px; height: 16px; line-height: 16px; position: absolute; top: 50%; margin-top: -8px; font-size: 1px; } .l-btn span span .l-btn-empty { display: inline-block; margin: 0; width: 16px; height: 24px; font-size: 1px; vertical-align: top; } .l-btn span .l-btn-icon-left { padding: 0 0 0 20px; background-position: left center; } .l-btn span .l-btn-icon-right { padding: 0 20px 0 0; background-position: right center; } .l-btn-icon-left .l-btn-text { margin: 0 4px 0 24px; } .l-btn-icon-left .l-btn-icon { left: 4px; } .l-btn-icon-right .l-btn-text { margin: 0 24px 0 4px; } .l-btn-icon-right .l-btn-icon { right: 4px; } .l-btn-icon-top .l-btn-text { margin: 20px 4px 0 4px; } .l-btn-icon-top .l-btn-icon { top: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-icon-bottom .l-btn-text { margin: 0 4px 20px 4px; } .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-left .l-btn-empty { margin: 0 4px; width: 16px; } .l-btn-plain:hover { padding: 0; } .l-btn-focus { outline: #0000FF dotted thin; } .l-btn-large .l-btn-text { line-height: 40px; } .l-btn-large .l-btn-icon { width: 32px; height: 32px; line-height: 32px; margin-top: -16px; } .l-btn-large .l-btn-icon-left .l-btn-text { margin-left: 40px; } .l-btn-large .l-btn-icon-right .l-btn-text { margin-right: 40px; } .l-btn-large .l-btn-icon-top .l-btn-text { margin-top: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-top .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-bottom .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-left .l-btn-empty { margin: 0 4px; width: 32px; } .l-btn { color: #444; background: #fafafa; background-repeat: repeat-x; border: 1px solid #bbb; background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0); -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn:hover { background: #eaf2ff; color: #000000; border: 1px solid #b7d2ff; filter: none; } .l-btn-plain { background: transparent; border: 0; filter: none; } .l-btn-plain:hover { background: #eaf2ff; color: #000000; border: 1px solid #b7d2ff; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn-disabled, .l-btn-disabled:hover { opacity: 0.5; cursor: default; background: #fafafa; color: #444; background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0); } .l-btn-disabled .l-btn-text, .l-btn-disabled .l-btn-icon { filter: alpha(opacity=50); } .l-btn-plain-disabled, .l-btn-plain-disabled:hover { background: transparent; filter: alpha(opacity=50); } .l-btn-selected, .l-btn-selected:hover { background: #ddd; filter: none; } .l-btn-plain-selected, .l-btn-plain-selected:hover { background: #ddd; } .textbox { position: relative; border: 1px solid #95B8E7; background-color: #fff; vertical-align: middle; display: inline-block; overflow: hidden; white-space: nowrap; margin: 0; padding: 0; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-text { font-size: 12px; border: 0; margin: 0; padding: 4px; white-space: normal; vertical-align: top; outline-style: none; resize: none; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-prompt { font-size: 12px; color: #aaa; } .textbox-button, .textbox-button:hover { position: absolute; top: 0; padding: 0; vertical-align: top; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .textbox-button-right, .textbox-button-right:hover { border-width: 0 0 0 1px; } .textbox-button-left, .textbox-button-left:hover { border-width: 0 1px 0 0; } .textbox-addon { position: absolute; top: 0; } .textbox-icon { display: inline-block; width: 18px; height: 20px; overflow: hidden; vertical-align: top; background-position: center center; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); text-decoration: none; outline-style: none; } .textbox-icon-disabled, .textbox-icon-readonly { cursor: default; } .textbox-icon:hover { opacity: 1.0; filter: alpha(opacity=100); } .textbox-icon-disabled:hover { opacity: 0.6; filter: alpha(opacity=60); } .textbox-focused { -moz-box-shadow: 0 0 3px 0 #95B8E7; -webkit-box-shadow: 0 0 3px 0 #95B8E7; box-shadow: 0 0 3px 0 #95B8E7; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .filebox .textbox-value { vertical-align: top; position: absolute; top: 0; left: -5000px; } .combo { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .combo .combo-text { font-size: 12px; border: 0px; margin: 0; padding: 0px 2px; vertical-align: baseline; } .combo-arrow { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .combo-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .combo-panel { overflow: auto; } .combo-arrow { background: url('images/combo_arrow.png') no-repeat center center; } .combo-panel { background-color: #ffffff; } .combo { border-color: #95B8E7; background-color: #fff; } .combo-arrow { background-color: #E0ECFF; } .combo-arrow-hover { background-color: #eaf2ff; } .combo-arrow:hover { background-color: #eaf2ff; } .combo .textbox-icon-disabled:hover { cursor: default; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .combobox-item, .combobox-group { font-size: 12px; padding: 3px; padding-right: 0px; } .combobox-item-disabled { opacity: 0.5; filter: alpha(opacity=50); } .combobox-gitem { padding-left: 10px; } .combobox-group { font-weight: bold; } .combobox-item-hover { background-color: #eaf2ff; color: #000000; } .combobox-item-selected { background-color: #ffe48d; color: #000000; } .layout { position: relative; overflow: hidden; margin: 0; padding: 0; z-index: 0; } .layout-panel { position: absolute; overflow: hidden; } .layout-panel-east, .layout-panel-west { z-index: 2; } .layout-panel-north, .layout-panel-south { z-index: 3; } .layout-expand { position: absolute; padding: 0px; font-size: 1px; cursor: pointer; z-index: 1; } .layout-expand .panel-header, .layout-expand .panel-body { background: transparent; filter: none; overflow: hidden; } .layout-expand .panel-header { border-bottom-width: 0px; } .layout-split-proxy-h, .layout-split-proxy-v { position: absolute; font-size: 1px; display: none; z-index: 5; } .layout-split-proxy-h { width: 5px; cursor: e-resize; } .layout-split-proxy-v { height: 5px; cursor: n-resize; } .layout-mask { position: absolute; background: #fafafa; filter: alpha(opacity=10); opacity: 0.10; z-index: 4; } .layout-button-up { background: url('images/layout_arrows.png') no-repeat -16px -16px; } .layout-button-down { background: url('images/layout_arrows.png') no-repeat -16px 0; } .layout-button-left { background: url('images/layout_arrows.png') no-repeat 0 0; } .layout-button-right { background: url('images/layout_arrows.png') no-repeat 0 -16px; } .layout-split-proxy-h, .layout-split-proxy-v { background-color: #aac5e7; } .layout-split-north { border-bottom: 5px solid #E6EEF8; } .layout-split-south { border-top: 5px solid #E6EEF8; } .layout-split-east { border-left: 5px solid #E6EEF8; } .layout-split-west { border-right: 5px solid #E6EEF8; } .layout-expand { background-color: #E0ECFF; } .layout-expand-over { background-color: #E0ECFF; } .tabs-container { overflow: hidden; } .tabs-header { border-width: 1px; border-style: solid; border-bottom-width: 0; position: relative; padding: 0; padding-top: 2px; overflow: hidden; } .tabs-header-plain { border: 0; background: transparent; } .tabs-scroller-left, .tabs-scroller-right { position: absolute; top: auto; bottom: 0; width: 18px; font-size: 1px; display: none; cursor: pointer; border-width: 1px; border-style: solid; } .tabs-scroller-left { left: 0; } .tabs-scroller-right { right: 0; } .tabs-tool { position: absolute; bottom: 0; padding: 1px; overflow: hidden; border-width: 1px; border-style: solid; } .tabs-header-plain .tabs-tool { padding: 0 1px; } .tabs-wrap { position: relative; left: 0; overflow: hidden; width: 100%; margin: 0; padding: 0; } .tabs-scrolling { margin-left: 18px; margin-right: 18px; } .tabs-disabled { opacity: 0.3; filter: alpha(opacity=30); } .tabs { list-style-type: none; height: 26px; margin: 0px; padding: 0px; padding-left: 4px; width: 50000px; border-style: solid; border-width: 0 0 1px 0; } .tabs li { float: left; display: inline-block; margin: 0 4px -1px 0; padding: 0; position: relative; border: 0; } .tabs li a.tabs-inner { display: inline-block; text-decoration: none; margin: 0; padding: 0 10px; height: 25px; line-height: 25px; text-align: center; white-space: nowrap; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .tabs li.tabs-selected a.tabs-inner { font-weight: bold; outline: none; } .tabs li.tabs-selected a:hover.tabs-inner { cursor: default; pointer: default; } .tabs li a.tabs-close, .tabs-p-tool { position: absolute; font-size: 1px; display: block; height: 12px; padding: 0; top: 50%; margin-top: -6px; overflow: hidden; } .tabs li a.tabs-close { width: 12px; right: 5px; opacity: 0.6; filter: alpha(opacity=60); } .tabs-p-tool { right: 16px; } .tabs-p-tool a { display: inline-block; font-size: 1px; width: 12px; height: 12px; margin: 0; opacity: 0.6; filter: alpha(opacity=60); } .tabs li a:hover.tabs-close, .tabs-p-tool a:hover { opacity: 1; filter: alpha(opacity=100); cursor: hand; cursor: pointer; } .tabs-with-icon { padding-left: 18px; } .tabs-icon { position: absolute; width: 16px; height: 16px; left: 10px; top: 50%; margin-top: -8px; } .tabs-title { font-size: 12px; } .tabs-closable { padding-right: 8px; } .tabs-panels { margin: 0px; padding: 0px; border-width: 1px; border-style: solid; border-top-width: 0; overflow: hidden; } .tabs-header-bottom { border-width: 0 1px 1px 1px; padding: 0 0 2px 0; } .tabs-header-bottom .tabs { border-width: 1px 0 0 0; } .tabs-header-bottom .tabs li { margin: -1px 4px 0 0; } .tabs-header-bottom .tabs li a.tabs-inner { -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; } .tabs-header-bottom .tabs-tool { top: 0; } .tabs-header-bottom .tabs-scroller-left, .tabs-header-bottom .tabs-scroller-right { top: 0; bottom: auto; } .tabs-panels-top { border-width: 1px 1px 0 1px; } .tabs-header-left { float: left; border-width: 1px 0 1px 1px; padding: 0; } .tabs-header-right { float: right; border-width: 1px 1px 1px 0; padding: 0; } .tabs-header-left .tabs-wrap, .tabs-header-right .tabs-wrap { height: 100%; } .tabs-header-left .tabs { height: 100%; padding: 4px 0 0 4px; border-width: 0 1px 0 0; } .tabs-header-right .tabs { height: 100%; padding: 4px 4px 0 0; border-width: 0 0 0 1px; } .tabs-header-left .tabs li, .tabs-header-right .tabs li { display: block; width: 100%; position: relative; } .tabs-header-left .tabs li { left: auto; right: 0; margin: 0 -1px 4px 0; float: right; } .tabs-header-right .tabs li { left: 0; right: auto; margin: 0 0 4px -1px; float: left; } .tabs-header-left .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .tabs-header-right .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0 5px 5px 0; -webkit-border-radius: 0 5px 5px 0; border-radius: 0 5px 5px 0; } .tabs-panels-right { float: right; border-width: 1px 1px 1px 0; } .tabs-panels-left { float: left; border-width: 1px 0 1px 1px; } .tabs-header-noborder, .tabs-panels-noborder { border: 0px; } .tabs-header-plain { border: 0px; background: transparent; } .tabs-scroller-left { background: #E0ECFF url('images/tabs_icons.png') no-repeat 1px center; } .tabs-scroller-right { background: #E0ECFF url('images/tabs_icons.png') no-repeat -15px center; } .tabs li a.tabs-close { background: url('images/tabs_icons.png') no-repeat -34px center; } .tabs li a.tabs-inner:hover { background: #eaf2ff; color: #000000; filter: none; } .tabs li.tabs-selected a.tabs-inner { background-color: #ffffff; color: #0E2D5F; background: -webkit-linear-gradient(top,#EFF5FF 0,#ffffff 100%); background: -moz-linear-gradient(top,#EFF5FF 0,#ffffff 100%); background: -o-linear-gradient(top,#EFF5FF 0,#ffffff 100%); background: linear-gradient(to bottom,#EFF5FF 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#ffffff,GradientType=0); } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(top,#ffffff 0,#EFF5FF 100%); background: -moz-linear-gradient(top,#ffffff 0,#EFF5FF 100%); background: -o-linear-gradient(top,#ffffff 0,#EFF5FF 100%); background: linear-gradient(to bottom,#ffffff 0,#EFF5FF 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#EFF5FF,GradientType=0); } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#EFF5FF 0,#ffffff 100%); background: -moz-linear-gradient(left,#EFF5FF 0,#ffffff 100%); background: -o-linear-gradient(left,#EFF5FF 0,#ffffff 100%); background: linear-gradient(to right,#EFF5FF 0,#ffffff 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#ffffff,GradientType=1); } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#ffffff 0,#EFF5FF 100%); background: -moz-linear-gradient(left,#ffffff 0,#EFF5FF 100%); background: -o-linear-gradient(left,#ffffff 0,#EFF5FF 100%); background: linear-gradient(to right,#ffffff 0,#EFF5FF 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#EFF5FF,GradientType=1); } .tabs li a.tabs-inner { color: #0E2D5F; background-color: #E0ECFF; background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0); } .tabs-header, .tabs-tool { background-color: #E0ECFF; } .tabs-header-plain { background: transparent; } .tabs-header, .tabs-scroller-left, .tabs-scroller-right, .tabs-tool, .tabs, .tabs-panels, .tabs li a.tabs-inner, .tabs li.tabs-selected a.tabs-inner, .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner, .tabs-header-left .tabs li.tabs-selected a.tabs-inner, .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-color: #95B8E7; } .tabs-p-tool a:hover, .tabs li a:hover.tabs-close, .tabs-scroller-over { background-color: #eaf2ff; } .tabs li.tabs-selected a.tabs-inner { border-bottom: 1px solid #ffffff; } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { border-top: 1px solid #ffffff; } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { border-right: 1px solid #ffffff; } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-left: 1px solid #ffffff; } .datagrid .panel-body { overflow: hidden; position: relative; } .datagrid-view { position: relative; overflow: hidden; } .datagrid-view1, .datagrid-view2 { position: absolute; overflow: hidden; top: 0; } .datagrid-view1 { left: 0; } .datagrid-view2 { right: 0; } .datagrid-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.3; filter: alpha(opacity=30); display: none; } .datagrid-mask-msg { position: absolute; top: 50%; margin-top: -20px; padding: 10px 5px 10px 30px; width: auto; height: 16px; border-width: 2px; border-style: solid; display: none; } .datagrid-sort-icon { padding: 0; } .datagrid-toolbar { height: auto; padding: 1px 2px; border-width: 0 0 1px 0; border-style: solid; } .datagrid-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .datagrid .datagrid-pager { display: block; margin: 0; border-width: 1px 0 0 0; border-style: solid; } .datagrid .datagrid-pager-top { border-width: 0 0 1px 0; } .datagrid-header { overflow: hidden; cursor: default; border-width: 0 0 1px 0; border-style: solid; } .datagrid-header-inner { float: left; width: 10000px; } .datagrid-header-row, .datagrid-row { height: 25px; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-width: 0 1px 1px 0; border-style: dotted; margin: 0; padding: 0; } .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber { margin: 0; padding: 0 4px; white-space: nowrap; word-wrap: normal; overflow: hidden; height: 18px; line-height: 18px; font-size: 12px; } .datagrid-header .datagrid-cell { height: auto; } .datagrid-header .datagrid-cell span { font-size: 12px; } .datagrid-cell-group { text-align: center; } .datagrid-header-rownumber, .datagrid-cell-rownumber { width: 25px; text-align: center; margin: 0; padding: 0; } .datagrid-body { margin: 0; padding: 0; overflow: auto; zoom: 1; } .datagrid-view1 .datagrid-body-inner { padding-bottom: 20px; } .datagrid-view1 .datagrid-body { overflow: hidden; } .datagrid-footer { overflow: hidden; } .datagrid-footer-inner { border-width: 1px 0 0 0; border-style: solid; width: 10000px; float: left; } .datagrid-row-editing .datagrid-cell { height: auto; } .datagrid-header-check, .datagrid-cell-check { padding: 0; width: 27px; height: 18px; font-size: 1px; text-align: center; overflow: hidden; } .datagrid-header-check input, .datagrid-cell-check input { margin: 0; padding: 0; width: 15px; height: 18px; } .datagrid-resize-proxy { position: absolute; width: 1px; height: 10000px; top: 0; cursor: e-resize; display: none; } .datagrid-body .datagrid-editable { margin: 0; padding: 0; } .datagrid-body .datagrid-editable table { width: 100%; height: 100%; } .datagrid-body .datagrid-editable td { border: 0; margin: 0; padding: 0; } .datagrid-view .datagrid-editable-input { margin: 0; padding: 2px 4px; border: 1px solid #95B8E7; font-size: 12px; outline-style: none; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .datagrid-sort-desc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat -16px center; } .datagrid-sort-asc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat 0px center; } .datagrid-row-collapse { background: url('images/datagrid_icons.png') no-repeat -48px center; } .datagrid-row-expand { background: url('images/datagrid_icons.png') no-repeat -32px center; } .datagrid-mask-msg { background: #ffffff url('images/loading.gif') no-repeat scroll 5px center; } .datagrid-header, .datagrid-td-rownumber { background-color: #efefef; background: -webkit-linear-gradient(top,#F9F9F9 0,#efefef 100%); background: -moz-linear-gradient(top,#F9F9F9 0,#efefef 100%); background: -o-linear-gradient(top,#F9F9F9 0,#efefef 100%); background: linear-gradient(to bottom,#F9F9F9 0,#efefef 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F9F9F9,endColorstr=#efefef,GradientType=0); } .datagrid-cell-rownumber { color: #000000; } .datagrid-resize-proxy { background: #aac5e7; } .datagrid-mask { background: #ccc; } .datagrid-mask-msg { border-color: #95B8E7; } .datagrid-toolbar, .datagrid-pager { background: #F4F4F4; } .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner { border-color: #dddddd; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-color: #ccc; } .datagrid-htable, .datagrid-btable, .datagrid-ftable { color: #000000; border-collapse: separate; } .datagrid-row-alt { background: #fafafa; } .datagrid-row-over, .datagrid-header td.datagrid-header-over { background: #eaf2ff; color: #000000; cursor: default; } .datagrid-row-selected { background: #ffe48d; color: #000000; } .datagrid-row-editing .textbox, .datagrid-row-editing .textbox-text { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .propertygrid .datagrid-view1 .datagrid-body td { padding-bottom: 1px; border-width: 0 1px 0 0; } .propertygrid .datagrid-group { height: 21px; overflow: hidden; border-width: 0 0 1px 0; border-style: solid; } .propertygrid .datagrid-group span { font-weight: bold; } .propertygrid .datagrid-view1 .datagrid-body td { border-color: #dddddd; } .propertygrid .datagrid-view1 .datagrid-group { border-color: #E0ECFF; } .propertygrid .datagrid-view2 .datagrid-group { border-color: #dddddd; } .propertygrid .datagrid-group, .propertygrid .datagrid-view1 .datagrid-body, .propertygrid .datagrid-view1 .datagrid-row-over, .propertygrid .datagrid-view1 .datagrid-row-selected { background: #E0ECFF; } .pagination { zoom: 1; } .pagination table { float: left; height: 30px; } .pagination td { border: 0; } .pagination-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 3px 1px; } .pagination .pagination-num { border-width: 1px; border-style: solid; margin: 0 2px; padding: 2px; width: 2em; height: auto; } .pagination-page-list { margin: 0px 6px; padding: 1px 2px; width: auto; height: auto; border-width: 1px; border-style: solid; } .pagination-info { float: right; margin: 0 6px 0 0; padding: 0; height: 30px; line-height: 30px; font-size: 12px; } .pagination span { font-size: 12px; } .pagination-link .l-btn-text { width: 24px; text-align: center; margin: 0; } .pagination-first { background: url('images/pagination_icons.png') no-repeat 0 center; } .pagination-prev { background: url('images/pagination_icons.png') no-repeat -16px center; } .pagination-next { background: url('images/pagination_icons.png') no-repeat -32px center; } .pagination-last { background: url('images/pagination_icons.png') no-repeat -48px center; } .pagination-load { background: url('images/pagination_icons.png') no-repeat -64px center; } .pagination-loading { background: url('images/loading.gif') no-repeat center center; } .pagination-page-list, .pagination .pagination-num { border-color: #95B8E7; } .calendar { border-width: 1px; border-style: solid; padding: 1px; overflow: hidden; } .calendar table { table-layout: fixed; border-collapse: separate; font-size: 12px; width: 100%; height: 100%; } .calendar table td, .calendar table th { font-size: 12px; } .calendar-noborder { border: 0; } .calendar-header { position: relative; height: 22px; } .calendar-title { text-align: center; height: 22px; } .calendar-title span { position: relative; display: inline-block; top: 2px; padding: 0 3px; height: 18px; line-height: 18px; font-size: 12px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth, .calendar-nextmonth, .calendar-prevyear, .calendar-nextyear { position: absolute; top: 50%; margin-top: -7px; width: 14px; height: 14px; cursor: pointer; font-size: 1px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth { left: 20px; background: url('images/calendar_arrows.png') no-repeat -18px -2px; } .calendar-nextmonth { right: 20px; background: url('images/calendar_arrows.png') no-repeat -34px -2px; } .calendar-prevyear { left: 3px; background: url('images/calendar_arrows.png') no-repeat -1px -2px; } .calendar-nextyear { right: 3px; background: url('images/calendar_arrows.png') no-repeat -49px -2px; } .calendar-body { position: relative; } .calendar-body th, .calendar-body td { text-align: center; } .calendar-day { border: 0; padding: 1px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-other-month { opacity: 0.3; filter: alpha(opacity=30); } .calendar-disabled { opacity: 0.6; filter: alpha(opacity=60); cursor: default; } .calendar-menu { position: absolute; top: 0; left: 0; width: 180px; height: 150px; padding: 5px; font-size: 12px; display: none; overflow: hidden; } .calendar-menu-year-inner { text-align: center; padding-bottom: 5px; } .calendar-menu-year { width: 40px; text-align: center; border-width: 1px; border-style: solid; margin: 0; padding: 2px; font-weight: bold; font-size: 12px; } .calendar-menu-prev, .calendar-menu-next { display: inline-block; width: 21px; height: 21px; vertical-align: top; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-menu-prev { margin-right: 10px; background: url('images/calendar_arrows.png') no-repeat 2px 2px; } .calendar-menu-next { margin-left: 10px; background: url('images/calendar_arrows.png') no-repeat -45px 2px; } .calendar-menu-month { text-align: center; cursor: pointer; font-weight: bold; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-body th, .calendar-menu-month { color: #4d4d4d; } .calendar-day { color: #000000; } .calendar-sunday { color: #CC2222; } .calendar-saturday { color: #00ee00; } .calendar-today { color: #0000ff; } .calendar-menu-year { border-color: #95B8E7; } .calendar { border-color: #95B8E7; } .calendar-header { background: #E0ECFF; } .calendar-body, .calendar-menu { background: #ffffff; } .calendar-body th { background: #F4F4F4; padding: 2px 0; } .calendar-hover, .calendar-nav-hover, .calendar-menu-hover { background-color: #eaf2ff; color: #000000; } .calendar-hover { border: 1px solid #b7d2ff; padding: 0; } .calendar-selected { background-color: #ffe48d; color: #000000; border: 1px solid #ffab3f; padding: 0; } .datebox-calendar-inner { height: 180px; } .datebox-button { height: 18px; padding: 2px 5px; text-align: center; } .datebox-button a { font-size: 12px; font-weight: bold; text-decoration: none; opacity: 0.6; filter: alpha(opacity=60); } .datebox-button a:hover { opacity: 1.0; filter: alpha(opacity=100); } .datebox-current, .datebox-close { float: left; } .datebox-close { float: right; } .datebox .combo-arrow { background-image: url('images/datebox_arrow.png'); background-position: center center; } .datebox-button { background-color: #F4F4F4; } .datebox-button a { color: #444; } .numberbox { border: 1px solid #95B8E7; margin: 0; padding: 0 2px; vertical-align: middle; } .textbox { padding: 0; } .spinner { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .spinner .spinner-text { font-size: 12px; border: 0px; margin: 0; padding: 0 2px; vertical-align: baseline; } .spinner-arrow { background-color: #E0ECFF; display: inline-block; overflow: hidden; vertical-align: top; margin: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); width: 18px; } .spinner-arrow-up, .spinner-arrow-down { opacity: 0.6; filter: alpha(opacity=60); display: block; font-size: 1px; width: 18px; height: 10px; width: 100%; height: 50%; outline-style: none; } .spinner-arrow-hover { background-color: #eaf2ff; opacity: 1.0; filter: alpha(opacity=100); } .spinner-arrow-up:hover, .spinner-arrow-down:hover { opacity: 1.0; filter: alpha(opacity=100); background-color: #eaf2ff; } .textbox-icon-disabled .spinner-arrow-up:hover, .textbox-icon-disabled .spinner-arrow-down:hover { opacity: 0.6; filter: alpha(opacity=60); background-color: #E0ECFF; cursor: default; } .spinner .textbox-icon-disabled { opacity: 0.6; filter: alpha(opacity=60); } .spinner-arrow-up { background: url('images/spinner_arrows.png') no-repeat 1px center; } .spinner-arrow-down { background: url('images/spinner_arrows.png') no-repeat -15px center; } .spinner { border-color: #95B8E7; } .progressbar { border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; overflow: hidden; position: relative; } .progressbar-text { text-align: center; position: absolute; } .progressbar-value { position: relative; overflow: hidden; width: 0; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .progressbar { border-color: #95B8E7; } .progressbar-text { color: #000000; font-size: 12px; } .progressbar-value .progressbar-text { background-color: #ffe48d; color: #000000; } .searchbox { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .searchbox .searchbox-text { font-size: 12px; border: 0; margin: 0; padding: 0 2px; vertical-align: top; } .searchbox .searchbox-prompt { font-size: 12px; color: #ccc; } .searchbox-button { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .searchbox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .searchbox .l-btn-plain { border: 0; padding: 0; vertical-align: top; opacity: 0.6; filter: alpha(opacity=60); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .l-btn-plain:hover { border: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox a.m-btn-plain-active { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .m-btn-active { border-width: 0 1px 0 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .textbox-button-right { border-width: 0 0 0 1px; } .searchbox .textbox-button-left { border-width: 0 1px 0 0; } .searchbox-button { background: url('images/searchbox_button.png') no-repeat center center; } .searchbox { border-color: #95B8E7; background-color: #fff; } .searchbox .l-btn-plain { background: #E0ECFF; } .searchbox .l-btn-plain-disabled, .searchbox .l-btn-plain-disabled:hover { opacity: 0.5; filter: alpha(opacity=50); } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .slider-disabled { opacity: 0.5; filter: alpha(opacity=50); } .slider-h { height: 22px; } .slider-v { width: 22px; } .slider-inner { position: relative; height: 6px; top: 7px; border-width: 1px; border-style: solid; border-radius: 5px; } .slider-handle { position: absolute; display: block; outline: none; width: 20px; height: 20px; top: 50%; margin-top: -10px; margin-left: -10px; } .slider-tip { position: absolute; display: inline-block; line-height: 12px; font-size: 12px; white-space: nowrap; top: -22px; } .slider-rule { position: relative; top: 15px; } .slider-rule span { position: absolute; display: inline-block; font-size: 0; height: 5px; border-width: 0 0 0 1px; border-style: solid; } .slider-rulelabel { position: relative; top: 20px; } .slider-rulelabel span { position: absolute; display: inline-block; font-size: 12px; } .slider-v .slider-inner { width: 6px; left: 7px; top: 0; float: left; } .slider-v .slider-handle { left: 50%; margin-top: -10px; } .slider-v .slider-tip { left: -10px; margin-top: -6px; } .slider-v .slider-rule { float: left; top: 0; left: 16px; } .slider-v .slider-rule span { width: 5px; height: 'auto'; border-left: 0; border-width: 1px 0 0 0; border-style: solid; } .slider-v .slider-rulelabel { float: left; top: 0; left: 23px; } .slider-handle { background: url('images/slider_handle.png') no-repeat; } .slider-inner { border-color: #95B8E7; background: #E0ECFF; } .slider-rule span { border-color: #95B8E7; } .slider-rulelabel span { color: #000000; } .menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #ccc; border-right: 1px solid #fff; } .menu-sep { border-top: 1px solid #ccc; border-bottom: 1px solid #fff; } .menu { background-color: #fafafa; border-color: #ddd; color: #444; } .menu-content { background: #ffffff; } .menu-item { border-color: transparent; _border-color: #fafafa; } .menu-active { border-color: #b7d2ff; color: #000000; background: #eaf2ff; } .menu-active-disabled { border-color: transparent; background: transparent; color: #444; } .m-btn-downarrow, .s-btn-downarrow { display: inline-block; position: absolute; width: 16px; height: 16px; font-size: 1px; right: 0; top: 50%; margin-top: -8px; } .m-btn-active, .s-btn-active { background: #eaf2ff; color: #000000; border: 1px solid #b7d2ff; filter: none; } .m-btn-plain-active, .s-btn-plain-active { background: transparent; padding: 0; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .m-btn .l-btn-left .l-btn-text { margin-right: 20px; } .m-btn .l-btn-icon-right .l-btn-text { margin-right: 40px; } .m-btn .l-btn-icon-right .l-btn-icon { right: 20px; } .m-btn .l-btn-icon-top .l-btn-text { margin-right: 4px; margin-bottom: 14px; } .m-btn .l-btn-icon-bottom .l-btn-text { margin-right: 4px; margin-bottom: 34px; } .m-btn .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 20px; } .m-btn .l-btn-icon-top .m-btn-downarrow, .m-btn .l-btn-icon-bottom .m-btn-downarrow { top: auto; bottom: 0px; left: 50%; margin-left: -8px; } .m-btn-line { display: inline-block; position: absolute; font-size: 1px; display: none; } .m-btn .l-btn-left .m-btn-line { right: 0; width: 16px; height: 500px; border-style: solid; border-color: #aac5e7; border-width: 0 0 0 1px; } .m-btn .l-btn-icon-top .m-btn-line, .m-btn .l-btn-icon-bottom .m-btn-line { left: 0; bottom: 0; width: 500px; height: 16px; border-width: 1px 0 0 0; } .m-btn-large .l-btn-icon-right .l-btn-text { margin-right: 56px; } .m-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 50px; } .m-btn-downarrow, .s-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 0 center; } .m-btn-plain-active, .s-btn-plain-active { border-color: #b7d2ff; background-color: #eaf2ff; color: #000000; } .s-btn:hover .m-btn-line, .s-btn-active .m-btn-line, .s-btn-plain-active .m-btn-line { display: inline-block; } .l-btn:hover .s-btn-downarrow, .s-btn-active .s-btn-downarrow, .s-btn-plain-active .s-btn-downarrow { border-style: solid; border-color: #aac5e7; border-width: 0 0 0 1px; } .messager-body { padding: 10px; overflow: hidden; } .messager-button { text-align: center; padding-top: 10px; } .messager-button .l-btn { width: 70px; } .messager-icon { float: left; width: 32px; height: 32px; margin: 0 10px 10px 0; } .messager-error { background: url('images/messager_icons.png') no-repeat scroll -64px 0; } .messager-info { background: url('images/messager_icons.png') no-repeat scroll 0 0; } .messager-question { background: url('images/messager_icons.png') no-repeat scroll -32px 0; } .messager-warning { background: url('images/messager_icons.png') no-repeat scroll -96px 0; } .messager-progress { padding: 10px; } .messager-p-msg { margin-bottom: 5px; } .messager-body .messager-input { width: 100%; padding: 1px 0; border: 1px solid #95B8E7; } .tree { margin: 0; padding: 0; list-style-type: none; } .tree li { white-space: nowrap; } .tree li ul { list-style-type: none; margin: 0; padding: 0; } .tree-node { height: 18px; white-space: nowrap; cursor: pointer; } .tree-hit { cursor: pointer; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; vertical-align: top; overflow: hidden; } .tree-expanded { background: url('images/tree_icons.png') no-repeat -18px 0px; } .tree-expanded-hover { background: url('images/tree_icons.png') no-repeat -50px 0px; } .tree-collapsed { background: url('images/tree_icons.png') no-repeat 0px 0px; } .tree-collapsed-hover { background: url('images/tree_icons.png') no-repeat -32px 0px; } .tree-lines .tree-expanded, .tree-lines .tree-root-first .tree-expanded { background: url('images/tree_icons.png') no-repeat -144px 0; } .tree-lines .tree-collapsed, .tree-lines .tree-root-first .tree-collapsed { background: url('images/tree_icons.png') no-repeat -128px 0; } .tree-lines .tree-node-last .tree-expanded, .tree-lines .tree-root-one .tree-expanded { background: url('images/tree_icons.png') no-repeat -80px 0; } .tree-lines .tree-node-last .tree-collapsed, .tree-lines .tree-root-one .tree-collapsed { background: url('images/tree_icons.png') no-repeat -64px 0; } .tree-line { background: url('images/tree_icons.png') no-repeat -176px 0; } .tree-join { background: url('images/tree_icons.png') no-repeat -192px 0; } .tree-joinbottom { background: url('images/tree_icons.png') no-repeat -160px 0; } .tree-folder { background: url('images/tree_icons.png') no-repeat -208px 0; } .tree-folder-open { background: url('images/tree_icons.png') no-repeat -224px 0; } .tree-file { background: url('images/tree_icons.png') no-repeat -240px 0; } .tree-loading { background: url('images/loading.gif') no-repeat center center; } .tree-checkbox0 { background: url('images/tree_icons.png') no-repeat -208px -18px; } .tree-checkbox1 { background: url('images/tree_icons.png') no-repeat -224px -18px; } .tree-checkbox2 { background: url('images/tree_icons.png') no-repeat -240px -18px; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: top; white-space: nowrap; padding: 0 2px; height: 18px; line-height: 18px; } .tree-node-proxy { font-size: 12px; line-height: 20px; padding: 0 2px 0 20px; border-width: 1px; border-style: solid; z-index: 9900000; } .tree-dnd-icon { display: inline-block; position: absolute; width: 16px; height: 18px; left: 2px; top: 50%; margin-top: -9px; } .tree-dnd-yes { background: url('images/tree_icons.png') no-repeat -256px 0; } .tree-dnd-no { background: url('images/tree_icons.png') no-repeat -256px -18px; } .tree-node-top { border-top: 1px dotted red; } .tree-node-bottom { border-bottom: 1px dotted red; } .tree-node-append .tree-title { border: 1px dotted red; } .tree-editor { border: 1px solid #ccc; font-size: 12px; height: 14px !important; height: 18px; line-height: 14px; padding: 1px 2px; width: 80px; position: absolute; top: 0; } .tree-node-proxy { background-color: #ffffff; color: #000000; border-color: #95B8E7; } .tree-node-hover { background: #eaf2ff; color: #000000; } .tree-node-selected { background: #ffe48d; color: #000000; } .validatebox-invalid { border-color: #ffa8a8; background-color: #fff3f3; color: #000; } .tooltip { position: absolute; display: none; z-index: 9900000; outline: none; opacity: 1; filter: alpha(opacity=100); padding: 5px; border-width: 1px; border-style: solid; border-radius: 5px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .tooltip-content { font-size: 12px; } .tooltip-arrow-outer, .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border-style: solid; border-width: 6px; border-color: transparent; _border-color: tomato; _filter: chroma(color=tomato); } .tooltip-right .tooltip-arrow-outer { left: 0; top: 50%; margin: -6px 0 0 -13px; } .tooltip-right .tooltip-arrow { left: 0; top: 50%; margin: -6px 0 0 -12px; } .tooltip-left .tooltip-arrow-outer { right: 0; top: 50%; margin: -6px -13px 0 0; } .tooltip-left .tooltip-arrow { right: 0; top: 50%; margin: -6px -12px 0 0; } .tooltip-top .tooltip-arrow-outer { bottom: 0; left: 50%; margin: 0 0 -13px -6px; } .tooltip-top .tooltip-arrow { bottom: 0; left: 50%; margin: 0 0 -12px -6px; } .tooltip-bottom .tooltip-arrow-outer { top: 0; left: 50%; margin: -13px 0 0 -6px; } .tooltip-bottom .tooltip-arrow { top: 0; left: 50%; margin: -12px 0 0 -6px; } .tooltip { background-color: #ffffff; border-color: #95B8E7; color: #000000; } .tooltip-right .tooltip-arrow-outer { border-right-color: #95B8E7; } .tooltip-right .tooltip-arrow { border-right-color: #ffffff; } .tooltip-left .tooltip-arrow-outer { border-left-color: #95B8E7; } .tooltip-left .tooltip-arrow { border-left-color: #ffffff; } .tooltip-top .tooltip-arrow-outer { border-top-color: #95B8E7; } .tooltip-top .tooltip-arrow { border-top-color: #ffffff; } .tooltip-bottom .tooltip-arrow-outer { border-bottom-color: #95B8E7; } .tooltip-bottom .tooltip-arrow { border-bottom-color: #ffffff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/filebox.css ================================================ .filebox .textbox-value { vertical-align: top; position: absolute; top: 0; left: -5000px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/layout.css ================================================ .layout { position: relative; overflow: hidden; margin: 0; padding: 0; z-index: 0; } .layout-panel { position: absolute; overflow: hidden; } .layout-panel-east, .layout-panel-west { z-index: 2; } .layout-panel-north, .layout-panel-south { z-index: 3; } .layout-expand { position: absolute; padding: 0px; font-size: 1px; cursor: pointer; z-index: 1; } .layout-expand .panel-header, .layout-expand .panel-body { background: transparent; filter: none; overflow: hidden; } .layout-expand .panel-header { border-bottom-width: 0px; } .layout-split-proxy-h, .layout-split-proxy-v { position: absolute; font-size: 1px; display: none; z-index: 5; } .layout-split-proxy-h { width: 5px; cursor: e-resize; } .layout-split-proxy-v { height: 5px; cursor: n-resize; } .layout-mask { position: absolute; background: #fafafa; filter: alpha(opacity=10); opacity: 0.10; z-index: 4; } .layout-button-up { background: url('images/layout_arrows.png') no-repeat -16px -16px; } .layout-button-down { background: url('images/layout_arrows.png') no-repeat -16px 0; } .layout-button-left { background: url('images/layout_arrows.png') no-repeat 0 0; } .layout-button-right { background: url('images/layout_arrows.png') no-repeat 0 -16px; } .layout-split-proxy-h, .layout-split-proxy-v { background-color: #aac5e7; } .layout-split-north { border-bottom: 5px solid #E6EEF8; } .layout-split-south { border-top: 5px solid #E6EEF8; } .layout-split-east { border-left: 5px solid #E6EEF8; } .layout-split-west { border-right: 5px solid #E6EEF8; } .layout-expand { background-color: #E0ECFF; } .layout-expand-over { background-color: #E0ECFF; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/linkbutton.css ================================================ .l-btn { text-decoration: none; display: inline-block; overflow: hidden; margin: 0; padding: 0; cursor: pointer; outline: none; text-align: center; vertical-align: middle; } .l-btn-plain { border: 0; padding: 1px; } .l-btn-left { display: inline-block; position: relative; overflow: hidden; margin: 0; padding: 0; vertical-align: top; } .l-btn-text { display: inline-block; vertical-align: top; width: auto; line-height: 24px; font-size: 12px; padding: 0; margin: 0 4px; } .l-btn-icon { display: inline-block; width: 16px; height: 16px; line-height: 16px; position: absolute; top: 50%; margin-top: -8px; font-size: 1px; } .l-btn span span .l-btn-empty { display: inline-block; margin: 0; width: 16px; height: 24px; font-size: 1px; vertical-align: top; } .l-btn span .l-btn-icon-left { padding: 0 0 0 20px; background-position: left center; } .l-btn span .l-btn-icon-right { padding: 0 20px 0 0; background-position: right center; } .l-btn-icon-left .l-btn-text { margin: 0 4px 0 24px; } .l-btn-icon-left .l-btn-icon { left: 4px; } .l-btn-icon-right .l-btn-text { margin: 0 24px 0 4px; } .l-btn-icon-right .l-btn-icon { right: 4px; } .l-btn-icon-top .l-btn-text { margin: 20px 4px 0 4px; } .l-btn-icon-top .l-btn-icon { top: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-icon-bottom .l-btn-text { margin: 0 4px 20px 4px; } .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-left .l-btn-empty { margin: 0 4px; width: 16px; } .l-btn-plain:hover { padding: 0; } .l-btn-focus { outline: #0000FF dotted thin; } .l-btn-large .l-btn-text { line-height: 40px; } .l-btn-large .l-btn-icon { width: 32px; height: 32px; line-height: 32px; margin-top: -16px; } .l-btn-large .l-btn-icon-left .l-btn-text { margin-left: 40px; } .l-btn-large .l-btn-icon-right .l-btn-text { margin-right: 40px; } .l-btn-large .l-btn-icon-top .l-btn-text { margin-top: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-top .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-bottom .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-left .l-btn-empty { margin: 0 4px; width: 32px; } .l-btn { color: #444; background: #fafafa; background-repeat: repeat-x; border: 1px solid #bbb; background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0); -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn:hover { background: #eaf2ff; color: #000000; border: 1px solid #b7d2ff; filter: none; } .l-btn-plain { background: transparent; border: 0; filter: none; } .l-btn-plain:hover { background: #eaf2ff; color: #000000; border: 1px solid #b7d2ff; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn-disabled, .l-btn-disabled:hover { opacity: 0.5; cursor: default; background: #fafafa; color: #444; background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0); } .l-btn-disabled .l-btn-text, .l-btn-disabled .l-btn-icon { filter: alpha(opacity=50); } .l-btn-plain-disabled, .l-btn-plain-disabled:hover { background: transparent; filter: alpha(opacity=50); } .l-btn-selected, .l-btn-selected:hover { background: #ddd; filter: none; } .l-btn-plain-selected, .l-btn-plain-selected:hover { background: #ddd; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/menu.css ================================================ .menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #ccc; border-right: 1px solid #fff; } .menu-sep { border-top: 1px solid #ccc; border-bottom: 1px solid #fff; } .menu { background-color: #fafafa; border-color: #ddd; color: #444; } .menu-content { background: #ffffff; } .menu-item { border-color: transparent; _border-color: #fafafa; } .menu-active { border-color: #b7d2ff; color: #000000; background: #eaf2ff; } .menu-active-disabled { border-color: transparent; background: transparent; color: #444; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/menubutton.css ================================================ .m-btn-downarrow, .s-btn-downarrow { display: inline-block; position: absolute; width: 16px; height: 16px; font-size: 1px; right: 0; top: 50%; margin-top: -8px; } .m-btn-active, .s-btn-active { background: #eaf2ff; color: #000000; border: 1px solid #b7d2ff; filter: none; } .m-btn-plain-active, .s-btn-plain-active { background: transparent; padding: 0; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .m-btn .l-btn-left .l-btn-text { margin-right: 20px; } .m-btn .l-btn-icon-right .l-btn-text { margin-right: 40px; } .m-btn .l-btn-icon-right .l-btn-icon { right: 20px; } .m-btn .l-btn-icon-top .l-btn-text { margin-right: 4px; margin-bottom: 14px; } .m-btn .l-btn-icon-bottom .l-btn-text { margin-right: 4px; margin-bottom: 34px; } .m-btn .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 20px; } .m-btn .l-btn-icon-top .m-btn-downarrow, .m-btn .l-btn-icon-bottom .m-btn-downarrow { top: auto; bottom: 0px; left: 50%; margin-left: -8px; } .m-btn-line { display: inline-block; position: absolute; font-size: 1px; display: none; } .m-btn .l-btn-left .m-btn-line { right: 0; width: 16px; height: 500px; border-style: solid; border-color: #aac5e7; border-width: 0 0 0 1px; } .m-btn .l-btn-icon-top .m-btn-line, .m-btn .l-btn-icon-bottom .m-btn-line { left: 0; bottom: 0; width: 500px; height: 16px; border-width: 1px 0 0 0; } .m-btn-large .l-btn-icon-right .l-btn-text { margin-right: 56px; } .m-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 50px; } .m-btn-downarrow, .s-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 0 center; } .m-btn-plain-active, .s-btn-plain-active { border-color: #b7d2ff; background-color: #eaf2ff; color: #000000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/messager.css ================================================ .messager-body { padding: 10px; overflow: hidden; } .messager-button { text-align: center; padding-top: 10px; } .messager-button .l-btn { width: 70px; } .messager-icon { float: left; width: 32px; height: 32px; margin: 0 10px 10px 0; } .messager-error { background: url('images/messager_icons.png') no-repeat scroll -64px 0; } .messager-info { background: url('images/messager_icons.png') no-repeat scroll 0 0; } .messager-question { background: url('images/messager_icons.png') no-repeat scroll -32px 0; } .messager-warning { background: url('images/messager_icons.png') no-repeat scroll -96px 0; } .messager-progress { padding: 10px; } .messager-p-msg { margin-bottom: 5px; } .messager-body .messager-input { width: 100%; padding: 1px 0; border: 1px solid #95B8E7; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/numberbox.css ================================================ .numberbox { border: 1px solid #95B8E7; margin: 0; padding: 0 2px; vertical-align: middle; } .textbox { padding: 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/pagination.css ================================================ .pagination { zoom: 1; } .pagination table { float: left; height: 30px; } .pagination td { border: 0; } .pagination-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 3px 1px; } .pagination .pagination-num { border-width: 1px; border-style: solid; margin: 0 2px; padding: 2px; width: 2em; height: auto; } .pagination-page-list { margin: 0px 6px; padding: 1px 2px; width: auto; height: auto; border-width: 1px; border-style: solid; } .pagination-info { float: right; margin: 0 6px 0 0; padding: 0; height: 30px; line-height: 30px; font-size: 12px; } .pagination span { font-size: 12px; } .pagination-link .l-btn-text { width: 24px; text-align: center; margin: 0; } .pagination-first { background: url('images/pagination_icons.png') no-repeat 0 center; } .pagination-prev { background: url('images/pagination_icons.png') no-repeat -16px center; } .pagination-next { background: url('images/pagination_icons.png') no-repeat -32px center; } .pagination-last { background: url('images/pagination_icons.png') no-repeat -48px center; } .pagination-load { background: url('images/pagination_icons.png') no-repeat -64px center; } .pagination-loading { background: url('images/loading.gif') no-repeat center center; } .pagination-page-list, .pagination .pagination-num { border-color: #95B8E7; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/panel.css ================================================ .panel { overflow: hidden; text-align: left; margin: 0; border: 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .panel-header, .panel-body { border-width: 1px; border-style: solid; } .panel-header { padding: 5px; position: relative; } .panel-title { background: url('images/blank.gif') no-repeat; } .panel-header-noborder { border-width: 0 0 1px 0; } .panel-body { overflow: auto; border-top-width: 0; padding: 0; } .panel-body-noheader { border-top-width: 1px; } .panel-body-noborder { border-width: 0px; } .panel-body-nobottom { border-bottom-width: 0; } .panel-with-icon { padding-left: 18px; } .panel-icon, .panel-tool { position: absolute; top: 50%; margin-top: -8px; height: 16px; overflow: hidden; } .panel-icon { left: 5px; width: 16px; } .panel-tool { right: 5px; width: auto; } .panel-tool a { display: inline-block; width: 16px; height: 16px; opacity: 0.6; filter: alpha(opacity=60); margin: 0 0 0 2px; vertical-align: top; } .panel-tool a:hover { opacity: 1; filter: alpha(opacity=100); background-color: #eaf2ff; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; } .panel-loading { padding: 11px 0px 10px 30px; } .panel-noscroll { overflow: hidden; } .panel-fit, .panel-fit body { height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .panel-loading { background: url('images/loading.gif') no-repeat 10px 10px; } .panel-tool-close { background: url('images/panel_tools.png') no-repeat -16px 0px; } .panel-tool-min { background: url('images/panel_tools.png') no-repeat 0px 0px; } .panel-tool-max { background: url('images/panel_tools.png') no-repeat 0px -16px; } .panel-tool-restore { background: url('images/panel_tools.png') no-repeat -16px -16px; } .panel-tool-collapse { background: url('images/panel_tools.png') no-repeat -32px 0; } .panel-tool-expand { background: url('images/panel_tools.png') no-repeat -32px -16px; } .panel-header, .panel-body { border-color: #95B8E7; } .panel-header { background-color: #E0ECFF; background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0); } .panel-body { background-color: #ffffff; color: #000000; font-size: 12px; } .panel-title { font-size: 12px; font-weight: bold; color: #0E2D5F; height: 16px; line-height: 16px; } .panel-footer { border: 1px solid #95B8E7; overflow: hidden; background: #F4F4F4; } .panel-footer-noborder { border-width: 1px 0 0 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/progressbar.css ================================================ .progressbar { border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; overflow: hidden; position: relative; } .progressbar-text { text-align: center; position: absolute; } .progressbar-value { position: relative; overflow: hidden; width: 0; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .progressbar { border-color: #95B8E7; } .progressbar-text { color: #000000; font-size: 12px; } .progressbar-value .progressbar-text { background-color: #ffe48d; color: #000000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/propertygrid.css ================================================ .propertygrid .datagrid-view1 .datagrid-body td { padding-bottom: 1px; border-width: 0 1px 0 0; } .propertygrid .datagrid-group { height: 21px; overflow: hidden; border-width: 0 0 1px 0; border-style: solid; } .propertygrid .datagrid-group span { font-weight: bold; } .propertygrid .datagrid-view1 .datagrid-body td { border-color: #dddddd; } .propertygrid .datagrid-view1 .datagrid-group { border-color: #E0ECFF; } .propertygrid .datagrid-view2 .datagrid-group { border-color: #dddddd; } .propertygrid .datagrid-group, .propertygrid .datagrid-view1 .datagrid-body, .propertygrid .datagrid-view1 .datagrid-row-over, .propertygrid .datagrid-view1 .datagrid-row-selected { background: #E0ECFF; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/searchbox.css ================================================ .searchbox { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .searchbox .searchbox-text { font-size: 12px; border: 0; margin: 0; padding: 0 2px; vertical-align: top; } .searchbox .searchbox-prompt { font-size: 12px; color: #ccc; } .searchbox-button { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .searchbox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .searchbox .l-btn-plain { border: 0; padding: 0; vertical-align: top; opacity: 0.6; filter: alpha(opacity=60); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .l-btn-plain:hover { border: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox a.m-btn-plain-active { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .m-btn-active { border-width: 0 1px 0 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .textbox-button-right { border-width: 0 0 0 1px; } .searchbox .textbox-button-left { border-width: 0 1px 0 0; } .searchbox-button { background: url('images/searchbox_button.png') no-repeat center center; } .searchbox { border-color: #95B8E7; background-color: #fff; } .searchbox .l-btn-plain { background: #E0ECFF; } .searchbox .l-btn-plain-disabled, .searchbox .l-btn-plain-disabled:hover { opacity: 0.5; filter: alpha(opacity=50); } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/slider.css ================================================ .slider-disabled { opacity: 0.5; filter: alpha(opacity=50); } .slider-h { height: 22px; } .slider-v { width: 22px; } .slider-inner { position: relative; height: 6px; top: 7px; border-width: 1px; border-style: solid; border-radius: 5px; } .slider-handle { position: absolute; display: block; outline: none; width: 20px; height: 20px; top: 50%; margin-top: -10px; margin-left: -10px; } .slider-tip { position: absolute; display: inline-block; line-height: 12px; font-size: 12px; white-space: nowrap; top: -22px; } .slider-rule { position: relative; top: 15px; } .slider-rule span { position: absolute; display: inline-block; font-size: 0; height: 5px; border-width: 0 0 0 1px; border-style: solid; } .slider-rulelabel { position: relative; top: 20px; } .slider-rulelabel span { position: absolute; display: inline-block; font-size: 12px; } .slider-v .slider-inner { width: 6px; left: 7px; top: 0; float: left; } .slider-v .slider-handle { left: 50%; margin-top: -10px; } .slider-v .slider-tip { left: -10px; margin-top: -6px; } .slider-v .slider-rule { float: left; top: 0; left: 16px; } .slider-v .slider-rule span { width: 5px; height: 'auto'; border-left: 0; border-width: 1px 0 0 0; border-style: solid; } .slider-v .slider-rulelabel { float: left; top: 0; left: 23px; } .slider-handle { background: url('images/slider_handle.png') no-repeat; } .slider-inner { border-color: #95B8E7; background: #E0ECFF; } .slider-rule span { border-color: #95B8E7; } .slider-rulelabel span { color: #000000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/spinner.css ================================================ .spinner { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .spinner .spinner-text { font-size: 12px; border: 0px; margin: 0; padding: 0 2px; vertical-align: baseline; } .spinner-arrow { background-color: #E0ECFF; display: inline-block; overflow: hidden; vertical-align: top; margin: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); width: 18px; } .spinner-arrow-up, .spinner-arrow-down { opacity: 0.6; filter: alpha(opacity=60); display: block; font-size: 1px; width: 18px; height: 10px; width: 100%; height: 50%; outline-style: none; } .spinner-arrow-hover { background-color: #eaf2ff; opacity: 1.0; filter: alpha(opacity=100); } .spinner-arrow-up:hover, .spinner-arrow-down:hover { opacity: 1.0; filter: alpha(opacity=100); background-color: #eaf2ff; } .textbox-icon-disabled .spinner-arrow-up:hover, .textbox-icon-disabled .spinner-arrow-down:hover { opacity: 0.6; filter: alpha(opacity=60); background-color: #E0ECFF; cursor: default; } .spinner .textbox-icon-disabled { opacity: 0.6; filter: alpha(opacity=60); } .spinner-arrow-up { background: url('images/spinner_arrows.png') no-repeat 1px center; } .spinner-arrow-down { background: url('images/spinner_arrows.png') no-repeat -15px center; } .spinner { border-color: #95B8E7; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/splitbutton.css ================================================ .s-btn:hover .m-btn-line, .s-btn-active .m-btn-line, .s-btn-plain-active .m-btn-line { display: inline-block; } .l-btn:hover .s-btn-downarrow, .s-btn-active .s-btn-downarrow, .s-btn-plain-active .s-btn-downarrow { border-style: solid; border-color: #aac5e7; border-width: 0 0 0 1px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/tabs.css ================================================ .tabs-container { overflow: hidden; } .tabs-header { border-width: 1px; border-style: solid; border-bottom-width: 0; position: relative; padding: 0; padding-top: 2px; overflow: hidden; } .tabs-header-plain { border: 0; background: transparent; } .tabs-scroller-left, .tabs-scroller-right { position: absolute; top: auto; bottom: 0; width: 18px; font-size: 1px; display: none; cursor: pointer; border-width: 1px; border-style: solid; } .tabs-scroller-left { left: 0; } .tabs-scroller-right { right: 0; } .tabs-tool { position: absolute; bottom: 0; padding: 1px; overflow: hidden; border-width: 1px; border-style: solid; } .tabs-header-plain .tabs-tool { padding: 0 1px; } .tabs-wrap { position: relative; left: 0; overflow: hidden; width: 100%; margin: 0; padding: 0; } .tabs-scrolling { margin-left: 18px; margin-right: 18px; } .tabs-disabled { opacity: 0.3; filter: alpha(opacity=30); } .tabs { list-style-type: none; height: 26px; margin: 0px; padding: 0px; padding-left: 4px; width: 50000px; border-style: solid; border-width: 0 0 1px 0; } .tabs li { float: left; display: inline-block; margin: 0 4px -1px 0; padding: 0; position: relative; border: 0; } .tabs li a.tabs-inner { display: inline-block; text-decoration: none; margin: 0; padding: 0 10px; height: 25px; line-height: 25px; text-align: center; white-space: nowrap; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .tabs li.tabs-selected a.tabs-inner { font-weight: bold; outline: none; } .tabs li.tabs-selected a:hover.tabs-inner { cursor: default; pointer: default; } .tabs li a.tabs-close, .tabs-p-tool { position: absolute; font-size: 1px; display: block; height: 12px; padding: 0; top: 50%; margin-top: -6px; overflow: hidden; } .tabs li a.tabs-close { width: 12px; right: 5px; opacity: 0.6; filter: alpha(opacity=60); } .tabs-p-tool { right: 16px; } .tabs-p-tool a { display: inline-block; font-size: 1px; width: 12px; height: 12px; margin: 0; opacity: 0.6; filter: alpha(opacity=60); } .tabs li a:hover.tabs-close, .tabs-p-tool a:hover { opacity: 1; filter: alpha(opacity=100); cursor: hand; cursor: pointer; } .tabs-with-icon { padding-left: 18px; } .tabs-icon { position: absolute; width: 16px; height: 16px; left: 10px; top: 50%; margin-top: -8px; } .tabs-title { font-size: 12px; } .tabs-closable { padding-right: 8px; } .tabs-panels { margin: 0px; padding: 0px; border-width: 1px; border-style: solid; border-top-width: 0; overflow: hidden; } .tabs-header-bottom { border-width: 0 1px 1px 1px; padding: 0 0 2px 0; } .tabs-header-bottom .tabs { border-width: 1px 0 0 0; } .tabs-header-bottom .tabs li { margin: -1px 4px 0 0; } .tabs-header-bottom .tabs li a.tabs-inner { -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; } .tabs-header-bottom .tabs-tool { top: 0; } .tabs-header-bottom .tabs-scroller-left, .tabs-header-bottom .tabs-scroller-right { top: 0; bottom: auto; } .tabs-panels-top { border-width: 1px 1px 0 1px; } .tabs-header-left { float: left; border-width: 1px 0 1px 1px; padding: 0; } .tabs-header-right { float: right; border-width: 1px 1px 1px 0; padding: 0; } .tabs-header-left .tabs-wrap, .tabs-header-right .tabs-wrap { height: 100%; } .tabs-header-left .tabs { height: 100%; padding: 4px 0 0 4px; border-width: 0 1px 0 0; } .tabs-header-right .tabs { height: 100%; padding: 4px 4px 0 0; border-width: 0 0 0 1px; } .tabs-header-left .tabs li, .tabs-header-right .tabs li { display: block; width: 100%; position: relative; } .tabs-header-left .tabs li { left: auto; right: 0; margin: 0 -1px 4px 0; float: right; } .tabs-header-right .tabs li { left: 0; right: auto; margin: 0 0 4px -1px; float: left; } .tabs-header-left .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .tabs-header-right .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0 5px 5px 0; -webkit-border-radius: 0 5px 5px 0; border-radius: 0 5px 5px 0; } .tabs-panels-right { float: right; border-width: 1px 1px 1px 0; } .tabs-panels-left { float: left; border-width: 1px 0 1px 1px; } .tabs-header-noborder, .tabs-panels-noborder { border: 0px; } .tabs-header-plain { border: 0px; background: transparent; } .tabs-scroller-left { background: #E0ECFF url('images/tabs_icons.png') no-repeat 1px center; } .tabs-scroller-right { background: #E0ECFF url('images/tabs_icons.png') no-repeat -15px center; } .tabs li a.tabs-close { background: url('images/tabs_icons.png') no-repeat -34px center; } .tabs li a.tabs-inner:hover { background: #eaf2ff; color: #000000; filter: none; } .tabs li.tabs-selected a.tabs-inner { background-color: #ffffff; color: #0E2D5F; background: -webkit-linear-gradient(top,#EFF5FF 0,#ffffff 100%); background: -moz-linear-gradient(top,#EFF5FF 0,#ffffff 100%); background: -o-linear-gradient(top,#EFF5FF 0,#ffffff 100%); background: linear-gradient(to bottom,#EFF5FF 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#ffffff,GradientType=0); } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(top,#ffffff 0,#EFF5FF 100%); background: -moz-linear-gradient(top,#ffffff 0,#EFF5FF 100%); background: -o-linear-gradient(top,#ffffff 0,#EFF5FF 100%); background: linear-gradient(to bottom,#ffffff 0,#EFF5FF 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#EFF5FF,GradientType=0); } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#EFF5FF 0,#ffffff 100%); background: -moz-linear-gradient(left,#EFF5FF 0,#ffffff 100%); background: -o-linear-gradient(left,#EFF5FF 0,#ffffff 100%); background: linear-gradient(to right,#EFF5FF 0,#ffffff 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#ffffff,GradientType=1); } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#ffffff 0,#EFF5FF 100%); background: -moz-linear-gradient(left,#ffffff 0,#EFF5FF 100%); background: -o-linear-gradient(left,#ffffff 0,#EFF5FF 100%); background: linear-gradient(to right,#ffffff 0,#EFF5FF 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#EFF5FF,GradientType=1); } .tabs li a.tabs-inner { color: #0E2D5F; background-color: #E0ECFF; background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%); background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0); } .tabs-header, .tabs-tool { background-color: #E0ECFF; } .tabs-header-plain { background: transparent; } .tabs-header, .tabs-scroller-left, .tabs-scroller-right, .tabs-tool, .tabs, .tabs-panels, .tabs li a.tabs-inner, .tabs li.tabs-selected a.tabs-inner, .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner, .tabs-header-left .tabs li.tabs-selected a.tabs-inner, .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-color: #95B8E7; } .tabs-p-tool a:hover, .tabs li a:hover.tabs-close, .tabs-scroller-over { background-color: #eaf2ff; } .tabs li.tabs-selected a.tabs-inner { border-bottom: 1px solid #ffffff; } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { border-top: 1px solid #ffffff; } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { border-right: 1px solid #ffffff; } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-left: 1px solid #ffffff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/textbox.css ================================================ .textbox { position: relative; border: 1px solid #95B8E7; background-color: #fff; vertical-align: middle; display: inline-block; overflow: hidden; white-space: nowrap; margin: 0; padding: 0; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-text { font-size: 12px; border: 0; margin: 0; padding: 4px; white-space: normal; vertical-align: top; outline-style: none; resize: none; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-prompt { font-size: 12px; color: #aaa; } .textbox-button, .textbox-button:hover { position: absolute; top: 0; padding: 0; vertical-align: top; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .textbox-button-right, .textbox-button-right:hover { border-width: 0 0 0 1px; } .textbox-button-left, .textbox-button-left:hover { border-width: 0 1px 0 0; } .textbox-addon { position: absolute; top: 0; } .textbox-icon { display: inline-block; width: 18px; height: 20px; overflow: hidden; vertical-align: top; background-position: center center; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); text-decoration: none; outline-style: none; } .textbox-icon-disabled, .textbox-icon-readonly { cursor: default; } .textbox-icon:hover { opacity: 1.0; filter: alpha(opacity=100); } .textbox-icon-disabled:hover { opacity: 0.6; filter: alpha(opacity=60); } .textbox-focused { -moz-box-shadow: 0 0 3px 0 #95B8E7; -webkit-box-shadow: 0 0 3px 0 #95B8E7; box-shadow: 0 0 3px 0 #95B8E7; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/tooltip.css ================================================ .tooltip { position: absolute; display: none; z-index: 9900000; outline: none; opacity: 1; filter: alpha(opacity=100); padding: 5px; border-width: 1px; border-style: solid; border-radius: 5px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .tooltip-content { font-size: 12px; } .tooltip-arrow-outer, .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border-style: solid; border-width: 6px; border-color: transparent; _border-color: tomato; _filter: chroma(color=tomato); } .tooltip-right .tooltip-arrow-outer { left: 0; top: 50%; margin: -6px 0 0 -13px; } .tooltip-right .tooltip-arrow { left: 0; top: 50%; margin: -6px 0 0 -12px; } .tooltip-left .tooltip-arrow-outer { right: 0; top: 50%; margin: -6px -13px 0 0; } .tooltip-left .tooltip-arrow { right: 0; top: 50%; margin: -6px -12px 0 0; } .tooltip-top .tooltip-arrow-outer { bottom: 0; left: 50%; margin: 0 0 -13px -6px; } .tooltip-top .tooltip-arrow { bottom: 0; left: 50%; margin: 0 0 -12px -6px; } .tooltip-bottom .tooltip-arrow-outer { top: 0; left: 50%; margin: -13px 0 0 -6px; } .tooltip-bottom .tooltip-arrow { top: 0; left: 50%; margin: -12px 0 0 -6px; } .tooltip { background-color: #ffffff; border-color: #95B8E7; color: #000000; } .tooltip-right .tooltip-arrow-outer { border-right-color: #95B8E7; } .tooltip-right .tooltip-arrow { border-right-color: #ffffff; } .tooltip-left .tooltip-arrow-outer { border-left-color: #95B8E7; } .tooltip-left .tooltip-arrow { border-left-color: #ffffff; } .tooltip-top .tooltip-arrow-outer { border-top-color: #95B8E7; } .tooltip-top .tooltip-arrow { border-top-color: #ffffff; } .tooltip-bottom .tooltip-arrow-outer { border-bottom-color: #95B8E7; } .tooltip-bottom .tooltip-arrow { border-bottom-color: #ffffff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/tree.css ================================================ .tree { margin: 0; padding: 0; list-style-type: none; } .tree li { white-space: nowrap; } .tree li ul { list-style-type: none; margin: 0; padding: 0; } .tree-node { height: 18px; white-space: nowrap; cursor: pointer; } .tree-hit { cursor: pointer; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; vertical-align: top; overflow: hidden; } .tree-expanded { background: url('images/tree_icons.png') no-repeat -18px 0px; } .tree-expanded-hover { background: url('images/tree_icons.png') no-repeat -50px 0px; } .tree-collapsed { background: url('images/tree_icons.png') no-repeat 0px 0px; } .tree-collapsed-hover { background: url('images/tree_icons.png') no-repeat -32px 0px; } .tree-lines .tree-expanded, .tree-lines .tree-root-first .tree-expanded { background: url('images/tree_icons.png') no-repeat -144px 0; } .tree-lines .tree-collapsed, .tree-lines .tree-root-first .tree-collapsed { background: url('images/tree_icons.png') no-repeat -128px 0; } .tree-lines .tree-node-last .tree-expanded, .tree-lines .tree-root-one .tree-expanded { background: url('images/tree_icons.png') no-repeat -80px 0; } .tree-lines .tree-node-last .tree-collapsed, .tree-lines .tree-root-one .tree-collapsed { background: url('images/tree_icons.png') no-repeat -64px 0; } .tree-line { background: url('images/tree_icons.png') no-repeat -176px 0; } .tree-join { background: url('images/tree_icons.png') no-repeat -192px 0; } .tree-joinbottom { background: url('images/tree_icons.png') no-repeat -160px 0; } .tree-folder { background: url('images/tree_icons.png') no-repeat -208px 0; } .tree-folder-open { background: url('images/tree_icons.png') no-repeat -224px 0; } .tree-file { background: url('images/tree_icons.png') no-repeat -240px 0; } .tree-loading { background: url('images/loading.gif') no-repeat center center; } .tree-checkbox0 { background: url('images/tree_icons.png') no-repeat -208px -18px; } .tree-checkbox1 { background: url('images/tree_icons.png') no-repeat -224px -18px; } .tree-checkbox2 { background: url('images/tree_icons.png') no-repeat -240px -18px; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: top; white-space: nowrap; padding: 0 2px; height: 18px; line-height: 18px; } .tree-node-proxy { font-size: 12px; line-height: 20px; padding: 0 2px 0 20px; border-width: 1px; border-style: solid; z-index: 9900000; } .tree-dnd-icon { display: inline-block; position: absolute; width: 16px; height: 18px; left: 2px; top: 50%; margin-top: -9px; } .tree-dnd-yes { background: url('images/tree_icons.png') no-repeat -256px 0; } .tree-dnd-no { background: url('images/tree_icons.png') no-repeat -256px -18px; } .tree-node-top { border-top: 1px dotted red; } .tree-node-bottom { border-bottom: 1px dotted red; } .tree-node-append .tree-title { border: 1px dotted red; } .tree-editor { border: 1px solid #ccc; font-size: 12px; height: 14px !important; height: 18px; line-height: 14px; padding: 1px 2px; width: 80px; position: absolute; top: 0; } .tree-node-proxy { background-color: #ffffff; color: #000000; border-color: #95B8E7; } .tree-node-hover { background: #eaf2ff; color: #000000; } .tree-node-selected { background: #ffe48d; color: #000000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/validatebox.css ================================================ .validatebox-invalid { border-color: #ffa8a8; background-color: #fff3f3; color: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/default/window.css ================================================ .window { overflow: hidden; padding: 5px; border-width: 1px; border-style: solid; } .window .window-header { background: transparent; padding: 0px 0px 6px 0px; } .window .window-body { border-width: 1px; border-style: solid; border-top-width: 0px; } .window .window-body-noheader { border-top-width: 1px; } .window .panel-body-nobottom { border-bottom-width: 0; } .window .window-header .panel-icon, .window .window-header .panel-tool { top: 50%; margin-top: -11px; } .window .window-header .panel-icon { left: 1px; } .window .window-header .panel-tool { right: 1px; } .window .window-header .panel-with-icon { padding-left: 18px; } .window-proxy { position: absolute; overflow: hidden; } .window-proxy-mask { position: absolute; filter: alpha(opacity=5); opacity: 0.05; } .window-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: alpha(opacity=40); opacity: 0.40; font-size: 1px; overflow: hidden; } .window, .window-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .window-shadow { background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .window, .window .window-body { border-color: #95B8E7; } .window { background-color: #E0ECFF; background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%); background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%); background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%); background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 20%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0); } .window-proxy { border: 1px dashed #95B8E7; } .window-proxy-mask, .window-mask { background: #ccc; } .window .panel-footer { border: 1px solid #95B8E7; position: relative; top: -1px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/accordion.css ================================================ .accordion { overflow: hidden; border-width: 1px; border-style: solid; } .accordion .accordion-header { border-width: 0 0 1px; cursor: pointer; } .accordion .accordion-body { border-width: 0 0 1px; } .accordion-noborder { border-width: 0; } .accordion-noborder .accordion-header { border-width: 0 0 1px; } .accordion-noborder .accordion-body { border-width: 0 0 1px; } .accordion-collapse { background: url('images/accordion_arrows.png') no-repeat 0 0; } .accordion-expand { background: url('images/accordion_arrows.png') no-repeat -16px 0; } .accordion { background: #ffffff; border-color: #D3D3D3; } .accordion .accordion-header { background: #f3f3f3; filter: none; } .accordion .accordion-header-selected { background: #0092DC; } .accordion .accordion-header-selected .panel-title { color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/calendar.css ================================================ .calendar { border-width: 1px; border-style: solid; padding: 1px; overflow: hidden; } .calendar table { table-layout: fixed; border-collapse: separate; font-size: 12px; width: 100%; height: 100%; } .calendar table td, .calendar table th { font-size: 12px; } .calendar-noborder { border: 0; } .calendar-header { position: relative; height: 22px; } .calendar-title { text-align: center; height: 22px; } .calendar-title span { position: relative; display: inline-block; top: 2px; padding: 0 3px; height: 18px; line-height: 18px; font-size: 12px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth, .calendar-nextmonth, .calendar-prevyear, .calendar-nextyear { position: absolute; top: 50%; margin-top: -7px; width: 14px; height: 14px; cursor: pointer; font-size: 1px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth { left: 20px; background: url('images/calendar_arrows.png') no-repeat -18px -2px; } .calendar-nextmonth { right: 20px; background: url('images/calendar_arrows.png') no-repeat -34px -2px; } .calendar-prevyear { left: 3px; background: url('images/calendar_arrows.png') no-repeat -1px -2px; } .calendar-nextyear { right: 3px; background: url('images/calendar_arrows.png') no-repeat -49px -2px; } .calendar-body { position: relative; } .calendar-body th, .calendar-body td { text-align: center; } .calendar-day { border: 0; padding: 1px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-other-month { opacity: 0.3; filter: alpha(opacity=30); } .calendar-disabled { opacity: 0.6; filter: alpha(opacity=60); cursor: default; } .calendar-menu { position: absolute; top: 0; left: 0; width: 180px; height: 150px; padding: 5px; font-size: 12px; display: none; overflow: hidden; } .calendar-menu-year-inner { text-align: center; padding-bottom: 5px; } .calendar-menu-year { width: 40px; text-align: center; border-width: 1px; border-style: solid; margin: 0; padding: 2px; font-weight: bold; font-size: 12px; } .calendar-menu-prev, .calendar-menu-next { display: inline-block; width: 21px; height: 21px; vertical-align: top; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-menu-prev { margin-right: 10px; background: url('images/calendar_arrows.png') no-repeat 2px 2px; } .calendar-menu-next { margin-left: 10px; background: url('images/calendar_arrows.png') no-repeat -45px 2px; } .calendar-menu-month { text-align: center; cursor: pointer; font-weight: bold; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-body th, .calendar-menu-month { color: #4d4d4d; } .calendar-day { color: #000000; } .calendar-sunday { color: #CC2222; } .calendar-saturday { color: #00ee00; } .calendar-today { color: #0000ff; } .calendar-menu-year { border-color: #D3D3D3; } .calendar { border-color: #D3D3D3; } .calendar-header { background: #f3f3f3; } .calendar-body, .calendar-menu { background: #ffffff; } .calendar-body th { background: #fafafa; padding: 2px 0; } .calendar-hover, .calendar-nav-hover, .calendar-menu-hover { background-color: #e2e2e2; color: #000000; } .calendar-hover { border: 1px solid #ccc; padding: 0; } .calendar-selected { background-color: #0092DC; color: #fff; border: 1px solid #0070a9; padding: 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/combo.css ================================================ .combo { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .combo .combo-text { font-size: 12px; border: 0px; margin: 0; padding: 0px 2px; vertical-align: baseline; } .combo-arrow { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .combo-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .combo-panel { overflow: auto; } .combo-arrow { background: url('images/combo_arrow.png') no-repeat center center; } .combo-panel { background-color: #ffffff; } .combo { border-color: #D3D3D3; background-color: #fff; } .combo-arrow { background-color: #f3f3f3; } .combo-arrow-hover { background-color: #e2e2e2; } .combo-arrow:hover { background-color: #e2e2e2; } .combo .textbox-icon-disabled:hover { cursor: default; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/combobox.css ================================================ .combobox-item, .combobox-group { font-size: 12px; padding: 3px; padding-right: 0px; } .combobox-item-disabled { opacity: 0.5; filter: alpha(opacity=50); } .combobox-gitem { padding-left: 10px; } .combobox-group { font-weight: bold; } .combobox-item-hover { background-color: #e2e2e2; color: #000000; } .combobox-item-selected { background-color: #0092DC; color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/datagrid.css ================================================ .datagrid .panel-body { overflow: hidden; position: relative; } .datagrid-view { position: relative; overflow: hidden; } .datagrid-view1, .datagrid-view2 { position: absolute; overflow: hidden; top: 0; } .datagrid-view1 { left: 0; } .datagrid-view2 { right: 0; } .datagrid-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.3; filter: alpha(opacity=30); display: none; } .datagrid-mask-msg { position: absolute; top: 50%; margin-top: -20px; padding: 10px 5px 10px 30px; width: auto; height: 16px; border-width: 2px; border-style: solid; display: none; } .datagrid-sort-icon { padding: 0; } .datagrid-toolbar { height: auto; padding: 1px 2px; border-width: 0 0 1px 0; border-style: solid; } .datagrid-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .datagrid .datagrid-pager { display: block; margin: 0; border-width: 1px 0 0 0; border-style: solid; } .datagrid .datagrid-pager-top { border-width: 0 0 1px 0; } .datagrid-header { overflow: hidden; cursor: default; border-width: 0 0 1px 0; border-style: solid; } .datagrid-header-inner { float: left; width: 10000px; } .datagrid-header-row, .datagrid-row { height: 25px; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-width: 0 1px 1px 0; border-style: dotted; margin: 0; padding: 0; } .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber { margin: 0; padding: 0 4px; white-space: nowrap; word-wrap: normal; overflow: hidden; height: 18px; line-height: 18px; font-size: 12px; } .datagrid-header .datagrid-cell { height: auto; } .datagrid-header .datagrid-cell span { font-size: 12px; } .datagrid-cell-group { text-align: center; } .datagrid-header-rownumber, .datagrid-cell-rownumber { width: 25px; text-align: center; margin: 0; padding: 0; } .datagrid-body { margin: 0; padding: 0; overflow: auto; zoom: 1; } .datagrid-view1 .datagrid-body-inner { padding-bottom: 20px; } .datagrid-view1 .datagrid-body { overflow: hidden; } .datagrid-footer { overflow: hidden; } .datagrid-footer-inner { border-width: 1px 0 0 0; border-style: solid; width: 10000px; float: left; } .datagrid-row-editing .datagrid-cell { height: auto; } .datagrid-header-check, .datagrid-cell-check { padding: 0; width: 27px; height: 18px; font-size: 1px; text-align: center; overflow: hidden; } .datagrid-header-check input, .datagrid-cell-check input { margin: 0; padding: 0; width: 15px; height: 18px; } .datagrid-resize-proxy { position: absolute; width: 1px; height: 10000px; top: 0; cursor: e-resize; display: none; } .datagrid-body .datagrid-editable { margin: 0; padding: 0; } .datagrid-body .datagrid-editable table { width: 100%; height: 100%; } .datagrid-body .datagrid-editable td { border: 0; margin: 0; padding: 0; } .datagrid-view .datagrid-editable-input { margin: 0; padding: 2px 4px; border: 1px solid #D3D3D3; font-size: 12px; outline-style: none; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .datagrid-sort-desc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat -16px center; } .datagrid-sort-asc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat 0px center; } .datagrid-row-collapse { background: url('images/datagrid_icons.png') no-repeat -48px center; } .datagrid-row-expand { background: url('images/datagrid_icons.png') no-repeat -32px center; } .datagrid-mask-msg { background: #ffffff url('images/loading.gif') no-repeat scroll 5px center; } .datagrid-header, .datagrid-td-rownumber { background-color: #fafafa; background: -webkit-linear-gradient(top,#fdfdfd 0,#f5f5f5 100%); background: -moz-linear-gradient(top,#fdfdfd 0,#f5f5f5 100%); background: -o-linear-gradient(top,#fdfdfd 0,#f5f5f5 100%); background: linear-gradient(to bottom,#fdfdfd 0,#f5f5f5 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#fdfdfd,endColorstr=#f5f5f5,GradientType=0); } .datagrid-cell-rownumber { color: #000000; } .datagrid-resize-proxy { background: #bfbfbf; } .datagrid-mask { background: #ccc; } .datagrid-mask-msg { border-color: #D3D3D3; } .datagrid-toolbar, .datagrid-pager { background: #fafafa; } .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner { border-color: #ddd; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-color: #ccc; } .datagrid-htable, .datagrid-btable, .datagrid-ftable { color: #000000; border-collapse: separate; } .datagrid-row-alt { background: #fafafa; } .datagrid-row-over, .datagrid-header td.datagrid-header-over { background: #e2e2e2; color: #000000; cursor: default; } .datagrid-row-selected { background: #0092DC; color: #fff; } .datagrid-row-editing .textbox, .datagrid-row-editing .textbox-text { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/datebox.css ================================================ .datebox-calendar-inner { height: 180px; } .datebox-button { height: 18px; padding: 2px 5px; text-align: center; } .datebox-button a { font-size: 12px; font-weight: bold; text-decoration: none; opacity: 0.6; filter: alpha(opacity=60); } .datebox-button a:hover { opacity: 1.0; filter: alpha(opacity=100); } .datebox-current, .datebox-close { float: left; } .datebox-close { float: right; } .datebox .combo-arrow { background-image: url('images/datebox_arrow.png'); background-position: center center; } .datebox-button { background-color: #fafafa; } .datebox-button a { color: #444; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/dialog.css ================================================ .dialog-content { overflow: auto; } .dialog-toolbar { padding: 2px 5px; } .dialog-tool-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .dialog-button { padding: 5px; text-align: right; } .dialog-button .l-btn { margin-left: 5px; } .dialog-toolbar, .dialog-button { background: #fafafa; border-width: 1px; border-style: solid; } .dialog-toolbar { border-color: #D3D3D3 #D3D3D3 #ddd #D3D3D3; } .dialog-button { border-color: #ddd #D3D3D3 #D3D3D3 #D3D3D3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/easyui.css ================================================ .panel { overflow: hidden; text-align: left; margin: 0; border: 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .panel-header, .panel-body { border-width: 1px; border-style: solid; } .panel-header { padding: 5px; position: relative; } .panel-title { background: url('images/blank.gif') no-repeat; } .panel-header-noborder { border-width: 0 0 1px 0; } .panel-body { overflow: auto; border-top-width: 0; padding: 0; } .panel-body-noheader { border-top-width: 1px; } .panel-body-noborder { border-width: 0px; } .panel-body-nobottom { border-bottom-width: 0; } .panel-with-icon { padding-left: 18px; } .panel-icon, .panel-tool { position: absolute; top: 50%; margin-top: -8px; height: 16px; overflow: hidden; } .panel-icon { left: 5px; width: 16px; } .panel-tool { right: 5px; width: auto; } .panel-tool a { display: inline-block; width: 16px; height: 16px; opacity: 0.6; filter: alpha(opacity=60); margin: 0 0 0 2px; vertical-align: top; } .panel-tool a:hover { opacity: 1; filter: alpha(opacity=100); background-color: #e2e2e2; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; } .panel-loading { padding: 11px 0px 10px 30px; } .panel-noscroll { overflow: hidden; } .panel-fit, .panel-fit body { height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .panel-loading { background: url('images/loading.gif') no-repeat 10px 10px; } .panel-tool-close { background: url('images/panel_tools.png') no-repeat -16px 0px; } .panel-tool-min { background: url('images/panel_tools.png') no-repeat 0px 0px; } .panel-tool-max { background: url('images/panel_tools.png') no-repeat 0px -16px; } .panel-tool-restore { background: url('images/panel_tools.png') no-repeat -16px -16px; } .panel-tool-collapse { background: url('images/panel_tools.png') no-repeat -32px 0; } .panel-tool-expand { background: url('images/panel_tools.png') no-repeat -32px -16px; } .panel-header, .panel-body { border-color: #D3D3D3; } .panel-header { background-color: #f3f3f3; background: -webkit-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: -moz-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: -o-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: linear-gradient(to bottom,#F8F8F8 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F8F8F8,endColorstr=#eeeeee,GradientType=0); } .panel-body { background-color: #ffffff; color: #000000; font-size: 12px; } .panel-title { font-size: 12px; font-weight: bold; color: #575765; height: 16px; line-height: 16px; } .panel-footer { border: 1px solid #D3D3D3; overflow: hidden; background: #fafafa; } .panel-footer-noborder { border-width: 1px 0 0 0; } .accordion { overflow: hidden; border-width: 1px; border-style: solid; } .accordion .accordion-header { border-width: 0 0 1px; cursor: pointer; } .accordion .accordion-body { border-width: 0 0 1px; } .accordion-noborder { border-width: 0; } .accordion-noborder .accordion-header { border-width: 0 0 1px; } .accordion-noborder .accordion-body { border-width: 0 0 1px; } .accordion-collapse { background: url('images/accordion_arrows.png') no-repeat 0 0; } .accordion-expand { background: url('images/accordion_arrows.png') no-repeat -16px 0; } .accordion { background: #ffffff; border-color: #D3D3D3; } .accordion .accordion-header { background: #f3f3f3; filter: none; } .accordion .accordion-header-selected { background: #0092DC; } .accordion .accordion-header-selected .panel-title { color: #fff; } .window { overflow: hidden; padding: 5px; border-width: 1px; border-style: solid; } .window .window-header { background: transparent; padding: 0px 0px 6px 0px; } .window .window-body { border-width: 1px; border-style: solid; border-top-width: 0px; } .window .window-body-noheader { border-top-width: 1px; } .window .panel-body-nobottom { border-bottom-width: 0; } .window .window-header .panel-icon, .window .window-header .panel-tool { top: 50%; margin-top: -11px; } .window .window-header .panel-icon { left: 1px; } .window .window-header .panel-tool { right: 1px; } .window .window-header .panel-with-icon { padding-left: 18px; } .window-proxy { position: absolute; overflow: hidden; } .window-proxy-mask { position: absolute; filter: alpha(opacity=5); opacity: 0.05; } .window-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: alpha(opacity=40); opacity: 0.40; font-size: 1px; overflow: hidden; } .window, .window-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .window-shadow { background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .window, .window .window-body { border-color: #D3D3D3; } .window { background-color: #f3f3f3; background: -webkit-linear-gradient(top,#F8F8F8 0,#eeeeee 20%); background: -moz-linear-gradient(top,#F8F8F8 0,#eeeeee 20%); background: -o-linear-gradient(top,#F8F8F8 0,#eeeeee 20%); background: linear-gradient(to bottom,#F8F8F8 0,#eeeeee 20%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F8F8F8,endColorstr=#eeeeee,GradientType=0); } .window-proxy { border: 1px dashed #D3D3D3; } .window-proxy-mask, .window-mask { background: #ccc; } .window .panel-footer { border: 1px solid #D3D3D3; position: relative; top: -1px; } .dialog-content { overflow: auto; } .dialog-toolbar { padding: 2px 5px; } .dialog-tool-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .dialog-button { padding: 5px; text-align: right; } .dialog-button .l-btn { margin-left: 5px; } .dialog-toolbar, .dialog-button { background: #fafafa; border-width: 1px; border-style: solid; } .dialog-toolbar { border-color: #D3D3D3 #D3D3D3 #ddd #D3D3D3; } .dialog-button { border-color: #ddd #D3D3D3 #D3D3D3 #D3D3D3; } .l-btn { text-decoration: none; display: inline-block; overflow: hidden; margin: 0; padding: 0; cursor: pointer; outline: none; text-align: center; vertical-align: middle; } .l-btn-plain { border: 0; padding: 1px; } .l-btn-left { display: inline-block; position: relative; overflow: hidden; margin: 0; padding: 0; vertical-align: top; } .l-btn-text { display: inline-block; vertical-align: top; width: auto; line-height: 24px; font-size: 12px; padding: 0; margin: 0 4px; } .l-btn-icon { display: inline-block; width: 16px; height: 16px; line-height: 16px; position: absolute; top: 50%; margin-top: -8px; font-size: 1px; } .l-btn span span .l-btn-empty { display: inline-block; margin: 0; width: 16px; height: 24px; font-size: 1px; vertical-align: top; } .l-btn span .l-btn-icon-left { padding: 0 0 0 20px; background-position: left center; } .l-btn span .l-btn-icon-right { padding: 0 20px 0 0; background-position: right center; } .l-btn-icon-left .l-btn-text { margin: 0 4px 0 24px; } .l-btn-icon-left .l-btn-icon { left: 4px; } .l-btn-icon-right .l-btn-text { margin: 0 24px 0 4px; } .l-btn-icon-right .l-btn-icon { right: 4px; } .l-btn-icon-top .l-btn-text { margin: 20px 4px 0 4px; } .l-btn-icon-top .l-btn-icon { top: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-icon-bottom .l-btn-text { margin: 0 4px 20px 4px; } .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-left .l-btn-empty { margin: 0 4px; width: 16px; } .l-btn-plain:hover { padding: 0; } .l-btn-focus { outline: #0000FF dotted thin; } .l-btn-large .l-btn-text { line-height: 40px; } .l-btn-large .l-btn-icon { width: 32px; height: 32px; line-height: 32px; margin-top: -16px; } .l-btn-large .l-btn-icon-left .l-btn-text { margin-left: 40px; } .l-btn-large .l-btn-icon-right .l-btn-text { margin-right: 40px; } .l-btn-large .l-btn-icon-top .l-btn-text { margin-top: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-top .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-bottom .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-left .l-btn-empty { margin: 0 4px; width: 32px; } .l-btn { color: #444; background: #fafafa; background-repeat: repeat-x; border: 1px solid #bbb; background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0); -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn:hover { background: #e2e2e2; color: #000000; border: 1px solid #ccc; filter: none; } .l-btn-plain { background: transparent; border: 0; filter: none; } .l-btn-plain:hover { background: #e2e2e2; color: #000000; border: 1px solid #ccc; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn-disabled, .l-btn-disabled:hover { opacity: 0.5; cursor: default; background: #fafafa; color: #444; background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0); } .l-btn-disabled .l-btn-text, .l-btn-disabled .l-btn-icon { filter: alpha(opacity=50); } .l-btn-plain-disabled, .l-btn-plain-disabled:hover { background: transparent; filter: alpha(opacity=50); } .l-btn-selected, .l-btn-selected:hover { background: #ddd; filter: none; } .l-btn-plain-selected, .l-btn-plain-selected:hover { background: #ddd; } .textbox { position: relative; border: 1px solid #D3D3D3; background-color: #fff; vertical-align: middle; display: inline-block; overflow: hidden; white-space: nowrap; margin: 0; padding: 0; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-text { font-size: 12px; border: 0; margin: 0; padding: 4px; white-space: normal; vertical-align: top; outline-style: none; resize: none; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-prompt { font-size: 12px; color: #aaa; } .textbox-button, .textbox-button:hover { position: absolute; top: 0; padding: 0; vertical-align: top; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .textbox-button-right, .textbox-button-right:hover { border-width: 0 0 0 1px; } .textbox-button-left, .textbox-button-left:hover { border-width: 0 1px 0 0; } .textbox-addon { position: absolute; top: 0; } .textbox-icon { display: inline-block; width: 18px; height: 20px; overflow: hidden; vertical-align: top; background-position: center center; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); text-decoration: none; outline-style: none; } .textbox-icon-disabled, .textbox-icon-readonly { cursor: default; } .textbox-icon:hover { opacity: 1.0; filter: alpha(opacity=100); } .textbox-icon-disabled:hover { opacity: 0.6; filter: alpha(opacity=60); } .textbox-focused { -moz-box-shadow: 0 0 3px 0 #D3D3D3; -webkit-box-shadow: 0 0 3px 0 #D3D3D3; box-shadow: 0 0 3px 0 #D3D3D3; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .filebox .textbox-value { vertical-align: top; position: absolute; top: 0; left: -5000px; } .combo { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .combo .combo-text { font-size: 12px; border: 0px; margin: 0; padding: 0px 2px; vertical-align: baseline; } .combo-arrow { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .combo-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .combo-panel { overflow: auto; } .combo-arrow { background: url('images/combo_arrow.png') no-repeat center center; } .combo-panel { background-color: #ffffff; } .combo { border-color: #D3D3D3; background-color: #fff; } .combo-arrow { background-color: #f3f3f3; } .combo-arrow-hover { background-color: #e2e2e2; } .combo-arrow:hover { background-color: #e2e2e2; } .combo .textbox-icon-disabled:hover { cursor: default; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .combobox-item, .combobox-group { font-size: 12px; padding: 3px; padding-right: 0px; } .combobox-item-disabled { opacity: 0.5; filter: alpha(opacity=50); } .combobox-gitem { padding-left: 10px; } .combobox-group { font-weight: bold; } .combobox-item-hover { background-color: #e2e2e2; color: #000000; } .combobox-item-selected { background-color: #0092DC; color: #fff; } .layout { position: relative; overflow: hidden; margin: 0; padding: 0; z-index: 0; } .layout-panel { position: absolute; overflow: hidden; } .layout-panel-east, .layout-panel-west { z-index: 2; } .layout-panel-north, .layout-panel-south { z-index: 3; } .layout-expand { position: absolute; padding: 0px; font-size: 1px; cursor: pointer; z-index: 1; } .layout-expand .panel-header, .layout-expand .panel-body { background: transparent; filter: none; overflow: hidden; } .layout-expand .panel-header { border-bottom-width: 0px; } .layout-split-proxy-h, .layout-split-proxy-v { position: absolute; font-size: 1px; display: none; z-index: 5; } .layout-split-proxy-h { width: 5px; cursor: e-resize; } .layout-split-proxy-v { height: 5px; cursor: n-resize; } .layout-mask { position: absolute; background: #fafafa; filter: alpha(opacity=10); opacity: 0.10; z-index: 4; } .layout-button-up { background: url('images/layout_arrows.png') no-repeat -16px -16px; } .layout-button-down { background: url('images/layout_arrows.png') no-repeat -16px 0; } .layout-button-left { background: url('images/layout_arrows.png') no-repeat 0 0; } .layout-button-right { background: url('images/layout_arrows.png') no-repeat 0 -16px; } .layout-split-proxy-h, .layout-split-proxy-v { background-color: #bfbfbf; } .layout-split-north { border-bottom: 5px solid #efefef; } .layout-split-south { border-top: 5px solid #efefef; } .layout-split-east { border-left: 5px solid #efefef; } .layout-split-west { border-right: 5px solid #efefef; } .layout-expand { background-color: #f3f3f3; } .layout-expand-over { background-color: #f3f3f3; } .tabs-container { overflow: hidden; } .tabs-header { border-width: 1px; border-style: solid; border-bottom-width: 0; position: relative; padding: 0; padding-top: 2px; overflow: hidden; } .tabs-header-plain { border: 0; background: transparent; } .tabs-scroller-left, .tabs-scroller-right { position: absolute; top: auto; bottom: 0; width: 18px; font-size: 1px; display: none; cursor: pointer; border-width: 1px; border-style: solid; } .tabs-scroller-left { left: 0; } .tabs-scroller-right { right: 0; } .tabs-tool { position: absolute; bottom: 0; padding: 1px; overflow: hidden; border-width: 1px; border-style: solid; } .tabs-header-plain .tabs-tool { padding: 0 1px; } .tabs-wrap { position: relative; left: 0; overflow: hidden; width: 100%; margin: 0; padding: 0; } .tabs-scrolling { margin-left: 18px; margin-right: 18px; } .tabs-disabled { opacity: 0.3; filter: alpha(opacity=30); } .tabs { list-style-type: none; height: 26px; margin: 0px; padding: 0px; padding-left: 4px; width: 50000px; border-style: solid; border-width: 0 0 1px 0; } .tabs li { float: left; display: inline-block; margin: 0 4px -1px 0; padding: 0; position: relative; border: 0; } .tabs li a.tabs-inner { display: inline-block; text-decoration: none; margin: 0; padding: 0 10px; height: 25px; line-height: 25px; text-align: center; white-space: nowrap; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .tabs li.tabs-selected a.tabs-inner { font-weight: bold; outline: none; } .tabs li.tabs-selected a:hover.tabs-inner { cursor: default; pointer: default; } .tabs li a.tabs-close, .tabs-p-tool { position: absolute; font-size: 1px; display: block; height: 12px; padding: 0; top: 50%; margin-top: -6px; overflow: hidden; } .tabs li a.tabs-close { width: 12px; right: 5px; opacity: 0.6; filter: alpha(opacity=60); } .tabs-p-tool { right: 16px; } .tabs-p-tool a { display: inline-block; font-size: 1px; width: 12px; height: 12px; margin: 0; opacity: 0.6; filter: alpha(opacity=60); } .tabs li a:hover.tabs-close, .tabs-p-tool a:hover { opacity: 1; filter: alpha(opacity=100); cursor: hand; cursor: pointer; } .tabs-with-icon { padding-left: 18px; } .tabs-icon { position: absolute; width: 16px; height: 16px; left: 10px; top: 50%; margin-top: -8px; } .tabs-title { font-size: 12px; } .tabs-closable { padding-right: 8px; } .tabs-panels { margin: 0px; padding: 0px; border-width: 1px; border-style: solid; border-top-width: 0; overflow: hidden; } .tabs-header-bottom { border-width: 0 1px 1px 1px; padding: 0 0 2px 0; } .tabs-header-bottom .tabs { border-width: 1px 0 0 0; } .tabs-header-bottom .tabs li { margin: -1px 4px 0 0; } .tabs-header-bottom .tabs li a.tabs-inner { -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; } .tabs-header-bottom .tabs-tool { top: 0; } .tabs-header-bottom .tabs-scroller-left, .tabs-header-bottom .tabs-scroller-right { top: 0; bottom: auto; } .tabs-panels-top { border-width: 1px 1px 0 1px; } .tabs-header-left { float: left; border-width: 1px 0 1px 1px; padding: 0; } .tabs-header-right { float: right; border-width: 1px 1px 1px 0; padding: 0; } .tabs-header-left .tabs-wrap, .tabs-header-right .tabs-wrap { height: 100%; } .tabs-header-left .tabs { height: 100%; padding: 4px 0 0 4px; border-width: 0 1px 0 0; } .tabs-header-right .tabs { height: 100%; padding: 4px 4px 0 0; border-width: 0 0 0 1px; } .tabs-header-left .tabs li, .tabs-header-right .tabs li { display: block; width: 100%; position: relative; } .tabs-header-left .tabs li { left: auto; right: 0; margin: 0 -1px 4px 0; float: right; } .tabs-header-right .tabs li { left: 0; right: auto; margin: 0 0 4px -1px; float: left; } .tabs-header-left .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .tabs-header-right .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0 5px 5px 0; -webkit-border-radius: 0 5px 5px 0; border-radius: 0 5px 5px 0; } .tabs-panels-right { float: right; border-width: 1px 1px 1px 0; } .tabs-panels-left { float: left; border-width: 1px 0 1px 1px; } .tabs-header-noborder, .tabs-panels-noborder { border: 0px; } .tabs-header-plain { border: 0px; background: transparent; } .tabs-scroller-left { background: #f3f3f3 url('images/tabs_icons.png') no-repeat 1px center; } .tabs-scroller-right { background: #f3f3f3 url('images/tabs_icons.png') no-repeat -15px center; } .tabs li a.tabs-close { background: url('images/tabs_icons.png') no-repeat -34px center; } .tabs li a.tabs-inner:hover { background: #e2e2e2; color: #000000; filter: none; } .tabs li.tabs-selected a.tabs-inner { background-color: #ffffff; color: #575765; background: -webkit-linear-gradient(top,#F8F8F8 0,#ffffff 100%); background: -moz-linear-gradient(top,#F8F8F8 0,#ffffff 100%); background: -o-linear-gradient(top,#F8F8F8 0,#ffffff 100%); background: linear-gradient(to bottom,#F8F8F8 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F8F8F8,endColorstr=#ffffff,GradientType=0); } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(top,#ffffff 0,#F8F8F8 100%); background: -moz-linear-gradient(top,#ffffff 0,#F8F8F8 100%); background: -o-linear-gradient(top,#ffffff 0,#F8F8F8 100%); background: linear-gradient(to bottom,#ffffff 0,#F8F8F8 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F8F8F8,GradientType=0); } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#F8F8F8 0,#ffffff 100%); background: -moz-linear-gradient(left,#F8F8F8 0,#ffffff 100%); background: -o-linear-gradient(left,#F8F8F8 0,#ffffff 100%); background: linear-gradient(to right,#F8F8F8 0,#ffffff 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F8F8F8,endColorstr=#ffffff,GradientType=1); } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#ffffff 0,#F8F8F8 100%); background: -moz-linear-gradient(left,#ffffff 0,#F8F8F8 100%); background: -o-linear-gradient(left,#ffffff 0,#F8F8F8 100%); background: linear-gradient(to right,#ffffff 0,#F8F8F8 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F8F8F8,GradientType=1); } .tabs li a.tabs-inner { color: #575765; background-color: #f3f3f3; background: -webkit-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: -moz-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: -o-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: linear-gradient(to bottom,#F8F8F8 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F8F8F8,endColorstr=#eeeeee,GradientType=0); } .tabs-header, .tabs-tool { background-color: #f3f3f3; } .tabs-header-plain { background: transparent; } .tabs-header, .tabs-scroller-left, .tabs-scroller-right, .tabs-tool, .tabs, .tabs-panels, .tabs li a.tabs-inner, .tabs li.tabs-selected a.tabs-inner, .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner, .tabs-header-left .tabs li.tabs-selected a.tabs-inner, .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-color: #D3D3D3; } .tabs-p-tool a:hover, .tabs li a:hover.tabs-close, .tabs-scroller-over { background-color: #e2e2e2; } .tabs li.tabs-selected a.tabs-inner { border-bottom: 1px solid #ffffff; } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { border-top: 1px solid #ffffff; } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { border-right: 1px solid #ffffff; } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-left: 1px solid #ffffff; } .datagrid .panel-body { overflow: hidden; position: relative; } .datagrid-view { position: relative; overflow: hidden; } .datagrid-view1, .datagrid-view2 { position: absolute; overflow: hidden; top: 0; } .datagrid-view1 { left: 0; } .datagrid-view2 { right: 0; } .datagrid-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.3; filter: alpha(opacity=30); display: none; } .datagrid-mask-msg { position: absolute; top: 50%; margin-top: -20px; padding: 10px 5px 10px 30px; width: auto; height: 16px; border-width: 2px; border-style: solid; display: none; } .datagrid-sort-icon { padding: 0; } .datagrid-toolbar { height: auto; padding: 1px 2px; border-width: 0 0 1px 0; border-style: solid; } .datagrid-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 2px 1px; } .datagrid .datagrid-pager { display: block; margin: 0; border-width: 1px 0 0 0; border-style: solid; } .datagrid .datagrid-pager-top { border-width: 0 0 1px 0; } .datagrid-header { overflow: hidden; cursor: default; border-width: 0 0 1px 0; border-style: solid; } .datagrid-header-inner { float: left; width: 10000px; } .datagrid-header-row, .datagrid-row { height: 25px; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-width: 0 1px 1px 0; border-style: dotted; margin: 0; padding: 0; } .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber { margin: 0; padding: 0 4px; white-space: nowrap; word-wrap: normal; overflow: hidden; height: 18px; line-height: 18px; font-size: 12px; } .datagrid-header .datagrid-cell { height: auto; } .datagrid-header .datagrid-cell span { font-size: 12px; } .datagrid-cell-group { text-align: center; } .datagrid-header-rownumber, .datagrid-cell-rownumber { width: 25px; text-align: center; margin: 0; padding: 0; } .datagrid-body { margin: 0; padding: 0; overflow: auto; zoom: 1; } .datagrid-view1 .datagrid-body-inner { padding-bottom: 20px; } .datagrid-view1 .datagrid-body { overflow: hidden; } .datagrid-footer { overflow: hidden; } .datagrid-footer-inner { border-width: 1px 0 0 0; border-style: solid; width: 10000px; float: left; } .datagrid-row-editing .datagrid-cell { height: auto; } .datagrid-header-check, .datagrid-cell-check { padding: 0; width: 27px; height: 18px; font-size: 1px; text-align: center; overflow: hidden; } .datagrid-header-check input, .datagrid-cell-check input { margin: 0; padding: 0; width: 15px; height: 18px; } .datagrid-resize-proxy { position: absolute; width: 1px; height: 10000px; top: 0; cursor: e-resize; display: none; } .datagrid-body .datagrid-editable { margin: 0; padding: 0; } .datagrid-body .datagrid-editable table { width: 100%; height: 100%; } .datagrid-body .datagrid-editable td { border: 0; margin: 0; padding: 0; } .datagrid-view .datagrid-editable-input { margin: 0; padding: 2px 4px; border: 1px solid #D3D3D3; font-size: 12px; outline-style: none; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .datagrid-sort-desc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat -16px center; } .datagrid-sort-asc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat 0px center; } .datagrid-row-collapse { background: url('images/datagrid_icons.png') no-repeat -48px center; } .datagrid-row-expand { background: url('images/datagrid_icons.png') no-repeat -32px center; } .datagrid-mask-msg { background: #ffffff url('images/loading.gif') no-repeat scroll 5px center; } .datagrid-header, .datagrid-td-rownumber { background-color: #fafafa; background: -webkit-linear-gradient(top,#fdfdfd 0,#f5f5f5 100%); background: -moz-linear-gradient(top,#fdfdfd 0,#f5f5f5 100%); background: -o-linear-gradient(top,#fdfdfd 0,#f5f5f5 100%); background: linear-gradient(to bottom,#fdfdfd 0,#f5f5f5 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#fdfdfd,endColorstr=#f5f5f5,GradientType=0); } .datagrid-cell-rownumber { color: #000000; } .datagrid-resize-proxy { background: #bfbfbf; } .datagrid-mask { background: #ccc; } .datagrid-mask-msg { border-color: #D3D3D3; } .datagrid-toolbar, .datagrid-pager { background: #fafafa; } .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner { border-color: #ddd; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-color: #ccc; } .datagrid-htable, .datagrid-btable, .datagrid-ftable { color: #000000; border-collapse: separate; } .datagrid-row-alt { background: #fafafa; } .datagrid-row-over, .datagrid-header td.datagrid-header-over { background: #e2e2e2; color: #000000; cursor: default; } .datagrid-row-selected { background: #0092DC; color: #fff; } .datagrid-row-editing .textbox, .datagrid-row-editing .textbox-text { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .propertygrid .datagrid-view1 .datagrid-body td { padding-bottom: 1px; border-width: 0 1px 0 0; } .propertygrid .datagrid-group { height: 21px; overflow: hidden; border-width: 0 0 1px 0; border-style: solid; } .propertygrid .datagrid-group span { font-weight: bold; } .propertygrid .datagrid-view1 .datagrid-body td { border-color: #ddd; } .propertygrid .datagrid-view1 .datagrid-group { border-color: #f3f3f3; } .propertygrid .datagrid-view2 .datagrid-group { border-color: #ddd; } .propertygrid .datagrid-group, .propertygrid .datagrid-view1 .datagrid-body, .propertygrid .datagrid-view1 .datagrid-row-over, .propertygrid .datagrid-view1 .datagrid-row-selected { background: #f3f3f3; } .pagination { zoom: 1; } .pagination table { float: left; height: 30px; } .pagination td { border: 0; } .pagination-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 3px 1px; } .pagination .pagination-num { border-width: 1px; border-style: solid; margin: 0 2px; padding: 2px; width: 2em; height: auto; } .pagination-page-list { margin: 0px 6px; padding: 1px 2px; width: auto; height: auto; border-width: 1px; border-style: solid; } .pagination-info { float: right; margin: 0 6px 0 0; padding: 0; height: 30px; line-height: 30px; font-size: 12px; } .pagination span { font-size: 12px; } .pagination-link .l-btn-text { width: 24px; text-align: center; margin: 0; } .pagination-first { background: url('images/pagination_icons.png') no-repeat 0 center; } .pagination-prev { background: url('images/pagination_icons.png') no-repeat -16px center; } .pagination-next { background: url('images/pagination_icons.png') no-repeat -32px center; } .pagination-last { background: url('images/pagination_icons.png') no-repeat -48px center; } .pagination-load { background: url('images/pagination_icons.png') no-repeat -64px center; } .pagination-loading { background: url('images/loading.gif') no-repeat center center; } .pagination-page-list, .pagination .pagination-num { border-color: #D3D3D3; } .calendar { border-width: 1px; border-style: solid; padding: 1px; overflow: hidden; } .calendar table { table-layout: fixed; border-collapse: separate; font-size: 12px; width: 100%; height: 100%; } .calendar table td, .calendar table th { font-size: 12px; } .calendar-noborder { border: 0; } .calendar-header { position: relative; height: 22px; } .calendar-title { text-align: center; height: 22px; } .calendar-title span { position: relative; display: inline-block; top: 2px; padding: 0 3px; height: 18px; line-height: 18px; font-size: 12px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth, .calendar-nextmonth, .calendar-prevyear, .calendar-nextyear { position: absolute; top: 50%; margin-top: -7px; width: 14px; height: 14px; cursor: pointer; font-size: 1px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-prevmonth { left: 20px; background: url('images/calendar_arrows.png') no-repeat -18px -2px; } .calendar-nextmonth { right: 20px; background: url('images/calendar_arrows.png') no-repeat -34px -2px; } .calendar-prevyear { left: 3px; background: url('images/calendar_arrows.png') no-repeat -1px -2px; } .calendar-nextyear { right: 3px; background: url('images/calendar_arrows.png') no-repeat -49px -2px; } .calendar-body { position: relative; } .calendar-body th, .calendar-body td { text-align: center; } .calendar-day { border: 0; padding: 1px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-other-month { opacity: 0.3; filter: alpha(opacity=30); } .calendar-disabled { opacity: 0.6; filter: alpha(opacity=60); cursor: default; } .calendar-menu { position: absolute; top: 0; left: 0; width: 180px; height: 150px; padding: 5px; font-size: 12px; display: none; overflow: hidden; } .calendar-menu-year-inner { text-align: center; padding-bottom: 5px; } .calendar-menu-year { width: 40px; text-align: center; border-width: 1px; border-style: solid; margin: 0; padding: 2px; font-weight: bold; font-size: 12px; } .calendar-menu-prev, .calendar-menu-next { display: inline-block; width: 21px; height: 21px; vertical-align: top; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-menu-prev { margin-right: 10px; background: url('images/calendar_arrows.png') no-repeat 2px 2px; } .calendar-menu-next { margin-left: 10px; background: url('images/calendar_arrows.png') no-repeat -45px 2px; } .calendar-menu-month { text-align: center; cursor: pointer; font-weight: bold; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .calendar-body th, .calendar-menu-month { color: #4d4d4d; } .calendar-day { color: #000000; } .calendar-sunday { color: #CC2222; } .calendar-saturday { color: #00ee00; } .calendar-today { color: #0000ff; } .calendar-menu-year { border-color: #D3D3D3; } .calendar { border-color: #D3D3D3; } .calendar-header { background: #f3f3f3; } .calendar-body, .calendar-menu { background: #ffffff; } .calendar-body th { background: #fafafa; padding: 2px 0; } .calendar-hover, .calendar-nav-hover, .calendar-menu-hover { background-color: #e2e2e2; color: #000000; } .calendar-hover { border: 1px solid #ccc; padding: 0; } .calendar-selected { background-color: #0092DC; color: #fff; border: 1px solid #0070a9; padding: 0; } .datebox-calendar-inner { height: 180px; } .datebox-button { height: 18px; padding: 2px 5px; text-align: center; } .datebox-button a { font-size: 12px; font-weight: bold; text-decoration: none; opacity: 0.6; filter: alpha(opacity=60); } .datebox-button a:hover { opacity: 1.0; filter: alpha(opacity=100); } .datebox-current, .datebox-close { float: left; } .datebox-close { float: right; } .datebox .combo-arrow { background-image: url('images/datebox_arrow.png'); background-position: center center; } .datebox-button { background-color: #fafafa; } .datebox-button a { color: #444; } .numberbox { border: 1px solid #D3D3D3; margin: 0; padding: 0 2px; vertical-align: middle; } .textbox { padding: 0; } .spinner { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .spinner .spinner-text { font-size: 12px; border: 0px; margin: 0; padding: 0 2px; vertical-align: baseline; } .spinner-arrow { background-color: #f3f3f3; display: inline-block; overflow: hidden; vertical-align: top; margin: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); width: 18px; } .spinner-arrow-up, .spinner-arrow-down { opacity: 0.6; filter: alpha(opacity=60); display: block; font-size: 1px; width: 18px; height: 10px; width: 100%; height: 50%; outline-style: none; } .spinner-arrow-hover { background-color: #e2e2e2; opacity: 1.0; filter: alpha(opacity=100); } .spinner-arrow-up:hover, .spinner-arrow-down:hover { opacity: 1.0; filter: alpha(opacity=100); background-color: #e2e2e2; } .textbox-icon-disabled .spinner-arrow-up:hover, .textbox-icon-disabled .spinner-arrow-down:hover { opacity: 0.6; filter: alpha(opacity=60); background-color: #f3f3f3; cursor: default; } .spinner .textbox-icon-disabled { opacity: 0.6; filter: alpha(opacity=60); } .spinner-arrow-up { background: url('images/spinner_arrows.png') no-repeat 1px center; } .spinner-arrow-down { background: url('images/spinner_arrows.png') no-repeat -15px center; } .spinner { border-color: #D3D3D3; } .progressbar { border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; overflow: hidden; position: relative; } .progressbar-text { text-align: center; position: absolute; } .progressbar-value { position: relative; overflow: hidden; width: 0; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .progressbar { border-color: #D3D3D3; } .progressbar-text { color: #000000; font-size: 12px; } .progressbar-value .progressbar-text { background-color: #0092DC; color: #fff; } .searchbox { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .searchbox .searchbox-text { font-size: 12px; border: 0; margin: 0; padding: 0 2px; vertical-align: top; } .searchbox .searchbox-prompt { font-size: 12px; color: #ccc; } .searchbox-button { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .searchbox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .searchbox .l-btn-plain { border: 0; padding: 0; vertical-align: top; opacity: 0.6; filter: alpha(opacity=60); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .l-btn-plain:hover { border: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox a.m-btn-plain-active { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .m-btn-active { border-width: 0 1px 0 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .textbox-button-right { border-width: 0 0 0 1px; } .searchbox .textbox-button-left { border-width: 0 1px 0 0; } .searchbox-button { background: url('images/searchbox_button.png') no-repeat center center; } .searchbox { border-color: #D3D3D3; background-color: #fff; } .searchbox .l-btn-plain { background: #f3f3f3; } .searchbox .l-btn-plain-disabled, .searchbox .l-btn-plain-disabled:hover { opacity: 0.5; filter: alpha(opacity=50); } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .slider-disabled { opacity: 0.5; filter: alpha(opacity=50); } .slider-h { height: 22px; } .slider-v { width: 22px; } .slider-inner { position: relative; height: 6px; top: 7px; border-width: 1px; border-style: solid; border-radius: 5px; } .slider-handle { position: absolute; display: block; outline: none; width: 20px; height: 20px; top: 50%; margin-top: -10px; margin-left: -10px; } .slider-tip { position: absolute; display: inline-block; line-height: 12px; font-size: 12px; white-space: nowrap; top: -22px; } .slider-rule { position: relative; top: 15px; } .slider-rule span { position: absolute; display: inline-block; font-size: 0; height: 5px; border-width: 0 0 0 1px; border-style: solid; } .slider-rulelabel { position: relative; top: 20px; } .slider-rulelabel span { position: absolute; display: inline-block; font-size: 12px; } .slider-v .slider-inner { width: 6px; left: 7px; top: 0; float: left; } .slider-v .slider-handle { left: 50%; margin-top: -10px; } .slider-v .slider-tip { left: -10px; margin-top: -6px; } .slider-v .slider-rule { float: left; top: 0; left: 16px; } .slider-v .slider-rule span { width: 5px; height: 'auto'; border-left: 0; border-width: 1px 0 0 0; border-style: solid; } .slider-v .slider-rulelabel { float: left; top: 0; left: 23px; } .slider-handle { background: url('images/slider_handle.png') no-repeat; } .slider-inner { border-color: #D3D3D3; background: #f3f3f3; } .slider-rule span { border-color: #D3D3D3; } .slider-rulelabel span { color: #000000; } .menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #ccc; border-right: 1px solid #fff; } .menu-sep { border-top: 1px solid #ccc; border-bottom: 1px solid #fff; } .menu { background-color: #f3f3f3; border-color: #D3D3D3; color: #444; } .menu-content { background: #ffffff; } .menu-item { border-color: transparent; _border-color: #f3f3f3; } .menu-active { border-color: #ccc; color: #000000; background: #e2e2e2; } .menu-active-disabled { border-color: transparent; background: transparent; color: #444; } .m-btn-downarrow, .s-btn-downarrow { display: inline-block; position: absolute; width: 16px; height: 16px; font-size: 1px; right: 0; top: 50%; margin-top: -8px; } .m-btn-active, .s-btn-active { background: #e2e2e2; color: #000000; border: 1px solid #ccc; filter: none; } .m-btn-plain-active, .s-btn-plain-active { background: transparent; padding: 0; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .m-btn .l-btn-left .l-btn-text { margin-right: 20px; } .m-btn .l-btn-icon-right .l-btn-text { margin-right: 40px; } .m-btn .l-btn-icon-right .l-btn-icon { right: 20px; } .m-btn .l-btn-icon-top .l-btn-text { margin-right: 4px; margin-bottom: 14px; } .m-btn .l-btn-icon-bottom .l-btn-text { margin-right: 4px; margin-bottom: 34px; } .m-btn .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 20px; } .m-btn .l-btn-icon-top .m-btn-downarrow, .m-btn .l-btn-icon-bottom .m-btn-downarrow { top: auto; bottom: 0px; left: 50%; margin-left: -8px; } .m-btn-line { display: inline-block; position: absolute; font-size: 1px; display: none; } .m-btn .l-btn-left .m-btn-line { right: 0; width: 16px; height: 500px; border-style: solid; border-color: #bfbfbf; border-width: 0 0 0 1px; } .m-btn .l-btn-icon-top .m-btn-line, .m-btn .l-btn-icon-bottom .m-btn-line { left: 0; bottom: 0; width: 500px; height: 16px; border-width: 1px 0 0 0; } .m-btn-large .l-btn-icon-right .l-btn-text { margin-right: 56px; } .m-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 50px; } .m-btn-downarrow, .s-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 0 center; } .m-btn-plain-active, .s-btn-plain-active { border-color: #ccc; background-color: #e2e2e2; color: #000000; } .s-btn:hover .m-btn-line, .s-btn-active .m-btn-line, .s-btn-plain-active .m-btn-line { display: inline-block; } .l-btn:hover .s-btn-downarrow, .s-btn-active .s-btn-downarrow, .s-btn-plain-active .s-btn-downarrow { border-style: solid; border-color: #bfbfbf; border-width: 0 0 0 1px; } .messager-body { padding: 10px; overflow: hidden; } .messager-button { text-align: center; padding-top: 10px; } .messager-button .l-btn { width: 70px; } .messager-icon { float: left; width: 32px; height: 32px; margin: 0 10px 10px 0; } .messager-error { background: url('images/messager_icons.png') no-repeat scroll -64px 0; } .messager-info { background: url('images/messager_icons.png') no-repeat scroll 0 0; } .messager-question { background: url('images/messager_icons.png') no-repeat scroll -32px 0; } .messager-warning { background: url('images/messager_icons.png') no-repeat scroll -96px 0; } .messager-progress { padding: 10px; } .messager-p-msg { margin-bottom: 5px; } .messager-body .messager-input { width: 100%; padding: 1px 0; border: 1px solid #D3D3D3; } .tree { margin: 0; padding: 0; list-style-type: none; } .tree li { white-space: nowrap; } .tree li ul { list-style-type: none; margin: 0; padding: 0; } .tree-node { height: 18px; white-space: nowrap; cursor: pointer; } .tree-hit { cursor: pointer; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; vertical-align: top; overflow: hidden; } .tree-expanded { background: url('images/tree_icons.png') no-repeat -18px 0px; } .tree-expanded-hover { background: url('images/tree_icons.png') no-repeat -50px 0px; } .tree-collapsed { background: url('images/tree_icons.png') no-repeat 0px 0px; } .tree-collapsed-hover { background: url('images/tree_icons.png') no-repeat -32px 0px; } .tree-lines .tree-expanded, .tree-lines .tree-root-first .tree-expanded { background: url('images/tree_icons.png') no-repeat -144px 0; } .tree-lines .tree-collapsed, .tree-lines .tree-root-first .tree-collapsed { background: url('images/tree_icons.png') no-repeat -128px 0; } .tree-lines .tree-node-last .tree-expanded, .tree-lines .tree-root-one .tree-expanded { background: url('images/tree_icons.png') no-repeat -80px 0; } .tree-lines .tree-node-last .tree-collapsed, .tree-lines .tree-root-one .tree-collapsed { background: url('images/tree_icons.png') no-repeat -64px 0; } .tree-line { background: url('images/tree_icons.png') no-repeat -176px 0; } .tree-join { background: url('images/tree_icons.png') no-repeat -192px 0; } .tree-joinbottom { background: url('images/tree_icons.png') no-repeat -160px 0; } .tree-folder { background: url('images/tree_icons.png') no-repeat -208px 0; } .tree-folder-open { background: url('images/tree_icons.png') no-repeat -224px 0; } .tree-file { background: url('images/tree_icons.png') no-repeat -240px 0; } .tree-loading { background: url('images/loading.gif') no-repeat center center; } .tree-checkbox0 { background: url('images/tree_icons.png') no-repeat -208px -18px; } .tree-checkbox1 { background: url('images/tree_icons.png') no-repeat -224px -18px; } .tree-checkbox2 { background: url('images/tree_icons.png') no-repeat -240px -18px; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: top; white-space: nowrap; padding: 0 2px; height: 18px; line-height: 18px; } .tree-node-proxy { font-size: 12px; line-height: 20px; padding: 0 2px 0 20px; border-width: 1px; border-style: solid; z-index: 9900000; } .tree-dnd-icon { display: inline-block; position: absolute; width: 16px; height: 18px; left: 2px; top: 50%; margin-top: -9px; } .tree-dnd-yes { background: url('images/tree_icons.png') no-repeat -256px 0; } .tree-dnd-no { background: url('images/tree_icons.png') no-repeat -256px -18px; } .tree-node-top { border-top: 1px dotted red; } .tree-node-bottom { border-bottom: 1px dotted red; } .tree-node-append .tree-title { border: 1px dotted red; } .tree-editor { border: 1px solid #ccc; font-size: 12px; height: 14px !important; height: 18px; line-height: 14px; padding: 1px 2px; width: 80px; position: absolute; top: 0; } .tree-node-proxy { background-color: #ffffff; color: #000000; border-color: #D3D3D3; } .tree-node-hover { background: #e2e2e2; color: #000000; } .tree-node-selected { background: #0092DC; color: #fff; } .validatebox-invalid { border-color: #ffa8a8; background-color: #fff3f3; color: #000; } .tooltip { position: absolute; display: none; z-index: 9900000; outline: none; opacity: 1; filter: alpha(opacity=100); padding: 5px; border-width: 1px; border-style: solid; border-radius: 5px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .tooltip-content { font-size: 12px; } .tooltip-arrow-outer, .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border-style: solid; border-width: 6px; border-color: transparent; _border-color: tomato; _filter: chroma(color=tomato); } .tooltip-right .tooltip-arrow-outer { left: 0; top: 50%; margin: -6px 0 0 -13px; } .tooltip-right .tooltip-arrow { left: 0; top: 50%; margin: -6px 0 0 -12px; } .tooltip-left .tooltip-arrow-outer { right: 0; top: 50%; margin: -6px -13px 0 0; } .tooltip-left .tooltip-arrow { right: 0; top: 50%; margin: -6px -12px 0 0; } .tooltip-top .tooltip-arrow-outer { bottom: 0; left: 50%; margin: 0 0 -13px -6px; } .tooltip-top .tooltip-arrow { bottom: 0; left: 50%; margin: 0 0 -12px -6px; } .tooltip-bottom .tooltip-arrow-outer { top: 0; left: 50%; margin: -13px 0 0 -6px; } .tooltip-bottom .tooltip-arrow { top: 0; left: 50%; margin: -12px 0 0 -6px; } .tooltip { background-color: #ffffff; border-color: #D3D3D3; color: #000000; } .tooltip-right .tooltip-arrow-outer { border-right-color: #D3D3D3; } .tooltip-right .tooltip-arrow { border-right-color: #ffffff; } .tooltip-left .tooltip-arrow-outer { border-left-color: #D3D3D3; } .tooltip-left .tooltip-arrow { border-left-color: #ffffff; } .tooltip-top .tooltip-arrow-outer { border-top-color: #D3D3D3; } .tooltip-top .tooltip-arrow { border-top-color: #ffffff; } .tooltip-bottom .tooltip-arrow-outer { border-bottom-color: #D3D3D3; } .tooltip-bottom .tooltip-arrow { border-bottom-color: #ffffff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/filebox.css ================================================ .filebox .textbox-value { vertical-align: top; position: absolute; top: 0; left: -5000px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/layout.css ================================================ .layout { position: relative; overflow: hidden; margin: 0; padding: 0; z-index: 0; } .layout-panel { position: absolute; overflow: hidden; } .layout-panel-east, .layout-panel-west { z-index: 2; } .layout-panel-north, .layout-panel-south { z-index: 3; } .layout-expand { position: absolute; padding: 0px; font-size: 1px; cursor: pointer; z-index: 1; } .layout-expand .panel-header, .layout-expand .panel-body { background: transparent; filter: none; overflow: hidden; } .layout-expand .panel-header { border-bottom-width: 0px; } .layout-split-proxy-h, .layout-split-proxy-v { position: absolute; font-size: 1px; display: none; z-index: 5; } .layout-split-proxy-h { width: 5px; cursor: e-resize; } .layout-split-proxy-v { height: 5px; cursor: n-resize; } .layout-mask { position: absolute; background: #fafafa; filter: alpha(opacity=10); opacity: 0.10; z-index: 4; } .layout-button-up { background: url('images/layout_arrows.png') no-repeat -16px -16px; } .layout-button-down { background: url('images/layout_arrows.png') no-repeat -16px 0; } .layout-button-left { background: url('images/layout_arrows.png') no-repeat 0 0; } .layout-button-right { background: url('images/layout_arrows.png') no-repeat 0 -16px; } .layout-split-proxy-h, .layout-split-proxy-v { background-color: #bfbfbf; } .layout-split-north { border-bottom: 5px solid #efefef; } .layout-split-south { border-top: 5px solid #efefef; } .layout-split-east { border-left: 5px solid #efefef; } .layout-split-west { border-right: 5px solid #efefef; } .layout-expand { background-color: #f3f3f3; } .layout-expand-over { background-color: #f3f3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/linkbutton.css ================================================ .l-btn { text-decoration: none; display: inline-block; overflow: hidden; margin: 0; padding: 0; cursor: pointer; outline: none; text-align: center; vertical-align: middle; } .l-btn-plain { border: 0; padding: 1px; } .l-btn-left { display: inline-block; position: relative; overflow: hidden; margin: 0; padding: 0; vertical-align: top; } .l-btn-text { display: inline-block; vertical-align: top; width: auto; line-height: 24px; font-size: 12px; padding: 0; margin: 0 4px; } .l-btn-icon { display: inline-block; width: 16px; height: 16px; line-height: 16px; position: absolute; top: 50%; margin-top: -8px; font-size: 1px; } .l-btn span span .l-btn-empty { display: inline-block; margin: 0; width: 16px; height: 24px; font-size: 1px; vertical-align: top; } .l-btn span .l-btn-icon-left { padding: 0 0 0 20px; background-position: left center; } .l-btn span .l-btn-icon-right { padding: 0 20px 0 0; background-position: right center; } .l-btn-icon-left .l-btn-text { margin: 0 4px 0 24px; } .l-btn-icon-left .l-btn-icon { left: 4px; } .l-btn-icon-right .l-btn-text { margin: 0 24px 0 4px; } .l-btn-icon-right .l-btn-icon { right: 4px; } .l-btn-icon-top .l-btn-text { margin: 20px 4px 0 4px; } .l-btn-icon-top .l-btn-icon { top: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-icon-bottom .l-btn-text { margin: 0 4px 20px 4px; } .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-left .l-btn-empty { margin: 0 4px; width: 16px; } .l-btn-plain:hover { padding: 0; } .l-btn-focus { outline: #0000FF dotted thin; } .l-btn-large .l-btn-text { line-height: 40px; } .l-btn-large .l-btn-icon { width: 32px; height: 32px; line-height: 32px; margin-top: -16px; } .l-btn-large .l-btn-icon-left .l-btn-text { margin-left: 40px; } .l-btn-large .l-btn-icon-right .l-btn-text { margin-right: 40px; } .l-btn-large .l-btn-icon-top .l-btn-text { margin-top: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-top .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-bottom .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-left .l-btn-empty { margin: 0 4px; width: 32px; } .l-btn { color: #444; background: #fafafa; background-repeat: repeat-x; border: 1px solid #bbb; background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0); -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn:hover { background: #e2e2e2; color: #000000; border: 1px solid #ccc; filter: none; } .l-btn-plain { background: transparent; border: 0; filter: none; } .l-btn-plain:hover { background: #e2e2e2; color: #000000; border: 1px solid #ccc; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .l-btn-disabled, .l-btn-disabled:hover { opacity: 0.5; cursor: default; background: #fafafa; color: #444; background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%); background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0); } .l-btn-disabled .l-btn-text, .l-btn-disabled .l-btn-icon { filter: alpha(opacity=50); } .l-btn-plain-disabled, .l-btn-plain-disabled:hover { background: transparent; filter: alpha(opacity=50); } .l-btn-selected, .l-btn-selected:hover { background: #ddd; filter: none; } .l-btn-plain-selected, .l-btn-plain-selected:hover { background: #ddd; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/menu.css ================================================ .menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #ccc; border-right: 1px solid #fff; } .menu-sep { border-top: 1px solid #ccc; border-bottom: 1px solid #fff; } .menu { background-color: #f3f3f3; border-color: #D3D3D3; color: #444; } .menu-content { background: #ffffff; } .menu-item { border-color: transparent; _border-color: #f3f3f3; } .menu-active { border-color: #ccc; color: #000000; background: #e2e2e2; } .menu-active-disabled { border-color: transparent; background: transparent; color: #444; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/menubutton.css ================================================ .m-btn-downarrow, .s-btn-downarrow { display: inline-block; position: absolute; width: 16px; height: 16px; font-size: 1px; right: 0; top: 50%; margin-top: -8px; } .m-btn-active, .s-btn-active { background: #e2e2e2; color: #000000; border: 1px solid #ccc; filter: none; } .m-btn-plain-active, .s-btn-plain-active { background: transparent; padding: 0; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .m-btn .l-btn-left .l-btn-text { margin-right: 20px; } .m-btn .l-btn-icon-right .l-btn-text { margin-right: 40px; } .m-btn .l-btn-icon-right .l-btn-icon { right: 20px; } .m-btn .l-btn-icon-top .l-btn-text { margin-right: 4px; margin-bottom: 14px; } .m-btn .l-btn-icon-bottom .l-btn-text { margin-right: 4px; margin-bottom: 34px; } .m-btn .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 20px; } .m-btn .l-btn-icon-top .m-btn-downarrow, .m-btn .l-btn-icon-bottom .m-btn-downarrow { top: auto; bottom: 0px; left: 50%; margin-left: -8px; } .m-btn-line { display: inline-block; position: absolute; font-size: 1px; display: none; } .m-btn .l-btn-left .m-btn-line { right: 0; width: 16px; height: 500px; border-style: solid; border-color: #bfbfbf; border-width: 0 0 0 1px; } .m-btn .l-btn-icon-top .m-btn-line, .m-btn .l-btn-icon-bottom .m-btn-line { left: 0; bottom: 0; width: 500px; height: 16px; border-width: 1px 0 0 0; } .m-btn-large .l-btn-icon-right .l-btn-text { margin-right: 56px; } .m-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 50px; } .m-btn-downarrow, .s-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 0 center; } .m-btn-plain-active, .s-btn-plain-active { border-color: #ccc; background-color: #e2e2e2; color: #000000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/messager.css ================================================ .messager-body { padding: 10px; overflow: hidden; } .messager-button { text-align: center; padding-top: 10px; } .messager-button .l-btn { width: 70px; } .messager-icon { float: left; width: 32px; height: 32px; margin: 0 10px 10px 0; } .messager-error { background: url('images/messager_icons.png') no-repeat scroll -64px 0; } .messager-info { background: url('images/messager_icons.png') no-repeat scroll 0 0; } .messager-question { background: url('images/messager_icons.png') no-repeat scroll -32px 0; } .messager-warning { background: url('images/messager_icons.png') no-repeat scroll -96px 0; } .messager-progress { padding: 10px; } .messager-p-msg { margin-bottom: 5px; } .messager-body .messager-input { width: 100%; padding: 1px 0; border: 1px solid #D3D3D3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/numberbox.css ================================================ .numberbox { border: 1px solid #D3D3D3; margin: 0; padding: 0 2px; vertical-align: middle; } .textbox { padding: 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/pagination.css ================================================ .pagination { zoom: 1; } .pagination table { float: left; height: 30px; } .pagination td { border: 0; } .pagination-btn-separator { float: left; height: 24px; border-left: 1px solid #ccc; border-right: 1px solid #fff; margin: 3px 1px; } .pagination .pagination-num { border-width: 1px; border-style: solid; margin: 0 2px; padding: 2px; width: 2em; height: auto; } .pagination-page-list { margin: 0px 6px; padding: 1px 2px; width: auto; height: auto; border-width: 1px; border-style: solid; } .pagination-info { float: right; margin: 0 6px 0 0; padding: 0; height: 30px; line-height: 30px; font-size: 12px; } .pagination span { font-size: 12px; } .pagination-link .l-btn-text { width: 24px; text-align: center; margin: 0; } .pagination-first { background: url('images/pagination_icons.png') no-repeat 0 center; } .pagination-prev { background: url('images/pagination_icons.png') no-repeat -16px center; } .pagination-next { background: url('images/pagination_icons.png') no-repeat -32px center; } .pagination-last { background: url('images/pagination_icons.png') no-repeat -48px center; } .pagination-load { background: url('images/pagination_icons.png') no-repeat -64px center; } .pagination-loading { background: url('images/loading.gif') no-repeat center center; } .pagination-page-list, .pagination .pagination-num { border-color: #D3D3D3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/panel.css ================================================ .panel { overflow: hidden; text-align: left; margin: 0; border: 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .panel-header, .panel-body { border-width: 1px; border-style: solid; } .panel-header { padding: 5px; position: relative; } .panel-title { background: url('images/blank.gif') no-repeat; } .panel-header-noborder { border-width: 0 0 1px 0; } .panel-body { overflow: auto; border-top-width: 0; padding: 0; } .panel-body-noheader { border-top-width: 1px; } .panel-body-noborder { border-width: 0px; } .panel-body-nobottom { border-bottom-width: 0; } .panel-with-icon { padding-left: 18px; } .panel-icon, .panel-tool { position: absolute; top: 50%; margin-top: -8px; height: 16px; overflow: hidden; } .panel-icon { left: 5px; width: 16px; } .panel-tool { right: 5px; width: auto; } .panel-tool a { display: inline-block; width: 16px; height: 16px; opacity: 0.6; filter: alpha(opacity=60); margin: 0 0 0 2px; vertical-align: top; } .panel-tool a:hover { opacity: 1; filter: alpha(opacity=100); background-color: #e2e2e2; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; } .panel-loading { padding: 11px 0px 10px 30px; } .panel-noscroll { overflow: hidden; } .panel-fit, .panel-fit body { height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .panel-loading { background: url('images/loading.gif') no-repeat 10px 10px; } .panel-tool-close { background: url('images/panel_tools.png') no-repeat -16px 0px; } .panel-tool-min { background: url('images/panel_tools.png') no-repeat 0px 0px; } .panel-tool-max { background: url('images/panel_tools.png') no-repeat 0px -16px; } .panel-tool-restore { background: url('images/panel_tools.png') no-repeat -16px -16px; } .panel-tool-collapse { background: url('images/panel_tools.png') no-repeat -32px 0; } .panel-tool-expand { background: url('images/panel_tools.png') no-repeat -32px -16px; } .panel-header, .panel-body { border-color: #D3D3D3; } .panel-header { background-color: #f3f3f3; background: -webkit-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: -moz-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: -o-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: linear-gradient(to bottom,#F8F8F8 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F8F8F8,endColorstr=#eeeeee,GradientType=0); } .panel-body { background-color: #ffffff; color: #000000; font-size: 12px; } .panel-title { font-size: 12px; font-weight: bold; color: #575765; height: 16px; line-height: 16px; } .panel-footer { border: 1px solid #D3D3D3; overflow: hidden; background: #fafafa; } .panel-footer-noborder { border-width: 1px 0 0 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/progressbar.css ================================================ .progressbar { border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; overflow: hidden; position: relative; } .progressbar-text { text-align: center; position: absolute; } .progressbar-value { position: relative; overflow: hidden; width: 0; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .progressbar { border-color: #D3D3D3; } .progressbar-text { color: #000000; font-size: 12px; } .progressbar-value .progressbar-text { background-color: #0092DC; color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/propertygrid.css ================================================ .propertygrid .datagrid-view1 .datagrid-body td { padding-bottom: 1px; border-width: 0 1px 0 0; } .propertygrid .datagrid-group { height: 21px; overflow: hidden; border-width: 0 0 1px 0; border-style: solid; } .propertygrid .datagrid-group span { font-weight: bold; } .propertygrid .datagrid-view1 .datagrid-body td { border-color: #ddd; } .propertygrid .datagrid-view1 .datagrid-group { border-color: #f3f3f3; } .propertygrid .datagrid-view2 .datagrid-group { border-color: #ddd; } .propertygrid .datagrid-group, .propertygrid .datagrid-view1 .datagrid-body, .propertygrid .datagrid-view1 .datagrid-row-over, .propertygrid .datagrid-view1 .datagrid-row-selected { background: #f3f3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/searchbox.css ================================================ .searchbox { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .searchbox .searchbox-text { font-size: 12px; border: 0; margin: 0; padding: 0 2px; vertical-align: top; } .searchbox .searchbox-prompt { font-size: 12px; color: #ccc; } .searchbox-button { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .searchbox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .searchbox .l-btn-plain { border: 0; padding: 0; vertical-align: top; opacity: 0.6; filter: alpha(opacity=60); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .l-btn-plain:hover { border: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox a.m-btn-plain-active { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .m-btn-active { border-width: 0 1px 0 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .textbox-button-right { border-width: 0 0 0 1px; } .searchbox .textbox-button-left { border-width: 0 1px 0 0; } .searchbox-button { background: url('images/searchbox_button.png') no-repeat center center; } .searchbox { border-color: #D3D3D3; background-color: #fff; } .searchbox .l-btn-plain { background: #f3f3f3; } .searchbox .l-btn-plain-disabled, .searchbox .l-btn-plain-disabled:hover { opacity: 0.5; filter: alpha(opacity=50); } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/slider.css ================================================ .slider-disabled { opacity: 0.5; filter: alpha(opacity=50); } .slider-h { height: 22px; } .slider-v { width: 22px; } .slider-inner { position: relative; height: 6px; top: 7px; border-width: 1px; border-style: solid; border-radius: 5px; } .slider-handle { position: absolute; display: block; outline: none; width: 20px; height: 20px; top: 50%; margin-top: -10px; margin-left: -10px; } .slider-tip { position: absolute; display: inline-block; line-height: 12px; font-size: 12px; white-space: nowrap; top: -22px; } .slider-rule { position: relative; top: 15px; } .slider-rule span { position: absolute; display: inline-block; font-size: 0; height: 5px; border-width: 0 0 0 1px; border-style: solid; } .slider-rulelabel { position: relative; top: 20px; } .slider-rulelabel span { position: absolute; display: inline-block; font-size: 12px; } .slider-v .slider-inner { width: 6px; left: 7px; top: 0; float: left; } .slider-v .slider-handle { left: 50%; margin-top: -10px; } .slider-v .slider-tip { left: -10px; margin-top: -6px; } .slider-v .slider-rule { float: left; top: 0; left: 16px; } .slider-v .slider-rule span { width: 5px; height: 'auto'; border-left: 0; border-width: 1px 0 0 0; border-style: solid; } .slider-v .slider-rulelabel { float: left; top: 0; left: 23px; } .slider-handle { background: url('images/slider_handle.png') no-repeat; } .slider-inner { border-color: #D3D3D3; background: #f3f3f3; } .slider-rule span { border-color: #D3D3D3; } .slider-rulelabel span { color: #000000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/spinner.css ================================================ .spinner { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .spinner .spinner-text { font-size: 12px; border: 0px; margin: 0; padding: 0 2px; vertical-align: baseline; } .spinner-arrow { background-color: #f3f3f3; display: inline-block; overflow: hidden; vertical-align: top; margin: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); width: 18px; } .spinner-arrow-up, .spinner-arrow-down { opacity: 0.6; filter: alpha(opacity=60); display: block; font-size: 1px; width: 18px; height: 10px; width: 100%; height: 50%; outline-style: none; } .spinner-arrow-hover { background-color: #e2e2e2; opacity: 1.0; filter: alpha(opacity=100); } .spinner-arrow-up:hover, .spinner-arrow-down:hover { opacity: 1.0; filter: alpha(opacity=100); background-color: #e2e2e2; } .textbox-icon-disabled .spinner-arrow-up:hover, .textbox-icon-disabled .spinner-arrow-down:hover { opacity: 0.6; filter: alpha(opacity=60); background-color: #f3f3f3; cursor: default; } .spinner .textbox-icon-disabled { opacity: 0.6; filter: alpha(opacity=60); } .spinner-arrow-up { background: url('images/spinner_arrows.png') no-repeat 1px center; } .spinner-arrow-down { background: url('images/spinner_arrows.png') no-repeat -15px center; } .spinner { border-color: #D3D3D3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/splitbutton.css ================================================ .s-btn:hover .m-btn-line, .s-btn-active .m-btn-line, .s-btn-plain-active .m-btn-line { display: inline-block; } .l-btn:hover .s-btn-downarrow, .s-btn-active .s-btn-downarrow, .s-btn-plain-active .s-btn-downarrow { border-style: solid; border-color: #bfbfbf; border-width: 0 0 0 1px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/tabs.css ================================================ .tabs-container { overflow: hidden; } .tabs-header { border-width: 1px; border-style: solid; border-bottom-width: 0; position: relative; padding: 0; padding-top: 2px; overflow: hidden; } .tabs-header-plain { border: 0; background: transparent; } .tabs-scroller-left, .tabs-scroller-right { position: absolute; top: auto; bottom: 0; width: 18px; font-size: 1px; display: none; cursor: pointer; border-width: 1px; border-style: solid; } .tabs-scroller-left { left: 0; } .tabs-scroller-right { right: 0; } .tabs-tool { position: absolute; bottom: 0; padding: 1px; overflow: hidden; border-width: 1px; border-style: solid; } .tabs-header-plain .tabs-tool { padding: 0 1px; } .tabs-wrap { position: relative; left: 0; overflow: hidden; width: 100%; margin: 0; padding: 0; } .tabs-scrolling { margin-left: 18px; margin-right: 18px; } .tabs-disabled { opacity: 0.3; filter: alpha(opacity=30); } .tabs { list-style-type: none; height: 26px; margin: 0px; padding: 0px; padding-left: 4px; width: 50000px; border-style: solid; border-width: 0 0 1px 0; } .tabs li { float: left; display: inline-block; margin: 0 4px -1px 0; padding: 0; position: relative; border: 0; } .tabs li a.tabs-inner { display: inline-block; text-decoration: none; margin: 0; padding: 0 10px; height: 25px; line-height: 25px; text-align: center; white-space: nowrap; border-width: 1px; border-style: solid; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .tabs li.tabs-selected a.tabs-inner { font-weight: bold; outline: none; } .tabs li.tabs-selected a:hover.tabs-inner { cursor: default; pointer: default; } .tabs li a.tabs-close, .tabs-p-tool { position: absolute; font-size: 1px; display: block; height: 12px; padding: 0; top: 50%; margin-top: -6px; overflow: hidden; } .tabs li a.tabs-close { width: 12px; right: 5px; opacity: 0.6; filter: alpha(opacity=60); } .tabs-p-tool { right: 16px; } .tabs-p-tool a { display: inline-block; font-size: 1px; width: 12px; height: 12px; margin: 0; opacity: 0.6; filter: alpha(opacity=60); } .tabs li a:hover.tabs-close, .tabs-p-tool a:hover { opacity: 1; filter: alpha(opacity=100); cursor: hand; cursor: pointer; } .tabs-with-icon { padding-left: 18px; } .tabs-icon { position: absolute; width: 16px; height: 16px; left: 10px; top: 50%; margin-top: -8px; } .tabs-title { font-size: 12px; } .tabs-closable { padding-right: 8px; } .tabs-panels { margin: 0px; padding: 0px; border-width: 1px; border-style: solid; border-top-width: 0; overflow: hidden; } .tabs-header-bottom { border-width: 0 1px 1px 1px; padding: 0 0 2px 0; } .tabs-header-bottom .tabs { border-width: 1px 0 0 0; } .tabs-header-bottom .tabs li { margin: -1px 4px 0 0; } .tabs-header-bottom .tabs li a.tabs-inner { -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; } .tabs-header-bottom .tabs-tool { top: 0; } .tabs-header-bottom .tabs-scroller-left, .tabs-header-bottom .tabs-scroller-right { top: 0; bottom: auto; } .tabs-panels-top { border-width: 1px 1px 0 1px; } .tabs-header-left { float: left; border-width: 1px 0 1px 1px; padding: 0; } .tabs-header-right { float: right; border-width: 1px 1px 1px 0; padding: 0; } .tabs-header-left .tabs-wrap, .tabs-header-right .tabs-wrap { height: 100%; } .tabs-header-left .tabs { height: 100%; padding: 4px 0 0 4px; border-width: 0 1px 0 0; } .tabs-header-right .tabs { height: 100%; padding: 4px 4px 0 0; border-width: 0 0 0 1px; } .tabs-header-left .tabs li, .tabs-header-right .tabs li { display: block; width: 100%; position: relative; } .tabs-header-left .tabs li { left: auto; right: 0; margin: 0 -1px 4px 0; float: right; } .tabs-header-right .tabs li { left: 0; right: auto; margin: 0 0 4px -1px; float: left; } .tabs-header-left .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 5px 0 0 5px; -webkit-border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px; } .tabs-header-right .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0 5px 5px 0; -webkit-border-radius: 0 5px 5px 0; border-radius: 0 5px 5px 0; } .tabs-panels-right { float: right; border-width: 1px 1px 1px 0; } .tabs-panels-left { float: left; border-width: 1px 0 1px 1px; } .tabs-header-noborder, .tabs-panels-noborder { border: 0px; } .tabs-header-plain { border: 0px; background: transparent; } .tabs-scroller-left { background: #f3f3f3 url('images/tabs_icons.png') no-repeat 1px center; } .tabs-scroller-right { background: #f3f3f3 url('images/tabs_icons.png') no-repeat -15px center; } .tabs li a.tabs-close { background: url('images/tabs_icons.png') no-repeat -34px center; } .tabs li a.tabs-inner:hover { background: #e2e2e2; color: #000000; filter: none; } .tabs li.tabs-selected a.tabs-inner { background-color: #ffffff; color: #575765; background: -webkit-linear-gradient(top,#F8F8F8 0,#ffffff 100%); background: -moz-linear-gradient(top,#F8F8F8 0,#ffffff 100%); background: -o-linear-gradient(top,#F8F8F8 0,#ffffff 100%); background: linear-gradient(to bottom,#F8F8F8 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F8F8F8,endColorstr=#ffffff,GradientType=0); } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(top,#ffffff 0,#F8F8F8 100%); background: -moz-linear-gradient(top,#ffffff 0,#F8F8F8 100%); background: -o-linear-gradient(top,#ffffff 0,#F8F8F8 100%); background: linear-gradient(to bottom,#ffffff 0,#F8F8F8 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F8F8F8,GradientType=0); } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#F8F8F8 0,#ffffff 100%); background: -moz-linear-gradient(left,#F8F8F8 0,#ffffff 100%); background: -o-linear-gradient(left,#F8F8F8 0,#ffffff 100%); background: linear-gradient(to right,#F8F8F8 0,#ffffff 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F8F8F8,endColorstr=#ffffff,GradientType=1); } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { background: -webkit-linear-gradient(left,#ffffff 0,#F8F8F8 100%); background: -moz-linear-gradient(left,#ffffff 0,#F8F8F8 100%); background: -o-linear-gradient(left,#ffffff 0,#F8F8F8 100%); background: linear-gradient(to right,#ffffff 0,#F8F8F8 100%); background-repeat: repeat-y; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#F8F8F8,GradientType=1); } .tabs li a.tabs-inner { color: #575765; background-color: #f3f3f3; background: -webkit-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: -moz-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: -o-linear-gradient(top,#F8F8F8 0,#eeeeee 100%); background: linear-gradient(to bottom,#F8F8F8 0,#eeeeee 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F8F8F8,endColorstr=#eeeeee,GradientType=0); } .tabs-header, .tabs-tool { background-color: #f3f3f3; } .tabs-header-plain { background: transparent; } .tabs-header, .tabs-scroller-left, .tabs-scroller-right, .tabs-tool, .tabs, .tabs-panels, .tabs li a.tabs-inner, .tabs li.tabs-selected a.tabs-inner, .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner, .tabs-header-left .tabs li.tabs-selected a.tabs-inner, .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-color: #D3D3D3; } .tabs-p-tool a:hover, .tabs li a:hover.tabs-close, .tabs-scroller-over { background-color: #e2e2e2; } .tabs li.tabs-selected a.tabs-inner { border-bottom: 1px solid #ffffff; } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { border-top: 1px solid #ffffff; } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { border-right: 1px solid #ffffff; } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-left: 1px solid #ffffff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/textbox.css ================================================ .textbox { position: relative; border: 1px solid #D3D3D3; background-color: #fff; vertical-align: middle; display: inline-block; overflow: hidden; white-space: nowrap; margin: 0; padding: 0; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-text { font-size: 12px; border: 0; margin: 0; padding: 4px; white-space: normal; vertical-align: top; outline-style: none; resize: none; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .textbox .textbox-prompt { font-size: 12px; color: #aaa; } .textbox-button, .textbox-button:hover { position: absolute; top: 0; padding: 0; vertical-align: top; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .textbox-button-right, .textbox-button-right:hover { border-width: 0 0 0 1px; } .textbox-button-left, .textbox-button-left:hover { border-width: 0 1px 0 0; } .textbox-addon { position: absolute; top: 0; } .textbox-icon { display: inline-block; width: 18px; height: 20px; overflow: hidden; vertical-align: top; background-position: center center; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); text-decoration: none; outline-style: none; } .textbox-icon-disabled, .textbox-icon-readonly { cursor: default; } .textbox-icon:hover { opacity: 1.0; filter: alpha(opacity=100); } .textbox-icon-disabled:hover { opacity: 0.6; filter: alpha(opacity=60); } .textbox-focused { -moz-box-shadow: 0 0 3px 0 #D3D3D3; -webkit-box-shadow: 0 0 3px 0 #D3D3D3; box-shadow: 0 0 3px 0 #D3D3D3; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/tooltip.css ================================================ .tooltip { position: absolute; display: none; z-index: 9900000; outline: none; opacity: 1; filter: alpha(opacity=100); padding: 5px; border-width: 1px; border-style: solid; border-radius: 5px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .tooltip-content { font-size: 12px; } .tooltip-arrow-outer, .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border-style: solid; border-width: 6px; border-color: transparent; _border-color: tomato; _filter: chroma(color=tomato); } .tooltip-right .tooltip-arrow-outer { left: 0; top: 50%; margin: -6px 0 0 -13px; } .tooltip-right .tooltip-arrow { left: 0; top: 50%; margin: -6px 0 0 -12px; } .tooltip-left .tooltip-arrow-outer { right: 0; top: 50%; margin: -6px -13px 0 0; } .tooltip-left .tooltip-arrow { right: 0; top: 50%; margin: -6px -12px 0 0; } .tooltip-top .tooltip-arrow-outer { bottom: 0; left: 50%; margin: 0 0 -13px -6px; } .tooltip-top .tooltip-arrow { bottom: 0; left: 50%; margin: 0 0 -12px -6px; } .tooltip-bottom .tooltip-arrow-outer { top: 0; left: 50%; margin: -13px 0 0 -6px; } .tooltip-bottom .tooltip-arrow { top: 0; left: 50%; margin: -12px 0 0 -6px; } .tooltip { background-color: #ffffff; border-color: #D3D3D3; color: #000000; } .tooltip-right .tooltip-arrow-outer { border-right-color: #D3D3D3; } .tooltip-right .tooltip-arrow { border-right-color: #ffffff; } .tooltip-left .tooltip-arrow-outer { border-left-color: #D3D3D3; } .tooltip-left .tooltip-arrow { border-left-color: #ffffff; } .tooltip-top .tooltip-arrow-outer { border-top-color: #D3D3D3; } .tooltip-top .tooltip-arrow { border-top-color: #ffffff; } .tooltip-bottom .tooltip-arrow-outer { border-bottom-color: #D3D3D3; } .tooltip-bottom .tooltip-arrow { border-bottom-color: #ffffff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/tree.css ================================================ .tree { margin: 0; padding: 0; list-style-type: none; } .tree li { white-space: nowrap; } .tree li ul { list-style-type: none; margin: 0; padding: 0; } .tree-node { height: 18px; white-space: nowrap; cursor: pointer; } .tree-hit { cursor: pointer; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; vertical-align: top; overflow: hidden; } .tree-expanded { background: url('images/tree_icons.png') no-repeat -18px 0px; } .tree-expanded-hover { background: url('images/tree_icons.png') no-repeat -50px 0px; } .tree-collapsed { background: url('images/tree_icons.png') no-repeat 0px 0px; } .tree-collapsed-hover { background: url('images/tree_icons.png') no-repeat -32px 0px; } .tree-lines .tree-expanded, .tree-lines .tree-root-first .tree-expanded { background: url('images/tree_icons.png') no-repeat -144px 0; } .tree-lines .tree-collapsed, .tree-lines .tree-root-first .tree-collapsed { background: url('images/tree_icons.png') no-repeat -128px 0; } .tree-lines .tree-node-last .tree-expanded, .tree-lines .tree-root-one .tree-expanded { background: url('images/tree_icons.png') no-repeat -80px 0; } .tree-lines .tree-node-last .tree-collapsed, .tree-lines .tree-root-one .tree-collapsed { background: url('images/tree_icons.png') no-repeat -64px 0; } .tree-line { background: url('images/tree_icons.png') no-repeat -176px 0; } .tree-join { background: url('images/tree_icons.png') no-repeat -192px 0; } .tree-joinbottom { background: url('images/tree_icons.png') no-repeat -160px 0; } .tree-folder { background: url('images/tree_icons.png') no-repeat -208px 0; } .tree-folder-open { background: url('images/tree_icons.png') no-repeat -224px 0; } .tree-file { background: url('images/tree_icons.png') no-repeat -240px 0; } .tree-loading { background: url('images/loading.gif') no-repeat center center; } .tree-checkbox0 { background: url('images/tree_icons.png') no-repeat -208px -18px; } .tree-checkbox1 { background: url('images/tree_icons.png') no-repeat -224px -18px; } .tree-checkbox2 { background: url('images/tree_icons.png') no-repeat -240px -18px; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: top; white-space: nowrap; padding: 0 2px; height: 18px; line-height: 18px; } .tree-node-proxy { font-size: 12px; line-height: 20px; padding: 0 2px 0 20px; border-width: 1px; border-style: solid; z-index: 9900000; } .tree-dnd-icon { display: inline-block; position: absolute; width: 16px; height: 18px; left: 2px; top: 50%; margin-top: -9px; } .tree-dnd-yes { background: url('images/tree_icons.png') no-repeat -256px 0; } .tree-dnd-no { background: url('images/tree_icons.png') no-repeat -256px -18px; } .tree-node-top { border-top: 1px dotted red; } .tree-node-bottom { border-bottom: 1px dotted red; } .tree-node-append .tree-title { border: 1px dotted red; } .tree-editor { border: 1px solid #ccc; font-size: 12px; height: 14px !important; height: 18px; line-height: 14px; padding: 1px 2px; width: 80px; position: absolute; top: 0; } .tree-node-proxy { background-color: #ffffff; color: #000000; border-color: #D3D3D3; } .tree-node-hover { background: #e2e2e2; color: #000000; } .tree-node-selected { background: #0092DC; color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/validatebox.css ================================================ .validatebox-invalid { border-color: #ffa8a8; background-color: #fff3f3; color: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/gray/window.css ================================================ .window { overflow: hidden; padding: 5px; border-width: 1px; border-style: solid; } .window .window-header { background: transparent; padding: 0px 0px 6px 0px; } .window .window-body { border-width: 1px; border-style: solid; border-top-width: 0px; } .window .window-body-noheader { border-top-width: 1px; } .window .panel-body-nobottom { border-bottom-width: 0; } .window .window-header .panel-icon, .window .window-header .panel-tool { top: 50%; margin-top: -11px; } .window .window-header .panel-icon { left: 1px; } .window .window-header .panel-tool { right: 1px; } .window .window-header .panel-with-icon { padding-left: 18px; } .window-proxy { position: absolute; overflow: hidden; } .window-proxy-mask { position: absolute; filter: alpha(opacity=5); opacity: 0.05; } .window-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: alpha(opacity=40); opacity: 0.40; font-size: 1px; overflow: hidden; } .window, .window-shadow { position: absolute; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; } .window-shadow { background: #ccc; -moz-box-shadow: 2px 2px 3px #cccccc; -webkit-box-shadow: 2px 2px 3px #cccccc; box-shadow: 2px 2px 3px #cccccc; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .window, .window .window-body { border-color: #D3D3D3; } .window { background-color: #f3f3f3; background: -webkit-linear-gradient(top,#F8F8F8 0,#eeeeee 20%); background: -moz-linear-gradient(top,#F8F8F8 0,#eeeeee 20%); background: -o-linear-gradient(top,#F8F8F8 0,#eeeeee 20%); background: linear-gradient(to bottom,#F8F8F8 0,#eeeeee 20%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F8F8F8,endColorstr=#eeeeee,GradientType=0); } .window-proxy { border: 1px dashed #D3D3D3; } .window-proxy-mask, .window-mask { background: #ccc; } .window .panel-footer { border: 1px solid #D3D3D3; position: relative; top: -1px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/icon.css ================================================ .icon-blank{ background:url('icons/blank.gif') no-repeat center center; } .icon-add{ background:url('icons/edit_add.png') no-repeat center center; } .icon-edit{ background:url('icons/pencil.png') no-repeat center center; } .icon-clear{ background:url('icons/clear.png') no-repeat center center; } .icon-remove{ background:url('icons/edit_remove.png') no-repeat center center; } .icon-save{ background:url('icons/filesave.png') no-repeat center center; } .icon-cut{ background:url('icons/cut.png') no-repeat center center; } .icon-ok{ background:url('icons/ok.png') no-repeat center center; } .icon-no{ background:url('icons/no.png') no-repeat center center; } .icon-cancel{ background:url('icons/cancel.png') no-repeat center center; } .icon-reload{ background:url('icons/reload.png') no-repeat center center; } .icon-search{ background:url('icons/search.png') no-repeat center center; } .icon-print{ background:url('icons/print.png') no-repeat center center; } .icon-help{ background:url('icons/help.png') no-repeat center center; } .icon-undo{ background:url('icons/undo.png') no-repeat center center; } .icon-redo{ background:url('icons/redo.png') no-repeat center center; } .icon-back{ background:url('icons/back.png') no-repeat center center; } .icon-sum{ background:url('icons/sum.png') no-repeat center center; } .icon-tip{ background:url('icons/tip.png') no-repeat center center; } .icon-filter{ background:url('icons/filter.png') no-repeat center center; } .icon-man{ background:url('icons/man.png') no-repeat center center; } .icon-lock{ background:url('icons/lock.png') no-repeat center center; } .icon-mini-add{ background:url('icons/mini_add.png') no-repeat center center; } .icon-mini-edit{ background:url('icons/mini_edit.png') no-repeat center center; } .icon-mini-refresh{ background:url('icons/mini_refresh.png') no-repeat center center; } .icon-large-picture{ background:url('icons/large_picture.png') no-repeat center center; } .icon-large-clipart{ background:url('icons/large_clipart.png') no-repeat center center; } .icon-large-shapes{ background:url('icons/large_shapes.png') no-repeat center center; } .icon-large-smartart{ background:url('icons/large_smartart.png') no-repeat center center; } .icon-large-chart{ background:url('icons/large_chart.png') no-repeat center center; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/accordion.css ================================================ .accordion { overflow: hidden; border-width: 1px; border-style: solid; } .accordion .accordion-header { border-width: 0 0 1px; cursor: pointer; } .accordion .accordion-body { border-width: 0 0 1px; } .accordion-noborder { border-width: 0; } .accordion-noborder .accordion-header { border-width: 0 0 1px; } .accordion-noborder .accordion-body { border-width: 0 0 1px; } .accordion-collapse { background: url('images/accordion_arrows.png') no-repeat 0 0; } .accordion-expand { background: url('images/accordion_arrows.png') no-repeat -16px 0; } .accordion { background: #fff; border-color: #ddd; } .accordion .accordion-header { background: #ffffff; filter: none; } .accordion .accordion-header-selected { background: #CCE6FF; } .accordion .accordion-header-selected .panel-title { color: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/calendar.css ================================================ .calendar { border-width: 1px; border-style: solid; padding: 1px; overflow: hidden; } .calendar table { table-layout: fixed; border-collapse: separate; font-size: 12px; width: 100%; height: 100%; } .calendar table td, .calendar table th { font-size: 12px; } .calendar-noborder { border: 0; } .calendar-header { position: relative; height: 22px; } .calendar-title { text-align: center; height: 22px; } .calendar-title span { position: relative; display: inline-block; top: 2px; padding: 0 3px; height: 18px; line-height: 18px; font-size: 12px; cursor: pointer; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .calendar-prevmonth, .calendar-nextmonth, .calendar-prevyear, .calendar-nextyear { position: absolute; top: 50%; margin-top: -7px; width: 14px; height: 14px; cursor: pointer; font-size: 1px; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .calendar-prevmonth { left: 20px; background: url('images/calendar_arrows.png') no-repeat -18px -2px; } .calendar-nextmonth { right: 20px; background: url('images/calendar_arrows.png') no-repeat -34px -2px; } .calendar-prevyear { left: 3px; background: url('images/calendar_arrows.png') no-repeat -1px -2px; } .calendar-nextyear { right: 3px; background: url('images/calendar_arrows.png') no-repeat -49px -2px; } .calendar-body { position: relative; } .calendar-body th, .calendar-body td { text-align: center; } .calendar-day { border: 0; padding: 1px; cursor: pointer; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .calendar-other-month { opacity: 0.3; filter: alpha(opacity=30); } .calendar-disabled { opacity: 0.6; filter: alpha(opacity=60); cursor: default; } .calendar-menu { position: absolute; top: 0; left: 0; width: 180px; height: 150px; padding: 5px; font-size: 12px; display: none; overflow: hidden; } .calendar-menu-year-inner { text-align: center; padding-bottom: 5px; } .calendar-menu-year { width: 40px; text-align: center; border-width: 1px; border-style: solid; margin: 0; padding: 2px; font-weight: bold; font-size: 12px; } .calendar-menu-prev, .calendar-menu-next { display: inline-block; width: 21px; height: 21px; vertical-align: top; cursor: pointer; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .calendar-menu-prev { margin-right: 10px; background: url('images/calendar_arrows.png') no-repeat 2px 2px; } .calendar-menu-next { margin-left: 10px; background: url('images/calendar_arrows.png') no-repeat -45px 2px; } .calendar-menu-month { text-align: center; cursor: pointer; font-weight: bold; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .calendar-body th, .calendar-menu-month { color: #919191; } .calendar-day { color: #444; } .calendar-sunday { color: #CC2222; } .calendar-saturday { color: #00ee00; } .calendar-today { color: #0000ff; } .calendar-menu-year { border-color: #ddd; } .calendar { border-color: #ddd; } .calendar-header { background: #ffffff; } .calendar-body, .calendar-menu { background: #fff; } .calendar-body th { background: #fff; padding: 2px 0; } .calendar-hover, .calendar-nav-hover, .calendar-menu-hover { background-color: #E6E6E6; color: #444; } .calendar-hover { border: 1px solid #ddd; padding: 0; } .calendar-selected { background-color: #CCE6FF; color: #000; border: 1px solid #99cdff; padding: 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/combo.css ================================================ .combo { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .combo .combo-text { font-size: 12px; border: 0px; margin: 0; padding: 0px 2px; vertical-align: baseline; } .combo-arrow { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .combo-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .combo-panel { overflow: auto; } .combo-arrow { background: url('images/combo_arrow.png') no-repeat center center; } .combo-panel { background-color: #fff; } .combo { border-color: #ddd; background-color: #fff; } .combo-arrow { background-color: #ffffff; } .combo-arrow-hover { background-color: #E6E6E6; } .combo-arrow:hover { background-color: #E6E6E6; } .combo .textbox-icon-disabled:hover { cursor: default; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/combobox.css ================================================ .combobox-item, .combobox-group { font-size: 12px; padding: 3px; padding-right: 0px; } .combobox-item-disabled { opacity: 0.5; filter: alpha(opacity=50); } .combobox-gitem { padding-left: 10px; } .combobox-group { font-weight: bold; } .combobox-item-hover { background-color: #E6E6E6; color: #444; } .combobox-item-selected { background-color: #CCE6FF; color: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/datagrid.css ================================================ .datagrid .panel-body { overflow: hidden; position: relative; } .datagrid-view { position: relative; overflow: hidden; } .datagrid-view1, .datagrid-view2 { position: absolute; overflow: hidden; top: 0; } .datagrid-view1 { left: 0; } .datagrid-view2 { right: 0; } .datagrid-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.3; filter: alpha(opacity=30); display: none; } .datagrid-mask-msg { position: absolute; top: 50%; margin-top: -20px; padding: 10px 5px 10px 30px; width: auto; height: 16px; border-width: 2px; border-style: solid; display: none; } .datagrid-sort-icon { padding: 0; } .datagrid-toolbar { height: auto; padding: 1px 2px; border-width: 0 0 1px 0; border-style: solid; } .datagrid-btn-separator { float: left; height: 24px; border-left: 1px solid #ddd; border-right: 1px solid #fff; margin: 2px 1px; } .datagrid .datagrid-pager { display: block; margin: 0; border-width: 1px 0 0 0; border-style: solid; } .datagrid .datagrid-pager-top { border-width: 0 0 1px 0; } .datagrid-header { overflow: hidden; cursor: default; border-width: 0 0 1px 0; border-style: solid; } .datagrid-header-inner { float: left; width: 10000px; } .datagrid-header-row, .datagrid-row { height: 25px; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-width: 0 1px 1px 0; border-style: dotted; margin: 0; padding: 0; } .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber { margin: 0; padding: 0 4px; white-space: nowrap; word-wrap: normal; overflow: hidden; height: 18px; line-height: 18px; font-size: 12px; } .datagrid-header .datagrid-cell { height: auto; } .datagrid-header .datagrid-cell span { font-size: 12px; } .datagrid-cell-group { text-align: center; } .datagrid-header-rownumber, .datagrid-cell-rownumber { width: 25px; text-align: center; margin: 0; padding: 0; } .datagrid-body { margin: 0; padding: 0; overflow: auto; zoom: 1; } .datagrid-view1 .datagrid-body-inner { padding-bottom: 20px; } .datagrid-view1 .datagrid-body { overflow: hidden; } .datagrid-footer { overflow: hidden; } .datagrid-footer-inner { border-width: 1px 0 0 0; border-style: solid; width: 10000px; float: left; } .datagrid-row-editing .datagrid-cell { height: auto; } .datagrid-header-check, .datagrid-cell-check { padding: 0; width: 27px; height: 18px; font-size: 1px; text-align: center; overflow: hidden; } .datagrid-header-check input, .datagrid-cell-check input { margin: 0; padding: 0; width: 15px; height: 18px; } .datagrid-resize-proxy { position: absolute; width: 1px; height: 10000px; top: 0; cursor: e-resize; display: none; } .datagrid-body .datagrid-editable { margin: 0; padding: 0; } .datagrid-body .datagrid-editable table { width: 100%; height: 100%; } .datagrid-body .datagrid-editable td { border: 0; margin: 0; padding: 0; } .datagrid-view .datagrid-editable-input { margin: 0; padding: 2px 4px; border: 1px solid #ddd; font-size: 12px; outline-style: none; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .datagrid-sort-desc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat -16px center; } .datagrid-sort-asc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat 0px center; } .datagrid-row-collapse { background: url('images/datagrid_icons.png') no-repeat -48px center; } .datagrid-row-expand { background: url('images/datagrid_icons.png') no-repeat -32px center; } .datagrid-mask-msg { background: #fff url('images/loading.gif') no-repeat scroll 5px center; } .datagrid-header, .datagrid-td-rownumber { background-color: #ffffff; } .datagrid-cell-rownumber { color: #444; } .datagrid-resize-proxy { background: #b3b3b3; } .datagrid-mask { background: #eee; } .datagrid-mask-msg { border-color: #ddd; } .datagrid-toolbar, .datagrid-pager { background: #fff; } .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner { border-color: #ddd; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-color: #ddd; } .datagrid-htable, .datagrid-btable, .datagrid-ftable { color: #444; border-collapse: separate; } .datagrid-row-alt { background: #f5f5f5; } .datagrid-row-over, .datagrid-header td.datagrid-header-over { background: #E6E6E6; color: #444; cursor: default; } .datagrid-row-selected { background: #CCE6FF; color: #000; } .datagrid-row-editing .textbox, .datagrid-row-editing .textbox-text { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/datebox.css ================================================ .datebox-calendar-inner { height: 180px; } .datebox-button { height: 18px; padding: 2px 5px; text-align: center; } .datebox-button a { font-size: 12px; font-weight: bold; text-decoration: none; opacity: 0.6; filter: alpha(opacity=60); } .datebox-button a:hover { opacity: 1.0; filter: alpha(opacity=100); } .datebox-current, .datebox-close { float: left; } .datebox-close { float: right; } .datebox .combo-arrow { background-image: url('images/datebox_arrow.png'); background-position: center center; } .datebox-button { background-color: #fff; } .datebox-button a { color: #777; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/dialog.css ================================================ .dialog-content { overflow: auto; } .dialog-toolbar { padding: 2px 5px; } .dialog-tool-separator { float: left; height: 24px; border-left: 1px solid #ddd; border-right: 1px solid #fff; margin: 2px 1px; } .dialog-button { padding: 5px; text-align: right; } .dialog-button .l-btn { margin-left: 5px; } .dialog-toolbar, .dialog-button { background: #fff; border-width: 1px; border-style: solid; } .dialog-toolbar { border-color: #ddd #ddd #ddd #ddd; } .dialog-button { border-color: #ddd #ddd #ddd #ddd; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/easyui.css ================================================ .panel { overflow: hidden; text-align: left; margin: 0; border: 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .panel-header, .panel-body { border-width: 1px; border-style: solid; } .panel-header { padding: 5px; position: relative; } .panel-title { background: url('images/blank.gif') no-repeat; } .panel-header-noborder { border-width: 0 0 1px 0; } .panel-body { overflow: auto; border-top-width: 0; padding: 0; } .panel-body-noheader { border-top-width: 1px; } .panel-body-noborder { border-width: 0px; } .panel-body-nobottom { border-bottom-width: 0; } .panel-with-icon { padding-left: 18px; } .panel-icon, .panel-tool { position: absolute; top: 50%; margin-top: -8px; height: 16px; overflow: hidden; } .panel-icon { left: 5px; width: 16px; } .panel-tool { right: 5px; width: auto; } .panel-tool a { display: inline-block; width: 16px; height: 16px; opacity: 0.6; filter: alpha(opacity=60); margin: 0 0 0 2px; vertical-align: top; } .panel-tool a:hover { opacity: 1; filter: alpha(opacity=100); background-color: #E6E6E6; -moz-border-radius: -2px -2px -2px -2px; -webkit-border-radius: -2px -2px -2px -2px; border-radius: -2px -2px -2px -2px; } .panel-loading { padding: 11px 0px 10px 30px; } .panel-noscroll { overflow: hidden; } .panel-fit, .panel-fit body { height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .panel-loading { background: url('images/loading.gif') no-repeat 10px 10px; } .panel-tool-close { background: url('images/panel_tools.png') no-repeat -16px 0px; } .panel-tool-min { background: url('images/panel_tools.png') no-repeat 0px 0px; } .panel-tool-max { background: url('images/panel_tools.png') no-repeat 0px -16px; } .panel-tool-restore { background: url('images/panel_tools.png') no-repeat -16px -16px; } .panel-tool-collapse { background: url('images/panel_tools.png') no-repeat -32px 0; } .panel-tool-expand { background: url('images/panel_tools.png') no-repeat -32px -16px; } .panel-header, .panel-body { border-color: #ddd; } .panel-header { background-color: #ffffff; } .panel-body { background-color: #fff; color: #444; font-size: 12px; } .panel-title { font-size: 12px; font-weight: bold; color: #777; height: 16px; line-height: 16px; } .panel-footer { border: 1px solid #ddd; overflow: hidden; background: #fff; } .panel-footer-noborder { border-width: 1px 0 0 0; } .accordion { overflow: hidden; border-width: 1px; border-style: solid; } .accordion .accordion-header { border-width: 0 0 1px; cursor: pointer; } .accordion .accordion-body { border-width: 0 0 1px; } .accordion-noborder { border-width: 0; } .accordion-noborder .accordion-header { border-width: 0 0 1px; } .accordion-noborder .accordion-body { border-width: 0 0 1px; } .accordion-collapse { background: url('images/accordion_arrows.png') no-repeat 0 0; } .accordion-expand { background: url('images/accordion_arrows.png') no-repeat -16px 0; } .accordion { background: #fff; border-color: #ddd; } .accordion .accordion-header { background: #ffffff; filter: none; } .accordion .accordion-header-selected { background: #CCE6FF; } .accordion .accordion-header-selected .panel-title { color: #000; } .window { overflow: hidden; padding: 5px; border-width: 1px; border-style: solid; } .window .window-header { background: transparent; padding: 0px 0px 6px 0px; } .window .window-body { border-width: 1px; border-style: solid; border-top-width: 0px; } .window .window-body-noheader { border-top-width: 1px; } .window .panel-body-nobottom { border-bottom-width: 0; } .window .window-header .panel-icon, .window .window-header .panel-tool { top: 50%; margin-top: -11px; } .window .window-header .panel-icon { left: 1px; } .window .window-header .panel-tool { right: 1px; } .window .window-header .panel-with-icon { padding-left: 18px; } .window-proxy { position: absolute; overflow: hidden; } .window-proxy-mask { position: absolute; filter: alpha(opacity=5); opacity: 0.05; } .window-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: alpha(opacity=40); opacity: 0.40; font-size: 1px; overflow: hidden; } .window, .window-shadow { position: absolute; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .window-shadow { background: #eee; -moz-box-shadow: 2px 2px 3px #ededed; -webkit-box-shadow: 2px 2px 3px #ededed; box-shadow: 2px 2px 3px #ededed; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .window, .window .window-body { border-color: #ddd; } .window { background-color: #ffffff; } .window-proxy { border: 1px dashed #ddd; } .window-proxy-mask, .window-mask { background: #eee; } .window .panel-footer { border: 1px solid #ddd; position: relative; top: -1px; } .dialog-content { overflow: auto; } .dialog-toolbar { padding: 2px 5px; } .dialog-tool-separator { float: left; height: 24px; border-left: 1px solid #ddd; border-right: 1px solid #fff; margin: 2px 1px; } .dialog-button { padding: 5px; text-align: right; } .dialog-button .l-btn { margin-left: 5px; } .dialog-toolbar, .dialog-button { background: #fff; border-width: 1px; border-style: solid; } .dialog-toolbar { border-color: #ddd #ddd #ddd #ddd; } .dialog-button { border-color: #ddd #ddd #ddd #ddd; } .l-btn { text-decoration: none; display: inline-block; overflow: hidden; margin: 0; padding: 0; cursor: pointer; outline: none; text-align: center; vertical-align: middle; } .l-btn-plain { border: 0; padding: 1px; } .l-btn-left { display: inline-block; position: relative; overflow: hidden; margin: 0; padding: 0; vertical-align: top; } .l-btn-text { display: inline-block; vertical-align: top; width: auto; line-height: 24px; font-size: 12px; padding: 0; margin: 0 4px; } .l-btn-icon { display: inline-block; width: 16px; height: 16px; line-height: 16px; position: absolute; top: 50%; margin-top: -8px; font-size: 1px; } .l-btn span span .l-btn-empty { display: inline-block; margin: 0; width: 16px; height: 24px; font-size: 1px; vertical-align: top; } .l-btn span .l-btn-icon-left { padding: 0 0 0 20px; background-position: left center; } .l-btn span .l-btn-icon-right { padding: 0 20px 0 0; background-position: right center; } .l-btn-icon-left .l-btn-text { margin: 0 4px 0 24px; } .l-btn-icon-left .l-btn-icon { left: 4px; } .l-btn-icon-right .l-btn-text { margin: 0 24px 0 4px; } .l-btn-icon-right .l-btn-icon { right: 4px; } .l-btn-icon-top .l-btn-text { margin: 20px 4px 0 4px; } .l-btn-icon-top .l-btn-icon { top: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-icon-bottom .l-btn-text { margin: 0 4px 20px 4px; } .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-left .l-btn-empty { margin: 0 4px; width: 16px; } .l-btn-plain:hover { padding: 0; } .l-btn-focus { outline: #0000FF dotted thin; } .l-btn-large .l-btn-text { line-height: 40px; } .l-btn-large .l-btn-icon { width: 32px; height: 32px; line-height: 32px; margin-top: -16px; } .l-btn-large .l-btn-icon-left .l-btn-text { margin-left: 40px; } .l-btn-large .l-btn-icon-right .l-btn-text { margin-right: 40px; } .l-btn-large .l-btn-icon-top .l-btn-text { margin-top: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-top .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-bottom .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-left .l-btn-empty { margin: 0 4px; width: 32px; } .l-btn { color: #777; background: #ffffff; background-repeat: repeat-x; border: 1px solid #dddddd; background: -webkit-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(top,#ffffff 0,#ffffff 100%); background: linear-gradient(to bottom,#ffffff 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=0); -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .l-btn:hover { background: #E6E6E6; color: #444; border: 1px solid #ddd; filter: none; } .l-btn-plain { background: transparent; border: 0; filter: none; } .l-btn-plain:hover { background: #E6E6E6; color: #444; border: 1px solid #ddd; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .l-btn-disabled, .l-btn-disabled:hover { opacity: 0.5; cursor: default; background: #ffffff; color: #777; background: -webkit-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(top,#ffffff 0,#ffffff 100%); background: linear-gradient(to bottom,#ffffff 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=0); } .l-btn-disabled .l-btn-text, .l-btn-disabled .l-btn-icon { filter: alpha(opacity=50); } .l-btn-plain-disabled, .l-btn-plain-disabled:hover { background: transparent; filter: alpha(opacity=50); } .l-btn-selected, .l-btn-selected:hover { background: #ddd; filter: none; } .l-btn-plain-selected, .l-btn-plain-selected:hover { background: #ddd; } .textbox { position: relative; border: 1px solid #ddd; background-color: #fff; vertical-align: middle; display: inline-block; overflow: hidden; white-space: nowrap; margin: 0; padding: 0; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .textbox .textbox-text { font-size: 12px; border: 0; margin: 0; padding: 4px; white-space: normal; vertical-align: top; outline-style: none; resize: none; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .textbox .textbox-prompt { font-size: 12px; color: #aaa; } .textbox-button, .textbox-button:hover { position: absolute; top: 0; padding: 0; vertical-align: top; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .textbox-button-right, .textbox-button-right:hover { border-width: 0 0 0 1px; } .textbox-button-left, .textbox-button-left:hover { border-width: 0 1px 0 0; } .textbox-addon { position: absolute; top: 0; } .textbox-icon { display: inline-block; width: 18px; height: 20px; overflow: hidden; vertical-align: top; background-position: center center; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); text-decoration: none; outline-style: none; } .textbox-icon-disabled, .textbox-icon-readonly { cursor: default; } .textbox-icon:hover { opacity: 1.0; filter: alpha(opacity=100); } .textbox-icon-disabled:hover { opacity: 0.6; filter: alpha(opacity=60); } .textbox-focused { -moz-box-shadow: 0 0 3px 0 #ddd; -webkit-box-shadow: 0 0 3px 0 #ddd; box-shadow: 0 0 3px 0 #ddd; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .filebox .textbox-value { vertical-align: top; position: absolute; top: 0; left: -5000px; } .combo { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .combo .combo-text { font-size: 12px; border: 0px; margin: 0; padding: 0px 2px; vertical-align: baseline; } .combo-arrow { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .combo-arrow-hover { opacity: 1.0; filter: alpha(opacity=100); } .combo-panel { overflow: auto; } .combo-arrow { background: url('images/combo_arrow.png') no-repeat center center; } .combo-panel { background-color: #fff; } .combo { border-color: #ddd; background-color: #fff; } .combo-arrow { background-color: #ffffff; } .combo-arrow-hover { background-color: #E6E6E6; } .combo-arrow:hover { background-color: #E6E6E6; } .combo .textbox-icon-disabled:hover { cursor: default; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .combobox-item, .combobox-group { font-size: 12px; padding: 3px; padding-right: 0px; } .combobox-item-disabled { opacity: 0.5; filter: alpha(opacity=50); } .combobox-gitem { padding-left: 10px; } .combobox-group { font-weight: bold; } .combobox-item-hover { background-color: #E6E6E6; color: #444; } .combobox-item-selected { background-color: #CCE6FF; color: #000; } .layout { position: relative; overflow: hidden; margin: 0; padding: 0; z-index: 0; } .layout-panel { position: absolute; overflow: hidden; } .layout-panel-east, .layout-panel-west { z-index: 2; } .layout-panel-north, .layout-panel-south { z-index: 3; } .layout-expand { position: absolute; padding: 0px; font-size: 1px; cursor: pointer; z-index: 1; } .layout-expand .panel-header, .layout-expand .panel-body { background: transparent; filter: none; overflow: hidden; } .layout-expand .panel-header { border-bottom-width: 0px; } .layout-split-proxy-h, .layout-split-proxy-v { position: absolute; font-size: 1px; display: none; z-index: 5; } .layout-split-proxy-h { width: 5px; cursor: e-resize; } .layout-split-proxy-v { height: 5px; cursor: n-resize; } .layout-mask { position: absolute; background: #fafafa; filter: alpha(opacity=10); opacity: 0.10; z-index: 4; } .layout-button-up { background: url('images/layout_arrows.png') no-repeat -16px -16px; } .layout-button-down { background: url('images/layout_arrows.png') no-repeat -16px 0; } .layout-button-left { background: url('images/layout_arrows.png') no-repeat 0 0; } .layout-button-right { background: url('images/layout_arrows.png') no-repeat 0 -16px; } .layout-split-proxy-h, .layout-split-proxy-v { background-color: #b3b3b3; } .layout-split-north { border-bottom: 5px solid #fff; } .layout-split-south { border-top: 5px solid #fff; } .layout-split-east { border-left: 5px solid #fff; } .layout-split-west { border-right: 5px solid #fff; } .layout-expand { background-color: #ffffff; } .layout-expand-over { background-color: #ffffff; } .tabs-container { overflow: hidden; } .tabs-header { border-width: 1px; border-style: solid; border-bottom-width: 0; position: relative; padding: 0; padding-top: 2px; overflow: hidden; } .tabs-header-plain { border: 0; background: transparent; } .tabs-scroller-left, .tabs-scroller-right { position: absolute; top: auto; bottom: 0; width: 18px; font-size: 1px; display: none; cursor: pointer; border-width: 1px; border-style: solid; } .tabs-scroller-left { left: 0; } .tabs-scroller-right { right: 0; } .tabs-tool { position: absolute; bottom: 0; padding: 1px; overflow: hidden; border-width: 1px; border-style: solid; } .tabs-header-plain .tabs-tool { padding: 0 1px; } .tabs-wrap { position: relative; left: 0; overflow: hidden; width: 100%; margin: 0; padding: 0; } .tabs-scrolling { margin-left: 18px; margin-right: 18px; } .tabs-disabled { opacity: 0.3; filter: alpha(opacity=30); } .tabs { list-style-type: none; height: 26px; margin: 0px; padding: 0px; padding-left: 4px; width: 50000px; border-style: solid; border-width: 0 0 1px 0; } .tabs li { float: left; display: inline-block; margin: 0 4px -1px 0; padding: 0; position: relative; border: 0; } .tabs li a.tabs-inner { display: inline-block; text-decoration: none; margin: 0; padding: 0 10px; height: 25px; line-height: 25px; text-align: center; white-space: nowrap; border-width: 1px; border-style: solid; -moz-border-radius: 0px 0px 0 0; -webkit-border-radius: 0px 0px 0 0; border-radius: 0px 0px 0 0; } .tabs li.tabs-selected a.tabs-inner { font-weight: bold; outline: none; } .tabs li.tabs-selected a:hover.tabs-inner { cursor: default; pointer: default; } .tabs li a.tabs-close, .tabs-p-tool { position: absolute; font-size: 1px; display: block; height: 12px; padding: 0; top: 50%; margin-top: -6px; overflow: hidden; } .tabs li a.tabs-close { width: 12px; right: 5px; opacity: 0.6; filter: alpha(opacity=60); } .tabs-p-tool { right: 16px; } .tabs-p-tool a { display: inline-block; font-size: 1px; width: 12px; height: 12px; margin: 0; opacity: 0.6; filter: alpha(opacity=60); } .tabs li a:hover.tabs-close, .tabs-p-tool a:hover { opacity: 1; filter: alpha(opacity=100); cursor: hand; cursor: pointer; } .tabs-with-icon { padding-left: 18px; } .tabs-icon { position: absolute; width: 16px; height: 16px; left: 10px; top: 50%; margin-top: -8px; } .tabs-title { font-size: 12px; } .tabs-closable { padding-right: 8px; } .tabs-panels { margin: 0px; padding: 0px; border-width: 1px; border-style: solid; border-top-width: 0; overflow: hidden; } .tabs-header-bottom { border-width: 0 1px 1px 1px; padding: 0 0 2px 0; } .tabs-header-bottom .tabs { border-width: 1px 0 0 0; } .tabs-header-bottom .tabs li { margin: -1px 4px 0 0; } .tabs-header-bottom .tabs li a.tabs-inner { -moz-border-radius: 0 0 0px 0px; -webkit-border-radius: 0 0 0px 0px; border-radius: 0 0 0px 0px; } .tabs-header-bottom .tabs-tool { top: 0; } .tabs-header-bottom .tabs-scroller-left, .tabs-header-bottom .tabs-scroller-right { top: 0; bottom: auto; } .tabs-panels-top { border-width: 1px 1px 0 1px; } .tabs-header-left { float: left; border-width: 1px 0 1px 1px; padding: 0; } .tabs-header-right { float: right; border-width: 1px 1px 1px 0; padding: 0; } .tabs-header-left .tabs-wrap, .tabs-header-right .tabs-wrap { height: 100%; } .tabs-header-left .tabs { height: 100%; padding: 4px 0 0 4px; border-width: 0 1px 0 0; } .tabs-header-right .tabs { height: 100%; padding: 4px 4px 0 0; border-width: 0 0 0 1px; } .tabs-header-left .tabs li, .tabs-header-right .tabs li { display: block; width: 100%; position: relative; } .tabs-header-left .tabs li { left: auto; right: 0; margin: 0 -1px 4px 0; float: right; } .tabs-header-right .tabs li { left: 0; right: auto; margin: 0 0 4px -1px; float: left; } .tabs-header-left .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0px 0 0 0px; -webkit-border-radius: 0px 0 0 0px; border-radius: 0px 0 0 0px; } .tabs-header-right .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0 0px 0px 0; -webkit-border-radius: 0 0px 0px 0; border-radius: 0 0px 0px 0; } .tabs-panels-right { float: right; border-width: 1px 1px 1px 0; } .tabs-panels-left { float: left; border-width: 1px 0 1px 1px; } .tabs-header-noborder, .tabs-panels-noborder { border: 0px; } .tabs-header-plain { border: 0px; background: transparent; } .tabs-scroller-left { background: #ffffff url('images/tabs_icons.png') no-repeat 1px center; } .tabs-scroller-right { background: #ffffff url('images/tabs_icons.png') no-repeat -15px center; } .tabs li a.tabs-close { background: url('images/tabs_icons.png') no-repeat -34px center; } .tabs li a.tabs-inner:hover { background: #E6E6E6; color: #444; filter: none; } .tabs li.tabs-selected a.tabs-inner { background-color: #fff; color: #777; } .tabs li a.tabs-inner { color: #777; background-color: #ffffff; } .tabs-header, .tabs-tool { background-color: #ffffff; } .tabs-header-plain { background: transparent; } .tabs-header, .tabs-scroller-left, .tabs-scroller-right, .tabs-tool, .tabs, .tabs-panels, .tabs li a.tabs-inner, .tabs li.tabs-selected a.tabs-inner, .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner, .tabs-header-left .tabs li.tabs-selected a.tabs-inner, .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-color: #ddd; } .tabs-p-tool a:hover, .tabs li a:hover.tabs-close, .tabs-scroller-over { background-color: #E6E6E6; } .tabs li.tabs-selected a.tabs-inner { border-bottom: 1px solid #fff; } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { border-top: 1px solid #fff; } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { border-right: 1px solid #fff; } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-left: 1px solid #fff; } .datagrid .panel-body { overflow: hidden; position: relative; } .datagrid-view { position: relative; overflow: hidden; } .datagrid-view1, .datagrid-view2 { position: absolute; overflow: hidden; top: 0; } .datagrid-view1 { left: 0; } .datagrid-view2 { right: 0; } .datagrid-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.3; filter: alpha(opacity=30); display: none; } .datagrid-mask-msg { position: absolute; top: 50%; margin-top: -20px; padding: 10px 5px 10px 30px; width: auto; height: 16px; border-width: 2px; border-style: solid; display: none; } .datagrid-sort-icon { padding: 0; } .datagrid-toolbar { height: auto; padding: 1px 2px; border-width: 0 0 1px 0; border-style: solid; } .datagrid-btn-separator { float: left; height: 24px; border-left: 1px solid #ddd; border-right: 1px solid #fff; margin: 2px 1px; } .datagrid .datagrid-pager { display: block; margin: 0; border-width: 1px 0 0 0; border-style: solid; } .datagrid .datagrid-pager-top { border-width: 0 0 1px 0; } .datagrid-header { overflow: hidden; cursor: default; border-width: 0 0 1px 0; border-style: solid; } .datagrid-header-inner { float: left; width: 10000px; } .datagrid-header-row, .datagrid-row { height: 25px; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-width: 0 1px 1px 0; border-style: dotted; margin: 0; padding: 0; } .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber { margin: 0; padding: 0 4px; white-space: nowrap; word-wrap: normal; overflow: hidden; height: 18px; line-height: 18px; font-size: 12px; } .datagrid-header .datagrid-cell { height: auto; } .datagrid-header .datagrid-cell span { font-size: 12px; } .datagrid-cell-group { text-align: center; } .datagrid-header-rownumber, .datagrid-cell-rownumber { width: 25px; text-align: center; margin: 0; padding: 0; } .datagrid-body { margin: 0; padding: 0; overflow: auto; zoom: 1; } .datagrid-view1 .datagrid-body-inner { padding-bottom: 20px; } .datagrid-view1 .datagrid-body { overflow: hidden; } .datagrid-footer { overflow: hidden; } .datagrid-footer-inner { border-width: 1px 0 0 0; border-style: solid; width: 10000px; float: left; } .datagrid-row-editing .datagrid-cell { height: auto; } .datagrid-header-check, .datagrid-cell-check { padding: 0; width: 27px; height: 18px; font-size: 1px; text-align: center; overflow: hidden; } .datagrid-header-check input, .datagrid-cell-check input { margin: 0; padding: 0; width: 15px; height: 18px; } .datagrid-resize-proxy { position: absolute; width: 1px; height: 10000px; top: 0; cursor: e-resize; display: none; } .datagrid-body .datagrid-editable { margin: 0; padding: 0; } .datagrid-body .datagrid-editable table { width: 100%; height: 100%; } .datagrid-body .datagrid-editable td { border: 0; margin: 0; padding: 0; } .datagrid-view .datagrid-editable-input { margin: 0; padding: 2px 4px; border: 1px solid #ddd; font-size: 12px; outline-style: none; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .datagrid-sort-desc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat -16px center; } .datagrid-sort-asc .datagrid-sort-icon { padding: 0 13px 0 0; background: url('images/datagrid_icons.png') no-repeat 0px center; } .datagrid-row-collapse { background: url('images/datagrid_icons.png') no-repeat -48px center; } .datagrid-row-expand { background: url('images/datagrid_icons.png') no-repeat -32px center; } .datagrid-mask-msg { background: #fff url('images/loading.gif') no-repeat scroll 5px center; } .datagrid-header, .datagrid-td-rownumber { background-color: #ffffff; } .datagrid-cell-rownumber { color: #444; } .datagrid-resize-proxy { background: #b3b3b3; } .datagrid-mask { background: #eee; } .datagrid-mask-msg { border-color: #ddd; } .datagrid-toolbar, .datagrid-pager { background: #fff; } .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner { border-color: #ddd; } .datagrid-header td, .datagrid-body td, .datagrid-footer td { border-color: #ddd; } .datagrid-htable, .datagrid-btable, .datagrid-ftable { color: #444; border-collapse: separate; } .datagrid-row-alt { background: #f5f5f5; } .datagrid-row-over, .datagrid-header td.datagrid-header-over { background: #E6E6E6; color: #444; cursor: default; } .datagrid-row-selected { background: #CCE6FF; color: #000; } .datagrid-row-editing .textbox, .datagrid-row-editing .textbox-text { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .propertygrid .datagrid-view1 .datagrid-body td { padding-bottom: 1px; border-width: 0 1px 0 0; } .propertygrid .datagrid-group { height: 21px; overflow: hidden; border-width: 0 0 1px 0; border-style: solid; } .propertygrid .datagrid-group span { font-weight: bold; } .propertygrid .datagrid-view1 .datagrid-body td { border-color: #ddd; } .propertygrid .datagrid-view1 .datagrid-group { border-color: #ffffff; } .propertygrid .datagrid-view2 .datagrid-group { border-color: #ddd; } .propertygrid .datagrid-group, .propertygrid .datagrid-view1 .datagrid-body, .propertygrid .datagrid-view1 .datagrid-row-over, .propertygrid .datagrid-view1 .datagrid-row-selected { background: #ffffff; } .pagination { zoom: 1; } .pagination table { float: left; height: 30px; } .pagination td { border: 0; } .pagination-btn-separator { float: left; height: 24px; border-left: 1px solid #ddd; border-right: 1px solid #fff; margin: 3px 1px; } .pagination .pagination-num { border-width: 1px; border-style: solid; margin: 0 2px; padding: 2px; width: 2em; height: auto; } .pagination-page-list { margin: 0px 6px; padding: 1px 2px; width: auto; height: auto; border-width: 1px; border-style: solid; } .pagination-info { float: right; margin: 0 6px 0 0; padding: 0; height: 30px; line-height: 30px; font-size: 12px; } .pagination span { font-size: 12px; } .pagination-link .l-btn-text { width: 24px; text-align: center; margin: 0; } .pagination-first { background: url('images/pagination_icons.png') no-repeat 0 center; } .pagination-prev { background: url('images/pagination_icons.png') no-repeat -16px center; } .pagination-next { background: url('images/pagination_icons.png') no-repeat -32px center; } .pagination-last { background: url('images/pagination_icons.png') no-repeat -48px center; } .pagination-load { background: url('images/pagination_icons.png') no-repeat -64px center; } .pagination-loading { background: url('images/loading.gif') no-repeat center center; } .pagination-page-list, .pagination .pagination-num { border-color: #ddd; } .calendar { border-width: 1px; border-style: solid; padding: 1px; overflow: hidden; } .calendar table { table-layout: fixed; border-collapse: separate; font-size: 12px; width: 100%; height: 100%; } .calendar table td, .calendar table th { font-size: 12px; } .calendar-noborder { border: 0; } .calendar-header { position: relative; height: 22px; } .calendar-title { text-align: center; height: 22px; } .calendar-title span { position: relative; display: inline-block; top: 2px; padding: 0 3px; height: 18px; line-height: 18px; font-size: 12px; cursor: pointer; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .calendar-prevmonth, .calendar-nextmonth, .calendar-prevyear, .calendar-nextyear { position: absolute; top: 50%; margin-top: -7px; width: 14px; height: 14px; cursor: pointer; font-size: 1px; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .calendar-prevmonth { left: 20px; background: url('images/calendar_arrows.png') no-repeat -18px -2px; } .calendar-nextmonth { right: 20px; background: url('images/calendar_arrows.png') no-repeat -34px -2px; } .calendar-prevyear { left: 3px; background: url('images/calendar_arrows.png') no-repeat -1px -2px; } .calendar-nextyear { right: 3px; background: url('images/calendar_arrows.png') no-repeat -49px -2px; } .calendar-body { position: relative; } .calendar-body th, .calendar-body td { text-align: center; } .calendar-day { border: 0; padding: 1px; cursor: pointer; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .calendar-other-month { opacity: 0.3; filter: alpha(opacity=30); } .calendar-disabled { opacity: 0.6; filter: alpha(opacity=60); cursor: default; } .calendar-menu { position: absolute; top: 0; left: 0; width: 180px; height: 150px; padding: 5px; font-size: 12px; display: none; overflow: hidden; } .calendar-menu-year-inner { text-align: center; padding-bottom: 5px; } .calendar-menu-year { width: 40px; text-align: center; border-width: 1px; border-style: solid; margin: 0; padding: 2px; font-weight: bold; font-size: 12px; } .calendar-menu-prev, .calendar-menu-next { display: inline-block; width: 21px; height: 21px; vertical-align: top; cursor: pointer; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .calendar-menu-prev { margin-right: 10px; background: url('images/calendar_arrows.png') no-repeat 2px 2px; } .calendar-menu-next { margin-left: 10px; background: url('images/calendar_arrows.png') no-repeat -45px 2px; } .calendar-menu-month { text-align: center; cursor: pointer; font-weight: bold; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .calendar-body th, .calendar-menu-month { color: #919191; } .calendar-day { color: #444; } .calendar-sunday { color: #CC2222; } .calendar-saturday { color: #00ee00; } .calendar-today { color: #0000ff; } .calendar-menu-year { border-color: #ddd; } .calendar { border-color: #ddd; } .calendar-header { background: #ffffff; } .calendar-body, .calendar-menu { background: #fff; } .calendar-body th { background: #fff; padding: 2px 0; } .calendar-hover, .calendar-nav-hover, .calendar-menu-hover { background-color: #E6E6E6; color: #444; } .calendar-hover { border: 1px solid #ddd; padding: 0; } .calendar-selected { background-color: #CCE6FF; color: #000; border: 1px solid #99cdff; padding: 0; } .datebox-calendar-inner { height: 180px; } .datebox-button { height: 18px; padding: 2px 5px; text-align: center; } .datebox-button a { font-size: 12px; font-weight: bold; text-decoration: none; opacity: 0.6; filter: alpha(opacity=60); } .datebox-button a:hover { opacity: 1.0; filter: alpha(opacity=100); } .datebox-current, .datebox-close { float: left; } .datebox-close { float: right; } .datebox .combo-arrow { background-image: url('images/datebox_arrow.png'); background-position: center center; } .datebox-button { background-color: #fff; } .datebox-button a { color: #777; } .numberbox { border: 1px solid #ddd; margin: 0; padding: 0 2px; vertical-align: middle; } .textbox { padding: 0; } .spinner { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .spinner .spinner-text { font-size: 12px; border: 0px; margin: 0; padding: 0 2px; vertical-align: baseline; } .spinner-arrow { background-color: #ffffff; display: inline-block; overflow: hidden; vertical-align: top; margin: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); width: 18px; } .spinner-arrow-up, .spinner-arrow-down { opacity: 0.6; filter: alpha(opacity=60); display: block; font-size: 1px; width: 18px; height: 10px; width: 100%; height: 50%; outline-style: none; } .spinner-arrow-hover { background-color: #E6E6E6; opacity: 1.0; filter: alpha(opacity=100); } .spinner-arrow-up:hover, .spinner-arrow-down:hover { opacity: 1.0; filter: alpha(opacity=100); background-color: #E6E6E6; } .textbox-icon-disabled .spinner-arrow-up:hover, .textbox-icon-disabled .spinner-arrow-down:hover { opacity: 0.6; filter: alpha(opacity=60); background-color: #ffffff; cursor: default; } .spinner .textbox-icon-disabled { opacity: 0.6; filter: alpha(opacity=60); } .spinner-arrow-up { background: url('images/spinner_arrows.png') no-repeat 1px center; } .spinner-arrow-down { background: url('images/spinner_arrows.png') no-repeat -15px center; } .spinner { border-color: #ddd; } .progressbar { border-width: 1px; border-style: solid; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; overflow: hidden; position: relative; } .progressbar-text { text-align: center; position: absolute; } .progressbar-value { position: relative; overflow: hidden; width: 0; -moz-border-radius: 0px 0 0 0px; -webkit-border-radius: 0px 0 0 0px; border-radius: 0px 0 0 0px; } .progressbar { border-color: #ddd; } .progressbar-text { color: #444; font-size: 12px; } .progressbar-value .progressbar-text { background-color: #CCE6FF; color: #000; } .searchbox { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .searchbox .searchbox-text { font-size: 12px; border: 0; margin: 0; padding: 0 2px; vertical-align: top; } .searchbox .searchbox-prompt { font-size: 12px; color: #ccc; } .searchbox-button { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .searchbox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .searchbox .l-btn-plain { border: 0; padding: 0; vertical-align: top; opacity: 0.6; filter: alpha(opacity=60); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .l-btn-plain:hover { border: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox a.m-btn-plain-active { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .m-btn-active { border-width: 0 1px 0 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .textbox-button-right { border-width: 0 0 0 1px; } .searchbox .textbox-button-left { border-width: 0 1px 0 0; } .searchbox-button { background: url('images/searchbox_button.png') no-repeat center center; } .searchbox { border-color: #ddd; background-color: #fff; } .searchbox .l-btn-plain { background: #ffffff; } .searchbox .l-btn-plain-disabled, .searchbox .l-btn-plain-disabled:hover { opacity: 0.5; filter: alpha(opacity=50); } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } .slider-disabled { opacity: 0.5; filter: alpha(opacity=50); } .slider-h { height: 22px; } .slider-v { width: 22px; } .slider-inner { position: relative; height: 6px; top: 7px; border-width: 1px; border-style: solid; border-radius: 0px; } .slider-handle { position: absolute; display: block; outline: none; width: 20px; height: 20px; top: 50%; margin-top: -10px; margin-left: -10px; } .slider-tip { position: absolute; display: inline-block; line-height: 12px; font-size: 12px; white-space: nowrap; top: -22px; } .slider-rule { position: relative; top: 15px; } .slider-rule span { position: absolute; display: inline-block; font-size: 0; height: 5px; border-width: 0 0 0 1px; border-style: solid; } .slider-rulelabel { position: relative; top: 20px; } .slider-rulelabel span { position: absolute; display: inline-block; font-size: 12px; } .slider-v .slider-inner { width: 6px; left: 7px; top: 0; float: left; } .slider-v .slider-handle { left: 50%; margin-top: -10px; } .slider-v .slider-tip { left: -10px; margin-top: -6px; } .slider-v .slider-rule { float: left; top: 0; left: 16px; } .slider-v .slider-rule span { width: 5px; height: 'auto'; border-left: 0; border-width: 1px 0 0 0; border-style: solid; } .slider-v .slider-rulelabel { float: left; top: 0; left: 23px; } .slider-handle { background: url('images/slider_handle.png') no-repeat; } .slider-inner { border-color: #ddd; background: #ffffff; } .slider-rule span { border-color: #ddd; } .slider-rulelabel span { color: #444; } .menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; background: #eee; -moz-box-shadow: 2px 2px 3px #ededed; -webkit-box-shadow: 2px 2px 3px #ededed; box-shadow: 2px 2px 3px #ededed; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #ddd; border-right: 1px solid #fff; } .menu-sep { border-top: 1px solid #ddd; border-bottom: 1px solid #fff; } .menu { background-color: #ffffff; border-color: #ddd; color: #444; } .menu-content { background: #fff; } .menu-item { border-color: transparent; _border-color: #ffffff; } .menu-active { border-color: #ddd; color: #444; background: #E6E6E6; } .menu-active-disabled { border-color: transparent; background: transparent; color: #444; } .m-btn-downarrow, .s-btn-downarrow { display: inline-block; position: absolute; width: 16px; height: 16px; font-size: 1px; right: 0; top: 50%; margin-top: -8px; } .m-btn-active, .s-btn-active { background: #E6E6E6; color: #444; border: 1px solid #ddd; filter: none; } .m-btn-plain-active, .s-btn-plain-active { background: transparent; padding: 0; border-width: 1px; border-style: solid; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .m-btn .l-btn-left .l-btn-text { margin-right: 20px; } .m-btn .l-btn-icon-right .l-btn-text { margin-right: 40px; } .m-btn .l-btn-icon-right .l-btn-icon { right: 20px; } .m-btn .l-btn-icon-top .l-btn-text { margin-right: 4px; margin-bottom: 14px; } .m-btn .l-btn-icon-bottom .l-btn-text { margin-right: 4px; margin-bottom: 34px; } .m-btn .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 20px; } .m-btn .l-btn-icon-top .m-btn-downarrow, .m-btn .l-btn-icon-bottom .m-btn-downarrow { top: auto; bottom: 0px; left: 50%; margin-left: -8px; } .m-btn-line { display: inline-block; position: absolute; font-size: 1px; display: none; } .m-btn .l-btn-left .m-btn-line { right: 0; width: 16px; height: 500px; border-style: solid; border-color: #b3b3b3; border-width: 0 0 0 1px; } .m-btn .l-btn-icon-top .m-btn-line, .m-btn .l-btn-icon-bottom .m-btn-line { left: 0; bottom: 0; width: 500px; height: 16px; border-width: 1px 0 0 0; } .m-btn-large .l-btn-icon-right .l-btn-text { margin-right: 56px; } .m-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 50px; } .m-btn-downarrow, .s-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 0 center; } .m-btn-plain-active, .s-btn-plain-active { border-color: #ddd; background-color: #E6E6E6; color: #444; } .s-btn:hover .m-btn-line, .s-btn-active .m-btn-line, .s-btn-plain-active .m-btn-line { display: inline-block; } .l-btn:hover .s-btn-downarrow, .s-btn-active .s-btn-downarrow, .s-btn-plain-active .s-btn-downarrow { border-style: solid; border-color: #b3b3b3; border-width: 0 0 0 1px; } .messager-body { padding: 10px; overflow: hidden; } .messager-button { text-align: center; padding-top: 10px; } .messager-button .l-btn { width: 70px; } .messager-icon { float: left; width: 32px; height: 32px; margin: 0 10px 10px 0; } .messager-error { background: url('images/messager_icons.png') no-repeat scroll -64px 0; } .messager-info { background: url('images/messager_icons.png') no-repeat scroll 0 0; } .messager-question { background: url('images/messager_icons.png') no-repeat scroll -32px 0; } .messager-warning { background: url('images/messager_icons.png') no-repeat scroll -96px 0; } .messager-progress { padding: 10px; } .messager-p-msg { margin-bottom: 5px; } .messager-body .messager-input { width: 100%; padding: 1px 0; border: 1px solid #ddd; } .tree { margin: 0; padding: 0; list-style-type: none; } .tree li { white-space: nowrap; } .tree li ul { list-style-type: none; margin: 0; padding: 0; } .tree-node { height: 18px; white-space: nowrap; cursor: pointer; } .tree-hit { cursor: pointer; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; vertical-align: top; overflow: hidden; } .tree-expanded { background: url('images/tree_icons.png') no-repeat -18px 0px; } .tree-expanded-hover { background: url('images/tree_icons.png') no-repeat -50px 0px; } .tree-collapsed { background: url('images/tree_icons.png') no-repeat 0px 0px; } .tree-collapsed-hover { background: url('images/tree_icons.png') no-repeat -32px 0px; } .tree-lines .tree-expanded, .tree-lines .tree-root-first .tree-expanded { background: url('images/tree_icons.png') no-repeat -144px 0; } .tree-lines .tree-collapsed, .tree-lines .tree-root-first .tree-collapsed { background: url('images/tree_icons.png') no-repeat -128px 0; } .tree-lines .tree-node-last .tree-expanded, .tree-lines .tree-root-one .tree-expanded { background: url('images/tree_icons.png') no-repeat -80px 0; } .tree-lines .tree-node-last .tree-collapsed, .tree-lines .tree-root-one .tree-collapsed { background: url('images/tree_icons.png') no-repeat -64px 0; } .tree-line { background: url('images/tree_icons.png') no-repeat -176px 0; } .tree-join { background: url('images/tree_icons.png') no-repeat -192px 0; } .tree-joinbottom { background: url('images/tree_icons.png') no-repeat -160px 0; } .tree-folder { background: url('images/tree_icons.png') no-repeat -208px 0; } .tree-folder-open { background: url('images/tree_icons.png') no-repeat -224px 0; } .tree-file { background: url('images/tree_icons.png') no-repeat -240px 0; } .tree-loading { background: url('images/loading.gif') no-repeat center center; } .tree-checkbox0 { background: url('images/tree_icons.png') no-repeat -208px -18px; } .tree-checkbox1 { background: url('images/tree_icons.png') no-repeat -224px -18px; } .tree-checkbox2 { background: url('images/tree_icons.png') no-repeat -240px -18px; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: top; white-space: nowrap; padding: 0 2px; height: 18px; line-height: 18px; } .tree-node-proxy { font-size: 12px; line-height: 20px; padding: 0 2px 0 20px; border-width: 1px; border-style: solid; z-index: 9900000; } .tree-dnd-icon { display: inline-block; position: absolute; width: 16px; height: 18px; left: 2px; top: 50%; margin-top: -9px; } .tree-dnd-yes { background: url('images/tree_icons.png') no-repeat -256px 0; } .tree-dnd-no { background: url('images/tree_icons.png') no-repeat -256px -18px; } .tree-node-top { border-top: 1px dotted red; } .tree-node-bottom { border-bottom: 1px dotted red; } .tree-node-append .tree-title { border: 1px dotted red; } .tree-editor { border: 1px solid #ccc; font-size: 12px; height: 14px !important; height: 18px; line-height: 14px; padding: 1px 2px; width: 80px; position: absolute; top: 0; } .tree-node-proxy { background-color: #fff; color: #444; border-color: #ddd; } .tree-node-hover { background: #E6E6E6; color: #444; } .tree-node-selected { background: #CCE6FF; color: #000; } .validatebox-invalid { border-color: #ffa8a8; background-color: #fff3f3; color: #000; } .tooltip { position: absolute; display: none; z-index: 9900000; outline: none; opacity: 1; filter: alpha(opacity=100); padding: 5px; border-width: 1px; border-style: solid; border-radius: 5px; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .tooltip-content { font-size: 12px; } .tooltip-arrow-outer, .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border-style: solid; border-width: 6px; border-color: transparent; _border-color: tomato; _filter: chroma(color=tomato); } .tooltip-right .tooltip-arrow-outer { left: 0; top: 50%; margin: -6px 0 0 -13px; } .tooltip-right .tooltip-arrow { left: 0; top: 50%; margin: -6px 0 0 -12px; } .tooltip-left .tooltip-arrow-outer { right: 0; top: 50%; margin: -6px -13px 0 0; } .tooltip-left .tooltip-arrow { right: 0; top: 50%; margin: -6px -12px 0 0; } .tooltip-top .tooltip-arrow-outer { bottom: 0; left: 50%; margin: 0 0 -13px -6px; } .tooltip-top .tooltip-arrow { bottom: 0; left: 50%; margin: 0 0 -12px -6px; } .tooltip-bottom .tooltip-arrow-outer { top: 0; left: 50%; margin: -13px 0 0 -6px; } .tooltip-bottom .tooltip-arrow { top: 0; left: 50%; margin: -12px 0 0 -6px; } .tooltip { background-color: #fff; border-color: #ddd; color: #444; } .tooltip-right .tooltip-arrow-outer { border-right-color: #ddd; } .tooltip-right .tooltip-arrow { border-right-color: #fff; } .tooltip-left .tooltip-arrow-outer { border-left-color: #ddd; } .tooltip-left .tooltip-arrow { border-left-color: #fff; } .tooltip-top .tooltip-arrow-outer { border-top-color: #ddd; } .tooltip-top .tooltip-arrow { border-top-color: #fff; } .tooltip-bottom .tooltip-arrow-outer { border-bottom-color: #ddd; } .tooltip-bottom .tooltip-arrow { border-bottom-color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/filebox.css ================================================ .filebox .textbox-value { vertical-align: top; position: absolute; top: 0; left: -5000px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/layout.css ================================================ .layout { position: relative; overflow: hidden; margin: 0; padding: 0; z-index: 0; } .layout-panel { position: absolute; overflow: hidden; } .layout-panel-east, .layout-panel-west { z-index: 2; } .layout-panel-north, .layout-panel-south { z-index: 3; } .layout-expand { position: absolute; padding: 0px; font-size: 1px; cursor: pointer; z-index: 1; } .layout-expand .panel-header, .layout-expand .panel-body { background: transparent; filter: none; overflow: hidden; } .layout-expand .panel-header { border-bottom-width: 0px; } .layout-split-proxy-h, .layout-split-proxy-v { position: absolute; font-size: 1px; display: none; z-index: 5; } .layout-split-proxy-h { width: 5px; cursor: e-resize; } .layout-split-proxy-v { height: 5px; cursor: n-resize; } .layout-mask { position: absolute; background: #fafafa; filter: alpha(opacity=10); opacity: 0.10; z-index: 4; } .layout-button-up { background: url('images/layout_arrows.png') no-repeat -16px -16px; } .layout-button-down { background: url('images/layout_arrows.png') no-repeat -16px 0; } .layout-button-left { background: url('images/layout_arrows.png') no-repeat 0 0; } .layout-button-right { background: url('images/layout_arrows.png') no-repeat 0 -16px; } .layout-split-proxy-h, .layout-split-proxy-v { background-color: #b3b3b3; } .layout-split-north { border-bottom: 5px solid #fff; } .layout-split-south { border-top: 5px solid #fff; } .layout-split-east { border-left: 5px solid #fff; } .layout-split-west { border-right: 5px solid #fff; } .layout-expand { background-color: #ffffff; } .layout-expand-over { background-color: #ffffff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/linkbutton.css ================================================ .l-btn { text-decoration: none; display: inline-block; overflow: hidden; margin: 0; padding: 0; cursor: pointer; outline: none; text-align: center; vertical-align: middle; } .l-btn-plain { border: 0; padding: 1px; } .l-btn-left { display: inline-block; position: relative; overflow: hidden; margin: 0; padding: 0; vertical-align: top; } .l-btn-text { display: inline-block; vertical-align: top; width: auto; line-height: 24px; font-size: 12px; padding: 0; margin: 0 4px; } .l-btn-icon { display: inline-block; width: 16px; height: 16px; line-height: 16px; position: absolute; top: 50%; margin-top: -8px; font-size: 1px; } .l-btn span span .l-btn-empty { display: inline-block; margin: 0; width: 16px; height: 24px; font-size: 1px; vertical-align: top; } .l-btn span .l-btn-icon-left { padding: 0 0 0 20px; background-position: left center; } .l-btn span .l-btn-icon-right { padding: 0 20px 0 0; background-position: right center; } .l-btn-icon-left .l-btn-text { margin: 0 4px 0 24px; } .l-btn-icon-left .l-btn-icon { left: 4px; } .l-btn-icon-right .l-btn-text { margin: 0 24px 0 4px; } .l-btn-icon-right .l-btn-icon { right: 4px; } .l-btn-icon-top .l-btn-text { margin: 20px 4px 0 4px; } .l-btn-icon-top .l-btn-icon { top: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-icon-bottom .l-btn-text { margin: 0 4px 20px 4px; } .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 4px; left: 50%; margin: 0 0 0 -8px; } .l-btn-left .l-btn-empty { margin: 0 4px; width: 16px; } .l-btn-plain:hover { padding: 0; } .l-btn-focus { outline: #0000FF dotted thin; } .l-btn-large .l-btn-text { line-height: 40px; } .l-btn-large .l-btn-icon { width: 32px; height: 32px; line-height: 32px; margin-top: -16px; } .l-btn-large .l-btn-icon-left .l-btn-text { margin-left: 40px; } .l-btn-large .l-btn-icon-right .l-btn-text { margin-right: 40px; } .l-btn-large .l-btn-icon-top .l-btn-text { margin-top: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-top .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 36px; line-height: 24px; min-width: 32px; } .l-btn-large .l-btn-icon-bottom .l-btn-icon { margin: 0 0 0 -16px; } .l-btn-large .l-btn-left .l-btn-empty { margin: 0 4px; width: 32px; } .l-btn { color: #777; background: #ffffff; background-repeat: repeat-x; border: 1px solid #dddddd; background: -webkit-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(top,#ffffff 0,#ffffff 100%); background: linear-gradient(to bottom,#ffffff 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=0); -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .l-btn:hover { background: #E6E6E6; color: #444; border: 1px solid #ddd; filter: none; } .l-btn-plain { background: transparent; border: 0; filter: none; } .l-btn-plain:hover { background: #E6E6E6; color: #444; border: 1px solid #ddd; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .l-btn-disabled, .l-btn-disabled:hover { opacity: 0.5; cursor: default; background: #ffffff; color: #777; background: -webkit-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -moz-linear-gradient(top,#ffffff 0,#ffffff 100%); background: -o-linear-gradient(top,#ffffff 0,#ffffff 100%); background: linear-gradient(to bottom,#ffffff 0,#ffffff 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#ffffff,GradientType=0); } .l-btn-disabled .l-btn-text, .l-btn-disabled .l-btn-icon { filter: alpha(opacity=50); } .l-btn-plain-disabled, .l-btn-plain-disabled:hover { background: transparent; filter: alpha(opacity=50); } .l-btn-selected, .l-btn-selected:hover { background: #ddd; filter: none; } .l-btn-plain-selected, .l-btn-plain-selected:hover { background: #ddd; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/menu.css ================================================ .menu { position: absolute; margin: 0; padding: 2px; border-width: 1px; border-style: solid; overflow: hidden; } .menu-item { position: relative; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; cursor: pointer; border-width: 1px; border-style: solid; } .menu-text { height: 20px; line-height: 20px; float: left; padding-left: 28px; } .menu-icon { position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; margin-top: -8px; } .menu-rightarrow { position: absolute; width: 16px; height: 16px; right: 0; top: 50%; margin-top: -8px; } .menu-line { position: absolute; left: 26px; top: 0; height: 2000px; font-size: 1px; } .menu-sep { margin: 3px 0px 3px 25px; font-size: 1px; } .menu-active { -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .menu-item-disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: default; } .menu-text, .menu-text span { font-size: 12px; } .menu-shadow { position: absolute; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; background: #eee; -moz-box-shadow: 2px 2px 3px #ededed; -webkit-box-shadow: 2px 2px 3px #ededed; box-shadow: 2px 2px 3px #ededed; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .menu-rightarrow { background: url('images/menu_arrows.png') no-repeat -32px center; } .menu-line { border-left: 1px solid #ddd; border-right: 1px solid #fff; } .menu-sep { border-top: 1px solid #ddd; border-bottom: 1px solid #fff; } .menu { background-color: #ffffff; border-color: #ddd; color: #444; } .menu-content { background: #fff; } .menu-item { border-color: transparent; _border-color: #ffffff; } .menu-active { border-color: #ddd; color: #444; background: #E6E6E6; } .menu-active-disabled { border-color: transparent; background: transparent; color: #444; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/menubutton.css ================================================ .m-btn-downarrow, .s-btn-downarrow { display: inline-block; position: absolute; width: 16px; height: 16px; font-size: 1px; right: 0; top: 50%; margin-top: -8px; } .m-btn-active, .s-btn-active { background: #E6E6E6; color: #444; border: 1px solid #ddd; filter: none; } .m-btn-plain-active, .s-btn-plain-active { background: transparent; padding: 0; border-width: 1px; border-style: solid; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .m-btn .l-btn-left .l-btn-text { margin-right: 20px; } .m-btn .l-btn-icon-right .l-btn-text { margin-right: 40px; } .m-btn .l-btn-icon-right .l-btn-icon { right: 20px; } .m-btn .l-btn-icon-top .l-btn-text { margin-right: 4px; margin-bottom: 14px; } .m-btn .l-btn-icon-bottom .l-btn-text { margin-right: 4px; margin-bottom: 34px; } .m-btn .l-btn-icon-bottom .l-btn-icon { top: auto; bottom: 20px; } .m-btn .l-btn-icon-top .m-btn-downarrow, .m-btn .l-btn-icon-bottom .m-btn-downarrow { top: auto; bottom: 0px; left: 50%; margin-left: -8px; } .m-btn-line { display: inline-block; position: absolute; font-size: 1px; display: none; } .m-btn .l-btn-left .m-btn-line { right: 0; width: 16px; height: 500px; border-style: solid; border-color: #b3b3b3; border-width: 0 0 0 1px; } .m-btn .l-btn-icon-top .m-btn-line, .m-btn .l-btn-icon-bottom .m-btn-line { left: 0; bottom: 0; width: 500px; height: 16px; border-width: 1px 0 0 0; } .m-btn-large .l-btn-icon-right .l-btn-text { margin-right: 56px; } .m-btn-large .l-btn-icon-bottom .l-btn-text { margin-bottom: 50px; } .m-btn-downarrow, .s-btn-downarrow { background: url('images/menu_arrows.png') no-repeat 0 center; } .m-btn-plain-active, .s-btn-plain-active { border-color: #ddd; background-color: #E6E6E6; color: #444; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/messager.css ================================================ .messager-body { padding: 10px; overflow: hidden; } .messager-button { text-align: center; padding-top: 10px; } .messager-button .l-btn { width: 70px; } .messager-icon { float: left; width: 32px; height: 32px; margin: 0 10px 10px 0; } .messager-error { background: url('images/messager_icons.png') no-repeat scroll -64px 0; } .messager-info { background: url('images/messager_icons.png') no-repeat scroll 0 0; } .messager-question { background: url('images/messager_icons.png') no-repeat scroll -32px 0; } .messager-warning { background: url('images/messager_icons.png') no-repeat scroll -96px 0; } .messager-progress { padding: 10px; } .messager-p-msg { margin-bottom: 5px; } .messager-body .messager-input { width: 100%; padding: 1px 0; border: 1px solid #ddd; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/numberbox.css ================================================ .numberbox { border: 1px solid #ddd; margin: 0; padding: 0 2px; vertical-align: middle; } .textbox { padding: 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/pagination.css ================================================ .pagination { zoom: 1; } .pagination table { float: left; height: 30px; } .pagination td { border: 0; } .pagination-btn-separator { float: left; height: 24px; border-left: 1px solid #ddd; border-right: 1px solid #fff; margin: 3px 1px; } .pagination .pagination-num { border-width: 1px; border-style: solid; margin: 0 2px; padding: 2px; width: 2em; height: auto; } .pagination-page-list { margin: 0px 6px; padding: 1px 2px; width: auto; height: auto; border-width: 1px; border-style: solid; } .pagination-info { float: right; margin: 0 6px 0 0; padding: 0; height: 30px; line-height: 30px; font-size: 12px; } .pagination span { font-size: 12px; } .pagination-link .l-btn-text { width: 24px; text-align: center; margin: 0; } .pagination-first { background: url('images/pagination_icons.png') no-repeat 0 center; } .pagination-prev { background: url('images/pagination_icons.png') no-repeat -16px center; } .pagination-next { background: url('images/pagination_icons.png') no-repeat -32px center; } .pagination-last { background: url('images/pagination_icons.png') no-repeat -48px center; } .pagination-load { background: url('images/pagination_icons.png') no-repeat -64px center; } .pagination-loading { background: url('images/loading.gif') no-repeat center center; } .pagination-page-list, .pagination .pagination-num { border-color: #ddd; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/panel.css ================================================ .panel { overflow: hidden; text-align: left; margin: 0; border: 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .panel-header, .panel-body { border-width: 1px; border-style: solid; } .panel-header { padding: 5px; position: relative; } .panel-title { background: url('images/blank.gif') no-repeat; } .panel-header-noborder { border-width: 0 0 1px 0; } .panel-body { overflow: auto; border-top-width: 0; padding: 0; } .panel-body-noheader { border-top-width: 1px; } .panel-body-noborder { border-width: 0px; } .panel-body-nobottom { border-bottom-width: 0; } .panel-with-icon { padding-left: 18px; } .panel-icon, .panel-tool { position: absolute; top: 50%; margin-top: -8px; height: 16px; overflow: hidden; } .panel-icon { left: 5px; width: 16px; } .panel-tool { right: 5px; width: auto; } .panel-tool a { display: inline-block; width: 16px; height: 16px; opacity: 0.6; filter: alpha(opacity=60); margin: 0 0 0 2px; vertical-align: top; } .panel-tool a:hover { opacity: 1; filter: alpha(opacity=100); background-color: #E6E6E6; -moz-border-radius: -2px -2px -2px -2px; -webkit-border-radius: -2px -2px -2px -2px; border-radius: -2px -2px -2px -2px; } .panel-loading { padding: 11px 0px 10px 30px; } .panel-noscroll { overflow: hidden; } .panel-fit, .panel-fit body { height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; } .panel-loading { background: url('images/loading.gif') no-repeat 10px 10px; } .panel-tool-close { background: url('images/panel_tools.png') no-repeat -16px 0px; } .panel-tool-min { background: url('images/panel_tools.png') no-repeat 0px 0px; } .panel-tool-max { background: url('images/panel_tools.png') no-repeat 0px -16px; } .panel-tool-restore { background: url('images/panel_tools.png') no-repeat -16px -16px; } .panel-tool-collapse { background: url('images/panel_tools.png') no-repeat -32px 0; } .panel-tool-expand { background: url('images/panel_tools.png') no-repeat -32px -16px; } .panel-header, .panel-body { border-color: #ddd; } .panel-header { background-color: #ffffff; } .panel-body { background-color: #fff; color: #444; font-size: 12px; } .panel-title { font-size: 12px; font-weight: bold; color: #777; height: 16px; line-height: 16px; } .panel-footer { border: 1px solid #ddd; overflow: hidden; background: #fff; } .panel-footer-noborder { border-width: 1px 0 0 0; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/progressbar.css ================================================ .progressbar { border-width: 1px; border-style: solid; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; overflow: hidden; position: relative; } .progressbar-text { text-align: center; position: absolute; } .progressbar-value { position: relative; overflow: hidden; width: 0; -moz-border-radius: 0px 0 0 0px; -webkit-border-radius: 0px 0 0 0px; border-radius: 0px 0 0 0px; } .progressbar { border-color: #ddd; } .progressbar-text { color: #444; font-size: 12px; } .progressbar-value .progressbar-text { background-color: #CCE6FF; color: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/propertygrid.css ================================================ .propertygrid .datagrid-view1 .datagrid-body td { padding-bottom: 1px; border-width: 0 1px 0 0; } .propertygrid .datagrid-group { height: 21px; overflow: hidden; border-width: 0 0 1px 0; border-style: solid; } .propertygrid .datagrid-group span { font-weight: bold; } .propertygrid .datagrid-view1 .datagrid-body td { border-color: #ddd; } .propertygrid .datagrid-view1 .datagrid-group { border-color: #ffffff; } .propertygrid .datagrid-view2 .datagrid-group { border-color: #ddd; } .propertygrid .datagrid-group, .propertygrid .datagrid-view1 .datagrid-body, .propertygrid .datagrid-view1 .datagrid-row-over, .propertygrid .datagrid-view1 .datagrid-row-selected { background: #ffffff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/searchbox.css ================================================ .searchbox { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .searchbox .searchbox-text { font-size: 12px; border: 0; margin: 0; padding: 0 2px; vertical-align: top; } .searchbox .searchbox-prompt { font-size: 12px; color: #ccc; } .searchbox-button { width: 18px; height: 20px; overflow: hidden; display: inline-block; vertical-align: top; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); } .searchbox-button-hover { opacity: 1.0; filter: alpha(opacity=100); } .searchbox .l-btn-plain { border: 0; padding: 0; vertical-align: top; opacity: 0.6; filter: alpha(opacity=60); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .l-btn-plain:hover { border: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox a.m-btn-plain-active { -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .m-btn-active { border-width: 0 1px 0 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .searchbox .textbox-button-right { border-width: 0 0 0 1px; } .searchbox .textbox-button-left { border-width: 0 1px 0 0; } .searchbox-button { background: url('images/searchbox_button.png') no-repeat center center; } .searchbox { border-color: #ddd; background-color: #fff; } .searchbox .l-btn-plain { background: #ffffff; } .searchbox .l-btn-plain-disabled, .searchbox .l-btn-plain-disabled:hover { opacity: 0.5; filter: alpha(opacity=50); } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/slider.css ================================================ .slider-disabled { opacity: 0.5; filter: alpha(opacity=50); } .slider-h { height: 22px; } .slider-v { width: 22px; } .slider-inner { position: relative; height: 6px; top: 7px; border-width: 1px; border-style: solid; border-radius: 0px; } .slider-handle { position: absolute; display: block; outline: none; width: 20px; height: 20px; top: 50%; margin-top: -10px; margin-left: -10px; } .slider-tip { position: absolute; display: inline-block; line-height: 12px; font-size: 12px; white-space: nowrap; top: -22px; } .slider-rule { position: relative; top: 15px; } .slider-rule span { position: absolute; display: inline-block; font-size: 0; height: 5px; border-width: 0 0 0 1px; border-style: solid; } .slider-rulelabel { position: relative; top: 20px; } .slider-rulelabel span { position: absolute; display: inline-block; font-size: 12px; } .slider-v .slider-inner { width: 6px; left: 7px; top: 0; float: left; } .slider-v .slider-handle { left: 50%; margin-top: -10px; } .slider-v .slider-tip { left: -10px; margin-top: -6px; } .slider-v .slider-rule { float: left; top: 0; left: 16px; } .slider-v .slider-rule span { width: 5px; height: 'auto'; border-left: 0; border-width: 1px 0 0 0; border-style: solid; } .slider-v .slider-rulelabel { float: left; top: 0; left: 23px; } .slider-handle { background: url('images/slider_handle.png') no-repeat; } .slider-inner { border-color: #ddd; background: #ffffff; } .slider-rule span { border-color: #ddd; } .slider-rulelabel span { color: #444; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/spinner.css ================================================ .spinner { display: inline-block; white-space: nowrap; margin: 0; padding: 0; border-width: 1px; border-style: solid; overflow: hidden; vertical-align: middle; } .spinner .spinner-text { font-size: 12px; border: 0px; margin: 0; padding: 0 2px; vertical-align: baseline; } .spinner-arrow { background-color: #ffffff; display: inline-block; overflow: hidden; vertical-align: top; margin: 0; padding: 0; opacity: 1.0; filter: alpha(opacity=100); width: 18px; } .spinner-arrow-up, .spinner-arrow-down { opacity: 0.6; filter: alpha(opacity=60); display: block; font-size: 1px; width: 18px; height: 10px; width: 100%; height: 50%; outline-style: none; } .spinner-arrow-hover { background-color: #E6E6E6; opacity: 1.0; filter: alpha(opacity=100); } .spinner-arrow-up:hover, .spinner-arrow-down:hover { opacity: 1.0; filter: alpha(opacity=100); background-color: #E6E6E6; } .textbox-icon-disabled .spinner-arrow-up:hover, .textbox-icon-disabled .spinner-arrow-down:hover { opacity: 0.6; filter: alpha(opacity=60); background-color: #ffffff; cursor: default; } .spinner .textbox-icon-disabled { opacity: 0.6; filter: alpha(opacity=60); } .spinner-arrow-up { background: url('images/spinner_arrows.png') no-repeat 1px center; } .spinner-arrow-down { background: url('images/spinner_arrows.png') no-repeat -15px center; } .spinner { border-color: #ddd; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/splitbutton.css ================================================ .s-btn:hover .m-btn-line, .s-btn-active .m-btn-line, .s-btn-plain-active .m-btn-line { display: inline-block; } .l-btn:hover .s-btn-downarrow, .s-btn-active .s-btn-downarrow, .s-btn-plain-active .s-btn-downarrow { border-style: solid; border-color: #b3b3b3; border-width: 0 0 0 1px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/tabs.css ================================================ .tabs-container { overflow: hidden; } .tabs-header { border-width: 1px; border-style: solid; border-bottom-width: 0; position: relative; padding: 0; padding-top: 2px; overflow: hidden; } .tabs-header-plain { border: 0; background: transparent; } .tabs-scroller-left, .tabs-scroller-right { position: absolute; top: auto; bottom: 0; width: 18px; font-size: 1px; display: none; cursor: pointer; border-width: 1px; border-style: solid; } .tabs-scroller-left { left: 0; } .tabs-scroller-right { right: 0; } .tabs-tool { position: absolute; bottom: 0; padding: 1px; overflow: hidden; border-width: 1px; border-style: solid; } .tabs-header-plain .tabs-tool { padding: 0 1px; } .tabs-wrap { position: relative; left: 0; overflow: hidden; width: 100%; margin: 0; padding: 0; } .tabs-scrolling { margin-left: 18px; margin-right: 18px; } .tabs-disabled { opacity: 0.3; filter: alpha(opacity=30); } .tabs { list-style-type: none; height: 26px; margin: 0px; padding: 0px; padding-left: 4px; width: 50000px; border-style: solid; border-width: 0 0 1px 0; } .tabs li { float: left; display: inline-block; margin: 0 4px -1px 0; padding: 0; position: relative; border: 0; } .tabs li a.tabs-inner { display: inline-block; text-decoration: none; margin: 0; padding: 0 10px; height: 25px; line-height: 25px; text-align: center; white-space: nowrap; border-width: 1px; border-style: solid; -moz-border-radius: 0px 0px 0 0; -webkit-border-radius: 0px 0px 0 0; border-radius: 0px 0px 0 0; } .tabs li.tabs-selected a.tabs-inner { font-weight: bold; outline: none; } .tabs li.tabs-selected a:hover.tabs-inner { cursor: default; pointer: default; } .tabs li a.tabs-close, .tabs-p-tool { position: absolute; font-size: 1px; display: block; height: 12px; padding: 0; top: 50%; margin-top: -6px; overflow: hidden; } .tabs li a.tabs-close { width: 12px; right: 5px; opacity: 0.6; filter: alpha(opacity=60); } .tabs-p-tool { right: 16px; } .tabs-p-tool a { display: inline-block; font-size: 1px; width: 12px; height: 12px; margin: 0; opacity: 0.6; filter: alpha(opacity=60); } .tabs li a:hover.tabs-close, .tabs-p-tool a:hover { opacity: 1; filter: alpha(opacity=100); cursor: hand; cursor: pointer; } .tabs-with-icon { padding-left: 18px; } .tabs-icon { position: absolute; width: 16px; height: 16px; left: 10px; top: 50%; margin-top: -8px; } .tabs-title { font-size: 12px; } .tabs-closable { padding-right: 8px; } .tabs-panels { margin: 0px; padding: 0px; border-width: 1px; border-style: solid; border-top-width: 0; overflow: hidden; } .tabs-header-bottom { border-width: 0 1px 1px 1px; padding: 0 0 2px 0; } .tabs-header-bottom .tabs { border-width: 1px 0 0 0; } .tabs-header-bottom .tabs li { margin: -1px 4px 0 0; } .tabs-header-bottom .tabs li a.tabs-inner { -moz-border-radius: 0 0 0px 0px; -webkit-border-radius: 0 0 0px 0px; border-radius: 0 0 0px 0px; } .tabs-header-bottom .tabs-tool { top: 0; } .tabs-header-bottom .tabs-scroller-left, .tabs-header-bottom .tabs-scroller-right { top: 0; bottom: auto; } .tabs-panels-top { border-width: 1px 1px 0 1px; } .tabs-header-left { float: left; border-width: 1px 0 1px 1px; padding: 0; } .tabs-header-right { float: right; border-width: 1px 1px 1px 0; padding: 0; } .tabs-header-left .tabs-wrap, .tabs-header-right .tabs-wrap { height: 100%; } .tabs-header-left .tabs { height: 100%; padding: 4px 0 0 4px; border-width: 0 1px 0 0; } .tabs-header-right .tabs { height: 100%; padding: 4px 4px 0 0; border-width: 0 0 0 1px; } .tabs-header-left .tabs li, .tabs-header-right .tabs li { display: block; width: 100%; position: relative; } .tabs-header-left .tabs li { left: auto; right: 0; margin: 0 -1px 4px 0; float: right; } .tabs-header-right .tabs li { left: 0; right: auto; margin: 0 0 4px -1px; float: left; } .tabs-header-left .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0px 0 0 0px; -webkit-border-radius: 0px 0 0 0px; border-radius: 0px 0 0 0px; } .tabs-header-right .tabs li a.tabs-inner { display: block; text-align: left; -moz-border-radius: 0 0px 0px 0; -webkit-border-radius: 0 0px 0px 0; border-radius: 0 0px 0px 0; } .tabs-panels-right { float: right; border-width: 1px 1px 1px 0; } .tabs-panels-left { float: left; border-width: 1px 0 1px 1px; } .tabs-header-noborder, .tabs-panels-noborder { border: 0px; } .tabs-header-plain { border: 0px; background: transparent; } .tabs-scroller-left { background: #ffffff url('images/tabs_icons.png') no-repeat 1px center; } .tabs-scroller-right { background: #ffffff url('images/tabs_icons.png') no-repeat -15px center; } .tabs li a.tabs-close { background: url('images/tabs_icons.png') no-repeat -34px center; } .tabs li a.tabs-inner:hover { background: #E6E6E6; color: #444; filter: none; } .tabs li.tabs-selected a.tabs-inner { background-color: #fff; color: #777; } .tabs li a.tabs-inner { color: #777; background-color: #ffffff; } .tabs-header, .tabs-tool { background-color: #ffffff; } .tabs-header-plain { background: transparent; } .tabs-header, .tabs-scroller-left, .tabs-scroller-right, .tabs-tool, .tabs, .tabs-panels, .tabs li a.tabs-inner, .tabs li.tabs-selected a.tabs-inner, .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner, .tabs-header-left .tabs li.tabs-selected a.tabs-inner, .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-color: #ddd; } .tabs-p-tool a:hover, .tabs li a:hover.tabs-close, .tabs-scroller-over { background-color: #E6E6E6; } .tabs li.tabs-selected a.tabs-inner { border-bottom: 1px solid #fff; } .tabs-header-bottom .tabs li.tabs-selected a.tabs-inner { border-top: 1px solid #fff; } .tabs-header-left .tabs li.tabs-selected a.tabs-inner { border-right: 1px solid #fff; } .tabs-header-right .tabs li.tabs-selected a.tabs-inner { border-left: 1px solid #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/textbox.css ================================================ .textbox { position: relative; border: 1px solid #ddd; background-color: #fff; vertical-align: middle; display: inline-block; overflow: hidden; white-space: nowrap; margin: 0; padding: 0; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .textbox .textbox-text { font-size: 12px; border: 0; margin: 0; padding: 4px; white-space: normal; vertical-align: top; outline-style: none; resize: none; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .textbox .textbox-prompt { font-size: 12px; color: #aaa; } .textbox-button, .textbox-button:hover { position: absolute; top: 0; padding: 0; vertical-align: top; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius: 0 0 0 0; } .textbox-button-right, .textbox-button-right:hover { border-width: 0 0 0 1px; } .textbox-button-left, .textbox-button-left:hover { border-width: 0 1px 0 0; } .textbox-addon { position: absolute; top: 0; } .textbox-icon { display: inline-block; width: 18px; height: 20px; overflow: hidden; vertical-align: top; background-position: center center; cursor: pointer; opacity: 0.6; filter: alpha(opacity=60); text-decoration: none; outline-style: none; } .textbox-icon-disabled, .textbox-icon-readonly { cursor: default; } .textbox-icon:hover { opacity: 1.0; filter: alpha(opacity=100); } .textbox-icon-disabled:hover { opacity: 0.6; filter: alpha(opacity=60); } .textbox-focused { -moz-box-shadow: 0 0 3px 0 #ddd; -webkit-box-shadow: 0 0 3px 0 #ddd; box-shadow: 0 0 3px 0 #ddd; } .textbox-invalid { border-color: #ffa8a8; background-color: #fff3f3; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/tooltip.css ================================================ .tooltip { position: absolute; display: none; z-index: 9900000; outline: none; opacity: 1; filter: alpha(opacity=100); padding: 5px; border-width: 1px; border-style: solid; border-radius: 5px; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .tooltip-content { font-size: 12px; } .tooltip-arrow-outer, .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; font-size: 0; border-style: solid; border-width: 6px; border-color: transparent; _border-color: tomato; _filter: chroma(color=tomato); } .tooltip-right .tooltip-arrow-outer { left: 0; top: 50%; margin: -6px 0 0 -13px; } .tooltip-right .tooltip-arrow { left: 0; top: 50%; margin: -6px 0 0 -12px; } .tooltip-left .tooltip-arrow-outer { right: 0; top: 50%; margin: -6px -13px 0 0; } .tooltip-left .tooltip-arrow { right: 0; top: 50%; margin: -6px -12px 0 0; } .tooltip-top .tooltip-arrow-outer { bottom: 0; left: 50%; margin: 0 0 -13px -6px; } .tooltip-top .tooltip-arrow { bottom: 0; left: 50%; margin: 0 0 -12px -6px; } .tooltip-bottom .tooltip-arrow-outer { top: 0; left: 50%; margin: -13px 0 0 -6px; } .tooltip-bottom .tooltip-arrow { top: 0; left: 50%; margin: -12px 0 0 -6px; } .tooltip { background-color: #fff; border-color: #ddd; color: #444; } .tooltip-right .tooltip-arrow-outer { border-right-color: #ddd; } .tooltip-right .tooltip-arrow { border-right-color: #fff; } .tooltip-left .tooltip-arrow-outer { border-left-color: #ddd; } .tooltip-left .tooltip-arrow { border-left-color: #fff; } .tooltip-top .tooltip-arrow-outer { border-top-color: #ddd; } .tooltip-top .tooltip-arrow { border-top-color: #fff; } .tooltip-bottom .tooltip-arrow-outer { border-bottom-color: #ddd; } .tooltip-bottom .tooltip-arrow { border-bottom-color: #fff; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/tree.css ================================================ .tree { margin: 0; padding: 0; list-style-type: none; } .tree li { white-space: nowrap; } .tree li ul { list-style-type: none; margin: 0; padding: 0; } .tree-node { height: 18px; white-space: nowrap; cursor: pointer; } .tree-hit { cursor: pointer; } .tree-expanded, .tree-collapsed, .tree-folder, .tree-file, .tree-checkbox, .tree-indent { display: inline-block; width: 16px; height: 18px; vertical-align: top; overflow: hidden; } .tree-expanded { background: url('images/tree_icons.png') no-repeat -18px 0px; } .tree-expanded-hover { background: url('images/tree_icons.png') no-repeat -50px 0px; } .tree-collapsed { background: url('images/tree_icons.png') no-repeat 0px 0px; } .tree-collapsed-hover { background: url('images/tree_icons.png') no-repeat -32px 0px; } .tree-lines .tree-expanded, .tree-lines .tree-root-first .tree-expanded { background: url('images/tree_icons.png') no-repeat -144px 0; } .tree-lines .tree-collapsed, .tree-lines .tree-root-first .tree-collapsed { background: url('images/tree_icons.png') no-repeat -128px 0; } .tree-lines .tree-node-last .tree-expanded, .tree-lines .tree-root-one .tree-expanded { background: url('images/tree_icons.png') no-repeat -80px 0; } .tree-lines .tree-node-last .tree-collapsed, .tree-lines .tree-root-one .tree-collapsed { background: url('images/tree_icons.png') no-repeat -64px 0; } .tree-line { background: url('images/tree_icons.png') no-repeat -176px 0; } .tree-join { background: url('images/tree_icons.png') no-repeat -192px 0; } .tree-joinbottom { background: url('images/tree_icons.png') no-repeat -160px 0; } .tree-folder { background: url('images/tree_icons.png') no-repeat -208px 0; } .tree-folder-open { background: url('images/tree_icons.png') no-repeat -224px 0; } .tree-file { background: url('images/tree_icons.png') no-repeat -240px 0; } .tree-loading { background: url('images/loading.gif') no-repeat center center; } .tree-checkbox0 { background: url('images/tree_icons.png') no-repeat -208px -18px; } .tree-checkbox1 { background: url('images/tree_icons.png') no-repeat -224px -18px; } .tree-checkbox2 { background: url('images/tree_icons.png') no-repeat -240px -18px; } .tree-title { font-size: 12px; display: inline-block; text-decoration: none; vertical-align: top; white-space: nowrap; padding: 0 2px; height: 18px; line-height: 18px; } .tree-node-proxy { font-size: 12px; line-height: 20px; padding: 0 2px 0 20px; border-width: 1px; border-style: solid; z-index: 9900000; } .tree-dnd-icon { display: inline-block; position: absolute; width: 16px; height: 18px; left: 2px; top: 50%; margin-top: -9px; } .tree-dnd-yes { background: url('images/tree_icons.png') no-repeat -256px 0; } .tree-dnd-no { background: url('images/tree_icons.png') no-repeat -256px -18px; } .tree-node-top { border-top: 1px dotted red; } .tree-node-bottom { border-bottom: 1px dotted red; } .tree-node-append .tree-title { border: 1px dotted red; } .tree-editor { border: 1px solid #ccc; font-size: 12px; height: 14px !important; height: 18px; line-height: 14px; padding: 1px 2px; width: 80px; position: absolute; top: 0; } .tree-node-proxy { background-color: #fff; color: #444; border-color: #ddd; } .tree-node-hover { background: #E6E6E6; color: #444; } .tree-node-selected { background: #CCE6FF; color: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/validatebox.css ================================================ .validatebox-invalid { border-color: #ffa8a8; background-color: #fff3f3; color: #000; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/themes/metro/window.css ================================================ .window { overflow: hidden; padding: 5px; border-width: 1px; border-style: solid; } .window .window-header { background: transparent; padding: 0px 0px 6px 0px; } .window .window-body { border-width: 1px; border-style: solid; border-top-width: 0px; } .window .window-body-noheader { border-top-width: 1px; } .window .panel-body-nobottom { border-bottom-width: 0; } .window .window-header .panel-icon, .window .window-header .panel-tool { top: 50%; margin-top: -11px; } .window .window-header .panel-icon { left: 1px; } .window .window-header .panel-tool { right: 1px; } .window .window-header .panel-with-icon { padding-left: 18px; } .window-proxy { position: absolute; overflow: hidden; } .window-proxy-mask { position: absolute; filter: alpha(opacity=5); opacity: 0.05; } .window-mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: alpha(opacity=40); opacity: 0.40; font-size: 1px; overflow: hidden; } .window, .window-shadow { position: absolute; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px; } .window-shadow { background: #eee; -moz-box-shadow: 2px 2px 3px #ededed; -webkit-box-shadow: 2px 2px 3px #ededed; box-shadow: 2px 2px 3px #ededed; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2); } .window, .window .window-body { border-color: #ddd; } .window { background-color: #ffffff; } .window-proxy { border: 1px dashed #ddd; } .window-proxy-mask, .window-mask { background: #eee; } .window .panel-footer { border: 1px solid #ddd; position: relative; top: -1px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/asp/JSON_2.0.4.asp ================================================ <% ' ' VBS JSON 2.0.3 ' Copyright (c) 2009 Turul Topuz ' Under the MIT (MIT-LICENSE.txt) license. ' Const JSON_OBJECT = 0 Const JSON_ARRAY = 1 Class jsCore Public Collection Public Count Public QuotedVars Public Kind ' 0 = object, 1 = array Private Sub Class_Initialize Set Collection = CreateObject("Scripting.Dictionary") QuotedVars = True Count = 0 End Sub Private Sub Class_Terminate Set Collection = Nothing End Sub ' counter Private Property Get Counter Counter = Count Count = Count + 1 End Property ' - data maluplation ' -- pair Public Property Let Pair(p, v) If IsNull(p) Then p = Counter Collection(p) = v End Property Public Property Set Pair(p, v) If IsNull(p) Then p = Counter If TypeName(v) <> "jsCore" Then Err.Raise &hD, "class: class", "Incompatible types: '" & TypeName(v) & "'" End If Set Collection(p) = v End Property Public Default Property Get Pair(p) If IsNull(p) Then p = Count - 1 If IsObject(Collection(p)) Then Set Pair = Collection(p) Else Pair = Collection(p) End If End Property ' -- pair Public Sub Clean Collection.RemoveAll End Sub Public Sub Remove(vProp) Collection.Remove vProp End Sub ' data maluplation ' encoding Function jsEncode(str) Dim charmap(127), haystack() charmap(8) = "\b" charmap(9) = "\t" charmap(10) = "\n" charmap(12) = "\f" charmap(13) = "\r" charmap(34) = "\""" charmap(47) = "\/" charmap(92) = "\\" Dim strlen : strlen = Len(str) - 1 ReDim haystack(strlen) Dim i, charcode For i = 0 To strlen haystack(i) = Mid(str, i + 1, 1) charcode = AscW(haystack(i)) And 65535 If charcode < 127 Then If Not IsEmpty(charmap(charcode)) Then haystack(i) = charmap(charcode) ElseIf charcode < 32 Then haystack(i) = "\u" & Right("000" & Hex(charcode), 4) End If Else haystack(i) = "\u" & Right("000" & Hex(charcode), 4) End If Next jsEncode = Join(haystack, "") End Function ' converting Public Function toJSON(vPair) Select Case VarType(vPair) Case 0 ' Empty toJSON = "null" Case 1 ' Null toJSON = "null" Case 7 ' Date ' toJSON = "new Date(" & (vPair - CDate(25569)) * 86400000 & ")" ' let in only utc time toJSON = """" & CStr(vPair) & """" Case 8 ' String toJSON = """" & jsEncode(vPair) & """" Case 9 ' Object Dim bFI,i bFI = True If vPair.Kind Then toJSON = toJSON & "[" Else toJSON = toJSON & "{" For Each i In vPair.Collection If bFI Then bFI = False Else toJSON = toJSON & "," If vPair.Kind Then toJSON = toJSON & toJSON(vPair(i)) Else If QuotedVars Then toJSON = toJSON & """" & i & """:" & toJSON(vPair(i)) Else toJSON = toJSON & i & ":" & toJSON(vPair(i)) End If End If Next If vPair.Kind Then toJSON = toJSON & "]" Else toJSON = toJSON & "}" Case 11 If vPair Then toJSON = "true" Else toJSON = "false" Case 12, 8192, 8204 toJSON = RenderArray(vPair, 1, "") Case Else toJSON = Replace(vPair, ",", ".") End select End Function Function RenderArray(arr, depth, parent) Dim first : first = LBound(arr, depth) Dim last : last = UBound(arr, depth) Dim index, rendered Dim limiter : limiter = "," RenderArray = "[" For index = first To last If index = last Then limiter = "" End If On Error Resume Next rendered = RenderArray(arr, depth + 1, parent & index & "," ) If Err = 9 Then On Error GoTo 0 RenderArray = RenderArray & toJSON(Eval("arr(" & parent & index & ")")) & limiter Else RenderArray = RenderArray & rendered & "" & limiter End If Next RenderArray = RenderArray & "]" End Function Public Property Get jsString jsString = toJSON(Me) End Property Sub Flush If TypeName(Response) <> "Empty" Then Response.Write(jsString) ElseIf WScript <> Empty Then WScript.Echo(jsString) End If End Sub Public Function Clone Set Clone = ColClone(Me) End Function Private Function ColClone(core) Dim jsc, i Set jsc = new jsCore jsc.Kind = core.Kind For Each i In core.Collection If IsObject(core(i)) Then Set jsc(i) = ColClone(core(i)) Else jsc(i) = core(i) End If Next Set ColClone = jsc End Function End Class Function jsObject Set jsObject = new jsCore jsObject.Kind = JSON_OBJECT End Function Function jsArray Set jsArray = new jsCore jsArray.Kind = JSON_ARRAY End Function Function toJSON(val) toJSON = (new jsCore).toJSON(val) End Function %> ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/asp/UpLoad_Class.asp ================================================ <% '========================================================= '类名: AnUpLoad(艾恩无组件上传类) '作者: Anlige '版本: 艾恩ASP无组件上传类V11.03.25 '开发日期: 2008-4-12 '修改日期: 2011-03025 '主页: http://dev.mo.cn 'Email: zhanghuiguoanlige@126.com 'QQ: 1034555083 '========================================================= Dim StreamT Class AnUpLoad Private Form, Fils Private vCharSet, vMaxSize, vSingleSize, vErr, vVersion, vTotalSize, vExe, pID, vOP, vErrExe,vboundary, vLostTime, vMode, vFileCount '============================== '设置和读取属性开始 '============================== Public Property Let Mode(ByVal value) vMode = value End Property Public Property Let MaxSize(ByVal value) vMaxSize = value End Property Public Property Let SingleSize(ByVal value) vSingleSize = value End Property Public Property Let Exe(ByVal value) vExe = LCase(value) End Property Public Property Let CharSet(ByVal value) vCharSet = value End Property Public Property Get ErrorID() ErrorID = vErr End Property Public Property Get FileCount() FileCount = Fils.count End Property Public Property Get Description() Description = GetErr(vErr) End Property Public Property Get Version() Version = vVersion End Property Public Property Get TotalSize() TotalSize = vTotalSize End Property Public Property Get ProcessID() ProcessID = pID End Property Public Property Let openProcesser(ByVal value) vOP = value End Property Public Property Get LostTime() LostTime = vLostTime End Property '============================== '设置和读取属性结束,初始化类 '============================== Private Sub Class_Initialize() set Form = server.createobject("Scripting.Dictionary") set Fils = server.createobject("Scripting.Dictionary") Set StreamT = server.CreateObject("Adodb.stream") vVersion = "艾恩ASP无组件上传类V10.10.22" vMaxSize = -1 vSingleSize = -1 vErr = -1 vExe = "" vTotalSize = 0 vCharSet = "utf-8" vOP=false pID="AnUpload" setApp "",0,0,"" vMode = 0 End Sub Private Sub Class_Terminate() Dim f Form.RemoveAll() For each f in Fils Fils(f).value=empty Set Fils(f) = Nothing Next Fils.RemoveAll() Set Form = Nothing Set Fils = Nothing StreamT.Close() Set StreamT = Nothing End Sub '============================== '函数名:GetData '作用:处理客户端提交来的所有数据 '============================== Public Sub GetData() Dim time1 time1 = timer() if vOP And trim(request.querystring("processid"))<>"" then pID=request.querystring("processid") Dim value, str, bcrlf, fpos, sSplit, slen, istart,ef Dim TotalBytes,tempdata,BytesRead,ChunkReadSize,PartSize,DataPart,formend, formhead, startpos, endpos, formname, FileName, fileExe, valueend, NewName,localname,type_1,contentType TotalBytes = Request.TotalBytes ef = false If checkEntryType = false Then ef = true : vErr = 2 '下面3句注释掉了,因为在IIS5.0中,如果上传大小大于限制大小的文件,会出错,一直没找到解决方法。如果是在IIS5以上的版本使用,可以取消下面3句的注释 'If Not ef Then 'If vMaxSize > 0 And TotalBytes > vMaxSize Then ef = true : vErr = 1 'End If If ef Then Exit Sub If vMode = 0 Then vTotalSize = 0 StreamT.Type = 1 StreamT.Mode = 3 StreamT.Open BytesRead = 0 ChunkReadSize = 1024 * 16 Do While BytesRead < TotalBytes PartSize = ChunkReadSize If PartSize + BytesRead > TotalBytes Then PartSize = TotalBytes - BytesRead DataPart = Request.BinaryRead(PartSize) StreamT.Write DataPart BytesRead = BytesRead + PartSize setApp "uploading",TotalBytes,BytesRead,"" Loop setApp "uploaded",TotalBytes,BytesRead,"" StreamT.Position = 0 tempdata = StreamT.Read Else tempdata = Request.BinaryRead(TotalBytes) End If bcrlf = ChrB(13) & ChrB(10) fpos = InStrB(1, tempdata, bcrlf) sSplit = MidB(tempdata, 1, fpos - 1) slen = LenB(sSplit) istart = slen + 2 Do formend = InStrB(istart, tempdata, bcrlf & bcrlf) formhead = MidB(tempdata, istart, formend - istart) str = Bytes2Str(formhead) startpos = InStr(str, "name=""") + 6 endpos = InStr(startpos, str, """") formname = LCase(Mid(str, startpos, endpos - startpos)) valueend = InStrB(formend + 3, tempdata, sSplit) If InStr(str, "filename=""") > 0 Then startpos = InStr(str, "filename=""") + 10 endpos = InStr(startpos, str, """") type_1=instr(endpos,lcase(str),"content-type") contentType=trim(mid(str,type_1+13)) FileName = Mid(str, startpos, endpos - startpos) If Trim(FileName) <> "" Then LocalName = FileName FileName = Replace(FileName, "/", "\") FileName = Mid(FileName, InStrRev(FileName, "\") + 1) If instr(FileName,".")>0 Then fileExe = Split(FileName, ".")(UBound(Split(FileName, "."))) else fileExe = "" End If If vExe <> "" Then '判断扩展名 If checkExe(fileExe) = True Then vErr = 3 vErrExe = fileExe tempdata = empty Exit Sub End If End If NewName = Getname() NewName = NewName & "." & fileExe vTotalSize = vTotalSize + valueend - formend - 6 If vSingleSize > 0 And (valueend - formend - 6) > vSingleSize Then '判断上传单个文件大小 vErr = 5 tempdata = empty Exit Sub End If If vMaxSize > 0 And vTotalSize > vMaxSize Then '判断上传数据总大小 vErr = 1 tempdata = empty Exit Sub End If If Fils.Exists(formname) Then vErr = 4 tempdata = empty Exit Sub Else Dim fileCls:set fileCls= new UploadFileEx fileCls.ContentType=contentType fileCls.Size = (valueend - formend - 6) fileCls.Position = (formend + 3) fileCls.FormName = formname fileCls.NewName = NewName fileCls.FileName = FileName fileCls.LocalName = FileName fileCls.extend=split(NewName,".")(ubound(split(NewName,"."))) Fils.Add formname, fileCls Set fileCls = Nothing End If End If Else value = MidB(tempdata, formend + 4, valueend - formend - 6) If Form.Exists(formname) Then Form(formname) = Form(formname) & "," & Bytes2Str(value) Else Form.Add formname, Bytes2Str(value) End If End If istart = valueend + 2 + slen Loop Until (istart + 2) >= LenB(tempdata) vErr = 0 tempdata = empty vLostTime = FormatNumber((timer-time1)*1000,2) End Sub Public sub setApp(stp,total,current,desc) Application.lock() Application(pID)="{ID:""" & pID & """,step:""" & stp & """,total:" & total & ",now:" & current & ",description:""" & desc & """,dt:""" & now() & """}" Application.unlock() end sub '============================== '判断扩展名 '============================== Private Function checkExe(ByVal ex) Dim notIn: notIn = True If vExe="*" then notIn=false elseIf InStr(1, vExe, "|") > 0 Then Dim tempExe: tempExe = Split(vExe, "|") Dim I: I = 0 For I = 0 To UBound(tempExe) If LCase(ex) = tempExe(I) Then notIn = False Exit For End If Next Else If vExe = LCase(ex) Then notIn = False End If End If checkExe = notIn End Function '============================== '把数字转换为文件大小显示方式 '============================== Public Function GetSize(ByVal Size) If Size < 1024 Then GetSize = FormatNumber(Size, 2) & "B" ElseIf Size >= 1024 And Size < 1048576 Then GetSize = FormatNumber(Size / 1024, 2) & "KB" ElseIf Size >= 1048576 Then GetSize = FormatNumber((Size / 1024) / 1024, 2) & "MB" End If End Function '============================== '二进制数据转换为字符 '============================== Private Function Bytes2Str(ByVal byt) If LenB(byt) = 0 Then Bytes2Str = "" Exit Function End If Dim mystream, bstr Set mystream =server.createobject("ADODB.Stream") mystream.Type = 2 mystream.Mode = 3 mystream.Open mystream.WriteText byt mystream.Position = 0 mystream.CharSet = vCharSet mystream.Position = 2 bstr = mystream.ReadText() mystream.Close Set mystream = Nothing Bytes2Str = bstr End Function '============================== '获取错误描述 '============================== Private Function GetErr(ByVal Num) Select Case Num Case 0 GetErr = "数据处理完毕!" Case 1 GetErr = "上传数据超过" & GetSize(vMaxSize) & "限制!可设置MaxSize属性来改变限制!" Case 2 GetErr = "未设置上传表单enctype属性为multipart/form-data或者未设置method属性为Post,上传无效!" Case 3 GetErr = "含有非法扩展名(" & vErrExe & ")文件!只能上传扩展名为" & Replace(vExe, "|", ",") & "的文件" Case 4 GetErr = "对不起,程序不允许使用相同name属性的文件域!" Case 5 GetErr = "单个文件大小超出" & GetSize(vSingleSize) & "的上传限制!" End Select End Function '============================== '根据日期生成随机文件名 '============================== Private Function Getname() Dim y, m, d, h, mm, S, r Randomize y = Year(Now) m = right("0" & Month(Now),2) d = right("0" & Day(Now),2) h = right("0" & Hour(Now),2) mm =right("0" & Minute(Now),2) S = right("0" & Second(Now),2) r = 0 r = CInt(Rnd() * 10000) S = right("0000" & r,4) Getname = y & m & d & h & mm & S & r End Function '============================== '检测上传类型是否为multipart/form-data '============================== Private Function checkEntryType() Dim ContentType, ctArray, bArray,RequestMethod RequestMethod=trim(LCase(Request.ServerVariables("REQUEST_METHOD"))) if RequestMethod="" or RequestMethod<>"post" then checkEntryType = False exit function end if ContentType = LCase(Request.ServerVariables("HTTP_CONTENT_TYPE")) ctArray = Split(ContentType, ";") if ubound(ctarray)>=0 then If Trim(ctArray(0)) = "multipart/form-data" Then checkEntryType = True vboundary = Split(ContentType,"boundary=")(1) Else checkEntryType = False End If else checkEntryType = False end if End Function '============================== '获取上传表单值,参数可选,如果为-1则返回一个包含所有表单项的一个dictionary对象 '============================== Public Function Forms(ByVal formname) If trim(formname) = "-1" Then Set Forms = Form Else If Form.Exists(LCase(formname)) Then Forms = Form(LCase(formname)) Else Forms = "" End If End If End Function '============================== '获取上传的文件类,参数可选,如果为-1则返回一个包含所有上传文件类的一个dictionary对象 '============================== Public Function Files(ByVal formname) If trim(formname) = "-1" Then Set Files = Fils Else If Fils.Exists(LCase(formname)) Then Set Files = Fils(LCase(formname)) Else Set Files = Nothing End If End If End Function End Class Class UploadFileEx Private mvarFormName , mvarNewName , mvarLocalName , mvarFileName , mvarUserSetName , mvarContentType ,mException,mvarPosition Private mvarSize , mvarValue , mvarPath , mvarExtend ,mvarWidth, mvarHeight Public Property Let Extend(ByVal vData ) mvarExtend = vData End Property Public Property Get Extend() Extend = mvarExtend End Property Public Property Get Width() Width = mvarWidth End Property Public Property Get Height() Height = mvarHeight End Property Public Property Let Path(ByVal vData ) mvarPath = vData End Property Public Property Get Path() Path = mvarPath End Property Public Property Get Exception() Exception = mException End Property Public Property Let Value(ByVal vData ) mvarValue = vData End Property Public Property Get Value() Value = mvarValue End Property Public Property Let Size(ByVal vData ) mvarSize = vData End Property Public Property Get Size() Size = mvarSize End Property Public Property Let Position(ByVal vData ) mvarPosition = vData End Property Public Property Get Position() Size = mvarPosition End Property Public Property Let ContentType(ByVal vData ) mvarContentType = vData End Property Public Property Get ContentType() ContentType = mvarContentType End Property Public Property Let UserSetName(ByVal vData ) mvarUserSetName = vData End Property Public Property Get UserSetName() UserSetName = mvarUserSetName End Property Public Property Let FileName(ByVal vData ) mvarFileName = vData End Property Public Property Get FileName() FileName = mvarFileName End Property Public Property Let LocalName(ByVal vData ) mvarLocalName = vData End Property Public Property Get LocalName() LocalName = mvarLocalName End Property Public Property Let NewName(ByVal vData ) mvarNewName = vData End Property Public Property Get NewName() NewName = mvarNewName End Property Public Property Let FormName(ByVal vData ) mvarFormName = vData End Property Public Property Get FormName() FormName = mvarFormName End Property Private Sub Class_Initialize() mvarSize =0 mvarWidth = 0 mvarHeight = 0 End Sub Public Function SaveToFile(ByVal Path , byval tOption, byval OverWrite) On Error Resume Next Dim IsP IsP = (InStr(Path, ":") = 2) If Not IsP Then Path = Server.MapPath(Path) Path = Replace(Path, "/", "\") If Mid(Path, Len(Path) - 1) <> "\" Then Path = Path + "\" CreateFolder Path mvarPath = Path If tOption = 1 Then Path = Path & mvarLocalName: mvarFileName = mvarLocalName Else If tOption = -1 And mvarUserSetName <> "" Then Path = Path & mvarUserSetName & "." & mvarExtend: mvarFileName = mvarUserSetName & "." & mvarExtend Else Path = Path & mvarNewName: mvarFileName = mvarNewName End If End If If Not OverWrite Then Path = GetFilePath() End If Dim tmpStrm Set tmpStrm =server.CreateObject("ADODB.Stream") tmpStrm.Mode = 3 tmpStrm.Type = 1 tmpStrm.Open StreamT.Position = mvarPosition StreamT.copyto tmpStrm,mvarSize tmpStrm.SaveToFile Path, 2 tmpStrm.Close Set tmpStrm = Nothing If Not Err Then Set SaveToFile = objFromJson("{error:false}") Else Set SaveToFile = objFromJson("{error:true,description:'" & replace(Err.Description,"'","\'") & "'}") mException=Err.Description End If End Function Public Function GetBytes() StreamT.Position = mvarPosition GetBytes = StreamT.read(mvarSize) End Function Private Function CreateFolder(ByVal folderPath ) Dim oFSO Set oFSO = server.CreateObject("Scripting.FileSystemObject") Dim sParent sParent = oFSO.GetParentFolderName(folderPath) If sParent = "" Then Exit Function If Not oFSO.FolderExists(sParent) Then CreateFolder (sParent) If Not oFSO.FolderExists(folderPath) Then oFSO.CreateFolder (folderPath) Set oFSO = Nothing End Function Private Function GetFilePath() Dim oFSO, Fname , FNameL , i i = 0 Set oFSO = server.CreateObject("Scripting.FileSystemObject") Fname = mvarPath & mvarFileName FNameL = Mid(mvarFileName, 1, InStr(mvarFileName, ".") - 1) Do While oFSO.FileExists(Fname) Fname = mvarPath & FNameL & "(" & i & ")." & mvarExtend mvarFileName = FNameL & "(" & i & ")." & mvarExtend i = i + 1 Loop Set oFSO = Nothing GetFilePath = Fname End Function End Class %> ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/asp/demo.asp ================================================ <%@ CODEPAGE=65001 %> <% Option Explicit Response.CodePage=65001 Response.Charset="UTF-8" Dim htmlData htmlData = Request.Form("content1") Function htmlspecialchars(str) str = Replace(str, "&", "&") str = Replace(str, "<", "<") str = Replace(str, ">", ">") str = Replace(str, """", """) htmlspecialchars = str End Function %> KindEditor ASP <%=htmlData%>

                                              (提交快捷键: Ctrl + Enter)
                                              ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/asp/file_manager_json.asp ================================================ <%@ CODEPAGE=65001 %> <% Option Explicit %> <% Response.CodePage=65001 %> <% Response.Charset="UTF-8" %> <% ' KindEditor ASP ' ' 本ASP程序是演示程序,建议不要直接在实际项目中使用。 ' 如果您确定直接使用本程序,使用之前请仔细确认相关安全设置。 ' Dim aspUrl, rootPath, rootUrl, fileTypes Dim currentPath, currentUrl, currentDirPath, moveupDirPath Dim path, order, dirName, fso, folder, dir, file, result Dim fileExt, dirCount, fileCount, orderIndex, i, j Dim dirList(), fileList(), isDir, hasFile, filesize, isPhoto, filetype, filename, datetime aspUrl = Request.ServerVariables("SCRIPT_NAME") aspUrl = left(aspUrl, InStrRev(aspUrl, "/")) '根目录路径,可以指定绝对路径,比如 /var/www/attached/ rootPath = "../attached/" '根目录URL,可以指定绝对路径,比如 http://www.yoursite.com/attached/ rootUrl = aspUrl & "../attached/" '图片扩展名 fileTypes = "gif,jpg,jpeg,png,bmp" currentPath = "" currentUrl = "" currentDirPath = "" moveupDirPath = "" Set fso = Server.CreateObject("Scripting.FileSystemObject") '目录名 dirName = Request.QueryString("dir") If Not isEmpty(dirName) Then If instr(lcase("image,flash,media,file"), dirName) < 1 Then Response.Write "Invalid Directory name." Response.End End If rootPath = rootPath & dirName & "/" rootUrl = rootUrl & dirName & "/" If Not fso.FolderExists(Server.mappath(rootPath)) Then fso.CreateFolder(Server.mappath(rootPath)) End If End If '根据path参数,设置各路径和URL path = Request.QueryString("path") If path = "" Then currentPath = Server.MapPath(rootPath) & "\" currentUrl = rootUrl currentDirPath = "" moveupDirPath = "" Else currentPath = Server.MapPath(rootPath & path) & "\" currentUrl = rootUrl + path currentDirPath = path moveupDirPath = RegexReplace(currentDirPath, "(.*?)[^\/]+\/$", "$1") End If Set folder = fso.GetFolder(currentPath) '排序形式,name or size or type order = lcase(Request.QueryString("order")) Select Case order Case "type" orderIndex = 4 Case "size" orderIndex = 2 Case Else orderIndex = 5 End Select '不允许使用..移动到上一级目录 If RegexIsMatch(path, "\.\.") Then Response.Write "Access is not allowed." Response.End End If '最后一个字符不是/ If path <> "" And Not RegexIsMatch(path, "\/$") Then Response.Write "Parameter is not allowed." Response.End End If '目录不存在或不是目录 If Not DirectoryExists(currentPath) Then Response.Write "Directory does not exist." Response.End End If Set result = jsObject() '相对于根目录的上一级目录 result("moveup_dir_path") = moveupDirPath '相对于根目录的当前目录 result("current_dir_path") = currentDirPath '当前目录的URL result("current_url") = currentUrl '文件数 dirCount = folder.SubFolders.count fileCount = folder.Files.count result("total_count") = dirCount + fileCount ReDim dirList(dirCount) i = 0 For Each dir in folder.SubFolders isDir = True hasFile = (dir.Files.count > 0) filesize = 0 isPhoto = False filetype = "" filename = dir.name datetime = FormatDate(dir.DateLastModified) dirList(i) = Array(isDir, hasFile, filesize, isPhoto, filetype, filename, datetime) i = i + 1 Next ReDim fileList(fileCount) i = 0 For Each file in folder.Files fileExt = lcase(mid(file.name, InStrRev(file.name, ".") + 1)) isDir = False hasFile = False filesize = file.size isPhoto = (instr(lcase(fileTypes), fileExt) > 0) filetype = fileExt filename = file.name datetime = FormatDate(file.DateLastModified) fileList(i) = Array(isDir, hasFile, filesize, isPhoto, filetype, filename, datetime) i = i + 1 Next '排序 Dim minidx, temp For i = 0 To dirCount - 2 minidx = i For j = i + 1 To dirCount - 1 If (dirList(minidx)(5) > dirList(j)(5)) Then minidx = j End If Next If minidx <> i Then temp = dirList(minidx) dirList(minidx) = dirList(i) dirList(i) = temp End If Next For i = 0 To fileCount - 2 minidx = i For j = i + 1 To fileCount - 1 If (fileList(minidx)(orderIndex) > fileList(j)(orderIndex)) Then minidx = j End If Next If minidx <> i Then temp = fileList(minidx) fileList(minidx) = fileList(i) fileList(i) = temp End If Next Set result("file_list") = jsArray() For i = 0 To dirCount - 1 Set result("file_list")(Null) = jsObject() result("file_list")(Null)("is_dir") = dirList(i)(0) result("file_list")(Null)("has_file") = dirList(i)(1) result("file_list")(Null)("filesize") = dirList(i)(2) result("file_list")(Null)("is_photo") = dirList(i)(3) result("file_list")(Null)("filetype") = dirList(i)(4) result("file_list")(Null)("filename") = dirList(i)(5) result("file_list")(Null)("datetime") = dirList(i)(6) Next For i = 0 To fileCount - 1 Set result("file_list")(Null) = jsObject() result("file_list")(Null)("is_dir") = fileList(i)(0) result("file_list")(Null)("has_file") = fileList(i)(1) result("file_list")(Null)("filesize") = fileList(i)(2) result("file_list")(Null)("is_photo") = fileList(i)(3) result("file_list")(Null)("filetype") = fileList(i)(4) result("file_list")(Null)("filename") = fileList(i)(5) result("file_list")(Null)("datetime") = fileList(i)(6) Next '输出JSON字符串 Response.AddHeader "Content-Type", "text/html; charset=UTF-8" result.Flush Response.End '自定义函数 Function DirectoryExists(dirPath) Dim fso Set fso = Server.CreateObject("Scripting.FileSystemObject") DirectoryExists = fso.FolderExists(dirPath) End Function Function RegexIsMatch(subject, pattern) Dim reg Set reg = New RegExp reg.Global = True reg.MultiLine = True reg.Pattern = pattern RegexIsMatch = reg.Test(subject) End Function Function RegexReplace(subject, pattern, replacement) Dim reg Set reg = New RegExp reg.Global = True reg.MultiLine = True reg.Pattern = pattern RegexReplace = reg.Replace(subject, replacement) End Function Public Function FormatDate(datetime) Dim y, m, d, h, i, s y = CStr(Year(datetime)) m = CStr(Month(datetime)) If Len(m) = 1 Then m = "0" & m d = CStr(Day(datetime)) If Len(d) = 1 Then d = "0" & d h = CStr(Hour(datetime)) If Len(h) = 1 Then h = "0" & h i = CStr(Minute(datetime)) If Len(i) = 1 Then i = "0" & i s = CStr(Second(datetime)) If Len(s) = 1 Then s = "0" & s FormatDate = y & "-" & m & "-" & d & " " & h & ":" & i & ":" & s End Function %> ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/asp/upload_json.asp ================================================ <%@ CODEPAGE=65001 %> <% Option Explicit %> <% Response.CodePage=65001 %> <% Response.Charset="UTF-8" %> <% ' KindEditor ASP ' ' 本ASP程序是演示程序,建议不要直接在实际项目中使用。 ' 如果您确定直接使用本程序,使用之前请仔细确认相关安全设置。 ' Dim aspUrl, savePath, saveUrl, maxSize, fileName, fileExt, newFileName, filePath, fileUrl, dirName Dim extStr, imageExtStr, flashExtStr, mediaExtStr, fileExtStr Dim upload, file, fso, ranNum, hash, ymd, mm, dd, result aspUrl = Request.ServerVariables("SCRIPT_NAME") aspUrl = left(aspUrl, InStrRev(aspUrl, "/")) '文件保存目录路径 savePath = "../attached/" '文件保存目录URL saveUrl = aspUrl & "../attached/" '定义允许上传的文件扩展名 imageExtStr = "gif|jpg|jpeg|png|bmp" flashExtStr = "swf|flv" mediaExtStr = "swf|flv|mp3|wav|wma|wmv|mid|avi|mpg|asf|rm|rmvb" fileExtStr = "doc|docx|xls|xlsx|ppt|htm|html|txt|zip|rar|gz|bz2" '最大文件大小 maxSize = 5 * 1024 * 1024 '5M Set fso = Server.CreateObject("Scripting.FileSystemObject") If Not fso.FolderExists(Server.mappath(savePath)) Then showError("上传目录不存在。") End If dirName = Request.QueryString("dir") If isEmpty(dirName) Then dirName = "image" End If If instr(lcase("image,flash,media,file"), dirName) < 1 Then showError("目录名不正确。") End If Select Case dirName Case "flash" extStr = flashExtStr Case "media" extStr = mediaExtStr Case "file" extStr = fileExtStr Case Else extStr = imageExtStr End Select set upload = new AnUpLoad upload.Exe = extStr upload.MaxSize = maxSize upload.GetData() if upload.ErrorID>0 then showError(upload.Description) end if '创建文件夹 savePath = savePath & dirName & "/" saveUrl = saveUrl & dirName & "/" If Not fso.FolderExists(Server.mappath(savePath)) Then fso.CreateFolder(Server.mappath(savePath)) End If mm = month(now) If mm < 10 Then mm = "0" & mm End If dd = day(now) If dd < 10 Then dd = "0" & dd End If ymd = year(now) & mm & dd savePath = savePath & ymd & "/" saveUrl = saveUrl & ymd & "/" If Not fso.FolderExists(Server.mappath(savePath)) Then fso.CreateFolder(Server.mappath(savePath)) End If set file = upload.files("imgFile") if file is nothing then showError("请选择文件。") end if set result = file.saveToFile(savePath, 0, true) if result.error then showError(file.Exception) end if filePath = Server.mappath(savePath & file.filename) fileUrl = saveUrl & file.filename Set upload = nothing Set file = nothing If Not fso.FileExists(filePath) Then showError("上传文件失败。") End If Response.AddHeader "Content-Type", "text/html; charset=UTF-8" Set hash = jsObject() hash("error") = 0 hash("url") = fileUrl hash.Flush Response.End Function showError(message) Response.AddHeader "Content-Type", "text/html; charset=UTF-8" Dim hash Set hash = jsObject() hash("error") = 1 hash("message") = message hash.Flush Response.End End Function %> ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/asp.net/README.txt ================================================ KindEditor ASP.NET 本ASP.NET程序是演示程序,建议不要直接在实际项目中使用。 如果您确定直接使用本程序,使用之前请仔细确认相关安全设置。 使用方法: 1. 解压zip文件,将所有文件复制到IIS的wwwroot/kindeditor目录下。 2. 将kindeditor/asp.net/bin目录下的dll文件复制到wwwroot/bin目录下。 3. 打开浏览器,输入http://localhost:[P0RT]/kindeditor/asp.net/demo.aspx。 ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/asp.net/demo.aspx ================================================ <%@ Page Language="C#" AutoEventWireup="true" validateRequest="false" %> KindEditor ASP.NET

                                              (提交快捷键: Ctrl + Enter) ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/asp.net/file_manager_json.ashx ================================================ <%@ webhandler Language="C#" class="FileManager" %> /** * KindEditor ASP.NET * * 本ASP.NET程序是演示程序,建议不要直接在实际项目中使用。 * 如果您确定直接使用本程序,使用之前请仔细确认相关安全设置。 * */ using System; using System.Collections; using System.Web; using System.IO; using System.Text.RegularExpressions; using LitJson; using System.Collections.Generic; public class FileManager : IHttpHandler { public void ProcessRequest(HttpContext context) { String aspxUrl = context.Request.Path.Substring(0, context.Request.Path.LastIndexOf("/") + 1); //根目录路径,相对路径 String rootPath = "../attached/"; //根目录URL,可以指定绝对路径,比如 http://www.yoursite.com/attached/ String rootUrl = aspxUrl + "../attached/"; //图片扩展名 String fileTypes = "gif,jpg,jpeg,png,bmp"; String currentPath = ""; String currentUrl = ""; String currentDirPath = ""; String moveupDirPath = ""; String dirPath = context.Server.MapPath(rootPath); String dirName = context.Request.QueryString["dir"]; if (!String.IsNullOrEmpty(dirName)) { if (Array.IndexOf("image,flash,media,file".Split(','), dirName) == -1) { context.Response.Write("Invalid Directory name."); context.Response.End(); } dirPath += dirName + "/"; rootUrl += dirName + "/"; if (!Directory.Exists(dirPath)) { Directory.CreateDirectory(dirPath); } } //根据path参数,设置各路径和URL String path = context.Request.QueryString["path"]; path = String.IsNullOrEmpty(path) ? "" : path; if (path == "") { currentPath = dirPath; currentUrl = rootUrl; currentDirPath = ""; moveupDirPath = ""; } else { currentPath = dirPath + path; currentUrl = rootUrl + path; currentDirPath = path; moveupDirPath = Regex.Replace(currentDirPath, @"(.*?)[^\/]+\/$", "$1"); } //排序形式,name or size or type String order = context.Request.QueryString["order"]; order = String.IsNullOrEmpty(order) ? "" : order.ToLower(); //不允许使用..移动到上一级目录 if (Regex.IsMatch(path, @"\.\.")) { context.Response.Write("Access is not allowed."); context.Response.End(); } //最后一个字符不是/ if (path != "" && !path.EndsWith("/")) { context.Response.Write("Parameter is not valid."); context.Response.End(); } //目录不存在或不是目录 if (!Directory.Exists(currentPath)) { context.Response.Write("Directory does not exist."); context.Response.End(); } //遍历目录取得文件信息 string[] dirList = Directory.GetDirectories(currentPath); string[] fileList = Directory.GetFiles(currentPath); switch (order) { case "size": Array.Sort(dirList, new NameSorter()); Array.Sort(fileList, new SizeSorter()); break; case "type": Array.Sort(dirList, new NameSorter()); Array.Sort(fileList, new TypeSorter()); break; case "name": default: Array.Sort(dirList, new NameSorter()); Array.Sort(fileList, new NameSorter()); break; } Hashtable result = new Hashtable(); result["moveup_dir_path"] = moveupDirPath; result["current_dir_path"] = currentDirPath; result["current_url"] = currentUrl; result["total_count"] = dirList.Length + fileList.Length; List dirFileList = new List(); result["file_list"] = dirFileList; for (int i = 0; i < dirList.Length; i++) { DirectoryInfo dir = new DirectoryInfo(dirList[i]); Hashtable hash = new Hashtable(); hash["is_dir"] = true; hash["has_file"] = (dir.GetFileSystemInfos().Length > 0); hash["filesize"] = 0; hash["is_photo"] = false; hash["filetype"] = ""; hash["filename"] = dir.Name; hash["datetime"] = dir.LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss"); dirFileList.Add(hash); } for (int i = 0; i < fileList.Length; i++) { FileInfo file = new FileInfo(fileList[i]); Hashtable hash = new Hashtable(); hash["is_dir"] = false; hash["has_file"] = false; hash["filesize"] = file.Length; hash["is_photo"] = (Array.IndexOf(fileTypes.Split(','), file.Extension.Substring(1).ToLower()) >= 0); hash["filetype"] = file.Extension.Substring(1); hash["filename"] = file.Name; hash["datetime"] = file.LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss"); dirFileList.Add(hash); } context.Response.AddHeader("Content-Type", "application/json; charset=UTF-8"); context.Response.Write(JsonMapper.ToJson(result)); context.Response.End(); } public class NameSorter : IComparer { public int Compare(object x, object y) { if (x == null && y == null) { return 0; } if (x == null) { return -1; } if (y == null) { return 1; } FileInfo xInfo = new FileInfo(x.ToString()); FileInfo yInfo = new FileInfo(y.ToString()); return xInfo.FullName.CompareTo(yInfo.FullName); } } public class SizeSorter : IComparer { public int Compare(object x, object y) { if (x == null && y == null) { return 0; } if (x == null) { return -1; } if (y == null) { return 1; } FileInfo xInfo = new FileInfo(x.ToString()); FileInfo yInfo = new FileInfo(y.ToString()); return xInfo.Length.CompareTo(yInfo.Length); } } public class TypeSorter : IComparer { public int Compare(object x, object y) { if (x == null && y == null) { return 0; } if (x == null) { return -1; } if (y == null) { return 1; } FileInfo xInfo = new FileInfo(x.ToString()); FileInfo yInfo = new FileInfo(y.ToString()); return xInfo.Extension.CompareTo(yInfo.Extension); } } public bool IsReusable { get { return true; } } } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/asp.net/upload_json.ashx ================================================ <%@ webhandler Language="C#" class="Upload" %> /** * KindEditor ASP.NET * * 本ASP.NET程序是演示程序,建议不要直接在实际项目中使用。 * 如果您确定直接使用本程序,使用之前请仔细确认相关安全设置。 * */ using System; using System.Collections; using System.Web; using System.IO; using System.Globalization; using LitJson; public class Upload : IHttpHandler { private HttpContext context; public void ProcessRequest(HttpContext context) { String aspxUrl = context.Request.Path.Substring(0, context.Request.Path.LastIndexOf("/") + 1); //文件保存目录路径 String savePath = "../attached/"; //文件保存目录URL String saveUrl = aspxUrl + "../attached/"; //定义允许上传的文件扩展名 Hashtable extTable = new Hashtable(); extTable.Add("image", "gif,jpg,jpeg,png,bmp"); extTable.Add("flash", "swf,flv"); extTable.Add("media", "swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb"); extTable.Add("file", "doc,docx,xls,xlsx,ppt,htm,html,txt,zip,rar,gz,bz2"); //最大文件大小 int maxSize = 1000000; this.context = context; HttpPostedFile imgFile = context.Request.Files["imgFile"]; if (imgFile == null) { showError("请选择文件。"); } String dirPath = context.Server.MapPath(savePath); if (!Directory.Exists(dirPath)) { showError("上传目录不存在。"); } String dirName = context.Request.QueryString["dir"]; if (String.IsNullOrEmpty(dirName)) { dirName = "image"; } if (!extTable.ContainsKey(dirName)) { showError("目录名不正确。"); } String fileName = imgFile.FileName; String fileExt = Path.GetExtension(fileName).ToLower(); if (imgFile.InputStream == null || imgFile.InputStream.Length > maxSize) { showError("上传文件大小超过限制。"); } if (String.IsNullOrEmpty(fileExt) || Array.IndexOf(((String)extTable[dirName]).Split(','), fileExt.Substring(1).ToLower()) == -1) { showError("上传文件扩展名是不允许的扩展名。\n只允许" + ((String)extTable[dirName]) + "格式。"); } //创建文件夹 dirPath += dirName + "/"; saveUrl += dirName + "/"; if (!Directory.Exists(dirPath)) { Directory.CreateDirectory(dirPath); } String ymd = DateTime.Now.ToString("yyyyMMdd", DateTimeFormatInfo.InvariantInfo); dirPath += ymd + "/"; saveUrl += ymd + "/"; if (!Directory.Exists(dirPath)) { Directory.CreateDirectory(dirPath); } String newFileName = DateTime.Now.ToString("yyyyMMddHHmmss_ffff", DateTimeFormatInfo.InvariantInfo) + fileExt; String filePath = dirPath + newFileName; imgFile.SaveAs(filePath); String fileUrl = saveUrl + newFileName; Hashtable hash = new Hashtable(); hash["error"] = 0; hash["url"] = fileUrl; context.Response.AddHeader("Content-Type", "text/html; charset=UTF-8"); context.Response.Write(JsonMapper.ToJson(hash)); context.Response.End(); } private void showError(string message) { Hashtable hash = new Hashtable(); hash["error"] = 1; hash["message"] = message; context.Response.AddHeader("Content-Type", "text/html; charset=UTF-8"); context.Response.Write(JsonMapper.ToJson(hash)); context.Response.End(); } public bool IsReusable { get { return true; } } } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/auto-height.html ================================================ Auto Height Examples

                                              自动调整高度

                                              ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/colorpicker.html ================================================ ColorPicker Examples ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/custom-plugin.html ================================================ Custom Plugin Examples

                                              自定义插件

                                              ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/custom-theme.html ================================================ Custom Theme Examples

                                              默认风格

                                              简单风格

                                              ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/default.html ================================================ Default Examples

                                              默认模式



                                              ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/dialog.html ================================================ Dialog Examples ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/dynamic-load.html ================================================ Dynamic Load Examples

                                              异步加载

                                              ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/file-dialog.html ================================================ fileDialog Examples ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/file-manager.html ================================================ FileManager Examples ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/filter-mode.html ================================================ Filter Mode Examples

                                              关闭HTML过滤

                                              KindEditor 默认采用白名单过滤方式,可用 htmlTags 参数定义要保留的标签和属性。当然也可以用 filterMode 参数关闭过滤模式,保留所有标签。

                                              ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/image-dialog.html ================================================ ImageDialog Examples

                                              (网络图片 + 本地上传)

                                              (网络图片)

                                              (本地上传)

                                              ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/index.css ================================================ .ke-content { font-size: 12px; background-color: #ffffff; } .ke-content table { border-collapse:collapse; } .red { color: white; background-color: red; } .green { color: white; background-color: green; } .yellow { color: white; background-color: yellow; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/index.html ================================================ KindEditor Examples

                                              编辑器演示

                                              1. default.html (默认模式)
                                              2. simple.html (简单模式)
                                              3. dynamic-load.html (异步加载)
                                              4. multi-language.html (多语言)
                                              5. readonly.html (只读模式)
                                              6. newline.html (回车换行设置)
                                              7. word-count.html (统计字数)
                                              8. filter-mode.html (关闭HTML过滤)
                                              9. url-type.html (URL设置)
                                              10. paste-type.html (粘贴设置)
                                              11. auto-height.html (自动调整高度)
                                              12. custom-theme.html (自定义风格)
                                              13. qqstyle.html (自定义风格 仿QQ邮箱)
                                              14. custom-plugin.html (自定义插件)

                                              使用其它类库

                                              1. jquery.html (jQuery)
                                              2. jquery-ui.html (jQuery UI)

                                              单独调用组件

                                              1. node.html (Node操作)
                                              2. uploadbutton.html (上传按钮)
                                              3. dialog.html (弹出框)
                                              4. colorpicker.html (取色器)
                                              5. file-manager.html (浏览服务器)
                                              6. image-dialog.html (上传图片弹出框)
                                              7. multi-image-dialog.html (批量上传弹出框)
                                              8. file-dialog.html (上传文件弹出框)
                                              ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/jquery-ui/css/smoothness/jquery-ui-1.9.2.custom.css ================================================ /*! jQuery UI - v1.9.2 - 2012-11-23 * http://jqueryui.com * Includes: jquery.ui.core.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.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css * To view and modify this theme, visit http://jqueryui.com/themeroller/ * Copyright (c) 2012 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; } .ui-helper-clearfix:after { clear: both; } .ui-helper-clearfix { zoom: 1; } .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } /* 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: absolute; top: 0; left: 0; width: 100%; height: 100%; } .ui-accordion .ui-accordion-header { display: block; cursor: pointer; position: relative; margin-top: 2px; padding: .5em .5em .5em .7em; zoom: 1; } .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; zoom: 1; } .ui-autocomplete { position: absolute; top: 0; left: 0; cursor: default; } /* workarounds */ * html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */ .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */ .ui-button, .ui-button:link, .ui-button:visited, .ui-button:hover, .ui-button:active { text-decoration: none; } .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */ button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */ .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: 1.4; } .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; } .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 */ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */ .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-year {width: 100%;} .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 { border-left-width:0; } .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:0em; } /* 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 { float:right; } .ui-datepicker-rtl .ui-datepicker-group { float:right; } .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; } .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; } /* IE6 IFRAME FIX (taken from datepicker 1.5.3 */ .ui-datepicker-cover { position: absolute; /*must have*/ z-index: -1; /*must have*/ filter: mask(); /*must have*/ top: -4px; /*must have*/ left: -4px; /*must have*/ width: 200px; /*must have*/ height: 200px; /*must have*/ }.ui-dialog { position: absolute; top: 0; left: 0; padding: .2em; width: 300px; overflow: hidden; } .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; } .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } .ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; } .ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; 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: 14px; height: 14px; right: 3px; bottom: 3px; } .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; zoom: 1; width: 100%; } .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; zoom: 1; 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-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-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; } .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; 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; } .ui-spinner a.ui-spinner-button { border-top: none; border-bottom: none; border-right: none; } /* more specificity required here to overide default borders */ .ui-spinner .ui-icon { position: absolute; margin-top: -8px; top: 50%; left: 0; } /* vertical centre icon */ .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; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ .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: 0; padding: 0; white-space: nowrap; } .ui-tabs .ui-tabs-nav li a { 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 a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { cursor: text; } .ui-tabs .ui-tabs-nav li a, .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ .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; } /* Fades and background-images don't work well together in IE6, drop the image */ * html .ui-tooltip { background-image: none; } body .ui-tooltip { border-width: 2px; } /* Component containers ----------------------------------*/ .ui-widget { font-family: Verdana,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: Verdana,Arial,sans-serif; font-size: 1em; } .ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; } .ui-widget-content a { color: #222222; } .ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; } .ui-widget-header a { color: #222222; } /* Interaction states ----------------------------------*/ .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; } .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; 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 #999999; background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; } .ui-state-hover a, .ui-state-hover a:hover, .ui-state-hover a:link, .ui-state-hover a:visited { color: #212121; text-decoration: none; } .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; } .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; } /* Interaction Cues ----------------------------------*/ .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.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; background-image: url(images/ui-icons_222222_256x240.png); } .ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); } .ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); } .ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png); } .ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); } .ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_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-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 { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; } .ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; } .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; } .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } /* 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); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; } ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/jquery-ui/js/jquery-ui-1.9.2.custom.js ================================================ /*! jQuery UI - v1.9.2 - 2012-11-23 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.effect.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.progressbar.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.slider.js, jquery.ui.sortable.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js * Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */ (function( $, undefined ) { var uuid = 0, runiqueId = /^ui-id-\d+$/; // prevent duplicate loading // this is only a problem because we proxy existing functions // and we don't want to double proxy them $.ui = $.ui || {}; if ( $.ui.version ) { return; } $.extend( $.ui, { version: "1.9.2", keyCode: { BACKSPACE: 8, COMMA: 188, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, LEFT: 37, NUMPAD_ADD: 107, NUMPAD_DECIMAL: 110, NUMPAD_DIVIDE: 111, NUMPAD_ENTER: 108, NUMPAD_MULTIPLY: 106, NUMPAD_SUBTRACT: 109, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SPACE: 32, TAB: 9, UP: 38 } }); // plugins $.fn.extend({ _focus: $.fn.focus, focus: function( delay, fn ) { return typeof delay === "number" ? this.each(function() { var elem = this; setTimeout(function() { $( elem ).focus(); if ( fn ) { fn.call( elem ); } }, delay ); }) : this._focus.apply( this, arguments ); }, scrollParent: function() { var scrollParent; if (($.ui.ie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) { scrollParent = this.parents().filter(function() { return (/(relative|absolute|fixed)/).test($.css(this,'position')) && (/(auto|scroll)/).test($.css(this,'overflow')+$.css(this,'overflow-y')+$.css(this,'overflow-x')); }).eq(0); } else { scrollParent = this.parents().filter(function() { return (/(auto|scroll)/).test($.css(this,'overflow')+$.css(this,'overflow-y')+$.css(this,'overflow-x')); }).eq(0); } return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent; }, zIndex: function( zIndex ) { if ( zIndex !== undefined ) { return this.css( "zIndex", zIndex ); } if ( this.length ) { var elem = $( this[ 0 ] ), position, value; while ( elem.length && elem[ 0 ] !== document ) { // Ignore z-index if position is set to a value where z-index is ignored by the browser // This makes behavior of this function consistent across browsers // WebKit always returns auto if the element is positioned position = elem.css( "position" ); if ( position === "absolute" || position === "relative" || position === "fixed" ) { // IE returns 0 when zIndex is not specified // other browsers return a string // we ignore the case of nested elements with an explicit value of 0 //
                                              value = parseInt( elem.css( "zIndex" ), 10 ); if ( !isNaN( value ) && value !== 0 ) { return value; } } elem = elem.parent(); } } return 0; }, uniqueId: function() { return this.each(function() { if ( !this.id ) { this.id = "ui-id-" + (++uuid); } }); }, removeUniqueId: function() { return this.each(function() { if ( runiqueId.test( this.id ) ) { $( this ).removeAttr( "id" ); } }); } }); // selectors function focusable( element, isTabIndexNotNaN ) { var map, mapName, img, nodeName = element.nodeName.toLowerCase(); if ( "area" === nodeName ) { map = element.parentNode; mapName = map.name; if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) { return false; } img = $( "img[usemap=#" + mapName + "]" )[0]; return !!img && visible( img ); } return ( /input|select|textarea|button|object/.test( nodeName ) ? !element.disabled : "a" === nodeName ? element.href || isTabIndexNotNaN : isTabIndexNotNaN) && // the element and all of its ancestors must be visible visible( element ); } function visible( element ) { return $.expr.filters.visible( element ) && !$( element ).parents().andSelf().filter(function() { return $.css( this, "visibility" ) === "hidden"; }).length; } $.extend( $.expr[ ":" ], { data: $.expr.createPseudo ? $.expr.createPseudo(function( dataName ) { return function( elem ) { return !!$.data( elem, dataName ); }; }) : // support: jQuery <1.8 function( elem, i, match ) { return !!$.data( elem, match[ 3 ] ); }, focusable: function( element ) { return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) ); }, tabbable: function( element ) { var tabIndex = $.attr( element, "tabindex" ), isTabIndexNaN = isNaN( tabIndex ); return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN ); } }); // support $(function() { var body = document.body, div = body.appendChild( div = document.createElement( "div" ) ); // access offsetHeight before setting the style to prevent a layout bug // in IE 9 which causes the element to continue to take up space even // after it is removed from the DOM (#8026) div.offsetHeight; $.extend( div.style, { minHeight: "100px", height: "auto", padding: 0, borderWidth: 0 }); $.support.minHeight = div.offsetHeight === 100; $.support.selectstart = "onselectstart" in div; // set display to none to avoid a layout bug in IE // http://dev.jquery.com/ticket/4014 body.removeChild( div ).style.display = "none"; }); // support: jQuery <1.8 if ( !$( "" ).outerWidth( 1 ).jquery ) { $.each( [ "Width", "Height" ], function( i, name ) { var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ], type = name.toLowerCase(), orig = { innerWidth: $.fn.innerWidth, innerHeight: $.fn.innerHeight, outerWidth: $.fn.outerWidth, outerHeight: $.fn.outerHeight }; function reduce( elem, size, border, margin ) { $.each( side, function() { size -= parseFloat( $.css( elem, "padding" + this ) ) || 0; if ( border ) { size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0; } if ( margin ) { size -= parseFloat( $.css( elem, "margin" + this ) ) || 0; } }); return size; } $.fn[ "inner" + name ] = function( size ) { if ( size === undefined ) { return orig[ "inner" + name ].call( this ); } return this.each(function() { $( this ).css( type, reduce( this, size ) + "px" ); }); }; $.fn[ "outer" + name] = function( size, margin ) { if ( typeof size !== "number" ) { return orig[ "outer" + name ].call( this, size ); } return this.each(function() { $( this).css( type, reduce( this, size, true, margin ) + "px" ); }); }; }); } // support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413) if ( $( "" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) { $.fn.removeData = (function( removeData ) { return function( key ) { if ( arguments.length ) { return removeData.call( this, $.camelCase( key ) ); } else { return removeData.call( this ); } }; })( $.fn.removeData ); } // deprecated (function() { var uaMatch = /msie ([\w.]+)/.exec( navigator.userAgent.toLowerCase() ) || []; $.ui.ie = uaMatch.length ? true : false; $.ui.ie6 = parseFloat( uaMatch[ 1 ], 10 ) === 6; })(); $.fn.extend({ disableSelection: function() { return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) + ".ui-disableSelection", function( event ) { event.preventDefault(); }); }, enableSelection: function() { return this.unbind( ".ui-disableSelection" ); } }); $.extend( $.ui, { // $.ui.plugin is deprecated. Use the proxy pattern instead. plugin: { add: function( module, option, set ) { var i, proto = $.ui[ module ].prototype; for ( i in set ) { proto.plugins[ i ] = proto.plugins[ i ] || []; proto.plugins[ i ].push( [ option, set[ i ] ] ); } }, call: function( instance, name, args ) { var i, set = instance.plugins[ name ]; if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) { return; } for ( i = 0; i < set.length; i++ ) { if ( instance.options[ set[ i ][ 0 ] ] ) { set[ i ][ 1 ].apply( instance.element, args ); } } } }, contains: $.contains, // only used by resizable hasScroll: function( el, a ) { //If overflow is hidden, the element might have extra content, but the user wants to hide it if ( $( el ).css( "overflow" ) === "hidden") { return false; } var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop", has = false; if ( el[ scroll ] > 0 ) { return true; } // TODO: determine which cases actually cause this to happen // if the element doesn't have the scroll set, see if it's possible to // set the scroll el[ scroll ] = 1; has = ( el[ scroll ] > 0 ); el[ scroll ] = 0; return has; }, // these are odd functions, fix the API or move into individual plugins isOverAxis: function( x, reference, size ) { //Determines when x coordinate is over "b" element axis return ( x > reference ) && ( x < ( reference + size ) ); }, isOver: function( y, x, top, left, height, width ) { //Determines when x, y coordinates is over "b" element return $.ui.isOverAxis( y, top, height ) && $.ui.isOverAxis( x, left, width ); } }); })( jQuery ); (function( $, undefined ) { var uuid = 0, slice = Array.prototype.slice, _cleanData = $.cleanData; $.cleanData = function( elems ) { for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) { try { $( elem ).triggerHandler( "remove" ); // http://bugs.jquery.com/ticket/8235 } catch( e ) {} } _cleanData( elems ); }; $.widget = function( name, base, prototype ) { var fullName, existingConstructor, constructor, basePrototype, namespace = name.split( "." )[ 0 ]; name = name.split( "." )[ 1 ]; fullName = namespace + "-" + name; if ( !prototype ) { prototype = base; base = $.Widget; } // create selector for plugin $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) { return !!$.data( elem, fullName ); }; $[ namespace ] = $[ namespace ] || {}; existingConstructor = $[ namespace ][ name ]; constructor = $[ namespace ][ name ] = function( options, element ) { // allow instantiation without "new" keyword if ( !this._createWidget ) { return new constructor( options, element ); } // allow instantiation without initializing for simple inheritance // must use "new" keyword (the code above always passes args) if ( arguments.length ) { this._createWidget( options, element ); } }; // extend with the existing constructor to carry over any static properties $.extend( constructor, existingConstructor, { version: prototype.version, // copy the object used to create the prototype in case we need to // redefine the widget later _proto: $.extend( {}, prototype ), // track widgets that inherit from this widget in case this widget is // redefined after a widget inherits from it _childConstructors: [] }); basePrototype = new base(); // we need to make the options hash a property directly on the new instance // otherwise we'll modify the options hash on the prototype that we're // inheriting from basePrototype.options = $.widget.extend( {}, basePrototype.options ); $.each( prototype, function( prop, value ) { if ( $.isFunction( value ) ) { prototype[ prop ] = (function() { var _super = function() { return base.prototype[ prop ].apply( this, arguments ); }, _superApply = function( args ) { return base.prototype[ prop ].apply( this, args ); }; return function() { var __super = this._super, __superApply = this._superApply, returnValue; this._super = _super; this._superApply = _superApply; returnValue = value.apply( this, arguments ); this._super = __super; this._superApply = __superApply; return returnValue; }; })(); } }); constructor.prototype = $.widget.extend( basePrototype, { // TODO: remove support for widgetEventPrefix // always use the name + a colon as the prefix, e.g., draggable:start // don't prefix for widgets that aren't DOM-based widgetEventPrefix: existingConstructor ? basePrototype.widgetEventPrefix : name }, prototype, { constructor: constructor, namespace: namespace, widgetName: name, // TODO remove widgetBaseClass, see #8155 widgetBaseClass: fullName, widgetFullName: fullName }); // If this widget is being redefined then we need to find all widgets that // are inheriting from it and redefine all of them so that they inherit from // the new version of this widget. We're essentially trying to replace one // level in the prototype chain. if ( existingConstructor ) { $.each( existingConstructor._childConstructors, function( i, child ) { var childPrototype = child.prototype; // redefine the child widget using the same prototype that was // originally used, but inherit from the new version of the base $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto ); }); // remove the list of existing child constructors from the old constructor // so the old child constructors can be garbage collected delete existingConstructor._childConstructors; } else { base._childConstructors.push( constructor ); } $.widget.bridge( name, constructor ); }; $.widget.extend = function( target ) { var input = slice.call( arguments, 1 ), inputIndex = 0, inputLength = input.length, key, value; for ( ; inputIndex < inputLength; inputIndex++ ) { for ( key in input[ inputIndex ] ) { value = input[ inputIndex ][ key ]; if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) { // Clone objects if ( $.isPlainObject( value ) ) { target[ key ] = $.isPlainObject( target[ key ] ) ? $.widget.extend( {}, target[ key ], value ) : // Don't extend strings, arrays, etc. with objects $.widget.extend( {}, value ); // Copy everything else by reference } else { target[ key ] = value; } } } } return target; }; $.widget.bridge = function( name, object ) { var fullName = object.prototype.widgetFullName || name; $.fn[ name ] = function( options ) { var isMethodCall = typeof options === "string", args = slice.call( arguments, 1 ), returnValue = this; // allow multiple hashes to be passed on init options = !isMethodCall && args.length ? $.widget.extend.apply( null, [ options ].concat(args) ) : options; if ( isMethodCall ) { this.each(function() { var methodValue, instance = $.data( this, fullName ); if ( !instance ) { return $.error( "cannot call methods on " + name + " prior to initialization; " + "attempted to call method '" + options + "'" ); } if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) { return $.error( "no such method '" + options + "' for " + name + " widget instance" ); } methodValue = instance[ options ].apply( instance, args ); if ( methodValue !== instance && methodValue !== undefined ) { returnValue = methodValue && methodValue.jquery ? returnValue.pushStack( methodValue.get() ) : methodValue; return false; } }); } else { this.each(function() { var instance = $.data( this, fullName ); if ( instance ) { instance.option( options || {} )._init(); } else { $.data( this, fullName, new object( options, this ) ); } }); } return returnValue; }; }; $.Widget = function( /* options, element */ ) {}; $.Widget._childConstructors = []; $.Widget.prototype = { widgetName: "widget", widgetEventPrefix: "", defaultElement: "
                                              ", options: { disabled: false, // callbacks create: null }, _createWidget: function( options, element ) { element = $( element || this.defaultElement || this )[ 0 ]; this.element = $( element ); this.uuid = uuid++; this.eventNamespace = "." + this.widgetName + this.uuid; this.options = $.widget.extend( {}, this.options, this._getCreateOptions(), options ); this.bindings = $(); this.hoverable = $(); this.focusable = $(); if ( element !== this ) { // 1.9 BC for #7810 // TODO remove dual storage $.data( element, this.widgetName, this ); $.data( element, this.widgetFullName, this ); this._on( true, this.element, { remove: function( event ) { if ( event.target === element ) { this.destroy(); } } }); this.document = $( element.style ? // element within the document element.ownerDocument : // element is window or document element.document || element ); this.window = $( this.document[0].defaultView || this.document[0].parentWindow ); } this._create(); this._trigger( "create", null, this._getCreateEventData() ); this._init(); }, _getCreateOptions: $.noop, _getCreateEventData: $.noop, _create: $.noop, _init: $.noop, destroy: function() { this._destroy(); // we can probably remove the unbind calls in 2.0 // all event bindings should go through this._on() this.element .unbind( this.eventNamespace ) // 1.9 BC for #7810 // TODO remove dual storage .removeData( this.widgetName ) .removeData( this.widgetFullName ) // support: jquery <1.6.3 // http://bugs.jquery.com/ticket/9413 .removeData( $.camelCase( this.widgetFullName ) ); this.widget() .unbind( this.eventNamespace ) .removeAttr( "aria-disabled" ) .removeClass( this.widgetFullName + "-disabled " + "ui-state-disabled" ); // clean up events and states this.bindings.unbind( this.eventNamespace ); this.hoverable.removeClass( "ui-state-hover" ); this.focusable.removeClass( "ui-state-focus" ); }, _destroy: $.noop, widget: function() { return this.element; }, option: function( key, value ) { var options = key, parts, curOption, i; if ( arguments.length === 0 ) { // don't return a reference to the internal hash return $.widget.extend( {}, this.options ); } if ( typeof key === "string" ) { // handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } } options = {}; parts = key.split( "." ); key = parts.shift(); if ( parts.length ) { curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] ); for ( i = 0; i < parts.length - 1; i++ ) { curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {}; curOption = curOption[ parts[ i ] ]; } key = parts.pop(); if ( value === undefined ) { return curOption[ key ] === undefined ? null : curOption[ key ]; } curOption[ key ] = value; } else { if ( value === undefined ) { return this.options[ key ] === undefined ? null : this.options[ key ]; } options[ key ] = value; } } this._setOptions( options ); return this; }, _setOptions: function( options ) { var key; for ( key in options ) { this._setOption( key, options[ key ] ); } return this; }, _setOption: function( key, value ) { this.options[ key ] = value; if ( key === "disabled" ) { this.widget() .toggleClass( this.widgetFullName + "-disabled ui-state-disabled", !!value ) .attr( "aria-disabled", value ); this.hoverable.removeClass( "ui-state-hover" ); this.focusable.removeClass( "ui-state-focus" ); } return this; }, enable: function() { return this._setOption( "disabled", false ); }, disable: function() { return this._setOption( "disabled", true ); }, _on: function( suppressDisabledCheck, element, handlers ) { var delegateElement, instance = this; // no suppressDisabledCheck flag, shuffle arguments if ( typeof suppressDisabledCheck !== "boolean" ) { handlers = element; element = suppressDisabledCheck; suppressDisabledCheck = false; } // no element argument, shuffle and use this.element if ( !handlers ) { handlers = element; element = this.element; delegateElement = this.widget(); } else { // accept selectors, DOM elements element = delegateElement = $( element ); this.bindings = this.bindings.add( element ); } $.each( handlers, function( event, handler ) { function handlerProxy() { // allow widgets to customize the disabled handling // - disabled as an array instead of boolean // - disabled class as method for disabling individual parts if ( !suppressDisabledCheck && ( instance.options.disabled === true || $( this ).hasClass( "ui-state-disabled" ) ) ) { return; } return ( typeof handler === "string" ? instance[ handler ] : handler ) .apply( instance, arguments ); } // copy the guid so direct unbinding works if ( typeof handler !== "string" ) { handlerProxy.guid = handler.guid = handler.guid || handlerProxy.guid || $.guid++; } var match = event.match( /^(\w+)\s*(.*)$/ ), eventName = match[1] + instance.eventNamespace, selector = match[2]; if ( selector ) { delegateElement.delegate( selector, eventName, handlerProxy ); } else { element.bind( eventName, handlerProxy ); } }); }, _off: function( element, eventName ) { eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) + this.eventNamespace; element.unbind( eventName ).undelegate( eventName ); }, _delay: function( handler, delay ) { function handlerProxy() { return ( typeof handler === "string" ? instance[ handler ] : handler ) .apply( instance, arguments ); } var instance = this; return setTimeout( handlerProxy, delay || 0 ); }, _hoverable: function( element ) { this.hoverable = this.hoverable.add( element ); this._on( element, { mouseenter: function( event ) { $( event.currentTarget ).addClass( "ui-state-hover" ); }, mouseleave: function( event ) { $( event.currentTarget ).removeClass( "ui-state-hover" ); } }); }, _focusable: function( element ) { this.focusable = this.focusable.add( element ); this._on( element, { focusin: function( event ) { $( event.currentTarget ).addClass( "ui-state-focus" ); }, focusout: function( event ) { $( event.currentTarget ).removeClass( "ui-state-focus" ); } }); }, _trigger: function( type, event, data ) { var prop, orig, callback = this.options[ type ]; data = data || {}; event = $.Event( event ); event.type = ( type === this.widgetEventPrefix ? type : this.widgetEventPrefix + type ).toLowerCase(); // the original event may come from any element // so we need to reset the target on the new event event.target = this.element[ 0 ]; // copy original event properties over to the new event orig = event.originalEvent; if ( orig ) { for ( prop in orig ) { if ( !( prop in event ) ) { event[ prop ] = orig[ prop ]; } } } this.element.trigger( event, data ); return !( $.isFunction( callback ) && callback.apply( this.element[0], [ event ].concat( data ) ) === false || event.isDefaultPrevented() ); } }; $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) { $.Widget.prototype[ "_" + method ] = function( element, options, callback ) { if ( typeof options === "string" ) { options = { effect: options }; } var hasOptions, effectName = !options ? method : options === true || typeof options === "number" ? defaultEffect : options.effect || defaultEffect; options = options || {}; if ( typeof options === "number" ) { options = { duration: options }; } hasOptions = !$.isEmptyObject( options ); options.complete = callback; if ( options.delay ) { element.delay( options.delay ); } if ( hasOptions && $.effects && ( $.effects.effect[ effectName ] || $.uiBackCompat !== false && $.effects[ effectName ] ) ) { element[ method ]( options ); } else if ( effectName !== method && element[ effectName ] ) { element[ effectName ]( options.duration, options.easing, callback ); } else { element.queue(function( next ) { $( this )[ method ](); if ( callback ) { callback.call( element[ 0 ] ); } next(); }); } }; }); // DEPRECATED if ( $.uiBackCompat !== false ) { $.Widget.prototype._getCreateOptions = function() { return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ]; }; } })( jQuery ); (function( $, undefined ) { var mouseHandled = false; $( document ).mouseup( function( e ) { mouseHandled = false; }); $.widget("ui.mouse", { version: "1.9.2", options: { cancel: 'input,textarea,button,select,option', distance: 1, delay: 0 }, _mouseInit: function() { var that = this; this.element .bind('mousedown.'+this.widgetName, function(event) { return that._mouseDown(event); }) .bind('click.'+this.widgetName, function(event) { if (true === $.data(event.target, that.widgetName + '.preventClickEvent')) { $.removeData(event.target, that.widgetName + '.preventClickEvent'); event.stopImmediatePropagation(); return false; } }); this.started = false; }, // TODO: make sure destroying one instance of mouse doesn't mess with // other instances of mouse _mouseDestroy: function() { this.element.unbind('.'+this.widgetName); if ( this._mouseMoveDelegate ) { $(document) .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); } }, _mouseDown: function(event) { // don't let more than one widget handle mouseStart if( mouseHandled ) { return; } // we may have missed mouseup (out of window) (this._mouseStarted && this._mouseUp(event)); this._mouseDownEvent = event; var that = this, btnIsLeft = (event.which === 1), // event.target.nodeName works around a bug in IE 8 with // disabled inputs (#7620) elIsCancel = (typeof this.options.cancel === "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false); if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) { return true; } this.mouseDelayMet = !this.options.delay; if (!this.mouseDelayMet) { this._mouseDelayTimer = setTimeout(function() { that.mouseDelayMet = true; }, this.options.delay); } if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { this._mouseStarted = (this._mouseStart(event) !== false); if (!this._mouseStarted) { event.preventDefault(); return true; } } // Click event may never have fired (Gecko & Opera) if (true === $.data(event.target, this.widgetName + '.preventClickEvent')) { $.removeData(event.target, this.widgetName + '.preventClickEvent'); } // these delegates are required to keep context this._mouseMoveDelegate = function(event) { return that._mouseMove(event); }; this._mouseUpDelegate = function(event) { return that._mouseUp(event); }; $(document) .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate) .bind('mouseup.'+this.widgetName, this._mouseUpDelegate); event.preventDefault(); mouseHandled = true; return true; }, _mouseMove: function(event) { // IE mouseup check - mouseup happened when mouse was out of window if ($.ui.ie && !(document.documentMode >= 9) && !event.button) { return this._mouseUp(event); } if (this._mouseStarted) { this._mouseDrag(event); return event.preventDefault(); } if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { this._mouseStarted = (this._mouseStart(this._mouseDownEvent, event) !== false); (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event)); } return !this._mouseStarted; }, _mouseUp: function(event) { $(document) .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); if (this._mouseStarted) { this._mouseStarted = false; if (event.target === this._mouseDownEvent.target) { $.data(event.target, this.widgetName + '.preventClickEvent', true); } this._mouseStop(event); } return false; }, _mouseDistanceMet: function(event) { return (Math.max( Math.abs(this._mouseDownEvent.pageX - event.pageX), Math.abs(this._mouseDownEvent.pageY - event.pageY) ) >= this.options.distance ); }, _mouseDelayMet: function(event) { return this.mouseDelayMet; }, // These are placeholder methods, to be overriden by extending plugin _mouseStart: function(event) {}, _mouseDrag: function(event) {}, _mouseStop: function(event) {}, _mouseCapture: function(event) { return true; } }); })(jQuery); (function( $, undefined ) { $.ui = $.ui || {}; var cachedScrollbarWidth, max = Math.max, abs = Math.abs, round = Math.round, rhorizontal = /left|center|right/, rvertical = /top|center|bottom/, roffset = /[\+\-]\d+%?/, rposition = /^\w+/, rpercent = /%$/, _position = $.fn.position; function getOffsets( offsets, width, height ) { return [ parseInt( offsets[ 0 ], 10 ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ), parseInt( offsets[ 1 ], 10 ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 ) ]; } function parseCss( element, property ) { return parseInt( $.css( element, property ), 10 ) || 0; } $.position = { scrollbarWidth: function() { if ( cachedScrollbarWidth !== undefined ) { return cachedScrollbarWidth; } var w1, w2, div = $( "
                                              " ), innerDiv = div.children()[0]; $( "body" ).append( div ); w1 = innerDiv.offsetWidth; div.css( "overflow", "scroll" ); w2 = innerDiv.offsetWidth; if ( w1 === w2 ) { w2 = div[0].clientWidth; } div.remove(); return (cachedScrollbarWidth = w1 - w2); }, getScrollInfo: function( within ) { var overflowX = within.isWindow ? "" : within.element.css( "overflow-x" ), overflowY = within.isWindow ? "" : within.element.css( "overflow-y" ), hasOverflowX = overflowX === "scroll" || ( overflowX === "auto" && within.width < within.element[0].scrollWidth ), hasOverflowY = overflowY === "scroll" || ( overflowY === "auto" && within.height < within.element[0].scrollHeight ); return { width: hasOverflowX ? $.position.scrollbarWidth() : 0, height: hasOverflowY ? $.position.scrollbarWidth() : 0 }; }, getWithinInfo: function( element ) { var withinElement = $( element || window ), isWindow = $.isWindow( withinElement[0] ); return { element: withinElement, isWindow: isWindow, offset: withinElement.offset() || { left: 0, top: 0 }, scrollLeft: withinElement.scrollLeft(), scrollTop: withinElement.scrollTop(), width: isWindow ? withinElement.width() : withinElement.outerWidth(), height: isWindow ? withinElement.height() : withinElement.outerHeight() }; } }; $.fn.position = function( options ) { if ( !options || !options.of ) { return _position.apply( this, arguments ); } // make a copy, we don't want to modify arguments options = $.extend( {}, options ); var atOffset, targetWidth, targetHeight, targetOffset, basePosition, target = $( options.of ), within = $.position.getWithinInfo( options.within ), scrollInfo = $.position.getScrollInfo( within ), targetElem = target[0], collision = ( options.collision || "flip" ).split( " " ), offsets = {}; if ( targetElem.nodeType === 9 ) { targetWidth = target.width(); targetHeight = target.height(); targetOffset = { top: 0, left: 0 }; } else if ( $.isWindow( targetElem ) ) { targetWidth = target.width(); targetHeight = target.height(); targetOffset = { top: target.scrollTop(), left: target.scrollLeft() }; } else if ( targetElem.preventDefault ) { // force left top to allow flipping options.at = "left top"; targetWidth = targetHeight = 0; targetOffset = { top: targetElem.pageY, left: targetElem.pageX }; } else { targetWidth = target.outerWidth(); targetHeight = target.outerHeight(); targetOffset = target.offset(); } // clone to reuse original targetOffset later basePosition = $.extend( {}, targetOffset ); // force my and at to have valid horizontal and vertical positions // if a value is missing or invalid, it will be converted to center $.each( [ "my", "at" ], function() { var pos = ( options[ this ] || "" ).split( " " ), horizontalOffset, verticalOffset; if ( pos.length === 1) { pos = rhorizontal.test( pos[ 0 ] ) ? pos.concat( [ "center" ] ) : rvertical.test( pos[ 0 ] ) ? [ "center" ].concat( pos ) : [ "center", "center" ]; } pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center"; pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center"; // calculate offsets horizontalOffset = roffset.exec( pos[ 0 ] ); verticalOffset = roffset.exec( pos[ 1 ] ); offsets[ this ] = [ horizontalOffset ? horizontalOffset[ 0 ] : 0, verticalOffset ? verticalOffset[ 0 ] : 0 ]; // reduce to just the positions without the offsets options[ this ] = [ rposition.exec( pos[ 0 ] )[ 0 ], rposition.exec( pos[ 1 ] )[ 0 ] ]; }); // normalize collision option if ( collision.length === 1 ) { collision[ 1 ] = collision[ 0 ]; } if ( options.at[ 0 ] === "right" ) { basePosition.left += targetWidth; } else if ( options.at[ 0 ] === "center" ) { basePosition.left += targetWidth / 2; } if ( options.at[ 1 ] === "bottom" ) { basePosition.top += targetHeight; } else if ( options.at[ 1 ] === "center" ) { basePosition.top += targetHeight / 2; } atOffset = getOffsets( offsets.at, targetWidth, targetHeight ); basePosition.left += atOffset[ 0 ]; basePosition.top += atOffset[ 1 ]; return this.each(function() { var collisionPosition, using, elem = $( this ), elemWidth = elem.outerWidth(), elemHeight = elem.outerHeight(), marginLeft = parseCss( this, "marginLeft" ), marginTop = parseCss( this, "marginTop" ), collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) + scrollInfo.width, collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) + scrollInfo.height, position = $.extend( {}, basePosition ), myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() ); if ( options.my[ 0 ] === "right" ) { position.left -= elemWidth; } else if ( options.my[ 0 ] === "center" ) { position.left -= elemWidth / 2; } if ( options.my[ 1 ] === "bottom" ) { position.top -= elemHeight; } else if ( options.my[ 1 ] === "center" ) { position.top -= elemHeight / 2; } position.left += myOffset[ 0 ]; position.top += myOffset[ 1 ]; // if the browser doesn't support fractions, then round for consistent results if ( !$.support.offsetFractions ) { position.left = round( position.left ); position.top = round( position.top ); } collisionPosition = { marginLeft: marginLeft, marginTop: marginTop }; $.each( [ "left", "top" ], function( i, dir ) { if ( $.ui.position[ collision[ i ] ] ) { $.ui.position[ collision[ i ] ][ dir ]( position, { targetWidth: targetWidth, targetHeight: targetHeight, elemWidth: elemWidth, elemHeight: elemHeight, collisionPosition: collisionPosition, collisionWidth: collisionWidth, collisionHeight: collisionHeight, offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ], my: options.my, at: options.at, within: within, elem : elem }); } }); if ( $.fn.bgiframe ) { elem.bgiframe(); } if ( options.using ) { // adds feedback as second argument to using callback, if present using = function( props ) { var left = targetOffset.left - position.left, right = left + targetWidth - elemWidth, top = targetOffset.top - position.top, bottom = top + targetHeight - elemHeight, feedback = { target: { element: target, left: targetOffset.left, top: targetOffset.top, width: targetWidth, height: targetHeight }, element: { element: elem, left: position.left, top: position.top, width: elemWidth, height: elemHeight }, horizontal: right < 0 ? "left" : left > 0 ? "right" : "center", vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle" }; if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) { feedback.horizontal = "center"; } if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) { feedback.vertical = "middle"; } if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) { feedback.important = "horizontal"; } else { feedback.important = "vertical"; } options.using.call( this, props, feedback ); }; } elem.offset( $.extend( position, { using: using } ) ); }); }; $.ui.position = { fit: { left: function( position, data ) { var within = data.within, withinOffset = within.isWindow ? within.scrollLeft : within.offset.left, outerWidth = within.width, collisionPosLeft = position.left - data.collisionPosition.marginLeft, overLeft = withinOffset - collisionPosLeft, overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset, newOverRight; // element is wider than within if ( data.collisionWidth > outerWidth ) { // element is initially over the left side of within if ( overLeft > 0 && overRight <= 0 ) { newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset; position.left += overLeft - newOverRight; // element is initially over right side of within } else if ( overRight > 0 && overLeft <= 0 ) { position.left = withinOffset; // element is initially over both left and right sides of within } else { if ( overLeft > overRight ) { position.left = withinOffset + outerWidth - data.collisionWidth; } else { position.left = withinOffset; } } // too far left -> align with left edge } else if ( overLeft > 0 ) { position.left += overLeft; // too far right -> align with right edge } else if ( overRight > 0 ) { position.left -= overRight; // adjust based on position and margin } else { position.left = max( position.left - collisionPosLeft, position.left ); } }, top: function( position, data ) { var within = data.within, withinOffset = within.isWindow ? within.scrollTop : within.offset.top, outerHeight = data.within.height, collisionPosTop = position.top - data.collisionPosition.marginTop, overTop = withinOffset - collisionPosTop, overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset, newOverBottom; // element is taller than within if ( data.collisionHeight > outerHeight ) { // element is initially over the top of within if ( overTop > 0 && overBottom <= 0 ) { newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset; position.top += overTop - newOverBottom; // element is initially over bottom of within } else if ( overBottom > 0 && overTop <= 0 ) { position.top = withinOffset; // element is initially over both top and bottom of within } else { if ( overTop > overBottom ) { position.top = withinOffset + outerHeight - data.collisionHeight; } else { position.top = withinOffset; } } // too far up -> align with top } else if ( overTop > 0 ) { position.top += overTop; // too far down -> align with bottom edge } else if ( overBottom > 0 ) { position.top -= overBottom; // adjust based on position and margin } else { position.top = max( position.top - collisionPosTop, position.top ); } } }, flip: { left: function( position, data ) { var within = data.within, withinOffset = within.offset.left + within.scrollLeft, outerWidth = within.width, offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left, collisionPosLeft = position.left - data.collisionPosition.marginLeft, overLeft = collisionPosLeft - offsetLeft, overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft, myOffset = data.my[ 0 ] === "left" ? -data.elemWidth : data.my[ 0 ] === "right" ? data.elemWidth : 0, atOffset = data.at[ 0 ] === "left" ? data.targetWidth : data.at[ 0 ] === "right" ? -data.targetWidth : 0, offset = -2 * data.offset[ 0 ], newOverRight, newOverLeft; if ( overLeft < 0 ) { newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - outerWidth - withinOffset; if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) { position.left += myOffset + atOffset + offset; } } else if ( overRight > 0 ) { newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset + atOffset + offset - offsetLeft; if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) { position.left += myOffset + atOffset + offset; } } }, top: function( position, data ) { var within = data.within, withinOffset = within.offset.top + within.scrollTop, outerHeight = within.height, offsetTop = within.isWindow ? within.scrollTop : within.offset.top, collisionPosTop = position.top - data.collisionPosition.marginTop, overTop = collisionPosTop - offsetTop, overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop, top = data.my[ 1 ] === "top", myOffset = top ? -data.elemHeight : data.my[ 1 ] === "bottom" ? data.elemHeight : 0, atOffset = data.at[ 1 ] === "top" ? data.targetHeight : data.at[ 1 ] === "bottom" ? -data.targetHeight : 0, offset = -2 * data.offset[ 1 ], newOverTop, newOverBottom; if ( overTop < 0 ) { newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset; if ( ( position.top + myOffset + atOffset + offset) > overTop && ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) ) { position.top += myOffset + atOffset + offset; } } else if ( overBottom > 0 ) { newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop; if ( ( position.top + myOffset + atOffset + offset) > overBottom && ( newOverTop > 0 || abs( newOverTop ) < overBottom ) ) { position.top += myOffset + atOffset + offset; } } } }, flipfit: { left: function() { $.ui.position.flip.left.apply( this, arguments ); $.ui.position.fit.left.apply( this, arguments ); }, top: function() { $.ui.position.flip.top.apply( this, arguments ); $.ui.position.fit.top.apply( this, arguments ); } } }; // fraction support test (function () { var testElement, testElementParent, testElementStyle, offsetLeft, i, body = document.getElementsByTagName( "body" )[ 0 ], div = document.createElement( "div" ); //Create a "fake body" for testing based on method used in jQuery.support testElement = document.createElement( body ? "div" : "body" ); testElementStyle = { visibility: "hidden", width: 0, height: 0, border: 0, margin: 0, background: "none" }; if ( body ) { $.extend( testElementStyle, { position: "absolute", left: "-1000px", top: "-1000px" }); } for ( i in testElementStyle ) { testElement.style[ i ] = testElementStyle[ i ]; } testElement.appendChild( div ); testElementParent = body || document.documentElement; testElementParent.insertBefore( testElement, testElementParent.firstChild ); div.style.cssText = "position: absolute; left: 10.7432222px;"; offsetLeft = $( div ).offset().left; $.support.offsetFractions = offsetLeft > 10 && offsetLeft < 11; testElement.innerHTML = ""; testElementParent.removeChild( testElement ); })(); // DEPRECATED if ( $.uiBackCompat !== false ) { // offset option (function( $ ) { var _position = $.fn.position; $.fn.position = function( options ) { if ( !options || !options.offset ) { return _position.call( this, options ); } var offset = options.offset.split( " " ), at = options.at.split( " " ); if ( offset.length === 1 ) { offset[ 1 ] = offset[ 0 ]; } if ( /^\d/.test( offset[ 0 ] ) ) { offset[ 0 ] = "+" + offset[ 0 ]; } if ( /^\d/.test( offset[ 1 ] ) ) { offset[ 1 ] = "+" + offset[ 1 ]; } if ( at.length === 1 ) { if ( /left|center|right/.test( at[ 0 ] ) ) { at[ 1 ] = "center"; } else { at[ 1 ] = at[ 0 ]; at[ 0 ] = "center"; } } return _position.call( this, $.extend( options, { at: at[ 0 ] + offset[ 0 ] + " " + at[ 1 ] + offset[ 1 ], offset: undefined } ) ); }; }( jQuery ) ); } }( jQuery ) ); (function( $, undefined ) { var uid = 0, hideProps = {}, showProps = {}; hideProps.height = hideProps.paddingTop = hideProps.paddingBottom = hideProps.borderTopWidth = hideProps.borderBottomWidth = "hide"; showProps.height = showProps.paddingTop = showProps.paddingBottom = showProps.borderTopWidth = showProps.borderBottomWidth = "show"; $.widget( "ui.accordion", { version: "1.9.2", options: { active: 0, animate: {}, collapsible: false, event: "click", header: "> li > :first-child,> :not(li):even", heightStyle: "auto", icons: { activeHeader: "ui-icon-triangle-1-s", header: "ui-icon-triangle-1-e" }, // callbacks activate: null, beforeActivate: null }, _create: function() { var accordionId = this.accordionId = "ui-accordion-" + (this.element.attr( "id" ) || ++uid), options = this.options; this.prevShow = this.prevHide = $(); this.element.addClass( "ui-accordion ui-widget ui-helper-reset" ); this.headers = this.element.find( options.header ) .addClass( "ui-accordion-header ui-helper-reset ui-state-default ui-corner-all" ); this._hoverable( this.headers ); this._focusable( this.headers ); this.headers.next() .addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" ) .hide(); // don't allow collapsible: false and active: false / null if ( !options.collapsible && (options.active === false || options.active == null) ) { options.active = 0; } // handle negative values if ( options.active < 0 ) { options.active += this.headers.length; } this.active = this._findActive( options.active ) .addClass( "ui-accordion-header-active ui-state-active" ) .toggleClass( "ui-corner-all ui-corner-top" ); this.active.next() .addClass( "ui-accordion-content-active" ) .show(); this._createIcons(); this.refresh(); // ARIA this.element.attr( "role", "tablist" ); this.headers .attr( "role", "tab" ) .each(function( i ) { var header = $( this ), headerId = header.attr( "id" ), panel = header.next(), panelId = panel.attr( "id" ); if ( !headerId ) { headerId = accordionId + "-header-" + i; header.attr( "id", headerId ); } if ( !panelId ) { panelId = accordionId + "-panel-" + i; panel.attr( "id", panelId ); } header.attr( "aria-controls", panelId ); panel.attr( "aria-labelledby", headerId ); }) .next() .attr( "role", "tabpanel" ); this.headers .not( this.active ) .attr({ "aria-selected": "false", tabIndex: -1 }) .next() .attr({ "aria-expanded": "false", "aria-hidden": "true" }) .hide(); // make sure at least one header is in the tab order if ( !this.active.length ) { this.headers.eq( 0 ).attr( "tabIndex", 0 ); } else { this.active.attr({ "aria-selected": "true", tabIndex: 0 }) .next() .attr({ "aria-expanded": "true", "aria-hidden": "false" }); } this._on( this.headers, { keydown: "_keydown" }); this._on( this.headers.next(), { keydown: "_panelKeyDown" }); this._setupEvents( options.event ); }, _getCreateEventData: function() { return { header: this.active, content: !this.active.length ? $() : this.active.next() }; }, _createIcons: function() { var icons = this.options.icons; if ( icons ) { $( "" ) .addClass( "ui-accordion-header-icon ui-icon " + icons.header ) .prependTo( this.headers ); this.active.children( ".ui-accordion-header-icon" ) .removeClass( icons.header ) .addClass( icons.activeHeader ); this.headers.addClass( "ui-accordion-icons" ); } }, _destroyIcons: function() { this.headers .removeClass( "ui-accordion-icons" ) .children( ".ui-accordion-header-icon" ) .remove(); }, _destroy: function() { var contents; // clean up main element this.element .removeClass( "ui-accordion ui-widget ui-helper-reset" ) .removeAttr( "role" ); // clean up headers this.headers .removeClass( "ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" ) .removeAttr( "role" ) .removeAttr( "aria-selected" ) .removeAttr( "aria-controls" ) .removeAttr( "tabIndex" ) .each(function() { if ( /^ui-accordion/.test( this.id ) ) { this.removeAttribute( "id" ); } }); this._destroyIcons(); // clean up content panels contents = this.headers.next() .css( "display", "" ) .removeAttr( "role" ) .removeAttr( "aria-expanded" ) .removeAttr( "aria-hidden" ) .removeAttr( "aria-labelledby" ) .removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled" ) .each(function() { if ( /^ui-accordion/.test( this.id ) ) { this.removeAttribute( "id" ); } }); if ( this.options.heightStyle !== "content" ) { contents.css( "height", "" ); } }, _setOption: function( key, value ) { if ( key === "active" ) { // _activate() will handle invalid values and update this.options this._activate( value ); return; } if ( key === "event" ) { if ( this.options.event ) { this._off( this.headers, this.options.event ); } this._setupEvents( value ); } this._super( key, value ); // setting collapsible: false while collapsed; open first panel if ( key === "collapsible" && !value && this.options.active === false ) { this._activate( 0 ); } if ( key === "icons" ) { this._destroyIcons(); if ( value ) { this._createIcons(); } } // #5332 - opacity doesn't cascade to positioned elements in IE // so we need to add the disabled class to the headers and panels if ( key === "disabled" ) { this.headers.add( this.headers.next() ) .toggleClass( "ui-state-disabled", !!value ); } }, _keydown: function( event ) { if ( event.altKey || event.ctrlKey ) { return; } var keyCode = $.ui.keyCode, length = this.headers.length, currentIndex = this.headers.index( event.target ), toFocus = false; switch ( event.keyCode ) { case keyCode.RIGHT: case keyCode.DOWN: toFocus = this.headers[ ( currentIndex + 1 ) % length ]; break; case keyCode.LEFT: case keyCode.UP: toFocus = this.headers[ ( currentIndex - 1 + length ) % length ]; break; case keyCode.SPACE: case keyCode.ENTER: this._eventHandler( event ); break; case keyCode.HOME: toFocus = this.headers[ 0 ]; break; case keyCode.END: toFocus = this.headers[ length - 1 ]; break; } if ( toFocus ) { $( event.target ).attr( "tabIndex", -1 ); $( toFocus ).attr( "tabIndex", 0 ); toFocus.focus(); event.preventDefault(); } }, _panelKeyDown : function( event ) { if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) { $( event.currentTarget ).prev().focus(); } }, refresh: function() { var maxHeight, overflow, heightStyle = this.options.heightStyle, parent = this.element.parent(); if ( heightStyle === "fill" ) { // IE 6 treats height like minHeight, so we need to turn off overflow // in order to get a reliable height // we use the minHeight support test because we assume that only // browsers that don't support minHeight will treat height as minHeight if ( !$.support.minHeight ) { overflow = parent.css( "overflow" ); parent.css( "overflow", "hidden"); } maxHeight = parent.height(); this.element.siblings( ":visible" ).each(function() { var elem = $( this ), position = elem.css( "position" ); if ( position === "absolute" || position === "fixed" ) { return; } maxHeight -= elem.outerHeight( true ); }); if ( overflow ) { parent.css( "overflow", overflow ); } this.headers.each(function() { maxHeight -= $( this ).outerHeight( true ); }); this.headers.next() .each(function() { $( this ).height( Math.max( 0, maxHeight - $( this ).innerHeight() + $( this ).height() ) ); }) .css( "overflow", "auto" ); } else if ( heightStyle === "auto" ) { maxHeight = 0; this.headers.next() .each(function() { maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() ); }) .height( maxHeight ); } }, _activate: function( index ) { var active = this._findActive( index )[ 0 ]; // trying to activate the already active panel if ( active === this.active[ 0 ] ) { return; } // trying to collapse, simulate a click on the currently active header active = active || this.active[ 0 ]; this._eventHandler({ target: active, currentTarget: active, preventDefault: $.noop }); }, _findActive: function( selector ) { return typeof selector === "number" ? this.headers.eq( selector ) : $(); }, _setupEvents: function( event ) { var events = {}; if ( !event ) { return; } $.each( event.split(" "), function( index, eventName ) { events[ eventName ] = "_eventHandler"; }); this._on( this.headers, events ); }, _eventHandler: function( event ) { var options = this.options, active = this.active, clicked = $( event.currentTarget ), clickedIsActive = clicked[ 0 ] === active[ 0 ], collapsing = clickedIsActive && options.collapsible, toShow = collapsing ? $() : clicked.next(), toHide = active.next(), eventData = { oldHeader: active, oldPanel: toHide, newHeader: collapsing ? $() : clicked, newPanel: toShow }; event.preventDefault(); if ( // click on active header, but not collapsible ( clickedIsActive && !options.collapsible ) || // allow canceling activation ( this._trigger( "beforeActivate", event, eventData ) === false ) ) { return; } options.active = collapsing ? false : this.headers.index( clicked ); // when the call to ._toggle() comes after the class changes // it causes a very odd bug in IE 8 (see #6720) this.active = clickedIsActive ? $() : clicked; this._toggle( eventData ); // switch classes // corner classes on the previously active header stay after the animation active.removeClass( "ui-accordion-header-active ui-state-active" ); if ( options.icons ) { active.children( ".ui-accordion-header-icon" ) .removeClass( options.icons.activeHeader ) .addClass( options.icons.header ); } if ( !clickedIsActive ) { clicked .removeClass( "ui-corner-all" ) .addClass( "ui-accordion-header-active ui-state-active ui-corner-top" ); if ( options.icons ) { clicked.children( ".ui-accordion-header-icon" ) .removeClass( options.icons.header ) .addClass( options.icons.activeHeader ); } clicked .next() .addClass( "ui-accordion-content-active" ); } }, _toggle: function( data ) { var toShow = data.newPanel, toHide = this.prevShow.length ? this.prevShow : data.oldPanel; // handle activating a panel during the animation for another activation this.prevShow.add( this.prevHide ).stop( true, true ); this.prevShow = toShow; this.prevHide = toHide; if ( this.options.animate ) { this._animate( toShow, toHide, data ); } else { toHide.hide(); toShow.show(); this._toggleComplete( data ); } toHide.attr({ "aria-expanded": "false", "aria-hidden": "true" }); toHide.prev().attr( "aria-selected", "false" ); // if we're switching panels, remove the old header from the tab order // if we're opening from collapsed state, remove the previous header from the tab order // if we're collapsing, then keep the collapsing header in the tab order if ( toShow.length && toHide.length ) { toHide.prev().attr( "tabIndex", -1 ); } else if ( toShow.length ) { this.headers.filter(function() { return $( this ).attr( "tabIndex" ) === 0; }) .attr( "tabIndex", -1 ); } toShow .attr({ "aria-expanded": "true", "aria-hidden": "false" }) .prev() .attr({ "aria-selected": "true", tabIndex: 0 }); }, _animate: function( toShow, toHide, data ) { var total, easing, duration, that = this, adjust = 0, down = toShow.length && ( !toHide.length || ( toShow.index() < toHide.index() ) ), animate = this.options.animate || {}, options = down && animate.down || animate, complete = function() { that._toggleComplete( data ); }; if ( typeof options === "number" ) { duration = options; } if ( typeof options === "string" ) { easing = options; } // fall back from options to animation in case of partial down settings easing = easing || options.easing || animate.easing; duration = duration || options.duration || animate.duration; if ( !toHide.length ) { return toShow.animate( showProps, duration, easing, complete ); } if ( !toShow.length ) { return toHide.animate( hideProps, duration, easing, complete ); } total = toShow.show().outerHeight(); toHide.animate( hideProps, { duration: duration, easing: easing, step: function( now, fx ) { fx.now = Math.round( now ); } }); toShow .hide() .animate( showProps, { duration: duration, easing: easing, complete: complete, step: function( now, fx ) { fx.now = Math.round( now ); if ( fx.prop !== "height" ) { adjust += fx.now; } else if ( that.options.heightStyle !== "content" ) { fx.now = Math.round( total - toHide.outerHeight() - adjust ); adjust = 0; } } }); }, _toggleComplete: function( data ) { var toHide = data.oldPanel; toHide .removeClass( "ui-accordion-content-active" ) .prev() .removeClass( "ui-corner-top" ) .addClass( "ui-corner-all" ); // Work around for rendering bug in IE (#5421) if ( toHide.length ) { toHide.parent()[0].className = toHide.parent()[0].className; } this._trigger( "activate", null, data ); } }); // DEPRECATED if ( $.uiBackCompat !== false ) { // navigation options (function( $, prototype ) { $.extend( prototype.options, { navigation: false, navigationFilter: function() { return this.href.toLowerCase() === location.href.toLowerCase(); } }); var _create = prototype._create; prototype._create = function() { if ( this.options.navigation ) { var that = this, headers = this.element.find( this.options.header ), content = headers.next(), current = headers.add( content ) .find( "a" ) .filter( this.options.navigationFilter ) [ 0 ]; if ( current ) { headers.add( content ).each( function( index ) { if ( $.contains( this, current ) ) { that.options.active = Math.floor( index / 2 ); return false; } }); } } _create.call( this ); }; }( jQuery, jQuery.ui.accordion.prototype ) ); // height options (function( $, prototype ) { $.extend( prototype.options, { heightStyle: null, // remove default so we fall back to old values autoHeight: true, // use heightStyle: "auto" clearStyle: false, // use heightStyle: "content" fillSpace: false // use heightStyle: "fill" }); var _create = prototype._create, _setOption = prototype._setOption; $.extend( prototype, { _create: function() { this.options.heightStyle = this.options.heightStyle || this._mergeHeightStyle(); _create.call( this ); }, _setOption: function( key ) { if ( key === "autoHeight" || key === "clearStyle" || key === "fillSpace" ) { this.options.heightStyle = this._mergeHeightStyle(); } _setOption.apply( this, arguments ); }, _mergeHeightStyle: function() { var options = this.options; if ( options.fillSpace ) { return "fill"; } if ( options.clearStyle ) { return "content"; } if ( options.autoHeight ) { return "auto"; } } }); }( jQuery, jQuery.ui.accordion.prototype ) ); // icon options (function( $, prototype ) { $.extend( prototype.options.icons, { activeHeader: null, // remove default so we fall back to old values headerSelected: "ui-icon-triangle-1-s" }); var _createIcons = prototype._createIcons; prototype._createIcons = function() { if ( this.options.icons ) { this.options.icons.activeHeader = this.options.icons.activeHeader || this.options.icons.headerSelected; } _createIcons.call( this ); }; }( jQuery, jQuery.ui.accordion.prototype ) ); // expanded active option, activate method (function( $, prototype ) { prototype.activate = prototype._activate; var _findActive = prototype._findActive; prototype._findActive = function( index ) { if ( index === -1 ) { index = false; } if ( index && typeof index !== "number" ) { index = this.headers.index( this.headers.filter( index ) ); if ( index === -1 ) { index = false; } } return _findActive.call( this, index ); }; }( jQuery, jQuery.ui.accordion.prototype ) ); // resize method jQuery.ui.accordion.prototype.resize = jQuery.ui.accordion.prototype.refresh; // change events (function( $, prototype ) { $.extend( prototype.options, { change: null, changestart: null }); var _trigger = prototype._trigger; prototype._trigger = function( type, event, data ) { var ret = _trigger.apply( this, arguments ); if ( !ret ) { return false; } if ( type === "beforeActivate" ) { ret = _trigger.call( this, "changestart", event, { oldHeader: data.oldHeader, oldContent: data.oldPanel, newHeader: data.newHeader, newContent: data.newPanel }); } else if ( type === "activate" ) { ret = _trigger.call( this, "change", event, { oldHeader: data.oldHeader, oldContent: data.oldPanel, newHeader: data.newHeader, newContent: data.newPanel }); } return ret; }; }( jQuery, jQuery.ui.accordion.prototype ) ); // animated option // NOTE: this only provides support for "slide", "bounceslide", and easings // not the full $.ui.accordion.animations API (function( $, prototype ) { $.extend( prototype.options, { animate: null, animated: "slide" }); var _create = prototype._create; prototype._create = function() { var options = this.options; if ( options.animate === null ) { if ( !options.animated ) { options.animate = false; } else if ( options.animated === "slide" ) { options.animate = 300; } else if ( options.animated === "bounceslide" ) { options.animate = { duration: 200, down: { easing: "easeOutBounce", duration: 1000 } }; } else { options.animate = options.animated; } } _create.call( this ); }; }( jQuery, jQuery.ui.accordion.prototype ) ); } })( jQuery ); (function( $, undefined ) { // used to prevent race conditions with remote data sources var requestIndex = 0; $.widget( "ui.autocomplete", { version: "1.9.2", defaultElement: "", options: { appendTo: "body", autoFocus: false, delay: 300, minLength: 1, position: { my: "left top", at: "left bottom", collision: "none" }, source: null, // callbacks change: null, close: null, focus: null, open: null, response: null, search: null, select: null }, pending: 0, _create: function() { // Some browsers only repeat keydown events, not keypress events, // so we use the suppressKeyPress flag to determine if we've already // handled the keydown event. #7269 // Unfortunately the code for & in keypress is the same as the up arrow, // so we use the suppressKeyPressRepeat flag to avoid handling keypress // events when we know the keydown event was used to modify the // search term. #7799 var suppressKeyPress, suppressKeyPressRepeat, suppressInput; this.isMultiLine = this._isMultiLine(); this.valueMethod = this.element[ this.element.is( "input,textarea" ) ? "val" : "text" ]; this.isNewMenu = true; this.element .addClass( "ui-autocomplete-input" ) .attr( "autocomplete", "off" ); this._on( this.element, { keydown: function( event ) { if ( this.element.prop( "readOnly" ) ) { suppressKeyPress = true; suppressInput = true; suppressKeyPressRepeat = true; return; } suppressKeyPress = false; suppressInput = false; suppressKeyPressRepeat = false; var keyCode = $.ui.keyCode; switch( event.keyCode ) { case keyCode.PAGE_UP: suppressKeyPress = true; this._move( "previousPage", event ); break; case keyCode.PAGE_DOWN: suppressKeyPress = true; this._move( "nextPage", event ); break; case keyCode.UP: suppressKeyPress = true; this._keyEvent( "previous", event ); break; case keyCode.DOWN: suppressKeyPress = true; this._keyEvent( "next", event ); break; case keyCode.ENTER: case keyCode.NUMPAD_ENTER: // when menu is open and has focus if ( this.menu.active ) { // #6055 - Opera still allows the keypress to occur // which causes forms to submit suppressKeyPress = true; event.preventDefault(); this.menu.select( event ); } break; case keyCode.TAB: if ( this.menu.active ) { this.menu.select( event ); } break; case keyCode.ESCAPE: if ( this.menu.element.is( ":visible" ) ) { this._value( this.term ); this.close( event ); // Different browsers have different default behavior for escape // Single press can mean undo or clear // Double press in IE means clear the whole form event.preventDefault(); } break; default: suppressKeyPressRepeat = true; // search timeout should be triggered before the input value is changed this._searchTimeout( event ); break; } }, keypress: function( event ) { if ( suppressKeyPress ) { suppressKeyPress = false; event.preventDefault(); return; } if ( suppressKeyPressRepeat ) { return; } // replicate some key handlers to allow them to repeat in Firefox and Opera var keyCode = $.ui.keyCode; switch( event.keyCode ) { case keyCode.PAGE_UP: this._move( "previousPage", event ); break; case keyCode.PAGE_DOWN: this._move( "nextPage", event ); break; case keyCode.UP: this._keyEvent( "previous", event ); break; case keyCode.DOWN: this._keyEvent( "next", event ); break; } }, input: function( event ) { if ( suppressInput ) { suppressInput = false; event.preventDefault(); return; } this._searchTimeout( event ); }, focus: function() { this.selectedItem = null; this.previous = this._value(); }, blur: function( event ) { if ( this.cancelBlur ) { delete this.cancelBlur; return; } clearTimeout( this.searching ); this.close( event ); this._change( event ); } }); this._initSource(); this.menu = $( "
                                                " ) .addClass( "ui-autocomplete" ) .appendTo( this.document.find( this.options.appendTo || "body" )[ 0 ] ) .menu({ // custom key handling for now input: $(), // disable ARIA support, the live region takes care of that role: null }) .zIndex( this.element.zIndex() + 1 ) .hide() .data( "menu" ); this._on( this.menu.element, { mousedown: function( event ) { // prevent moving focus out of the text field event.preventDefault(); // IE doesn't prevent moving focus even with event.preventDefault() // so we set a flag to know when we should ignore the blur event this.cancelBlur = true; this._delay(function() { delete this.cancelBlur; }); // clicking on the scrollbar causes focus to shift to the body // but we can't detect a mouseup or a click immediately afterward // so we have to track the next mousedown and close the menu if // the user clicks somewhere outside of the autocomplete var menuElement = this.menu.element[ 0 ]; if ( !$( event.target ).closest( ".ui-menu-item" ).length ) { this._delay(function() { var that = this; this.document.one( "mousedown", function( event ) { if ( event.target !== that.element[ 0 ] && event.target !== menuElement && !$.contains( menuElement, event.target ) ) { that.close(); } }); }); } }, menufocus: function( event, ui ) { // #7024 - Prevent accidental activation of menu items in Firefox if ( this.isNewMenu ) { this.isNewMenu = false; if ( event.originalEvent && /^mouse/.test( event.originalEvent.type ) ) { this.menu.blur(); this.document.one( "mousemove", function() { $( event.target ).trigger( event.originalEvent ); }); return; } } // back compat for _renderItem using item.autocomplete, via #7810 // TODO remove the fallback, see #8156 var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" ); if ( false !== this._trigger( "focus", event, { item: item } ) ) { // use value to match what will end up in the input, if it was a key event if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) { this._value( item.value ); } } else { // Normally the input is populated with the item's value as the // menu is navigated, causing screen readers to notice a change and // announce the item. Since the focus event was canceled, this doesn't // happen, so we update the live region so that screen readers can // still notice the change and announce it. this.liveRegion.text( item.value ); } }, menuselect: function( event, ui ) { // back compat for _renderItem using item.autocomplete, via #7810 // TODO remove the fallback, see #8156 var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" ), previous = this.previous; // only trigger when focus was lost (click on menu) if ( this.element[0] !== this.document[0].activeElement ) { this.element.focus(); this.previous = previous; // #6109 - IE triggers two focus events and the second // is asynchronous, so we need to reset the previous // term synchronously and asynchronously :-( this._delay(function() { this.previous = previous; this.selectedItem = item; }); } if ( false !== this._trigger( "select", event, { item: item } ) ) { this._value( item.value ); } // reset the term after the select event // this allows custom select handling to work properly this.term = this._value(); this.close( event ); this.selectedItem = item; } }); this.liveRegion = $( "", { role: "status", "aria-live": "polite" }) .addClass( "ui-helper-hidden-accessible" ) .insertAfter( this.element ); if ( $.fn.bgiframe ) { this.menu.element.bgiframe(); } // turning off autocomplete prevents the browser from remembering the // value when navigating through history, so we re-enable autocomplete // if the page is unloaded before the widget is destroyed. #7790 this._on( this.window, { beforeunload: function() { this.element.removeAttr( "autocomplete" ); } }); }, _destroy: function() { clearTimeout( this.searching ); this.element .removeClass( "ui-autocomplete-input" ) .removeAttr( "autocomplete" ); this.menu.element.remove(); this.liveRegion.remove(); }, _setOption: function( key, value ) { this._super( key, value ); if ( key === "source" ) { this._initSource(); } if ( key === "appendTo" ) { this.menu.element.appendTo( this.document.find( value || "body" )[0] ); } if ( key === "disabled" && value && this.xhr ) { this.xhr.abort(); } }, _isMultiLine: function() { // Textareas are always multi-line if ( this.element.is( "textarea" ) ) { return true; } // Inputs are always single-line, even if inside a contentEditable element // IE also treats inputs as contentEditable if ( this.element.is( "input" ) ) { return false; } // All other element types are determined by whether or not they're contentEditable return this.element.prop( "isContentEditable" ); }, _initSource: function() { var array, url, that = this; if ( $.isArray(this.options.source) ) { array = this.options.source; this.source = function( request, response ) { response( $.ui.autocomplete.filter( array, request.term ) ); }; } else if ( typeof this.options.source === "string" ) { url = this.options.source; this.source = function( request, response ) { if ( that.xhr ) { that.xhr.abort(); } that.xhr = $.ajax({ url: url, data: request, dataType: "json", success: function( data ) { response( data ); }, error: function() { response( [] ); } }); }; } else { this.source = this.options.source; } }, _searchTimeout: function( event ) { clearTimeout( this.searching ); this.searching = this._delay(function() { // only search if the value has changed if ( this.term !== this._value() ) { this.selectedItem = null; this.search( null, event ); } }, this.options.delay ); }, search: function( value, event ) { value = value != null ? value : this._value(); // always save the actual value, not the one passed as an argument this.term = this._value(); if ( value.length < this.options.minLength ) { return this.close( event ); } if ( this._trigger( "search", event ) === false ) { return; } return this._search( value ); }, _search: function( value ) { this.pending++; this.element.addClass( "ui-autocomplete-loading" ); this.cancelSearch = false; this.source( { term: value }, this._response() ); }, _response: function() { var that = this, index = ++requestIndex; return function( content ) { if ( index === requestIndex ) { that.__response( content ); } that.pending--; if ( !that.pending ) { that.element.removeClass( "ui-autocomplete-loading" ); } }; }, __response: function( content ) { if ( content ) { content = this._normalize( content ); } this._trigger( "response", null, { content: content } ); if ( !this.options.disabled && content && content.length && !this.cancelSearch ) { this._suggest( content ); this._trigger( "open" ); } else { // use ._close() instead of .close() so we don't cancel future searches this._close(); } }, close: function( event ) { this.cancelSearch = true; this._close( event ); }, _close: function( event ) { if ( this.menu.element.is( ":visible" ) ) { this.menu.element.hide(); this.menu.blur(); this.isNewMenu = true; this._trigger( "close", event ); } }, _change: function( event ) { if ( this.previous !== this._value() ) { this._trigger( "change", event, { item: this.selectedItem } ); } }, _normalize: function( items ) { // assume all items have the right format when the first item is complete if ( items.length && items[0].label && items[0].value ) { return items; } return $.map( items, function( item ) { if ( typeof item === "string" ) { return { label: item, value: item }; } return $.extend({ label: item.label || item.value, value: item.value || item.label }, item ); }); }, _suggest: function( items ) { var ul = this.menu.element .empty() .zIndex( this.element.zIndex() + 1 ); this._renderMenu( ul, items ); this.menu.refresh(); // size and position menu ul.show(); this._resizeMenu(); ul.position( $.extend({ of: this.element }, this.options.position )); if ( this.options.autoFocus ) { this.menu.next(); } }, _resizeMenu: function() { var ul = this.menu.element; ul.outerWidth( Math.max( // Firefox wraps long text (possibly a rounding bug) // so we add 1px to avoid the wrapping (#7513) ul.width( "" ).outerWidth() + 1, this.element.outerWidth() ) ); }, _renderMenu: function( ul, items ) { var that = this; $.each( items, function( index, item ) { that._renderItemData( ul, item ); }); }, _renderItemData: function( ul, item ) { return this._renderItem( ul, item ).data( "ui-autocomplete-item", item ); }, _renderItem: function( ul, item ) { return $( "
                                              • " ) .append( $( "" ).text( item.label ) ) .appendTo( ul ); }, _move: function( direction, event ) { if ( !this.menu.element.is( ":visible" ) ) { this.search( null, event ); return; } if ( this.menu.isFirstItem() && /^previous/.test( direction ) || this.menu.isLastItem() && /^next/.test( direction ) ) { this._value( this.term ); this.menu.blur(); return; } this.menu[ direction ]( event ); }, widget: function() { return this.menu.element; }, _value: function() { return this.valueMethod.apply( this.element, arguments ); }, _keyEvent: function( keyEvent, event ) { if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) { this._move( keyEvent, event ); // prevents moving cursor to beginning/end of the text field in some browsers event.preventDefault(); } } }); $.extend( $.ui.autocomplete, { escapeRegex: function( value ) { return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"); }, filter: function(array, term) { var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), "i" ); return $.grep( array, function(value) { return matcher.test( value.label || value.value || value ); }); } }); // live region extension, adding a `messages` option // NOTE: This is an experimental API. We are still investigating // a full solution for string manipulation and internationalization. $.widget( "ui.autocomplete", $.ui.autocomplete, { options: { messages: { noResults: "No search results.", results: function( amount ) { return amount + ( amount > 1 ? " results are" : " result is" ) + " available, use up and down arrow keys to navigate."; } } }, __response: function( content ) { var message; this._superApply( arguments ); if ( this.options.disabled || this.cancelSearch ) { return; } if ( content && content.length ) { message = this.options.messages.results( content.length ); } else { message = this.options.messages.noResults; } this.liveRegion.text( message ); } }); }( jQuery )); (function( $, undefined ) { var lastActive, startXPos, startYPos, clickDragged, baseClasses = "ui-button ui-widget ui-state-default ui-corner-all", stateClasses = "ui-state-hover ui-state-active ", typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only", formResetHandler = function() { var buttons = $( this ).find( ":ui-button" ); setTimeout(function() { buttons.button( "refresh" ); }, 1 ); }, radioGroup = function( radio ) { var name = radio.name, form = radio.form, radios = $( [] ); if ( name ) { if ( form ) { radios = $( form ).find( "[name='" + name + "']" ); } else { radios = $( "[name='" + name + "']", radio.ownerDocument ) .filter(function() { return !this.form; }); } } return radios; }; $.widget( "ui.button", { version: "1.9.2", defaultElement: "').addClass(this._triggerClass). html(buttonImage == '' ? buttonText : $('').attr( { src:buttonImage, alt:buttonText, title:buttonText }))); input[isRTL ? 'before' : 'after'](inst.trigger); inst.trigger.click(function() { if ($.datepicker._datepickerShowing && $.datepicker._lastInput == input[0]) $.datepicker._hideDatepicker(); else if ($.datepicker._datepickerShowing && $.datepicker._lastInput != input[0]) { $.datepicker._hideDatepicker(); $.datepicker._showDatepicker(input[0]); } else $.datepicker._showDatepicker(input[0]); return false; }); } }, /* Apply the maximum length for the date format. */ _autoSize: function(inst) { if (this._get(inst, 'autoSize') && !inst.inline) { var date = new Date(2009, 12 - 1, 20); // Ensure double digits var dateFormat = this._get(inst, 'dateFormat'); if (dateFormat.match(/[DM]/)) { var findMax = function(names) { var max = 0; var maxI = 0; for (var i = 0; i < names.length; i++) { if (names[i].length > max) { max = names[i].length; maxI = i; } } return maxI; }; date.setMonth(findMax(this._get(inst, (dateFormat.match(/MM/) ? 'monthNames' : 'monthNamesShort')))); date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ? 'dayNames' : 'dayNamesShort'))) + 20 - date.getDay()); } inst.input.attr('size', this._formatDate(inst, date).length); } }, /* Attach an inline date picker to a div. */ _inlineDatepicker: function(target, inst) { var divSpan = $(target); if (divSpan.hasClass(this.markerClassName)) return; divSpan.addClass(this.markerClassName).append(inst.dpDiv). bind("setData.datepicker", function(event, key, value){ inst.settings[key] = value; }).bind("getData.datepicker", function(event, key){ return this._get(inst, key); }); $.data(target, PROP_NAME, inst); this._setDate(inst, this._getDefaultDate(inst), true); this._updateDatepicker(inst); this._updateAlternate(inst); //If disabled option is true, disable the datepicker before showing it (see ticket #5665) if( inst.settings.disabled ) { this._disableDatepicker( target ); } // Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height inst.dpDiv.css( "display", "block" ); }, /* Pop-up the date picker in a "dialog" box. @param input element - ignored @param date string or Date - the initial date to display @param onSelect function - the function to call when a date is selected @param settings object - update the dialog date picker instance's settings (anonymous object) @param pos int[2] - coordinates for the dialog's position within the screen or event - with x/y coordinates or leave empty for default (screen centre) @return the manager object */ _dialogDatepicker: function(input, date, onSelect, settings, pos) { var inst = this._dialogInst; // internal instance if (!inst) { this.uuid += 1; var id = 'dp' + this.uuid; this._dialogInput = $(''); this._dialogInput.keydown(this._doKeyDown); $('body').append(this._dialogInput); inst = this._dialogInst = this._newInst(this._dialogInput, false); inst.settings = {}; $.data(this._dialogInput[0], PROP_NAME, inst); } extendRemove(inst.settings, settings || {}); date = (date && date.constructor == Date ? this._formatDate(inst, date) : date); this._dialogInput.val(date); this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null); if (!this._pos) { var browserWidth = document.documentElement.clientWidth; var browserHeight = document.documentElement.clientHeight; var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; var scrollY = document.documentElement.scrollTop || document.body.scrollTop; this._pos = // should use actual width/height below [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY]; } // move input on screen for focus, but hidden behind dialog this._dialogInput.css('left', (this._pos[0] + 20) + 'px').css('top', this._pos[1] + 'px'); inst.settings.onSelect = onSelect; this._inDialog = true; this.dpDiv.addClass(this._dialogClass); this._showDatepicker(this._dialogInput[0]); if ($.blockUI) $.blockUI(this.dpDiv); $.data(this._dialogInput[0], PROP_NAME, inst); return this; }, /* Detach a datepicker from its control. @param target element - the target input field or division or span */ _destroyDatepicker: function(target) { var $target = $(target); var inst = $.data(target, PROP_NAME); if (!$target.hasClass(this.markerClassName)) { return; } var nodeName = target.nodeName.toLowerCase(); $.removeData(target, PROP_NAME); if (nodeName == 'input') { inst.append.remove(); inst.trigger.remove(); $target.removeClass(this.markerClassName). unbind('focus', this._showDatepicker). unbind('keydown', this._doKeyDown). unbind('keypress', this._doKeyPress). unbind('keyup', this._doKeyUp); } else if (nodeName == 'div' || nodeName == 'span') $target.removeClass(this.markerClassName).empty(); }, /* Enable the date picker to a jQuery selection. @param target element - the target input field or division or span */ _enableDatepicker: function(target) { var $target = $(target); var inst = $.data(target, PROP_NAME); if (!$target.hasClass(this.markerClassName)) { return; } var nodeName = target.nodeName.toLowerCase(); if (nodeName == 'input') { target.disabled = false; inst.trigger.filter('button'). each(function() { this.disabled = false; }).end(). filter('img').css({opacity: '1.0', cursor: ''}); } else if (nodeName == 'div' || nodeName == 'span') { var inline = $target.children('.' + this._inlineClass); inline.children().removeClass('ui-state-disabled'); inline.find("select.ui-datepicker-month, select.ui-datepicker-year"). prop("disabled", false); } this._disabledInputs = $.map(this._disabledInputs, function(value) { return (value == target ? null : value); }); // delete entry }, /* Disable the date picker to a jQuery selection. @param target element - the target input field or division or span */ _disableDatepicker: function(target) { var $target = $(target); var inst = $.data(target, PROP_NAME); if (!$target.hasClass(this.markerClassName)) { return; } var nodeName = target.nodeName.toLowerCase(); if (nodeName == 'input') { target.disabled = true; inst.trigger.filter('button'). each(function() { this.disabled = true; }).end(). filter('img').css({opacity: '0.5', cursor: 'default'}); } else if (nodeName == 'div' || nodeName == 'span') { var inline = $target.children('.' + this._inlineClass); inline.children().addClass('ui-state-disabled'); inline.find("select.ui-datepicker-month, select.ui-datepicker-year"). prop("disabled", true); } this._disabledInputs = $.map(this._disabledInputs, function(value) { return (value == target ? null : value); }); // delete entry this._disabledInputs[this._disabledInputs.length] = target; }, /* Is the first field in a jQuery collection disabled as a datepicker? @param target element - the target input field or division or span @return boolean - true if disabled, false if enabled */ _isDisabledDatepicker: function(target) { if (!target) { return false; } for (var i = 0; i < this._disabledInputs.length; i++) { if (this._disabledInputs[i] == target) return true; } return false; }, /* Retrieve the instance data for the target control. @param target element - the target input field or division or span @return object - the associated instance data @throws error if a jQuery problem getting data */ _getInst: function(target) { try { return $.data(target, PROP_NAME); } catch (err) { throw 'Missing instance data for this datepicker'; } }, /* Update or retrieve the settings for a date picker attached to an input field or division. @param target element - the target input field or division or span @param name object - the new settings to update or string - the name of the setting to change or retrieve, when retrieving also 'all' for all instance settings or 'defaults' for all global defaults @param value any - the new value for the setting (omit if above is an object or to retrieve a value) */ _optionDatepicker: function(target, name, value) { var inst = this._getInst(target); if (arguments.length == 2 && typeof name == 'string') { return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) : (inst ? (name == 'all' ? $.extend({}, inst.settings) : this._get(inst, name)) : null)); } var settings = name || {}; if (typeof name == 'string') { settings = {}; settings[name] = value; } if (inst) { if (this._curInst == inst) { this._hideDatepicker(); } var date = this._getDateDatepicker(target, true); var minDate = this._getMinMaxDate(inst, 'min'); var maxDate = this._getMinMaxDate(inst, 'max'); extendRemove(inst.settings, settings); // reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided if (minDate !== null && settings['dateFormat'] !== undefined && settings['minDate'] === undefined) inst.settings.minDate = this._formatDate(inst, minDate); if (maxDate !== null && settings['dateFormat'] !== undefined && settings['maxDate'] === undefined) inst.settings.maxDate = this._formatDate(inst, maxDate); this._attachments($(target), inst); this._autoSize(inst); this._setDate(inst, date); this._updateAlternate(inst); this._updateDatepicker(inst); } }, // change method deprecated _changeDatepicker: function(target, name, value) { this._optionDatepicker(target, name, value); }, /* Redraw the date picker attached to an input field or division. @param target element - the target input field or division or span */ _refreshDatepicker: function(target) { var inst = this._getInst(target); if (inst) { this._updateDatepicker(inst); } }, /* Set the dates for a jQuery selection. @param target element - the target input field or division or span @param date Date - the new date */ _setDateDatepicker: function(target, date) { var inst = this._getInst(target); if (inst) { this._setDate(inst, date); this._updateDatepicker(inst); this._updateAlternate(inst); } }, /* Get the date(s) for the first entry in a jQuery selection. @param target element - the target input field or division or span @param noDefault boolean - true if no default date is to be used @return Date - the current date */ _getDateDatepicker: function(target, noDefault) { var inst = this._getInst(target); if (inst && !inst.inline) this._setDateFromField(inst, noDefault); return (inst ? this._getDate(inst) : null); }, /* Handle keystrokes. */ _doKeyDown: function(event) { var inst = $.datepicker._getInst(event.target); var handled = true; var isRTL = inst.dpDiv.is('.ui-datepicker-rtl'); inst._keyEvent = true; if ($.datepicker._datepickerShowing) switch (event.keyCode) { case 9: $.datepicker._hideDatepicker(); handled = false; break; // hide on tab out case 13: var sel = $('td.' + $.datepicker._dayOverClass + ':not(.' + $.datepicker._currentClass + ')', inst.dpDiv); if (sel[0]) $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]); var onSelect = $.datepicker._get(inst, 'onSelect'); if (onSelect) { var dateStr = $.datepicker._formatDate(inst); // trigger custom callback onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); } else $.datepicker._hideDatepicker(); return false; // don't submit the form break; // select the value on enter case 27: $.datepicker._hideDatepicker(); break; // hide on escape case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ? -$.datepicker._get(inst, 'stepBigMonths') : -$.datepicker._get(inst, 'stepMonths')), 'M'); break; // previous month/year on page up/+ ctrl case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ? +$.datepicker._get(inst, 'stepBigMonths') : +$.datepicker._get(inst, 'stepMonths')), 'M'); break; // next month/year on page down/+ ctrl case 35: if (event.ctrlKey || event.metaKey) $.datepicker._clearDate(event.target); handled = event.ctrlKey || event.metaKey; break; // clear on ctrl or command +end case 36: if (event.ctrlKey || event.metaKey) $.datepicker._gotoToday(event.target); handled = event.ctrlKey || event.metaKey; break; // current on ctrl or command +home case 37: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), 'D'); handled = event.ctrlKey || event.metaKey; // -1 day on ctrl or command +left if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ? -$.datepicker._get(inst, 'stepBigMonths') : -$.datepicker._get(inst, 'stepMonths')), 'M'); // next month/year on alt +left on Mac break; case 38: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, -7, 'D'); handled = event.ctrlKey || event.metaKey; break; // -1 week on ctrl or command +up case 39: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), 'D'); handled = event.ctrlKey || event.metaKey; // +1 day on ctrl or command +right if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ? +$.datepicker._get(inst, 'stepBigMonths') : +$.datepicker._get(inst, 'stepMonths')), 'M'); // next month/year on alt +right break; case 40: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, +7, 'D'); handled = event.ctrlKey || event.metaKey; break; // +1 week on ctrl or command +down default: handled = false; } else if (event.keyCode == 36 && event.ctrlKey) // display the date picker on ctrl+home $.datepicker._showDatepicker(this); else { handled = false; } if (handled) { event.preventDefault(); event.stopPropagation(); } }, /* Filter entered characters - based on date format. */ _doKeyPress: function(event) { var inst = $.datepicker._getInst(event.target); if ($.datepicker._get(inst, 'constrainInput')) { var chars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat')); var chr = String.fromCharCode(event.charCode == undefined ? event.keyCode : event.charCode); return event.ctrlKey || event.metaKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1); } }, /* Synchronise manual entry and field/alternate field. */ _doKeyUp: function(event) { var inst = $.datepicker._getInst(event.target); if (inst.input.val() != inst.lastVal) { try { var date = $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'), (inst.input ? inst.input.val() : null), $.datepicker._getFormatConfig(inst)); if (date) { // only if valid $.datepicker._setDateFromField(inst); $.datepicker._updateAlternate(inst); $.datepicker._updateDatepicker(inst); } } catch (err) { $.datepicker.log(err); } } return true; }, /* Pop-up the date picker for a given input field. If false returned from beforeShow event handler do not show. @param input element - the input field attached to the date picker or event - if triggered by focus */ _showDatepicker: function(input) { input = input.target || input; if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger input = $('input', input.parentNode)[0]; if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here return; var inst = $.datepicker._getInst(input); if ($.datepicker._curInst && $.datepicker._curInst != inst) { $.datepicker._curInst.dpDiv.stop(true, true); if ( inst && $.datepicker._datepickerShowing ) { $.datepicker._hideDatepicker( $.datepicker._curInst.input[0] ); } } var beforeShow = $.datepicker._get(inst, 'beforeShow'); var beforeShowSettings = beforeShow ? beforeShow.apply(input, [input, inst]) : {}; if(beforeShowSettings === false){ //false return; } extendRemove(inst.settings, beforeShowSettings); inst.lastVal = null; $.datepicker._lastInput = input; $.datepicker._setDateFromField(inst); if ($.datepicker._inDialog) // hide cursor input.value = ''; if (!$.datepicker._pos) { // position below input $.datepicker._pos = $.datepicker._findPos(input); $.datepicker._pos[1] += input.offsetHeight; // add the height } var isFixed = false; $(input).parents().each(function() { isFixed |= $(this).css('position') == 'fixed'; return !isFixed; }); var offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]}; $.datepicker._pos = null; //to avoid flashes on Firefox inst.dpDiv.empty(); // determine sizing offscreen inst.dpDiv.css({position: 'absolute', display: 'block', top: '-1000px'}); $.datepicker._updateDatepicker(inst); // fix width for dynamic number of date pickers // and adjust position before showing offset = $.datepicker._checkOffset(inst, offset, isFixed); inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ? 'static' : (isFixed ? 'fixed' : 'absolute')), display: 'none', left: offset.left + 'px', top: offset.top + 'px'}); if (!inst.inline) { var showAnim = $.datepicker._get(inst, 'showAnim'); var duration = $.datepicker._get(inst, 'duration'); var postProcess = function() { var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only if( !! cover.length ){ var borders = $.datepicker._getBorders(inst.dpDiv); cover.css({left: -borders[0], top: -borders[1], width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()}); } }; inst.dpDiv.zIndex($(input).zIndex()+1); $.datepicker._datepickerShowing = true; // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess); else inst.dpDiv[showAnim || 'show']((showAnim ? duration : null), postProcess); if (!showAnim || !duration) postProcess(); if (inst.input.is(':visible') && !inst.input.is(':disabled')) inst.input.focus(); $.datepicker._curInst = inst; } }, /* Generate the date picker content. */ _updateDatepicker: function(inst) { this.maxRows = 4; //Reset the max number of rows being displayed (see #7043) var borders = $.datepicker._getBorders(inst.dpDiv); instActive = inst; // for delegate hover events inst.dpDiv.empty().append(this._generateHTML(inst)); this._attachHandlers(inst); var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only if( !!cover.length ){ //avoid call to outerXXXX() when not in IE6 cover.css({left: -borders[0], top: -borders[1], width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()}) } inst.dpDiv.find('.' + this._dayOverClass + ' a').mouseover(); var numMonths = this._getNumberOfMonths(inst); var cols = numMonths[1]; var width = 17; inst.dpDiv.removeClass('ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4').width(''); if (cols > 1) inst.dpDiv.addClass('ui-datepicker-multi-' + cols).css('width', (width * cols) + 'em'); inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? 'add' : 'remove') + 'Class']('ui-datepicker-multi'); inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') + 'Class']('ui-datepicker-rtl'); if (inst == $.datepicker._curInst && $.datepicker._datepickerShowing && inst.input && // #6694 - don't focus the input if it's already focused // this breaks the change event in IE inst.input.is(':visible') && !inst.input.is(':disabled') && inst.input[0] != document.activeElement) inst.input.focus(); // deffered render of the years select (to avoid flashes on Firefox) if( inst.yearshtml ){ var origyearshtml = inst.yearshtml; setTimeout(function(){ //assure that inst.yearshtml didn't change. if( origyearshtml === inst.yearshtml && inst.yearshtml ){ inst.dpDiv.find('select.ui-datepicker-year:first').replaceWith(inst.yearshtml); } origyearshtml = inst.yearshtml = null; }, 0); } }, /* Retrieve the size of left and top borders for an element. @param elem (jQuery object) the element of interest @return (number[2]) the left and top borders */ _getBorders: function(elem) { var convert = function(value) { return {thin: 1, medium: 2, thick: 3}[value] || value; }; return [parseFloat(convert(elem.css('border-left-width'))), parseFloat(convert(elem.css('border-top-width')))]; }, /* Check positioning to remain on screen. */ _checkOffset: function(inst, offset, isFixed) { var dpWidth = inst.dpDiv.outerWidth(); var dpHeight = inst.dpDiv.outerHeight(); var inputWidth = inst.input ? inst.input.outerWidth() : 0; var inputHeight = inst.input ? inst.input.outerHeight() : 0; var viewWidth = document.documentElement.clientWidth + (isFixed ? 0 : $(document).scrollLeft()); var viewHeight = document.documentElement.clientHeight + (isFixed ? 0 : $(document).scrollTop()); offset.left -= (this._get(inst, 'isRTL') ? (dpWidth - inputWidth) : 0); offset.left -= (isFixed && offset.left == inst.input.offset().left) ? $(document).scrollLeft() : 0; offset.top -= (isFixed && offset.top == (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0; // now check if datepicker is showing outside window viewport - move to a better place if so. offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ? Math.abs(offset.left + dpWidth - viewWidth) : 0); offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ? Math.abs(dpHeight + inputHeight) : 0); return offset; }, /* Find an object's position on the screen. */ _findPos: function(obj) { var inst = this._getInst(obj); var isRTL = this._get(inst, 'isRTL'); while (obj && (obj.type == 'hidden' || obj.nodeType != 1 || $.expr.filters.hidden(obj))) { obj = obj[isRTL ? 'previousSibling' : 'nextSibling']; } var position = $(obj).offset(); return [position.left, position.top]; }, /* Hide the date picker from view. @param input element - the input field attached to the date picker */ _hideDatepicker: function(input) { var inst = this._curInst; if (!inst || (input && inst != $.data(input, PROP_NAME))) return; if (this._datepickerShowing) { var showAnim = this._get(inst, 'showAnim'); var duration = this._get(inst, 'duration'); var postProcess = function() { $.datepicker._tidyDialog(inst); }; // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess); else inst.dpDiv[(showAnim == 'slideDown' ? 'slideUp' : (showAnim == 'fadeIn' ? 'fadeOut' : 'hide'))]((showAnim ? duration : null), postProcess); if (!showAnim) postProcess(); this._datepickerShowing = false; var onClose = this._get(inst, 'onClose'); if (onClose) onClose.apply((inst.input ? inst.input[0] : null), [(inst.input ? inst.input.val() : ''), inst]); this._lastInput = null; if (this._inDialog) { this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' }); if ($.blockUI) { $.unblockUI(); $('body').append(this.dpDiv); } } this._inDialog = false; } }, /* Tidy up after a dialog display. */ _tidyDialog: function(inst) { inst.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker-calendar'); }, /* Close date picker if clicked elsewhere. */ _checkExternalClick: function(event) { if (!$.datepicker._curInst) return; var $target = $(event.target), inst = $.datepicker._getInst($target[0]); if ( ( ( $target[0].id != $.datepicker._mainDivId && $target.parents('#' + $.datepicker._mainDivId).length == 0 && !$target.hasClass($.datepicker.markerClassName) && !$target.closest("." + $.datepicker._triggerClass).length && $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) || ( $target.hasClass($.datepicker.markerClassName) && $.datepicker._curInst != inst ) ) $.datepicker._hideDatepicker(); }, /* Adjust one of the date sub-fields. */ _adjustDate: function(id, offset, period) { var target = $(id); var inst = this._getInst(target[0]); if (this._isDisabledDatepicker(target[0])) { return; } this._adjustInstDate(inst, offset + (period == 'M' ? this._get(inst, 'showCurrentAtPos') : 0), // undo positioning period); this._updateDatepicker(inst); }, /* Action for current link. */ _gotoToday: function(id) { var target = $(id); var inst = this._getInst(target[0]); if (this._get(inst, 'gotoCurrent') && inst.currentDay) { inst.selectedDay = inst.currentDay; inst.drawMonth = inst.selectedMonth = inst.currentMonth; inst.drawYear = inst.selectedYear = inst.currentYear; } else { var date = new Date(); inst.selectedDay = date.getDate(); inst.drawMonth = inst.selectedMonth = date.getMonth(); inst.drawYear = inst.selectedYear = date.getFullYear(); } this._notifyChange(inst); this._adjustDate(target); }, /* Action for selecting a new month/year. */ _selectMonthYear: function(id, select, period) { var target = $(id); var inst = this._getInst(target[0]); inst['selected' + (period == 'M' ? 'Month' : 'Year')] = inst['draw' + (period == 'M' ? 'Month' : 'Year')] = parseInt(select.options[select.selectedIndex].value,10); this._notifyChange(inst); this._adjustDate(target); }, /* Action for selecting a day. */ _selectDay: function(id, month, year, td) { var target = $(id); if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) { return; } var inst = this._getInst(target[0]); inst.selectedDay = inst.currentDay = $('a', td).html(); inst.selectedMonth = inst.currentMonth = month; inst.selectedYear = inst.currentYear = year; this._selectDate(id, this._formatDate(inst, inst.currentDay, inst.currentMonth, inst.currentYear)); }, /* Erase the input field and hide the date picker. */ _clearDate: function(id) { var target = $(id); var inst = this._getInst(target[0]); this._selectDate(target, ''); }, /* Update the input field with the selected date. */ _selectDate: function(id, dateStr) { var target = $(id); var inst = this._getInst(target[0]); dateStr = (dateStr != null ? dateStr : this._formatDate(inst)); if (inst.input) inst.input.val(dateStr); this._updateAlternate(inst); var onSelect = this._get(inst, 'onSelect'); if (onSelect) onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); // trigger custom callback else if (inst.input) inst.input.trigger('change'); // fire the change event if (inst.inline) this._updateDatepicker(inst); else { this._hideDatepicker(); this._lastInput = inst.input[0]; if (typeof(inst.input[0]) != 'object') inst.input.focus(); // restore focus this._lastInput = null; } }, /* Update any alternate field to synchronise with the main field. */ _updateAlternate: function(inst) { var altField = this._get(inst, 'altField'); if (altField) { // update alternate field too var altFormat = this._get(inst, 'altFormat') || this._get(inst, 'dateFormat'); var date = this._getDate(inst); var dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst)); $(altField).each(function() { $(this).val(dateStr); }); } }, /* Set as beforeShowDay function to prevent selection of weekends. @param date Date - the date to customise @return [boolean, string] - is this date selectable?, what is its CSS class? */ noWeekends: function(date) { var day = date.getDay(); return [(day > 0 && day < 6), '']; }, /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition. @param date Date - the date to get the week for @return number - the number of the week within the year that contains this date */ iso8601Week: function(date) { var checkDate = new Date(date.getTime()); // Find Thursday of this week starting on Monday checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7)); var time = checkDate.getTime(); checkDate.setMonth(0); // Compare with Jan 1 checkDate.setDate(1); return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1; }, /* Parse a string value into a date object. See formatDate below for the possible formats. @param format string - the expected format of the date @param value string - the date in the above format @param settings Object - attributes include: shortYearCutoff number - the cutoff year for determining the century (optional) dayNamesShort string[7] - abbreviated names of the days from Sunday (optional) dayNames string[7] - names of the days from Sunday (optional) monthNamesShort string[12] - abbreviated names of the months (optional) monthNames string[12] - names of the months (optional) @return Date - the extracted date value or null if value is blank */ parseDate: function (format, value, settings) { if (format == null || value == null) throw 'Invalid arguments'; value = (typeof value == 'object' ? value.toString() : value + ''); if (value == '') return null; var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff; shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff : new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10)); var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort; var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames; var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort; var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames; var year = -1; var month = -1; var day = -1; var doy = -1; var literal = false; // Check whether a format character is doubled var lookAhead = function(match) { var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); if (matches) iFormat++; return matches; }; // Extract a number from the string value var getNumber = function(match) { var isDoubled = lookAhead(match); var size = (match == '@' ? 14 : (match == '!' ? 20 : (match == 'y' && isDoubled ? 4 : (match == 'o' ? 3 : 2)))); var digits = new RegExp('^\\d{1,' + size + '}'); var num = value.substring(iValue).match(digits); if (!num) throw 'Missing number at position ' + iValue; iValue += num[0].length; return parseInt(num[0], 10); }; // Extract a name from the string value and convert to an index var getName = function(match, shortNames, longNames) { var names = $.map(lookAhead(match) ? longNames : shortNames, function (v, k) { return [ [k, v] ]; }).sort(function (a, b) { return -(a[1].length - b[1].length); }); var index = -1; $.each(names, function (i, pair) { var name = pair[1]; if (value.substr(iValue, name.length).toLowerCase() == name.toLowerCase()) { index = pair[0]; iValue += name.length; return false; } }); if (index != -1) return index + 1; else throw 'Unknown name at position ' + iValue; }; // Confirm that a literal character matches the string value var checkLiteral = function() { if (value.charAt(iValue) != format.charAt(iFormat)) throw 'Unexpected literal at position ' + iValue; iValue++; }; var iValue = 0; for (var iFormat = 0; iFormat < format.length; iFormat++) { if (literal) if (format.charAt(iFormat) == "'" && !lookAhead("'")) literal = false; else checkLiteral(); else switch (format.charAt(iFormat)) { case 'd': day = getNumber('d'); break; case 'D': getName('D', dayNamesShort, dayNames); break; case 'o': doy = getNumber('o'); break; case 'm': month = getNumber('m'); break; case 'M': month = getName('M', monthNamesShort, monthNames); break; case 'y': year = getNumber('y'); break; case '@': var date = new Date(getNumber('@')); year = date.getFullYear(); month = date.getMonth() + 1; day = date.getDate(); break; case '!': var date = new Date((getNumber('!') - this._ticksTo1970) / 10000); year = date.getFullYear(); month = date.getMonth() + 1; day = date.getDate(); break; case "'": if (lookAhead("'")) checkLiteral(); else literal = true; break; default: checkLiteral(); } } if (iValue < value.length){ var extra = value.substr(iValue); if (!/^\s+/.test(extra)) { throw "Extra/unparsed characters found in date: " + extra; } } if (year == -1) year = new Date().getFullYear(); else if (year < 100) year += new Date().getFullYear() - new Date().getFullYear() % 100 + (year <= shortYearCutoff ? 0 : -100); if (doy > -1) { month = 1; day = doy; do { var dim = this._getDaysInMonth(year, month - 1); if (day <= dim) break; month++; day -= dim; } while (true); } var date = this._daylightSavingAdjust(new Date(year, month - 1, day)); if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day) throw 'Invalid date'; // E.g. 31/02/00 return date; }, /* Standard date formats. */ ATOM: 'yy-mm-dd', // RFC 3339 (ISO 8601) COOKIE: 'D, dd M yy', ISO_8601: 'yy-mm-dd', RFC_822: 'D, d M y', RFC_850: 'DD, dd-M-y', RFC_1036: 'D, d M y', RFC_1123: 'D, d M yy', RFC_2822: 'D, d M yy', RSS: 'D, d M y', // RFC 822 TICKS: '!', TIMESTAMP: '@', W3C: 'yy-mm-dd', // ISO 8601 _ticksTo1970: (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000), /* Format a date object into a string value. The format can be combinations of the following: d - day of month (no leading zero) dd - day of month (two digit) o - day of year (no leading zeros) oo - day of year (three digit) D - day name short DD - day name long m - month of year (no leading zero) mm - month of year (two digit) M - month name short MM - month name long y - year (two digit) yy - year (four digit) @ - Unix timestamp (ms since 01/01/1970) ! - Windows ticks (100ns since 01/01/0001) '...' - literal text '' - single quote @param format string - the desired format of the date @param date Date - the date value to format @param settings Object - attributes include: dayNamesShort string[7] - abbreviated names of the days from Sunday (optional) dayNames string[7] - names of the days from Sunday (optional) monthNamesShort string[12] - abbreviated names of the months (optional) monthNames string[12] - names of the months (optional) @return string - the date in the above format */ formatDate: function (format, date, settings) { if (!date) return ''; var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort; var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames; var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort; var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames; // Check whether a format character is doubled var lookAhead = function(match) { var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); if (matches) iFormat++; return matches; }; // Format a number, with leading zero if necessary var formatNumber = function(match, value, len) { var num = '' + value; if (lookAhead(match)) while (num.length < len) num = '0' + num; return num; }; // Format a name, short or long as requested var formatName = function(match, value, shortNames, longNames) { return (lookAhead(match) ? longNames[value] : shortNames[value]); }; var output = ''; var literal = false; if (date) for (var iFormat = 0; iFormat < format.length; iFormat++) { if (literal) if (format.charAt(iFormat) == "'" && !lookAhead("'")) literal = false; else output += format.charAt(iFormat); else switch (format.charAt(iFormat)) { case 'd': output += formatNumber('d', date.getDate(), 2); break; case 'D': output += formatName('D', date.getDay(), dayNamesShort, dayNames); break; case 'o': output += formatNumber('o', Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3); break; case 'm': output += formatNumber('m', date.getMonth() + 1, 2); break; case 'M': output += formatName('M', date.getMonth(), monthNamesShort, monthNames); break; case 'y': output += (lookAhead('y') ? date.getFullYear() : (date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100); break; case '@': output += date.getTime(); break; case '!': output += date.getTime() * 10000 + this._ticksTo1970; break; case "'": if (lookAhead("'")) output += "'"; else literal = true; break; default: output += format.charAt(iFormat); } } return output; }, /* Extract all possible characters from the date format. */ _possibleChars: function (format) { var chars = ''; var literal = false; // Check whether a format character is doubled var lookAhead = function(match) { var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); if (matches) iFormat++; return matches; }; for (var iFormat = 0; iFormat < format.length; iFormat++) if (literal) if (format.charAt(iFormat) == "'" && !lookAhead("'")) literal = false; else chars += format.charAt(iFormat); else switch (format.charAt(iFormat)) { case 'd': case 'm': case 'y': case '@': chars += '0123456789'; break; case 'D': case 'M': return null; // Accept anything case "'": if (lookAhead("'")) chars += "'"; else literal = true; break; default: chars += format.charAt(iFormat); } return chars; }, /* Get a setting value, defaulting if necessary. */ _get: function(inst, name) { return inst.settings[name] !== undefined ? inst.settings[name] : this._defaults[name]; }, /* Parse existing date and initialise date picker. */ _setDateFromField: function(inst, noDefault) { if (inst.input.val() == inst.lastVal) { return; } var dateFormat = this._get(inst, 'dateFormat'); var dates = inst.lastVal = inst.input ? inst.input.val() : null; var date, defaultDate; date = defaultDate = this._getDefaultDate(inst); var settings = this._getFormatConfig(inst); try { date = this.parseDate(dateFormat, dates, settings) || defaultDate; } catch (event) { this.log(event); dates = (noDefault ? '' : dates); } inst.selectedDay = date.getDate(); inst.drawMonth = inst.selectedMonth = date.getMonth(); inst.drawYear = inst.selectedYear = date.getFullYear(); inst.currentDay = (dates ? date.getDate() : 0); inst.currentMonth = (dates ? date.getMonth() : 0); inst.currentYear = (dates ? date.getFullYear() : 0); this._adjustInstDate(inst); }, /* Retrieve the default date shown on opening. */ _getDefaultDate: function(inst) { return this._restrictMinMax(inst, this._determineDate(inst, this._get(inst, 'defaultDate'), new Date())); }, /* A date may be specified as an exact value or a relative one. */ _determineDate: function(inst, date, defaultDate) { var offsetNumeric = function(offset) { var date = new Date(); date.setDate(date.getDate() + offset); return date; }; var offsetString = function(offset) { try { return $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'), offset, $.datepicker._getFormatConfig(inst)); } catch (e) { // Ignore } var date = (offset.toLowerCase().match(/^c/) ? $.datepicker._getDate(inst) : null) || new Date(); var year = date.getFullYear(); var month = date.getMonth(); var day = date.getDate(); var pattern = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g; var matches = pattern.exec(offset); while (matches) { switch (matches[2] || 'd') { case 'd' : case 'D' : day += parseInt(matches[1],10); break; case 'w' : case 'W' : day += parseInt(matches[1],10) * 7; break; case 'm' : case 'M' : month += parseInt(matches[1],10); day = Math.min(day, $.datepicker._getDaysInMonth(year, month)); break; case 'y': case 'Y' : year += parseInt(matches[1],10); day = Math.min(day, $.datepicker._getDaysInMonth(year, month)); break; } matches = pattern.exec(offset); } return new Date(year, month, day); }; var newDate = (date == null || date === '' ? defaultDate : (typeof date == 'string' ? offsetString(date) : (typeof date == 'number' ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : new Date(date.getTime())))); newDate = (newDate && newDate.toString() == 'Invalid Date' ? defaultDate : newDate); if (newDate) { newDate.setHours(0); newDate.setMinutes(0); newDate.setSeconds(0); newDate.setMilliseconds(0); } return this._daylightSavingAdjust(newDate); }, /* Handle switch to/from daylight saving. Hours may be non-zero on daylight saving cut-over: > 12 when midnight changeover, but then cannot generate midnight datetime, so jump to 1AM, otherwise reset. @param date (Date) the date to check @return (Date) the corrected date */ _daylightSavingAdjust: function(date) { if (!date) return null; date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0); return date; }, /* Set the date(s) directly. */ _setDate: function(inst, date, noChange) { var clear = !date; var origMonth = inst.selectedMonth; var origYear = inst.selectedYear; var newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date())); inst.selectedDay = inst.currentDay = newDate.getDate(); inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth(); inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear(); if ((origMonth != inst.selectedMonth || origYear != inst.selectedYear) && !noChange) this._notifyChange(inst); this._adjustInstDate(inst); if (inst.input) { inst.input.val(clear ? '' : this._formatDate(inst)); } }, /* Retrieve the date(s) directly. */ _getDate: function(inst) { var startDate = (!inst.currentYear || (inst.input && inst.input.val() == '') ? null : this._daylightSavingAdjust(new Date( inst.currentYear, inst.currentMonth, inst.currentDay))); return startDate; }, /* Attach the onxxx handlers. These are declared statically so * they work with static code transformers like Caja. */ _attachHandlers: function(inst) { var stepMonths = this._get(inst, 'stepMonths'); var id = '#' + inst.id.replace( /\\\\/g, "\\" ); inst.dpDiv.find('[data-handler]').map(function () { var handler = { prev: function () { window['DP_jQuery_' + dpuuid].datepicker._adjustDate(id, -stepMonths, 'M'); }, next: function () { window['DP_jQuery_' + dpuuid].datepicker._adjustDate(id, +stepMonths, 'M'); }, hide: function () { window['DP_jQuery_' + dpuuid].datepicker._hideDatepicker(); }, today: function () { window['DP_jQuery_' + dpuuid].datepicker._gotoToday(id); }, selectDay: function () { window['DP_jQuery_' + dpuuid].datepicker._selectDay(id, +this.getAttribute('data-month'), +this.getAttribute('data-year'), this); return false; }, selectMonth: function () { window['DP_jQuery_' + dpuuid].datepicker._selectMonthYear(id, this, 'M'); return false; }, selectYear: function () { window['DP_jQuery_' + dpuuid].datepicker._selectMonthYear(id, this, 'Y'); return false; } }; $(this).bind(this.getAttribute('data-event'), handler[this.getAttribute('data-handler')]); }); }, /* Generate the HTML for the current state of the date picker. */ _generateHTML: function(inst) { var today = new Date(); today = this._daylightSavingAdjust( new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time var isRTL = this._get(inst, 'isRTL'); var showButtonPanel = this._get(inst, 'showButtonPanel'); var hideIfNoPrevNext = this._get(inst, 'hideIfNoPrevNext'); var navigationAsDateFormat = this._get(inst, 'navigationAsDateFormat'); var numMonths = this._getNumberOfMonths(inst); var showCurrentAtPos = this._get(inst, 'showCurrentAtPos'); var stepMonths = this._get(inst, 'stepMonths'); var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1); var currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) : new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); var minDate = this._getMinMaxDate(inst, 'min'); var maxDate = this._getMinMaxDate(inst, 'max'); var drawMonth = inst.drawMonth - showCurrentAtPos; var drawYear = inst.drawYear; if (drawMonth < 0) { drawMonth += 12; drawYear--; } if (maxDate) { var maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(), maxDate.getMonth() - (numMonths[0] * numMonths[1]) + 1, maxDate.getDate())); maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw); while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) { drawMonth--; if (drawMonth < 0) { drawMonth = 11; drawYear--; } } } inst.drawMonth = drawMonth; inst.drawYear = drawYear; var prevText = this._get(inst, 'prevText'); prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText, this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)), this._getFormatConfig(inst))); var prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ? '' + prevText + '' : (hideIfNoPrevNext ? '' : '' + prevText + '')); var nextText = this._get(inst, 'nextText'); nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText, this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)), this._getFormatConfig(inst))); var next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ? '' + nextText + '' : (hideIfNoPrevNext ? '' : '' + nextText + '')); var currentText = this._get(inst, 'currentText'); var gotoDate = (this._get(inst, 'gotoCurrent') && inst.currentDay ? currentDate : today); currentText = (!navigationAsDateFormat ? currentText : this.formatDate(currentText, gotoDate, this._getFormatConfig(inst))); var controls = (!inst.inline ? '' : ''); var buttonPanel = (showButtonPanel) ? '
                                                ' + (isRTL ? controls : '') + (this._isInRange(inst, gotoDate) ? '' : '') + (isRTL ? '' : controls) + '
                                                ' : ''; var firstDay = parseInt(this._get(inst, 'firstDay'),10); firstDay = (isNaN(firstDay) ? 0 : firstDay); var showWeek = this._get(inst, 'showWeek'); var dayNames = this._get(inst, 'dayNames'); var dayNamesShort = this._get(inst, 'dayNamesShort'); var dayNamesMin = this._get(inst, 'dayNamesMin'); var monthNames = this._get(inst, 'monthNames'); var monthNamesShort = this._get(inst, 'monthNamesShort'); var beforeShowDay = this._get(inst, 'beforeShowDay'); var showOtherMonths = this._get(inst, 'showOtherMonths'); var selectOtherMonths = this._get(inst, 'selectOtherMonths'); var calculateWeek = this._get(inst, 'calculateWeek') || this.iso8601Week; var defaultDate = this._getDefaultDate(inst); var html = ''; for (var row = 0; row < numMonths[0]; row++) { var group = ''; this.maxRows = 4; for (var col = 0; col < numMonths[1]; col++) { var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay)); var cornerClass = ' ui-corner-all'; var calender = ''; if (isMultiMonth) { calender += '
                                                '; } calender += '
                                                ' + (/all|left/.test(cornerClass) && row == 0 ? (isRTL ? next : prev) : '') + (/all|right/.test(cornerClass) && row == 0 ? (isRTL ? prev : next) : '') + this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate, row > 0 || col > 0, monthNames, monthNamesShort) + // draw month headers '
                                                ' + ''; var thead = (showWeek ? '' : ''); for (var dow = 0; dow < 7; dow++) { // days of the week var day = (dow + firstDay) % 7; thead += '= 5 ? ' class="ui-datepicker-week-end"' : '') + '>' + '' + dayNamesMin[day] + ''; } calender += thead + ''; var daysInMonth = this._getDaysInMonth(drawYear, drawMonth); if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth) inst.selectedDay = Math.min(inst.selectedDay, daysInMonth); var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7; var curRows = Math.ceil((leadDays + daysInMonth) / 7); // calculate the number of rows to generate var numRows = (isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows); //If multiple months, use the higher number of rows (see #7043) this.maxRows = numRows; var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays)); for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows calender += ''; var tbody = (!showWeek ? '' : ''); for (var dow = 0; dow < 7; dow++) { // create date picker days var daySettings = (beforeShowDay ? beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, '']); var otherMonth = (printDate.getMonth() != drawMonth); var unselectable = (otherMonth && !selectOtherMonths) || !daySettings[0] || (minDate && printDate < minDate) || (maxDate && printDate > maxDate); tbody += ''; // display selectable date printDate.setDate(printDate.getDate() + 1); printDate = this._daylightSavingAdjust(printDate); } calender += tbody + ''; } drawMonth++; if (drawMonth > 11) { drawMonth = 0; drawYear++; } calender += '
                                                ' + this._get(inst, 'weekHeader') + '
                                                ' + this._get(inst, 'calculateWeek')(printDate) + '' + // actions (otherMonth && !showOtherMonths ? ' ' : // display for other months (unselectable ? '' + printDate.getDate() + '' : '' + printDate.getDate() + '')) + '
                                                ' + (isMultiMonth ? '
                                                ' + ((numMonths[0] > 0 && col == numMonths[1]-1) ? '
                                                ' : '') : ''); group += calender; } html += group; } html += buttonPanel + ($.ui.ie6 && !inst.inline ? '' : ''); inst._keyEvent = false; return html; }, /* Generate the month and year header. */ _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate, secondary, monthNames, monthNamesShort) { var changeMonth = this._get(inst, 'changeMonth'); var changeYear = this._get(inst, 'changeYear'); var showMonthAfterYear = this._get(inst, 'showMonthAfterYear'); var html = '
                                                '; var monthHtml = ''; // month selection if (secondary || !changeMonth) monthHtml += '' + monthNames[drawMonth] + ''; else { var inMinYear = (minDate && minDate.getFullYear() == drawYear); var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear); monthHtml += ''; } if (!showMonthAfterYear) html += monthHtml + (secondary || !(changeMonth && changeYear) ? ' ' : ''); // year selection if ( !inst.yearshtml ) { inst.yearshtml = ''; if (secondary || !changeYear) html += '' + drawYear + ''; else { // determine range of years to display var years = this._get(inst, 'yearRange').split(':'); var thisYear = new Date().getFullYear(); var determineYear = function(value) { var year = (value.match(/c[+-].*/) ? drawYear + parseInt(value.substring(1), 10) : (value.match(/[+-].*/) ? thisYear + parseInt(value, 10) : parseInt(value, 10))); return (isNaN(year) ? thisYear : year); }; var year = determineYear(years[0]); var endYear = Math.max(year, determineYear(years[1] || '')); year = (minDate ? Math.max(year, minDate.getFullYear()) : year); endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear); inst.yearshtml += ''; html += inst.yearshtml; inst.yearshtml = null; } } html += this._get(inst, 'yearSuffix'); if (showMonthAfterYear) html += (secondary || !(changeMonth && changeYear) ? ' ' : '') + monthHtml; html += '
                                                '; // Close datepicker_header return html; }, /* Adjust one of the date sub-fields. */ _adjustInstDate: function(inst, offset, period) { var year = inst.drawYear + (period == 'Y' ? offset : 0); var month = inst.drawMonth + (period == 'M' ? offset : 0); var day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + (period == 'D' ? offset : 0); var date = this._restrictMinMax(inst, this._daylightSavingAdjust(new Date(year, month, day))); inst.selectedDay = date.getDate(); inst.drawMonth = inst.selectedMonth = date.getMonth(); inst.drawYear = inst.selectedYear = date.getFullYear(); if (period == 'M' || period == 'Y') this._notifyChange(inst); }, /* Ensure a date is within any min/max bounds. */ _restrictMinMax: function(inst, date) { var minDate = this._getMinMaxDate(inst, 'min'); var maxDate = this._getMinMaxDate(inst, 'max'); var newDate = (minDate && date < minDate ? minDate : date); newDate = (maxDate && newDate > maxDate ? maxDate : newDate); return newDate; }, /* Notify change of month/year. */ _notifyChange: function(inst) { var onChange = this._get(inst, 'onChangeMonthYear'); if (onChange) onChange.apply((inst.input ? inst.input[0] : null), [inst.selectedYear, inst.selectedMonth + 1, inst]); }, /* Determine the number of months to show. */ _getNumberOfMonths: function(inst) { var numMonths = this._get(inst, 'numberOfMonths'); return (numMonths == null ? [1, 1] : (typeof numMonths == 'number' ? [1, numMonths] : numMonths)); }, /* Determine the current maximum date - ensure no time components are set. */ _getMinMaxDate: function(inst, minMax) { return this._determineDate(inst, this._get(inst, minMax + 'Date'), null); }, /* Find the number of days in a given month. */ _getDaysInMonth: function(year, month) { return 32 - this._daylightSavingAdjust(new Date(year, month, 32)).getDate(); }, /* Find the day of the week of the first of a month. */ _getFirstDayOfMonth: function(year, month) { return new Date(year, month, 1).getDay(); }, /* Determines if we should allow a "next/prev" month display change. */ _canAdjustMonth: function(inst, offset, curYear, curMonth) { var numMonths = this._getNumberOfMonths(inst); var date = this._daylightSavingAdjust(new Date(curYear, curMonth + (offset < 0 ? offset : numMonths[0] * numMonths[1]), 1)); if (offset < 0) date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth())); return this._isInRange(inst, date); }, /* Is the given date in the accepted range? */ _isInRange: function(inst, date) { var minDate = this._getMinMaxDate(inst, 'min'); var maxDate = this._getMinMaxDate(inst, 'max'); return ((!minDate || date.getTime() >= minDate.getTime()) && (!maxDate || date.getTime() <= maxDate.getTime())); }, /* Provide the configuration settings for formatting/parsing. */ _getFormatConfig: function(inst) { var shortYearCutoff = this._get(inst, 'shortYearCutoff'); shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff : new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10)); return {shortYearCutoff: shortYearCutoff, dayNamesShort: this._get(inst, 'dayNamesShort'), dayNames: this._get(inst, 'dayNames'), monthNamesShort: this._get(inst, 'monthNamesShort'), monthNames: this._get(inst, 'monthNames')}; }, /* Format the given date for display. */ _formatDate: function(inst, day, month, year) { if (!day) { inst.currentDay = inst.selectedDay; inst.currentMonth = inst.selectedMonth; inst.currentYear = inst.selectedYear; } var date = (day ? (typeof day == 'object' ? day : this._daylightSavingAdjust(new Date(year, month, day))) : this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); return this.formatDate(this._get(inst, 'dateFormat'), date, this._getFormatConfig(inst)); } }); /* * Bind hover events for datepicker elements. * Done via delegate so the binding only occurs once in the lifetime of the parent div. * Global instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker. */ function bindHover(dpDiv) { var selector = 'button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a'; return dpDiv.delegate(selector, 'mouseout', function() { $(this).removeClass('ui-state-hover'); if (this.className.indexOf('ui-datepicker-prev') != -1) $(this).removeClass('ui-datepicker-prev-hover'); if (this.className.indexOf('ui-datepicker-next') != -1) $(this).removeClass('ui-datepicker-next-hover'); }) .delegate(selector, 'mouseover', function(){ if (!$.datepicker._isDisabledDatepicker( instActive.inline ? dpDiv.parent()[0] : instActive.input[0])) { $(this).parents('.ui-datepicker-calendar').find('a').removeClass('ui-state-hover'); $(this).addClass('ui-state-hover'); if (this.className.indexOf('ui-datepicker-prev') != -1) $(this).addClass('ui-datepicker-prev-hover'); if (this.className.indexOf('ui-datepicker-next') != -1) $(this).addClass('ui-datepicker-next-hover'); } }); } /* jQuery extend now ignores nulls! */ function extendRemove(target, props) { $.extend(target, props); for (var name in props) if (props[name] == null || props[name] == undefined) target[name] = props[name]; return target; }; /* Invoke the datepicker functionality. @param options string - a command, optionally followed by additional parameters or Object - settings for attaching new datepicker functionality @return jQuery object */ $.fn.datepicker = function(options){ /* Verify an empty collection wasn't passed - Fixes #6976 */ if ( !this.length ) { return this; } /* Initialise the date picker. */ if (!$.datepicker.initialized) { $(document).mousedown($.datepicker._checkExternalClick). find(document.body).append($.datepicker.dpDiv); $.datepicker.initialized = true; } var otherArgs = Array.prototype.slice.call(arguments, 1); if (typeof options == 'string' && (options == 'isDisabled' || options == 'getDate' || options == 'widget')) return $.datepicker['_' + options + 'Datepicker']. apply($.datepicker, [this[0]].concat(otherArgs)); if (options == 'option' && arguments.length == 2 && typeof arguments[1] == 'string') return $.datepicker['_' + options + 'Datepicker']. apply($.datepicker, [this[0]].concat(otherArgs)); return this.each(function() { typeof options == 'string' ? $.datepicker['_' + options + 'Datepicker']. apply($.datepicker, [this].concat(otherArgs)) : $.datepicker._attachDatepicker(this, options); }); }; $.datepicker = new Datepicker(); // singleton instance $.datepicker.initialized = false; $.datepicker.uuid = new Date().getTime(); $.datepicker.version = "1.9.2"; // Workaround for #4055 // Add another global to avoid noConflict issues with inline event handlers window['DP_jQuery_' + dpuuid] = $; })(jQuery); (function( $, undefined ) { var uiDialogClasses = "ui-dialog ui-widget ui-widget-content ui-corner-all ", sizeRelatedOptions = { buttons: true, height: true, maxHeight: true, maxWidth: true, minHeight: true, minWidth: true, width: true }, resizableRelatedOptions = { maxHeight: true, maxWidth: true, minHeight: true, minWidth: true }; $.widget("ui.dialog", { version: "1.9.2", options: { autoOpen: true, buttons: {}, closeOnEscape: true, closeText: "close", dialogClass: "", draggable: true, hide: null, height: "auto", maxHeight: false, maxWidth: false, minHeight: 150, minWidth: 150, modal: false, position: { my: "center", at: "center", of: window, collision: "fit", // ensure that the titlebar is never outside the document using: function( pos ) { var topOffset = $( this ).css( pos ).offset().top; if ( topOffset < 0 ) { $( this ).css( "top", pos.top - topOffset ); } } }, resizable: true, show: null, stack: true, title: "", width: 300, zIndex: 1000 }, _create: function() { this.originalTitle = this.element.attr( "title" ); // #5742 - .attr() might return a DOMElement if ( typeof this.originalTitle !== "string" ) { this.originalTitle = ""; } this.oldPosition = { parent: this.element.parent(), index: this.element.parent().children().index( this.element ) }; this.options.title = this.options.title || this.originalTitle; var that = this, options = this.options, title = options.title || " ", uiDialog, uiDialogTitlebar, uiDialogTitlebarClose, uiDialogTitle, uiDialogButtonPane; uiDialog = ( this.uiDialog = $( "
                                                " ) ) .addClass( uiDialogClasses + options.dialogClass ) .css({ display: "none", outline: 0, // TODO: move to stylesheet zIndex: options.zIndex }) // setting tabIndex makes the div focusable .attr( "tabIndex", -1) .keydown(function( event ) { if ( options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode && event.keyCode === $.ui.keyCode.ESCAPE ) { that.close( event ); event.preventDefault(); } }) .mousedown(function( event ) { that.moveToTop( false, event ); }) .appendTo( "body" ); this.element .show() .removeAttr( "title" ) .addClass( "ui-dialog-content ui-widget-content" ) .appendTo( uiDialog ); uiDialogTitlebar = ( this.uiDialogTitlebar = $( "
                                                " ) ) .addClass( "ui-dialog-titlebar ui-widget-header " + "ui-corner-all ui-helper-clearfix" ) .bind( "mousedown", function() { // Dialog isn't getting focus when dragging (#8063) uiDialog.focus(); }) .prependTo( uiDialog ); uiDialogTitlebarClose = $( "" ) .addClass( "ui-dialog-titlebar-close ui-corner-all" ) .attr( "role", "button" ) .click(function( event ) { event.preventDefault(); that.close( event ); }) .appendTo( uiDialogTitlebar ); ( this.uiDialogTitlebarCloseText = $( "" ) ) .addClass( "ui-icon ui-icon-closethick" ) .text( options.closeText ) .appendTo( uiDialogTitlebarClose ); uiDialogTitle = $( "" ) .uniqueId() .addClass( "ui-dialog-title" ) .html( title ) .prependTo( uiDialogTitlebar ); uiDialogButtonPane = ( this.uiDialogButtonPane = $( "
                                                " ) ) .addClass( "ui-dialog-buttonpane ui-widget-content ui-helper-clearfix" ); ( this.uiButtonSet = $( "
                                                " ) ) .addClass( "ui-dialog-buttonset" ) .appendTo( uiDialogButtonPane ); uiDialog.attr({ role: "dialog", "aria-labelledby": uiDialogTitle.attr( "id" ) }); uiDialogTitlebar.find( "*" ).add( uiDialogTitlebar ).disableSelection(); this._hoverable( uiDialogTitlebarClose ); this._focusable( uiDialogTitlebarClose ); if ( options.draggable && $.fn.draggable ) { this._makeDraggable(); } if ( options.resizable && $.fn.resizable ) { this._makeResizable(); } this._createButtons( options.buttons ); this._isOpen = false; if ( $.fn.bgiframe ) { uiDialog.bgiframe(); } // prevent tabbing out of modal dialogs this._on( uiDialog, { keydown: function( event ) { if ( !options.modal || event.keyCode !== $.ui.keyCode.TAB ) { return; } var tabbables = $( ":tabbable", uiDialog ), first = tabbables.filter( ":first" ), last = tabbables.filter( ":last" ); if ( event.target === last[0] && !event.shiftKey ) { first.focus( 1 ); return false; } else if ( event.target === first[0] && event.shiftKey ) { last.focus( 1 ); return false; } }}); }, _init: function() { if ( this.options.autoOpen ) { this.open(); } }, _destroy: function() { var next, oldPosition = this.oldPosition; if ( this.overlay ) { this.overlay.destroy(); } this.uiDialog.hide(); this.element .removeClass( "ui-dialog-content ui-widget-content" ) .hide() .appendTo( "body" ); this.uiDialog.remove(); if ( this.originalTitle ) { this.element.attr( "title", this.originalTitle ); } next = oldPosition.parent.children().eq( oldPosition.index ); // Don't try to place the dialog next to itself (#8613) if ( next.length && next[ 0 ] !== this.element[ 0 ] ) { next.before( this.element ); } else { oldPosition.parent.append( this.element ); } }, widget: function() { return this.uiDialog; }, close: function( event ) { var that = this, maxZ, thisZ; if ( !this._isOpen ) { return; } if ( false === this._trigger( "beforeClose", event ) ) { return; } this._isOpen = false; if ( this.overlay ) { this.overlay.destroy(); } if ( this.options.hide ) { this._hide( this.uiDialog, this.options.hide, function() { that._trigger( "close", event ); }); } else { this.uiDialog.hide(); this._trigger( "close", event ); } $.ui.dialog.overlay.resize(); // adjust the maxZ to allow other modal dialogs to continue to work (see #4309) if ( this.options.modal ) { maxZ = 0; $( ".ui-dialog" ).each(function() { if ( this !== that.uiDialog[0] ) { thisZ = $( this ).css( "z-index" ); if ( !isNaN( thisZ ) ) { maxZ = Math.max( maxZ, thisZ ); } } }); $.ui.dialog.maxZ = maxZ; } return this; }, isOpen: function() { return this._isOpen; }, // the force parameter allows us to move modal dialogs to their correct // position on open moveToTop: function( force, event ) { var options = this.options, saveScroll; if ( ( options.modal && !force ) || ( !options.stack && !options.modal ) ) { return this._trigger( "focus", event ); } if ( options.zIndex > $.ui.dialog.maxZ ) { $.ui.dialog.maxZ = options.zIndex; } if ( this.overlay ) { $.ui.dialog.maxZ += 1; $.ui.dialog.overlay.maxZ = $.ui.dialog.maxZ; this.overlay.$el.css( "z-index", $.ui.dialog.overlay.maxZ ); } // Save and then restore scroll // Opera 9.5+ resets when parent z-index is changed. // http://bugs.jqueryui.com/ticket/3193 saveScroll = { scrollTop: this.element.scrollTop(), scrollLeft: this.element.scrollLeft() }; $.ui.dialog.maxZ += 1; this.uiDialog.css( "z-index", $.ui.dialog.maxZ ); this.element.attr( saveScroll ); this._trigger( "focus", event ); return this; }, open: function() { if ( this._isOpen ) { return; } var hasFocus, options = this.options, uiDialog = this.uiDialog; this._size(); this._position( options.position ); uiDialog.show( options.show ); this.overlay = options.modal ? new $.ui.dialog.overlay( this ) : null; this.moveToTop( true ); // set focus to the first tabbable element in the content area or the first button // if there are no tabbable elements, set focus on the dialog itself hasFocus = this.element.find( ":tabbable" ); if ( !hasFocus.length ) { hasFocus = this.uiDialogButtonPane.find( ":tabbable" ); if ( !hasFocus.length ) { hasFocus = uiDialog; } } hasFocus.eq( 0 ).focus(); this._isOpen = true; this._trigger( "open" ); return this; }, _createButtons: function( buttons ) { var that = this, hasButtons = false; // if we already have a button pane, remove it this.uiDialogButtonPane.remove(); this.uiButtonSet.empty(); if ( typeof buttons === "object" && buttons !== null ) { $.each( buttons, function() { return !(hasButtons = true); }); } if ( hasButtons ) { $.each( buttons, function( name, props ) { var button, click; props = $.isFunction( props ) ? { click: props, text: name } : props; // Default to a non-submitting button props = $.extend( { type: "button" }, props ); // Change the context for the click callback to be the main element click = props.click; props.click = function() { click.apply( that.element[0], arguments ); }; button = $( "", props ) .appendTo( that.uiButtonSet ); if ( $.fn.button ) { button.button(); } }); this.uiDialog.addClass( "ui-dialog-buttons" ); this.uiDialogButtonPane.appendTo( this.uiDialog ); } else { this.uiDialog.removeClass( "ui-dialog-buttons" ); } }, _makeDraggable: function() { var that = this, options = this.options; function filteredUi( ui ) { return { position: ui.position, offset: ui.offset }; } this.uiDialog.draggable({ cancel: ".ui-dialog-content, .ui-dialog-titlebar-close", handle: ".ui-dialog-titlebar", containment: "document", start: function( event, ui ) { $( this ) .addClass( "ui-dialog-dragging" ); that._trigger( "dragStart", event, filteredUi( ui ) ); }, drag: function( event, ui ) { that._trigger( "drag", event, filteredUi( ui ) ); }, stop: function( event, ui ) { options.position = [ ui.position.left - that.document.scrollLeft(), ui.position.top - that.document.scrollTop() ]; $( this ) .removeClass( "ui-dialog-dragging" ); that._trigger( "dragStop", event, filteredUi( ui ) ); $.ui.dialog.overlay.resize(); } }); }, _makeResizable: function( handles ) { handles = (handles === undefined ? this.options.resizable : handles); var that = this, options = this.options, // .ui-resizable has position: relative defined in the stylesheet // but dialogs have to use absolute or fixed positioning position = this.uiDialog.css( "position" ), resizeHandles = typeof handles === 'string' ? handles : "n,e,s,w,se,sw,ne,nw"; function filteredUi( ui ) { return { originalPosition: ui.originalPosition, originalSize: ui.originalSize, position: ui.position, size: ui.size }; } this.uiDialog.resizable({ cancel: ".ui-dialog-content", containment: "document", alsoResize: this.element, maxWidth: options.maxWidth, maxHeight: options.maxHeight, minWidth: options.minWidth, minHeight: this._minHeight(), handles: resizeHandles, start: function( event, ui ) { $( this ).addClass( "ui-dialog-resizing" ); that._trigger( "resizeStart", event, filteredUi( ui ) ); }, resize: function( event, ui ) { that._trigger( "resize", event, filteredUi( ui ) ); }, stop: function( event, ui ) { $( this ).removeClass( "ui-dialog-resizing" ); options.height = $( this ).height(); options.width = $( this ).width(); that._trigger( "resizeStop", event, filteredUi( ui ) ); $.ui.dialog.overlay.resize(); } }) .css( "position", position ) .find( ".ui-resizable-se" ) .addClass( "ui-icon ui-icon-grip-diagonal-se" ); }, _minHeight: function() { var options = this.options; if ( options.height === "auto" ) { return options.minHeight; } else { return Math.min( options.minHeight, options.height ); } }, _position: function( position ) { var myAt = [], offset = [ 0, 0 ], isVisible; if ( position ) { // deep extending converts arrays to objects in jQuery <= 1.3.2 :-( // if (typeof position == 'string' || $.isArray(position)) { // myAt = $.isArray(position) ? position : position.split(' '); if ( typeof position === "string" || (typeof position === "object" && "0" in position ) ) { myAt = position.split ? position.split( " " ) : [ position[ 0 ], position[ 1 ] ]; if ( myAt.length === 1 ) { myAt[ 1 ] = myAt[ 0 ]; } $.each( [ "left", "top" ], function( i, offsetPosition ) { if ( +myAt[ i ] === myAt[ i ] ) { offset[ i ] = myAt[ i ]; myAt[ i ] = offsetPosition; } }); position = { my: myAt[0] + (offset[0] < 0 ? offset[0] : "+" + offset[0]) + " " + myAt[1] + (offset[1] < 0 ? offset[1] : "+" + offset[1]), at: myAt.join( " " ) }; } position = $.extend( {}, $.ui.dialog.prototype.options.position, position ); } else { position = $.ui.dialog.prototype.options.position; } // need to show the dialog to get the actual offset in the position plugin isVisible = this.uiDialog.is( ":visible" ); if ( !isVisible ) { this.uiDialog.show(); } this.uiDialog.position( position ); if ( !isVisible ) { this.uiDialog.hide(); } }, _setOptions: function( options ) { var that = this, resizableOptions = {}, resize = false; $.each( options, function( key, value ) { that._setOption( key, value ); if ( key in sizeRelatedOptions ) { resize = true; } if ( key in resizableRelatedOptions ) { resizableOptions[ key ] = value; } }); if ( resize ) { this._size(); } if ( this.uiDialog.is( ":data(resizable)" ) ) { this.uiDialog.resizable( "option", resizableOptions ); } }, _setOption: function( key, value ) { var isDraggable, isResizable, uiDialog = this.uiDialog; switch ( key ) { case "buttons": this._createButtons( value ); break; case "closeText": // ensure that we always pass a string this.uiDialogTitlebarCloseText.text( "" + value ); break; case "dialogClass": uiDialog .removeClass( this.options.dialogClass ) .addClass( uiDialogClasses + value ); break; case "disabled": if ( value ) { uiDialog.addClass( "ui-dialog-disabled" ); } else { uiDialog.removeClass( "ui-dialog-disabled" ); } break; case "draggable": isDraggable = uiDialog.is( ":data(draggable)" ); if ( isDraggable && !value ) { uiDialog.draggable( "destroy" ); } if ( !isDraggable && value ) { this._makeDraggable(); } break; case "position": this._position( value ); break; case "resizable": // currently resizable, becoming non-resizable isResizable = uiDialog.is( ":data(resizable)" ); if ( isResizable && !value ) { uiDialog.resizable( "destroy" ); } // currently resizable, changing handles if ( isResizable && typeof value === "string" ) { uiDialog.resizable( "option", "handles", value ); } // currently non-resizable, becoming resizable if ( !isResizable && value !== false ) { this._makeResizable( value ); } break; case "title": // convert whatever was passed in o a string, for html() to not throw up $( ".ui-dialog-title", this.uiDialogTitlebar ) .html( "" + ( value || " " ) ); break; } this._super( key, value ); }, _size: function() { /* If the user has resized the dialog, the .ui-dialog and .ui-dialog-content * divs will both have width and height set, so we need to reset them */ var nonContentHeight, minContentHeight, autoHeight, options = this.options, isVisible = this.uiDialog.is( ":visible" ); // reset content sizing this.element.show().css({ width: "auto", minHeight: 0, height: 0 }); if ( options.minWidth > options.width ) { options.width = options.minWidth; } // reset wrapper sizing // determine the height of all the non-content elements nonContentHeight = this.uiDialog.css({ height: "auto", width: options.width }) .outerHeight(); minContentHeight = Math.max( 0, options.minHeight - nonContentHeight ); if ( options.height === "auto" ) { // only needed for IE6 support if ( $.support.minHeight ) { this.element.css({ minHeight: minContentHeight, height: "auto" }); } else { this.uiDialog.show(); autoHeight = this.element.css( "height", "auto" ).height(); if ( !isVisible ) { this.uiDialog.hide(); } this.element.height( Math.max( autoHeight, minContentHeight ) ); } } else { this.element.height( Math.max( options.height - nonContentHeight, 0 ) ); } if (this.uiDialog.is( ":data(resizable)" ) ) { this.uiDialog.resizable( "option", "minHeight", this._minHeight() ); } } }); $.extend($.ui.dialog, { uuid: 0, maxZ: 0, getTitleId: function($el) { var id = $el.attr( "id" ); if ( !id ) { this.uuid += 1; id = this.uuid; } return "ui-dialog-title-" + id; }, overlay: function( dialog ) { this.$el = $.ui.dialog.overlay.create( dialog ); } }); $.extend( $.ui.dialog.overlay, { instances: [], // reuse old instances due to IE memory leak with alpha transparency (see #5185) oldInstances: [], maxZ: 0, events: $.map( "focus,mousedown,mouseup,keydown,keypress,click".split( "," ), function( event ) { return event + ".dialog-overlay"; } ).join( " " ), create: function( dialog ) { if ( this.instances.length === 0 ) { // prevent use of anchors and inputs // we use a setTimeout in case the overlay is created from an // event that we're going to be cancelling (see #2804) setTimeout(function() { // handle $(el).dialog().dialog('close') (see #4065) if ( $.ui.dialog.overlay.instances.length ) { $( document ).bind( $.ui.dialog.overlay.events, function( event ) { // stop events if the z-index of the target is < the z-index of the overlay // we cannot return true when we don't want to cancel the event (#3523) if ( $( event.target ).zIndex() < $.ui.dialog.overlay.maxZ ) { return false; } }); } }, 1 ); // handle window resize $( window ).bind( "resize.dialog-overlay", $.ui.dialog.overlay.resize ); } var $el = ( this.oldInstances.pop() || $( "
                                                " ).addClass( "ui-widget-overlay" ) ); // allow closing by pressing the escape key $( document ).bind( "keydown.dialog-overlay", function( event ) { var instances = $.ui.dialog.overlay.instances; // only react to the event if we're the top overlay if ( instances.length !== 0 && instances[ instances.length - 1 ] === $el && dialog.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode && event.keyCode === $.ui.keyCode.ESCAPE ) { dialog.close( event ); event.preventDefault(); } }); $el.appendTo( document.body ).css({ width: this.width(), height: this.height() }); if ( $.fn.bgiframe ) { $el.bgiframe(); } this.instances.push( $el ); return $el; }, destroy: function( $el ) { var indexOf = $.inArray( $el, this.instances ), maxZ = 0; if ( indexOf !== -1 ) { this.oldInstances.push( this.instances.splice( indexOf, 1 )[ 0 ] ); } if ( this.instances.length === 0 ) { $( [ document, window ] ).unbind( ".dialog-overlay" ); } $el.height( 0 ).width( 0 ).remove(); // adjust the maxZ to allow other modal dialogs to continue to work (see #4309) $.each( this.instances, function() { maxZ = Math.max( maxZ, this.css( "z-index" ) ); }); this.maxZ = maxZ; }, height: function() { var scrollHeight, offsetHeight; // handle IE if ( $.ui.ie ) { scrollHeight = Math.max( document.documentElement.scrollHeight, document.body.scrollHeight ); offsetHeight = Math.max( document.documentElement.offsetHeight, document.body.offsetHeight ); if ( scrollHeight < offsetHeight ) { return $( window ).height() + "px"; } else { return scrollHeight + "px"; } // handle "good" browsers } else { return $( document ).height() + "px"; } }, width: function() { var scrollWidth, offsetWidth; // handle IE if ( $.ui.ie ) { scrollWidth = Math.max( document.documentElement.scrollWidth, document.body.scrollWidth ); offsetWidth = Math.max( document.documentElement.offsetWidth, document.body.offsetWidth ); if ( scrollWidth < offsetWidth ) { return $( window ).width() + "px"; } else { return scrollWidth + "px"; } // handle "good" browsers } else { return $( document ).width() + "px"; } }, resize: function() { /* If the dialog is draggable and the user drags it past the * right edge of the window, the document becomes wider so we * need to stretch the overlay. If the user then drags the * dialog back to the left, the document will become narrower, * so we need to shrink the overlay to the appropriate size. * This is handled by shrinking the overlay before setting it * to the full document size. */ var $overlays = $( [] ); $.each( $.ui.dialog.overlay.instances, function() { $overlays = $overlays.add( this ); }); $overlays.css({ width: 0, height: 0 }).css({ width: $.ui.dialog.overlay.width(), height: $.ui.dialog.overlay.height() }); } }); $.extend( $.ui.dialog.overlay.prototype, { destroy: function() { $.ui.dialog.overlay.destroy( this.$el ); } }); }( jQuery ) ); (function( $, undefined ) { $.widget("ui.draggable", $.ui.mouse, { version: "1.9.2", widgetEventPrefix: "drag", options: { addClasses: true, appendTo: "parent", axis: false, connectToSortable: false, containment: false, cursor: "auto", cursorAt: false, grid: false, handle: false, helper: "original", iframeFix: false, opacity: false, refreshPositions: false, revert: false, revertDuration: 500, scope: "default", scroll: true, scrollSensitivity: 20, scrollSpeed: 20, snap: false, snapMode: "both", snapTolerance: 20, stack: false, zIndex: false }, _create: function() { if (this.options.helper == 'original' && !(/^(?:r|a|f)/).test(this.element.css("position"))) this.element[0].style.position = 'relative'; (this.options.addClasses && this.element.addClass("ui-draggable")); (this.options.disabled && this.element.addClass("ui-draggable-disabled")); this._mouseInit(); }, _destroy: function() { this.element.removeClass( "ui-draggable ui-draggable-dragging ui-draggable-disabled" ); this._mouseDestroy(); }, _mouseCapture: function(event) { var o = this.options; // among others, prevent a drag on a resizable-handle if (this.helper || o.disabled || $(event.target).is('.ui-resizable-handle')) return false; //Quit if we're not on a valid handle this.handle = this._getHandle(event); if (!this.handle) return false; $(o.iframeFix === true ? "iframe" : o.iframeFix).each(function() { $('
                                                ') .css({ width: this.offsetWidth+"px", height: this.offsetHeight+"px", position: "absolute", opacity: "0.001", zIndex: 1000 }) .css($(this).offset()) .appendTo("body"); }); return true; }, _mouseStart: function(event) { var o = this.options; //Create and append the visible helper this.helper = this._createHelper(event); this.helper.addClass("ui-draggable-dragging"); //Cache the helper size this._cacheHelperProportions(); //If ddmanager is used for droppables, set the global draggable if($.ui.ddmanager) $.ui.ddmanager.current = this; /* * - Position generation - * This block generates everything position related - it's the core of draggables. */ //Cache the margins of the original element this._cacheMargins(); //Store the helper's css position this.cssPosition = this.helper.css("position"); this.scrollParent = this.helper.scrollParent(); //The element's absolute position on the page minus margins this.offset = this.positionAbs = this.element.offset(); this.offset = { top: this.offset.top - this.margins.top, left: this.offset.left - this.margins.left }; $.extend(this.offset, { click: { //Where the click happened, relative to the element left: event.pageX - this.offset.left, top: event.pageY - this.offset.top }, parent: this._getParentOffset(), relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper }); //Generate the original position this.originalPosition = this.position = this._generatePosition(event); this.originalPageX = event.pageX; this.originalPageY = event.pageY; //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt)); //Set a containment if given in the options if(o.containment) this._setContainment(); //Trigger event + callbacks if(this._trigger("start", event) === false) { this._clear(); return false; } //Recache the helper size this._cacheHelperProportions(); //Prepare the droppable offsets if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, event); this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position //If the ddmanager is used for droppables, inform the manager that dragging has started (see #5003) if ( $.ui.ddmanager ) $.ui.ddmanager.dragStart(this, event); return true; }, _mouseDrag: function(event, noPropagation) { //Compute the helpers position this.position = this._generatePosition(event); this.positionAbs = this._convertPositionTo("absolute"); //Call plugins and callbacks and use the resulting position if something is returned if (!noPropagation) { var ui = this._uiHash(); if(this._trigger('drag', event, ui) === false) { this._mouseUp({}); return false; } this.position = ui.position; } if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px'; if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px'; if($.ui.ddmanager) $.ui.ddmanager.drag(this, event); return false; }, _mouseStop: function(event) { //If we are using droppables, inform the manager about the drop var dropped = false; if ($.ui.ddmanager && !this.options.dropBehaviour) dropped = $.ui.ddmanager.drop(this, event); //if a drop comes from outside (a sortable) if(this.dropped) { dropped = this.dropped; this.dropped = false; } //if the original element is no longer in the DOM don't bother to continue (see #8269) var element = this.element[0], elementInDom = false; while ( element && (element = element.parentNode) ) { if (element == document ) { elementInDom = true; } } if ( !elementInDom && this.options.helper === "original" ) return false; if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) { var that = this; $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() { if(that._trigger("stop", event) !== false) { that._clear(); } }); } else { if(this._trigger("stop", event) !== false) { this._clear(); } } return false; }, _mouseUp: function(event) { //Remove frame helpers $("div.ui-draggable-iframeFix").each(function() { this.parentNode.removeChild(this); }); //If the ddmanager is used for droppables, inform the manager that dragging has stopped (see #5003) if( $.ui.ddmanager ) $.ui.ddmanager.dragStop(this, event); return $.ui.mouse.prototype._mouseUp.call(this, event); }, cancel: function() { if(this.helper.is(".ui-draggable-dragging")) { this._mouseUp({}); } else { this._clear(); } return this; }, _getHandle: function(event) { var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false; $(this.options.handle, this.element) .find("*") .andSelf() .each(function() { if(this == event.target) handle = true; }); return handle; }, _createHelper: function(event) { var o = this.options; var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event])) : (o.helper == 'clone' ? this.element.clone().removeAttr('id') : this.element); if(!helper.parents('body').length) helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo)); if(helper[0] != this.element[0] && !(/(fixed|absolute)/).test(helper.css("position"))) helper.css("position", "absolute"); return helper; }, _adjustOffsetFromHelper: function(obj) { if (typeof obj == 'string') { obj = obj.split(' '); } if ($.isArray(obj)) { obj = {left: +obj[0], top: +obj[1] || 0}; } if ('left' in obj) { this.offset.click.left = obj.left + this.margins.left; } if ('right' in obj) { this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; } if ('top' in obj) { this.offset.click.top = obj.top + this.margins.top; } if ('bottom' in obj) { this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; } }, _getParentOffset: function() { //Get the offsetParent and cache its position this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); // This is a special case where we need to modify a offset calculated on start, since the following happened: // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag if(this.cssPosition == 'absolute' && this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) { po.left += this.scrollParent.scrollLeft(); po.top += this.scrollParent.scrollTop(); } if((this.offsetParent[0] == document.body) //This needs to be actually done for all browsers, since pageX/pageY includes this information || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == 'html' && $.ui.ie)) //Ugly IE fix po = { top: 0, left: 0 }; return { top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0), left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0) }; }, _getRelativeOffset: function() { if(this.cssPosition == "relative") { var p = this.element.position(); return { top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(), left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft() }; } else { return { top: 0, left: 0 }; } }, _cacheMargins: function() { this.margins = { left: (parseInt(this.element.css("marginLeft"),10) || 0), top: (parseInt(this.element.css("marginTop"),10) || 0), right: (parseInt(this.element.css("marginRight"),10) || 0), bottom: (parseInt(this.element.css("marginBottom"),10) || 0) }; }, _cacheHelperProportions: function() { this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() }; }, _setContainment: function() { var o = this.options; if(o.containment == 'parent') o.containment = this.helper[0].parentNode; if(o.containment == 'document' || o.containment == 'window') this.containment = [ o.containment == 'document' ? 0 : $(window).scrollLeft() - this.offset.relative.left - this.offset.parent.left, o.containment == 'document' ? 0 : $(window).scrollTop() - this.offset.relative.top - this.offset.parent.top, (o.containment == 'document' ? 0 : $(window).scrollLeft()) + $(o.containment == 'document' ? document : window).width() - this.helperProportions.width - this.margins.left, (o.containment == 'document' ? 0 : $(window).scrollTop()) + ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top ]; if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) { var c = $(o.containment); var ce = c[0]; if(!ce) return; var co = c.offset(); var over = ($(ce).css("overflow") != 'hidden'); this.containment = [ (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0), (parseInt($(ce).css("borderTopWidth"),10) || 0) + (parseInt($(ce).css("paddingTop"),10) || 0), (over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left - this.margins.right, (over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top - this.margins.bottom ]; this.relative_container = c; } else if(o.containment.constructor == Array) { this.containment = o.containment; } }, _convertPositionTo: function(d, pos) { if(!pos) pos = this.position; var mod = d == "absolute" ? 1 : -1; var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); return { top: ( pos.top // The absolute mouse position + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border) - ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod) ), left: ( pos.left // The absolute mouse position + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border) - ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod) ) }; }, _generatePosition: function(event) { var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); var pageX = event.pageX; var pageY = event.pageY; /* * - Position constraining - * Constrain the position to a mix of grid, containment. */ if(this.originalPosition) { //If we are not dragging yet, we won't check for options var containment; if(this.containment) { if (this.relative_container){ var co = this.relative_container.offset(); containment = [ this.containment[0] + co.left, this.containment[1] + co.top, this.containment[2] + co.left, this.containment[3] + co.top ]; } else { containment = this.containment; } if(event.pageX - this.offset.click.left < containment[0]) pageX = containment[0] + this.offset.click.left; if(event.pageY - this.offset.click.top < containment[1]) pageY = containment[1] + this.offset.click.top; if(event.pageX - this.offset.click.left > containment[2]) pageX = containment[2] + this.offset.click.left; if(event.pageY - this.offset.click.top > containment[3]) pageY = containment[3] + this.offset.click.top; } if(o.grid) { //Check for grid elements set to 0 to prevent divide by 0 error causing invalid argument errors in IE (see ticket #6950) var top = o.grid[1] ? this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1] : this.originalPageY; pageY = containment ? (!(top - this.offset.click.top < containment[1] || top - this.offset.click.top > containment[3]) ? top : (!(top - this.offset.click.top < containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top; var left = o.grid[0] ? this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0] : this.originalPageX; pageX = containment ? (!(left - this.offset.click.left < containment[0] || left - this.offset.click.left > containment[2]) ? left : (!(left - this.offset.click.left < containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left; } } return { top: ( pageY // The absolute mouse position - this.offset.click.top // Click offset (relative to the element) - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent - this.offset.parent.top // The offsetParent's offset without borders (offset + border) + ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) )) ), left: ( pageX // The absolute mouse position - this.offset.click.left // Click offset (relative to the element) - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent - this.offset.parent.left // The offsetParent's offset without borders (offset + border) + ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() )) ) }; }, _clear: function() { this.helper.removeClass("ui-draggable-dragging"); if(this.helper[0] != this.element[0] && !this.cancelHelperRemoval) this.helper.remove(); //if($.ui.ddmanager) $.ui.ddmanager.current = null; this.helper = null; this.cancelHelperRemoval = false; }, // From now on bulk stuff - mainly helpers _trigger: function(type, event, ui) { ui = ui || this._uiHash(); $.ui.plugin.call(this, type, [event, ui]); if(type == "drag") this.positionAbs = this._convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins return $.Widget.prototype._trigger.call(this, type, event, ui); }, plugins: {}, _uiHash: function(event) { return { helper: this.helper, position: this.position, originalPosition: this.originalPosition, offset: this.positionAbs }; } }); $.ui.plugin.add("draggable", "connectToSortable", { start: function(event, ui) { var inst = $(this).data("draggable"), o = inst.options, uiSortable = $.extend({}, ui, { item: inst.element }); inst.sortables = []; $(o.connectToSortable).each(function() { var sortable = $.data(this, 'sortable'); if (sortable && !sortable.options.disabled) { inst.sortables.push({ instance: sortable, shouldRevert: sortable.options.revert }); sortable.refreshPositions(); // Call the sortable's refreshPositions at drag start to refresh the containerCache since the sortable container cache is used in drag and needs to be up to date (this will ensure it's initialised as well as being kept in step with any changes that might have happened on the page). sortable._trigger("activate", event, uiSortable); } }); }, stop: function(event, ui) { //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper var inst = $(this).data("draggable"), uiSortable = $.extend({}, ui, { item: inst.element }); $.each(inst.sortables, function() { if(this.instance.isOver) { this.instance.isOver = 0; inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work) //The sortable revert is supported, and we have to set a temporary dropped variable on the draggable to support revert: 'valid/invalid' if(this.shouldRevert) this.instance.options.revert = true; //Trigger the stop of the sortable this.instance._mouseStop(event); this.instance.options.helper = this.instance.options._helper; //If the helper has been the original item, restore properties in the sortable if(inst.options.helper == 'original') this.instance.currentItem.css({ top: 'auto', left: 'auto' }); } else { this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance this.instance._trigger("deactivate", event, uiSortable); } }); }, drag: function(event, ui) { var inst = $(this).data("draggable"), that = this; var checkPos = function(o) { var dyClick = this.offset.click.top, dxClick = this.offset.click.left; var helperTop = this.positionAbs.top, helperLeft = this.positionAbs.left; var itemHeight = o.height, itemWidth = o.width; var itemTop = o.top, itemLeft = o.left; return $.ui.isOver(helperTop + dyClick, helperLeft + dxClick, itemTop, itemLeft, itemHeight, itemWidth); }; $.each(inst.sortables, function(i) { var innermostIntersecting = false; var thisSortable = this; //Copy over some variables to allow calling the sortable's native _intersectsWith this.instance.positionAbs = inst.positionAbs; this.instance.helperProportions = inst.helperProportions; this.instance.offset.click = inst.offset.click; if(this.instance._intersectsWith(this.instance.containerCache)) { innermostIntersecting = true; $.each(inst.sortables, function () { this.instance.positionAbs = inst.positionAbs; this.instance.helperProportions = inst.helperProportions; this.instance.offset.click = inst.offset.click; if (this != thisSortable && this.instance._intersectsWith(this.instance.containerCache) && $.ui.contains(thisSortable.instance.element[0], this.instance.element[0])) innermostIntersecting = false; return innermostIntersecting; }); } if(innermostIntersecting) { //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once if(!this.instance.isOver) { this.instance.isOver = 1; //Now we fake the start of dragging for the sortable instance, //by cloning the list group item, appending it to the sortable and using it as inst.currentItem //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one) this.instance.currentItem = $(that).clone().removeAttr('id').appendTo(this.instance.element).data("sortable-item", true); this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it this.instance.options.helper = function() { return ui.helper[0]; }; event.target = this.instance.currentItem[0]; this.instance._mouseCapture(event, true); this.instance._mouseStart(event, true, true); //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes this.instance.offset.click.top = inst.offset.click.top; this.instance.offset.click.left = inst.offset.click.left; this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left; this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top; inst._trigger("toSortable", event); inst.dropped = this.instance.element; //draggable revert needs that //hack so receive/update callbacks work (mostly) inst.currentItem = inst.element; this.instance.fromOutside = inst; } //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable if(this.instance.currentItem) this.instance._mouseDrag(event); } else { //If it doesn't intersect with the sortable, and it intersected before, //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval if(this.instance.isOver) { this.instance.isOver = 0; this.instance.cancelHelperRemoval = true; //Prevent reverting on this forced stop this.instance.options.revert = false; // The out event needs to be triggered independently this.instance._trigger('out', event, this.instance._uiHash(this.instance)); this.instance._mouseStop(event, true); this.instance.options.helper = this.instance.options._helper; //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size this.instance.currentItem.remove(); if(this.instance.placeholder) this.instance.placeholder.remove(); inst._trigger("fromSortable", event); inst.dropped = false; //draggable revert needs that } }; }); } }); $.ui.plugin.add("draggable", "cursor", { start: function(event, ui) { var t = $('body'), o = $(this).data('draggable').options; if (t.css("cursor")) o._cursor = t.css("cursor"); t.css("cursor", o.cursor); }, stop: function(event, ui) { var o = $(this).data('draggable').options; if (o._cursor) $('body').css("cursor", o._cursor); } }); $.ui.plugin.add("draggable", "opacity", { start: function(event, ui) { var t = $(ui.helper), o = $(this).data('draggable').options; if(t.css("opacity")) o._opacity = t.css("opacity"); t.css('opacity', o.opacity); }, stop: function(event, ui) { var o = $(this).data('draggable').options; if(o._opacity) $(ui.helper).css('opacity', o._opacity); } }); $.ui.plugin.add("draggable", "scroll", { start: function(event, ui) { var i = $(this).data("draggable"); if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') i.overflowOffset = i.scrollParent.offset(); }, drag: function(event, ui) { var i = $(this).data("draggable"), o = i.options, scrolled = false; if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') { if(!o.axis || o.axis != 'x') { if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed; else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity) i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed; } if(!o.axis || o.axis != 'y') { if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed; else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity) i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed; } } else { if(!o.axis || o.axis != 'x') { if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed); else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed); } if(!o.axis || o.axis != 'y') { if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed); else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed); } } if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(i, event); } }); $.ui.plugin.add("draggable", "snap", { start: function(event, ui) { var i = $(this).data("draggable"), o = i.options; i.snapElements = []; $(o.snap.constructor != String ? ( o.snap.items || ':data(draggable)' ) : o.snap).each(function() { var $t = $(this); var $o = $t.offset(); if(this != i.element[0]) i.snapElements.push({ item: this, width: $t.outerWidth(), height: $t.outerHeight(), top: $o.top, left: $o.left }); }); }, drag: function(event, ui) { var inst = $(this).data("draggable"), o = inst.options; var d = o.snapTolerance; var x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width, y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height; for (var i = inst.snapElements.length - 1; i >= 0; i--){ var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width, t = inst.snapElements[i].top, b = t + inst.snapElements[i].height; //Yes, I know, this is insane ;) if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) { if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item }))); inst.snapElements[i].snapping = false; continue; } if(o.snapMode != 'inner') { var ts = Math.abs(t - y2) <= d; var bs = Math.abs(b - y1) <= d; var ls = Math.abs(l - x2) <= d; var rs = Math.abs(r - x1) <= d; if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top - inst.margins.top; if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top - inst.margins.top; if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left - inst.margins.left; if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left - inst.margins.left; } var first = (ts || bs || ls || rs); if(o.snapMode != 'outer') { var ts = Math.abs(t - y1) <= d; var bs = Math.abs(b - y2) <= d; var ls = Math.abs(l - x1) <= d; var rs = Math.abs(r - x2) <= d; if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top - inst.margins.top; if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top - inst.margins.top; if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left - inst.margins.left; if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left - inst.margins.left; } if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item }))); inst.snapElements[i].snapping = (ts || bs || ls || rs || first); }; } }); $.ui.plugin.add("draggable", "stack", { start: function(event, ui) { var o = $(this).data("draggable").options; var group = $.makeArray($(o.stack)).sort(function(a,b) { return (parseInt($(a).css("zIndex"),10) || 0) - (parseInt($(b).css("zIndex"),10) || 0); }); if (!group.length) { return; } var min = parseInt(group[0].style.zIndex) || 0; $(group).each(function(i) { this.style.zIndex = min + i; }); this[0].style.zIndex = min + group.length; } }); $.ui.plugin.add("draggable", "zIndex", { start: function(event, ui) { var t = $(ui.helper), o = $(this).data("draggable").options; if(t.css("zIndex")) o._zIndex = t.css("zIndex"); t.css('zIndex', o.zIndex); }, stop: function(event, ui) { var o = $(this).data("draggable").options; if(o._zIndex) $(ui.helper).css('zIndex', o._zIndex); } }); })(jQuery); (function( $, undefined ) { $.widget("ui.droppable", { version: "1.9.2", widgetEventPrefix: "drop", options: { accept: '*', activeClass: false, addClasses: true, greedy: false, hoverClass: false, scope: 'default', tolerance: 'intersect' }, _create: function() { var o = this.options, accept = o.accept; this.isover = 0; this.isout = 1; this.accept = $.isFunction(accept) ? accept : function(d) { return d.is(accept); }; //Store the droppable's proportions this.proportions = { width: this.element[0].offsetWidth, height: this.element[0].offsetHeight }; // Add the reference and positions to the manager $.ui.ddmanager.droppables[o.scope] = $.ui.ddmanager.droppables[o.scope] || []; $.ui.ddmanager.droppables[o.scope].push(this); (o.addClasses && this.element.addClass("ui-droppable")); }, _destroy: function() { var drop = $.ui.ddmanager.droppables[this.options.scope]; for ( var i = 0; i < drop.length; i++ ) if ( drop[i] == this ) drop.splice(i, 1); this.element.removeClass("ui-droppable ui-droppable-disabled"); }, _setOption: function(key, value) { if(key == 'accept') { this.accept = $.isFunction(value) ? value : function(d) { return d.is(value); }; } $.Widget.prototype._setOption.apply(this, arguments); }, _activate: function(event) { var draggable = $.ui.ddmanager.current; if(this.options.activeClass) this.element.addClass(this.options.activeClass); (draggable && this._trigger('activate', event, this.ui(draggable))); }, _deactivate: function(event) { var draggable = $.ui.ddmanager.current; if(this.options.activeClass) this.element.removeClass(this.options.activeClass); (draggable && this._trigger('deactivate', event, this.ui(draggable))); }, _over: function(event) { var draggable = $.ui.ddmanager.current; if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element if (this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) { if(this.options.hoverClass) this.element.addClass(this.options.hoverClass); this._trigger('over', event, this.ui(draggable)); } }, _out: function(event) { var draggable = $.ui.ddmanager.current; if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element if (this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) { if(this.options.hoverClass) this.element.removeClass(this.options.hoverClass); this._trigger('out', event, this.ui(draggable)); } }, _drop: function(event,custom) { var draggable = custom || $.ui.ddmanager.current; if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element var childrenIntersection = false; this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function() { var inst = $.data(this, 'droppable'); if( inst.options.greedy && !inst.options.disabled && inst.options.scope == draggable.options.scope && inst.accept.call(inst.element[0], (draggable.currentItem || draggable.element)) && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance) ) { childrenIntersection = true; return false; } }); if(childrenIntersection) return false; if(this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) { if(this.options.activeClass) this.element.removeClass(this.options.activeClass); if(this.options.hoverClass) this.element.removeClass(this.options.hoverClass); this._trigger('drop', event, this.ui(draggable)); return this.element; } return false; }, ui: function(c) { return { draggable: (c.currentItem || c.element), helper: c.helper, position: c.position, offset: c.positionAbs }; } }); $.ui.intersect = function(draggable, droppable, toleranceMode) { if (!droppable.offset) return false; var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width, y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height; var l = droppable.offset.left, r = l + droppable.proportions.width, t = droppable.offset.top, b = t + droppable.proportions.height; switch (toleranceMode) { case 'fit': return (l <= x1 && x2 <= r && t <= y1 && y2 <= b); break; case 'intersect': return (l < x1 + (draggable.helperProportions.width / 2) // Right Half && x2 - (draggable.helperProportions.width / 2) < r // Left Half && t < y1 + (draggable.helperProportions.height / 2) // Bottom Half && y2 - (draggable.helperProportions.height / 2) < b ); // Top Half break; case 'pointer': var draggableLeft = ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left), draggableTop = ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top), isOver = $.ui.isOver(draggableTop, draggableLeft, t, l, droppable.proportions.height, droppable.proportions.width); return isOver; break; case 'touch': return ( (y1 >= t && y1 <= b) || // Top edge touching (y2 >= t && y2 <= b) || // Bottom edge touching (y1 < t && y2 > b) // Surrounded vertically ) && ( (x1 >= l && x1 <= r) || // Left edge touching (x2 >= l && x2 <= r) || // Right edge touching (x1 < l && x2 > r) // Surrounded horizontally ); break; default: return false; break; } }; /* This manager tracks offsets of draggables and droppables */ $.ui.ddmanager = { current: null, droppables: { 'default': [] }, prepareOffsets: function(t, event) { var m = $.ui.ddmanager.droppables[t.options.scope] || []; var type = event ? event.type : null; // workaround for #2317 var list = (t.currentItem || t.element).find(":data(droppable)").andSelf(); droppablesLoop: for (var i = 0; i < m.length; i++) { if(m[i].options.disabled || (t && !m[i].accept.call(m[i].element[0],(t.currentItem || t.element)))) continue; //No disabled and non-accepted for (var j=0; j < list.length; j++) { if(list[j] == m[i].element[0]) { m[i].proportions.height = 0; continue droppablesLoop; } }; //Filter out elements in the current dragged item m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue if(type == "mousedown") m[i]._activate.call(m[i], event); //Activate the droppable if used directly from draggables m[i].offset = m[i].element.offset(); m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight }; } }, drop: function(draggable, event) { var dropped = false; $.each($.ui.ddmanager.droppables[draggable.options.scope] || [], function() { if(!this.options) return; if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance)) dropped = this._drop.call(this, event) || dropped; if (!this.options.disabled && this.visible && this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) { this.isout = 1; this.isover = 0; this._deactivate.call(this, event); } }); return dropped; }, dragStart: function( draggable, event ) { //Listen for scrolling so that if the dragging causes scrolling the position of the droppables can be recalculated (see #5003) draggable.element.parentsUntil( "body" ).bind( "scroll.droppable", function() { if( !draggable.options.refreshPositions ) $.ui.ddmanager.prepareOffsets( draggable, event ); }); }, drag: function(draggable, event) { //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse. if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event); //Run through all droppables and check their positions based on specific tolerance options $.each($.ui.ddmanager.droppables[draggable.options.scope] || [], function() { if(this.options.disabled || this.greedyChild || !this.visible) return; var intersects = $.ui.intersect(draggable, this, this.options.tolerance); var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null); if(!c) return; var parentInstance; if (this.options.greedy) { // find droppable parents with same scope var scope = this.options.scope; var parent = this.element.parents(':data(droppable)').filter(function () { return $.data(this, 'droppable').options.scope === scope; }); if (parent.length) { parentInstance = $.data(parent[0], 'droppable'); parentInstance.greedyChild = (c == 'isover' ? 1 : 0); } } // we just moved into a greedy child if (parentInstance && c == 'isover') { parentInstance['isover'] = 0; parentInstance['isout'] = 1; parentInstance._out.call(parentInstance, event); } this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0; this[c == "isover" ? "_over" : "_out"].call(this, event); // we just moved out of a greedy child if (parentInstance && c == 'isout') { parentInstance['isout'] = 0; parentInstance['isover'] = 1; parentInstance._over.call(parentInstance, event); } }); }, dragStop: function( draggable, event ) { draggable.element.parentsUntil( "body" ).unbind( "scroll.droppable" ); //Call prepareOffsets one final time since IE does not fire return scroll events when overflow was caused by drag (see #5003) if( !draggable.options.refreshPositions ) $.ui.ddmanager.prepareOffsets( draggable, event ); } }; })(jQuery); ;(jQuery.effects || (function($, undefined) { var backCompat = $.uiBackCompat !== false, // prefix used for storing data on .data() dataSpace = "ui-effects-"; $.effects = { effect: {} }; /*! * jQuery Color Animations v2.0.0 * http://jquery.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * Date: Mon Aug 13 13:41:02 2012 -0500 */ (function( jQuery, undefined ) { var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "), // plusequals test for += 100 -= 100 rplusequals = /^([\-+])=\s*(\d+\.?\d*)/, // a set of RE's that can match strings and generate color tuples. stringParsers = [{ re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/, parse: function( execResult ) { return [ execResult[ 1 ], execResult[ 2 ], execResult[ 3 ], execResult[ 4 ] ]; } }, { re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/, parse: function( execResult ) { return [ execResult[ 1 ] * 2.55, execResult[ 2 ] * 2.55, execResult[ 3 ] * 2.55, execResult[ 4 ] ]; } }, { // this regex ignores A-F because it's compared against an already lowercased string re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/, parse: function( execResult ) { return [ parseInt( execResult[ 1 ], 16 ), parseInt( execResult[ 2 ], 16 ), parseInt( execResult[ 3 ], 16 ) ]; } }, { // this regex ignores A-F because it's compared against an already lowercased string re: /#([a-f0-9])([a-f0-9])([a-f0-9])/, parse: function( execResult ) { return [ parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ), parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ), parseInt( execResult[ 3 ] + execResult[ 3 ], 16 ) ]; } }, { re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/, space: "hsla", parse: function( execResult ) { return [ execResult[ 1 ], execResult[ 2 ] / 100, execResult[ 3 ] / 100, execResult[ 4 ] ]; } }], // jQuery.Color( ) color = jQuery.Color = function( color, green, blue, alpha ) { return new jQuery.Color.fn.parse( color, green, blue, alpha ); }, spaces = { rgba: { props: { red: { idx: 0, type: "byte" }, green: { idx: 1, type: "byte" }, blue: { idx: 2, type: "byte" } } }, hsla: { props: { hue: { idx: 0, type: "degrees" }, saturation: { idx: 1, type: "percent" }, lightness: { idx: 2, type: "percent" } } } }, propTypes = { "byte": { floor: true, max: 255 }, "percent": { max: 1 }, "degrees": { mod: 360, floor: true } }, support = color.support = {}, // element for support tests supportElem = jQuery( "

                                                " )[ 0 ], // colors = jQuery.Color.names colors, // local aliases of functions called often each = jQuery.each; // determine rgba support immediately supportElem.style.cssText = "background-color:rgba(1,1,1,.5)"; support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1; // define cache name and alpha properties // for rgba and hsla spaces each( spaces, function( spaceName, space ) { space.cache = "_" + spaceName; space.props.alpha = { idx: 3, type: "percent", def: 1 }; }); function clamp( value, prop, allowEmpty ) { var type = propTypes[ prop.type ] || {}; if ( value == null ) { return (allowEmpty || !prop.def) ? null : prop.def; } // ~~ is an short way of doing floor for positive numbers value = type.floor ? ~~value : parseFloat( value ); // IE will pass in empty strings as value for alpha, // which will hit this case if ( isNaN( value ) ) { return prop.def; } if ( type.mod ) { // we add mod before modding to make sure that negatives values // get converted properly: -10 -> 350 return (value + type.mod) % type.mod; } // for now all property types without mod have min and max return 0 > value ? 0 : type.max < value ? type.max : value; } function stringParse( string ) { var inst = color(), rgba = inst._rgba = []; string = string.toLowerCase(); each( stringParsers, function( i, parser ) { var parsed, match = parser.re.exec( string ), values = match && parser.parse( match ), spaceName = parser.space || "rgba"; if ( values ) { parsed = inst[ spaceName ]( values ); // if this was an rgba parse the assignment might happen twice // oh well.... inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ]; rgba = inst._rgba = parsed._rgba; // exit each( stringParsers ) here because we matched return false; } }); // Found a stringParser that handled it if ( rgba.length ) { // if this came from a parsed string, force "transparent" when alpha is 0 // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0) if ( rgba.join() === "0,0,0,0" ) { jQuery.extend( rgba, colors.transparent ); } return inst; } // named colors return colors[ string ]; } color.fn = jQuery.extend( color.prototype, { parse: function( red, green, blue, alpha ) { if ( red === undefined ) { this._rgba = [ null, null, null, null ]; return this; } if ( red.jquery || red.nodeType ) { red = jQuery( red ).css( green ); green = undefined; } var inst = this, type = jQuery.type( red ), rgba = this._rgba = []; // more than 1 argument specified - assume ( red, green, blue, alpha ) if ( green !== undefined ) { red = [ red, green, blue, alpha ]; type = "array"; } if ( type === "string" ) { return this.parse( stringParse( red ) || colors._default ); } if ( type === "array" ) { each( spaces.rgba.props, function( key, prop ) { rgba[ prop.idx ] = clamp( red[ prop.idx ], prop ); }); return this; } if ( type === "object" ) { if ( red instanceof color ) { each( spaces, function( spaceName, space ) { if ( red[ space.cache ] ) { inst[ space.cache ] = red[ space.cache ].slice(); } }); } else { each( spaces, function( spaceName, space ) { var cache = space.cache; each( space.props, function( key, prop ) { // if the cache doesn't exist, and we know how to convert if ( !inst[ cache ] && space.to ) { // if the value was null, we don't need to copy it // if the key was alpha, we don't need to copy it either if ( key === "alpha" || red[ key ] == null ) { return; } inst[ cache ] = space.to( inst._rgba ); } // this is the only case where we allow nulls for ALL properties. // call clamp with alwaysAllowEmpty inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true ); }); // everything defined but alpha? if ( inst[ cache ] && $.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) { // use the default of 1 inst[ cache ][ 3 ] = 1; if ( space.from ) { inst._rgba = space.from( inst[ cache ] ); } } }); } return this; } }, is: function( compare ) { var is = color( compare ), same = true, inst = this; each( spaces, function( _, space ) { var localCache, isCache = is[ space.cache ]; if (isCache) { localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || []; each( space.props, function( _, prop ) { if ( isCache[ prop.idx ] != null ) { same = ( isCache[ prop.idx ] === localCache[ prop.idx ] ); return same; } }); } return same; }); return same; }, _space: function() { var used = [], inst = this; each( spaces, function( spaceName, space ) { if ( inst[ space.cache ] ) { used.push( spaceName ); } }); return used.pop(); }, transition: function( other, distance ) { var end = color( other ), spaceName = end._space(), space = spaces[ spaceName ], startColor = this.alpha() === 0 ? color( "transparent" ) : this, start = startColor[ space.cache ] || space.to( startColor._rgba ), result = start.slice(); end = end[ space.cache ]; each( space.props, function( key, prop ) { var index = prop.idx, startValue = start[ index ], endValue = end[ index ], type = propTypes[ prop.type ] || {}; // if null, don't override start value if ( endValue === null ) { return; } // if null - use end if ( startValue === null ) { result[ index ] = endValue; } else { if ( type.mod ) { if ( endValue - startValue > type.mod / 2 ) { startValue += type.mod; } else if ( startValue - endValue > type.mod / 2 ) { startValue -= type.mod; } } result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop ); } }); return this[ spaceName ]( result ); }, blend: function( opaque ) { // if we are already opaque - return ourself if ( this._rgba[ 3 ] === 1 ) { return this; } var rgb = this._rgba.slice(), a = rgb.pop(), blend = color( opaque )._rgba; return color( jQuery.map( rgb, function( v, i ) { return ( 1 - a ) * blend[ i ] + a * v; })); }, toRgbaString: function() { var prefix = "rgba(", rgba = jQuery.map( this._rgba, function( v, i ) { return v == null ? ( i > 2 ? 1 : 0 ) : v; }); if ( rgba[ 3 ] === 1 ) { rgba.pop(); prefix = "rgb("; } return prefix + rgba.join() + ")"; }, toHslaString: function() { var prefix = "hsla(", hsla = jQuery.map( this.hsla(), function( v, i ) { if ( v == null ) { v = i > 2 ? 1 : 0; } // catch 1 and 2 if ( i && i < 3 ) { v = Math.round( v * 100 ) + "%"; } return v; }); if ( hsla[ 3 ] === 1 ) { hsla.pop(); prefix = "hsl("; } return prefix + hsla.join() + ")"; }, toHexString: function( includeAlpha ) { var rgba = this._rgba.slice(), alpha = rgba.pop(); if ( includeAlpha ) { rgba.push( ~~( alpha * 255 ) ); } return "#" + jQuery.map( rgba, function( v ) { // default to 0 when nulls exist v = ( v || 0 ).toString( 16 ); return v.length === 1 ? "0" + v : v; }).join(""); }, toString: function() { return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString(); } }); color.fn.parse.prototype = color.fn; // hsla conversions adapted from: // https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021 function hue2rgb( p, q, h ) { h = ( h + 1 ) % 1; if ( h * 6 < 1 ) { return p + (q - p) * h * 6; } if ( h * 2 < 1) { return q; } if ( h * 3 < 2 ) { return p + (q - p) * ((2/3) - h) * 6; } return p; } spaces.hsla.to = function ( rgba ) { if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) { return [ null, null, null, rgba[ 3 ] ]; } var r = rgba[ 0 ] / 255, g = rgba[ 1 ] / 255, b = rgba[ 2 ] / 255, a = rgba[ 3 ], max = Math.max( r, g, b ), min = Math.min( r, g, b ), diff = max - min, add = max + min, l = add * 0.5, h, s; if ( min === max ) { h = 0; } else if ( r === max ) { h = ( 60 * ( g - b ) / diff ) + 360; } else if ( g === max ) { h = ( 60 * ( b - r ) / diff ) + 120; } else { h = ( 60 * ( r - g ) / diff ) + 240; } if ( l === 0 || l === 1 ) { s = l; } else if ( l <= 0.5 ) { s = diff / add; } else { s = diff / ( 2 - add ); } return [ Math.round(h) % 360, s, l, a == null ? 1 : a ]; }; spaces.hsla.from = function ( hsla ) { if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) { return [ null, null, null, hsla[ 3 ] ]; } var h = hsla[ 0 ] / 360, s = hsla[ 1 ], l = hsla[ 2 ], a = hsla[ 3 ], q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s, p = 2 * l - q; return [ Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ), Math.round( hue2rgb( p, q, h ) * 255 ), Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ), a ]; }; each( spaces, function( spaceName, space ) { var props = space.props, cache = space.cache, to = space.to, from = space.from; // makes rgba() and hsla() color.fn[ spaceName ] = function( value ) { // generate a cache for this space if it doesn't exist if ( to && !this[ cache ] ) { this[ cache ] = to( this._rgba ); } if ( value === undefined ) { return this[ cache ].slice(); } var ret, type = jQuery.type( value ), arr = ( type === "array" || type === "object" ) ? value : arguments, local = this[ cache ].slice(); each( props, function( key, prop ) { var val = arr[ type === "object" ? key : prop.idx ]; if ( val == null ) { val = local[ prop.idx ]; } local[ prop.idx ] = clamp( val, prop ); }); if ( from ) { ret = color( from( local ) ); ret[ cache ] = local; return ret; } else { return color( local ); } }; // makes red() green() blue() alpha() hue() saturation() lightness() each( props, function( key, prop ) { // alpha is included in more than one space if ( color.fn[ key ] ) { return; } color.fn[ key ] = function( value ) { var vtype = jQuery.type( value ), fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ), local = this[ fn ](), cur = local[ prop.idx ], match; if ( vtype === "undefined" ) { return cur; } if ( vtype === "function" ) { value = value.call( this, cur ); vtype = jQuery.type( value ); } if ( value == null && prop.empty ) { return this; } if ( vtype === "string" ) { match = rplusequals.exec( value ); if ( match ) { value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 ); } } local[ prop.idx ] = value; return this[ fn ]( local ); }; }); }); // add .fx.step functions each( stepHooks, function( i, hook ) { jQuery.cssHooks[ hook ] = { set: function( elem, value ) { var parsed, curElem, backgroundColor = ""; if ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) { value = color( parsed || value ); if ( !support.rgba && value._rgba[ 3 ] !== 1 ) { curElem = hook === "backgroundColor" ? elem.parentNode : elem; while ( (backgroundColor === "" || backgroundColor === "transparent") && curElem && curElem.style ) { try { backgroundColor = jQuery.css( curElem, "backgroundColor" ); curElem = curElem.parentNode; } catch ( e ) { } } value = value.blend( backgroundColor && backgroundColor !== "transparent" ? backgroundColor : "_default" ); } value = value.toRgbaString(); } try { elem.style[ hook ] = value; } catch( error ) { // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit' } } }; jQuery.fx.step[ hook ] = function( fx ) { if ( !fx.colorInit ) { fx.start = color( fx.elem, hook ); fx.end = color( fx.end ); fx.colorInit = true; } jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) ); }; }); jQuery.cssHooks.borderColor = { expand: function( value ) { var expanded = {}; each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) { expanded[ "border" + part + "Color" ] = value; }); return expanded; } }; // Basic color names only. // Usage of any of the other color names requires adding yourself or including // jquery.color.svg-names.js. colors = jQuery.Color.names = { // 4.1. Basic color keywords aqua: "#00ffff", black: "#000000", blue: "#0000ff", fuchsia: "#ff00ff", gray: "#808080", green: "#008000", lime: "#00ff00", maroon: "#800000", navy: "#000080", olive: "#808000", purple: "#800080", red: "#ff0000", silver: "#c0c0c0", teal: "#008080", white: "#ffffff", yellow: "#ffff00", // 4.2.3. "transparent" color keyword transparent: [ null, null, null, 0 ], _default: "#ffffff" }; })( jQuery ); /******************************************************************************/ /****************************** CLASS ANIMATIONS ******************************/ /******************************************************************************/ (function() { var classAnimationActions = [ "add", "remove", "toggle" ], shorthandStyles = { border: 1, borderBottom: 1, borderColor: 1, borderLeft: 1, borderRight: 1, borderTop: 1, borderWidth: 1, margin: 1, padding: 1 }; $.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function( _, prop ) { $.fx.step[ prop ] = function( fx ) { if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) { jQuery.style( fx.elem, prop, fx.end ); fx.setAttr = true; } }; }); function getElementStyles() { var style = this.ownerDocument.defaultView ? this.ownerDocument.defaultView.getComputedStyle( this, null ) : this.currentStyle, newStyle = {}, key, len; // webkit enumerates style porperties if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) { len = style.length; while ( len-- ) { key = style[ len ]; if ( typeof style[ key ] === "string" ) { newStyle[ $.camelCase( key ) ] = style[ key ]; } } } else { for ( key in style ) { if ( typeof style[ key ] === "string" ) { newStyle[ key ] = style[ key ]; } } } return newStyle; } function styleDifference( oldStyle, newStyle ) { var diff = {}, name, value; for ( name in newStyle ) { value = newStyle[ name ]; if ( oldStyle[ name ] !== value ) { if ( !shorthandStyles[ name ] ) { if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) { diff[ name ] = value; } } } } return diff; } $.effects.animateClass = function( value, duration, easing, callback ) { var o = $.speed( duration, easing, callback ); return this.queue( function() { var animated = $( this ), baseClass = animated.attr( "class" ) || "", applyClassChange, allAnimations = o.children ? animated.find( "*" ).andSelf() : animated; // map the animated objects to store the original styles. allAnimations = allAnimations.map(function() { var el = $( this ); return { el: el, start: getElementStyles.call( this ) }; }); // apply class change applyClassChange = function() { $.each( classAnimationActions, function(i, action) { if ( value[ action ] ) { animated[ action + "Class" ]( value[ action ] ); } }); }; applyClassChange(); // map all animated objects again - calculate new styles and diff allAnimations = allAnimations.map(function() { this.end = getElementStyles.call( this.el[ 0 ] ); this.diff = styleDifference( this.start, this.end ); return this; }); // apply original class animated.attr( "class", baseClass ); // map all animated objects again - this time collecting a promise allAnimations = allAnimations.map(function() { var styleInfo = this, dfd = $.Deferred(), opts = jQuery.extend({}, o, { queue: false, complete: function() { dfd.resolve( styleInfo ); } }); this.el.animate( this.diff, opts ); return dfd.promise(); }); // once all animations have completed: $.when.apply( $, allAnimations.get() ).done(function() { // set the final class applyClassChange(); // for each animated element, // clear all css properties that were animated $.each( arguments, function() { var el = this.el; $.each( this.diff, function(key) { el.css( key, '' ); }); }); // this is guarnteed to be there if you use jQuery.speed() // it also handles dequeuing the next anim... o.complete.call( animated[ 0 ] ); }); }); }; $.fn.extend({ _addClass: $.fn.addClass, addClass: function( classNames, speed, easing, callback ) { return speed ? $.effects.animateClass.call( this, { add: classNames }, speed, easing, callback ) : this._addClass( classNames ); }, _removeClass: $.fn.removeClass, removeClass: function( classNames, speed, easing, callback ) { return speed ? $.effects.animateClass.call( this, { remove: classNames }, speed, easing, callback ) : this._removeClass( classNames ); }, _toggleClass: $.fn.toggleClass, toggleClass: function( classNames, force, speed, easing, callback ) { if ( typeof force === "boolean" || force === undefined ) { if ( !speed ) { // without speed parameter return this._toggleClass( classNames, force ); } else { return $.effects.animateClass.call( this, (force ? { add: classNames } : { remove: classNames }), speed, easing, callback ); } } else { // without force parameter return $.effects.animateClass.call( this, { toggle: classNames }, force, speed, easing ); } }, switchClass: function( remove, add, speed, easing, callback) { return $.effects.animateClass.call( this, { add: add, remove: remove }, speed, easing, callback ); } }); })(); /******************************************************************************/ /*********************************** EFFECTS **********************************/ /******************************************************************************/ (function() { $.extend( $.effects, { version: "1.9.2", // Saves a set of properties in a data storage save: function( element, set ) { for( var i=0; i < set.length; i++ ) { if ( set[ i ] !== null ) { element.data( dataSpace + set[ i ], element[ 0 ].style[ set[ i ] ] ); } } }, // Restores a set of previously saved properties from a data storage restore: function( element, set ) { var val, i; for( i=0; i < set.length; i++ ) { if ( set[ i ] !== null ) { val = element.data( dataSpace + set[ i ] ); // support: jQuery 1.6.2 // http://bugs.jquery.com/ticket/9917 // jQuery 1.6.2 incorrectly returns undefined for any falsy value. // We can't differentiate between "" and 0 here, so we just assume // empty string since it's likely to be a more common value... if ( val === undefined ) { val = ""; } element.css( set[ i ], val ); } } }, setMode: function( el, mode ) { if (mode === "toggle") { mode = el.is( ":hidden" ) ? "show" : "hide"; } return mode; }, // Translates a [top,left] array into a baseline value // this should be a little more flexible in the future to handle a string & hash getBaseline: function( origin, original ) { var y, x; switch ( origin[ 0 ] ) { case "top": y = 0; break; case "middle": y = 0.5; break; case "bottom": y = 1; break; default: y = origin[ 0 ] / original.height; } switch ( origin[ 1 ] ) { case "left": x = 0; break; case "center": x = 0.5; break; case "right": x = 1; break; default: x = origin[ 1 ] / original.width; } return { x: x, y: y }; }, // Wraps the element around a wrapper that copies position properties createWrapper: function( element ) { // if the element is already wrapped, return it if ( element.parent().is( ".ui-effects-wrapper" )) { return element.parent(); } // wrap the element var props = { width: element.outerWidth(true), height: element.outerHeight(true), "float": element.css( "float" ) }, wrapper = $( "

                                                " ) .addClass( "ui-effects-wrapper" ) .css({ fontSize: "100%", background: "transparent", border: "none", margin: 0, padding: 0 }), // Store the size in case width/height are defined in % - Fixes #5245 size = { width: element.width(), height: element.height() }, active = document.activeElement; // support: Firefox // Firefox incorrectly exposes anonymous content // https://bugzilla.mozilla.org/show_bug.cgi?id=561664 try { active.id; } catch( e ) { active = document.body; } element.wrap( wrapper ); // Fixes #7595 - Elements lose focus when wrapped. if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) { $( active ).focus(); } wrapper = element.parent(); //Hotfix for jQuery 1.4 since some change in wrap() seems to actually lose the reference to the wrapped element // transfer positioning properties to the wrapper if ( element.css( "position" ) === "static" ) { wrapper.css({ position: "relative" }); element.css({ position: "relative" }); } else { $.extend( props, { position: element.css( "position" ), zIndex: element.css( "z-index" ) }); $.each([ "top", "left", "bottom", "right" ], function(i, pos) { props[ pos ] = element.css( pos ); if ( isNaN( parseInt( props[ pos ], 10 ) ) ) { props[ pos ] = "auto"; } }); element.css({ position: "relative", top: 0, left: 0, right: "auto", bottom: "auto" }); } element.css(size); return wrapper.css( props ).show(); }, removeWrapper: function( element ) { var active = document.activeElement; if ( element.parent().is( ".ui-effects-wrapper" ) ) { element.parent().replaceWith( element ); // Fixes #7595 - Elements lose focus when wrapped. if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) { $( active ).focus(); } } return element; }, setTransition: function( element, list, factor, value ) { value = value || {}; $.each( list, function( i, x ) { var unit = element.cssUnit( x ); if ( unit[ 0 ] > 0 ) { value[ x ] = unit[ 0 ] * factor + unit[ 1 ]; } }); return value; } }); // return an effect options object for the given parameters: function _normalizeArguments( effect, options, speed, callback ) { // allow passing all options as the first parameter if ( $.isPlainObject( effect ) ) { options = effect; effect = effect.effect; } // convert to an object effect = { effect: effect }; // catch (effect, null, ...) if ( options == null ) { options = {}; } // catch (effect, callback) if ( $.isFunction( options ) ) { callback = options; speed = null; options = {}; } // catch (effect, speed, ?) if ( typeof options === "number" || $.fx.speeds[ options ] ) { callback = speed; speed = options; options = {}; } // catch (effect, options, callback) if ( $.isFunction( speed ) ) { callback = speed; speed = null; } // add options to effect if ( options ) { $.extend( effect, options ); } speed = speed || options.duration; effect.duration = $.fx.off ? 0 : typeof speed === "number" ? speed : speed in $.fx.speeds ? $.fx.speeds[ speed ] : $.fx.speeds._default; effect.complete = callback || options.complete; return effect; } function standardSpeed( speed ) { // valid standard speeds if ( !speed || typeof speed === "number" || $.fx.speeds[ speed ] ) { return true; } // invalid strings - treat as "normal" speed if ( typeof speed === "string" && !$.effects.effect[ speed ] ) { // TODO: remove in 2.0 (#7115) if ( backCompat && $.effects[ speed ] ) { return false; } return true; } return false; } $.fn.extend({ effect: function( /* effect, options, speed, callback */ ) { var args = _normalizeArguments.apply( this, arguments ), mode = args.mode, queue = args.queue, effectMethod = $.effects.effect[ args.effect ], // DEPRECATED: remove in 2.0 (#7115) oldEffectMethod = !effectMethod && backCompat && $.effects[ args.effect ]; if ( $.fx.off || !( effectMethod || oldEffectMethod ) ) { // delegate to the original method (e.g., .show()) if possible if ( mode ) { return this[ mode ]( args.duration, args.complete ); } else { return this.each( function() { if ( args.complete ) { args.complete.call( this ); } }); } } function run( next ) { var elem = $( this ), complete = args.complete, mode = args.mode; function done() { if ( $.isFunction( complete ) ) { complete.call( elem[0] ); } if ( $.isFunction( next ) ) { next(); } } // if the element is hiddden and mode is hide, // or element is visible and mode is show if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) { done(); } else { effectMethod.call( elem[0], args, done ); } } // TODO: remove this check in 2.0, effectMethod will always be true if ( effectMethod ) { return queue === false ? this.each( run ) : this.queue( queue || "fx", run ); } else { // DEPRECATED: remove in 2.0 (#7115) return oldEffectMethod.call(this, { options: args, duration: args.duration, callback: args.complete, mode: args.mode }); } }, _show: $.fn.show, show: function( speed ) { if ( standardSpeed( speed ) ) { return this._show.apply( this, arguments ); } else { var args = _normalizeArguments.apply( this, arguments ); args.mode = "show"; return this.effect.call( this, args ); } }, _hide: $.fn.hide, hide: function( speed ) { if ( standardSpeed( speed ) ) { return this._hide.apply( this, arguments ); } else { var args = _normalizeArguments.apply( this, arguments ); args.mode = "hide"; return this.effect.call( this, args ); } }, // jQuery core overloads toggle and creates _toggle __toggle: $.fn.toggle, toggle: function( speed ) { if ( standardSpeed( speed ) || typeof speed === "boolean" || $.isFunction( speed ) ) { return this.__toggle.apply( this, arguments ); } else { var args = _normalizeArguments.apply( this, arguments ); args.mode = "toggle"; return this.effect.call( this, args ); } }, // helper functions cssUnit: function(key) { var style = this.css( key ), val = []; $.each( [ "em", "px", "%", "pt" ], function( i, unit ) { if ( style.indexOf( unit ) > 0 ) { val = [ parseFloat( style ), unit ]; } }); return val; } }); })(); /******************************************************************************/ /*********************************** EASING ***********************************/ /******************************************************************************/ (function() { // based on easing equations from Robert Penner (http://www.robertpenner.com/easing) var baseEasings = {}; $.each( [ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function( i, name ) { baseEasings[ name ] = function( p ) { return Math.pow( p, i + 2 ); }; }); $.extend( baseEasings, { Sine: function ( p ) { return 1 - Math.cos( p * Math.PI / 2 ); }, Circ: function ( p ) { return 1 - Math.sqrt( 1 - p * p ); }, Elastic: function( p ) { return p === 0 || p === 1 ? p : -Math.pow( 2, 8 * (p - 1) ) * Math.sin( ( (p - 1) * 80 - 7.5 ) * Math.PI / 15 ); }, Back: function( p ) { return p * p * ( 3 * p - 2 ); }, Bounce: function ( p ) { var pow2, bounce = 4; while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {} return 1 / Math.pow( 4, 3 - bounce ) - 7.5625 * Math.pow( ( pow2 * 3 - 2 ) / 22 - p, 2 ); } }); $.each( baseEasings, function( name, easeIn ) { $.easing[ "easeIn" + name ] = easeIn; $.easing[ "easeOut" + name ] = function( p ) { return 1 - easeIn( 1 - p ); }; $.easing[ "easeInOut" + name ] = function( p ) { return p < 0.5 ? easeIn( p * 2 ) / 2 : 1 - easeIn( p * -2 + 2 ) / 2; }; }); })(); })(jQuery)); (function( $, undefined ) { var rvertical = /up|down|vertical/, rpositivemotion = /up|left|vertical|horizontal/; $.effects.effect.blind = function( o, done ) { // Create element var el = $( this ), props = [ "position", "top", "bottom", "left", "right", "height", "width" ], mode = $.effects.setMode( el, o.mode || "hide" ), direction = o.direction || "up", vertical = rvertical.test( direction ), ref = vertical ? "height" : "width", ref2 = vertical ? "top" : "left", motion = rpositivemotion.test( direction ), animation = {}, show = mode === "show", wrapper, distance, margin; // if already wrapped, the wrapper's properties are my property. #6245 if ( el.parent().is( ".ui-effects-wrapper" ) ) { $.effects.save( el.parent(), props ); } else { $.effects.save( el, props ); } el.show(); wrapper = $.effects.createWrapper( el ).css({ overflow: "hidden" }); distance = wrapper[ ref ](); margin = parseFloat( wrapper.css( ref2 ) ) || 0; animation[ ref ] = show ? distance : 0; if ( !motion ) { el .css( vertical ? "bottom" : "right", 0 ) .css( vertical ? "top" : "left", "auto" ) .css({ position: "absolute" }); animation[ ref2 ] = show ? margin : distance + margin; } // start at 0 if we are showing if ( show ) { wrapper.css( ref, 0 ); if ( ! motion ) { wrapper.css( ref2, margin + distance ); } } // Animate wrapper.animate( animation, { duration: o.duration, easing: o.easing, queue: false, complete: function() { if ( mode === "hide" ) { el.hide(); } $.effects.restore( el, props ); $.effects.removeWrapper( el ); done(); } }); }; })(jQuery); (function( $, undefined ) { $.effects.effect.bounce = function( o, done ) { var el = $( this ), props = [ "position", "top", "bottom", "left", "right", "height", "width" ], // defaults: mode = $.effects.setMode( el, o.mode || "effect" ), hide = mode === "hide", show = mode === "show", direction = o.direction || "up", distance = o.distance, times = o.times || 5, // number of internal animations anims = times * 2 + ( show || hide ? 1 : 0 ), speed = o.duration / anims, easing = o.easing, // utility: ref = ( direction === "up" || direction === "down" ) ? "top" : "left", motion = ( direction === "up" || direction === "left" ), i, upAnim, downAnim, // we will need to re-assemble the queue to stack our animations in place queue = el.queue(), queuelen = queue.length; // Avoid touching opacity to prevent clearType and PNG issues in IE if ( show || hide ) { props.push( "opacity" ); } $.effects.save( el, props ); el.show(); $.effects.createWrapper( el ); // Create Wrapper // default distance for the BIGGEST bounce is the outer Distance / 3 if ( !distance ) { distance = el[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3; } if ( show ) { downAnim = { opacity: 1 }; downAnim[ ref ] = 0; // if we are showing, force opacity 0 and set the initial position // then do the "first" animation el.css( "opacity", 0 ) .css( ref, motion ? -distance * 2 : distance * 2 ) .animate( downAnim, speed, easing ); } // start at the smallest distance if we are hiding if ( hide ) { distance = distance / Math.pow( 2, times - 1 ); } downAnim = {}; downAnim[ ref ] = 0; // Bounces up/down/left/right then back to 0 -- times * 2 animations happen here for ( i = 0; i < times; i++ ) { upAnim = {}; upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance; el.animate( upAnim, speed, easing ) .animate( downAnim, speed, easing ); distance = hide ? distance * 2 : distance / 2; } // Last Bounce when Hiding if ( hide ) { upAnim = { opacity: 0 }; upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance; el.animate( upAnim, speed, easing ); } el.queue(function() { if ( hide ) { el.hide(); } $.effects.restore( el, props ); $.effects.removeWrapper( el ); done(); }); // inject all the animations we just queued to be first in line (after "inprogress") if ( queuelen > 1) { queue.splice.apply( queue, [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) ); } el.dequeue(); }; })(jQuery); (function( $, undefined ) { $.effects.effect.clip = function( o, done ) { // Create element var el = $( this ), props = [ "position", "top", "bottom", "left", "right", "height", "width" ], mode = $.effects.setMode( el, o.mode || "hide" ), show = mode === "show", direction = o.direction || "vertical", vert = direction === "vertical", size = vert ? "height" : "width", position = vert ? "top" : "left", animation = {}, wrapper, animate, distance; // Save & Show $.effects.save( el, props ); el.show(); // Create Wrapper wrapper = $.effects.createWrapper( el ).css({ overflow: "hidden" }); animate = ( el[0].tagName === "IMG" ) ? wrapper : el; distance = animate[ size ](); // Shift if ( show ) { animate.css( size, 0 ); animate.css( position, distance / 2 ); } // Create Animation Object: animation[ size ] = show ? distance : 0; animation[ position ] = show ? 0 : distance / 2; // Animate animate.animate( animation, { queue: false, duration: o.duration, easing: o.easing, complete: function() { if ( !show ) { el.hide(); } $.effects.restore( el, props ); $.effects.removeWrapper( el ); done(); } }); }; })(jQuery); (function( $, undefined ) { $.effects.effect.drop = function( o, done ) { var el = $( this ), props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ], mode = $.effects.setMode( el, o.mode || "hide" ), show = mode === "show", direction = o.direction || "left", ref = ( direction === "up" || direction === "down" ) ? "top" : "left", motion = ( direction === "up" || direction === "left" ) ? "pos" : "neg", animation = { opacity: show ? 1 : 0 }, distance; // Adjust $.effects.save( el, props ); el.show(); $.effects.createWrapper( el ); distance = o.distance || el[ ref === "top" ? "outerHeight": "outerWidth" ]( true ) / 2; if ( show ) { el .css( "opacity", 0 ) .css( ref, motion === "pos" ? -distance : distance ); } // Animation animation[ ref ] = ( show ? ( motion === "pos" ? "+=" : "-=" ) : ( motion === "pos" ? "-=" : "+=" ) ) + distance; // Animate el.animate( animation, { queue: false, duration: o.duration, easing: o.easing, complete: function() { if ( mode === "hide" ) { el.hide(); } $.effects.restore( el, props ); $.effects.removeWrapper( el ); done(); } }); }; })(jQuery); (function( $, undefined ) { $.effects.effect.explode = function( o, done ) { var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3, cells = rows, el = $( this ), mode = $.effects.setMode( el, o.mode || "hide" ), show = mode === "show", // show and then visibility:hidden the element before calculating offset offset = el.show().css( "visibility", "hidden" ).offset(), // width and height of a piece width = Math.ceil( el.outerWidth() / cells ), height = Math.ceil( el.outerHeight() / rows ), pieces = [], // loop i, j, left, top, mx, my; // children animate complete: function childComplete() { pieces.push( this ); if ( pieces.length === rows * cells ) { animComplete(); } } // clone the element for each row and cell. for( i = 0; i < rows ; i++ ) { // ===> top = offset.top + i * height; my = i - ( rows - 1 ) / 2 ; for( j = 0; j < cells ; j++ ) { // ||| left = offset.left + j * width; mx = j - ( cells - 1 ) / 2 ; // Create a clone of the now hidden main element that will be absolute positioned // within a wrapper div off the -left and -top equal to size of our pieces el .clone() .appendTo( "body" ) .wrap( "
                                                " ) .css({ position: "absolute", visibility: "visible", left: -j * width, top: -i * height }) // select the wrapper - make it overflow: hidden and absolute positioned based on // where the original was located +left and +top equal to the size of pieces .parent() .addClass( "ui-effects-explode" ) .css({ position: "absolute", overflow: "hidden", width: width, height: height, left: left + ( show ? mx * width : 0 ), top: top + ( show ? my * height : 0 ), opacity: show ? 0 : 1 }).animate({ left: left + ( show ? 0 : mx * width ), top: top + ( show ? 0 : my * height ), opacity: show ? 1 : 0 }, o.duration || 500, o.easing, childComplete ); } } function animComplete() { el.css({ visibility: "visible" }); $( pieces ).remove(); if ( !show ) { el.hide(); } done(); } }; })(jQuery); (function( $, undefined ) { $.effects.effect.fade = function( o, done ) { var el = $( this ), mode = $.effects.setMode( el, o.mode || "toggle" ); el.animate({ opacity: mode }, { queue: false, duration: o.duration, easing: o.easing, complete: done }); }; })( jQuery ); (function( $, undefined ) { $.effects.effect.fold = function( o, done ) { // Create element var el = $( this ), props = [ "position", "top", "bottom", "left", "right", "height", "width" ], mode = $.effects.setMode( el, o.mode || "hide" ), show = mode === "show", hide = mode === "hide", size = o.size || 15, percent = /([0-9]+)%/.exec( size ), horizFirst = !!o.horizFirst, widthFirst = show !== horizFirst, ref = widthFirst ? [ "width", "height" ] : [ "height", "width" ], duration = o.duration / 2, wrapper, distance, animation1 = {}, animation2 = {}; $.effects.save( el, props ); el.show(); // Create Wrapper wrapper = $.effects.createWrapper( el ).css({ overflow: "hidden" }); distance = widthFirst ? [ wrapper.width(), wrapper.height() ] : [ wrapper.height(), wrapper.width() ]; if ( percent ) { size = parseInt( percent[ 1 ], 10 ) / 100 * distance[ hide ? 0 : 1 ]; } if ( show ) { wrapper.css( horizFirst ? { height: 0, width: size } : { height: size, width: 0 }); } // Animation animation1[ ref[ 0 ] ] = show ? distance[ 0 ] : size; animation2[ ref[ 1 ] ] = show ? distance[ 1 ] : 0; // Animate wrapper .animate( animation1, duration, o.easing ) .animate( animation2, duration, o.easing, function() { if ( hide ) { el.hide(); } $.effects.restore( el, props ); $.effects.removeWrapper( el ); done(); }); }; })(jQuery); (function( $, undefined ) { $.effects.effect.highlight = function( o, done ) { var elem = $( this ), props = [ "backgroundImage", "backgroundColor", "opacity" ], mode = $.effects.setMode( elem, o.mode || "show" ), animation = { backgroundColor: elem.css( "backgroundColor" ) }; if (mode === "hide") { animation.opacity = 0; } $.effects.save( elem, props ); elem .show() .css({ backgroundImage: "none", backgroundColor: o.color || "#ffff99" }) .animate( animation, { queue: false, duration: o.duration, easing: o.easing, complete: function() { if ( mode === "hide" ) { elem.hide(); } $.effects.restore( elem, props ); done(); } }); }; })(jQuery); (function( $, undefined ) { $.effects.effect.pulsate = function( o, done ) { var elem = $( this ), mode = $.effects.setMode( elem, o.mode || "show" ), show = mode === "show", hide = mode === "hide", showhide = ( show || mode === "hide" ), // showing or hiding leaves of the "last" animation anims = ( ( o.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ), duration = o.duration / anims, animateTo = 0, queue = elem.queue(), queuelen = queue.length, i; if ( show || !elem.is(":visible")) { elem.css( "opacity", 0 ).show(); animateTo = 1; } // anims - 1 opacity "toggles" for ( i = 1; i < anims; i++ ) { elem.animate({ opacity: animateTo }, duration, o.easing ); animateTo = 1 - animateTo; } elem.animate({ opacity: animateTo }, duration, o.easing); elem.queue(function() { if ( hide ) { elem.hide(); } done(); }); // We just queued up "anims" animations, we need to put them next in the queue if ( queuelen > 1 ) { queue.splice.apply( queue, [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) ); } elem.dequeue(); }; })(jQuery); (function( $, undefined ) { $.effects.effect.puff = function( o, done ) { var elem = $( this ), mode = $.effects.setMode( elem, o.mode || "hide" ), hide = mode === "hide", percent = parseInt( o.percent, 10 ) || 150, factor = percent / 100, original = { height: elem.height(), width: elem.width(), outerHeight: elem.outerHeight(), outerWidth: elem.outerWidth() }; $.extend( o, { effect: "scale", queue: false, fade: true, mode: mode, complete: done, percent: hide ? percent : 100, from: hide ? original : { height: original.height * factor, width: original.width * factor, outerHeight: original.outerHeight * factor, outerWidth: original.outerWidth * factor } }); elem.effect( o ); }; $.effects.effect.scale = function( o, done ) { // Create element var el = $( this ), options = $.extend( true, {}, o ), mode = $.effects.setMode( el, o.mode || "effect" ), percent = parseInt( o.percent, 10 ) || ( parseInt( o.percent, 10 ) === 0 ? 0 : ( mode === "hide" ? 0 : 100 ) ), direction = o.direction || "both", origin = o.origin, original = { height: el.height(), width: el.width(), outerHeight: el.outerHeight(), outerWidth: el.outerWidth() }, factor = { y: direction !== "horizontal" ? (percent / 100) : 1, x: direction !== "vertical" ? (percent / 100) : 1 }; // We are going to pass this effect to the size effect: options.effect = "size"; options.queue = false; options.complete = done; // Set default origin and restore for show/hide if ( mode !== "effect" ) { options.origin = origin || ["middle","center"]; options.restore = true; } options.from = o.from || ( mode === "show" ? { height: 0, width: 0, outerHeight: 0, outerWidth: 0 } : original ); options.to = { height: original.height * factor.y, width: original.width * factor.x, outerHeight: original.outerHeight * factor.y, outerWidth: original.outerWidth * factor.x }; // Fade option to support puff if ( options.fade ) { if ( mode === "show" ) { options.from.opacity = 0; options.to.opacity = 1; } if ( mode === "hide" ) { options.from.opacity = 1; options.to.opacity = 0; } } // Animate el.effect( options ); }; $.effects.effect.size = function( o, done ) { // Create element var original, baseline, factor, el = $( this ), props0 = [ "position", "top", "bottom", "left", "right", "width", "height", "overflow", "opacity" ], // Always restore props1 = [ "position", "top", "bottom", "left", "right", "overflow", "opacity" ], // Copy for children props2 = [ "width", "height", "overflow" ], cProps = [ "fontSize" ], vProps = [ "borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom" ], hProps = [ "borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight" ], // Set options mode = $.effects.setMode( el, o.mode || "effect" ), restore = o.restore || mode !== "effect", scale = o.scale || "both", origin = o.origin || [ "middle", "center" ], position = el.css( "position" ), props = restore ? props0 : props1, zero = { height: 0, width: 0, outerHeight: 0, outerWidth: 0 }; if ( mode === "show" ) { el.show(); } original = { height: el.height(), width: el.width(), outerHeight: el.outerHeight(), outerWidth: el.outerWidth() }; if ( o.mode === "toggle" && mode === "show" ) { el.from = o.to || zero; el.to = o.from || original; } else { el.from = o.from || ( mode === "show" ? zero : original ); el.to = o.to || ( mode === "hide" ? zero : original ); } // Set scaling factor factor = { from: { y: el.from.height / original.height, x: el.from.width / original.width }, to: { y: el.to.height / original.height, x: el.to.width / original.width } }; // Scale the css box if ( scale === "box" || scale === "both" ) { // Vertical props scaling if ( factor.from.y !== factor.to.y ) { props = props.concat( vProps ); el.from = $.effects.setTransition( el, vProps, factor.from.y, el.from ); el.to = $.effects.setTransition( el, vProps, factor.to.y, el.to ); } // Horizontal props scaling if ( factor.from.x !== factor.to.x ) { props = props.concat( hProps ); el.from = $.effects.setTransition( el, hProps, factor.from.x, el.from ); el.to = $.effects.setTransition( el, hProps, factor.to.x, el.to ); } } // Scale the content if ( scale === "content" || scale === "both" ) { // Vertical props scaling if ( factor.from.y !== factor.to.y ) { props = props.concat( cProps ).concat( props2 ); el.from = $.effects.setTransition( el, cProps, factor.from.y, el.from ); el.to = $.effects.setTransition( el, cProps, factor.to.y, el.to ); } } $.effects.save( el, props ); el.show(); $.effects.createWrapper( el ); el.css( "overflow", "hidden" ).css( el.from ); // Adjust if (origin) { // Calculate baseline shifts baseline = $.effects.getBaseline( origin, original ); el.from.top = ( original.outerHeight - el.outerHeight() ) * baseline.y; el.from.left = ( original.outerWidth - el.outerWidth() ) * baseline.x; el.to.top = ( original.outerHeight - el.to.outerHeight ) * baseline.y; el.to.left = ( original.outerWidth - el.to.outerWidth ) * baseline.x; } el.css( el.from ); // set top & left // Animate if ( scale === "content" || scale === "both" ) { // Scale the children // Add margins/font-size vProps = vProps.concat([ "marginTop", "marginBottom" ]).concat(cProps); hProps = hProps.concat([ "marginLeft", "marginRight" ]); props2 = props0.concat(vProps).concat(hProps); el.find( "*[width]" ).each( function(){ var child = $( this ), c_original = { height: child.height(), width: child.width(), outerHeight: child.outerHeight(), outerWidth: child.outerWidth() }; if (restore) { $.effects.save(child, props2); } child.from = { height: c_original.height * factor.from.y, width: c_original.width * factor.from.x, outerHeight: c_original.outerHeight * factor.from.y, outerWidth: c_original.outerWidth * factor.from.x }; child.to = { height: c_original.height * factor.to.y, width: c_original.width * factor.to.x, outerHeight: c_original.height * factor.to.y, outerWidth: c_original.width * factor.to.x }; // Vertical props scaling if ( factor.from.y !== factor.to.y ) { child.from = $.effects.setTransition( child, vProps, factor.from.y, child.from ); child.to = $.effects.setTransition( child, vProps, factor.to.y, child.to ); } // Horizontal props scaling if ( factor.from.x !== factor.to.x ) { child.from = $.effects.setTransition( child, hProps, factor.from.x, child.from ); child.to = $.effects.setTransition( child, hProps, factor.to.x, child.to ); } // Animate children child.css( child.from ); child.animate( child.to, o.duration, o.easing, function() { // Restore children if ( restore ) { $.effects.restore( child, props2 ); } }); }); } // Animate el.animate( el.to, { queue: false, duration: o.duration, easing: o.easing, complete: function() { if ( el.to.opacity === 0 ) { el.css( "opacity", el.from.opacity ); } if( mode === "hide" ) { el.hide(); } $.effects.restore( el, props ); if ( !restore ) { // we need to calculate our new positioning based on the scaling if ( position === "static" ) { el.css({ position: "relative", top: el.to.top, left: el.to.left }); } else { $.each([ "top", "left" ], function( idx, pos ) { el.css( pos, function( _, str ) { var val = parseInt( str, 10 ), toRef = idx ? el.to.left : el.to.top; // if original was "auto", recalculate the new value from wrapper if ( str === "auto" ) { return toRef + "px"; } return val + toRef + "px"; }); }); } } $.effects.removeWrapper( el ); done(); } }); }; })(jQuery); (function( $, undefined ) { $.effects.effect.shake = function( o, done ) { var el = $( this ), props = [ "position", "top", "bottom", "left", "right", "height", "width" ], mode = $.effects.setMode( el, o.mode || "effect" ), direction = o.direction || "left", distance = o.distance || 20, times = o.times || 3, anims = times * 2 + 1, speed = Math.round(o.duration/anims), ref = (direction === "up" || direction === "down") ? "top" : "left", positiveMotion = (direction === "up" || direction === "left"), animation = {}, animation1 = {}, animation2 = {}, i, // we will need to re-assemble the queue to stack our animations in place queue = el.queue(), queuelen = queue.length; $.effects.save( el, props ); el.show(); $.effects.createWrapper( el ); // Animation animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance; animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2; animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2; // Animate el.animate( animation, speed, o.easing ); // Shakes for ( i = 1; i < times; i++ ) { el.animate( animation1, speed, o.easing ).animate( animation2, speed, o.easing ); } el .animate( animation1, speed, o.easing ) .animate( animation, speed / 2, o.easing ) .queue(function() { if ( mode === "hide" ) { el.hide(); } $.effects.restore( el, props ); $.effects.removeWrapper( el ); done(); }); // inject all the animations we just queued to be first in line (after "inprogress") if ( queuelen > 1) { queue.splice.apply( queue, [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) ); } el.dequeue(); }; })(jQuery); (function( $, undefined ) { $.effects.effect.slide = function( o, done ) { // Create element var el = $( this ), props = [ "position", "top", "bottom", "left", "right", "width", "height" ], mode = $.effects.setMode( el, o.mode || "show" ), show = mode === "show", direction = o.direction || "left", ref = (direction === "up" || direction === "down") ? "top" : "left", positiveMotion = (direction === "up" || direction === "left"), distance, animation = {}; // Adjust $.effects.save( el, props ); el.show(); distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ); $.effects.createWrapper( el ).css({ overflow: "hidden" }); if ( show ) { el.css( ref, positiveMotion ? (isNaN(distance) ? "-" + distance : -distance) : distance ); } // Animation animation[ ref ] = ( show ? ( positiveMotion ? "+=" : "-=") : ( positiveMotion ? "-=" : "+=")) + distance; // Animate el.animate( animation, { queue: false, duration: o.duration, easing: o.easing, complete: function() { if ( mode === "hide" ) { el.hide(); } $.effects.restore( el, props ); $.effects.removeWrapper( el ); done(); } }); }; })(jQuery); (function( $, undefined ) { $.effects.effect.transfer = function( o, done ) { var elem = $( this ), target = $( o.to ), targetFixed = target.css( "position" ) === "fixed", body = $("body"), fixTop = targetFixed ? body.scrollTop() : 0, fixLeft = targetFixed ? body.scrollLeft() : 0, endPosition = target.offset(), animation = { top: endPosition.top - fixTop , left: endPosition.left - fixLeft , height: target.innerHeight(), width: target.innerWidth() }, startPosition = elem.offset(), transfer = $( '
                                                ' ) .appendTo( document.body ) .addClass( o.className ) .css({ top: startPosition.top - fixTop , left: startPosition.left - fixLeft , height: elem.innerHeight(), width: elem.innerWidth(), position: targetFixed ? "fixed" : "absolute" }) .animate( animation, o.duration, o.easing, function() { transfer.remove(); done(); }); }; })(jQuery); (function( $, undefined ) { var mouseHandled = false; $.widget( "ui.menu", { version: "1.9.2", defaultElement: "
                                                  ", delay: 300, options: { icons: { submenu: "ui-icon-carat-1-e" }, menus: "ul", position: { my: "left top", at: "right top" }, role: "menu", // callbacks blur: null, focus: null, select: null }, _create: function() { this.activeMenu = this.element; this.element .uniqueId() .addClass( "ui-menu ui-widget ui-widget-content ui-corner-all" ) .toggleClass( "ui-menu-icons", !!this.element.find( ".ui-icon" ).length ) .attr({ role: this.options.role, tabIndex: 0 }) // need to catch all clicks on disabled menu // not possible through _on .bind( "click" + this.eventNamespace, $.proxy(function( event ) { if ( this.options.disabled ) { event.preventDefault(); } }, this )); if ( this.options.disabled ) { this.element .addClass( "ui-state-disabled" ) .attr( "aria-disabled", "true" ); } this._on({ // Prevent focus from sticking to links inside menu after clicking // them (focus should always stay on UL during navigation). "mousedown .ui-menu-item > a": function( event ) { event.preventDefault(); }, "click .ui-state-disabled > a": function( event ) { event.preventDefault(); }, "click .ui-menu-item:has(a)": function( event ) { var target = $( event.target ).closest( ".ui-menu-item" ); if ( !mouseHandled && target.not( ".ui-state-disabled" ).length ) { mouseHandled = true; this.select( event ); // Open submenu on click if ( target.has( ".ui-menu" ).length ) { this.expand( event ); } else if ( !this.element.is( ":focus" ) ) { // Redirect focus to the menu this.element.trigger( "focus", [ true ] ); // If the active item is on the top level, let it stay active. // Otherwise, blur the active item since it is no longer visible. if ( this.active && this.active.parents( ".ui-menu" ).length === 1 ) { clearTimeout( this.timer ); } } } }, "mouseenter .ui-menu-item": function( event ) { var target = $( event.currentTarget ); // Remove ui-state-active class from siblings of the newly focused menu item // to avoid a jump caused by adjacent elements both having a class with a border target.siblings().children( ".ui-state-active" ).removeClass( "ui-state-active" ); this.focus( event, target ); }, mouseleave: "collapseAll", "mouseleave .ui-menu": "collapseAll", focus: function( event, keepActiveItem ) { // If there's already an active item, keep it active // If not, activate the first item var item = this.active || this.element.children( ".ui-menu-item" ).eq( 0 ); if ( !keepActiveItem ) { this.focus( event, item ); } }, blur: function( event ) { this._delay(function() { if ( !$.contains( this.element[0], this.document[0].activeElement ) ) { this.collapseAll( event ); } }); }, keydown: "_keydown" }); this.refresh(); // Clicks outside of a menu collapse any open menus this._on( this.document, { click: function( event ) { if ( !$( event.target ).closest( ".ui-menu" ).length ) { this.collapseAll( event ); } // Reset the mouseHandled flag mouseHandled = false; } }); }, _destroy: function() { // Destroy (sub)menus this.element .removeAttr( "aria-activedescendant" ) .find( ".ui-menu" ).andSelf() .removeClass( "ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons" ) .removeAttr( "role" ) .removeAttr( "tabIndex" ) .removeAttr( "aria-labelledby" ) .removeAttr( "aria-expanded" ) .removeAttr( "aria-hidden" ) .removeAttr( "aria-disabled" ) .removeUniqueId() .show(); // Destroy menu items this.element.find( ".ui-menu-item" ) .removeClass( "ui-menu-item" ) .removeAttr( "role" ) .removeAttr( "aria-disabled" ) .children( "a" ) .removeUniqueId() .removeClass( "ui-corner-all ui-state-hover" ) .removeAttr( "tabIndex" ) .removeAttr( "role" ) .removeAttr( "aria-haspopup" ) .children().each( function() { var elem = $( this ); if ( elem.data( "ui-menu-submenu-carat" ) ) { elem.remove(); } }); // Destroy menu dividers this.element.find( ".ui-menu-divider" ).removeClass( "ui-menu-divider ui-widget-content" ); }, _keydown: function( event ) { var match, prev, character, skip, regex, preventDefault = true; function escape( value ) { return value.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" ); } switch ( event.keyCode ) { case $.ui.keyCode.PAGE_UP: this.previousPage( event ); break; case $.ui.keyCode.PAGE_DOWN: this.nextPage( event ); break; case $.ui.keyCode.HOME: this._move( "first", "first", event ); break; case $.ui.keyCode.END: this._move( "last", "last", event ); break; case $.ui.keyCode.UP: this.previous( event ); break; case $.ui.keyCode.DOWN: this.next( event ); break; case $.ui.keyCode.LEFT: this.collapse( event ); break; case $.ui.keyCode.RIGHT: if ( this.active && !this.active.is( ".ui-state-disabled" ) ) { this.expand( event ); } break; case $.ui.keyCode.ENTER: case $.ui.keyCode.SPACE: this._activate( event ); break; case $.ui.keyCode.ESCAPE: this.collapse( event ); break; default: preventDefault = false; prev = this.previousFilter || ""; character = String.fromCharCode( event.keyCode ); skip = false; clearTimeout( this.filterTimer ); if ( character === prev ) { skip = true; } else { character = prev + character; } regex = new RegExp( "^" + escape( character ), "i" ); match = this.activeMenu.children( ".ui-menu-item" ).filter(function() { return regex.test( $( this ).children( "a" ).text() ); }); match = skip && match.index( this.active.next() ) !== -1 ? this.active.nextAll( ".ui-menu-item" ) : match; // If no matches on the current filter, reset to the last character pressed // to move down the menu to the first item that starts with that character if ( !match.length ) { character = String.fromCharCode( event.keyCode ); regex = new RegExp( "^" + escape( character ), "i" ); match = this.activeMenu.children( ".ui-menu-item" ).filter(function() { return regex.test( $( this ).children( "a" ).text() ); }); } if ( match.length ) { this.focus( event, match ); if ( match.length > 1 ) { this.previousFilter = character; this.filterTimer = this._delay(function() { delete this.previousFilter; }, 1000 ); } else { delete this.previousFilter; } } else { delete this.previousFilter; } } if ( preventDefault ) { event.preventDefault(); } }, _activate: function( event ) { if ( !this.active.is( ".ui-state-disabled" ) ) { if ( this.active.children( "a[aria-haspopup='true']" ).length ) { this.expand( event ); } else { this.select( event ); } } }, refresh: function() { var menus, icon = this.options.icons.submenu, submenus = this.element.find( this.options.menus ); // Initialize nested menus submenus.filter( ":not(.ui-menu)" ) .addClass( "ui-menu ui-widget ui-widget-content ui-corner-all" ) .hide() .attr({ role: this.options.role, "aria-hidden": "true", "aria-expanded": "false" }) .each(function() { var menu = $( this ), item = menu.prev( "a" ), submenuCarat = $( "" ) .addClass( "ui-menu-icon ui-icon " + icon ) .data( "ui-menu-submenu-carat", true ); item .attr( "aria-haspopup", "true" ) .prepend( submenuCarat ); menu.attr( "aria-labelledby", item.attr( "id" ) ); }); menus = submenus.add( this.element ); // Don't refresh list items that are already adapted menus.children( ":not(.ui-menu-item):has(a)" ) .addClass( "ui-menu-item" ) .attr( "role", "presentation" ) .children( "a" ) .uniqueId() .addClass( "ui-corner-all" ) .attr({ tabIndex: -1, role: this._itemRole() }); // Initialize unlinked menu-items containing spaces and/or dashes only as dividers menus.children( ":not(.ui-menu-item)" ).each(function() { var item = $( this ); // hyphen, em dash, en dash if ( !/[^\-—–\s]/.test( item.text() ) ) { item.addClass( "ui-widget-content ui-menu-divider" ); } }); // Add aria-disabled attribute to any disabled menu item menus.children( ".ui-state-disabled" ).attr( "aria-disabled", "true" ); // If the active item has been removed, blur the menu if ( this.active && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) { this.blur(); } }, _itemRole: function() { return { menu: "menuitem", listbox: "option" }[ this.options.role ]; }, focus: function( event, item ) { var nested, focused; this.blur( event, event && event.type === "focus" ); this._scrollIntoView( item ); this.active = item.first(); focused = this.active.children( "a" ).addClass( "ui-state-focus" ); // Only update aria-activedescendant if there's a role // otherwise we assume focus is managed elsewhere if ( this.options.role ) { this.element.attr( "aria-activedescendant", focused.attr( "id" ) ); } // Highlight active parent menu item, if any this.active .parent() .closest( ".ui-menu-item" ) .children( "a:first" ) .addClass( "ui-state-active" ); if ( event && event.type === "keydown" ) { this._close(); } else { this.timer = this._delay(function() { this._close(); }, this.delay ); } nested = item.children( ".ui-menu" ); if ( nested.length && ( /^mouse/.test( event.type ) ) ) { this._startOpening(nested); } this.activeMenu = item.parent(); this._trigger( "focus", event, { item: item } ); }, _scrollIntoView: function( item ) { var borderTop, paddingTop, offset, scroll, elementHeight, itemHeight; if ( this._hasScroll() ) { borderTop = parseFloat( $.css( this.activeMenu[0], "borderTopWidth" ) ) || 0; paddingTop = parseFloat( $.css( this.activeMenu[0], "paddingTop" ) ) || 0; offset = item.offset().top - this.activeMenu.offset().top - borderTop - paddingTop; scroll = this.activeMenu.scrollTop(); elementHeight = this.activeMenu.height(); itemHeight = item.height(); if ( offset < 0 ) { this.activeMenu.scrollTop( scroll + offset ); } else if ( offset + itemHeight > elementHeight ) { this.activeMenu.scrollTop( scroll + offset - elementHeight + itemHeight ); } } }, blur: function( event, fromFocus ) { if ( !fromFocus ) { clearTimeout( this.timer ); } if ( !this.active ) { return; } this.active.children( "a" ).removeClass( "ui-state-focus" ); this.active = null; this._trigger( "blur", event, { item: this.active } ); }, _startOpening: function( submenu ) { clearTimeout( this.timer ); // Don't open if already open fixes a Firefox bug that caused a .5 pixel // shift in the submenu position when mousing over the carat icon if ( submenu.attr( "aria-hidden" ) !== "true" ) { return; } this.timer = this._delay(function() { this._close(); this._open( submenu ); }, this.delay ); }, _open: function( submenu ) { var position = $.extend({ of: this.active }, this.options.position ); clearTimeout( this.timer ); this.element.find( ".ui-menu" ).not( submenu.parents( ".ui-menu" ) ) .hide() .attr( "aria-hidden", "true" ); submenu .show() .removeAttr( "aria-hidden" ) .attr( "aria-expanded", "true" ) .position( position ); }, collapseAll: function( event, all ) { clearTimeout( this.timer ); this.timer = this._delay(function() { // If we were passed an event, look for the submenu that contains the event var currentMenu = all ? this.element : $( event && event.target ).closest( this.element.find( ".ui-menu" ) ); // If we found no valid submenu ancestor, use the main menu to close all sub menus anyway if ( !currentMenu.length ) { currentMenu = this.element; } this._close( currentMenu ); this.blur( event ); this.activeMenu = currentMenu; }, this.delay ); }, // With no arguments, closes the currently active menu - if nothing is active // it closes all menus. If passed an argument, it will search for menus BELOW _close: function( startMenu ) { if ( !startMenu ) { startMenu = this.active ? this.active.parent() : this.element; } startMenu .find( ".ui-menu" ) .hide() .attr( "aria-hidden", "true" ) .attr( "aria-expanded", "false" ) .end() .find( "a.ui-state-active" ) .removeClass( "ui-state-active" ); }, collapse: function( event ) { var newItem = this.active && this.active.parent().closest( ".ui-menu-item", this.element ); if ( newItem && newItem.length ) { this._close(); this.focus( event, newItem ); } }, expand: function( event ) { var newItem = this.active && this.active .children( ".ui-menu " ) .children( ".ui-menu-item" ) .first(); if ( newItem && newItem.length ) { this._open( newItem.parent() ); // Delay so Firefox will not hide activedescendant change in expanding submenu from AT this._delay(function() { this.focus( event, newItem ); }); } }, next: function( event ) { this._move( "next", "first", event ); }, previous: function( event ) { this._move( "prev", "last", event ); }, isFirstItem: function() { return this.active && !this.active.prevAll( ".ui-menu-item" ).length; }, isLastItem: function() { return this.active && !this.active.nextAll( ".ui-menu-item" ).length; }, _move: function( direction, filter, event ) { var next; if ( this.active ) { if ( direction === "first" || direction === "last" ) { next = this.active [ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" ) .eq( -1 ); } else { next = this.active [ direction + "All" ]( ".ui-menu-item" ) .eq( 0 ); } } if ( !next || !next.length || !this.active ) { next = this.activeMenu.children( ".ui-menu-item" )[ filter ](); } this.focus( event, next ); }, nextPage: function( event ) { var item, base, height; if ( !this.active ) { this.next( event ); return; } if ( this.isLastItem() ) { return; } if ( this._hasScroll() ) { base = this.active.offset().top; height = this.element.height(); this.active.nextAll( ".ui-menu-item" ).each(function() { item = $( this ); return item.offset().top - base - height < 0; }); this.focus( event, item ); } else { this.focus( event, this.activeMenu.children( ".ui-menu-item" ) [ !this.active ? "first" : "last" ]() ); } }, previousPage: function( event ) { var item, base, height; if ( !this.active ) { this.next( event ); return; } if ( this.isFirstItem() ) { return; } if ( this._hasScroll() ) { base = this.active.offset().top; height = this.element.height(); this.active.prevAll( ".ui-menu-item" ).each(function() { item = $( this ); return item.offset().top - base + height > 0; }); this.focus( event, item ); } else { this.focus( event, this.activeMenu.children( ".ui-menu-item" ).first() ); } }, _hasScroll: function() { return this.element.outerHeight() < this.element.prop( "scrollHeight" ); }, select: function( event ) { // TODO: It should never be possible to not have an active item at this // point, but the tests don't trigger mouseenter before click. this.active = this.active || $( event.target ).closest( ".ui-menu-item" ); var ui = { item: this.active }; if ( !this.active.has( ".ui-menu" ).length ) { this.collapseAll( event, true ); } this._trigger( "select", event, ui ); } }); }( jQuery )); (function( $, undefined ) { $.widget( "ui.progressbar", { version: "1.9.2", options: { value: 0, max: 100 }, min: 0, _create: function() { this.element .addClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" ) .attr({ role: "progressbar", "aria-valuemin": this.min, "aria-valuemax": this.options.max, "aria-valuenow": this._value() }); this.valueDiv = $( "
                                                  " ) .appendTo( this.element ); this.oldValue = this._value(); this._refreshValue(); }, _destroy: function() { this.element .removeClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" ) .removeAttr( "role" ) .removeAttr( "aria-valuemin" ) .removeAttr( "aria-valuemax" ) .removeAttr( "aria-valuenow" ); this.valueDiv.remove(); }, value: function( newValue ) { if ( newValue === undefined ) { return this._value(); } this._setOption( "value", newValue ); return this; }, _setOption: function( key, value ) { if ( key === "value" ) { this.options.value = value; this._refreshValue(); if ( this._value() === this.options.max ) { this._trigger( "complete" ); } } this._super( key, value ); }, _value: function() { var val = this.options.value; // normalize invalid value if ( typeof val !== "number" ) { val = 0; } return Math.min( this.options.max, Math.max( this.min, val ) ); }, _percentage: function() { return 100 * this._value() / this.options.max; }, _refreshValue: function() { var value = this.value(), percentage = this._percentage(); if ( this.oldValue !== value ) { this.oldValue = value; this._trigger( "change" ); } this.valueDiv .toggle( value > this.min ) .toggleClass( "ui-corner-right", value === this.options.max ) .width( percentage.toFixed(0) + "%" ); this.element.attr( "aria-valuenow", value ); } }); })( jQuery ); (function( $, undefined ) { $.widget("ui.resizable", $.ui.mouse, { version: "1.9.2", widgetEventPrefix: "resize", options: { alsoResize: false, animate: false, animateDuration: "slow", animateEasing: "swing", aspectRatio: false, autoHide: false, containment: false, ghost: false, grid: false, handles: "e,s,se", helper: false, maxHeight: null, maxWidth: null, minHeight: 10, minWidth: 10, zIndex: 1000 }, _create: function() { var that = this, o = this.options; this.element.addClass("ui-resizable"); $.extend(this, { _aspectRatio: !!(o.aspectRatio), aspectRatio: o.aspectRatio, originalElement: this.element, _proportionallyResizeElements: [], _helper: o.helper || o.ghost || o.animate ? o.helper || 'ui-resizable-helper' : null }); //Wrap the element if it cannot hold child nodes if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)) { //Create a wrapper element and set the wrapper to the new current internal element this.element.wrap( $('
                                                  ').css({ position: this.element.css('position'), width: this.element.outerWidth(), height: this.element.outerHeight(), top: this.element.css('top'), left: this.element.css('left') }) ); //Overwrite the original this.element this.element = this.element.parent().data( "resizable", this.element.data('resizable') ); this.elementIsWrapper = true; //Move margins to the wrapper this.element.css({ marginLeft: this.originalElement.css("marginLeft"), marginTop: this.originalElement.css("marginTop"), marginRight: this.originalElement.css("marginRight"), marginBottom: this.originalElement.css("marginBottom") }); this.originalElement.css({ marginLeft: 0, marginTop: 0, marginRight: 0, marginBottom: 0}); //Prevent Safari textarea resize this.originalResizeStyle = this.originalElement.css('resize'); this.originalElement.css('resize', 'none'); //Push the actual element to our proportionallyResize internal array this._proportionallyResizeElements.push(this.originalElement.css({ position: 'static', zoom: 1, display: 'block' })); // avoid IE jump (hard set the margin) this.originalElement.css({ margin: this.originalElement.css('margin') }); // fix handlers offset this._proportionallyResize(); } this.handles = o.handles || (!$('.ui-resizable-handle', this.element).length ? "e,s,se" : { n: '.ui-resizable-n', e: '.ui-resizable-e', s: '.ui-resizable-s', w: '.ui-resizable-w', se: '.ui-resizable-se', sw: '.ui-resizable-sw', ne: '.ui-resizable-ne', nw: '.ui-resizable-nw' }); if(this.handles.constructor == String) { if(this.handles == 'all') this.handles = 'n,e,s,w,se,sw,ne,nw'; var n = this.handles.split(","); this.handles = {}; for(var i = 0; i < n.length; i++) { var handle = $.trim(n[i]), hname = 'ui-resizable-'+handle; var axis = $('
                                                  '); // Apply zIndex to all handles - see #7960 axis.css({ zIndex: o.zIndex }); //TODO : What's going on here? if ('se' == handle) { axis.addClass('ui-icon ui-icon-gripsmall-diagonal-se'); }; //Insert into internal handles object and append to element this.handles[handle] = '.ui-resizable-'+handle; this.element.append(axis); } } this._renderAxis = function(target) { target = target || this.element; for(var i in this.handles) { if(this.handles[i].constructor == String) this.handles[i] = $(this.handles[i], this.element).show(); //Apply pad to wrapper element, needed to fix axis position (textarea, inputs, scrolls) if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/textarea|input|select|button/i)) { var axis = $(this.handles[i], this.element), padWrapper = 0; //Checking the correct pad and border padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth(); //The padding type i have to apply... var padPos = [ 'padding', /ne|nw|n/.test(i) ? 'Top' : /se|sw|s/.test(i) ? 'Bottom' : /^e$/.test(i) ? 'Right' : 'Left' ].join(""); target.css(padPos, padWrapper); this._proportionallyResize(); } //TODO: What's that good for? There's not anything to be executed left if(!$(this.handles[i]).length) continue; } }; //TODO: make renderAxis a prototype function this._renderAxis(this.element); this._handles = $('.ui-resizable-handle', this.element) .disableSelection(); //Matching axis name this._handles.mouseover(function() { if (!that.resizing) { if (this.className) var axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i); //Axis, default = se that.axis = axis && axis[1] ? axis[1] : 'se'; } }); //If we want to auto hide the elements if (o.autoHide) { this._handles.hide(); $(this.element) .addClass("ui-resizable-autohide") .mouseenter(function() { if (o.disabled) return; $(this).removeClass("ui-resizable-autohide"); that._handles.show(); }) .mouseleave(function(){ if (o.disabled) return; if (!that.resizing) { $(this).addClass("ui-resizable-autohide"); that._handles.hide(); } }); } //Initialize the mouse interaction this._mouseInit(); }, _destroy: function() { this._mouseDestroy(); var _destroy = function(exp) { $(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing") .removeData("resizable").removeData("ui-resizable").unbind(".resizable").find('.ui-resizable-handle').remove(); }; //TODO: Unwrap at same DOM position if (this.elementIsWrapper) { _destroy(this.element); var wrapper = this.element; this.originalElement.css({ position: wrapper.css('position'), width: wrapper.outerWidth(), height: wrapper.outerHeight(), top: wrapper.css('top'), left: wrapper.css('left') }).insertAfter( wrapper ); wrapper.remove(); } this.originalElement.css('resize', this.originalResizeStyle); _destroy(this.originalElement); return this; }, _mouseCapture: function(event) { var handle = false; for (var i in this.handles) { if ($(this.handles[i])[0] == event.target) { handle = true; } } return !this.options.disabled && handle; }, _mouseStart: function(event) { var o = this.options, iniPos = this.element.position(), el = this.element; this.resizing = true; this.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() }; // bugfix for http://dev.jquery.com/ticket/1749 if (el.is('.ui-draggable') || (/absolute/).test(el.css('position'))) { el.css({ position: 'absolute', top: iniPos.top, left: iniPos.left }); } this._renderProxy(); var curleft = num(this.helper.css('left')), curtop = num(this.helper.css('top')); if (o.containment) { curleft += $(o.containment).scrollLeft() || 0; curtop += $(o.containment).scrollTop() || 0; } //Store needed variables this.offset = this.helper.offset(); this.position = { left: curleft, top: curtop }; this.size = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() }; this.originalSize = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() }; this.originalPosition = { left: curleft, top: curtop }; this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() }; this.originalMousePosition = { left: event.pageX, top: event.pageY }; //Aspect Ratio this.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.width / this.originalSize.height) || 1); var cursor = $('.ui-resizable-' + this.axis).css('cursor'); $('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor); el.addClass("ui-resizable-resizing"); this._propagate("start", event); return true; }, _mouseDrag: function(event) { //Increase performance, avoid regex var el = this.helper, o = this.options, props = {}, that = this, smp = this.originalMousePosition, a = this.axis; var dx = (event.pageX-smp.left)||0, dy = (event.pageY-smp.top)||0; var trigger = this._change[a]; if (!trigger) return false; // Calculate the attrs that will be change var data = trigger.apply(this, [event, dx, dy]); // Put this in the mouseDrag handler since the user can start pressing shift while resizing this._updateVirtualBoundaries(event.shiftKey); if (this._aspectRatio || event.shiftKey) data = this._updateRatio(data, event); data = this._respectSize(data, event); // plugins callbacks need to be called first this._propagate("resize", event); el.css({ top: this.position.top + "px", left: this.position.left + "px", width: this.size.width + "px", height: this.size.height + "px" }); if (!this._helper && this._proportionallyResizeElements.length) this._proportionallyResize(); this._updateCache(data); // calling the user callback at the end this._trigger('resize', event, this.ui()); return false; }, _mouseStop: function(event) { this.resizing = false; var o = this.options, that = this; if(this._helper) { var pr = this._proportionallyResizeElements, ista = pr.length && (/textarea/i).test(pr[0].nodeName), soffseth = ista && $.ui.hasScroll(pr[0], 'left') /* TODO - jump height */ ? 0 : that.sizeDiff.height, soffsetw = ista ? 0 : that.sizeDiff.width; var s = { width: (that.helper.width() - soffsetw), height: (that.helper.height() - soffseth) }, left = (parseInt(that.element.css('left'), 10) + (that.position.left - that.originalPosition.left)) || null, top = (parseInt(that.element.css('top'), 10) + (that.position.top - that.originalPosition.top)) || null; if (!o.animate) this.element.css($.extend(s, { top: top, left: left })); that.helper.height(that.size.height); that.helper.width(that.size.width); if (this._helper && !o.animate) this._proportionallyResize(); } $('body').css('cursor', 'auto'); this.element.removeClass("ui-resizable-resizing"); this._propagate("stop", event); if (this._helper) this.helper.remove(); return false; }, _updateVirtualBoundaries: function(forceAspectRatio) { var o = this.options, pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b; b = { minWidth: isNumber(o.minWidth) ? o.minWidth : 0, maxWidth: isNumber(o.maxWidth) ? o.maxWidth : Infinity, minHeight: isNumber(o.minHeight) ? o.minHeight : 0, maxHeight: isNumber(o.maxHeight) ? o.maxHeight : Infinity }; if(this._aspectRatio || forceAspectRatio) { // We want to create an enclosing box whose aspect ration is the requested one // First, compute the "projected" size for each dimension based on the aspect ratio and other dimension pMinWidth = b.minHeight * this.aspectRatio; pMinHeight = b.minWidth / this.aspectRatio; pMaxWidth = b.maxHeight * this.aspectRatio; pMaxHeight = b.maxWidth / this.aspectRatio; if(pMinWidth > b.minWidth) b.minWidth = pMinWidth; if(pMinHeight > b.minHeight) b.minHeight = pMinHeight; if(pMaxWidth < b.maxWidth) b.maxWidth = pMaxWidth; if(pMaxHeight < b.maxHeight) b.maxHeight = pMaxHeight; } this._vBoundaries = b; }, _updateCache: function(data) { var o = this.options; this.offset = this.helper.offset(); if (isNumber(data.left)) this.position.left = data.left; if (isNumber(data.top)) this.position.top = data.top; if (isNumber(data.height)) this.size.height = data.height; if (isNumber(data.width)) this.size.width = data.width; }, _updateRatio: function(data, event) { var o = this.options, cpos = this.position, csize = this.size, a = this.axis; if (isNumber(data.height)) data.width = (data.height * this.aspectRatio); else if (isNumber(data.width)) data.height = (data.width / this.aspectRatio); if (a == 'sw') { data.left = cpos.left + (csize.width - data.width); data.top = null; } if (a == 'nw') { data.top = cpos.top + (csize.height - data.height); data.left = cpos.left + (csize.width - data.width); } return data; }, _respectSize: function(data, event) { var el = this.helper, o = this._vBoundaries, pRatio = this._aspectRatio || event.shiftKey, a = this.axis, ismaxw = isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width), ismaxh = isNumber(data.height) && o.maxHeight && (o.maxHeight < data.height), isminw = isNumber(data.width) && o.minWidth && (o.minWidth > data.width), isminh = isNumber(data.height) && o.minHeight && (o.minHeight > data.height); if (isminw) data.width = o.minWidth; if (isminh) data.height = o.minHeight; if (ismaxw) data.width = o.maxWidth; if (ismaxh) data.height = o.maxHeight; var dw = this.originalPosition.left + this.originalSize.width, dh = this.position.top + this.size.height; var cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a); if (isminw && cw) data.left = dw - o.minWidth; if (ismaxw && cw) data.left = dw - o.maxWidth; if (isminh && ch) data.top = dh - o.minHeight; if (ismaxh && ch) data.top = dh - o.maxHeight; // fixing jump error on top/left - bug #2330 var isNotwh = !data.width && !data.height; if (isNotwh && !data.left && data.top) data.top = null; else if (isNotwh && !data.top && data.left) data.left = null; return data; }, _proportionallyResize: function() { var o = this.options; if (!this._proportionallyResizeElements.length) return; var element = this.helper || this.element; for (var i=0; i < this._proportionallyResizeElements.length; i++) { var prel = this._proportionallyResizeElements[i]; if (!this.borderDif) { var b = [prel.css('borderTopWidth'), prel.css('borderRightWidth'), prel.css('borderBottomWidth'), prel.css('borderLeftWidth')], p = [prel.css('paddingTop'), prel.css('paddingRight'), prel.css('paddingBottom'), prel.css('paddingLeft')]; this.borderDif = $.map(b, function(v, i) { var border = parseInt(v,10)||0, padding = parseInt(p[i],10)||0; return border + padding; }); } prel.css({ height: (element.height() - this.borderDif[0] - this.borderDif[2]) || 0, width: (element.width() - this.borderDif[1] - this.borderDif[3]) || 0 }); }; }, _renderProxy: function() { var el = this.element, o = this.options; this.elementOffset = el.offset(); if(this._helper) { this.helper = this.helper || $('
                                                  '); // fix ie6 offset TODO: This seems broken var ie6offset = ($.ui.ie6 ? 1 : 0), pxyoffset = ( $.ui.ie6 ? 2 : -1 ); this.helper.addClass(this._helper).css({ width: this.element.outerWidth() + pxyoffset, height: this.element.outerHeight() + pxyoffset, position: 'absolute', left: this.elementOffset.left - ie6offset +'px', top: this.elementOffset.top - ie6offset +'px', zIndex: ++o.zIndex //TODO: Don't modify option }); this.helper .appendTo("body") .disableSelection(); } else { this.helper = this.element; } }, _change: { e: function(event, dx, dy) { return { width: this.originalSize.width + dx }; }, w: function(event, dx, dy) { var o = this.options, cs = this.originalSize, sp = this.originalPosition; return { left: sp.left + dx, width: cs.width - dx }; }, n: function(event, dx, dy) { var o = this.options, cs = this.originalSize, sp = this.originalPosition; return { top: sp.top + dy, height: cs.height - dy }; }, s: function(event, dx, dy) { return { height: this.originalSize.height + dy }; }, se: function(event, dx, dy) { return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [event, dx, dy])); }, sw: function(event, dx, dy) { return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [event, dx, dy])); }, ne: function(event, dx, dy) { return $.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [event, dx, dy])); }, nw: function(event, dx, dy) { return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [event, dx, dy])); } }, _propagate: function(n, event) { $.ui.plugin.call(this, n, [event, this.ui()]); (n != "resize" && this._trigger(n, event, this.ui())); }, plugins: {}, ui: function() { return { originalElement: this.originalElement, element: this.element, helper: this.helper, position: this.position, size: this.size, originalSize: this.originalSize, originalPosition: this.originalPosition }; } }); /* * Resizable Extensions */ $.ui.plugin.add("resizable", "alsoResize", { start: function (event, ui) { var that = $(this).data("resizable"), o = that.options; var _store = function (exp) { $(exp).each(function() { var el = $(this); el.data("resizable-alsoresize", { width: parseInt(el.width(), 10), height: parseInt(el.height(), 10), left: parseInt(el.css('left'), 10), top: parseInt(el.css('top'), 10) }); }); }; if (typeof(o.alsoResize) == 'object' && !o.alsoResize.parentNode) { if (o.alsoResize.length) { o.alsoResize = o.alsoResize[0]; _store(o.alsoResize); } else { $.each(o.alsoResize, function (exp) { _store(exp); }); } }else{ _store(o.alsoResize); } }, resize: function (event, ui) { var that = $(this).data("resizable"), o = that.options, os = that.originalSize, op = that.originalPosition; var delta = { height: (that.size.height - os.height) || 0, width: (that.size.width - os.width) || 0, top: (that.position.top - op.top) || 0, left: (that.position.left - op.left) || 0 }, _alsoResize = function (exp, c) { $(exp).each(function() { var el = $(this), start = $(this).data("resizable-alsoresize"), style = {}, css = c && c.length ? c : el.parents(ui.originalElement[0]).length ? ['width', 'height'] : ['width', 'height', 'top', 'left']; $.each(css, function (i, prop) { var sum = (start[prop]||0) + (delta[prop]||0); if (sum && sum >= 0) style[prop] = sum || null; }); el.css(style); }); }; if (typeof(o.alsoResize) == 'object' && !o.alsoResize.nodeType) { $.each(o.alsoResize, function (exp, c) { _alsoResize(exp, c); }); }else{ _alsoResize(o.alsoResize); } }, stop: function (event, ui) { $(this).removeData("resizable-alsoresize"); } }); $.ui.plugin.add("resizable", "animate", { stop: function(event, ui) { var that = $(this).data("resizable"), o = that.options; var pr = that._proportionallyResizeElements, ista = pr.length && (/textarea/i).test(pr[0].nodeName), soffseth = ista && $.ui.hasScroll(pr[0], 'left') /* TODO - jump height */ ? 0 : that.sizeDiff.height, soffsetw = ista ? 0 : that.sizeDiff.width; var style = { width: (that.size.width - soffsetw), height: (that.size.height - soffseth) }, left = (parseInt(that.element.css('left'), 10) + (that.position.left - that.originalPosition.left)) || null, top = (parseInt(that.element.css('top'), 10) + (that.position.top - that.originalPosition.top)) || null; that.element.animate( $.extend(style, top && left ? { top: top, left: left } : {}), { duration: o.animateDuration, easing: o.animateEasing, step: function() { var data = { width: parseInt(that.element.css('width'), 10), height: parseInt(that.element.css('height'), 10), top: parseInt(that.element.css('top'), 10), left: parseInt(that.element.css('left'), 10) }; if (pr && pr.length) $(pr[0]).css({ width: data.width, height: data.height }); // propagating resize, and updating values for each animation step that._updateCache(data); that._propagate("resize", event); } } ); } }); $.ui.plugin.add("resizable", "containment", { start: function(event, ui) { var that = $(this).data("resizable"), o = that.options, el = that.element; var oc = o.containment, ce = (oc instanceof $) ? oc.get(0) : (/parent/.test(oc)) ? el.parent().get(0) : oc; if (!ce) return; that.containerElement = $(ce); if (/document/.test(oc) || oc == document) { that.containerOffset = { left: 0, top: 0 }; that.containerPosition = { left: 0, top: 0 }; that.parentData = { element: $(document), left: 0, top: 0, width: $(document).width(), height: $(document).height() || document.body.parentNode.scrollHeight }; } // i'm a node, so compute top, left, right, bottom else { var element = $(ce), p = []; $([ "Top", "Right", "Left", "Bottom" ]).each(function(i, name) { p[i] = num(element.css("padding" + name)); }); that.containerOffset = element.offset(); that.containerPosition = element.position(); that.containerSize = { height: (element.innerHeight() - p[3]), width: (element.innerWidth() - p[1]) }; var co = that.containerOffset, ch = that.containerSize.height, cw = that.containerSize.width, width = ($.ui.hasScroll(ce, "left") ? ce.scrollWidth : cw ), height = ($.ui.hasScroll(ce) ? ce.scrollHeight : ch); that.parentData = { element: ce, left: co.left, top: co.top, width: width, height: height }; } }, resize: function(event, ui) { var that = $(this).data("resizable"), o = that.options, ps = that.containerSize, co = that.containerOffset, cs = that.size, cp = that.position, pRatio = that._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = that.containerElement; if (ce[0] != document && (/static/).test(ce.css('position'))) cop = co; if (cp.left < (that._helper ? co.left : 0)) { that.size.width = that.size.width + (that._helper ? (that.position.left - co.left) : (that.position.left - cop.left)); if (pRatio) that.size.height = that.size.width / that.aspectRatio; that.position.left = o.helper ? co.left : 0; } if (cp.top < (that._helper ? co.top : 0)) { that.size.height = that.size.height + (that._helper ? (that.position.top - co.top) : that.position.top); if (pRatio) that.size.width = that.size.height * that.aspectRatio; that.position.top = that._helper ? co.top : 0; } that.offset.left = that.parentData.left+that.position.left; that.offset.top = that.parentData.top+that.position.top; var woset = Math.abs( (that._helper ? that.offset.left - cop.left : (that.offset.left - cop.left)) + that.sizeDiff.width ), hoset = Math.abs( (that._helper ? that.offset.top - cop.top : (that.offset.top - co.top)) + that.sizeDiff.height ); var isParent = that.containerElement.get(0) == that.element.parent().get(0), isOffsetRelative = /relative|absolute/.test(that.containerElement.css('position')); if(isParent && isOffsetRelative) woset -= that.parentData.left; if (woset + that.size.width >= that.parentData.width) { that.size.width = that.parentData.width - woset; if (pRatio) that.size.height = that.size.width / that.aspectRatio; } if (hoset + that.size.height >= that.parentData.height) { that.size.height = that.parentData.height - hoset; if (pRatio) that.size.width = that.size.height * that.aspectRatio; } }, stop: function(event, ui){ var that = $(this).data("resizable"), o = that.options, cp = that.position, co = that.containerOffset, cop = that.containerPosition, ce = that.containerElement; var helper = $(that.helper), ho = helper.offset(), w = helper.outerWidth() - that.sizeDiff.width, h = helper.outerHeight() - that.sizeDiff.height; if (that._helper && !o.animate && (/relative/).test(ce.css('position'))) $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h }); if (that._helper && !o.animate && (/static/).test(ce.css('position'))) $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h }); } }); $.ui.plugin.add("resizable", "ghost", { start: function(event, ui) { var that = $(this).data("resizable"), o = that.options, cs = that.size; that.ghost = that.originalElement.clone(); that.ghost .css({ opacity: .25, display: 'block', position: 'relative', height: cs.height, width: cs.width, margin: 0, left: 0, top: 0 }) .addClass('ui-resizable-ghost') .addClass(typeof o.ghost == 'string' ? o.ghost : ''); that.ghost.appendTo(that.helper); }, resize: function(event, ui){ var that = $(this).data("resizable"), o = that.options; if (that.ghost) that.ghost.css({ position: 'relative', height: that.size.height, width: that.size.width }); }, stop: function(event, ui){ var that = $(this).data("resizable"), o = that.options; if (that.ghost && that.helper) that.helper.get(0).removeChild(that.ghost.get(0)); } }); $.ui.plugin.add("resizable", "grid", { resize: function(event, ui) { var that = $(this).data("resizable"), o = that.options, cs = that.size, os = that.originalSize, op = that.originalPosition, a = that.axis, ratio = o._aspectRatio || event.shiftKey; o.grid = typeof o.grid == "number" ? [o.grid, o.grid] : o.grid; var ox = Math.round((cs.width - os.width) / (o.grid[0]||1)) * (o.grid[0]||1), oy = Math.round((cs.height - os.height) / (o.grid[1]||1)) * (o.grid[1]||1); if (/^(se|s|e)$/.test(a)) { that.size.width = os.width + ox; that.size.height = os.height + oy; } else if (/^(ne)$/.test(a)) { that.size.width = os.width + ox; that.size.height = os.height + oy; that.position.top = op.top - oy; } else if (/^(sw)$/.test(a)) { that.size.width = os.width + ox; that.size.height = os.height + oy; that.position.left = op.left - ox; } else { that.size.width = os.width + ox; that.size.height = os.height + oy; that.position.top = op.top - oy; that.position.left = op.left - ox; } } }); var num = function(v) { return parseInt(v, 10) || 0; }; var isNumber = function(value) { return !isNaN(parseInt(value, 10)); }; })(jQuery); (function( $, undefined ) { $.widget("ui.selectable", $.ui.mouse, { version: "1.9.2", options: { appendTo: 'body', autoRefresh: true, distance: 0, filter: '*', tolerance: 'touch' }, _create: function() { var that = this; this.element.addClass("ui-selectable"); this.dragged = false; // cache selectee children based on filter var selectees; this.refresh = function() { selectees = $(that.options.filter, that.element[0]); selectees.addClass("ui-selectee"); selectees.each(function() { var $this = $(this); var pos = $this.offset(); $.data(this, "selectable-item", { element: this, $element: $this, left: pos.left, top: pos.top, right: pos.left + $this.outerWidth(), bottom: pos.top + $this.outerHeight(), startselected: false, selected: $this.hasClass('ui-selected'), selecting: $this.hasClass('ui-selecting'), unselecting: $this.hasClass('ui-unselecting') }); }); }; this.refresh(); this.selectees = selectees.addClass("ui-selectee"); this._mouseInit(); this.helper = $("
                                                  "); }, _destroy: function() { this.selectees .removeClass("ui-selectee") .removeData("selectable-item"); this.element .removeClass("ui-selectable ui-selectable-disabled"); this._mouseDestroy(); }, _mouseStart: function(event) { var that = this; this.opos = [event.pageX, event.pageY]; if (this.options.disabled) return; var options = this.options; this.selectees = $(options.filter, this.element[0]); this._trigger("start", event); $(options.appendTo).append(this.helper); // position helper (lasso) this.helper.css({ "left": event.clientX, "top": event.clientY, "width": 0, "height": 0 }); if (options.autoRefresh) { this.refresh(); } this.selectees.filter('.ui-selected').each(function() { var selectee = $.data(this, "selectable-item"); selectee.startselected = true; if (!event.metaKey && !event.ctrlKey) { selectee.$element.removeClass('ui-selected'); selectee.selected = false; selectee.$element.addClass('ui-unselecting'); selectee.unselecting = true; // selectable UNSELECTING callback that._trigger("unselecting", event, { unselecting: selectee.element }); } }); $(event.target).parents().andSelf().each(function() { var selectee = $.data(this, "selectable-item"); if (selectee) { var doSelect = (!event.metaKey && !event.ctrlKey) || !selectee.$element.hasClass('ui-selected'); selectee.$element .removeClass(doSelect ? "ui-unselecting" : "ui-selected") .addClass(doSelect ? "ui-selecting" : "ui-unselecting"); selectee.unselecting = !doSelect; selectee.selecting = doSelect; selectee.selected = doSelect; // selectable (UN)SELECTING callback if (doSelect) { that._trigger("selecting", event, { selecting: selectee.element }); } else { that._trigger("unselecting", event, { unselecting: selectee.element }); } return false; } }); }, _mouseDrag: function(event) { var that = this; this.dragged = true; if (this.options.disabled) return; var options = this.options; var x1 = this.opos[0], y1 = this.opos[1], x2 = event.pageX, y2 = event.pageY; if (x1 > x2) { var tmp = x2; x2 = x1; x1 = tmp; } if (y1 > y2) { var tmp = y2; y2 = y1; y1 = tmp; } this.helper.css({left: x1, top: y1, width: x2-x1, height: y2-y1}); this.selectees.each(function() { var selectee = $.data(this, "selectable-item"); //prevent helper from being selected if appendTo: selectable if (!selectee || selectee.element == that.element[0]) return; var hit = false; if (options.tolerance == 'touch') { hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) ); } else if (options.tolerance == 'fit') { hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2); } if (hit) { // SELECT if (selectee.selected) { selectee.$element.removeClass('ui-selected'); selectee.selected = false; } if (selectee.unselecting) { selectee.$element.removeClass('ui-unselecting'); selectee.unselecting = false; } if (!selectee.selecting) { selectee.$element.addClass('ui-selecting'); selectee.selecting = true; // selectable SELECTING callback that._trigger("selecting", event, { selecting: selectee.element }); } } else { // UNSELECT if (selectee.selecting) { if ((event.metaKey || event.ctrlKey) && selectee.startselected) { selectee.$element.removeClass('ui-selecting'); selectee.selecting = false; selectee.$element.addClass('ui-selected'); selectee.selected = true; } else { selectee.$element.removeClass('ui-selecting'); selectee.selecting = false; if (selectee.startselected) { selectee.$element.addClass('ui-unselecting'); selectee.unselecting = true; } // selectable UNSELECTING callback that._trigger("unselecting", event, { unselecting: selectee.element }); } } if (selectee.selected) { if (!event.metaKey && !event.ctrlKey && !selectee.startselected) { selectee.$element.removeClass('ui-selected'); selectee.selected = false; selectee.$element.addClass('ui-unselecting'); selectee.unselecting = true; // selectable UNSELECTING callback that._trigger("unselecting", event, { unselecting: selectee.element }); } } } }); return false; }, _mouseStop: function(event) { var that = this; this.dragged = false; var options = this.options; $('.ui-unselecting', this.element[0]).each(function() { var selectee = $.data(this, "selectable-item"); selectee.$element.removeClass('ui-unselecting'); selectee.unselecting = false; selectee.startselected = false; that._trigger("unselected", event, { unselected: selectee.element }); }); $('.ui-selecting', this.element[0]).each(function() { var selectee = $.data(this, "selectable-item"); selectee.$element.removeClass('ui-selecting').addClass('ui-selected'); selectee.selecting = false; selectee.selected = true; selectee.startselected = true; that._trigger("selected", event, { selected: selectee.element }); }); this._trigger("stop", event); this.helper.remove(); return false; } }); })(jQuery); (function( $, undefined ) { // number of pages in a slider // (how many times can you page up/down to go through the whole range) var numPages = 5; $.widget( "ui.slider", $.ui.mouse, { version: "1.9.2", widgetEventPrefix: "slide", options: { animate: false, distance: 0, max: 100, min: 0, orientation: "horizontal", range: false, step: 1, value: 0, values: null }, _create: function() { var i, handleCount, o = this.options, existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ), handle = "", handles = []; this._keySliding = false; this._mouseSliding = false; this._animateOff = true; this._handleIndex = null; this._detectOrientation(); this._mouseInit(); this.element .addClass( "ui-slider" + " ui-slider-" + this.orientation + " ui-widget" + " ui-widget-content" + " ui-corner-all" + ( o.disabled ? " ui-slider-disabled ui-disabled" : "" ) ); this.range = $([]); if ( o.range ) { if ( o.range === true ) { if ( !o.values ) { o.values = [ this._valueMin(), this._valueMin() ]; } if ( o.values.length && o.values.length !== 2 ) { o.values = [ o.values[0], o.values[0] ]; } } this.range = $( "
                                                  " ) .appendTo( this.element ) .addClass( "ui-slider-range" + // note: this isn't the most fittingly semantic framework class for this element, // but worked best visually with a variety of themes " ui-widget-header" + ( ( o.range === "min" || o.range === "max" ) ? " ui-slider-range-" + o.range : "" ) ); } handleCount = ( o.values && o.values.length ) || 1; for ( i = existingHandles.length; i < handleCount; i++ ) { handles.push( handle ); } this.handles = existingHandles.add( $( handles.join( "" ) ).appendTo( this.element ) ); this.handle = this.handles.eq( 0 ); this.handles.add( this.range ).filter( "a" ) .click(function( event ) { event.preventDefault(); }) .mouseenter(function() { if ( !o.disabled ) { $( this ).addClass( "ui-state-hover" ); } }) .mouseleave(function() { $( this ).removeClass( "ui-state-hover" ); }) .focus(function() { if ( !o.disabled ) { $( ".ui-slider .ui-state-focus" ).removeClass( "ui-state-focus" ); $( this ).addClass( "ui-state-focus" ); } else { $( this ).blur(); } }) .blur(function() { $( this ).removeClass( "ui-state-focus" ); }); this.handles.each(function( i ) { $( this ).data( "ui-slider-handle-index", i ); }); this._on( this.handles, { keydown: function( event ) { var allowed, curVal, newVal, step, index = $( event.target ).data( "ui-slider-handle-index" ); switch ( event.keyCode ) { case $.ui.keyCode.HOME: case $.ui.keyCode.END: case $.ui.keyCode.PAGE_UP: case $.ui.keyCode.PAGE_DOWN: case $.ui.keyCode.UP: case $.ui.keyCode.RIGHT: case $.ui.keyCode.DOWN: case $.ui.keyCode.LEFT: event.preventDefault(); if ( !this._keySliding ) { this._keySliding = true; $( event.target ).addClass( "ui-state-active" ); allowed = this._start( event, index ); if ( allowed === false ) { return; } } break; } step = this.options.step; if ( this.options.values && this.options.values.length ) { curVal = newVal = this.values( index ); } else { curVal = newVal = this.value(); } switch ( event.keyCode ) { case $.ui.keyCode.HOME: newVal = this._valueMin(); break; case $.ui.keyCode.END: newVal = this._valueMax(); break; case $.ui.keyCode.PAGE_UP: newVal = this._trimAlignValue( curVal + ( (this._valueMax() - this._valueMin()) / numPages ) ); break; case $.ui.keyCode.PAGE_DOWN: newVal = this._trimAlignValue( curVal - ( (this._valueMax() - this._valueMin()) / numPages ) ); break; case $.ui.keyCode.UP: case $.ui.keyCode.RIGHT: if ( curVal === this._valueMax() ) { return; } newVal = this._trimAlignValue( curVal + step ); break; case $.ui.keyCode.DOWN: case $.ui.keyCode.LEFT: if ( curVal === this._valueMin() ) { return; } newVal = this._trimAlignValue( curVal - step ); break; } this._slide( event, index, newVal ); }, keyup: function( event ) { var index = $( event.target ).data( "ui-slider-handle-index" ); if ( this._keySliding ) { this._keySliding = false; this._stop( event, index ); this._change( event, index ); $( event.target ).removeClass( "ui-state-active" ); } } }); this._refreshValue(); this._animateOff = false; }, _destroy: function() { this.handles.remove(); this.range.remove(); this.element .removeClass( "ui-slider" + " ui-slider-horizontal" + " ui-slider-vertical" + " ui-slider-disabled" + " ui-widget" + " ui-widget-content" + " ui-corner-all" ); this._mouseDestroy(); }, _mouseCapture: function( event ) { var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle, that = this, o = this.options; if ( o.disabled ) { return false; } this.elementSize = { width: this.element.outerWidth(), height: this.element.outerHeight() }; this.elementOffset = this.element.offset(); position = { x: event.pageX, y: event.pageY }; normValue = this._normValueFromMouse( position ); distance = this._valueMax() - this._valueMin() + 1; this.handles.each(function( i ) { var thisDistance = Math.abs( normValue - that.values(i) ); if ( distance > thisDistance ) { distance = thisDistance; closestHandle = $( this ); index = i; } }); // workaround for bug #3736 (if both handles of a range are at 0, // the first is always used as the one with least distance, // and moving it is obviously prevented by preventing negative ranges) if( o.range === true && this.values(1) === o.min ) { index += 1; closestHandle = $( this.handles[index] ); } allowed = this._start( event, index ); if ( allowed === false ) { return false; } this._mouseSliding = true; this._handleIndex = index; closestHandle .addClass( "ui-state-active" ) .focus(); offset = closestHandle.offset(); mouseOverHandle = !$( event.target ).parents().andSelf().is( ".ui-slider-handle" ); this._clickOffset = mouseOverHandle ? { left: 0, top: 0 } : { left: event.pageX - offset.left - ( closestHandle.width() / 2 ), top: event.pageY - offset.top - ( closestHandle.height() / 2 ) - ( parseInt( closestHandle.css("borderTopWidth"), 10 ) || 0 ) - ( parseInt( closestHandle.css("borderBottomWidth"), 10 ) || 0) + ( parseInt( closestHandle.css("marginTop"), 10 ) || 0) }; if ( !this.handles.hasClass( "ui-state-hover" ) ) { this._slide( event, index, normValue ); } this._animateOff = true; return true; }, _mouseStart: function() { return true; }, _mouseDrag: function( event ) { var position = { x: event.pageX, y: event.pageY }, normValue = this._normValueFromMouse( position ); this._slide( event, this._handleIndex, normValue ); return false; }, _mouseStop: function( event ) { this.handles.removeClass( "ui-state-active" ); this._mouseSliding = false; this._stop( event, this._handleIndex ); this._change( event, this._handleIndex ); this._handleIndex = null; this._clickOffset = null; this._animateOff = false; return false; }, _detectOrientation: function() { this.orientation = ( this.options.orientation === "vertical" ) ? "vertical" : "horizontal"; }, _normValueFromMouse: function( position ) { var pixelTotal, pixelMouse, percentMouse, valueTotal, valueMouse; if ( this.orientation === "horizontal" ) { pixelTotal = this.elementSize.width; pixelMouse = position.x - this.elementOffset.left - ( this._clickOffset ? this._clickOffset.left : 0 ); } else { pixelTotal = this.elementSize.height; pixelMouse = position.y - this.elementOffset.top - ( this._clickOffset ? this._clickOffset.top : 0 ); } percentMouse = ( pixelMouse / pixelTotal ); if ( percentMouse > 1 ) { percentMouse = 1; } if ( percentMouse < 0 ) { percentMouse = 0; } if ( this.orientation === "vertical" ) { percentMouse = 1 - percentMouse; } valueTotal = this._valueMax() - this._valueMin(); valueMouse = this._valueMin() + percentMouse * valueTotal; return this._trimAlignValue( valueMouse ); }, _start: function( event, index ) { var uiHash = { handle: this.handles[ index ], value: this.value() }; if ( this.options.values && this.options.values.length ) { uiHash.value = this.values( index ); uiHash.values = this.values(); } return this._trigger( "start", event, uiHash ); }, _slide: function( event, index, newVal ) { var otherVal, newValues, allowed; if ( this.options.values && this.options.values.length ) { otherVal = this.values( index ? 0 : 1 ); if ( ( this.options.values.length === 2 && this.options.range === true ) && ( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) ) ) { newVal = otherVal; } if ( newVal !== this.values( index ) ) { newValues = this.values(); newValues[ index ] = newVal; // A slide can be canceled by returning false from the slide callback allowed = this._trigger( "slide", event, { handle: this.handles[ index ], value: newVal, values: newValues } ); otherVal = this.values( index ? 0 : 1 ); if ( allowed !== false ) { this.values( index, newVal, true ); } } } else { if ( newVal !== this.value() ) { // A slide can be canceled by returning false from the slide callback allowed = this._trigger( "slide", event, { handle: this.handles[ index ], value: newVal } ); if ( allowed !== false ) { this.value( newVal ); } } } }, _stop: function( event, index ) { var uiHash = { handle: this.handles[ index ], value: this.value() }; if ( this.options.values && this.options.values.length ) { uiHash.value = this.values( index ); uiHash.values = this.values(); } this._trigger( "stop", event, uiHash ); }, _change: function( event, index ) { if ( !this._keySliding && !this._mouseSliding ) { var uiHash = { handle: this.handles[ index ], value: this.value() }; if ( this.options.values && this.options.values.length ) { uiHash.value = this.values( index ); uiHash.values = this.values(); } this._trigger( "change", event, uiHash ); } }, value: function( newValue ) { if ( arguments.length ) { this.options.value = this._trimAlignValue( newValue ); this._refreshValue(); this._change( null, 0 ); return; } return this._value(); }, values: function( index, newValue ) { var vals, newValues, i; if ( arguments.length > 1 ) { this.options.values[ index ] = this._trimAlignValue( newValue ); this._refreshValue(); this._change( null, index ); return; } if ( arguments.length ) { if ( $.isArray( arguments[ 0 ] ) ) { vals = this.options.values; newValues = arguments[ 0 ]; for ( i = 0; i < vals.length; i += 1 ) { vals[ i ] = this._trimAlignValue( newValues[ i ] ); this._change( null, i ); } this._refreshValue(); } else { if ( this.options.values && this.options.values.length ) { return this._values( index ); } else { return this.value(); } } } else { return this._values(); } }, _setOption: function( key, value ) { var i, valsLength = 0; if ( $.isArray( this.options.values ) ) { valsLength = this.options.values.length; } $.Widget.prototype._setOption.apply( this, arguments ); switch ( key ) { case "disabled": if ( value ) { this.handles.filter( ".ui-state-focus" ).blur(); this.handles.removeClass( "ui-state-hover" ); this.handles.prop( "disabled", true ); this.element.addClass( "ui-disabled" ); } else { this.handles.prop( "disabled", false ); this.element.removeClass( "ui-disabled" ); } break; case "orientation": this._detectOrientation(); this.element .removeClass( "ui-slider-horizontal ui-slider-vertical" ) .addClass( "ui-slider-" + this.orientation ); this._refreshValue(); break; case "value": this._animateOff = true; this._refreshValue(); this._change( null, 0 ); this._animateOff = false; break; case "values": this._animateOff = true; this._refreshValue(); for ( i = 0; i < valsLength; i += 1 ) { this._change( null, i ); } this._animateOff = false; break; case "min": case "max": this._animateOff = true; this._refreshValue(); this._animateOff = false; break; } }, //internal value getter // _value() returns value trimmed by min and max, aligned by step _value: function() { var val = this.options.value; val = this._trimAlignValue( val ); return val; }, //internal values getter // _values() returns array of values trimmed by min and max, aligned by step // _values( index ) returns single value trimmed by min and max, aligned by step _values: function( index ) { var val, vals, i; if ( arguments.length ) { val = this.options.values[ index ]; val = this._trimAlignValue( val ); return val; } else { // .slice() creates a copy of the array // this copy gets trimmed by min and max and then returned vals = this.options.values.slice(); for ( i = 0; i < vals.length; i+= 1) { vals[ i ] = this._trimAlignValue( vals[ i ] ); } return vals; } }, // returns the step-aligned value that val is closest to, between (inclusive) min and max _trimAlignValue: function( val ) { if ( val <= this._valueMin() ) { return this._valueMin(); } if ( val >= this._valueMax() ) { return this._valueMax(); } var step = ( this.options.step > 0 ) ? this.options.step : 1, valModStep = (val - this._valueMin()) % step, alignValue = val - valModStep; if ( Math.abs(valModStep) * 2 >= step ) { alignValue += ( valModStep > 0 ) ? step : ( -step ); } // Since JavaScript has problems with large floats, round // the final value to 5 digits after the decimal point (see #4124) return parseFloat( alignValue.toFixed(5) ); }, _valueMin: function() { return this.options.min; }, _valueMax: function() { return this.options.max; }, _refreshValue: function() { var lastValPercent, valPercent, value, valueMin, valueMax, oRange = this.options.range, o = this.options, that = this, animate = ( !this._animateOff ) ? o.animate : false, _set = {}; if ( this.options.values && this.options.values.length ) { this.handles.each(function( i ) { valPercent = ( that.values(i) - that._valueMin() ) / ( that._valueMax() - that._valueMin() ) * 100; _set[ that.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%"; $( this ).stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate ); if ( that.options.range === true ) { if ( that.orientation === "horizontal" ) { if ( i === 0 ) { that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { left: valPercent + "%" }, o.animate ); } if ( i === 1 ) { that.range[ animate ? "animate" : "css" ]( { width: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } ); } } else { if ( i === 0 ) { that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { bottom: ( valPercent ) + "%" }, o.animate ); } if ( i === 1 ) { that.range[ animate ? "animate" : "css" ]( { height: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } ); } } } lastValPercent = valPercent; }); } else { value = this.value(); valueMin = this._valueMin(); valueMax = this._valueMax(); valPercent = ( valueMax !== valueMin ) ? ( value - valueMin ) / ( valueMax - valueMin ) * 100 : 0; _set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%"; this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate ); if ( oRange === "min" && this.orientation === "horizontal" ) { this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: valPercent + "%" }, o.animate ); } if ( oRange === "max" && this.orientation === "horizontal" ) { this.range[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } ); } if ( oRange === "min" && this.orientation === "vertical" ) { this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: valPercent + "%" }, o.animate ); } if ( oRange === "max" && this.orientation === "vertical" ) { this.range[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } ); } } } }); }(jQuery)); (function( $, undefined ) { $.widget("ui.sortable", $.ui.mouse, { version: "1.9.2", widgetEventPrefix: "sort", ready: false, options: { appendTo: "parent", axis: false, connectWith: false, containment: false, cursor: 'auto', cursorAt: false, dropOnEmpty: true, forcePlaceholderSize: false, forceHelperSize: false, grid: false, handle: false, helper: "original", items: '> *', opacity: false, placeholder: false, revert: false, scroll: true, scrollSensitivity: 20, scrollSpeed: 20, scope: "default", tolerance: "intersect", zIndex: 1000 }, _create: function() { var o = this.options; this.containerCache = {}; this.element.addClass("ui-sortable"); //Get the items this.refresh(); //Let's determine if the items are being displayed horizontally this.floating = this.items.length ? o.axis === 'x' || (/left|right/).test(this.items[0].item.css('float')) || (/inline|table-cell/).test(this.items[0].item.css('display')) : false; //Let's determine the parent's offset this.offset = this.element.offset(); //Initialize mouse events for interaction this._mouseInit(); //We're ready to go this.ready = true }, _destroy: function() { this.element .removeClass("ui-sortable ui-sortable-disabled"); this._mouseDestroy(); for ( var i = this.items.length - 1; i >= 0; i-- ) this.items[i].item.removeData(this.widgetName + "-item"); return this; }, _setOption: function(key, value){ if ( key === "disabled" ) { this.options[ key ] = value; this.widget().toggleClass( "ui-sortable-disabled", !!value ); } else { // Don't call widget base _setOption for disable as it adds ui-state-disabled class $.Widget.prototype._setOption.apply(this, arguments); } }, _mouseCapture: function(event, overrideHandle) { var that = this; if (this.reverting) { return false; } if(this.options.disabled || this.options.type == 'static') return false; //We have to refresh the items data once first this._refreshItems(event); //Find out if the clicked node (or one of its parents) is a actual item in this.items var currentItem = null, nodes = $(event.target).parents().each(function() { if($.data(this, that.widgetName + '-item') == that) { currentItem = $(this); return false; } }); if($.data(event.target, that.widgetName + '-item') == that) currentItem = $(event.target); if(!currentItem) return false; if(this.options.handle && !overrideHandle) { var validHandle = false; $(this.options.handle, currentItem).find("*").andSelf().each(function() { if(this == event.target) validHandle = true; }); if(!validHandle) return false; } this.currentItem = currentItem; this._removeCurrentsFromItems(); return true; }, _mouseStart: function(event, overrideHandle, noActivation) { var o = this.options; this.currentContainer = this; //We only need to call refreshPositions, because the refreshItems call has been moved to mouseCapture this.refreshPositions(); //Create and append the visible helper this.helper = this._createHelper(event); //Cache the helper size this._cacheHelperProportions(); /* * - Position generation - * This block generates everything position related - it's the core of draggables. */ //Cache the margins of the original element this._cacheMargins(); //Get the next scrolling parent this.scrollParent = this.helper.scrollParent(); //The element's absolute position on the page minus margins this.offset = this.currentItem.offset(); this.offset = { top: this.offset.top - this.margins.top, left: this.offset.left - this.margins.left }; $.extend(this.offset, { click: { //Where the click happened, relative to the element left: event.pageX - this.offset.left, top: event.pageY - this.offset.top }, parent: this._getParentOffset(), relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper }); // Only after we got the offset, we can change the helper's position to absolute // TODO: Still need to figure out a way to make relative sorting possible this.helper.css("position", "absolute"); this.cssPosition = this.helper.css("position"); //Generate the original position this.originalPosition = this._generatePosition(event); this.originalPageX = event.pageX; this.originalPageY = event.pageY; //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt)); //Cache the former DOM position this.domPosition = { prev: this.currentItem.prev()[0], parent: this.currentItem.parent()[0] }; //If the helper is not the original, hide the original so it's not playing any role during the drag, won't cause anything bad this way if(this.helper[0] != this.currentItem[0]) { this.currentItem.hide(); } //Create the placeholder this._createPlaceholder(); //Set a containment if given in the options if(o.containment) this._setContainment(); if(o.cursor) { // cursor option if ($('body').css("cursor")) this._storedCursor = $('body').css("cursor"); $('body').css("cursor", o.cursor); } if(o.opacity) { // opacity option if (this.helper.css("opacity")) this._storedOpacity = this.helper.css("opacity"); this.helper.css("opacity", o.opacity); } if(o.zIndex) { // zIndex option if (this.helper.css("zIndex")) this._storedZIndex = this.helper.css("zIndex"); this.helper.css("zIndex", o.zIndex); } //Prepare scrolling if(this.scrollParent[0] != document && this.scrollParent[0].tagName != 'HTML') this.overflowOffset = this.scrollParent.offset(); //Call callbacks this._trigger("start", event, this._uiHash()); //Recache the helper size if(!this._preserveHelperProportions) this._cacheHelperProportions(); //Post 'activate' events to possible containers if(!noActivation) { for (var i = this.containers.length - 1; i >= 0; i--) { this.containers[i]._trigger("activate", event, this._uiHash(this)); } } //Prepare possible droppables if($.ui.ddmanager) $.ui.ddmanager.current = this; if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, event); this.dragging = true; this.helper.addClass("ui-sortable-helper"); this._mouseDrag(event); //Execute the drag once - this causes the helper not to be visible before getting its correct position return true; }, _mouseDrag: function(event) { //Compute the helpers position this.position = this._generatePosition(event); this.positionAbs = this._convertPositionTo("absolute"); if (!this.lastPositionAbs) { this.lastPositionAbs = this.positionAbs; } //Do scrolling if(this.options.scroll) { var o = this.options, scrolled = false; if(this.scrollParent[0] != document && this.scrollParent[0].tagName != 'HTML') { if((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop + o.scrollSpeed; else if(event.pageY - this.overflowOffset.top < o.scrollSensitivity) this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop - o.scrollSpeed; if((this.overflowOffset.left + this.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft + o.scrollSpeed; else if(event.pageX - this.overflowOffset.left < o.scrollSensitivity) this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft - o.scrollSpeed; } else { if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed); else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed); if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed); else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed); } if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, event); } //Regenerate the absolute position used for position checks this.positionAbs = this._convertPositionTo("absolute"); //Set the helper position if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px'; if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px'; //Rearrange for (var i = this.items.length - 1; i >= 0; i--) { //Cache variables and intersection, continue if no intersection var item = this.items[i], itemElement = item.item[0], intersection = this._intersectsWithPointer(item); if (!intersection) continue; // Only put the placeholder inside the current Container, skip all // items form other containers. This works because when moving // an item from one container to another the // currentContainer is switched before the placeholder is moved. // // Without this moving items in "sub-sortables" can cause the placeholder to jitter // beetween the outer and inner container. if (item.instance !== this.currentContainer) continue; if (itemElement != this.currentItem[0] //cannot intersect with itself && this.placeholder[intersection == 1 ? "next" : "prev"]()[0] != itemElement //no useless actions that have been done before && !$.contains(this.placeholder[0], itemElement) //no action if the item moved is the parent of the item checked && (this.options.type == 'semi-dynamic' ? !$.contains(this.element[0], itemElement) : true) //&& itemElement.parentNode == this.placeholder[0].parentNode // only rearrange items within the same container ) { this.direction = intersection == 1 ? "down" : "up"; if (this.options.tolerance == "pointer" || this._intersectsWithSides(item)) { this._rearrange(event, item); } else { break; } this._trigger("change", event, this._uiHash()); break; } } //Post events to containers this._contactContainers(event); //Interconnect with droppables if($.ui.ddmanager) $.ui.ddmanager.drag(this, event); //Call callbacks this._trigger('sort', event, this._uiHash()); this.lastPositionAbs = this.positionAbs; return false; }, _mouseStop: function(event, noPropagation) { if(!event) return; //If we are using droppables, inform the manager about the drop if ($.ui.ddmanager && !this.options.dropBehaviour) $.ui.ddmanager.drop(this, event); if(this.options.revert) { var that = this; var cur = this.placeholder.offset(); this.reverting = true; $(this.helper).animate({ left: cur.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft), top: cur.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop) }, parseInt(this.options.revert, 10) || 500, function() { that._clear(event); }); } else { this._clear(event, noPropagation); } return false; }, cancel: function() { if(this.dragging) { this._mouseUp({ target: null }); if(this.options.helper == "original") this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"); else this.currentItem.show(); //Post deactivating events to containers for (var i = this.containers.length - 1; i >= 0; i--){ this.containers[i]._trigger("deactivate", null, this._uiHash(this)); if(this.containers[i].containerCache.over) { this.containers[i]._trigger("out", null, this._uiHash(this)); this.containers[i].containerCache.over = 0; } } } if (this.placeholder) { //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node! if(this.placeholder[0].parentNode) this.placeholder[0].parentNode.removeChild(this.placeholder[0]); if(this.options.helper != "original" && this.helper && this.helper[0].parentNode) this.helper.remove(); $.extend(this, { helper: null, dragging: false, reverting: false, _noFinalSort: null }); if(this.domPosition.prev) { $(this.domPosition.prev).after(this.currentItem); } else { $(this.domPosition.parent).prepend(this.currentItem); } } return this; }, serialize: function(o) { var items = this._getItemsAsjQuery(o && o.connected); var str = []; o = o || {}; $(items).each(function() { var res = ($(o.item || this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/)); if(res) str.push((o.key || res[1]+'[]')+'='+(o.key && o.expression ? res[1] : res[2])); }); if(!str.length && o.key) { str.push(o.key + '='); } return str.join('&'); }, toArray: function(o) { var items = this._getItemsAsjQuery(o && o.connected); var ret = []; o = o || {}; items.each(function() { ret.push($(o.item || this).attr(o.attribute || 'id') || ''); }); return ret; }, /* Be careful with the following core functions */ _intersectsWith: function(item) { var x1 = this.positionAbs.left, x2 = x1 + this.helperProportions.width, y1 = this.positionAbs.top, y2 = y1 + this.helperProportions.height; var l = item.left, r = l + item.width, t = item.top, b = t + item.height; var dyClick = this.offset.click.top, dxClick = this.offset.click.left; var isOverElement = (y1 + dyClick) > t && (y1 + dyClick) < b && (x1 + dxClick) > l && (x1 + dxClick) < r; if( this.options.tolerance == "pointer" || this.options.forcePointerForContainers || (this.options.tolerance != "pointer" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height']) ) { return isOverElement; } else { return (l < x1 + (this.helperProportions.width / 2) // Right Half && x2 - (this.helperProportions.width / 2) < r // Left Half && t < y1 + (this.helperProportions.height / 2) // Bottom Half && y2 - (this.helperProportions.height / 2) < b ); // Top Half } }, _intersectsWithPointer: function(item) { var isOverElementHeight = (this.options.axis === 'x') || $.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height), isOverElementWidth = (this.options.axis === 'y') || $.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width), isOverElement = isOverElementHeight && isOverElementWidth, verticalDirection = this._getDragVerticalDirection(), horizontalDirection = this._getDragHorizontalDirection(); if (!isOverElement) return false; return this.floating ? ( ((horizontalDirection && horizontalDirection == "right") || verticalDirection == "down") ? 2 : 1 ) : ( verticalDirection && (verticalDirection == "down" ? 2 : 1) ); }, _intersectsWithSides: function(item) { var isOverBottomHalf = $.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height), isOverRightHalf = $.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width), verticalDirection = this._getDragVerticalDirection(), horizontalDirection = this._getDragHorizontalDirection(); if (this.floating && horizontalDirection) { return ((horizontalDirection == "right" && isOverRightHalf) || (horizontalDirection == "left" && !isOverRightHalf)); } else { return verticalDirection && ((verticalDirection == "down" && isOverBottomHalf) || (verticalDirection == "up" && !isOverBottomHalf)); } }, _getDragVerticalDirection: function() { var delta = this.positionAbs.top - this.lastPositionAbs.top; return delta != 0 && (delta > 0 ? "down" : "up"); }, _getDragHorizontalDirection: function() { var delta = this.positionAbs.left - this.lastPositionAbs.left; return delta != 0 && (delta > 0 ? "right" : "left"); }, refresh: function(event) { this._refreshItems(event); this.refreshPositions(); return this; }, _connectWith: function() { var options = this.options; return options.connectWith.constructor == String ? [options.connectWith] : options.connectWith; }, _getItemsAsjQuery: function(connected) { var items = []; var queries = []; var connectWith = this._connectWith(); if(connectWith && connected) { for (var i = connectWith.length - 1; i >= 0; i--){ var cur = $(connectWith[i]); for (var j = cur.length - 1; j >= 0; j--){ var inst = $.data(cur[j], this.widgetName); if(inst && inst != this && !inst.options.disabled) { queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element).not(".ui-sortable-helper").not('.ui-sortable-placeholder'), inst]); } }; }; } queries.push([$.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : $(this.options.items, this.element).not(".ui-sortable-helper").not('.ui-sortable-placeholder'), this]); for (var i = queries.length - 1; i >= 0; i--){ queries[i][0].each(function() { items.push(this); }); }; return $(items); }, _removeCurrentsFromItems: function() { var list = this.currentItem.find(":data(" + this.widgetName + "-item)"); this.items = $.grep(this.items, function (item) { for (var j=0; j < list.length; j++) { if(list[j] == item.item[0]) return false; }; return true; }); }, _refreshItems: function(event) { this.items = []; this.containers = [this]; var items = this.items; var queries = [[$.isFunction(this.options.items) ? this.options.items.call(this.element[0], event, { item: this.currentItem }) : $(this.options.items, this.element), this]]; var connectWith = this._connectWith(); if(connectWith && this.ready) { //Shouldn't be run the first time through due to massive slow-down for (var i = connectWith.length - 1; i >= 0; i--){ var cur = $(connectWith[i]); for (var j = cur.length - 1; j >= 0; j--){ var inst = $.data(cur[j], this.widgetName); if(inst && inst != this && !inst.options.disabled) { queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element[0], event, { item: this.currentItem }) : $(inst.options.items, inst.element), inst]); this.containers.push(inst); } }; }; } for (var i = queries.length - 1; i >= 0; i--) { var targetData = queries[i][1]; var _queries = queries[i][0]; for (var j=0, queriesLength = _queries.length; j < queriesLength; j++) { var item = $(_queries[j]); item.data(this.widgetName + '-item', targetData); // Data for target checking (mouse manager) items.push({ item: item, instance: targetData, width: 0, height: 0, left: 0, top: 0 }); }; }; }, refreshPositions: function(fast) { //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change if(this.offsetParent && this.helper) { this.offset.parent = this._getParentOffset(); } for (var i = this.items.length - 1; i >= 0; i--){ var item = this.items[i]; //We ignore calculating positions of all connected containers when we're not over them if(item.instance != this.currentContainer && this.currentContainer && item.item[0] != this.currentItem[0]) continue; var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item; if (!fast) { item.width = t.outerWidth(); item.height = t.outerHeight(); } var p = t.offset(); item.left = p.left; item.top = p.top; }; if(this.options.custom && this.options.custom.refreshContainers) { this.options.custom.refreshContainers.call(this); } else { for (var i = this.containers.length - 1; i >= 0; i--){ var p = this.containers[i].element.offset(); this.containers[i].containerCache.left = p.left; this.containers[i].containerCache.top = p.top; this.containers[i].containerCache.width = this.containers[i].element.outerWidth(); this.containers[i].containerCache.height = this.containers[i].element.outerHeight(); }; } return this; }, _createPlaceholder: function(that) { that = that || this; var o = that.options; if(!o.placeholder || o.placeholder.constructor == String) { var className = o.placeholder; o.placeholder = { element: function() { var el = $(document.createElement(that.currentItem[0].nodeName)) .addClass(className || that.currentItem[0].className+" ui-sortable-placeholder") .removeClass("ui-sortable-helper")[0]; if(!className) el.style.visibility = "hidden"; return el; }, update: function(container, p) { // 1. If a className is set as 'placeholder option, we don't force sizes - the class is responsible for that // 2. The option 'forcePlaceholderSize can be enabled to force it even if a class name is specified if(className && !o.forcePlaceholderSize) return; //If the element doesn't have a actual height by itself (without styles coming from a stylesheet), it receives the inline height from the dragged item if(!p.height()) { p.height(that.currentItem.innerHeight() - parseInt(that.currentItem.css('paddingTop')||0, 10) - parseInt(that.currentItem.css('paddingBottom')||0, 10)); }; if(!p.width()) { p.width(that.currentItem.innerWidth() - parseInt(that.currentItem.css('paddingLeft')||0, 10) - parseInt(that.currentItem.css('paddingRight')||0, 10)); }; } }; } //Create the placeholder that.placeholder = $(o.placeholder.element.call(that.element, that.currentItem)); //Append it after the actual current item that.currentItem.after(that.placeholder); //Update the size of the placeholder (TODO: Logic to fuzzy, see line 316/317) o.placeholder.update(that, that.placeholder); }, _contactContainers: function(event) { // get innermost container that intersects with item var innermostContainer = null, innermostIndex = null; for (var i = this.containers.length - 1; i >= 0; i--){ // never consider a container that's located within the item itself if($.contains(this.currentItem[0], this.containers[i].element[0])) continue; if(this._intersectsWith(this.containers[i].containerCache)) { // if we've already found a container and it's more "inner" than this, then continue if(innermostContainer && $.contains(this.containers[i].element[0], innermostContainer.element[0])) continue; innermostContainer = this.containers[i]; innermostIndex = i; } else { // container doesn't intersect. trigger "out" event if necessary if(this.containers[i].containerCache.over) { this.containers[i]._trigger("out", event, this._uiHash(this)); this.containers[i].containerCache.over = 0; } } } // if no intersecting containers found, return if(!innermostContainer) return; // move the item into the container if it's not there already if(this.containers.length === 1) { this.containers[innermostIndex]._trigger("over", event, this._uiHash(this)); this.containers[innermostIndex].containerCache.over = 1; } else { //When entering a new container, we will find the item with the least distance and append our item near it var dist = 10000; var itemWithLeastDistance = null; var posProperty = this.containers[innermostIndex].floating ? 'left' : 'top'; var sizeProperty = this.containers[innermostIndex].floating ? 'width' : 'height'; var base = this.positionAbs[posProperty] + this.offset.click[posProperty]; for (var j = this.items.length - 1; j >= 0; j--) { if(!$.contains(this.containers[innermostIndex].element[0], this.items[j].item[0])) continue; if(this.items[j].item[0] == this.currentItem[0]) continue; var cur = this.items[j].item.offset()[posProperty]; var nearBottom = false; if(Math.abs(cur - base) > Math.abs(cur + this.items[j][sizeProperty] - base)){ nearBottom = true; cur += this.items[j][sizeProperty]; } if(Math.abs(cur - base) < dist) { dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j]; this.direction = nearBottom ? "up": "down"; } } if(!itemWithLeastDistance && !this.options.dropOnEmpty) //Check if dropOnEmpty is enabled return; this.currentContainer = this.containers[innermostIndex]; itemWithLeastDistance ? this._rearrange(event, itemWithLeastDistance, null, true) : this._rearrange(event, null, this.containers[innermostIndex].element, true); this._trigger("change", event, this._uiHash()); this.containers[innermostIndex]._trigger("change", event, this._uiHash(this)); //Update the placeholder this.options.placeholder.update(this.currentContainer, this.placeholder); this.containers[innermostIndex]._trigger("over", event, this._uiHash(this)); this.containers[innermostIndex].containerCache.over = 1; } }, _createHelper: function(event) { var o = this.options; var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event, this.currentItem])) : (o.helper == 'clone' ? this.currentItem.clone() : this.currentItem); if(!helper.parents('body').length) //Add the helper to the DOM if that didn't happen already $(o.appendTo != 'parent' ? o.appendTo : this.currentItem[0].parentNode)[0].appendChild(helper[0]); if(helper[0] == this.currentItem[0]) this._storedCSS = { width: this.currentItem[0].style.width, height: this.currentItem[0].style.height, position: this.currentItem.css("position"), top: this.currentItem.css("top"), left: this.currentItem.css("left") }; if(helper[0].style.width == '' || o.forceHelperSize) helper.width(this.currentItem.width()); if(helper[0].style.height == '' || o.forceHelperSize) helper.height(this.currentItem.height()); return helper; }, _adjustOffsetFromHelper: function(obj) { if (typeof obj == 'string') { obj = obj.split(' '); } if ($.isArray(obj)) { obj = {left: +obj[0], top: +obj[1] || 0}; } if ('left' in obj) { this.offset.click.left = obj.left + this.margins.left; } if ('right' in obj) { this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; } if ('top' in obj) { this.offset.click.top = obj.top + this.margins.top; } if ('bottom' in obj) { this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; } }, _getParentOffset: function() { //Get the offsetParent and cache its position this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); // This is a special case where we need to modify a offset calculated on start, since the following happened: // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag if(this.cssPosition == 'absolute' && this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) { po.left += this.scrollParent.scrollLeft(); po.top += this.scrollParent.scrollTop(); } if((this.offsetParent[0] == document.body) //This needs to be actually done for all browsers, since pageX/pageY includes this information || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == 'html' && $.ui.ie)) //Ugly IE fix po = { top: 0, left: 0 }; return { top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0), left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0) }; }, _getRelativeOffset: function() { if(this.cssPosition == "relative") { var p = this.currentItem.position(); return { top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(), left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft() }; } else { return { top: 0, left: 0 }; } }, _cacheMargins: function() { this.margins = { left: (parseInt(this.currentItem.css("marginLeft"),10) || 0), top: (parseInt(this.currentItem.css("marginTop"),10) || 0) }; }, _cacheHelperProportions: function() { this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() }; }, _setContainment: function() { var o = this.options; if(o.containment == 'parent') o.containment = this.helper[0].parentNode; if(o.containment == 'document' || o.containment == 'window') this.containment = [ 0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.parent.top, $(o.containment == 'document' ? document : window).width() - this.helperProportions.width - this.margins.left, ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top ]; if(!(/^(document|window|parent)$/).test(o.containment)) { var ce = $(o.containment)[0]; var co = $(o.containment).offset(); var over = ($(ce).css("overflow") != 'hidden'); this.containment = [ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0) - this.margins.left, co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) + (parseInt($(ce).css("paddingTop"),10) || 0) - this.margins.top, co.left+(over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left, co.top+(over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top ]; } }, _convertPositionTo: function(d, pos) { if(!pos) pos = this.position; var mod = d == "absolute" ? 1 : -1; var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); return { top: ( pos.top // The absolute mouse position + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border) - ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod) ), left: ( pos.left // The absolute mouse position + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border) - ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod) ) }; }, _generatePosition: function(event) { var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); // This is another very weird special case that only happens for relative elements: // 1. If the css position is relative // 2. and the scroll parent is the document or similar to the offset parent // we have to refresh the relative offset during the scroll so there are no jumps if(this.cssPosition == 'relative' && !(this.scrollParent[0] != document && this.scrollParent[0] != this.offsetParent[0])) { this.offset.relative = this._getRelativeOffset(); } var pageX = event.pageX; var pageY = event.pageY; /* * - Position constraining - * Constrain the position to a mix of grid, containment. */ if(this.originalPosition) { //If we are not dragging yet, we won't check for options if(this.containment) { if(event.pageX - this.offset.click.left < this.containment[0]) pageX = this.containment[0] + this.offset.click.left; if(event.pageY - this.offset.click.top < this.containment[1]) pageY = this.containment[1] + this.offset.click.top; if(event.pageX - this.offset.click.left > this.containment[2]) pageX = this.containment[2] + this.offset.click.left; if(event.pageY - this.offset.click.top > this.containment[3]) pageY = this.containment[3] + this.offset.click.top; } if(o.grid) { var top = this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1]; pageY = this.containment ? (!(top - this.offset.click.top < this.containment[1] || top - this.offset.click.top > this.containment[3]) ? top : (!(top - this.offset.click.top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top; var left = this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0]; pageX = this.containment ? (!(left - this.offset.click.left < this.containment[0] || left - this.offset.click.left > this.containment[2]) ? left : (!(left - this.offset.click.left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left; } } return { top: ( pageY // The absolute mouse position - this.offset.click.top // Click offset (relative to the element) - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent - this.offset.parent.top // The offsetParent's offset without borders (offset + border) + ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) )) ), left: ( pageX // The absolute mouse position - this.offset.click.left // Click offset (relative to the element) - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent - this.offset.parent.left // The offsetParent's offset without borders (offset + border) + ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() )) ) }; }, _rearrange: function(event, i, a, hardRefresh) { a ? a[0].appendChild(this.placeholder[0]) : i.item[0].parentNode.insertBefore(this.placeholder[0], (this.direction == 'down' ? i.item[0] : i.item[0].nextSibling)); //Various things done here to improve the performance: // 1. we create a setTimeout, that calls refreshPositions // 2. on the instance, we have a counter variable, that get's higher after every append // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same // 4. this lets only the last addition to the timeout stack through this.counter = this.counter ? ++this.counter : 1; var counter = this.counter; this._delay(function() { if(counter == this.counter) this.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove }); }, _clear: function(event, noPropagation) { this.reverting = false; // We delay all events that have to be triggered to after the point where the placeholder has been removed and // everything else normalized again var delayedTriggers = []; // We first have to update the dom position of the actual currentItem // Note: don't do it if the current item is already removed (by a user), or it gets reappended (see #4088) if(!this._noFinalSort && this.currentItem.parent().length) this.placeholder.before(this.currentItem); this._noFinalSort = null; if(this.helper[0] == this.currentItem[0]) { for(var i in this._storedCSS) { if(this._storedCSS[i] == 'auto' || this._storedCSS[i] == 'static') this._storedCSS[i] = ''; } this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"); } else { this.currentItem.show(); } if(this.fromOutside && !noPropagation) delayedTriggers.push(function(event) { this._trigger("receive", event, this._uiHash(this.fromOutside)); }); if((this.fromOutside || this.domPosition.prev != this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition.parent != this.currentItem.parent()[0]) && !noPropagation) delayedTriggers.push(function(event) { this._trigger("update", event, this._uiHash()); }); //Trigger update callback if the DOM position has changed // Check if the items Container has Changed and trigger appropriate // events. if (this !== this.currentContainer) { if(!noPropagation) { delayedTriggers.push(function(event) { this._trigger("remove", event, this._uiHash()); }); delayedTriggers.push((function(c) { return function(event) { c._trigger("receive", event, this._uiHash(this)); }; }).call(this, this.currentContainer)); delayedTriggers.push((function(c) { return function(event) { c._trigger("update", event, this._uiHash(this)); }; }).call(this, this.currentContainer)); } } //Post events to containers for (var i = this.containers.length - 1; i >= 0; i--){ if(!noPropagation) delayedTriggers.push((function(c) { return function(event) { c._trigger("deactivate", event, this._uiHash(this)); }; }).call(this, this.containers[i])); if(this.containers[i].containerCache.over) { delayedTriggers.push((function(c) { return function(event) { c._trigger("out", event, this._uiHash(this)); }; }).call(this, this.containers[i])); this.containers[i].containerCache.over = 0; } } //Do what was originally in plugins if(this._storedCursor) $('body').css("cursor", this._storedCursor); //Reset cursor if(this._storedOpacity) this.helper.css("opacity", this._storedOpacity); //Reset opacity if(this._storedZIndex) this.helper.css("zIndex", this._storedZIndex == 'auto' ? '' : this._storedZIndex); //Reset z-index this.dragging = false; if(this.cancelHelperRemoval) { if(!noPropagation) { this._trigger("beforeStop", event, this._uiHash()); for (var i=0; i < delayedTriggers.length; i++) { delayedTriggers[i].call(this, event); }; //Trigger all delayed events this._trigger("stop", event, this._uiHash()); } this.fromOutside = false; return false; } if(!noPropagation) this._trigger("beforeStop", event, this._uiHash()); //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node! this.placeholder[0].parentNode.removeChild(this.placeholder[0]); if(this.helper[0] != this.currentItem[0]) this.helper.remove(); this.helper = null; if(!noPropagation) { for (var i=0; i < delayedTriggers.length; i++) { delayedTriggers[i].call(this, event); }; //Trigger all delayed events this._trigger("stop", event, this._uiHash()); } this.fromOutside = false; return true; }, _trigger: function() { if ($.Widget.prototype._trigger.apply(this, arguments) === false) { this.cancel(); } }, _uiHash: function(_inst) { var inst = _inst || this; return { helper: inst.helper, placeholder: inst.placeholder || $([]), position: inst.position, originalPosition: inst.originalPosition, offset: inst.positionAbs, item: inst.currentItem, sender: _inst ? _inst.element : null }; } }); })(jQuery); (function( $ ) { function modifier( fn ) { return function() { var previous = this.element.val(); fn.apply( this, arguments ); this._refresh(); if ( previous !== this.element.val() ) { this._trigger( "change" ); } }; } $.widget( "ui.spinner", { version: "1.9.2", defaultElement: "", widgetEventPrefix: "spin", options: { culture: null, icons: { down: "ui-icon-triangle-1-s", up: "ui-icon-triangle-1-n" }, incremental: true, max: null, min: null, numberFormat: null, page: 10, step: 1, change: null, spin: null, start: null, stop: null }, _create: function() { // handle string values that need to be parsed this._setOption( "max", this.options.max ); this._setOption( "min", this.options.min ); this._setOption( "step", this.options.step ); // format the value, but don't constrain this._value( this.element.val(), true ); this._draw(); this._on( this._events ); this._refresh(); // turning off autocomplete prevents the browser from remembering the // value when navigating through history, so we re-enable autocomplete // if the page is unloaded before the widget is destroyed. #7790 this._on( this.window, { beforeunload: function() { this.element.removeAttr( "autocomplete" ); } }); }, _getCreateOptions: function() { var options = {}, element = this.element; $.each( [ "min", "max", "step" ], function( i, option ) { var value = element.attr( option ); if ( value !== undefined && value.length ) { options[ option ] = value; } }); return options; }, _events: { keydown: function( event ) { if ( this._start( event ) && this._keydown( event ) ) { event.preventDefault(); } }, keyup: "_stop", focus: function() { this.previous = this.element.val(); }, blur: function( event ) { if ( this.cancelBlur ) { delete this.cancelBlur; return; } this._refresh(); if ( this.previous !== this.element.val() ) { this._trigger( "change", event ); } }, mousewheel: function( event, delta ) { if ( !delta ) { return; } if ( !this.spinning && !this._start( event ) ) { return false; } this._spin( (delta > 0 ? 1 : -1) * this.options.step, event ); clearTimeout( this.mousewheelTimer ); this.mousewheelTimer = this._delay(function() { if ( this.spinning ) { this._stop( event ); } }, 100 ); event.preventDefault(); }, "mousedown .ui-spinner-button": function( event ) { var previous; // We never want the buttons to have focus; whenever the user is // interacting with the spinner, the focus should be on the input. // If the input is focused then this.previous is properly set from // when the input first received focus. If the input is not focused // then we need to set this.previous based on the value before spinning. previous = this.element[0] === this.document[0].activeElement ? this.previous : this.element.val(); function checkFocus() { var isActive = this.element[0] === this.document[0].activeElement; if ( !isActive ) { this.element.focus(); this.previous = previous; // support: IE // IE sets focus asynchronously, so we need to check if focus // moved off of the input because the user clicked on the button. this._delay(function() { this.previous = previous; }); } } // ensure focus is on (or stays on) the text field event.preventDefault(); checkFocus.call( this ); // support: IE // IE doesn't prevent moving focus even with event.preventDefault() // so we set a flag to know when we should ignore the blur event // and check (again) if focus moved off of the input. this.cancelBlur = true; this._delay(function() { delete this.cancelBlur; checkFocus.call( this ); }); if ( this._start( event ) === false ) { return; } this._repeat( null, $( event.currentTarget ).hasClass( "ui-spinner-up" ) ? 1 : -1, event ); }, "mouseup .ui-spinner-button": "_stop", "mouseenter .ui-spinner-button": function( event ) { // button will add ui-state-active if mouse was down while mouseleave and kept down if ( !$( event.currentTarget ).hasClass( "ui-state-active" ) ) { return; } if ( this._start( event ) === false ) { return false; } this._repeat( null, $( event.currentTarget ).hasClass( "ui-spinner-up" ) ? 1 : -1, event ); }, // TODO: do we really want to consider this a stop? // shouldn't we just stop the repeater and wait until mouseup before // we trigger the stop event? "mouseleave .ui-spinner-button": "_stop" }, _draw: function() { var uiSpinner = this.uiSpinner = this.element .addClass( "ui-spinner-input" ) .attr( "autocomplete", "off" ) .wrap( this._uiSpinnerHtml() ) .parent() // add buttons .append( this._buttonHtml() ); this.element.attr( "role", "spinbutton" ); // button bindings this.buttons = uiSpinner.find( ".ui-spinner-button" ) .attr( "tabIndex", -1 ) .button() .removeClass( "ui-corner-all" ); // IE 6 doesn't understand height: 50% for the buttons // unless the wrapper has an explicit height if ( this.buttons.height() > Math.ceil( uiSpinner.height() * 0.5 ) && uiSpinner.height() > 0 ) { uiSpinner.height( uiSpinner.height() ); } // disable spinner if element was already disabled if ( this.options.disabled ) { this.disable(); } }, _keydown: function( event ) { var options = this.options, keyCode = $.ui.keyCode; switch ( event.keyCode ) { case keyCode.UP: this._repeat( null, 1, event ); return true; case keyCode.DOWN: this._repeat( null, -1, event ); return true; case keyCode.PAGE_UP: this._repeat( null, options.page, event ); return true; case keyCode.PAGE_DOWN: this._repeat( null, -options.page, event ); return true; } return false; }, _uiSpinnerHtml: function() { return ""; }, _buttonHtml: function() { return "" + "" + "" + "" + "" + "" + ""; }, _start: function( event ) { if ( !this.spinning && this._trigger( "start", event ) === false ) { return false; } if ( !this.counter ) { this.counter = 1; } this.spinning = true; return true; }, _repeat: function( i, steps, event ) { i = i || 500; clearTimeout( this.timer ); this.timer = this._delay(function() { this._repeat( 40, steps, event ); }, i ); this._spin( steps * this.options.step, event ); }, _spin: function( step, event ) { var value = this.value() || 0; if ( !this.counter ) { this.counter = 1; } value = this._adjustValue( value + step * this._increment( this.counter ) ); if ( !this.spinning || this._trigger( "spin", event, { value: value } ) !== false) { this._value( value ); this.counter++; } }, _increment: function( i ) { var incremental = this.options.incremental; if ( incremental ) { return $.isFunction( incremental ) ? incremental( i ) : Math.floor( i*i*i/50000 - i*i/500 + 17*i/200 + 1 ); } return 1; }, _precision: function() { var precision = this._precisionOf( this.options.step ); if ( this.options.min !== null ) { precision = Math.max( precision, this._precisionOf( this.options.min ) ); } return precision; }, _precisionOf: function( num ) { var str = num.toString(), decimal = str.indexOf( "." ); return decimal === -1 ? 0 : str.length - decimal - 1; }, _adjustValue: function( value ) { var base, aboveMin, options = this.options; // make sure we're at a valid step // - find out where we are relative to the base (min or 0) base = options.min !== null ? options.min : 0; aboveMin = value - base; // - round to the nearest step aboveMin = Math.round(aboveMin / options.step) * options.step; // - rounding is based on 0, so adjust back to our base value = base + aboveMin; // fix precision from bad JS floating point math value = parseFloat( value.toFixed( this._precision() ) ); // clamp the value if ( options.max !== null && value > options.max) { return options.max; } if ( options.min !== null && value < options.min ) { return options.min; } return value; }, _stop: function( event ) { if ( !this.spinning ) { return; } clearTimeout( this.timer ); clearTimeout( this.mousewheelTimer ); this.counter = 0; this.spinning = false; this._trigger( "stop", event ); }, _setOption: function( key, value ) { if ( key === "culture" || key === "numberFormat" ) { var prevValue = this._parse( this.element.val() ); this.options[ key ] = value; this.element.val( this._format( prevValue ) ); return; } if ( key === "max" || key === "min" || key === "step" ) { if ( typeof value === "string" ) { value = this._parse( value ); } } this._super( key, value ); if ( key === "disabled" ) { if ( value ) { this.element.prop( "disabled", true ); this.buttons.button( "disable" ); } else { this.element.prop( "disabled", false ); this.buttons.button( "enable" ); } } }, _setOptions: modifier(function( options ) { this._super( options ); this._value( this.element.val() ); }), _parse: function( val ) { if ( typeof val === "string" && val !== "" ) { val = window.Globalize && this.options.numberFormat ? Globalize.parseFloat( val, 10, this.options.culture ) : +val; } return val === "" || isNaN( val ) ? null : val; }, _format: function( value ) { if ( value === "" ) { return ""; } return window.Globalize && this.options.numberFormat ? Globalize.format( value, this.options.numberFormat, this.options.culture ) : value; }, _refresh: function() { this.element.attr({ "aria-valuemin": this.options.min, "aria-valuemax": this.options.max, // TODO: what should we do with values that can't be parsed? "aria-valuenow": this._parse( this.element.val() ) }); }, // update the value without triggering change _value: function( value, allowAny ) { var parsed; if ( value !== "" ) { parsed = this._parse( value ); if ( parsed !== null ) { if ( !allowAny ) { parsed = this._adjustValue( parsed ); } value = this._format( parsed ); } } this.element.val( value ); this._refresh(); }, _destroy: function() { this.element .removeClass( "ui-spinner-input" ) .prop( "disabled", false ) .removeAttr( "autocomplete" ) .removeAttr( "role" ) .removeAttr( "aria-valuemin" ) .removeAttr( "aria-valuemax" ) .removeAttr( "aria-valuenow" ); this.uiSpinner.replaceWith( this.element ); }, stepUp: modifier(function( steps ) { this._stepUp( steps ); }), _stepUp: function( steps ) { this._spin( (steps || 1) * this.options.step ); }, stepDown: modifier(function( steps ) { this._stepDown( steps ); }), _stepDown: function( steps ) { this._spin( (steps || 1) * -this.options.step ); }, pageUp: modifier(function( pages ) { this._stepUp( (pages || 1) * this.options.page ); }), pageDown: modifier(function( pages ) { this._stepDown( (pages || 1) * this.options.page ); }), value: function( newVal ) { if ( !arguments.length ) { return this._parse( this.element.val() ); } modifier( this._value ).call( this, newVal ); }, widget: function() { return this.uiSpinner; } }); }( jQuery ) ); (function( $, undefined ) { var tabId = 0, rhash = /#.*$/; function getNextTabId() { return ++tabId; } function isLocal( anchor ) { return anchor.hash.length > 1 && anchor.href.replace( rhash, "" ) === location.href.replace( rhash, "" ) // support: Safari 5.1 // Safari 5.1 doesn't encode spaces in window.location // but it does encode spaces from anchors (#8777) .replace( /\s/g, "%20" ); } $.widget( "ui.tabs", { version: "1.9.2", delay: 300, options: { active: null, collapsible: false, event: "click", heightStyle: "content", hide: null, show: null, // callbacks activate: null, beforeActivate: null, beforeLoad: null, load: null }, _create: function() { var that = this, options = this.options, active = options.active, locationHash = location.hash.substring( 1 ); this.running = false; this.element .addClass( "ui-tabs ui-widget ui-widget-content ui-corner-all" ) .toggleClass( "ui-tabs-collapsible", options.collapsible ) // Prevent users from focusing disabled tabs via click .delegate( ".ui-tabs-nav > li", "mousedown" + this.eventNamespace, function( event ) { if ( $( this ).is( ".ui-state-disabled" ) ) { event.preventDefault(); } }) // support: IE <9 // Preventing the default action in mousedown doesn't prevent IE // from focusing the element, so if the anchor gets focused, blur. // We don't have to worry about focusing the previously focused // element since clicking on a non-focusable element should focus // the body anyway. .delegate( ".ui-tabs-anchor", "focus" + this.eventNamespace, function() { if ( $( this ).closest( "li" ).is( ".ui-state-disabled" ) ) { this.blur(); } }); this._processTabs(); if ( active === null ) { // check the fragment identifier in the URL if ( locationHash ) { this.tabs.each(function( i, tab ) { if ( $( tab ).attr( "aria-controls" ) === locationHash ) { active = i; return false; } }); } // check for a tab marked active via a class if ( active === null ) { active = this.tabs.index( this.tabs.filter( ".ui-tabs-active" ) ); } // no active tab, set to false if ( active === null || active === -1 ) { active = this.tabs.length ? 0 : false; } } // handle numbers: negative, out of range if ( active !== false ) { active = this.tabs.index( this.tabs.eq( active ) ); if ( active === -1 ) { active = options.collapsible ? false : 0; } } options.active = active; // don't allow collapsible: false and active: false if ( !options.collapsible && options.active === false && this.anchors.length ) { options.active = 0; } // Take disabling tabs via class attribute from HTML // into account and update option properly. if ( $.isArray( options.disabled ) ) { options.disabled = $.unique( options.disabled.concat( $.map( this.tabs.filter( ".ui-state-disabled" ), function( li ) { return that.tabs.index( li ); }) ) ).sort(); } // check for length avoids error when initializing empty list if ( this.options.active !== false && this.anchors.length ) { this.active = this._findActive( this.options.active ); } else { this.active = $(); } this._refresh(); if ( this.active.length ) { this.load( options.active ); } }, _getCreateEventData: function() { return { tab: this.active, panel: !this.active.length ? $() : this._getPanelForTab( this.active ) }; }, _tabKeydown: function( event ) { var focusedTab = $( this.document[0].activeElement ).closest( "li" ), selectedIndex = this.tabs.index( focusedTab ), goingForward = true; if ( this._handlePageNav( event ) ) { return; } switch ( event.keyCode ) { case $.ui.keyCode.RIGHT: case $.ui.keyCode.DOWN: selectedIndex++; break; case $.ui.keyCode.UP: case $.ui.keyCode.LEFT: goingForward = false; selectedIndex--; break; case $.ui.keyCode.END: selectedIndex = this.anchors.length - 1; break; case $.ui.keyCode.HOME: selectedIndex = 0; break; case $.ui.keyCode.SPACE: // Activate only, no collapsing event.preventDefault(); clearTimeout( this.activating ); this._activate( selectedIndex ); return; case $.ui.keyCode.ENTER: // Toggle (cancel delayed activation, allow collapsing) event.preventDefault(); clearTimeout( this.activating ); // Determine if we should collapse or activate this._activate( selectedIndex === this.options.active ? false : selectedIndex ); return; default: return; } // Focus the appropriate tab, based on which key was pressed event.preventDefault(); clearTimeout( this.activating ); selectedIndex = this._focusNextTab( selectedIndex, goingForward ); // Navigating with control key will prevent automatic activation if ( !event.ctrlKey ) { // Update aria-selected immediately so that AT think the tab is already selected. // Otherwise AT may confuse the user by stating that they need to activate the tab, // but the tab will already be activated by the time the announcement finishes. focusedTab.attr( "aria-selected", "false" ); this.tabs.eq( selectedIndex ).attr( "aria-selected", "true" ); this.activating = this._delay(function() { this.option( "active", selectedIndex ); }, this.delay ); } }, _panelKeydown: function( event ) { if ( this._handlePageNav( event ) ) { return; } // Ctrl+up moves focus to the current tab if ( event.ctrlKey && event.keyCode === $.ui.keyCode.UP ) { event.preventDefault(); this.active.focus(); } }, // Alt+page up/down moves focus to the previous/next tab (and activates) _handlePageNav: function( event ) { if ( event.altKey && event.keyCode === $.ui.keyCode.PAGE_UP ) { this._activate( this._focusNextTab( this.options.active - 1, false ) ); return true; } if ( event.altKey && event.keyCode === $.ui.keyCode.PAGE_DOWN ) { this._activate( this._focusNextTab( this.options.active + 1, true ) ); return true; } }, _findNextTab: function( index, goingForward ) { var lastTabIndex = this.tabs.length - 1; function constrain() { if ( index > lastTabIndex ) { index = 0; } if ( index < 0 ) { index = lastTabIndex; } return index; } while ( $.inArray( constrain(), this.options.disabled ) !== -1 ) { index = goingForward ? index + 1 : index - 1; } return index; }, _focusNextTab: function( index, goingForward ) { index = this._findNextTab( index, goingForward ); this.tabs.eq( index ).focus(); return index; }, _setOption: function( key, value ) { if ( key === "active" ) { // _activate() will handle invalid values and update this.options this._activate( value ); return; } if ( key === "disabled" ) { // don't use the widget factory's disabled handling this._setupDisabled( value ); return; } this._super( key, value); if ( key === "collapsible" ) { this.element.toggleClass( "ui-tabs-collapsible", value ); // Setting collapsible: false while collapsed; open first panel if ( !value && this.options.active === false ) { this._activate( 0 ); } } if ( key === "event" ) { this._setupEvents( value ); } if ( key === "heightStyle" ) { this._setupHeightStyle( value ); } }, _tabId: function( tab ) { return tab.attr( "aria-controls" ) || "ui-tabs-" + getNextTabId(); }, _sanitizeSelector: function( hash ) { return hash ? hash.replace( /[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&" ) : ""; }, refresh: function() { var options = this.options, lis = this.tablist.children( ":has(a[href])" ); // get disabled tabs from class attribute from HTML // this will get converted to a boolean if needed in _refresh() options.disabled = $.map( lis.filter( ".ui-state-disabled" ), function( tab ) { return lis.index( tab ); }); this._processTabs(); // was collapsed or no tabs if ( options.active === false || !this.anchors.length ) { options.active = false; this.active = $(); // was active, but active tab is gone } else if ( this.active.length && !$.contains( this.tablist[ 0 ], this.active[ 0 ] ) ) { // all remaining tabs are disabled if ( this.tabs.length === options.disabled.length ) { options.active = false; this.active = $(); // activate previous tab } else { this._activate( this._findNextTab( Math.max( 0, options.active - 1 ), false ) ); } // was active, active tab still exists } else { // make sure active index is correct options.active = this.tabs.index( this.active ); } this._refresh(); }, _refresh: function() { this._setupDisabled( this.options.disabled ); this._setupEvents( this.options.event ); this._setupHeightStyle( this.options.heightStyle ); this.tabs.not( this.active ).attr({ "aria-selected": "false", tabIndex: -1 }); this.panels.not( this._getPanelForTab( this.active ) ) .hide() .attr({ "aria-expanded": "false", "aria-hidden": "true" }); // Make sure one tab is in the tab order if ( !this.active.length ) { this.tabs.eq( 0 ).attr( "tabIndex", 0 ); } else { this.active .addClass( "ui-tabs-active ui-state-active" ) .attr({ "aria-selected": "true", tabIndex: 0 }); this._getPanelForTab( this.active ) .show() .attr({ "aria-expanded": "true", "aria-hidden": "false" }); } }, _processTabs: function() { var that = this; this.tablist = this._getList() .addClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" ) .attr( "role", "tablist" ); this.tabs = this.tablist.find( "> li:has(a[href])" ) .addClass( "ui-state-default ui-corner-top" ) .attr({ role: "tab", tabIndex: -1 }); this.anchors = this.tabs.map(function() { return $( "a", this )[ 0 ]; }) .addClass( "ui-tabs-anchor" ) .attr({ role: "presentation", tabIndex: -1 }); this.panels = $(); this.anchors.each(function( i, anchor ) { var selector, panel, panelId, anchorId = $( anchor ).uniqueId().attr( "id" ), tab = $( anchor ).closest( "li" ), originalAriaControls = tab.attr( "aria-controls" ); // inline tab if ( isLocal( anchor ) ) { selector = anchor.hash; panel = that.element.find( that._sanitizeSelector( selector ) ); // remote tab } else { panelId = that._tabId( tab ); selector = "#" + panelId; panel = that.element.find( selector ); if ( !panel.length ) { panel = that._createPanel( panelId ); panel.insertAfter( that.panels[ i - 1 ] || that.tablist ); } panel.attr( "aria-live", "polite" ); } if ( panel.length) { that.panels = that.panels.add( panel ); } if ( originalAriaControls ) { tab.data( "ui-tabs-aria-controls", originalAriaControls ); } tab.attr({ "aria-controls": selector.substring( 1 ), "aria-labelledby": anchorId }); panel.attr( "aria-labelledby", anchorId ); }); this.panels .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" ) .attr( "role", "tabpanel" ); }, // allow overriding how to find the list for rare usage scenarios (#7715) _getList: function() { return this.element.find( "ol,ul" ).eq( 0 ); }, _createPanel: function( id ) { return $( "
                                                  " ) .attr( "id", id ) .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" ) .data( "ui-tabs-destroy", true ); }, _setupDisabled: function( disabled ) { if ( $.isArray( disabled ) ) { if ( !disabled.length ) { disabled = false; } else if ( disabled.length === this.anchors.length ) { disabled = true; } } // disable tabs for ( var i = 0, li; ( li = this.tabs[ i ] ); i++ ) { if ( disabled === true || $.inArray( i, disabled ) !== -1 ) { $( li ) .addClass( "ui-state-disabled" ) .attr( "aria-disabled", "true" ); } else { $( li ) .removeClass( "ui-state-disabled" ) .removeAttr( "aria-disabled" ); } } this.options.disabled = disabled; }, _setupEvents: function( event ) { var events = { click: function( event ) { event.preventDefault(); } }; if ( event ) { $.each( event.split(" "), function( index, eventName ) { events[ eventName ] = "_eventHandler"; }); } this._off( this.anchors.add( this.tabs ).add( this.panels ) ); this._on( this.anchors, events ); this._on( this.tabs, { keydown: "_tabKeydown" } ); this._on( this.panels, { keydown: "_panelKeydown" } ); this._focusable( this.tabs ); this._hoverable( this.tabs ); }, _setupHeightStyle: function( heightStyle ) { var maxHeight, overflow, parent = this.element.parent(); if ( heightStyle === "fill" ) { // IE 6 treats height like minHeight, so we need to turn off overflow // in order to get a reliable height // we use the minHeight support test because we assume that only // browsers that don't support minHeight will treat height as minHeight if ( !$.support.minHeight ) { overflow = parent.css( "overflow" ); parent.css( "overflow", "hidden"); } maxHeight = parent.height(); this.element.siblings( ":visible" ).each(function() { var elem = $( this ), position = elem.css( "position" ); if ( position === "absolute" || position === "fixed" ) { return; } maxHeight -= elem.outerHeight( true ); }); if ( overflow ) { parent.css( "overflow", overflow ); } this.element.children().not( this.panels ).each(function() { maxHeight -= $( this ).outerHeight( true ); }); this.panels.each(function() { $( this ).height( Math.max( 0, maxHeight - $( this ).innerHeight() + $( this ).height() ) ); }) .css( "overflow", "auto" ); } else if ( heightStyle === "auto" ) { maxHeight = 0; this.panels.each(function() { maxHeight = Math.max( maxHeight, $( this ).height( "" ).height() ); }).height( maxHeight ); } }, _eventHandler: function( event ) { var options = this.options, active = this.active, anchor = $( event.currentTarget ), tab = anchor.closest( "li" ), clickedIsActive = tab[ 0 ] === active[ 0 ], collapsing = clickedIsActive && options.collapsible, toShow = collapsing ? $() : this._getPanelForTab( tab ), toHide = !active.length ? $() : this._getPanelForTab( active ), eventData = { oldTab: active, oldPanel: toHide, newTab: collapsing ? $() : tab, newPanel: toShow }; event.preventDefault(); if ( tab.hasClass( "ui-state-disabled" ) || // tab is already loading tab.hasClass( "ui-tabs-loading" ) || // can't switch durning an animation this.running || // click on active header, but not collapsible ( clickedIsActive && !options.collapsible ) || // allow canceling activation ( this._trigger( "beforeActivate", event, eventData ) === false ) ) { return; } options.active = collapsing ? false : this.tabs.index( tab ); this.active = clickedIsActive ? $() : tab; if ( this.xhr ) { this.xhr.abort(); } if ( !toHide.length && !toShow.length ) { $.error( "jQuery UI Tabs: Mismatching fragment identifier." ); } if ( toShow.length ) { this.load( this.tabs.index( tab ), event ); } this._toggle( event, eventData ); }, // handles show/hide for selecting tabs _toggle: function( event, eventData ) { var that = this, toShow = eventData.newPanel, toHide = eventData.oldPanel; this.running = true; function complete() { that.running = false; that._trigger( "activate", event, eventData ); } function show() { eventData.newTab.closest( "li" ).addClass( "ui-tabs-active ui-state-active" ); if ( toShow.length && that.options.show ) { that._show( toShow, that.options.show, complete ); } else { toShow.show(); complete(); } } // start out by hiding, then showing, then completing if ( toHide.length && this.options.hide ) { this._hide( toHide, this.options.hide, function() { eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" ); show(); }); } else { eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" ); toHide.hide(); show(); } toHide.attr({ "aria-expanded": "false", "aria-hidden": "true" }); eventData.oldTab.attr( "aria-selected", "false" ); // If we're switching tabs, remove the old tab from the tab order. // If we're opening from collapsed state, remove the previous tab from the tab order. // If we're collapsing, then keep the collapsing tab in the tab order. if ( toShow.length && toHide.length ) { eventData.oldTab.attr( "tabIndex", -1 ); } else if ( toShow.length ) { this.tabs.filter(function() { return $( this ).attr( "tabIndex" ) === 0; }) .attr( "tabIndex", -1 ); } toShow.attr({ "aria-expanded": "true", "aria-hidden": "false" }); eventData.newTab.attr({ "aria-selected": "true", tabIndex: 0 }); }, _activate: function( index ) { var anchor, active = this._findActive( index ); // trying to activate the already active panel if ( active[ 0 ] === this.active[ 0 ] ) { return; } // trying to collapse, simulate a click on the current active header if ( !active.length ) { active = this.active; } anchor = active.find( ".ui-tabs-anchor" )[ 0 ]; this._eventHandler({ target: anchor, currentTarget: anchor, preventDefault: $.noop }); }, _findActive: function( index ) { return index === false ? $() : this.tabs.eq( index ); }, _getIndex: function( index ) { // meta-function to give users option to provide a href string instead of a numerical index. if ( typeof index === "string" ) { index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) ); } return index; }, _destroy: function() { if ( this.xhr ) { this.xhr.abort(); } this.element.removeClass( "ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible" ); this.tablist .removeClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" ) .removeAttr( "role" ); this.anchors .removeClass( "ui-tabs-anchor" ) .removeAttr( "role" ) .removeAttr( "tabIndex" ) .removeData( "href.tabs" ) .removeData( "load.tabs" ) .removeUniqueId(); this.tabs.add( this.panels ).each(function() { if ( $.data( this, "ui-tabs-destroy" ) ) { $( this ).remove(); } else { $( this ) .removeClass( "ui-state-default ui-state-active ui-state-disabled " + "ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel" ) .removeAttr( "tabIndex" ) .removeAttr( "aria-live" ) .removeAttr( "aria-busy" ) .removeAttr( "aria-selected" ) .removeAttr( "aria-labelledby" ) .removeAttr( "aria-hidden" ) .removeAttr( "aria-expanded" ) .removeAttr( "role" ); } }); this.tabs.each(function() { var li = $( this ), prev = li.data( "ui-tabs-aria-controls" ); if ( prev ) { li.attr( "aria-controls", prev ); } else { li.removeAttr( "aria-controls" ); } }); this.panels.show(); if ( this.options.heightStyle !== "content" ) { this.panels.css( "height", "" ); } }, enable: function( index ) { var disabled = this.options.disabled; if ( disabled === false ) { return; } if ( index === undefined ) { disabled = false; } else { index = this._getIndex( index ); if ( $.isArray( disabled ) ) { disabled = $.map( disabled, function( num ) { return num !== index ? num : null; }); } else { disabled = $.map( this.tabs, function( li, num ) { return num !== index ? num : null; }); } } this._setupDisabled( disabled ); }, disable: function( index ) { var disabled = this.options.disabled; if ( disabled === true ) { return; } if ( index === undefined ) { disabled = true; } else { index = this._getIndex( index ); if ( $.inArray( index, disabled ) !== -1 ) { return; } if ( $.isArray( disabled ) ) { disabled = $.merge( [ index ], disabled ).sort(); } else { disabled = [ index ]; } } this._setupDisabled( disabled ); }, load: function( index, event ) { index = this._getIndex( index ); var that = this, tab = this.tabs.eq( index ), anchor = tab.find( ".ui-tabs-anchor" ), panel = this._getPanelForTab( tab ), eventData = { tab: tab, panel: panel }; // not remote if ( isLocal( anchor[ 0 ] ) ) { return; } this.xhr = $.ajax( this._ajaxSettings( anchor, event, eventData ) ); // support: jQuery <1.8 // jQuery <1.8 returns false if the request is canceled in beforeSend, // but as of 1.8, $.ajax() always returns a jqXHR object. if ( this.xhr && this.xhr.statusText !== "canceled" ) { tab.addClass( "ui-tabs-loading" ); panel.attr( "aria-busy", "true" ); this.xhr .success(function( response ) { // support: jQuery <1.8 // http://bugs.jquery.com/ticket/11778 setTimeout(function() { panel.html( response ); that._trigger( "load", event, eventData ); }, 1 ); }) .complete(function( jqXHR, status ) { // support: jQuery <1.8 // http://bugs.jquery.com/ticket/11778 setTimeout(function() { if ( status === "abort" ) { that.panels.stop( false, true ); } tab.removeClass( "ui-tabs-loading" ); panel.removeAttr( "aria-busy" ); if ( jqXHR === that.xhr ) { delete that.xhr; } }, 1 ); }); } }, // TODO: Remove this function in 1.10 when ajaxOptions is removed _ajaxSettings: function( anchor, event, eventData ) { var that = this; return { url: anchor.attr( "href" ), beforeSend: function( jqXHR, settings ) { return that._trigger( "beforeLoad", event, $.extend( { jqXHR : jqXHR, ajaxSettings: settings }, eventData ) ); } }; }, _getPanelForTab: function( tab ) { var id = $( tab ).attr( "aria-controls" ); return this.element.find( this._sanitizeSelector( "#" + id ) ); } }); // DEPRECATED if ( $.uiBackCompat !== false ) { // helper method for a lot of the back compat extensions $.ui.tabs.prototype._ui = function( tab, panel ) { return { tab: tab, panel: panel, index: this.anchors.index( tab ) }; }; // url method $.widget( "ui.tabs", $.ui.tabs, { url: function( index, url ) { this.anchors.eq( index ).attr( "href", url ); } }); // TODO: Remove _ajaxSettings() method when removing this extension // ajaxOptions and cache options $.widget( "ui.tabs", $.ui.tabs, { options: { ajaxOptions: null, cache: false }, _create: function() { this._super(); var that = this; this._on({ tabsbeforeload: function( event, ui ) { // tab is already cached if ( $.data( ui.tab[ 0 ], "cache.tabs" ) ) { event.preventDefault(); return; } ui.jqXHR.success(function() { if ( that.options.cache ) { $.data( ui.tab[ 0 ], "cache.tabs", true ); } }); }}); }, _ajaxSettings: function( anchor, event, ui ) { var ajaxOptions = this.options.ajaxOptions; return $.extend( {}, ajaxOptions, { error: function( xhr, status ) { try { // Passing index avoid a race condition when this method is // called after the user has selected another tab. // Pass the anchor that initiated this request allows // loadError to manipulate the tab content panel via $(a.hash) ajaxOptions.error( xhr, status, ui.tab.closest( "li" ).index(), ui.tab[ 0 ] ); } catch ( error ) {} } }, this._superApply( arguments ) ); }, _setOption: function( key, value ) { // reset cache if switching from cached to not cached if ( key === "cache" && value === false ) { this.anchors.removeData( "cache.tabs" ); } this._super( key, value ); }, _destroy: function() { this.anchors.removeData( "cache.tabs" ); this._super(); }, url: function( index ){ this.anchors.eq( index ).removeData( "cache.tabs" ); this._superApply( arguments ); } }); // abort method $.widget( "ui.tabs", $.ui.tabs, { abort: function() { if ( this.xhr ) { this.xhr.abort(); } } }); // spinner $.widget( "ui.tabs", $.ui.tabs, { options: { spinner: "Loading…" }, _create: function() { this._super(); this._on({ tabsbeforeload: function( event, ui ) { // Don't react to nested tabs or tabs that don't use a spinner if ( event.target !== this.element[ 0 ] || !this.options.spinner ) { return; } var span = ui.tab.find( "span" ), html = span.html(); span.html( this.options.spinner ); ui.jqXHR.complete(function() { span.html( html ); }); } }); } }); // enable/disable events $.widget( "ui.tabs", $.ui.tabs, { options: { enable: null, disable: null }, enable: function( index ) { var options = this.options, trigger; if ( index && options.disabled === true || ( $.isArray( options.disabled ) && $.inArray( index, options.disabled ) !== -1 ) ) { trigger = true; } this._superApply( arguments ); if ( trigger ) { this._trigger( "enable", null, this._ui( this.anchors[ index ], this.panels[ index ] ) ); } }, disable: function( index ) { var options = this.options, trigger; if ( index && options.disabled === false || ( $.isArray( options.disabled ) && $.inArray( index, options.disabled ) === -1 ) ) { trigger = true; } this._superApply( arguments ); if ( trigger ) { this._trigger( "disable", null, this._ui( this.anchors[ index ], this.panels[ index ] ) ); } } }); // add/remove methods and events $.widget( "ui.tabs", $.ui.tabs, { options: { add: null, remove: null, tabTemplate: "
                                                • #{label}
                                                • " }, add: function( url, label, index ) { if ( index === undefined ) { index = this.anchors.length; } var doInsertAfter, panel, options = this.options, li = $( options.tabTemplate .replace( /#\{href\}/g, url ) .replace( /#\{label\}/g, label ) ), id = !url.indexOf( "#" ) ? url.replace( "#", "" ) : this._tabId( li ); li.addClass( "ui-state-default ui-corner-top" ).data( "ui-tabs-destroy", true ); li.attr( "aria-controls", id ); doInsertAfter = index >= this.tabs.length; // try to find an existing element before creating a new one panel = this.element.find( "#" + id ); if ( !panel.length ) { panel = this._createPanel( id ); if ( doInsertAfter ) { if ( index > 0 ) { panel.insertAfter( this.panels.eq( -1 ) ); } else { panel.appendTo( this.element ); } } else { panel.insertBefore( this.panels[ index ] ); } } panel.addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" ).hide(); if ( doInsertAfter ) { li.appendTo( this.tablist ); } else { li.insertBefore( this.tabs[ index ] ); } options.disabled = $.map( options.disabled, function( n ) { return n >= index ? ++n : n; }); this.refresh(); if ( this.tabs.length === 1 && options.active === false ) { this.option( "active", 0 ); } this._trigger( "add", null, this._ui( this.anchors[ index ], this.panels[ index ] ) ); return this; }, remove: function( index ) { index = this._getIndex( index ); var options = this.options, tab = this.tabs.eq( index ).remove(), panel = this._getPanelForTab( tab ).remove(); // If selected tab was removed focus tab to the right or // in case the last tab was removed the tab to the left. // We check for more than 2 tabs, because if there are only 2, // then when we remove this tab, there will only be one tab left // so we don't need to detect which tab to activate. if ( tab.hasClass( "ui-tabs-active" ) && this.anchors.length > 2 ) { this._activate( index + ( index + 1 < this.anchors.length ? 1 : -1 ) ); } options.disabled = $.map( $.grep( options.disabled, function( n ) { return n !== index; }), function( n ) { return n >= index ? --n : n; }); this.refresh(); this._trigger( "remove", null, this._ui( tab.find( "a" )[ 0 ], panel[ 0 ] ) ); return this; } }); // length method $.widget( "ui.tabs", $.ui.tabs, { length: function() { return this.anchors.length; } }); // panel ids (idPrefix option + title attribute) $.widget( "ui.tabs", $.ui.tabs, { options: { idPrefix: "ui-tabs-" }, _tabId: function( tab ) { var a = tab.is( "li" ) ? tab.find( "a[href]" ) : tab; a = a[0]; return $( a ).closest( "li" ).attr( "aria-controls" ) || a.title && a.title.replace( /\s/g, "_" ).replace( /[^\w\u00c0-\uFFFF\-]/g, "" ) || this.options.idPrefix + getNextTabId(); } }); // _createPanel method $.widget( "ui.tabs", $.ui.tabs, { options: { panelTemplate: "
                                                  " }, _createPanel: function( id ) { return $( this.options.panelTemplate ) .attr( "id", id ) .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" ) .data( "ui-tabs-destroy", true ); } }); // selected option $.widget( "ui.tabs", $.ui.tabs, { _create: function() { var options = this.options; if ( options.active === null && options.selected !== undefined ) { options.active = options.selected === -1 ? false : options.selected; } this._super(); options.selected = options.active; if ( options.selected === false ) { options.selected = -1; } }, _setOption: function( key, value ) { if ( key !== "selected" ) { return this._super( key, value ); } var options = this.options; this._super( "active", value === -1 ? false : value ); options.selected = options.active; if ( options.selected === false ) { options.selected = -1; } }, _eventHandler: function() { this._superApply( arguments ); this.options.selected = this.options.active; if ( this.options.selected === false ) { this.options.selected = -1; } } }); // show and select event $.widget( "ui.tabs", $.ui.tabs, { options: { show: null, select: null }, _create: function() { this._super(); if ( this.options.active !== false ) { this._trigger( "show", null, this._ui( this.active.find( ".ui-tabs-anchor" )[ 0 ], this._getPanelForTab( this.active )[ 0 ] ) ); } }, _trigger: function( type, event, data ) { var tab, panel, ret = this._superApply( arguments ); if ( !ret ) { return false; } if ( type === "beforeActivate" ) { tab = data.newTab.length ? data.newTab : data.oldTab; panel = data.newPanel.length ? data.newPanel : data.oldPanel; ret = this._super( "select", event, { tab: tab.find( ".ui-tabs-anchor" )[ 0], panel: panel[ 0 ], index: tab.closest( "li" ).index() }); } else if ( type === "activate" && data.newTab.length ) { ret = this._super( "show", event, { tab: data.newTab.find( ".ui-tabs-anchor" )[ 0 ], panel: data.newPanel[ 0 ], index: data.newTab.closest( "li" ).index() }); } return ret; } }); // select method $.widget( "ui.tabs", $.ui.tabs, { select: function( index ) { index = this._getIndex( index ); if ( index === -1 ) { if ( this.options.collapsible && this.options.selected !== -1 ) { index = this.options.selected; } else { return; } } this.anchors.eq( index ).trigger( this.options.event + this.eventNamespace ); } }); // cookie option (function() { var listId = 0; $.widget( "ui.tabs", $.ui.tabs, { options: { cookie: null // e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true } }, _create: function() { var options = this.options, active; if ( options.active == null && options.cookie ) { active = parseInt( this._cookie(), 10 ); if ( active === -1 ) { active = false; } options.active = active; } this._super(); }, _cookie: function( active ) { var cookie = [ this.cookie || ( this.cookie = this.options.cookie.name || "ui-tabs-" + (++listId) ) ]; if ( arguments.length ) { cookie.push( active === false ? -1 : active ); cookie.push( this.options.cookie ); } return $.cookie.apply( null, cookie ); }, _refresh: function() { this._super(); if ( this.options.cookie ) { this._cookie( this.options.active, this.options.cookie ); } }, _eventHandler: function() { this._superApply( arguments ); if ( this.options.cookie ) { this._cookie( this.options.active, this.options.cookie ); } }, _destroy: function() { this._super(); if ( this.options.cookie ) { this._cookie( null, this.options.cookie ); } } }); })(); // load event $.widget( "ui.tabs", $.ui.tabs, { _trigger: function( type, event, data ) { var _data = $.extend( {}, data ); if ( type === "load" ) { _data.panel = _data.panel[ 0 ]; _data.tab = _data.tab.find( ".ui-tabs-anchor" )[ 0 ]; } return this._super( type, event, _data ); } }); // fx option // The new animation options (show, hide) conflict with the old show callback. // The old fx option wins over show/hide anyway (always favor back-compat). // If a user wants to use the new animation API, they must give up the old API. $.widget( "ui.tabs", $.ui.tabs, { options: { fx: null // e.g. { height: "toggle", opacity: "toggle", duration: 200 } }, _getFx: function() { var hide, show, fx = this.options.fx; if ( fx ) { if ( $.isArray( fx ) ) { hide = fx[ 0 ]; show = fx[ 1 ]; } else { hide = show = fx; } } return fx ? { show: show, hide: hide } : null; }, _toggle: function( event, eventData ) { var that = this, toShow = eventData.newPanel, toHide = eventData.oldPanel, fx = this._getFx(); if ( !fx ) { return this._super( event, eventData ); } that.running = true; function complete() { that.running = false; that._trigger( "activate", event, eventData ); } function show() { eventData.newTab.closest( "li" ).addClass( "ui-tabs-active ui-state-active" ); if ( toShow.length && fx.show ) { toShow .animate( fx.show, fx.show.duration, function() { complete(); }); } else { toShow.show(); complete(); } } // start out by hiding, then showing, then completing if ( toHide.length && fx.hide ) { toHide.animate( fx.hide, fx.hide.duration, function() { eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" ); show(); }); } else { eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" ); toHide.hide(); show(); } } }); } })( jQuery ); (function( $ ) { var increments = 0; function addDescribedBy( elem, id ) { var describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ ); describedby.push( id ); elem .data( "ui-tooltip-id", id ) .attr( "aria-describedby", $.trim( describedby.join( " " ) ) ); } function removeDescribedBy( elem ) { var id = elem.data( "ui-tooltip-id" ), describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ ), index = $.inArray( id, describedby ); if ( index !== -1 ) { describedby.splice( index, 1 ); } elem.removeData( "ui-tooltip-id" ); describedby = $.trim( describedby.join( " " ) ); if ( describedby ) { elem.attr( "aria-describedby", describedby ); } else { elem.removeAttr( "aria-describedby" ); } } $.widget( "ui.tooltip", { version: "1.9.2", options: { content: function() { return $( this ).attr( "title" ); }, hide: true, // Disabled elements have inconsistent behavior across browsers (#8661) items: "[title]:not([disabled])", position: { my: "left top+15", at: "left bottom", collision: "flipfit flip" }, show: true, tooltipClass: null, track: false, // callbacks close: null, open: null }, _create: function() { this._on({ mouseover: "open", focusin: "open" }); // IDs of generated tooltips, needed for destroy this.tooltips = {}; // IDs of parent tooltips where we removed the title attribute this.parents = {}; if ( this.options.disabled ) { this._disable(); } }, _setOption: function( key, value ) { var that = this; if ( key === "disabled" ) { this[ value ? "_disable" : "_enable" ](); this.options[ key ] = value; // disable element style changes return; } this._super( key, value ); if ( key === "content" ) { $.each( this.tooltips, function( id, element ) { that._updateContent( element ); }); } }, _disable: function() { var that = this; // close open tooltips $.each( this.tooltips, function( id, element ) { var event = $.Event( "blur" ); event.target = event.currentTarget = element[0]; that.close( event, true ); }); // remove title attributes to prevent native tooltips this.element.find( this.options.items ).andSelf().each(function() { var element = $( this ); if ( element.is( "[title]" ) ) { element .data( "ui-tooltip-title", element.attr( "title" ) ) .attr( "title", "" ); } }); }, _enable: function() { // restore title attributes this.element.find( this.options.items ).andSelf().each(function() { var element = $( this ); if ( element.data( "ui-tooltip-title" ) ) { element.attr( "title", element.data( "ui-tooltip-title" ) ); } }); }, open: function( event ) { var that = this, target = $( event ? event.target : this.element ) // we need closest here due to mouseover bubbling, // but always pointing at the same event target .closest( this.options.items ); // No element to show a tooltip for or the tooltip is already open if ( !target.length || target.data( "ui-tooltip-id" ) ) { return; } if ( target.attr( "title" ) ) { target.data( "ui-tooltip-title", target.attr( "title" ) ); } target.data( "ui-tooltip-open", true ); // kill parent tooltips, custom or native, for hover if ( event && event.type === "mouseover" ) { target.parents().each(function() { var parent = $( this ), blurEvent; if ( parent.data( "ui-tooltip-open" ) ) { blurEvent = $.Event( "blur" ); blurEvent.target = blurEvent.currentTarget = this; that.close( blurEvent, true ); } if ( parent.attr( "title" ) ) { parent.uniqueId(); that.parents[ this.id ] = { element: this, title: parent.attr( "title" ) }; parent.attr( "title", "" ); } }); } this._updateContent( target, event ); }, _updateContent: function( target, event ) { var content, contentOption = this.options.content, that = this, eventType = event ? event.type : null; if ( typeof contentOption === "string" ) { return this._open( event, target, contentOption ); } content = contentOption.call( target[0], function( response ) { // ignore async response if tooltip was closed already if ( !target.data( "ui-tooltip-open" ) ) { return; } // IE may instantly serve a cached response for ajax requests // delay this call to _open so the other call to _open runs first that._delay(function() { // jQuery creates a special event for focusin when it doesn't // exist natively. To improve performance, the native event // object is reused and the type is changed. Therefore, we can't // rely on the type being correct after the event finished // bubbling, so we set it back to the previous value. (#8740) if ( event ) { event.type = eventType; } this._open( event, target, response ); }); }); if ( content ) { this._open( event, target, content ); } }, _open: function( event, target, content ) { var tooltip, events, delayedShow, positionOption = $.extend( {}, this.options.position ); if ( !content ) { return; } // Content can be updated multiple times. If the tooltip already // exists, then just update the content and bail. tooltip = this._find( target ); if ( tooltip.length ) { tooltip.find( ".ui-tooltip-content" ).html( content ); return; } // if we have a title, clear it to prevent the native tooltip // we have to check first to avoid defining a title if none exists // (we don't want to cause an element to start matching [title]) // // We use removeAttr only for key events, to allow IE to export the correct // accessible attributes. For mouse events, set to empty string to avoid // native tooltip showing up (happens only when removing inside mouseover). if ( target.is( "[title]" ) ) { if ( event && event.type === "mouseover" ) { target.attr( "title", "" ); } else { target.removeAttr( "title" ); } } tooltip = this._tooltip( target ); addDescribedBy( target, tooltip.attr( "id" ) ); tooltip.find( ".ui-tooltip-content" ).html( content ); function position( event ) { positionOption.of = event; if ( tooltip.is( ":hidden" ) ) { return; } tooltip.position( positionOption ); } if ( this.options.track && event && /^mouse/.test( event.type ) ) { this._on( this.document, { mousemove: position }); // trigger once to override element-relative positioning position( event ); } else { tooltip.position( $.extend({ of: target }, this.options.position ) ); } tooltip.hide(); this._show( tooltip, this.options.show ); // Handle tracking tooltips that are shown with a delay (#8644). As soon // as the tooltip is visible, position the tooltip using the most recent // event. if ( this.options.show && this.options.show.delay ) { delayedShow = setInterval(function() { if ( tooltip.is( ":visible" ) ) { position( positionOption.of ); clearInterval( delayedShow ); } }, $.fx.interval ); } this._trigger( "open", event, { tooltip: tooltip } ); events = { keyup: function( event ) { if ( event.keyCode === $.ui.keyCode.ESCAPE ) { var fakeEvent = $.Event(event); fakeEvent.currentTarget = target[0]; this.close( fakeEvent, true ); } }, remove: function() { this._removeTooltip( tooltip ); } }; if ( !event || event.type === "mouseover" ) { events.mouseleave = "close"; } if ( !event || event.type === "focusin" ) { events.focusout = "close"; } this._on( true, target, events ); }, close: function( event ) { var that = this, target = $( event ? event.currentTarget : this.element ), tooltip = this._find( target ); // disabling closes the tooltip, so we need to track when we're closing // to avoid an infinite loop in case the tooltip becomes disabled on close if ( this.closing ) { return; } // only set title if we had one before (see comment in _open()) if ( target.data( "ui-tooltip-title" ) ) { target.attr( "title", target.data( "ui-tooltip-title" ) ); } removeDescribedBy( target ); tooltip.stop( true ); this._hide( tooltip, this.options.hide, function() { that._removeTooltip( $( this ) ); }); target.removeData( "ui-tooltip-open" ); this._off( target, "mouseleave focusout keyup" ); // Remove 'remove' binding only on delegated targets if ( target[0] !== this.element[0] ) { this._off( target, "remove" ); } this._off( this.document, "mousemove" ); if ( event && event.type === "mouseleave" ) { $.each( this.parents, function( id, parent ) { $( parent.element ).attr( "title", parent.title ); delete that.parents[ id ]; }); } this.closing = true; this._trigger( "close", event, { tooltip: tooltip } ); this.closing = false; }, _tooltip: function( element ) { var id = "ui-tooltip-" + increments++, tooltip = $( "
                                                  " ) .attr({ id: id, role: "tooltip" }) .addClass( "ui-tooltip ui-widget ui-corner-all ui-widget-content " + ( this.options.tooltipClass || "" ) ); $( "
                                                  " ) .addClass( "ui-tooltip-content" ) .appendTo( tooltip ); tooltip.appendTo( this.document[0].body ); if ( $.fn.bgiframe ) { tooltip.bgiframe(); } this.tooltips[ id ] = element; return tooltip; }, _find: function( target ) { var id = target.data( "ui-tooltip-id" ); return id ? $( "#" + id ) : $(); }, _removeTooltip: function( tooltip ) { tooltip.remove(); delete this.tooltips[ tooltip.attr( "id" ) ]; }, _destroy: function() { var that = this; // close open tooltips $.each( this.tooltips, function( id, element ) { // Delegate to close method to handle common cleanup var event = $.Event( "blur" ); event.target = event.currentTarget = element[0]; that.close( event, true ); // Remove immediately; destroying an open tooltip doesn't use the // hide animation $( "#" + id ).remove(); // Restore the title if ( element.data( "ui-tooltip-title" ) ) { element.attr( "title", element.data( "ui-tooltip-title" ) ); element.removeData( "ui-tooltip-title" ); } }); } }); }( jQuery ) ); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/jquery-ui.html ================================================ With jQuery UI

                                                  在jQuery UI Dialog里打开编辑器

                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/jquery.html ================================================ With jQuery

                                                  使用jQuery

                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/jquery.js ================================================ /*! * jQuery JavaScript Library v1.8.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */ (function( window, undefined ) { var // A central reference to the root jQuery(document) rootjQuery, // The deferred used on DOM ready readyList, // Use the correct document accordingly with window argument (sandbox) document = window.document, location = window.location, navigator = window.navigator, // Map over jQuery in case of overwrite _jQuery = window.jQuery, // Map over the $ in case of overwrite _$ = window.$, // Save a reference to some core methods core_push = Array.prototype.push, core_slice = Array.prototype.slice, core_indexOf = Array.prototype.indexOf, core_toString = Object.prototype.toString, core_hasOwn = Object.prototype.hasOwnProperty, core_trim = String.prototype.trim, // Define a local copy of jQuery jQuery = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' return new jQuery.fn.init( selector, context, rootjQuery ); }, // Used for matching numbers core_pnum = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, // Used for detecting and trimming whitespace core_rnotwhite = /\S/, core_rspace = /\s+/, // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, // A simple way to check for HTML strings // Prioritize #id over to avoid XSS via location.hash (#9521) rquickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, // Match a standalone tag rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, // JSON RegExp rvalidchars = /^[\],:{}\s]*$/, rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g, // Matches dashed string for camelizing rmsPrefix = /^-ms-/, rdashAlpha = /-([\da-z])/gi, // Used by jQuery.camelCase as callback to replace() fcamelCase = function( all, letter ) { return ( letter + "" ).toUpperCase(); }, // The ready event handler and self cleanup method DOMContentLoaded = function() { if ( document.addEventListener ) { document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false ); jQuery.ready(); } else if ( document.readyState === "complete" ) { // we're here because readyState === "complete" in oldIE // which is good enough for us to call the dom ready! document.detachEvent( "onreadystatechange", DOMContentLoaded ); jQuery.ready(); } }, // [[Class]] -> type pairs class2type = {}; jQuery.fn = jQuery.prototype = { constructor: jQuery, init: function( selector, context, rootjQuery ) { var match, elem, ret, doc; // Handle $(""), $(null), $(undefined), $(false) if ( !selector ) { return this; } // Handle $(DOMElement) if ( selector.nodeType ) { this.context = this[0] = selector; this.length = 1; return this; } // Handle HTML strings if ( typeof selector === "string" ) { if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { // Assume that strings that start and end with <> are HTML and skip the regex check match = [ null, selector, null ]; } else { match = rquickExpr.exec( selector ); } // Match html or make sure no context is specified for #id if ( match && (match[1] || !context) ) { // HANDLE: $(html) -> $(array) if ( match[1] ) { context = context instanceof jQuery ? context[0] : context; doc = ( context && context.nodeType ? context.ownerDocument || context : document ); // scripts is true for back-compat selector = jQuery.parseHTML( match[1], doc, true ); if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { this.attr.call( selector, context, true ); } return jQuery.merge( this, selector ); // HANDLE: $(#id) } else { elem = document.getElementById( match[2] ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { // Handle the case where IE and Opera return items // by name instead of ID if ( elem.id !== match[2] ) { return rootjQuery.find( selector ); } // Otherwise, we inject the element directly into the jQuery object this.length = 1; this[0] = elem; } this.context = document; this.selector = selector; return this; } // HANDLE: $(expr, $(...)) } else if ( !context || context.jquery ) { return ( context || rootjQuery ).find( selector ); // HANDLE: $(expr, context) // (which is just equivalent to: $(context).find(expr) } else { return this.constructor( context ).find( selector ); } // HANDLE: $(function) // Shortcut for document ready } else if ( jQuery.isFunction( selector ) ) { return rootjQuery.ready( selector ); } if ( selector.selector !== undefined ) { this.selector = selector.selector; this.context = selector.context; } return jQuery.makeArray( selector, this ); }, // Start with an empty selector selector: "", // The current version of jQuery being used jquery: "1.8.3", // The default length of a jQuery object is 0 length: 0, // The number of elements contained in the matched element set size: function() { return this.length; }, toArray: function() { return core_slice.call( this ); }, // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { return num == null ? // Return a 'clean' array this.toArray() : // Return just the object ( num < 0 ? this[ this.length + num ] : this[ num ] ); }, // Take an array of elements and push it onto the stack // (returning the new matched element set) pushStack: function( elems, name, selector ) { // Build a new jQuery matched element set var ret = jQuery.merge( this.constructor(), elems ); // Add the old object onto the stack (as a reference) ret.prevObject = this; ret.context = this.context; if ( name === "find" ) { ret.selector = this.selector + ( this.selector ? " " : "" ) + selector; } else if ( name ) { ret.selector = this.selector + "." + name + "(" + selector + ")"; } // Return the newly-formed element set return ret; }, // Execute a callback for every element in the matched set. // (You can seed the arguments with an array of args, but this is // only used internally.) each: function( callback, args ) { return jQuery.each( this, callback, args ); }, ready: function( fn ) { // Add the callback jQuery.ready.promise().done( fn ); return this; }, eq: function( i ) { i = +i; return i === -1 ? this.slice( i ) : this.slice( i, i + 1 ); }, first: function() { return this.eq( 0 ); }, last: function() { return this.eq( -1 ); }, slice: function() { return this.pushStack( core_slice.apply( this, arguments ), "slice", core_slice.call(arguments).join(",") ); }, map: function( callback ) { return this.pushStack( jQuery.map(this, function( elem, i ) { return callback.call( elem, i, elem ); })); }, end: function() { return this.prevObject || this.constructor(null); }, // For internal use only. // Behaves like an Array's method, not like a jQuery method. push: core_push, sort: [].sort, splice: [].splice }; // Give the init function the jQuery prototype for later instantiation jQuery.fn.init.prototype = jQuery.fn; jQuery.extend = jQuery.fn.extend = function() { var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false; // Handle a deep copy situation if ( typeof target === "boolean" ) { deep = target; target = arguments[1] || {}; // skip the boolean and the target i = 2; } // Handle case when target is a string or something (possible in deep copy) if ( typeof target !== "object" && !jQuery.isFunction(target) ) { target = {}; } // extend jQuery itself if only one argument is passed if ( length === i ) { target = this; --i; } for ( ; i < length; i++ ) { // Only deal with non-null/undefined values if ( (options = arguments[ i ]) != null ) { // Extend the base object for ( name in options ) { src = target[ name ]; copy = options[ name ]; // Prevent never-ending loop if ( target === copy ) { continue; } // Recurse if we're merging plain objects or arrays if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { if ( copyIsArray ) { copyIsArray = false; clone = src && jQuery.isArray(src) ? src : []; } else { clone = src && jQuery.isPlainObject(src) ? src : {}; } // Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy ); // Don't bring in undefined values } else if ( copy !== undefined ) { target[ name ] = copy; } } } } // Return the modified object return target; }; jQuery.extend({ noConflict: function( deep ) { if ( window.$ === jQuery ) { window.$ = _$; } if ( deep && window.jQuery === jQuery ) { window.jQuery = _jQuery; } return jQuery; }, // Is the DOM ready to be used? Set to true once it occurs. isReady: false, // A counter to track how many items to wait for before // the ready event fires. See #6781 readyWait: 1, // Hold (or release) the ready event holdReady: function( hold ) { if ( hold ) { jQuery.readyWait++; } else { jQuery.ready( true ); } }, // Handle when the DOM is ready ready: function( wait ) { // Abort if there are pending holds or we're already ready if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { return; } // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). if ( !document.body ) { return setTimeout( jQuery.ready, 1 ); } // Remember that the DOM is ready jQuery.isReady = true; // If a normal DOM Ready event fired, decrement, and wait if need be if ( wait !== true && --jQuery.readyWait > 0 ) { return; } // If there are functions bound, to execute readyList.resolveWith( document, [ jQuery ] ); // Trigger any bound ready events if ( jQuery.fn.trigger ) { jQuery( document ).trigger("ready").off("ready"); } }, // See test/unit/core.js for details concerning isFunction. // Since version 1.3, DOM methods and functions like alert // aren't supported. They return false on IE (#2968). isFunction: function( obj ) { return jQuery.type(obj) === "function"; }, isArray: Array.isArray || function( obj ) { return jQuery.type(obj) === "array"; }, isWindow: function( obj ) { return obj != null && obj == obj.window; }, isNumeric: function( obj ) { return !isNaN( parseFloat(obj) ) && isFinite( obj ); }, type: function( obj ) { return obj == null ? String( obj ) : class2type[ core_toString.call(obj) ] || "object"; }, isPlainObject: function( obj ) { // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that DOM nodes and window objects don't pass through, as well if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { return false; } try { // Not own constructor property must be Object if ( obj.constructor && !core_hasOwn.call(obj, "constructor") && !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { return false; } } catch ( e ) { // IE8,9 Will throw exceptions on certain host objects #9897 return false; } // Own properties are enumerated firstly, so to speed up, // if last one is own, then all properties are own. var key; for ( key in obj ) {} return key === undefined || core_hasOwn.call( obj, key ); }, isEmptyObject: function( obj ) { var name; for ( name in obj ) { return false; } return true; }, error: function( msg ) { throw new Error( msg ); }, // data: string of html // context (optional): If specified, the fragment will be created in this context, defaults to document // scripts (optional): If true, will include scripts passed in the html string parseHTML: function( data, context, scripts ) { var parsed; if ( !data || typeof data !== "string" ) { return null; } if ( typeof context === "boolean" ) { scripts = context; context = 0; } context = context || document; // Single tag if ( (parsed = rsingleTag.exec( data )) ) { return [ context.createElement( parsed[1] ) ]; } parsed = jQuery.buildFragment( [ data ], context, scripts ? null : [] ); return jQuery.merge( [], (parsed.cacheable ? jQuery.clone( parsed.fragment ) : parsed.fragment).childNodes ); }, parseJSON: function( data ) { if ( !data || typeof data !== "string") { return null; } // Make sure leading/trailing whitespace is removed (IE can't handle it) data = jQuery.trim( data ); // Attempt to parse using the native JSON parser first if ( window.JSON && window.JSON.parse ) { return window.JSON.parse( data ); } // Make sure the incoming data is actual JSON // Logic borrowed from http://json.org/json2.js if ( rvalidchars.test( data.replace( rvalidescape, "@" ) .replace( rvalidtokens, "]" ) .replace( rvalidbraces, "")) ) { return ( new Function( "return " + data ) )(); } jQuery.error( "Invalid JSON: " + data ); }, // Cross-browser xml parsing parseXML: function( data ) { var xml, tmp; if ( !data || typeof data !== "string" ) { return null; } try { if ( window.DOMParser ) { // Standard tmp = new DOMParser(); xml = tmp.parseFromString( data , "text/xml" ); } else { // IE xml = new ActiveXObject( "Microsoft.XMLDOM" ); xml.async = "false"; xml.loadXML( data ); } } catch( e ) { xml = undefined; } if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { jQuery.error( "Invalid XML: " + data ); } return xml; }, noop: function() {}, // Evaluates a script in a global context // Workarounds based on findings by Jim Driscoll // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context globalEval: function( data ) { if ( data && core_rnotwhite.test( data ) ) { // We use execScript on Internet Explorer // We use an anonymous function so that context is window // rather than jQuery in Firefox ( window.execScript || function( data ) { window[ "eval" ].call( window, data ); } )( data ); } }, // Convert dashed to camelCase; used by the css and data modules // Microsoft forgot to hump their vendor prefix (#9572) camelCase: function( string ) { return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); }, nodeName: function( elem, name ) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); }, // args is for internal usage only each: function( obj, callback, args ) { var name, i = 0, length = obj.length, isObj = length === undefined || jQuery.isFunction( obj ); if ( args ) { if ( isObj ) { for ( name in obj ) { if ( callback.apply( obj[ name ], args ) === false ) { break; } } } else { for ( ; i < length; ) { if ( callback.apply( obj[ i++ ], args ) === false ) { break; } } } // A special, fast, case for the most common use of each } else { if ( isObj ) { for ( name in obj ) { if ( callback.call( obj[ name ], name, obj[ name ] ) === false ) { break; } } } else { for ( ; i < length; ) { if ( callback.call( obj[ i ], i, obj[ i++ ] ) === false ) { break; } } } } return obj; }, // Use native String.trim function wherever possible trim: core_trim && !core_trim.call("\uFEFF\xA0") ? function( text ) { return text == null ? "" : core_trim.call( text ); } : // Otherwise use our own trimming functionality function( text ) { return text == null ? "" : ( text + "" ).replace( rtrim, "" ); }, // results is for internal usage only makeArray: function( arr, results ) { var type, ret = results || []; if ( arr != null ) { // The window, strings (and functions) also have 'length' // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930 type = jQuery.type( arr ); if ( arr.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( arr ) ) { core_push.call( ret, arr ); } else { jQuery.merge( ret, arr ); } } return ret; }, inArray: function( elem, arr, i ) { var len; if ( arr ) { if ( core_indexOf ) { return core_indexOf.call( arr, elem, i ); } len = arr.length; i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; for ( ; i < len; i++ ) { // Skip accessing in sparse arrays if ( i in arr && arr[ i ] === elem ) { return i; } } } return -1; }, merge: function( first, second ) { var l = second.length, i = first.length, j = 0; if ( typeof l === "number" ) { for ( ; j < l; j++ ) { first[ i++ ] = second[ j ]; } } else { while ( second[j] !== undefined ) { first[ i++ ] = second[ j++ ]; } } first.length = i; return first; }, grep: function( elems, callback, inv ) { var retVal, ret = [], i = 0, length = elems.length; inv = !!inv; // Go through the array, only saving the items // that pass the validator function for ( ; i < length; i++ ) { retVal = !!callback( elems[ i ], i ); if ( inv !== retVal ) { ret.push( elems[ i ] ); } } return ret; }, // arg is for internal usage only map: function( elems, callback, arg ) { var value, key, ret = [], i = 0, length = elems.length, // jquery objects are treated as arrays isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ; // Go through the array, translating each of the items to their if ( isArray ) { for ( ; i < length; i++ ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret[ ret.length ] = value; } } // Go through every key on the object, } else { for ( key in elems ) { value = callback( elems[ key ], key, arg ); if ( value != null ) { ret[ ret.length ] = value; } } } // Flatten any nested arrays return ret.concat.apply( [], ret ); }, // A global GUID counter for objects guid: 1, // Bind a function to a context, optionally partially applying any // arguments. proxy: function( fn, context ) { var tmp, args, proxy; if ( typeof context === "string" ) { tmp = fn[ context ]; context = fn; fn = tmp; } // Quick check to determine if target is callable, in the spec // this throws a TypeError, but we will just return undefined. if ( !jQuery.isFunction( fn ) ) { return undefined; } // Simulated bind args = core_slice.call( arguments, 2 ); proxy = function() { return fn.apply( context, args.concat( core_slice.call( arguments ) ) ); }; // Set the guid of unique handler to the same of original handler, so it can be removed proxy.guid = fn.guid = fn.guid || jQuery.guid++; return proxy; }, // Multifunctional method to get and set values of a collection // The value/s can optionally be executed if it's a function access: function( elems, fn, key, value, chainable, emptyGet, pass ) { var exec, bulk = key == null, i = 0, length = elems.length; // Sets many values if ( key && typeof key === "object" ) { for ( i in key ) { jQuery.access( elems, fn, i, key[i], 1, emptyGet, value ); } chainable = 1; // Sets one value } else if ( value !== undefined ) { // Optionally, function values get executed if exec is true exec = pass === undefined && jQuery.isFunction( value ); if ( bulk ) { // Bulk operations only iterate when executing function values if ( exec ) { exec = fn; fn = function( elem, key, value ) { return exec.call( jQuery( elem ), value ); }; // Otherwise they run against the entire set } else { fn.call( elems, value ); fn = null; } } if ( fn ) { for (; i < length; i++ ) { fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); } } chainable = 1; } return chainable ? elems : // Gets bulk ? fn.call( elems ) : length ? fn( elems[0], key ) : emptyGet; }, now: function() { return ( new Date() ).getTime(); } }); jQuery.ready.promise = function( obj ) { if ( !readyList ) { readyList = jQuery.Deferred(); // Catch cases where $(document).ready() is called after the browser event has already occurred. // we once tried to use readyState "interactive" here, but it caused issues like the one // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 if ( document.readyState === "complete" ) { // Handle it asynchronously to allow scripts the opportunity to delay ready setTimeout( jQuery.ready, 1 ); // Standards-based browsers support DOMContentLoaded } else if ( document.addEventListener ) { // Use the handy event callback document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); // A fallback to window.onload, that will always work window.addEventListener( "load", jQuery.ready, false ); // If IE event model is used } else { // Ensure firing before onload, maybe late but safe also for iframes document.attachEvent( "onreadystatechange", DOMContentLoaded ); // A fallback to window.onload, that will always work window.attachEvent( "onload", jQuery.ready ); // If IE and not a frame // continually check to see if the document is ready var top = false; try { top = window.frameElement == null && document.documentElement; } catch(e) {} if ( top && top.doScroll ) { (function doScrollCheck() { if ( !jQuery.isReady ) { try { // Use the trick by Diego Perini // http://javascript.nwbox.com/IEContentLoaded/ top.doScroll("left"); } catch(e) { return setTimeout( doScrollCheck, 50 ); } // and execute any waiting functions jQuery.ready(); } })(); } } } return readyList.promise( obj ); }; // Populate the class2type map jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) { class2type[ "[object " + name + "]" ] = name.toLowerCase(); }); // All jQuery objects should point back to these rootjQuery = jQuery(document); // String to Object options format cache var optionsCache = {}; // Convert String-formatted options into Object-formatted ones and store in cache function createOptions( options ) { var object = optionsCache[ options ] = {}; jQuery.each( options.split( core_rspace ), function( _, flag ) { object[ flag ] = true; }); return object; } /* * Create a callback list using the following parameters: * * options: an optional list of space-separated options that will change how * the callback list behaves or a more traditional option object * * By default a callback list will act like an event callback list and can be * "fired" multiple times. * * Possible options: * * once: will ensure the callback list can only be fired once (like a Deferred) * * memory: will keep track of previous values and will call any callback added * after the list has been fired right away with the latest "memorized" * values (like a Deferred) * * unique: will ensure a callback can only be added once (no duplicate in the list) * * stopOnFalse: interrupt callings when a callback returns false * */ jQuery.Callbacks = function( options ) { // Convert options from String-formatted to Object-formatted if needed // (we check in cache first) options = typeof options === "string" ? ( optionsCache[ options ] || createOptions( options ) ) : jQuery.extend( {}, options ); var // Last fire value (for non-forgettable lists) memory, // Flag to know if list was already fired fired, // Flag to know if list is currently firing firing, // First callback to fire (used internally by add and fireWith) firingStart, // End of the loop when firing firingLength, // Index of currently firing callback (modified by remove if needed) firingIndex, // Actual callback list list = [], // Stack of fire calls for repeatable lists stack = !options.once && [], // Fire callbacks fire = function( data ) { memory = options.memory && data; fired = true; firingIndex = firingStart || 0; firingStart = 0; firingLength = list.length; firing = true; for ( ; list && firingIndex < firingLength; firingIndex++ ) { if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { memory = false; // To prevent further calls using add break; } } firing = false; if ( list ) { if ( stack ) { if ( stack.length ) { fire( stack.shift() ); } } else if ( memory ) { list = []; } else { self.disable(); } } }, // Actual Callbacks object self = { // Add a callback or a collection of callbacks to the list add: function() { if ( list ) { // First, we save the current length var start = list.length; (function add( args ) { jQuery.each( args, function( _, arg ) { var type = jQuery.type( arg ); if ( type === "function" ) { if ( !options.unique || !self.has( arg ) ) { list.push( arg ); } } else if ( arg && arg.length && type !== "string" ) { // Inspect recursively add( arg ); } }); })( arguments ); // Do we need to add the callbacks to the // current firing batch? if ( firing ) { firingLength = list.length; // With memory, if we're not firing then // we should call right away } else if ( memory ) { firingStart = start; fire( memory ); } } return this; }, // Remove a callback from the list remove: function() { if ( list ) { jQuery.each( arguments, function( _, arg ) { var index; while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { list.splice( index, 1 ); // Handle firing indexes if ( firing ) { if ( index <= firingLength ) { firingLength--; } if ( index <= firingIndex ) { firingIndex--; } } } }); } return this; }, // Control if a given callback is in the list has: function( fn ) { return jQuery.inArray( fn, list ) > -1; }, // Remove all callbacks from the list empty: function() { list = []; return this; }, // Have the list do nothing anymore disable: function() { list = stack = memory = undefined; return this; }, // Is it disabled? disabled: function() { return !list; }, // Lock the list in its current state lock: function() { stack = undefined; if ( !memory ) { self.disable(); } return this; }, // Is it locked? locked: function() { return !stack; }, // Call all callbacks with the given context and arguments fireWith: function( context, args ) { args = args || []; args = [ context, args.slice ? args.slice() : args ]; if ( list && ( !fired || stack ) ) { if ( firing ) { stack.push( args ); } else { fire( args ); } } return this; }, // Call all the callbacks with the given arguments fire: function() { self.fireWith( this, arguments ); return this; }, // To know if the callbacks have already been called at least once fired: function() { return !!fired; } }; return self; }; jQuery.extend({ Deferred: function( func ) { var tuples = [ // action, add listener, listener list, final state [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], [ "notify", "progress", jQuery.Callbacks("memory") ] ], state = "pending", promise = { state: function() { return state; }, always: function() { deferred.done( arguments ).fail( arguments ); return this; }, then: function( /* fnDone, fnFail, fnProgress */ ) { var fns = arguments; return jQuery.Deferred(function( newDefer ) { jQuery.each( tuples, function( i, tuple ) { var action = tuple[ 0 ], fn = fns[ i ]; // deferred[ done | fail | progress ] for forwarding actions to newDefer deferred[ tuple[1] ]( jQuery.isFunction( fn ) ? function() { var returned = fn.apply( this, arguments ); if ( returned && jQuery.isFunction( returned.promise ) ) { returned.promise() .done( newDefer.resolve ) .fail( newDefer.reject ) .progress( newDefer.notify ); } else { newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] ); } } : newDefer[ action ] ); }); fns = null; }).promise(); }, // Get a promise for this deferred // If obj is provided, the promise aspect is added to the object promise: function( obj ) { return obj != null ? jQuery.extend( obj, promise ) : promise; } }, deferred = {}; // Keep pipe for back-compat promise.pipe = promise.then; // Add list-specific methods jQuery.each( tuples, function( i, tuple ) { var list = tuple[ 2 ], stateString = tuple[ 3 ]; // promise[ done | fail | progress ] = list.add promise[ tuple[1] ] = list.add; // Handle state if ( stateString ) { list.add(function() { // state = [ resolved | rejected ] state = stateString; // [ reject_list | resolve_list ].disable; progress_list.lock }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); } // deferred[ resolve | reject | notify ] = list.fire deferred[ tuple[0] ] = list.fire; deferred[ tuple[0] + "With" ] = list.fireWith; }); // Make the deferred a promise promise.promise( deferred ); // Call given func if any if ( func ) { func.call( deferred, deferred ); } // All done! return deferred; }, // Deferred helper when: function( subordinate /* , ..., subordinateN */ ) { var i = 0, resolveValues = core_slice.call( arguments ), length = resolveValues.length, // the count of uncompleted subordinates remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, // the master Deferred. If resolveValues consist of only a single Deferred, just use that. deferred = remaining === 1 ? subordinate : jQuery.Deferred(), // Update function for both resolve and progress values updateFunc = function( i, contexts, values ) { return function( value ) { contexts[ i ] = this; values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; if( values === progressValues ) { deferred.notifyWith( contexts, values ); } else if ( !( --remaining ) ) { deferred.resolveWith( contexts, values ); } }; }, progressValues, progressContexts, resolveContexts; // add listeners to Deferred subordinates; treat others as resolved if ( length > 1 ) { progressValues = new Array( length ); progressContexts = new Array( length ); resolveContexts = new Array( length ); for ( ; i < length; i++ ) { if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { resolveValues[ i ].promise() .done( updateFunc( i, resolveContexts, resolveValues ) ) .fail( deferred.reject ) .progress( updateFunc( i, progressContexts, progressValues ) ); } else { --remaining; } } } // if we're not waiting on anything, resolve the master if ( !remaining ) { deferred.resolveWith( resolveContexts, resolveValues ); } return deferred.promise(); } }); jQuery.support = (function() { var support, all, a, select, opt, input, fragment, eventName, i, isSupported, clickFn, div = document.createElement("div"); // Setup div.setAttribute( "className", "t" ); div.innerHTML = "
                                                  a"; // Support tests won't run in some limited or non-browser environments all = div.getElementsByTagName("*"); a = div.getElementsByTagName("a")[ 0 ]; if ( !all || !a || !all.length ) { return {}; } // First batch of tests select = document.createElement("select"); opt = select.appendChild( document.createElement("option") ); input = div.getElementsByTagName("input")[ 0 ]; a.style.cssText = "top:1px;float:left;opacity:.5"; support = { // IE strips leading whitespace when .innerHTML is used leadingWhitespace: ( div.firstChild.nodeType === 3 ), // Make sure that tbody elements aren't automatically inserted // IE will insert them into empty tables tbody: !div.getElementsByTagName("tbody").length, // Make sure that link elements get serialized correctly by innerHTML // This requires a wrapper element in IE htmlSerialize: !!div.getElementsByTagName("link").length, // Get the style information from getAttribute // (IE uses .cssText instead) style: /top/.test( a.getAttribute("style") ), // Make sure that URLs aren't manipulated // (IE normalizes it by default) hrefNormalized: ( a.getAttribute("href") === "/a" ), // Make sure that element opacity exists // (IE uses filter instead) // Use a regex to work around a WebKit issue. See #5145 opacity: /^0.5/.test( a.style.opacity ), // Verify style float existence // (IE uses styleFloat instead of cssFloat) cssFloat: !!a.style.cssFloat, // Make sure that if no value is specified for a checkbox // that it defaults to "on". // (WebKit defaults to "" instead) checkOn: ( input.value === "on" ), // Make sure that a selected-by-default option has a working selected property. // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) optSelected: opt.selected, // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) getSetAttribute: div.className !== "t", // Tests for enctype support on a form (#6743) enctype: !!document.createElement("form").enctype, // Makes sure cloning an html5 element does not cause problems // Where outerHTML is undefined, this still works html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>", // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode boxModel: ( document.compatMode === "CSS1Compat" ), // Will be defined later submitBubbles: true, changeBubbles: true, focusinBubbles: false, deleteExpando: true, noCloneEvent: true, inlineBlockNeedsLayout: false, shrinkWrapBlocks: false, reliableMarginRight: true, boxSizingReliable: true, pixelPosition: false }; // Make sure checked status is properly cloned input.checked = true; support.noCloneChecked = input.cloneNode( true ).checked; // Make sure that the options inside disabled selects aren't marked as disabled // (WebKit marks them as disabled) select.disabled = true; support.optDisabled = !opt.disabled; // Test to see if it's possible to delete an expando from an element // Fails in Internet Explorer try { delete div.test; } catch( e ) { support.deleteExpando = false; } if ( !div.addEventListener && div.attachEvent && div.fireEvent ) { div.attachEvent( "onclick", clickFn = function() { // Cloning a node shouldn't copy over any // bound event handlers (IE does this) support.noCloneEvent = false; }); div.cloneNode( true ).fireEvent("onclick"); div.detachEvent( "onclick", clickFn ); } // Check if a radio maintains its value // after being appended to the DOM input = document.createElement("input"); input.value = "t"; input.setAttribute( "type", "radio" ); support.radioValue = input.value === "t"; input.setAttribute( "checked", "checked" ); // #11217 - WebKit loses check when the name is after the checked attribute input.setAttribute( "name", "t" ); div.appendChild( input ); fragment = document.createDocumentFragment(); fragment.appendChild( div.lastChild ); // WebKit doesn't clone checked state correctly in fragments support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; // Check if a disconnected checkbox will retain its checked // value of true after appended to the DOM (IE6/7) support.appendChecked = input.checked; fragment.removeChild( input ); fragment.appendChild( div ); // Technique from Juriy Zaytsev // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/ // We only care about the case where non-standard event systems // are used, namely in IE. Short-circuiting here helps us to // avoid an eval call (in setAttribute) which can cause CSP // to go haywire. See: https://developer.mozilla.org/en/Security/CSP if ( div.attachEvent ) { for ( i in { submit: true, change: true, focusin: true }) { eventName = "on" + i; isSupported = ( eventName in div ); if ( !isSupported ) { div.setAttribute( eventName, "return;" ); isSupported = ( typeof div[ eventName ] === "function" ); } support[ i + "Bubbles" ] = isSupported; } } // Run tests that need a body at doc ready jQuery(function() { var container, div, tds, marginDiv, divReset = "padding:0;margin:0;border:0;display:block;overflow:hidden;", body = document.getElementsByTagName("body")[0]; if ( !body ) { // Return for frameset docs that don't have a body return; } container = document.createElement("div"); container.style.cssText = "visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px"; body.insertBefore( container, body.firstChild ); // Construct the test element div = document.createElement("div"); container.appendChild( div ); // Check if table cells still have offsetWidth/Height when they are set // to display:none and there are still other visible table cells in a // table row; if so, offsetWidth/Height are not reliable for use when // determining if an element has been hidden directly using // display:none (it is still safe to use offsets if a parent element is // hidden; don safety goggles and see bug #4512 for more information). // (only IE 8 fails this test) div.innerHTML = "
                                                  t
                                                  "; tds = div.getElementsByTagName("td"); tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; isSupported = ( tds[ 0 ].offsetHeight === 0 ); tds[ 0 ].style.display = ""; tds[ 1 ].style.display = "none"; // Check if empty table cells still have offsetWidth/Height // (IE <= 8 fail this test) support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); // Check box-sizing and margin behavior div.innerHTML = ""; div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"; support.boxSizing = ( div.offsetWidth === 4 ); support.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== 1 ); // NOTE: To any future maintainer, we've window.getComputedStyle // because jsdom on node.js will break without it. if ( window.getComputedStyle ) { support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; // Check if div with explicit width and no margin-right incorrectly // gets computed margin-right based on width of container. For more // info see bug #3333 // Fails in WebKit before Feb 2011 nightlies // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right marginDiv = document.createElement("div"); marginDiv.style.cssText = div.style.cssText = divReset; marginDiv.style.marginRight = marginDiv.style.width = "0"; div.style.width = "1px"; div.appendChild( marginDiv ); support.reliableMarginRight = !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); } if ( typeof div.style.zoom !== "undefined" ) { // Check if natively block-level elements act like inline-block // elements when setting their display to 'inline' and giving // them layout // (IE < 8 does this) div.innerHTML = ""; div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); // Check if elements with layout shrink-wrap their children // (IE 6 does this) div.style.display = "block"; div.style.overflow = "visible"; div.innerHTML = "
                                                  "; div.firstChild.style.width = "5px"; support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); container.style.zoom = 1; } // Null elements to avoid leaks in IE body.removeChild( container ); container = div = tds = marginDiv = null; }); // Null elements to avoid leaks in IE fragment.removeChild( div ); all = a = select = opt = input = fragment = div = null; return support; })(); var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, rmultiDash = /([A-Z])/g; jQuery.extend({ cache: {}, deletedIds: [], // Remove at next major release (1.9/2.0) uuid: 0, // Unique for each copy of jQuery on the page // Non-digits removed to match rinlinejQuery expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ), // The following elements throw uncatchable exceptions if you // attempt to add expando properties to them. noData: { "embed": true, // Ban all objects except for Flash (which handle expandos) "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", "applet": true }, hasData: function( elem ) { elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; return !!elem && !isEmptyDataObject( elem ); }, data: function( elem, name, data, pvt /* Internal Use Only */ ) { if ( !jQuery.acceptData( elem ) ) { return; } var thisCache, ret, internalKey = jQuery.expando, getByName = typeof name === "string", // We have to handle DOM nodes and JS objects differently because IE6-7 // can't GC object references properly across the DOM-JS boundary isNode = elem.nodeType, // Only DOM nodes need the global jQuery cache; JS object data is // attached directly to the object so GC can occur automatically cache = isNode ? jQuery.cache : elem, // Only defining an ID for JS objects if its cache already exists allows // the code to shortcut on the same path as a DOM node with no cache id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; // Avoid doing any more work than we need to when trying to get data on an // object that has no data at all if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) { return; } if ( !id ) { // Only DOM nodes need a new unique ID for each element since their data // ends up in the global cache if ( isNode ) { elem[ internalKey ] = id = jQuery.deletedIds.pop() || jQuery.guid++; } else { id = internalKey; } } if ( !cache[ id ] ) { cache[ id ] = {}; // Avoids exposing jQuery metadata on plain JS objects when the object // is serialized using JSON.stringify if ( !isNode ) { cache[ id ].toJSON = jQuery.noop; } } // An object can be passed to jQuery.data instead of a key/value pair; this gets // shallow copied over onto the existing cache if ( typeof name === "object" || typeof name === "function" ) { if ( pvt ) { cache[ id ] = jQuery.extend( cache[ id ], name ); } else { cache[ id ].data = jQuery.extend( cache[ id ].data, name ); } } thisCache = cache[ id ]; // jQuery data() is stored in a separate object inside the object's internal data // cache in order to avoid key collisions between internal data and user-defined // data. if ( !pvt ) { if ( !thisCache.data ) { thisCache.data = {}; } thisCache = thisCache.data; } if ( data !== undefined ) { thisCache[ jQuery.camelCase( name ) ] = data; } // Check for both converted-to-camel and non-converted data property names // If a data property was specified if ( getByName ) { // First Try to find as-is property data ret = thisCache[ name ]; // Test for null|undefined property data if ( ret == null ) { // Try to find the camelCased property ret = thisCache[ jQuery.camelCase( name ) ]; } } else { ret = thisCache; } return ret; }, removeData: function( elem, name, pvt /* Internal Use Only */ ) { if ( !jQuery.acceptData( elem ) ) { return; } var thisCache, i, l, isNode = elem.nodeType, // See jQuery.data for more information cache = isNode ? jQuery.cache : elem, id = isNode ? elem[ jQuery.expando ] : jQuery.expando; // If there is already no cache entry for this object, there is no // purpose in continuing if ( !cache[ id ] ) { return; } if ( name ) { thisCache = pvt ? cache[ id ] : cache[ id ].data; if ( thisCache ) { // Support array or space separated string names for data keys if ( !jQuery.isArray( name ) ) { // try the string as a key before any manipulation if ( name in thisCache ) { name = [ name ]; } else { // split the camel cased version by spaces unless a key with the spaces exists name = jQuery.camelCase( name ); if ( name in thisCache ) { name = [ name ]; } else { name = name.split(" "); } } } for ( i = 0, l = name.length; i < l; i++ ) { delete thisCache[ name[i] ]; } // If there is no data left in the cache, we want to continue // and let the cache object itself get destroyed if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) { return; } } } // See jQuery.data for more information if ( !pvt ) { delete cache[ id ].data; // Don't destroy the parent cache unless the internal data object // had been the only thing left in it if ( !isEmptyDataObject( cache[ id ] ) ) { return; } } // Destroy the cache if ( isNode ) { jQuery.cleanData( [ elem ], true ); // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) } else if ( jQuery.support.deleteExpando || cache != cache.window ) { delete cache[ id ]; // When all else fails, null } else { cache[ id ] = null; } }, // For internal use only. _data: function( elem, name, data ) { return jQuery.data( elem, name, data, true ); }, // A method for determining if a DOM node can handle the data expando acceptData: function( elem ) { var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ]; // nodes accept data unless otherwise specified; rejection can be conditional return !noData || noData !== true && elem.getAttribute("classid") === noData; } }); jQuery.fn.extend({ data: function( key, value ) { var parts, part, attr, name, l, elem = this[0], i = 0, data = null; // Gets all values if ( key === undefined ) { if ( this.length ) { data = jQuery.data( elem ); if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { attr = elem.attributes; for ( l = attr.length; i < l; i++ ) { name = attr[i].name; if ( !name.indexOf( "data-" ) ) { name = jQuery.camelCase( name.substring(5) ); dataAttr( elem, name, data[ name ] ); } } jQuery._data( elem, "parsedAttrs", true ); } } return data; } // Sets multiple values if ( typeof key === "object" ) { return this.each(function() { jQuery.data( this, key ); }); } parts = key.split( ".", 2 ); parts[1] = parts[1] ? "." + parts[1] : ""; part = parts[1] + "!"; return jQuery.access( this, function( value ) { if ( value === undefined ) { data = this.triggerHandler( "getData" + part, [ parts[0] ] ); // Try to fetch any internally stored data first if ( data === undefined && elem ) { data = jQuery.data( elem, key ); data = dataAttr( elem, key, data ); } return data === undefined && parts[1] ? this.data( parts[0] ) : data; } parts[1] = value; this.each(function() { var self = jQuery( this ); self.triggerHandler( "setData" + part, parts ); jQuery.data( this, key, value ); self.triggerHandler( "changeData" + part, parts ); }); }, null, value, arguments.length > 1, null, false ); }, removeData: function( key ) { return this.each(function() { jQuery.removeData( this, key ); }); } }); function dataAttr( elem, key, data ) { // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); data = elem.getAttribute( name ); if ( typeof data === "string" ) { try { data = data === "true" ? true : data === "false" ? false : data === "null" ? null : // Only convert to a number if it doesn't change the string +data + "" === data ? +data : rbrace.test( data ) ? jQuery.parseJSON( data ) : data; } catch( e ) {} // Make sure we set the data so it isn't changed later jQuery.data( elem, key, data ); } else { data = undefined; } } return data; } // checks a cache object for emptiness function isEmptyDataObject( obj ) { var name; for ( name in obj ) { // if the public data object is empty, the private is still empty if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { continue; } if ( name !== "toJSON" ) { return false; } } return true; } jQuery.extend({ queue: function( elem, type, data ) { var queue; if ( elem ) { type = ( type || "fx" ) + "queue"; queue = jQuery._data( elem, type ); // Speed up dequeue by getting out quickly if this is just a lookup if ( data ) { if ( !queue || jQuery.isArray(data) ) { queue = jQuery._data( elem, type, jQuery.makeArray(data) ); } else { queue.push( data ); } } return queue || []; } }, dequeue: function( elem, type ) { type = type || "fx"; var queue = jQuery.queue( elem, type ), startLength = queue.length, fn = queue.shift(), hooks = jQuery._queueHooks( elem, type ), next = function() { jQuery.dequeue( elem, type ); }; // If the fx queue is dequeued, always remove the progress sentinel if ( fn === "inprogress" ) { fn = queue.shift(); startLength--; } if ( fn ) { // Add a progress sentinel to prevent the fx queue from being // automatically dequeued if ( type === "fx" ) { queue.unshift( "inprogress" ); } // clear up the last queue stop function delete hooks.stop; fn.call( elem, next, hooks ); } if ( !startLength && hooks ) { hooks.empty.fire(); } }, // not intended for public consumption - generates a queueHooks object, or returns the current one _queueHooks: function( elem, type ) { var key = type + "queueHooks"; return jQuery._data( elem, key ) || jQuery._data( elem, key, { empty: jQuery.Callbacks("once memory").add(function() { jQuery.removeData( elem, type + "queue", true ); jQuery.removeData( elem, key, true ); }) }); } }); jQuery.fn.extend({ queue: function( type, data ) { var setter = 2; if ( typeof type !== "string" ) { data = type; type = "fx"; setter--; } if ( arguments.length < setter ) { return jQuery.queue( this[0], type ); } return data === undefined ? this : this.each(function() { var queue = jQuery.queue( this, type, data ); // ensure a hooks for this queue jQuery._queueHooks( this, type ); if ( type === "fx" && queue[0] !== "inprogress" ) { jQuery.dequeue( this, type ); } }); }, dequeue: function( type ) { return this.each(function() { jQuery.dequeue( this, type ); }); }, // Based off of the plugin by Clint Helfers, with permission. // http://blindsignals.com/index.php/2009/07/jquery-delay/ delay: function( time, type ) { time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; type = type || "fx"; return this.queue( type, function( next, hooks ) { var timeout = setTimeout( next, time ); hooks.stop = function() { clearTimeout( timeout ); }; }); }, clearQueue: function( type ) { return this.queue( type || "fx", [] ); }, // Get a promise resolved when queues of a certain type // are emptied (fx is the type by default) promise: function( type, obj ) { var tmp, count = 1, defer = jQuery.Deferred(), elements = this, i = this.length, resolve = function() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } }; if ( typeof type !== "string" ) { obj = type; type = undefined; } type = type || "fx"; while( i-- ) { tmp = jQuery._data( elements[ i ], type + "queueHooks" ); if ( tmp && tmp.empty ) { count++; tmp.empty.add( resolve ); } } resolve(); return defer.promise( obj ); } }); var nodeHook, boolHook, fixSpecified, rclass = /[\t\r\n]/g, rreturn = /\r/g, rtype = /^(?:button|input)$/i, rfocusable = /^(?:button|input|object|select|textarea)$/i, rclickable = /^a(?:rea|)$/i, rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, getSetAttribute = jQuery.support.getSetAttribute; jQuery.fn.extend({ attr: function( name, value ) { return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); }, removeAttr: function( name ) { return this.each(function() { jQuery.removeAttr( this, name ); }); }, prop: function( name, value ) { return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); }, removeProp: function( name ) { name = jQuery.propFix[ name ] || name; return this.each(function() { // try/catch handles cases where IE balks (such as removing a property on window) try { this[ name ] = undefined; delete this[ name ]; } catch( e ) {} }); }, addClass: function( value ) { var classNames, i, l, elem, setClass, c, cl; if ( jQuery.isFunction( value ) ) { return this.each(function( j ) { jQuery( this ).addClass( value.call(this, j, this.className) ); }); } if ( value && typeof value === "string" ) { classNames = value.split( core_rspace ); for ( i = 0, l = this.length; i < l; i++ ) { elem = this[ i ]; if ( elem.nodeType === 1 ) { if ( !elem.className && classNames.length === 1 ) { elem.className = value; } else { setClass = " " + elem.className + " "; for ( c = 0, cl = classNames.length; c < cl; c++ ) { if ( setClass.indexOf( " " + classNames[ c ] + " " ) < 0 ) { setClass += classNames[ c ] + " "; } } elem.className = jQuery.trim( setClass ); } } } } return this; }, removeClass: function( value ) { var removes, className, elem, c, cl, i, l; if ( jQuery.isFunction( value ) ) { return this.each(function( j ) { jQuery( this ).removeClass( value.call(this, j, this.className) ); }); } if ( (value && typeof value === "string") || value === undefined ) { removes = ( value || "" ).split( core_rspace ); for ( i = 0, l = this.length; i < l; i++ ) { elem = this[ i ]; if ( elem.nodeType === 1 && elem.className ) { className = (" " + elem.className + " ").replace( rclass, " " ); // loop over each item in the removal list for ( c = 0, cl = removes.length; c < cl; c++ ) { // Remove until there is nothing to remove, while ( className.indexOf(" " + removes[ c ] + " ") >= 0 ) { className = className.replace( " " + removes[ c ] + " " , " " ); } } elem.className = value ? jQuery.trim( className ) : ""; } } } return this; }, toggleClass: function( value, stateVal ) { var type = typeof value, isBool = typeof stateVal === "boolean"; if ( jQuery.isFunction( value ) ) { return this.each(function( i ) { jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); }); } return this.each(function() { if ( type === "string" ) { // toggle individual class names var className, i = 0, self = jQuery( this ), state = stateVal, classNames = value.split( core_rspace ); while ( (className = classNames[ i++ ]) ) { // check each className given, space separated list state = isBool ? state : !self.hasClass( className ); self[ state ? "addClass" : "removeClass" ]( className ); } } else if ( type === "undefined" || type === "boolean" ) { if ( this.className ) { // store className if set jQuery._data( this, "__className__", this.className ); } // toggle whole className this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; } }); }, hasClass: function( selector ) { var className = " " + selector + " ", i = 0, l = this.length; for ( ; i < l; i++ ) { if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { return true; } } return false; }, val: function( value ) { var hooks, ret, isFunction, elem = this[0]; if ( !arguments.length ) { if ( elem ) { hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { return ret; } ret = elem.value; return typeof ret === "string" ? // handle most common string cases ret.replace(rreturn, "") : // handle cases where value is null/undef or number ret == null ? "" : ret; } return; } isFunction = jQuery.isFunction( value ); return this.each(function( i ) { var val, self = jQuery(this); if ( this.nodeType !== 1 ) { return; } if ( isFunction ) { val = value.call( this, i, self.val() ); } else { val = value; } // Treat null/undefined as ""; convert numbers to string if ( val == null ) { val = ""; } else if ( typeof val === "number" ) { val += ""; } else if ( jQuery.isArray( val ) ) { val = jQuery.map(val, function ( value ) { return value == null ? "" : value + ""; }); } hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; // If set returns undefined, fall back to normal setting if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { this.value = val; } }); } }); jQuery.extend({ valHooks: { option: { get: function( elem ) { // attributes.value is undefined in Blackberry 4.7 but // uses .value. See #6932 var val = elem.attributes.value; return !val || val.specified ? elem.value : elem.text; } }, select: { get: function( elem ) { var value, option, options = elem.options, index = elem.selectedIndex, one = elem.type === "select-one" || index < 0, values = one ? null : [], max = one ? index + 1 : options.length, i = index < 0 ? max : one ? index : 0; // Loop through all the selected options for ( ; i < max; i++ ) { option = options[ i ]; // oldIE doesn't update selected after form reset (#2551) if ( ( option.selected || i === index ) && // Don't return options that are disabled or in a disabled optgroup ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { // Get the specific value for the option value = jQuery( option ).val(); // We don't need an array for one selects if ( one ) { return value; } // Multi-Selects return an array values.push( value ); } } return values; }, set: function( elem, value ) { var values = jQuery.makeArray( value ); jQuery(elem).find("option").each(function() { this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0; }); if ( !values.length ) { elem.selectedIndex = -1; } return values; } } }, // Unused in 1.8, left in so attrFn-stabbers won't die; remove in 1.9 attrFn: {}, attr: function( elem, name, value, pass ) { var ret, hooks, notxml, nType = elem.nodeType; // don't get/set attributes on text, comment and attribute nodes if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { return; } if ( pass && jQuery.isFunction( jQuery.fn[ name ] ) ) { return jQuery( elem )[ name ]( value ); } // Fallback to prop when attributes are not supported if ( typeof elem.getAttribute === "undefined" ) { return jQuery.prop( elem, name, value ); } notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); // All attributes are lowercase // Grab necessary hook if one is defined if ( notxml ) { name = name.toLowerCase(); hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook ); } if ( value !== undefined ) { if ( value === null ) { jQuery.removeAttr( elem, name ); return; } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) { return ret; } else { elem.setAttribute( name, value + "" ); return value; } } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) { return ret; } else { ret = elem.getAttribute( name ); // Non-existent attributes return null, we normalize to undefined return ret === null ? undefined : ret; } }, removeAttr: function( elem, value ) { var propName, attrNames, name, isBool, i = 0; if ( value && elem.nodeType === 1 ) { attrNames = value.split( core_rspace ); for ( ; i < attrNames.length; i++ ) { name = attrNames[ i ]; if ( name ) { propName = jQuery.propFix[ name ] || name; isBool = rboolean.test( name ); // See #9699 for explanation of this approach (setting first, then removal) // Do not do this for boolean attributes (see #10870) if ( !isBool ) { jQuery.attr( elem, name, "" ); } elem.removeAttribute( getSetAttribute ? name : propName ); // Set corresponding property to false for boolean attributes if ( isBool && propName in elem ) { elem[ propName ] = false; } } } } }, attrHooks: { type: { set: function( elem, value ) { // We can't allow the type property to be changed (since it causes problems in IE) if ( rtype.test( elem.nodeName ) && elem.parentNode ) { jQuery.error( "type property can't be changed" ); } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { // Setting the type on a radio button after the value resets the value in IE6-9 // Reset value to it's default in case type is set after value // This is for element creation var val = elem.value; elem.setAttribute( "type", value ); if ( val ) { elem.value = val; } return value; } } }, // Use the value property for back compat // Use the nodeHook for button elements in IE6/7 (#1954) value: { get: function( elem, name ) { if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { return nodeHook.get( elem, name ); } return name in elem ? elem.value : null; }, set: function( elem, value, name ) { if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { return nodeHook.set( elem, value, name ); } // Does not return so that setAttribute is also used elem.value = value; } } }, propFix: { tabindex: "tabIndex", readonly: "readOnly", "for": "htmlFor", "class": "className", maxlength: "maxLength", cellspacing: "cellSpacing", cellpadding: "cellPadding", rowspan: "rowSpan", colspan: "colSpan", usemap: "useMap", frameborder: "frameBorder", contenteditable: "contentEditable" }, prop: function( elem, name, value ) { var ret, hooks, notxml, nType = elem.nodeType; // don't get/set properties on text, comment and attribute nodes if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { return; } notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); if ( notxml ) { // Fix name and attach hooks name = jQuery.propFix[ name ] || name; hooks = jQuery.propHooks[ name ]; } if ( value !== undefined ) { if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { return ret; } else { return ( elem[ name ] = value ); } } else { if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { return ret; } else { return elem[ name ]; } } }, propHooks: { tabIndex: { get: function( elem ) { // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ var attributeNode = elem.getAttributeNode("tabindex"); return attributeNode && attributeNode.specified ? parseInt( attributeNode.value, 10 ) : rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? 0 : undefined; } } } }); // Hook for boolean attributes boolHook = { get: function( elem, name ) { // Align boolean attributes with corresponding properties // Fall back to attribute presence where some booleans are not supported var attrNode, property = jQuery.prop( elem, name ); return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ? name.toLowerCase() : undefined; }, set: function( elem, value, name ) { var propName; if ( value === false ) { // Remove boolean attributes when set to false jQuery.removeAttr( elem, name ); } else { // value is true since we know at this point it's type boolean and not false // Set boolean attributes to the same name and set the DOM property propName = jQuery.propFix[ name ] || name; if ( propName in elem ) { // Only set the IDL specifically if it already exists on the element elem[ propName ] = true; } elem.setAttribute( name, name.toLowerCase() ); } return name; } }; // IE6/7 do not support getting/setting some attributes with get/setAttribute if ( !getSetAttribute ) { fixSpecified = { name: true, id: true, coords: true }; // Use this for any attribute in IE6/7 // This fixes almost every IE6/7 issue nodeHook = jQuery.valHooks.button = { get: function( elem, name ) { var ret; ret = elem.getAttributeNode( name ); return ret && ( fixSpecified[ name ] ? ret.value !== "" : ret.specified ) ? ret.value : undefined; }, set: function( elem, value, name ) { // Set the existing or create a new attribute node var ret = elem.getAttributeNode( name ); if ( !ret ) { ret = document.createAttribute( name ); elem.setAttributeNode( ret ); } return ( ret.value = value + "" ); } }; // Set width and height to auto instead of 0 on empty string( Bug #8150 ) // This is for removals jQuery.each([ "width", "height" ], function( i, name ) { jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { set: function( elem, value ) { if ( value === "" ) { elem.setAttribute( name, "auto" ); return value; } } }); }); // Set contenteditable to false on removals(#10429) // Setting to empty string throws an error as an invalid value jQuery.attrHooks.contenteditable = { get: nodeHook.get, set: function( elem, value, name ) { if ( value === "" ) { value = "false"; } nodeHook.set( elem, value, name ); } }; } // Some attributes require a special call on IE if ( !jQuery.support.hrefNormalized ) { jQuery.each([ "href", "src", "width", "height" ], function( i, name ) { jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { get: function( elem ) { var ret = elem.getAttribute( name, 2 ); return ret === null ? undefined : ret; } }); }); } if ( !jQuery.support.style ) { jQuery.attrHooks.style = { get: function( elem ) { // Return undefined in the case of empty string // Normalize to lowercase since IE uppercases css property names return elem.style.cssText.toLowerCase() || undefined; }, set: function( elem, value ) { return ( elem.style.cssText = value + "" ); } }; } // Safari mis-reports the default selected property of an option // Accessing the parent's selectedIndex property fixes it if ( !jQuery.support.optSelected ) { jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, { get: function( elem ) { var parent = elem.parentNode; if ( parent ) { parent.selectedIndex; // Make sure that it also works with optgroups, see #5701 if ( parent.parentNode ) { parent.parentNode.selectedIndex; } } return null; } }); } // IE6/7 call enctype encoding if ( !jQuery.support.enctype ) { jQuery.propFix.enctype = "encoding"; } // Radios and checkboxes getter/setter if ( !jQuery.support.checkOn ) { jQuery.each([ "radio", "checkbox" ], function() { jQuery.valHooks[ this ] = { get: function( elem ) { // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified return elem.getAttribute("value") === null ? "on" : elem.value; } }; }); } jQuery.each([ "radio", "checkbox" ], function() { jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], { set: function( elem, value ) { if ( jQuery.isArray( value ) ) { return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); } } }); }); var rformElems = /^(?:textarea|input|select)$/i, rtypenamespace = /^([^\.]*|)(?:\.(.+)|)$/, rhoverHack = /(?:^|\s)hover(\.\S+|)\b/, rkeyEvent = /^key/, rmouseEvent = /^(?:mouse|contextmenu)|click/, rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, hoverHack = function( events ) { return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" ); }; /* * Helper functions for managing events -- not part of the public interface. * Props to Dean Edwards' addEvent library for many of the ideas. */ jQuery.event = { add: function( elem, types, handler, data, selector ) { var elemData, eventHandle, events, t, tns, type, namespaces, handleObj, handleObjIn, handlers, special; // Don't attach events to noData or text/comment nodes (allow plain objects tho) if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) { return; } // Caller can pass in an object of custom data in lieu of the handler if ( handler.handler ) { handleObjIn = handler; handler = handleObjIn.handler; selector = handleObjIn.selector; } // Make sure that the handler has a unique ID, used to find/remove it later if ( !handler.guid ) { handler.guid = jQuery.guid++; } // Init the element's event structure and main handler, if this is the first events = elemData.events; if ( !events ) { elemData.events = events = {}; } eventHandle = elemData.handle; if ( !eventHandle ) { elemData.handle = eventHandle = function( e ) { // Discard the second event of a jQuery.event.trigger() and // when an event is called after a page has unloaded return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ? jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : undefined; }; // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events eventHandle.elem = elem; } // Handle multiple events separated by a space // jQuery(...).bind("mouseover mouseout", fn); types = jQuery.trim( hoverHack(types) ).split( " " ); for ( t = 0; t < types.length; t++ ) { tns = rtypenamespace.exec( types[t] ) || []; type = tns[1]; namespaces = ( tns[2] || "" ).split( "." ).sort(); // If event changes its type, use the special event handlers for the changed type special = jQuery.event.special[ type ] || {}; // If selector defined, determine special event api type, otherwise given type type = ( selector ? special.delegateType : special.bindType ) || type; // Update special based on newly reset type special = jQuery.event.special[ type ] || {}; // handleObj is passed to all event handlers handleObj = jQuery.extend({ type: type, origType: tns[1], data: data, handler: handler, guid: handler.guid, selector: selector, needsContext: selector && jQuery.expr.match.needsContext.test( selector ), namespace: namespaces.join(".") }, handleObjIn ); // Init the event handler queue if we're the first handlers = events[ type ]; if ( !handlers ) { handlers = events[ type ] = []; handlers.delegateCount = 0; // Only use addEventListener/attachEvent if the special events handler returns false if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { // Bind the global event handler to the element if ( elem.addEventListener ) { elem.addEventListener( type, eventHandle, false ); } else if ( elem.attachEvent ) { elem.attachEvent( "on" + type, eventHandle ); } } } if ( special.add ) { special.add.call( elem, handleObj ); if ( !handleObj.handler.guid ) { handleObj.handler.guid = handler.guid; } } // Add to the element's handler list, delegates in front if ( selector ) { handlers.splice( handlers.delegateCount++, 0, handleObj ); } else { handlers.push( handleObj ); } // Keep track of which events have ever been used, for event optimization jQuery.event.global[ type ] = true; } // Nullify elem to prevent memory leaks in IE elem = null; }, global: {}, // Detach an event or set of events from an element remove: function( elem, types, handler, selector, mappedTypes ) { var t, tns, type, origType, namespaces, origCount, j, events, special, eventType, handleObj, elemData = jQuery.hasData( elem ) && jQuery._data( elem ); if ( !elemData || !(events = elemData.events) ) { return; } // Once for each type.namespace in types; type may be omitted types = jQuery.trim( hoverHack( types || "" ) ).split(" "); for ( t = 0; t < types.length; t++ ) { tns = rtypenamespace.exec( types[t] ) || []; type = origType = tns[1]; namespaces = tns[2]; // Unbind all events (on this namespace, if provided) for the element if ( !type ) { for ( type in events ) { jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); } continue; } special = jQuery.event.special[ type ] || {}; type = ( selector? special.delegateType : special.bindType ) || type; eventType = events[ type ] || []; origCount = eventType.length; namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.|)") + "(\\.|$)") : null; // Remove matching events for ( j = 0; j < eventType.length; j++ ) { handleObj = eventType[ j ]; if ( ( mappedTypes || origType === handleObj.origType ) && ( !handler || handler.guid === handleObj.guid ) && ( !namespaces || namespaces.test( handleObj.namespace ) ) && ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { eventType.splice( j--, 1 ); if ( handleObj.selector ) { eventType.delegateCount--; } if ( special.remove ) { special.remove.call( elem, handleObj ); } } } // Remove generic event handler if we removed something and no more handlers exist // (avoids potential for endless recursion during removal of special event handlers) if ( eventType.length === 0 && origCount !== eventType.length ) { if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { jQuery.removeEvent( elem, type, elemData.handle ); } delete events[ type ]; } } // Remove the expando if it's no longer used if ( jQuery.isEmptyObject( events ) ) { delete elemData.handle; // removeData also checks for emptiness and clears the expando if empty // so use it instead of delete jQuery.removeData( elem, "events", true ); } }, // Events that are safe to short-circuit if no handlers are attached. // Native DOM events should not be added, they may have inline handlers. customEvent: { "getData": true, "setData": true, "changeData": true }, trigger: function( event, data, elem, onlyHandlers ) { // Don't do events on text and comment nodes if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) { return; } // Event object or event type var cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType, type = event.type || event, namespaces = []; // focus/blur morphs to focusin/out; ensure we're not firing them right now if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { return; } if ( type.indexOf( "!" ) >= 0 ) { // Exclusive events trigger only for the exact event (no namespaces) type = type.slice(0, -1); exclusive = true; } if ( type.indexOf( "." ) >= 0 ) { // Namespaced trigger; create a regexp to match event type in handle() namespaces = type.split("."); type = namespaces.shift(); namespaces.sort(); } if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) { // No jQuery handlers for this event type, and it can't have inline handlers return; } // Caller can pass in an Event, Object, or just an event type string event = typeof event === "object" ? // jQuery.Event object event[ jQuery.expando ] ? event : // Object literal new jQuery.Event( type, event ) : // Just the event type (string) new jQuery.Event( type ); event.type = type; event.isTrigger = true; event.exclusive = exclusive; event.namespace = namespaces.join( "." ); event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null; ontype = type.indexOf( ":" ) < 0 ? "on" + type : ""; // Handle a global trigger if ( !elem ) { // TODO: Stop taunting the data cache; remove global events and always attach to document cache = jQuery.cache; for ( i in cache ) { if ( cache[ i ].events && cache[ i ].events[ type ] ) { jQuery.event.trigger( event, data, cache[ i ].handle.elem, true ); } } return; } // Clean up the event in case it is being reused event.result = undefined; if ( !event.target ) { event.target = elem; } // Clone any incoming data and prepend the event, creating the handler arg list data = data != null ? jQuery.makeArray( data ) : []; data.unshift( event ); // Allow special events to draw outside the lines special = jQuery.event.special[ type ] || {}; if ( special.trigger && special.trigger.apply( elem, data ) === false ) { return; } // Determine event propagation path in advance, per W3C events spec (#9951) // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) eventPath = [[ elem, special.bindType || type ]]; if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { bubbleType = special.delegateType || type; cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode; for ( old = elem; cur; cur = cur.parentNode ) { eventPath.push([ cur, bubbleType ]); old = cur; } // Only add window if we got to document (e.g., not plain obj or detached DOM) if ( old === (elem.ownerDocument || document) ) { eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]); } } // Fire handlers on the event path for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) { cur = eventPath[i][0]; event.type = eventPath[i][1]; handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); if ( handle ) { handle.apply( cur, data ); } // Note that this is a bare JS function and not a jQuery handler handle = ontype && cur[ ontype ]; if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { event.preventDefault(); } } event.type = type; // If nobody prevented the default action, do it now if ( !onlyHandlers && !event.isDefaultPrevented() ) { if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) && !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) { // Call a native DOM method on the target with the same name name as the event. // Can't use an .isFunction() check here because IE6/7 fails that test. // Don't do default actions on window, that's where global variables be (#6170) // IE<9 dies on focus/blur to hidden element (#1486) if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) { // Don't re-trigger an onFOO event when we call its FOO() method old = elem[ ontype ]; if ( old ) { elem[ ontype ] = null; } // Prevent re-triggering of the same event, since we already bubbled it above jQuery.event.triggered = type; elem[ type ](); jQuery.event.triggered = undefined; if ( old ) { elem[ ontype ] = old; } } } } return event.result; }, dispatch: function( event ) { // Make a writable jQuery.Event from the native event object event = jQuery.event.fix( event || window.event ); var i, j, cur, ret, selMatch, matched, matches, handleObj, sel, related, handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []), delegateCount = handlers.delegateCount, args = core_slice.call( arguments ), run_all = !event.exclusive && !event.namespace, special = jQuery.event.special[ event.type ] || {}, handlerQueue = []; // Use the fix-ed jQuery.Event rather than the (read-only) native event args[0] = event; event.delegateTarget = this; // Call the preDispatch hook for the mapped type, and let it bail if desired if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { return; } // Determine handlers that should run if there are delegated events // Avoid non-left-click bubbling in Firefox (#3861) if ( delegateCount && !(event.button && event.type === "click") ) { for ( cur = event.target; cur != this; cur = cur.parentNode || this ) { // Don't process clicks (ONLY) on disabled elements (#6911, #8165, #11382, #11764) if ( cur.disabled !== true || event.type !== "click" ) { selMatch = {}; matches = []; for ( i = 0; i < delegateCount; i++ ) { handleObj = handlers[ i ]; sel = handleObj.selector; if ( selMatch[ sel ] === undefined ) { selMatch[ sel ] = handleObj.needsContext ? jQuery( sel, this ).index( cur ) >= 0 : jQuery.find( sel, this, null, [ cur ] ).length; } if ( selMatch[ sel ] ) { matches.push( handleObj ); } } if ( matches.length ) { handlerQueue.push({ elem: cur, matches: matches }); } } } } // Add the remaining (directly-bound) handlers if ( handlers.length > delegateCount ) { handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) }); } // Run delegates first; they may want to stop propagation beneath us for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) { matched = handlerQueue[ i ]; event.currentTarget = matched.elem; for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) { handleObj = matched.matches[ j ]; // Triggered event must either 1) be non-exclusive and have no namespace, or // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) { event.data = handleObj.data; event.handleObj = handleObj; ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) .apply( matched.elem, args ); if ( ret !== undefined ) { event.result = ret; if ( ret === false ) { event.preventDefault(); event.stopPropagation(); } } } } } // Call the postDispatch hook for the mapped type if ( special.postDispatch ) { special.postDispatch.call( this, event ); } return event.result; }, // Includes some event props shared by KeyEvent and MouseEvent // *** attrChange attrName relatedNode srcElement are not normalized, non-W3C, deprecated, will be removed in 1.8 *** props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), fixHooks: {}, keyHooks: { props: "char charCode key keyCode".split(" "), filter: function( event, original ) { // Add which for key events if ( event.which == null ) { event.which = original.charCode != null ? original.charCode : original.keyCode; } return event; } }, mouseHooks: { props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), filter: function( event, original ) { var eventDoc, doc, body, button = original.button, fromElement = original.fromElement; // Calculate pageX/Y if missing and clientX/Y available if ( event.pageX == null && original.clientX != null ) { eventDoc = event.target.ownerDocument || document; doc = eventDoc.documentElement; body = eventDoc.body; event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); } // Add relatedTarget, if necessary if ( !event.relatedTarget && fromElement ) { event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; } // Add which for click: 1 === left; 2 === middle; 3 === right // Note: button is not normalized, so don't use it if ( !event.which && button !== undefined ) { event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); } return event; } }, fix: function( event ) { if ( event[ jQuery.expando ] ) { return event; } // Create a writable copy of the event object and normalize some properties var i, prop, originalEvent = event, fixHook = jQuery.event.fixHooks[ event.type ] || {}, copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; event = jQuery.Event( originalEvent ); for ( i = copy.length; i; ) { prop = copy[ --i ]; event[ prop ] = originalEvent[ prop ]; } // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2) if ( !event.target ) { event.target = originalEvent.srcElement || document; } // Target should not be a text node (#504, Safari) if ( event.target.nodeType === 3 ) { event.target = event.target.parentNode; } // For mouse/key events, metaKey==false if it's undefined (#3368, #11328; IE6/7/8) event.metaKey = !!event.metaKey; return fixHook.filter? fixHook.filter( event, originalEvent ) : event; }, special: { load: { // Prevent triggered image.load events from bubbling to window.load noBubble: true }, focus: { delegateType: "focusin" }, blur: { delegateType: "focusout" }, beforeunload: { setup: function( data, namespaces, eventHandle ) { // We only want to do this special case on windows if ( jQuery.isWindow( this ) ) { this.onbeforeunload = eventHandle; } }, teardown: function( namespaces, eventHandle ) { if ( this.onbeforeunload === eventHandle ) { this.onbeforeunload = null; } } } }, simulate: function( type, elem, event, bubble ) { // Piggyback on a donor event to simulate a different one. // Fake originalEvent to avoid donor's stopPropagation, but if the // simulated event prevents default then we do the same on the donor. var e = jQuery.extend( new jQuery.Event(), event, { type: type, isSimulated: true, originalEvent: {} } ); if ( bubble ) { jQuery.event.trigger( e, null, elem ); } else { jQuery.event.dispatch.call( elem, e ); } if ( e.isDefaultPrevented() ) { event.preventDefault(); } } }; // Some plugins are using, but it's undocumented/deprecated and will be removed. // The 1.7 special event interface should provide all the hooks needed now. jQuery.event.handle = jQuery.event.dispatch; jQuery.removeEvent = document.removeEventListener ? function( elem, type, handle ) { if ( elem.removeEventListener ) { elem.removeEventListener( type, handle, false ); } } : function( elem, type, handle ) { var name = "on" + type; if ( elem.detachEvent ) { // #8545, #7054, preventing memory leaks for custom events in IE6-8 // detachEvent needed property on element, by name of that event, to properly expose it to GC if ( typeof elem[ name ] === "undefined" ) { elem[ name ] = null; } elem.detachEvent( name, handle ); } }; jQuery.Event = function( src, props ) { // Allow instantiation without the 'new' keyword if ( !(this instanceof jQuery.Event) ) { return new jQuery.Event( src, props ); } // Event object if ( src && src.type ) { this.originalEvent = src; this.type = src.type; // Events bubbling up the document may have been marked as prevented // by a handler lower down the tree; reflect the correct value. this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; // Event type } else { this.type = src; } // Put explicitly provided properties onto the event object if ( props ) { jQuery.extend( this, props ); } // Create a timestamp if incoming event doesn't have one this.timeStamp = src && src.timeStamp || jQuery.now(); // Mark it as fixed this[ jQuery.expando ] = true; }; function returnFalse() { return false; } function returnTrue() { return true; } // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html jQuery.Event.prototype = { preventDefault: function() { this.isDefaultPrevented = returnTrue; var e = this.originalEvent; if ( !e ) { return; } // if preventDefault exists run it on the original event if ( e.preventDefault ) { e.preventDefault(); // otherwise set the returnValue property of the original event to false (IE) } else { e.returnValue = false; } }, stopPropagation: function() { this.isPropagationStopped = returnTrue; var e = this.originalEvent; if ( !e ) { return; } // if stopPropagation exists run it on the original event if ( e.stopPropagation ) { e.stopPropagation(); } // otherwise set the cancelBubble property of the original event to true (IE) e.cancelBubble = true; }, stopImmediatePropagation: function() { this.isImmediatePropagationStopped = returnTrue; this.stopPropagation(); }, isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse }; // Create mouseenter/leave events using mouseover/out and event-time checks jQuery.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function( orig, fix ) { jQuery.event.special[ orig ] = { delegateType: fix, bindType: fix, handle: function( event ) { var ret, target = this, related = event.relatedTarget, handleObj = event.handleObj, selector = handleObj.selector; // For mousenter/leave call the handler if related is outside the target. // NB: No relatedTarget if the mouse left/entered the browser window if ( !related || (related !== target && !jQuery.contains( target, related )) ) { event.type = handleObj.origType; ret = handleObj.handler.apply( this, arguments ); event.type = fix; } return ret; } }; }); // IE submit delegation if ( !jQuery.support.submitBubbles ) { jQuery.event.special.submit = { setup: function() { // Only need this for delegated form submit events if ( jQuery.nodeName( this, "form" ) ) { return false; } // Lazy-add a submit handler when a descendant form may potentially be submitted jQuery.event.add( this, "click._submit keypress._submit", function( e ) { // Node name check avoids a VML-related crash in IE (#9807) var elem = e.target, form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; if ( form && !jQuery._data( form, "_submit_attached" ) ) { jQuery.event.add( form, "submit._submit", function( event ) { event._submit_bubble = true; }); jQuery._data( form, "_submit_attached", true ); } }); // return undefined since we don't need an event listener }, postDispatch: function( event ) { // If form was submitted by the user, bubble the event up the tree if ( event._submit_bubble ) { delete event._submit_bubble; if ( this.parentNode && !event.isTrigger ) { jQuery.event.simulate( "submit", this.parentNode, event, true ); } } }, teardown: function() { // Only need this for delegated form submit events if ( jQuery.nodeName( this, "form" ) ) { return false; } // Remove delegated handlers; cleanData eventually reaps submit handlers attached above jQuery.event.remove( this, "._submit" ); } }; } // IE change delegation and checkbox/radio fix if ( !jQuery.support.changeBubbles ) { jQuery.event.special.change = { setup: function() { if ( rformElems.test( this.nodeName ) ) { // IE doesn't fire change on a check/radio until blur; trigger it on click // after a propertychange. Eat the blur-change in special.change.handle. // This still fires onchange a second time for check/radio after blur. if ( this.type === "checkbox" || this.type === "radio" ) { jQuery.event.add( this, "propertychange._change", function( event ) { if ( event.originalEvent.propertyName === "checked" ) { this._just_changed = true; } }); jQuery.event.add( this, "click._change", function( event ) { if ( this._just_changed && !event.isTrigger ) { this._just_changed = false; } // Allow triggered, simulated change events (#11500) jQuery.event.simulate( "change", this, event, true ); }); } return false; } // Delegated event; lazy-add a change handler on descendant inputs jQuery.event.add( this, "beforeactivate._change", function( e ) { var elem = e.target; if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "_change_attached" ) ) { jQuery.event.add( elem, "change._change", function( event ) { if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { jQuery.event.simulate( "change", this.parentNode, event, true ); } }); jQuery._data( elem, "_change_attached", true ); } }); }, handle: function( event ) { var elem = event.target; // Swallow native change events from checkbox/radio, we already triggered them above if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { return event.handleObj.handler.apply( this, arguments ); } }, teardown: function() { jQuery.event.remove( this, "._change" ); return !rformElems.test( this.nodeName ); } }; } // Create "bubbling" focus and blur events if ( !jQuery.support.focusinBubbles ) { jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { // Attach a single capturing handler while someone wants focusin/focusout var attaches = 0, handler = function( event ) { jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); }; jQuery.event.special[ fix ] = { setup: function() { if ( attaches++ === 0 ) { document.addEventListener( orig, handler, true ); } }, teardown: function() { if ( --attaches === 0 ) { document.removeEventListener( orig, handler, true ); } } }; }); } jQuery.fn.extend({ on: function( types, selector, data, fn, /*INTERNAL*/ one ) { var origFn, type; // Types can be a map of types/handlers if ( typeof types === "object" ) { // ( types-Object, selector, data ) if ( typeof selector !== "string" ) { // && selector != null // ( types-Object, data ) data = data || selector; selector = undefined; } for ( type in types ) { this.on( type, selector, data, types[ type ], one ); } return this; } if ( data == null && fn == null ) { // ( types, fn ) fn = selector; data = selector = undefined; } else if ( fn == null ) { if ( typeof selector === "string" ) { // ( types, selector, fn ) fn = data; data = undefined; } else { // ( types, data, fn ) fn = data; data = selector; selector = undefined; } } if ( fn === false ) { fn = returnFalse; } else if ( !fn ) { return this; } if ( one === 1 ) { origFn = fn; fn = function( event ) { // Can use an empty set, since event contains the info jQuery().off( event ); return origFn.apply( this, arguments ); }; // Use same guid so caller can remove using origFn fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); } return this.each( function() { jQuery.event.add( this, types, fn, data, selector ); }); }, one: function( types, selector, data, fn ) { return this.on( types, selector, data, fn, 1 ); }, off: function( types, selector, fn ) { var handleObj, type; if ( types && types.preventDefault && types.handleObj ) { // ( event ) dispatched jQuery.Event handleObj = types.handleObj; jQuery( types.delegateTarget ).off( handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, handleObj.handler ); return this; } if ( typeof types === "object" ) { // ( types-object [, selector] ) for ( type in types ) { this.off( type, selector, types[ type ] ); } return this; } if ( selector === false || typeof selector === "function" ) { // ( types [, fn] ) fn = selector; selector = undefined; } if ( fn === false ) { fn = returnFalse; } return this.each(function() { jQuery.event.remove( this, types, fn, selector ); }); }, bind: function( types, data, fn ) { return this.on( types, null, data, fn ); }, unbind: function( types, fn ) { return this.off( types, null, fn ); }, live: function( types, data, fn ) { jQuery( this.context ).on( types, this.selector, data, fn ); return this; }, die: function( types, fn ) { jQuery( this.context ).off( types, this.selector || "**", fn ); return this; }, delegate: function( selector, types, data, fn ) { return this.on( types, selector, data, fn ); }, undelegate: function( selector, types, fn ) { // ( namespace ) or ( selector, types [, fn] ) return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); }, trigger: function( type, data ) { return this.each(function() { jQuery.event.trigger( type, data, this ); }); }, triggerHandler: function( type, data ) { if ( this[0] ) { return jQuery.event.trigger( type, data, this[0], true ); } }, toggle: function( fn ) { // Save reference to arguments for access in closure var args = arguments, guid = fn.guid || jQuery.guid++, i = 0, toggler = function( event ) { // Figure out which function to execute var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i; jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 ); // Make sure that clicks stop event.preventDefault(); // and execute the function return args[ lastToggle ].apply( this, arguments ) || false; }; // link all the functions, so any of them can unbind this click handler toggler.guid = guid; while ( i < args.length ) { args[ i++ ].guid = guid; } return this.click( toggler ); }, hover: function( fnOver, fnOut ) { return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); } }); jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) { // Handle event binding jQuery.fn[ name ] = function( data, fn ) { if ( fn == null ) { fn = data; data = null; } return arguments.length > 0 ? this.on( name, null, data, fn ) : this.trigger( name ); }; if ( rkeyEvent.test( name ) ) { jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks; } if ( rmouseEvent.test( name ) ) { jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks; } }); /*! * Sizzle CSS Selector Engine * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://sizzlejs.com/ */ (function( window, undefined ) { var cachedruns, assertGetIdNotName, Expr, getText, isXML, contains, compile, sortOrder, hasDuplicate, outermostContext, baseHasDuplicate = true, strundefined = "undefined", expando = ( "sizcache" + Math.random() ).replace( ".", "" ), Token = String, document = window.document, docElem = document.documentElement, dirruns = 0, done = 0, pop = [].pop, push = [].push, slice = [].slice, // Use a stripped-down indexOf if a native one is unavailable indexOf = [].indexOf || function( elem ) { var i = 0, len = this.length; for ( ; i < len; i++ ) { if ( this[i] === elem ) { return i; } } return -1; }, // Augment a function for special use by Sizzle markFunction = function( fn, value ) { fn[ expando ] = value == null || value; return fn; }, createCache = function() { var cache = {}, keys = []; return markFunction(function( key, value ) { // Only keep the most recent entries if ( keys.push( key ) > Expr.cacheLength ) { delete cache[ keys.shift() ]; } // Retrieve with (key + " ") to avoid collision with native Object.prototype properties (see Issue #157) return (cache[ key + " " ] = value); }, cache ); }, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), // Regex // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace whitespace = "[\\x20\\t\\r\\n\\f]", // http://www.w3.org/TR/css3-syntax/#characters characterEncoding = "(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+", // Loosely modeled on CSS identifier characters // An unquoted value should be a CSS identifier (http://www.w3.org/TR/css3-selectors/#attribute-selectors) // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier identifier = characterEncoding.replace( "w", "w#" ), // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors operators = "([*^$|!~]?=)", attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:" + operators + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", // Prefer arguments not in parens/brackets, // then attribute selectors and non-pseudos (denoted by :), // then anything else // These preferences are here to reduce the number of selectors // needing tokenize in the PSEUDO preFilter pseudos = ":(" + characterEncoding + ")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:" + attributes + ")|[^:]|\\\\.)*|.*))\\)|)", // For matchExpr.POS and matchExpr.needsContext pos = ":(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), rcombinators = new RegExp( "^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*" ), rpseudo = new RegExp( pseudos ), // Easily-parseable/retrievable ID or TAG or CLASS selectors rquickExpr = /^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/, rnot = /^:not/, rsibling = /[\x20\t\r\n\f]*[+~]/, rendsWithNot = /:not\($/, rheader = /h\d/i, rinputs = /input|select|textarea|button/i, rbackslash = /\\(?!\\)/g, matchExpr = { "ID": new RegExp( "^#(" + characterEncoding + ")" ), "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), "NAME": new RegExp( "^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]" ), "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), "ATTR": new RegExp( "^" + attributes ), "PSEUDO": new RegExp( "^" + pseudos ), "POS": new RegExp( pos, "i" ), "CHILD": new RegExp( "^:(only|nth|first|last)-child(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), // For use in libraries implementing .is() "needsContext": new RegExp( "^" + whitespace + "*[>+~]|" + pos, "i" ) }, // Support // Used for testing something on an element assert = function( fn ) { var div = document.createElement("div"); try { return fn( div ); } catch (e) { return false; } finally { // release memory in IE div = null; } }, // Check if getElementsByTagName("*") returns only elements assertTagNameNoComments = assert(function( div ) { div.appendChild( document.createComment("") ); return !div.getElementsByTagName("*").length; }), // Check if getAttribute returns normalized href attributes assertHrefNotNormalized = assert(function( div ) { div.innerHTML = ""; return div.firstChild && typeof div.firstChild.getAttribute !== strundefined && div.firstChild.getAttribute("href") === "#"; }), // Check if attributes should be retrieved by attribute nodes assertAttributes = assert(function( div ) { div.innerHTML = ""; var type = typeof div.lastChild.getAttribute("multiple"); // IE8 returns a string for some attributes even when not present return type !== "boolean" && type !== "string"; }), // Check if getElementsByClassName can be trusted assertUsableClassName = assert(function( div ) { // Opera can't find a second classname (in 9.6) div.innerHTML = ""; if ( !div.getElementsByClassName || !div.getElementsByClassName("e").length ) { return false; } // Safari 3.2 caches class attributes and doesn't catch changes div.lastChild.className = "e"; return div.getElementsByClassName("e").length === 2; }), // Check if getElementById returns elements by name // Check if getElementsByName privileges form controls or returns elements by ID assertUsableName = assert(function( div ) { // Inject content div.id = expando + 0; div.innerHTML = "
                                                  "; docElem.insertBefore( div, docElem.firstChild ); // Test var pass = document.getElementsByName && // buggy browsers will return fewer than the correct 2 document.getElementsByName( expando ).length === 2 + // buggy browsers will return more than the correct 0 document.getElementsByName( expando + 0 ).length; assertGetIdNotName = !document.getElementById( expando ); // Cleanup docElem.removeChild( div ); return pass; }); // If slice is not available, provide a backup try { slice.call( docElem.childNodes, 0 )[0].nodeType; } catch ( e ) { slice = function( i ) { var elem, results = []; for ( ; (elem = this[i]); i++ ) { results.push( elem ); } return results; }; } function Sizzle( selector, context, results, seed ) { results = results || []; context = context || document; var match, elem, xml, m, nodeType = context.nodeType; if ( !selector || typeof selector !== "string" ) { return results; } if ( nodeType !== 1 && nodeType !== 9 ) { return []; } xml = isXML( context ); if ( !xml && !seed ) { if ( (match = rquickExpr.exec( selector )) ) { // Speed-up: Sizzle("#ID") if ( (m = match[1]) ) { if ( nodeType === 9 ) { elem = context.getElementById( m ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { // Handle the case where IE, Opera, and Webkit return items // by name instead of ID if ( elem.id === m ) { results.push( elem ); return results; } } else { return results; } } else { // Context is not a document if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && contains( context, elem ) && elem.id === m ) { results.push( elem ); return results; } } // Speed-up: Sizzle("TAG") } else if ( match[2] ) { push.apply( results, slice.call(context.getElementsByTagName( selector ), 0) ); return results; // Speed-up: Sizzle(".CLASS") } else if ( (m = match[3]) && assertUsableClassName && context.getElementsByClassName ) { push.apply( results, slice.call(context.getElementsByClassName( m ), 0) ); return results; } } } // All others return select( selector.replace( rtrim, "$1" ), context, results, seed, xml ); } Sizzle.matches = function( expr, elements ) { return Sizzle( expr, null, null, elements ); }; Sizzle.matchesSelector = function( elem, expr ) { return Sizzle( expr, null, null, [ elem ] ).length > 0; }; // Returns a function to use in pseudos for input types function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; } // Returns a function to use in pseudos for buttons function createButtonPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; }; } // Returns a function to use in pseudos for positionals function createPositionalPseudo( fn ) { return markFunction(function( argument ) { argument = +argument; return markFunction(function( seed, matches ) { var j, matchIndexes = fn( [], seed.length, argument ), i = matchIndexes.length; // Match elements found at the specified indexes while ( i-- ) { if ( seed[ (j = matchIndexes[i]) ] ) { seed[j] = !(matches[j] = seed[j]); } } }); }); } /** * Utility function for retrieving the text value of an array of DOM nodes * @param {Array|Element} elem */ getText = Sizzle.getText = function( elem ) { var node, ret = "", i = 0, nodeType = elem.nodeType; if ( nodeType ) { if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { // Use textContent for elements // innerText usage removed for consistency of new lines (see #11153) if ( typeof elem.textContent === "string" ) { return elem.textContent; } else { // Traverse its children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { ret += getText( elem ); } } } else if ( nodeType === 3 || nodeType === 4 ) { return elem.nodeValue; } // Do not include comment or processing instruction nodes } else { // If no nodeType, this is expected to be an array for ( ; (node = elem[i]); i++ ) { // Do not traverse comment nodes ret += getText( node ); } } return ret; }; isXML = Sizzle.isXML = function( elem ) { // documentElement is verified for cases where it doesn't yet exist // (such as loading iframes in IE - #4833) var documentElement = elem && (elem.ownerDocument || elem).documentElement; return documentElement ? documentElement.nodeName !== "HTML" : false; }; // Element contains another contains = Sizzle.contains = docElem.contains ? function( a, b ) { var adown = a.nodeType === 9 ? a.documentElement : a, bup = b && b.parentNode; return a === bup || !!( bup && bup.nodeType === 1 && adown.contains && adown.contains(bup) ); } : docElem.compareDocumentPosition ? function( a, b ) { return b && !!( a.compareDocumentPosition( b ) & 16 ); } : function( a, b ) { while ( (b = b.parentNode) ) { if ( b === a ) { return true; } } return false; }; Sizzle.attr = function( elem, name ) { var val, xml = isXML( elem ); if ( !xml ) { name = name.toLowerCase(); } if ( (val = Expr.attrHandle[ name ]) ) { return val( elem ); } if ( xml || assertAttributes ) { return elem.getAttribute( name ); } val = elem.getAttributeNode( name ); return val ? typeof elem[ name ] === "boolean" ? elem[ name ] ? name : null : val.specified ? val.value : null : null; }; Expr = Sizzle.selectors = { // Can be adjusted by the user cacheLength: 50, createPseudo: markFunction, match: matchExpr, // IE6/7 return a modified href attrHandle: assertHrefNotNormalized ? {} : { "href": function( elem ) { return elem.getAttribute( "href", 2 ); }, "type": function( elem ) { return elem.getAttribute("type"); } }, find: { "ID": assertGetIdNotName ? function( id, context, xml ) { if ( typeof context.getElementById !== strundefined && !xml ) { var m = context.getElementById( id ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 return m && m.parentNode ? [m] : []; } } : function( id, context, xml ) { if ( typeof context.getElementById !== strundefined && !xml ) { var m = context.getElementById( id ); return m ? m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id ? [m] : undefined : []; } }, "TAG": assertTagNameNoComments ? function( tag, context ) { if ( typeof context.getElementsByTagName !== strundefined ) { return context.getElementsByTagName( tag ); } } : function( tag, context ) { var results = context.getElementsByTagName( tag ); // Filter out possible comments if ( tag === "*" ) { var elem, tmp = [], i = 0; for ( ; (elem = results[i]); i++ ) { if ( elem.nodeType === 1 ) { tmp.push( elem ); } } return tmp; } return results; }, "NAME": assertUsableName && function( tag, context ) { if ( typeof context.getElementsByName !== strundefined ) { return context.getElementsByName( name ); } }, "CLASS": assertUsableClassName && function( className, context, xml ) { if ( typeof context.getElementsByClassName !== strundefined && !xml ) { return context.getElementsByClassName( className ); } } }, relative: { ">": { dir: "parentNode", first: true }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: true }, "~": { dir: "previousSibling" } }, preFilter: { "ATTR": function( match ) { match[1] = match[1].replace( rbackslash, "" ); // Move the given value to match[3] whether quoted or unquoted match[3] = ( match[4] || match[5] || "" ).replace( rbackslash, "" ); if ( match[2] === "~=" ) { match[3] = " " + match[3] + " "; } return match.slice( 0, 4 ); }, "CHILD": function( match ) { /* matches from matchExpr["CHILD"] 1 type (only|nth|...) 2 argument (even|odd|\d*|\d*n([+-]\d+)?|...) 3 xn-component of xn+y argument ([+-]?\d*n|) 4 sign of xn-component 5 x of xn-component 6 sign of y-component 7 y of y-component */ match[1] = match[1].toLowerCase(); if ( match[1] === "nth" ) { // nth-child requires argument if ( !match[2] ) { Sizzle.error( match[0] ); } // numeric x and y parameters for Expr.filter.CHILD // remember that false/true cast respectively to 0/1 match[3] = +( match[3] ? match[4] + (match[5] || 1) : 2 * ( match[2] === "even" || match[2] === "odd" ) ); match[4] = +( ( match[6] + match[7] ) || match[2] === "odd" ); // other types prohibit arguments } else if ( match[2] ) { Sizzle.error( match[0] ); } return match; }, "PSEUDO": function( match ) { var unquoted, excess; if ( matchExpr["CHILD"].test( match[0] ) ) { return null; } if ( match[3] ) { match[2] = match[3]; } else if ( (unquoted = match[4]) ) { // Only check arguments that contain a pseudo if ( rpseudo.test(unquoted) && // Get excess from tokenize (recursively) (excess = tokenize( unquoted, true )) && // advance to the next closing parenthesis (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { // excess is a negative index unquoted = unquoted.slice( 0, excess ); match[0] = match[0].slice( 0, excess ); } match[2] = unquoted; } // Return only captures needed by the pseudo filter method (type and argument) return match.slice( 0, 3 ); } }, filter: { "ID": assertGetIdNotName ? function( id ) { id = id.replace( rbackslash, "" ); return function( elem ) { return elem.getAttribute("id") === id; }; } : function( id ) { id = id.replace( rbackslash, "" ); return function( elem ) { var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); return node && node.value === id; }; }, "TAG": function( nodeName ) { if ( nodeName === "*" ) { return function() { return true; }; } nodeName = nodeName.replace( rbackslash, "" ).toLowerCase(); return function( elem ) { return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; }; }, "CLASS": function( className ) { var pattern = classCache[ expando ][ className + " " ]; return pattern || (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && classCache( className, function( elem ) { return pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute("class")) || "" ); }); }, "ATTR": function( name, operator, check ) { return function( elem, context ) { var result = Sizzle.attr( elem, name ); if ( result == null ) { return operator === "!="; } if ( !operator ) { return true; } result += ""; return operator === "=" ? result === check : operator === "!=" ? result !== check : operator === "^=" ? check && result.indexOf( check ) === 0 : operator === "*=" ? check && result.indexOf( check ) > -1 : operator === "$=" ? check && result.substr( result.length - check.length ) === check : operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : operator === "|=" ? result === check || result.substr( 0, check.length + 1 ) === check + "-" : false; }; }, "CHILD": function( type, argument, first, last ) { if ( type === "nth" ) { return function( elem ) { var node, diff, parent = elem.parentNode; if ( first === 1 && last === 0 ) { return true; } if ( parent ) { diff = 0; for ( node = parent.firstChild; node; node = node.nextSibling ) { if ( node.nodeType === 1 ) { diff++; if ( elem === node ) { break; } } } } // Incorporate the offset (or cast to NaN), then check against cycle size diff -= last; return diff === first || ( diff % first === 0 && diff / first >= 0 ); }; } return function( elem ) { var node = elem; switch ( type ) { case "only": case "first": while ( (node = node.previousSibling) ) { if ( node.nodeType === 1 ) { return false; } } if ( type === "first" ) { return true; } node = elem; /* falls through */ case "last": while ( (node = node.nextSibling) ) { if ( node.nodeType === 1 ) { return false; } } return true; } }; }, "PSEUDO": function( pseudo, argument ) { // pseudo-class names are case-insensitive // http://www.w3.org/TR/selectors/#pseudo-classes // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters // Remember that setFilters inherits from pseudos var args, fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || Sizzle.error( "unsupported pseudo: " + pseudo ); // The user may use createPseudo to indicate that // arguments are needed to create the filter function // just as Sizzle does if ( fn[ expando ] ) { return fn( argument ); } // But maintain support for old signatures if ( fn.length > 1 ) { args = [ pseudo, pseudo, "", argument ]; return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? markFunction(function( seed, matches ) { var idx, matched = fn( seed, argument ), i = matched.length; while ( i-- ) { idx = indexOf.call( seed, matched[i] ); seed[ idx ] = !( matches[ idx ] = matched[i] ); } }) : function( elem ) { return fn( elem, 0, args ); }; } return fn; } }, pseudos: { "not": markFunction(function( selector ) { // Trim the selector passed to compile // to avoid treating leading and trailing // spaces as combinators var input = [], results = [], matcher = compile( selector.replace( rtrim, "$1" ) ); return matcher[ expando ] ? markFunction(function( seed, matches, context, xml ) { var elem, unmatched = matcher( seed, null, xml, [] ), i = seed.length; // Match elements unmatched by `matcher` while ( i-- ) { if ( (elem = unmatched[i]) ) { seed[i] = !(matches[i] = elem); } } }) : function( elem, context, xml ) { input[0] = elem; matcher( input, null, xml, results ); return !results.pop(); }; }), "has": markFunction(function( selector ) { return function( elem ) { return Sizzle( selector, elem ).length > 0; }; }), "contains": markFunction(function( text ) { return function( elem ) { return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; }; }), "enabled": function( elem ) { return elem.disabled === false; }, "disabled": function( elem ) { return elem.disabled === true; }, "checked": function( elem ) { // In CSS3, :checked should return both checked and selected elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked var nodeName = elem.nodeName.toLowerCase(); return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); }, "selected": function( elem ) { // Accessing this property makes selected-by-default // options in Safari work properly if ( elem.parentNode ) { elem.parentNode.selectedIndex; } return elem.selected === true; }, "parent": function( elem ) { return !Expr.pseudos["empty"]( elem ); }, "empty": function( elem ) { // http://www.w3.org/TR/selectors/#empty-pseudo // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), // not comment, processing instructions, or others // Thanks to Diego Perini for the nodeName shortcut // Greater than "@" means alpha characters (specifically not starting with "#" or "?") var nodeType; elem = elem.firstChild; while ( elem ) { if ( elem.nodeName > "@" || (nodeType = elem.nodeType) === 3 || nodeType === 4 ) { return false; } elem = elem.nextSibling; } return true; }, "header": function( elem ) { return rheader.test( elem.nodeName ); }, "text": function( elem ) { var type, attr; // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) // use getAttribute instead to test this case return elem.nodeName.toLowerCase() === "input" && (type = elem.type) === "text" && ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === type ); }, // Input types "radio": createInputPseudo("radio"), "checkbox": createInputPseudo("checkbox"), "file": createInputPseudo("file"), "password": createInputPseudo("password"), "image": createInputPseudo("image"), "submit": createButtonPseudo("submit"), "reset": createButtonPseudo("reset"), "button": function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === "button" || name === "button"; }, "input": function( elem ) { return rinputs.test( elem.nodeName ); }, "focus": function( elem ) { var doc = elem.ownerDocument; return elem === doc.activeElement && (!doc.hasFocus || doc.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); }, "active": function( elem ) { return elem === elem.ownerDocument.activeElement; }, // Positional types "first": createPositionalPseudo(function() { return [ 0 ]; }), "last": createPositionalPseudo(function( matchIndexes, length ) { return [ length - 1 ]; }), "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { return [ argument < 0 ? argument + length : argument ]; }), "even": createPositionalPseudo(function( matchIndexes, length ) { for ( var i = 0; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; }), "odd": createPositionalPseudo(function( matchIndexes, length ) { for ( var i = 1; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; }), "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { for ( var i = argument < 0 ? argument + length : argument; --i >= 0; ) { matchIndexes.push( i ); } return matchIndexes; }), "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { for ( var i = argument < 0 ? argument + length : argument; ++i < length; ) { matchIndexes.push( i ); } return matchIndexes; }) } }; function siblingCheck( a, b, ret ) { if ( a === b ) { return ret; } var cur = a.nextSibling; while ( cur ) { if ( cur === b ) { return -1; } cur = cur.nextSibling; } return 1; } sortOrder = docElem.compareDocumentPosition ? function( a, b ) { if ( a === b ) { hasDuplicate = true; return 0; } return ( !a.compareDocumentPosition || !b.compareDocumentPosition ? a.compareDocumentPosition : a.compareDocumentPosition(b) & 4 ) ? -1 : 1; } : function( a, b ) { // The nodes are identical, we can exit early if ( a === b ) { hasDuplicate = true; return 0; // Fallback to using sourceIndex (in IE) if it's available on both nodes } else if ( a.sourceIndex && b.sourceIndex ) { return a.sourceIndex - b.sourceIndex; } var al, bl, ap = [], bp = [], aup = a.parentNode, bup = b.parentNode, cur = aup; // If the nodes are siblings (or identical) we can do a quick check if ( aup === bup ) { return siblingCheck( a, b ); // If no parents were found then the nodes are disconnected } else if ( !aup ) { return -1; } else if ( !bup ) { return 1; } // Otherwise they're somewhere else in the tree so we need // to build up a full list of the parentNodes for comparison while ( cur ) { ap.unshift( cur ); cur = cur.parentNode; } cur = bup; while ( cur ) { bp.unshift( cur ); cur = cur.parentNode; } al = ap.length; bl = bp.length; // Start walking down the tree looking for a discrepancy for ( var i = 0; i < al && i < bl; i++ ) { if ( ap[i] !== bp[i] ) { return siblingCheck( ap[i], bp[i] ); } } // We ended someplace up the tree so do a sibling check return i === al ? siblingCheck( a, bp[i], -1 ) : siblingCheck( ap[i], b, 1 ); }; // Always assume the presence of duplicates if sort doesn't // pass them to our comparison function (as in Google Chrome). [0, 0].sort( sortOrder ); baseHasDuplicate = !hasDuplicate; // Document sorting and removing duplicates Sizzle.uniqueSort = function( results ) { var elem, duplicates = [], i = 1, j = 0; hasDuplicate = baseHasDuplicate; results.sort( sortOrder ); if ( hasDuplicate ) { for ( ; (elem = results[i]); i++ ) { if ( elem === results[ i - 1 ] ) { j = duplicates.push( i ); } } while ( j-- ) { results.splice( duplicates[ j ], 1 ); } } return results; }; Sizzle.error = function( msg ) { throw new Error( "Syntax error, unrecognized expression: " + msg ); }; function tokenize( selector, parseOnly ) { var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[ expando ][ selector + " " ]; if ( cached ) { return parseOnly ? 0 : cached.slice( 0 ); } soFar = selector; groups = []; preFilters = Expr.preFilter; while ( soFar ) { // Comma and first run if ( !matched || (match = rcomma.exec( soFar )) ) { if ( match ) { // Don't consume trailing commas as valid soFar = soFar.slice( match[0].length ) || soFar; } groups.push( tokens = [] ); } matched = false; // Combinators if ( (match = rcombinators.exec( soFar )) ) { tokens.push( matched = new Token( match.shift() ) ); soFar = soFar.slice( matched.length ); // Cast descendant combinators to space matched.type = match[0].replace( rtrim, " " ); } // Filters for ( type in Expr.filter ) { if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || (match = preFilters[ type ]( match ))) ) { tokens.push( matched = new Token( match.shift() ) ); soFar = soFar.slice( matched.length ); matched.type = type; matched.matches = match; } } if ( !matched ) { break; } } // Return the length of the invalid excess // if we're just parsing // Otherwise, throw an error or return tokens return parseOnly ? soFar.length : soFar ? Sizzle.error( selector ) : // Cache the tokens tokenCache( selector, groups ).slice( 0 ); } function addCombinator( matcher, combinator, base ) { var dir = combinator.dir, checkNonElements = base && combinator.dir === "parentNode", doneName = done++; return combinator.first ? // Check against closest ancestor/preceding element function( elem, context, xml ) { while ( (elem = elem[ dir ]) ) { if ( checkNonElements || elem.nodeType === 1 ) { return matcher( elem, context, xml ); } } } : // Check against all ancestor/preceding elements function( elem, context, xml ) { // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching if ( !xml ) { var cache, dirkey = dirruns + " " + doneName + " ", cachedkey = dirkey + cachedruns; while ( (elem = elem[ dir ]) ) { if ( checkNonElements || elem.nodeType === 1 ) { if ( (cache = elem[ expando ]) === cachedkey ) { return elem.sizset; } else if ( typeof cache === "string" && cache.indexOf(dirkey) === 0 ) { if ( elem.sizset ) { return elem; } } else { elem[ expando ] = cachedkey; if ( matcher( elem, context, xml ) ) { elem.sizset = true; return elem; } elem.sizset = false; } } } } else { while ( (elem = elem[ dir ]) ) { if ( checkNonElements || elem.nodeType === 1 ) { if ( matcher( elem, context, xml ) ) { return elem; } } } } }; } function elementMatcher( matchers ) { return matchers.length > 1 ? function( elem, context, xml ) { var i = matchers.length; while ( i-- ) { if ( !matchers[i]( elem, context, xml ) ) { return false; } } return true; } : matchers[0]; } function condense( unmatched, map, filter, context, xml ) { var elem, newUnmatched = [], i = 0, len = unmatched.length, mapped = map != null; for ( ; i < len; i++ ) { if ( (elem = unmatched[i]) ) { if ( !filter || filter( elem, context, xml ) ) { newUnmatched.push( elem ); if ( mapped ) { map.push( i ); } } } } return newUnmatched; } function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { if ( postFilter && !postFilter[ expando ] ) { postFilter = setMatcher( postFilter ); } if ( postFinder && !postFinder[ expando ] ) { postFinder = setMatcher( postFinder, postSelector ); } return markFunction(function( seed, results, context, xml ) { var temp, i, elem, preMap = [], postMap = [], preexisting = results.length, // Get initial elements from seed or context elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), // Prefilter to get matcher input, preserving a map for seed-results synchronization matcherIn = preFilter && ( seed || !selector ) ? condense( elems, preMap, preFilter, context, xml ) : elems, matcherOut = matcher ? // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, postFinder || ( seed ? preFilter : preexisting || postFilter ) ? // ...intermediate processing is necessary [] : // ...otherwise use results directly results : matcherIn; // Find primary matches if ( matcher ) { matcher( matcherIn, matcherOut, context, xml ); } // Apply postFilter if ( postFilter ) { temp = condense( matcherOut, postMap ); postFilter( temp, [], context, xml ); // Un-match failing elements by moving them back to matcherIn i = temp.length; while ( i-- ) { if ( (elem = temp[i]) ) { matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); } } } if ( seed ) { if ( postFinder || preFilter ) { if ( postFinder ) { // Get the final matcherOut by condensing this intermediate into postFinder contexts temp = []; i = matcherOut.length; while ( i-- ) { if ( (elem = matcherOut[i]) ) { // Restore matcherIn since elem is not yet a final match temp.push( (matcherIn[i] = elem) ); } } postFinder( null, (matcherOut = []), temp, xml ); } // Move matched elements from seed to results to keep them synchronized i = matcherOut.length; while ( i-- ) { if ( (elem = matcherOut[i]) && (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { seed[temp] = !(results[temp] = elem); } } } // Add elements to results, through postFinder if defined } else { matcherOut = condense( matcherOut === results ? matcherOut.splice( preexisting, matcherOut.length ) : matcherOut ); if ( postFinder ) { postFinder( null, results, matcherOut, xml ); } else { push.apply( results, matcherOut ); } } }); } function matcherFromTokens( tokens ) { var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[ tokens[0].type ], implicitRelative = leadingRelative || Expr.relative[" "], i = leadingRelative ? 1 : 0, // The foundational matcher ensures that elements are reachable from top-level context(s) matchContext = addCombinator( function( elem ) { return elem === checkContext; }, implicitRelative, true ), matchAnyContext = addCombinator( function( elem ) { return indexOf.call( checkContext, elem ) > -1; }, implicitRelative, true ), matchers = [ function( elem, context, xml ) { return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( (checkContext = context).nodeType ? matchContext( elem, context, xml ) : matchAnyContext( elem, context, xml ) ); } ]; for ( ; i < len; i++ ) { if ( (matcher = Expr.relative[ tokens[i].type ]) ) { matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ]; } else { matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); // Return special upon seeing a positional matcher if ( matcher[ expando ] ) { // Find the next relative operator (if any) for proper handling j = ++i; for ( ; j < len; j++ ) { if ( Expr.relative[ tokens[j].type ] ) { break; } } return setMatcher( i > 1 && elementMatcher( matchers ), i > 1 && tokens.slice( 0, i - 1 ).join("").replace( rtrim, "$1" ), matcher, i < j && matcherFromTokens( tokens.slice( i, j ) ), j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), j < len && tokens.join("") ); } matchers.push( matcher ); } } return elementMatcher( matchers ); } function matcherFromGroupMatchers( elementMatchers, setMatchers ) { var bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function( seed, context, xml, results, expandContext ) { var elem, j, matcher, setMatched = [], matchedCount = 0, i = "0", unmatched = seed && [], outermost = expandContext != null, contextBackup = outermostContext, // We must always have either seed elements or context elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), // Nested matchers should use non-integer dirruns dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.E); if ( outermost ) { outermostContext = context !== document && context; cachedruns = superMatcher.el; } // Add elements passing elementMatchers directly to results for ( ; (elem = elems[i]) != null; i++ ) { if ( byElement && elem ) { for ( j = 0; (matcher = elementMatchers[j]); j++ ) { if ( matcher( elem, context, xml ) ) { results.push( elem ); break; } } if ( outermost ) { dirruns = dirrunsUnique; cachedruns = ++superMatcher.el; } } // Track unmatched elements for set filters if ( bySet ) { // They will have gone through all possible matchers if ( (elem = !matcher && elem) ) { matchedCount--; } // Lengthen the array for every element, matched or not if ( seed ) { unmatched.push( elem ); } } } // Apply set filters to unmatched elements matchedCount += i; if ( bySet && i !== matchedCount ) { for ( j = 0; (matcher = setMatchers[j]); j++ ) { matcher( unmatched, setMatched, context, xml ); } if ( seed ) { // Reintegrate element matches to eliminate the need for sorting if ( matchedCount > 0 ) { while ( i-- ) { if ( !(unmatched[i] || setMatched[i]) ) { setMatched[i] = pop.call( results ); } } } // Discard index placeholder values to get only actual matches setMatched = condense( setMatched ); } // Add matches to results push.apply( results, setMatched ); // Seedless set matches succeeding multiple successful matchers stipulate sorting if ( outermost && !seed && setMatched.length > 0 && ( matchedCount + setMatchers.length ) > 1 ) { Sizzle.uniqueSort( results ); } } // Override manipulation of globals by nested matchers if ( outermost ) { dirruns = dirrunsUnique; outermostContext = contextBackup; } return unmatched; }; superMatcher.el = 0; return bySet ? markFunction( superMatcher ) : superMatcher; } compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { var i, setMatchers = [], elementMatchers = [], cached = compilerCache[ expando ][ selector + " " ]; if ( !cached ) { // Generate a function of recursive functions that can be used to check each element if ( !group ) { group = tokenize( selector ); } i = group.length; while ( i-- ) { cached = matcherFromTokens( group[i] ); if ( cached[ expando ] ) { setMatchers.push( cached ); } else { elementMatchers.push( cached ); } } // Cache the compiled function cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); } return cached; }; function multipleContexts( selector, contexts, results ) { var i = 0, len = contexts.length; for ( ; i < len; i++ ) { Sizzle( selector, contexts[i], results ); } return results; } function select( selector, context, results, seed, xml ) { var i, tokens, token, type, find, match = tokenize( selector ), j = match.length; if ( !seed ) { // Try to minimize operations if there is only one group if ( match.length === 1 ) { // Take a shortcut and set the context if the root selector is an ID tokens = match[0] = match[0].slice( 0 ); if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && context.nodeType === 9 && !xml && Expr.relative[ tokens[1].type ] ) { context = Expr.find["ID"]( token.matches[0].replace( rbackslash, "" ), context, xml )[0]; if ( !context ) { return results; } selector = selector.slice( tokens.shift().length ); } // Fetch a seed set for right-to-left matching for ( i = matchExpr["POS"].test( selector ) ? -1 : tokens.length - 1; i >= 0; i-- ) { token = tokens[i]; // Abort if we hit a combinator if ( Expr.relative[ (type = token.type) ] ) { break; } if ( (find = Expr.find[ type ]) ) { // Search, expanding context for leading sibling combinators if ( (seed = find( token.matches[0].replace( rbackslash, "" ), rsibling.test( tokens[0].type ) && context.parentNode || context, xml )) ) { // If seed is empty or no tokens remain, we can return early tokens.splice( i, 1 ); selector = seed.length && tokens.join(""); if ( !selector ) { push.apply( results, slice.call( seed, 0 ) ); return results; } break; } } } } } // Compile and execute a filtering function // Provide `match` to avoid retokenization if we modified the selector above compile( selector, match )( seed, context, xml, results, rsibling.test( selector ) ); return results; } if ( document.querySelectorAll ) { (function() { var disconnectedMatch, oldSelect = select, rescape = /'|\\/g, rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g, // qSa(:focus) reports false when true (Chrome 21), no need to also add to buggyMatches since matches checks buggyQSA // A support test would require too much code (would include document ready) rbuggyQSA = [ ":focus" ], // matchesSelector(:active) reports false when true (IE9/Opera 11.5) // A support test would require too much code (would include document ready) // just skip matchesSelector for :active rbuggyMatches = [ ":active" ], matches = docElem.matchesSelector || docElem.mozMatchesSelector || docElem.webkitMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector; // Build QSA regex // Regex strategy adopted from Diego Perini assert(function( div ) { // Select is set to empty string on purpose // This is to test IE's treatment of not explictly // setting a boolean content attribute, // since its presence should be enough // http://bugs.jquery.com/ticket/12359 div.innerHTML = ""; // IE8 - Some boolean attributes are not treated correctly if ( !div.querySelectorAll("[selected]").length ) { rbuggyQSA.push( "\\[" + whitespace + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)" ); } // Webkit/Opera - :checked should return selected option elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked // IE8 throws error here (do not put tests after this one) if ( !div.querySelectorAll(":checked").length ) { rbuggyQSA.push(":checked"); } }); assert(function( div ) { // Opera 10-12/IE9 - ^= $= *= and empty values // Should not select anything div.innerHTML = "

                                                  "; if ( div.querySelectorAll("[test^='']").length ) { rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:\"\"|'')" ); } // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) // IE8 throws error here (do not put tests after this one) div.innerHTML = ""; if ( !div.querySelectorAll(":enabled").length ) { rbuggyQSA.push(":enabled", ":disabled"); } }); // rbuggyQSA always contains :focus, so no need for a length check rbuggyQSA = /* rbuggyQSA.length && */ new RegExp( rbuggyQSA.join("|") ); select = function( selector, context, results, seed, xml ) { // Only use querySelectorAll when not filtering, // when this is not xml, // and when no QSA bugs apply if ( !seed && !xml && !rbuggyQSA.test( selector ) ) { var groups, i, old = true, nid = expando, newContext = context, newSelector = context.nodeType === 9 && selector; // qSA works strangely on Element-rooted queries // We can work around this by specifying an extra ID on the root // and working up from there (Thanks to Andrew Dupont for the technique) // IE 8 doesn't work on object elements if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { groups = tokenize( selector ); if ( (old = context.getAttribute("id")) ) { nid = old.replace( rescape, "\\$&" ); } else { context.setAttribute( "id", nid ); } nid = "[id='" + nid + "'] "; i = groups.length; while ( i-- ) { groups[i] = nid + groups[i].join(""); } newContext = rsibling.test( selector ) && context.parentNode || context; newSelector = groups.join(","); } if ( newSelector ) { try { push.apply( results, slice.call( newContext.querySelectorAll( newSelector ), 0 ) ); return results; } catch(qsaError) { } finally { if ( !old ) { context.removeAttribute("id"); } } } } return oldSelect( selector, context, results, seed, xml ); }; if ( matches ) { assert(function( div ) { // Check to see if it's possible to do matchesSelector // on a disconnected node (IE 9) disconnectedMatch = matches.call( div, "div" ); // This should fail with an exception // Gecko does not error, returns false instead try { matches.call( div, "[test!='']:sizzle" ); rbuggyMatches.push( "!=", pseudos ); } catch ( e ) {} }); // rbuggyMatches always contains :active and :focus, so no need for a length check rbuggyMatches = /* rbuggyMatches.length && */ new RegExp( rbuggyMatches.join("|") ); Sizzle.matchesSelector = function( elem, expr ) { // Make sure that attribute selectors are quoted expr = expr.replace( rattributeQuotes, "='$1']" ); // rbuggyMatches always contains :active, so no need for an existence check if ( !isXML( elem ) && !rbuggyMatches.test( expr ) && !rbuggyQSA.test( expr ) ) { try { var ret = matches.call( elem, expr ); // IE 9's matchesSelector returns false on disconnected nodes if ( ret || disconnectedMatch || // As well, disconnected nodes are said to be in a document // fragment in IE 9 elem.document && elem.document.nodeType !== 11 ) { return ret; } } catch(e) {} } return Sizzle( expr, null, null, [ elem ] ).length > 0; }; } })(); } // Deprecated Expr.pseudos["nth"] = Expr.pseudos["eq"]; // Back-compat function setFilters() {} Expr.filters = setFilters.prototype = Expr.pseudos; Expr.setFilters = new setFilters(); // Override sizzle attribute retrieval Sizzle.attr = jQuery.attr; jQuery.find = Sizzle; jQuery.expr = Sizzle.selectors; jQuery.expr[":"] = jQuery.expr.pseudos; jQuery.unique = Sizzle.uniqueSort; jQuery.text = Sizzle.getText; jQuery.isXMLDoc = Sizzle.isXML; jQuery.contains = Sizzle.contains; })( window ); var runtil = /Until$/, rparentsprev = /^(?:parents|prev(?:Until|All))/, isSimple = /^.[^:#\[\.,]*$/, rneedsContext = jQuery.expr.match.needsContext, // methods guaranteed to produce a unique set when starting from a unique set guaranteedUnique = { children: true, contents: true, next: true, prev: true }; jQuery.fn.extend({ find: function( selector ) { var i, l, length, n, r, ret, self = this; if ( typeof selector !== "string" ) { return jQuery( selector ).filter(function() { for ( i = 0, l = self.length; i < l; i++ ) { if ( jQuery.contains( self[ i ], this ) ) { return true; } } }); } ret = this.pushStack( "", "find", selector ); for ( i = 0, l = this.length; i < l; i++ ) { length = ret.length; jQuery.find( selector, this[i], ret ); if ( i > 0 ) { // Make sure that the results are unique for ( n = length; n < ret.length; n++ ) { for ( r = 0; r < length; r++ ) { if ( ret[r] === ret[n] ) { ret.splice(n--, 1); break; } } } } } return ret; }, has: function( target ) { var i, targets = jQuery( target, this ), len = targets.length; return this.filter(function() { for ( i = 0; i < len; i++ ) { if ( jQuery.contains( this, targets[i] ) ) { return true; } } }); }, not: function( selector ) { return this.pushStack( winnow(this, selector, false), "not", selector); }, filter: function( selector ) { return this.pushStack( winnow(this, selector, true), "filter", selector ); }, is: function( selector ) { return !!selector && ( typeof selector === "string" ? // If this is a positional/relative selector, check membership in the returned set // so $("p:first").is("p:last") won't return true for a doc with two "p". rneedsContext.test( selector ) ? jQuery( selector, this.context ).index( this[0] ) >= 0 : jQuery.filter( selector, this ).length > 0 : this.filter( selector ).length > 0 ); }, closest: function( selectors, context ) { var cur, i = 0, l = this.length, ret = [], pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? jQuery( selectors, context || this.context ) : 0; for ( ; i < l; i++ ) { cur = this[i]; while ( cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11 ) { if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { ret.push( cur ); break; } cur = cur.parentNode; } } ret = ret.length > 1 ? jQuery.unique( ret ) : ret; return this.pushStack( ret, "closest", selectors ); }, // Determine the position of an element within // the matched set of elements index: function( elem ) { // No argument, return index in parent if ( !elem ) { return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1; } // index in selector if ( typeof elem === "string" ) { return jQuery.inArray( this[0], jQuery( elem ) ); } // Locate the position of the desired element return jQuery.inArray( // If it receives a jQuery object, the first element is used elem.jquery ? elem[0] : elem, this ); }, add: function( selector, context ) { var set = typeof selector === "string" ? jQuery( selector, context ) : jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), all = jQuery.merge( this.get(), set ); return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ? all : jQuery.unique( all ) ); }, addBack: function( selector ) { return this.add( selector == null ? this.prevObject : this.prevObject.filter(selector) ); } }); jQuery.fn.andSelf = jQuery.fn.addBack; // A painfully simple check to see if an element is disconnected // from a document (should be improved, where feasible). function isDisconnected( node ) { return !node || !node.parentNode || node.parentNode.nodeType === 11; } function sibling( cur, dir ) { do { cur = cur[ dir ]; } while ( cur && cur.nodeType !== 1 ); return cur; } jQuery.each({ parent: function( elem ) { var parent = elem.parentNode; return parent && parent.nodeType !== 11 ? parent : null; }, parents: function( elem ) { return jQuery.dir( elem, "parentNode" ); }, parentsUntil: function( elem, i, until ) { return jQuery.dir( elem, "parentNode", until ); }, next: function( elem ) { return sibling( elem, "nextSibling" ); }, prev: function( elem ) { return sibling( elem, "previousSibling" ); }, nextAll: function( elem ) { return jQuery.dir( elem, "nextSibling" ); }, prevAll: function( elem ) { return jQuery.dir( elem, "previousSibling" ); }, nextUntil: function( elem, i, until ) { return jQuery.dir( elem, "nextSibling", until ); }, prevUntil: function( elem, i, until ) { return jQuery.dir( elem, "previousSibling", until ); }, siblings: function( elem ) { return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); }, children: function( elem ) { return jQuery.sibling( elem.firstChild ); }, contents: function( elem ) { return jQuery.nodeName( elem, "iframe" ) ? elem.contentDocument || elem.contentWindow.document : jQuery.merge( [], elem.childNodes ); } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var ret = jQuery.map( this, fn, until ); if ( !runtil.test( name ) ) { selector = until; } if ( selector && typeof selector === "string" ) { ret = jQuery.filter( selector, ret ); } ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; if ( this.length > 1 && rparentsprev.test( name ) ) { ret = ret.reverse(); } return this.pushStack( ret, name, core_slice.call( arguments ).join(",") ); }; }); jQuery.extend({ filter: function( expr, elems, not ) { if ( not ) { expr = ":not(" + expr + ")"; } return elems.length === 1 ? jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] : jQuery.find.matches(expr, elems); }, dir: function( elem, dir, until ) { var matched = [], cur = elem[ dir ]; while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { if ( cur.nodeType === 1 ) { matched.push( cur ); } cur = cur[dir]; } return matched; }, sibling: function( n, elem ) { var r = []; for ( ; n; n = n.nextSibling ) { if ( n.nodeType === 1 && n !== elem ) { r.push( n ); } } return r; } }); // Implement the identical functionality for filter and not function winnow( elements, qualifier, keep ) { // Can't pass null or undefined to indexOf in Firefox 4 // Set to 0 to skip string check qualifier = qualifier || 0; if ( jQuery.isFunction( qualifier ) ) { return jQuery.grep(elements, function( elem, i ) { var retVal = !!qualifier.call( elem, i, elem ); return retVal === keep; }); } else if ( qualifier.nodeType ) { return jQuery.grep(elements, function( elem, i ) { return ( elem === qualifier ) === keep; }); } else if ( typeof qualifier === "string" ) { var filtered = jQuery.grep(elements, function( elem ) { return elem.nodeType === 1; }); if ( isSimple.test( qualifier ) ) { return jQuery.filter(qualifier, filtered, !keep); } else { qualifier = jQuery.filter( qualifier, filtered ); } } return jQuery.grep(elements, function( elem, i ) { return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep; }); } function createSafeFragment( document ) { var list = nodeNames.split( "|" ), safeFrag = document.createDocumentFragment(); if ( safeFrag.createElement ) { while ( list.length ) { safeFrag.createElement( list.pop() ); } } return safeFrag; } var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, rleadingWhitespace = /^\s+/, rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, rtagName = /<([\w:]+)/, rtbody = /]", "i"), rcheckableType = /^(?:checkbox|radio)$/, // checked="checked" or checked rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rscriptType = /\/(java|ecma)script/i, rcleanScript = /^\s*\s*$/g, wrapMap = { option: [ 1, "" ], legend: [ 1, "
                                                  ", "
                                                  " ], thead: [ 1, "", "
                                                  " ], tr: [ 2, "", "
                                                  " ], td: [ 3, "", "
                                                  " ], col: [ 2, "", "
                                                  " ], area: [ 1, "", "" ], _default: [ 0, "", "" ] }, safeFragment = createSafeFragment( document ), fragmentDiv = safeFragment.appendChild( document.createElement("div") ); wrapMap.optgroup = wrapMap.option; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, // unless wrapped in a div with non-breaking characters in front of it. if ( !jQuery.support.htmlSerialize ) { wrapMap._default = [ 1, "X
                                                  ", "
                                                  " ]; } jQuery.fn.extend({ text: function( value ) { return jQuery.access( this, function( value ) { return value === undefined ? jQuery.text( this ) : this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); }, null, value, arguments.length ); }, wrapAll: function( html ) { if ( jQuery.isFunction( html ) ) { return this.each(function(i) { jQuery(this).wrapAll( html.call(this, i) ); }); } if ( this[0] ) { // The elements to wrap the target around var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); if ( this[0].parentNode ) { wrap.insertBefore( this[0] ); } wrap.map(function() { var elem = this; while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { elem = elem.firstChild; } return elem; }).append( this ); } return this; }, wrapInner: function( html ) { if ( jQuery.isFunction( html ) ) { return this.each(function(i) { jQuery(this).wrapInner( html.call(this, i) ); }); } return this.each(function() { var self = jQuery( this ), contents = self.contents(); if ( contents.length ) { contents.wrapAll( html ); } else { self.append( html ); } }); }, wrap: function( html ) { var isFunction = jQuery.isFunction( html ); return this.each(function(i) { jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); }); }, unwrap: function() { return this.parent().each(function() { if ( !jQuery.nodeName( this, "body" ) ) { jQuery( this ).replaceWith( this.childNodes ); } }).end(); }, append: function() { return this.domManip(arguments, true, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 ) { this.appendChild( elem ); } }); }, prepend: function() { return this.domManip(arguments, true, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 ) { this.insertBefore( elem, this.firstChild ); } }); }, before: function() { if ( !isDisconnected( this[0] ) ) { return this.domManip(arguments, false, function( elem ) { this.parentNode.insertBefore( elem, this ); }); } if ( arguments.length ) { var set = jQuery.clean( arguments ); return this.pushStack( jQuery.merge( set, this ), "before", this.selector ); } }, after: function() { if ( !isDisconnected( this[0] ) ) { return this.domManip(arguments, false, function( elem ) { this.parentNode.insertBefore( elem, this.nextSibling ); }); } if ( arguments.length ) { var set = jQuery.clean( arguments ); return this.pushStack( jQuery.merge( this, set ), "after", this.selector ); } }, // keepData is for internal use only--do not document remove: function( selector, keepData ) { var elem, i = 0; for ( ; (elem = this[i]) != null; i++ ) { if ( !selector || jQuery.filter( selector, [ elem ] ).length ) { if ( !keepData && elem.nodeType === 1 ) { jQuery.cleanData( elem.getElementsByTagName("*") ); jQuery.cleanData( [ elem ] ); } if ( elem.parentNode ) { elem.parentNode.removeChild( elem ); } } } return this; }, empty: function() { var elem, i = 0; for ( ; (elem = this[i]) != null; i++ ) { // Remove element nodes and prevent memory leaks if ( elem.nodeType === 1 ) { jQuery.cleanData( elem.getElementsByTagName("*") ); } // Remove any remaining nodes while ( elem.firstChild ) { elem.removeChild( elem.firstChild ); } } return this; }, clone: function( dataAndEvents, deepDataAndEvents ) { dataAndEvents = dataAndEvents == null ? false : dataAndEvents; deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; return this.map( function () { return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); }); }, html: function( value ) { return jQuery.access( this, function( value ) { var elem = this[0] || {}, i = 0, l = this.length; if ( value === undefined ) { return elem.nodeType === 1 ? elem.innerHTML.replace( rinlinejQuery, "" ) : undefined; } // See if we can take a shortcut and just use innerHTML if ( typeof value === "string" && !rnoInnerhtml.test( value ) && ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) && ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { value = value.replace( rxhtmlTag, "<$1>" ); try { for (; i < l; i++ ) { // Remove element nodes and prevent memory leaks elem = this[i] || {}; if ( elem.nodeType === 1 ) { jQuery.cleanData( elem.getElementsByTagName( "*" ) ); elem.innerHTML = value; } } elem = 0; // If using innerHTML throws an exception, use the fallback method } catch(e) {} } if ( elem ) { this.empty().append( value ); } }, null, value, arguments.length ); }, replaceWith: function( value ) { if ( !isDisconnected( this[0] ) ) { // Make sure that the elements are removed from the DOM before they are inserted // this can help fix replacing a parent with child elements if ( jQuery.isFunction( value ) ) { return this.each(function(i) { var self = jQuery(this), old = self.html(); self.replaceWith( value.call( this, i, old ) ); }); } if ( typeof value !== "string" ) { value = jQuery( value ).detach(); } return this.each(function() { var next = this.nextSibling, parent = this.parentNode; jQuery( this ).remove(); if ( next ) { jQuery(next).before( value ); } else { jQuery(parent).append( value ); } }); } return this.length ? this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) : this; }, detach: function( selector ) { return this.remove( selector, true ); }, domManip: function( args, table, callback ) { // Flatten any nested arrays args = [].concat.apply( [], args ); var results, first, fragment, iNoClone, i = 0, value = args[0], scripts = [], l = this.length; // We can't cloneNode fragments that contain checked, in WebKit if ( !jQuery.support.checkClone && l > 1 && typeof value === "string" && rchecked.test( value ) ) { return this.each(function() { jQuery(this).domManip( args, table, callback ); }); } if ( jQuery.isFunction(value) ) { return this.each(function(i) { var self = jQuery(this); args[0] = value.call( this, i, table ? self.html() : undefined ); self.domManip( args, table, callback ); }); } if ( this[0] ) { results = jQuery.buildFragment( args, this, scripts ); fragment = results.fragment; first = fragment.firstChild; if ( fragment.childNodes.length === 1 ) { fragment = first; } if ( first ) { table = table && jQuery.nodeName( first, "tr" ); // Use the original fragment for the last item instead of the first because it can end up // being emptied incorrectly in certain situations (#8070). // Fragments from the fragment cache must always be cloned and never used in place. for ( iNoClone = results.cacheable || l - 1; i < l; i++ ) { callback.call( table && jQuery.nodeName( this[i], "table" ) ? findOrAppend( this[i], "tbody" ) : this[i], i === iNoClone ? fragment : jQuery.clone( fragment, true, true ) ); } } // Fix #11809: Avoid leaking memory fragment = first = null; if ( scripts.length ) { jQuery.each( scripts, function( i, elem ) { if ( elem.src ) { if ( jQuery.ajax ) { jQuery.ajax({ url: elem.src, type: "GET", dataType: "script", async: false, global: false, "throws": true }); } else { jQuery.error("no ajax"); } } else { jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "" ) ); } if ( elem.parentNode ) { elem.parentNode.removeChild( elem ); } }); } } return this; } }); function findOrAppend( elem, tag ) { return elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) ); } function cloneCopyEvent( src, dest ) { if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { return; } var type, i, l, oldData = jQuery._data( src ), curData = jQuery._data( dest, oldData ), events = oldData.events; if ( events ) { delete curData.handle; curData.events = {}; for ( type in events ) { for ( i = 0, l = events[ type ].length; i < l; i++ ) { jQuery.event.add( dest, type, events[ type ][ i ] ); } } } // make the cloned public data object a copy from the original if ( curData.data ) { curData.data = jQuery.extend( {}, curData.data ); } } function cloneFixAttributes( src, dest ) { var nodeName; // We do not need to do anything for non-Elements if ( dest.nodeType !== 1 ) { return; } // clearAttributes removes the attributes, which we don't want, // but also removes the attachEvent events, which we *do* want if ( dest.clearAttributes ) { dest.clearAttributes(); } // mergeAttributes, in contrast, only merges back on the // original attributes, not the events if ( dest.mergeAttributes ) { dest.mergeAttributes( src ); } nodeName = dest.nodeName.toLowerCase(); if ( nodeName === "object" ) { // IE6-10 improperly clones children of object elements using classid. // IE10 throws NoModificationAllowedError if parent is null, #12132. if ( dest.parentNode ) { dest.outerHTML = src.outerHTML; } // This path appears unavoidable for IE9. When cloning an object // element in IE9, the outerHTML strategy above is not sufficient. // If the src has innerHTML and the destination does not, // copy the src.innerHTML into the dest.innerHTML. #10324 if ( jQuery.support.html5Clone && (src.innerHTML && !jQuery.trim(dest.innerHTML)) ) { dest.innerHTML = src.innerHTML; } } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) { // IE6-8 fails to persist the checked state of a cloned checkbox // or radio button. Worse, IE6-7 fail to give the cloned element // a checked appearance if the defaultChecked value isn't also set dest.defaultChecked = dest.checked = src.checked; // IE6-7 get confused and end up setting the value of a cloned // checkbox/radio button to an empty string instead of "on" if ( dest.value !== src.value ) { dest.value = src.value; } // IE6-8 fails to return the selected option to the default selected // state when cloning options } else if ( nodeName === "option" ) { dest.selected = src.defaultSelected; // IE6-8 fails to set the defaultValue to the correct value when // cloning other types of input fields } else if ( nodeName === "input" || nodeName === "textarea" ) { dest.defaultValue = src.defaultValue; // IE blanks contents when cloning scripts } else if ( nodeName === "script" && dest.text !== src.text ) { dest.text = src.text; } // Event data gets referenced instead of copied if the expando // gets copied too dest.removeAttribute( jQuery.expando ); } jQuery.buildFragment = function( args, context, scripts ) { var fragment, cacheable, cachehit, first = args[ 0 ]; // Set context from what may come in as undefined or a jQuery collection or a node // Updated to fix #12266 where accessing context[0] could throw an exception in IE9/10 & // also doubles as fix for #8950 where plain objects caused createDocumentFragment exception context = context || document; context = !context.nodeType && context[0] || context; context = context.ownerDocument || context; // Only cache "small" (1/2 KB) HTML strings that are associated with the main document // Cloning options loses the selected state, so don't cache them // IE 6 doesn't like it when you put or elements in a fragment // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501 if ( args.length === 1 && typeof first === "string" && first.length < 512 && context === document && first.charAt(0) === "<" && !rnocache.test( first ) && (jQuery.support.checkClone || !rchecked.test( first )) && (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) { // Mark cacheable and look for a hit cacheable = true; fragment = jQuery.fragments[ first ]; cachehit = fragment !== undefined; } if ( !fragment ) { fragment = context.createDocumentFragment(); jQuery.clean( args, context, fragment, scripts ); // Update the cache, but only store false // unless this is a second parsing of the same content if ( cacheable ) { jQuery.fragments[ first ] = cachehit && fragment; } } return { fragment: fragment, cacheable: cacheable }; }; jQuery.fragments = {}; jQuery.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function( name, original ) { jQuery.fn[ name ] = function( selector ) { var elems, i = 0, ret = [], insert = jQuery( selector ), l = insert.length, parent = this.length === 1 && this[0].parentNode; if ( (parent == null || parent && parent.nodeType === 11 && parent.childNodes.length === 1) && l === 1 ) { insert[ original ]( this[0] ); return this; } else { for ( ; i < l; i++ ) { elems = ( i > 0 ? this.clone(true) : this ).get(); jQuery( insert[i] )[ original ]( elems ); ret = ret.concat( elems ); } return this.pushStack( ret, name, insert.selector ); } }; }); function getAll( elem ) { if ( typeof elem.getElementsByTagName !== "undefined" ) { return elem.getElementsByTagName( "*" ); } else if ( typeof elem.querySelectorAll !== "undefined" ) { return elem.querySelectorAll( "*" ); } else { return []; } } // Used in clean, fixes the defaultChecked property function fixDefaultChecked( elem ) { if ( rcheckableType.test( elem.type ) ) { elem.defaultChecked = elem.checked; } } jQuery.extend({ clone: function( elem, dataAndEvents, deepDataAndEvents ) { var srcElements, destElements, i, clone; if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { clone = elem.cloneNode( true ); // IE<=8 does not properly clone detached, unknown element nodes } else { fragmentDiv.innerHTML = elem.outerHTML; fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); } if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { // IE copies events bound via attachEvent when using cloneNode. // Calling detachEvent on the clone will also remove the events // from the original. In order to get around this, we use some // proprietary methods to clear the events. Thanks to MooTools // guys for this hotness. cloneFixAttributes( elem, clone ); // Using Sizzle here is crazy slow, so we use getElementsByTagName instead srcElements = getAll( elem ); destElements = getAll( clone ); // Weird iteration because IE will replace the length property // with an element if you are cloning the body and one of the // elements on the page has a name or id of "length" for ( i = 0; srcElements[i]; ++i ) { // Ensure that the destination node is not null; Fixes #9587 if ( destElements[i] ) { cloneFixAttributes( srcElements[i], destElements[i] ); } } } // Copy the events from the original to the clone if ( dataAndEvents ) { cloneCopyEvent( elem, clone ); if ( deepDataAndEvents ) { srcElements = getAll( elem ); destElements = getAll( clone ); for ( i = 0; srcElements[i]; ++i ) { cloneCopyEvent( srcElements[i], destElements[i] ); } } } srcElements = destElements = null; // Return the cloned set return clone; }, clean: function( elems, context, fragment, scripts ) { var i, j, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags, safe = context === document && safeFragment, ret = []; // Ensure that context is a document if ( !context || typeof context.createDocumentFragment === "undefined" ) { context = document; } // Use the already-created safe fragment if context permits for ( i = 0; (elem = elems[i]) != null; i++ ) { if ( typeof elem === "number" ) { elem += ""; } if ( !elem ) { continue; } // Convert html string into DOM nodes if ( typeof elem === "string" ) { if ( !rhtml.test( elem ) ) { elem = context.createTextNode( elem ); } else { // Ensure a safe container in which to render the html safe = safe || createSafeFragment( context ); div = context.createElement("div"); safe.appendChild( div ); // Fix "XHTML"-style tags in all browsers elem = elem.replace(rxhtmlTag, "<$1>"); // Go to html and back, then peel off extra wrappers tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(); wrap = wrapMap[ tag ] || wrapMap._default; depth = wrap[0]; div.innerHTML = wrap[1] + elem + wrap[2]; // Move to the right depth while ( depth-- ) { div = div.lastChild; } // Remove IE's autoinserted from table fragments if ( !jQuery.support.tbody ) { // String was a , *may* have spurious hasBody = rtbody.test(elem); tbody = tag === "table" && !hasBody ? div.firstChild && div.firstChild.childNodes : // String was a bare or wrap[1] === "
                                                  " && !hasBody ? div.childNodes : []; for ( j = tbody.length - 1; j >= 0 ; --j ) { if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) { tbody[ j ].parentNode.removeChild( tbody[ j ] ); } } } // IE completely kills leading whitespace when innerHTML is used if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild ); } elem = div.childNodes; // Take out of fragment container (we need a fresh div each time) div.parentNode.removeChild( div ); } } if ( elem.nodeType ) { ret.push( elem ); } else { jQuery.merge( ret, elem ); } } // Fix #11356: Clear elements from safeFragment if ( div ) { elem = div = safe = null; } // Reset defaultChecked for any radios and checkboxes // about to be appended to the DOM in IE 6/7 (#8060) if ( !jQuery.support.appendChecked ) { for ( i = 0; (elem = ret[i]) != null; i++ ) { if ( jQuery.nodeName( elem, "input" ) ) { fixDefaultChecked( elem ); } else if ( typeof elem.getElementsByTagName !== "undefined" ) { jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked ); } } } // Append elements to a provided document fragment if ( fragment ) { // Special handling of each script element handleScript = function( elem ) { // Check if we consider it executable if ( !elem.type || rscriptType.test( elem.type ) ) { // Detach the script and store it in the scripts array (if provided) or the fragment // Return truthy to indicate that it has been handled return scripts ? scripts.push( elem.parentNode ? elem.parentNode.removeChild( elem ) : elem ) : fragment.appendChild( elem ); } }; for ( i = 0; (elem = ret[i]) != null; i++ ) { // Check if we're done after handling an executable script if ( !( jQuery.nodeName( elem, "script" ) && handleScript( elem ) ) ) { // Append to fragment and handle embedded scripts fragment.appendChild( elem ); if ( typeof elem.getElementsByTagName !== "undefined" ) { // handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript ); // Splice the scripts into ret after their former ancestor and advance our index beyond them ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) ); i += jsTags.length; } } } } return ret; }, cleanData: function( elems, /* internal */ acceptData ) { var data, id, elem, type, i = 0, internalKey = jQuery.expando, cache = jQuery.cache, deleteExpando = jQuery.support.deleteExpando, special = jQuery.event.special; for ( ; (elem = elems[i]) != null; i++ ) { if ( acceptData || jQuery.acceptData( elem ) ) { id = elem[ internalKey ]; data = id && cache[ id ]; if ( data ) { if ( data.events ) { for ( type in data.events ) { if ( special[ type ] ) { jQuery.event.remove( elem, type ); // This is a shortcut to avoid jQuery.event.remove's overhead } else { jQuery.removeEvent( elem, type, data.handle ); } } } // Remove cache only if it was not already removed by jQuery.event.remove if ( cache[ id ] ) { delete cache[ id ]; // IE does not allow us to delete expando properties from nodes, // nor does it have a removeAttribute function on Document nodes; // we must handle all of these cases if ( deleteExpando ) { delete elem[ internalKey ]; } else if ( elem.removeAttribute ) { elem.removeAttribute( internalKey ); } else { elem[ internalKey ] = null; } jQuery.deletedIds.push( id ); } } } } } }); // Limit scope pollution from any deprecated API (function() { var matched, browser; // Use of jQuery.browser is frowned upon. // More details: http://api.jquery.com/jQuery.browser // jQuery.uaMatch maintained for back-compat jQuery.uaMatch = function( 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" }; }; matched = jQuery.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; } jQuery.browser = browser; jQuery.sub = function() { function jQuerySub( selector, context ) { return new jQuerySub.fn.init( selector, context ); } jQuery.extend( true, jQuerySub, this ); jQuerySub.superclass = this; jQuerySub.fn = jQuerySub.prototype = this(); jQuerySub.fn.constructor = jQuerySub; jQuerySub.sub = this.sub; jQuerySub.fn.init = function init( selector, context ) { if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { context = jQuerySub( context ); } return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); }; jQuerySub.fn.init.prototype = jQuerySub.fn; var rootjQuerySub = jQuerySub(document); return jQuerySub; }; })(); var curCSS, iframe, iframeDoc, ralpha = /alpha\([^)]*\)/i, ropacity = /opacity=([^)]*)/, rposition = /^(top|right|bottom|left)$/, // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display rdisplayswap = /^(none|table(?!-c[ea]).+)/, rmargin = /^margin/, rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), rrelNum = new RegExp( "^([-+])=(" + core_pnum + ")", "i" ), elemdisplay = { BODY: "block" }, cssShow = { position: "absolute", visibility: "hidden", display: "block" }, cssNormalTransform = { letterSpacing: 0, fontWeight: 400 }, cssExpand = [ "Top", "Right", "Bottom", "Left" ], cssPrefixes = [ "Webkit", "O", "Moz", "ms" ], eventsToggle = jQuery.fn.toggle; // return a css property mapped to a potentially vendor prefixed property function vendorPropName( style, name ) { // shortcut for names that are not vendor prefixed if ( name in style ) { return name; } // check for vendor prefixed names var capName = name.charAt(0).toUpperCase() + name.slice(1), origName = name, i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i ] + capName; if ( name in style ) { return name; } } return origName; } function isHidden( elem, el ) { elem = el || elem; return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); } function showHide( elements, show ) { var elem, display, values = [], index = 0, length = elements.length; for ( ; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } values[ index ] = jQuery._data( elem, "olddisplay" ); if ( show ) { // Reset the inline display of this element to learn if it is // being hidden by cascaded rules or not if ( !values[ index ] && elem.style.display === "none" ) { elem.style.display = ""; } // Set elements which have been overridden with display: none // in a stylesheet to whatever the default browser style is // for such an element if ( elem.style.display === "" && isHidden( elem ) ) { values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) ); } } else { display = curCSS( elem, "display" ); if ( !values[ index ] && display !== "none" ) { jQuery._data( elem, "olddisplay", display ); } } } // Set the display of most of the elements in a second loop // to avoid the constant reflow for ( index = 0; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } if ( !show || elem.style.display === "none" || elem.style.display === "" ) { elem.style.display = show ? values[ index ] || "" : "none"; } } return elements; } jQuery.fn.extend({ css: function( name, value ) { return jQuery.access( this, function( elem, name, value ) { return value !== undefined ? jQuery.style( elem, name, value ) : jQuery.css( elem, name ); }, name, value, arguments.length > 1 ); }, show: function() { return showHide( this, true ); }, hide: function() { return showHide( this ); }, toggle: function( state, fn2 ) { var bool = typeof state === "boolean"; if ( jQuery.isFunction( state ) && jQuery.isFunction( fn2 ) ) { return eventsToggle.apply( this, arguments ); } return this.each(function() { if ( bool ? state : isHidden( this ) ) { jQuery( this ).show(); } else { jQuery( this ).hide(); } }); } }); jQuery.extend({ // Add in style property hooks for overriding the default // behavior of getting and setting a style property cssHooks: { opacity: { get: function( elem, computed ) { if ( computed ) { // We should always get a number back from opacity var ret = curCSS( elem, "opacity" ); return ret === "" ? "1" : ret; } } } }, // Exclude the following css properties to add px cssNumber: { "fillOpacity": true, "fontWeight": true, "lineHeight": true, "opacity": true, "orphans": true, "widows": true, "zIndex": true, "zoom": true }, // Add in properties whose names you wish to fix before // setting or getting the value cssProps: { // normalize float css property "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat" }, // Get and set the style property on a DOM Node style: function( elem, name, value, extra ) { // Don't set styles on text and comment nodes if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { return; } // Make sure that we're working with the right name var ret, type, hooks, origName = jQuery.camelCase( name ), style = elem.style; name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); // gets hook for the prefixed version // followed by the unprefixed version hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // Check if we're setting a value if ( value !== undefined ) { type = typeof value; // convert relative number strings (+= or -=) to relative numbers. #7345 if ( type === "string" && (ret = rrelNum.exec( value )) ) { value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); // Fixes bug #9237 type = "number"; } // Make sure that NaN and null values aren't set. See: #7116 if ( value == null || type === "number" && isNaN( value ) ) { return; } // If a number was passed in, add 'px' to the (except for certain CSS properties) if ( type === "number" && !jQuery.cssNumber[ origName ] ) { value += "px"; } // If a hook was provided, use that value, otherwise just set the specified value if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { // Wrapped to prevent IE from throwing errors when 'invalid' values are provided // Fixes bug #5509 try { style[ name ] = value; } catch(e) {} } } else { // If a hook was provided get the non-computed value from there if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { return ret; } // Otherwise just get the value from the style object return style[ name ]; } }, css: function( elem, name, numeric, extra ) { var val, num, hooks, origName = jQuery.camelCase( name ); // Make sure that we're working with the right name name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); // gets hook for the prefixed version // followed by the unprefixed version hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // If a hook was provided get the computed value from there if ( hooks && "get" in hooks ) { val = hooks.get( elem, true, extra ); } // Otherwise, if a way to get the computed value exists, use that if ( val === undefined ) { val = curCSS( elem, name ); } //convert "normal" to computed value if ( val === "normal" && name in cssNormalTransform ) { val = cssNormalTransform[ name ]; } // Return, converting to number if forced or a qualifier was provided and val looks numeric if ( numeric || extra !== undefined ) { num = parseFloat( val ); return numeric || jQuery.isNumeric( num ) ? num || 0 : val; } return val; }, // A method for quickly swapping in/out CSS properties to get correct calculations swap: function( elem, options, callback ) { var ret, name, old = {}; // Remember the old values, and insert the new ones for ( name in options ) { old[ name ] = elem.style[ name ]; elem.style[ name ] = options[ name ]; } ret = callback.call( elem ); // Revert the old values for ( name in options ) { elem.style[ name ] = old[ name ]; } return ret; } }); // NOTE: To any future maintainer, we've window.getComputedStyle // because jsdom on node.js will break without it. if ( window.getComputedStyle ) { curCSS = function( elem, name ) { var ret, width, minWidth, maxWidth, computed = window.getComputedStyle( elem, null ), style = elem.style; if ( computed ) { // getPropertyValue is only needed for .css('filter') in IE9, see #12537 ret = computed.getPropertyValue( name ) || computed[ name ]; if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { ret = jQuery.style( elem, name ); } // A tribute to the "awesome hack by Dean Edwards" // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { width = style.width; minWidth = style.minWidth; maxWidth = style.maxWidth; style.minWidth = style.maxWidth = style.width = ret; ret = computed.width; style.width = width; style.minWidth = minWidth; style.maxWidth = maxWidth; } } return ret; }; } else if ( document.documentElement.currentStyle ) { curCSS = function( elem, name ) { var left, rsLeft, ret = elem.currentStyle && elem.currentStyle[ name ], style = elem.style; // Avoid setting ret to empty string here // so we don't default to auto if ( ret == null && style && style[ name ] ) { ret = style[ name ]; } // From the awesome hack by Dean Edwards // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 // If we're not dealing with a regular pixel number // but a number that has a weird ending, we need to convert it to pixels // but not position css attributes, as those are proportional to the parent element instead // and we can't measure the parent instead because it might trigger a "stacking dolls" problem if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) { // Remember the original values left = style.left; rsLeft = elem.runtimeStyle && elem.runtimeStyle.left; // Put in the new values to get a computed value out if ( rsLeft ) { elem.runtimeStyle.left = elem.currentStyle.left; } style.left = name === "fontSize" ? "1em" : ret; ret = style.pixelLeft + "px"; // Revert the changed values style.left = left; if ( rsLeft ) { elem.runtimeStyle.left = rsLeft; } } return ret === "" ? "auto" : ret; }; } function setPositiveNumber( elem, value, subtract ) { var matches = rnumsplit.exec( value ); return matches ? Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : value; } function augmentWidthOrHeight( elem, name, extra, isBorderBox ) { var i = extra === ( isBorderBox ? "border" : "content" ) ? // If we already have the right measurement, avoid augmentation 4 : // Otherwise initialize for horizontal or vertical properties name === "width" ? 1 : 0, val = 0; for ( ; i < 4; i += 2 ) { // both box models exclude margin, so add it if we want it if ( extra === "margin" ) { // we use jQuery.css instead of curCSS here // because of the reliableMarginRight CSS hook! val += jQuery.css( elem, extra + cssExpand[ i ], true ); } // From this point on we use curCSS for maximum performance (relevant in animations) if ( isBorderBox ) { // border-box includes padding, so remove it if we want content if ( extra === "content" ) { val -= parseFloat( curCSS( elem, "padding" + cssExpand[ i ] ) ) || 0; } // at this point, extra isn't border nor margin, so remove border if ( extra !== "margin" ) { val -= parseFloat( curCSS( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0; } } else { // at this point, extra isn't content, so add padding val += parseFloat( curCSS( elem, "padding" + cssExpand[ i ] ) ) || 0; // at this point, extra isn't content nor padding, so add border if ( extra !== "padding" ) { val += parseFloat( curCSS( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0; } } } return val; } function getWidthOrHeight( elem, name, extra ) { // Start with offset property, which is equivalent to the border-box value var val = name === "width" ? elem.offsetWidth : elem.offsetHeight, valueIsBorderBox = true, isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing" ) === "border-box"; // some non-html elements return undefined for offsetWidth, so check for null/undefined // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 if ( val <= 0 || val == null ) { // Fall back to computed then uncomputed css if necessary val = curCSS( elem, name ); if ( val < 0 || val == null ) { val = elem.style[ name ]; } // Computed unit is not pixels. Stop here and return. if ( rnumnonpx.test(val) ) { return val; } // we need the check for style in case a browser which returns unreliable values // for getComputedStyle silently falls back to the reliable elem.style valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] ); // Normalize "", auto, and prepare for extra val = parseFloat( val ) || 0; } // use the active box-sizing model to add/subtract irrelevant styles return ( val + augmentWidthOrHeight( elem, name, extra || ( isBorderBox ? "border" : "content" ), valueIsBorderBox ) ) + "px"; } // Try to determine the default display value of an element function css_defaultDisplay( nodeName ) { if ( elemdisplay[ nodeName ] ) { return elemdisplay[ nodeName ]; } var elem = jQuery( "<" + nodeName + ">" ).appendTo( document.body ), display = elem.css("display"); elem.remove(); // If the simple way fails, // get element's real default display by attaching it to a temp iframe if ( display === "none" || display === "" ) { // Use the already-created iframe if possible iframe = document.body.appendChild( iframe || jQuery.extend( document.createElement("iframe"), { frameBorder: 0, width: 0, height: 0 }) ); // Create a cacheable copy of the iframe document on first call. // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML // document to it; WebKit & Firefox won't allow reusing the iframe document. if ( !iframeDoc || !iframe.createElement ) { iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document; iframeDoc.write(""); iframeDoc.close(); } elem = iframeDoc.body.appendChild( iframeDoc.createElement(nodeName) ); display = curCSS( elem, "display" ); document.body.removeChild( iframe ); } // Store the correct default display elemdisplay[ nodeName ] = display; return display; } jQuery.each([ "height", "width" ], function( i, name ) { jQuery.cssHooks[ name ] = { get: function( elem, computed, extra ) { if ( computed ) { // certain elements can have dimension info if we invisibly show them // however, it must have a current display style that would benefit from this if ( elem.offsetWidth === 0 && rdisplayswap.test( curCSS( elem, "display" ) ) ) { return jQuery.swap( elem, cssShow, function() { return getWidthOrHeight( elem, name, extra ); }); } else { return getWidthOrHeight( elem, name, extra ); } } }, set: function( elem, value, extra ) { return setPositiveNumber( elem, value, extra ? augmentWidthOrHeight( elem, name, extra, jQuery.support.boxSizing && jQuery.css( elem, "boxSizing" ) === "border-box" ) : 0 ); } }; }); if ( !jQuery.support.opacity ) { jQuery.cssHooks.opacity = { get: function( elem, computed ) { // IE uses filters for opacity return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ? ( 0.01 * parseFloat( RegExp.$1 ) ) + "" : computed ? "1" : ""; }, set: function( elem, value ) { var style = elem.style, currentStyle = elem.currentStyle, opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "", filter = currentStyle && currentStyle.filter || style.filter || ""; // IE has trouble with opacity if it does not have layout // Force it by setting the zoom level style.zoom = 1; // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652 if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" && style.removeAttribute ) { // Setting style.filter to null, "" & " " still leave "filter:" in the cssText // if "filter:" is present at all, clearType is disabled, we want to avoid this // style.removeAttribute is IE Only, but so apparently is this code path... style.removeAttribute( "filter" ); // if there there is no filter style applied in a css rule, we are done if ( currentStyle && !currentStyle.filter ) { return; } } // otherwise, set new filter values style.filter = ralpha.test( filter ) ? filter.replace( ralpha, opacity ) : filter + " " + opacity; } }; } // These hooks cannot be added until DOM ready because the support test // for it is not run until after DOM ready jQuery(function() { if ( !jQuery.support.reliableMarginRight ) { jQuery.cssHooks.marginRight = { get: function( elem, computed ) { // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right // Work around by temporarily setting element display to inline-block return jQuery.swap( elem, { "display": "inline-block" }, function() { if ( computed ) { return curCSS( elem, "marginRight" ); } }); } }; } // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084 // getComputedStyle returns percent when specified for top/left/bottom/right // rather than make the css module depend on the offset module, we just check for it here if ( !jQuery.support.pixelPosition && jQuery.fn.position ) { jQuery.each( [ "top", "left" ], function( i, prop ) { jQuery.cssHooks[ prop ] = { get: function( elem, computed ) { if ( computed ) { var ret = curCSS( elem, prop ); // if curCSS returns percentage, fallback to offset return rnumnonpx.test( ret ) ? jQuery( elem ).position()[ prop ] + "px" : ret; } } }; }); } }); if ( jQuery.expr && jQuery.expr.filters ) { jQuery.expr.filters.hidden = function( elem ) { return ( elem.offsetWidth === 0 && elem.offsetHeight === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || curCSS( elem, "display" )) === "none"); }; jQuery.expr.filters.visible = function( elem ) { return !jQuery.expr.filters.hidden( elem ); }; } // These hooks are used by animate to expand properties jQuery.each({ margin: "", padding: "", border: "Width" }, function( prefix, suffix ) { jQuery.cssHooks[ prefix + suffix ] = { expand: function( value ) { var i, // assumes a single number if not a string parts = typeof value === "string" ? value.split(" ") : [ value ], expanded = {}; for ( i = 0; i < 4; i++ ) { expanded[ prefix + cssExpand[ i ] + suffix ] = parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; } return expanded; } }; if ( !rmargin.test( prefix ) ) { jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; } }); var r20 = /%20/g, rbracket = /\[\]$/, rCRLF = /\r?\n/g, rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, rselectTextarea = /^(?:select|textarea)/i; jQuery.fn.extend({ serialize: function() { return jQuery.param( this.serializeArray() ); }, serializeArray: function() { return this.map(function(){ return this.elements ? jQuery.makeArray( this.elements ) : this; }) .filter(function(){ return this.name && !this.disabled && ( this.checked || rselectTextarea.test( this.nodeName ) || rinput.test( this.type ) ); }) .map(function( i, elem ){ var val = jQuery( this ).val(); return val == null ? null : jQuery.isArray( val ) ? jQuery.map( val, function( val, i ){ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; }) : { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; }).get(); } }); //Serialize an array of form elements or a set of //key/values into a query string jQuery.param = function( a, traditional ) { var prefix, s = [], add = function( key, value ) { // If value is a function, invoke it and return its value value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value ); s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value ); }; // Set traditional to true for jQuery <= 1.3.2 behavior. if ( traditional === undefined ) { traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional; } // If an array was passed in, assume that it is an array of form elements. if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { // Serialize the form elements jQuery.each( a, function() { add( this.name, this.value ); }); } else { // If traditional, encode the "old" way (the way 1.3.2 or older // did it), otherwise encode params recursively. for ( prefix in a ) { buildParams( prefix, a[ prefix ], traditional, add ); } } // Return the resulting serialization return s.join( "&" ).replace( r20, "+" ); }; function buildParams( prefix, obj, traditional, add ) { var name; if ( jQuery.isArray( obj ) ) { // Serialize array item. jQuery.each( obj, function( i, v ) { if ( traditional || rbracket.test( prefix ) ) { // Treat each array item as a scalar. add( prefix, v ); } else { // If array item is non-scalar (array or object), encode its // numeric index to resolve deserialization ambiguity issues. // Note that rack (as of 1.0.0) can't currently deserialize // nested arrays properly, and attempting to do so may cause // a server error. Possible fixes are to modify rack's // deserialization algorithm or to provide an option or flag // to force array serialization to be shallow. buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add ); } }); } else if ( !traditional && jQuery.type( obj ) === "object" ) { // Serialize object item. for ( name in obj ) { buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); } } else { // Serialize scalar item. add( prefix, obj ); } } var // Document location ajaxLocParts, ajaxLocation, rhash = /#.*$/, rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL // #7653, #8125, #8152: local protocol detection rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, rquery = /\?/, rscript = /)<[^<]*)*<\/script>/gi, rts = /([?&])_=[^&]*/, rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, // Keep a copy of the old load method _load = jQuery.fn.load, /* Prefilters * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) * 2) These are called: * - BEFORE asking for a transport * - AFTER param serialization (s.data is a string if s.processData is true) * 3) key is the dataType * 4) the catchall symbol "*" can be used * 5) execution will start with transport dataType and THEN continue down to "*" if needed */ prefilters = {}, /* Transports bindings * 1) key is the dataType * 2) the catchall symbol "*" can be used * 3) selection will start with transport dataType and THEN go to "*" if needed */ transports = {}, // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression allTypes = ["*/"] + ["*"]; // #8138, IE may throw an exception when accessing // a field from window.location if document.domain has been set try { ajaxLocation = location.href; } catch( e ) { // Use the href attribute of an A element // since IE will modify it given document.location ajaxLocation = document.createElement( "a" ); ajaxLocation.href = ""; ajaxLocation = ajaxLocation.href; } // Segment location into parts ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || []; // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport function addToPrefiltersOrTransports( structure ) { // dataTypeExpression is optional and defaults to "*" return function( dataTypeExpression, func ) { if ( typeof dataTypeExpression !== "string" ) { func = dataTypeExpression; dataTypeExpression = "*"; } var dataType, list, placeBefore, dataTypes = dataTypeExpression.toLowerCase().split( core_rspace ), i = 0, length = dataTypes.length; if ( jQuery.isFunction( func ) ) { // For each dataType in the dataTypeExpression for ( ; i < length; i++ ) { dataType = dataTypes[ i ]; // We control if we're asked to add before // any existing element placeBefore = /^\+/.test( dataType ); if ( placeBefore ) { dataType = dataType.substr( 1 ) || "*"; } list = structure[ dataType ] = structure[ dataType ] || []; // then we add to the structure accordingly list[ placeBefore ? "unshift" : "push" ]( func ); } } }; } // Base inspection function for prefilters and transports function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR, dataType /* internal */, inspected /* internal */ ) { dataType = dataType || options.dataTypes[ 0 ]; inspected = inspected || {}; inspected[ dataType ] = true; var selection, list = structure[ dataType ], i = 0, length = list ? list.length : 0, executeOnly = ( structure === prefilters ); for ( ; i < length && ( executeOnly || !selection ); i++ ) { selection = list[ i ]( options, originalOptions, jqXHR ); // If we got redirected to another dataType // we try there if executing only and not done already if ( typeof selection === "string" ) { if ( !executeOnly || inspected[ selection ] ) { selection = undefined; } else { options.dataTypes.unshift( selection ); selection = inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR, selection, inspected ); } } } // If we're only executing or nothing was selected // we try the catchall dataType if not done already if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) { selection = inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR, "*", inspected ); } // unnecessary when only executing (prefilters) // but it'll be ignored by the caller in that case return selection; } // A special extend for ajax options // that takes "flat" options (not to be deep extended) // Fixes #9887 function ajaxExtend( target, src ) { var key, deep, flatOptions = jQuery.ajaxSettings.flatOptions || {}; for ( key in src ) { if ( src[ key ] !== undefined ) { ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; } } if ( deep ) { jQuery.extend( true, target, deep ); } } jQuery.fn.load = function( url, params, callback ) { if ( typeof url !== "string" && _load ) { return _load.apply( this, arguments ); } // Don't do a request if no elements are being requested if ( !this.length ) { return this; } var selector, type, response, self = this, off = url.indexOf(" "); if ( off >= 0 ) { selector = url.slice( off, url.length ); url = url.slice( 0, off ); } // If it's a function if ( jQuery.isFunction( params ) ) { // We assume that it's the callback callback = params; params = undefined; // Otherwise, build a param string } else if ( params && typeof params === "object" ) { type = "POST"; } // Request the remote document jQuery.ajax({ url: url, // if "type" variable is undefined, then "GET" method will be used type: type, dataType: "html", data: params, complete: function( jqXHR, status ) { if ( callback ) { self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] ); } } }).done(function( responseText ) { // Save response for use in complete callback response = arguments; // See if a selector was specified self.html( selector ? // Create a dummy div to hold the results jQuery("
                                                  ") // inject the contents of the document in, removing the scripts // to avoid any 'Permission Denied' errors in IE .append( responseText.replace( rscript, "" ) ) // Locate the specified elements .find( selector ) : // If not, just inject the full result responseText ); }); return this; }; // Attach a bunch of functions for handling common AJAX events jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){ jQuery.fn[ o ] = function( f ){ return this.on( o, f ); }; }); jQuery.each( [ "get", "post" ], function( i, method ) { jQuery[ method ] = function( url, data, callback, type ) { // shift arguments if data argument was omitted if ( jQuery.isFunction( data ) ) { type = type || callback; callback = data; data = undefined; } return jQuery.ajax({ type: method, url: url, data: data, success: callback, dataType: type }); }; }); jQuery.extend({ getScript: function( url, callback ) { return jQuery.get( url, undefined, callback, "script" ); }, getJSON: function( url, data, callback ) { return jQuery.get( url, data, callback, "json" ); }, // Creates a full fledged settings object into target // with both ajaxSettings and settings fields. // If target is omitted, writes into ajaxSettings. ajaxSetup: function( target, settings ) { if ( settings ) { // Building a settings object ajaxExtend( target, jQuery.ajaxSettings ); } else { // Extending ajaxSettings settings = target; target = jQuery.ajaxSettings; } ajaxExtend( target, settings ); return target; }, ajaxSettings: { url: ajaxLocation, isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ), global: true, type: "GET", contentType: "application/x-www-form-urlencoded; charset=UTF-8", processData: true, async: true, /* timeout: 0, data: null, dataType: null, username: null, password: null, cache: null, throws: false, traditional: false, headers: {}, */ accepts: { xml: "application/xml, text/xml", html: "text/html", text: "text/plain", json: "application/json, text/javascript", "*": allTypes }, contents: { xml: /xml/, html: /html/, json: /json/ }, responseFields: { xml: "responseXML", text: "responseText" }, // List of data converters // 1) key format is "source_type destination_type" (a single space in-between) // 2) the catchall symbol "*" can be used for source_type converters: { // Convert anything to text "* text": window.String, // Text to html (true = no transformation) "text html": true, // Evaluate text as a json expression "text json": jQuery.parseJSON, // Parse text as xml "text xml": jQuery.parseXML }, // For options that shouldn't be deep extended: // you can add your own custom options here if // and when you create one that shouldn't be // deep extended (see ajaxExtend) flatOptions: { context: true, url: true } }, ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), ajaxTransport: addToPrefiltersOrTransports( transports ), // Main method ajax: function( url, options ) { // If url is an object, simulate pre-1.5 signature if ( typeof url === "object" ) { options = url; url = undefined; } // Force options to be an object options = options || {}; var // ifModified key ifModifiedKey, // Response headers responseHeadersString, responseHeaders, // transport transport, // timeout handle timeoutTimer, // Cross-domain detection vars parts, // To know if global events are to be dispatched fireGlobals, // Loop variable i, // Create the final options object s = jQuery.ajaxSetup( {}, options ), // Callbacks context callbackContext = s.context || s, // Context for global events // It's the callbackContext if one was provided in the options // and if it's a DOM node or a jQuery collection globalEventContext = callbackContext !== s && ( callbackContext.nodeType || callbackContext instanceof jQuery ) ? jQuery( callbackContext ) : jQuery.event, // Deferreds deferred = jQuery.Deferred(), completeDeferred = jQuery.Callbacks( "once memory" ), // Status-dependent callbacks statusCode = s.statusCode || {}, // Headers (they are sent all at once) requestHeaders = {}, requestHeadersNames = {}, // The jqXHR state state = 0, // Default abort message strAbort = "canceled", // Fake xhr jqXHR = { readyState: 0, // Caches the header setRequestHeader: function( name, value ) { if ( !state ) { var lname = name.toLowerCase(); name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name; requestHeaders[ name ] = value; } return this; }, // Raw string getAllResponseHeaders: function() { return state === 2 ? responseHeadersString : null; }, // Builds headers hashtable if needed getResponseHeader: function( key ) { var match; if ( state === 2 ) { if ( !responseHeaders ) { responseHeaders = {}; while( ( match = rheaders.exec( responseHeadersString ) ) ) { responseHeaders[ match[1].toLowerCase() ] = match[ 2 ]; } } match = responseHeaders[ key.toLowerCase() ]; } return match === undefined ? null : match; }, // Overrides response content-type header overrideMimeType: function( type ) { if ( !state ) { s.mimeType = type; } return this; }, // Cancel the request abort: function( statusText ) { statusText = statusText || strAbort; if ( transport ) { transport.abort( statusText ); } done( 0, statusText ); return this; } }; // Callback for when everything is done // It is defined here because jslint complains if it is declared // at the end of the function (which would be more logical and readable) function done( status, nativeStatusText, responses, headers ) { var isSuccess, success, error, response, modified, statusText = nativeStatusText; // Called once if ( state === 2 ) { return; } // State is "done" now state = 2; // Clear timeout if it exists if ( timeoutTimer ) { clearTimeout( timeoutTimer ); } // Dereference transport for early garbage collection // (no matter how long the jqXHR object will be used) transport = undefined; // Cache response headers responseHeadersString = headers || ""; // Set readyState jqXHR.readyState = status > 0 ? 4 : 0; // Get response data if ( responses ) { response = ajaxHandleResponses( s, jqXHR, responses ); } // If successful, handle type chaining if ( status >= 200 && status < 300 || status === 304 ) { // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { modified = jqXHR.getResponseHeader("Last-Modified"); if ( modified ) { jQuery.lastModified[ ifModifiedKey ] = modified; } modified = jqXHR.getResponseHeader("Etag"); if ( modified ) { jQuery.etag[ ifModifiedKey ] = modified; } } // If not modified if ( status === 304 ) { statusText = "notmodified"; isSuccess = true; // If we have data } else { isSuccess = ajaxConvert( s, response ); statusText = isSuccess.state; success = isSuccess.data; error = isSuccess.error; isSuccess = !error; } } else { // We extract error from statusText // then normalize statusText and status for non-aborts error = statusText; if ( !statusText || status ) { statusText = "error"; if ( status < 0 ) { status = 0; } } } // Set data for the fake xhr object jqXHR.status = status; jqXHR.statusText = ( nativeStatusText || statusText ) + ""; // Success/Error if ( isSuccess ) { deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); } else { deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); } // Status-dependent callbacks jqXHR.statusCode( statusCode ); statusCode = undefined; if ( fireGlobals ) { globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ), [ jqXHR, s, isSuccess ? success : error ] ); } // Complete completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); if ( fireGlobals ) { globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); // Handle the global AJAX counter if ( !( --jQuery.active ) ) { jQuery.event.trigger( "ajaxStop" ); } } } // Attach deferreds deferred.promise( jqXHR ); jqXHR.success = jqXHR.done; jqXHR.error = jqXHR.fail; jqXHR.complete = completeDeferred.add; // Status-dependent callbacks jqXHR.statusCode = function( map ) { if ( map ) { var tmp; if ( state < 2 ) { for ( tmp in map ) { statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ]; } } else { tmp = map[ jqXHR.status ]; jqXHR.always( tmp ); } } return this; }; // Remove hash character (#7531: and string promotion) // Add protocol if not provided (#5866: IE7 issue with protocol-less urls) // We also use the url parameter if available s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" ); // Extract dataTypes list s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( core_rspace ); // A cross-domain request is in order when we have a protocol:host:port mismatch if ( s.crossDomain == null ) { parts = rurl.exec( s.url.toLowerCase() ); s.crossDomain = !!( parts && ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] || ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) != ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) ) ); } // Convert data if not already a string if ( s.data && s.processData && typeof s.data !== "string" ) { s.data = jQuery.param( s.data, s.traditional ); } // Apply prefilters inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); // If request was aborted inside a prefilter, stop there if ( state === 2 ) { return jqXHR; } // We can fire global events as of now if asked to fireGlobals = s.global; // Uppercase the type s.type = s.type.toUpperCase(); // Determine if request has content s.hasContent = !rnoContent.test( s.type ); // Watch for a new set of requests if ( fireGlobals && jQuery.active++ === 0 ) { jQuery.event.trigger( "ajaxStart" ); } // More options handling for requests with no content if ( !s.hasContent ) { // If data is available, append data to url if ( s.data ) { s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data; // #9682: remove data so that it's not used in an eventual retry delete s.data; } // Get ifModifiedKey before adding the anti-cache parameter ifModifiedKey = s.url; // Add anti-cache in url if needed if ( s.cache === false ) { var ts = jQuery.now(), // try replacing _= if it is there ret = s.url.replace( rts, "$1_=" + ts ); // if nothing was replaced, add timestamp to the end s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" ); } } // Set the correct header, if data is being sent if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { jqXHR.setRequestHeader( "Content-Type", s.contentType ); } // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { ifModifiedKey = ifModifiedKey || s.url; if ( jQuery.lastModified[ ifModifiedKey ] ) { jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] ); } if ( jQuery.etag[ ifModifiedKey ] ) { jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] ); } } // Set the Accepts header for the server, depending on the dataType jqXHR.setRequestHeader( "Accept", s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ? s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : s.accepts[ "*" ] ); // Check for headers option for ( i in s.headers ) { jqXHR.setRequestHeader( i, s.headers[ i ] ); } // Allow custom headers/mimetypes and early abort if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) { // Abort if not done already and return return jqXHR.abort(); } // aborting is no longer a cancellation strAbort = "abort"; // Install callbacks on deferreds for ( i in { success: 1, error: 1, complete: 1 } ) { jqXHR[ i ]( s[ i ] ); } // Get transport transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); // If no transport, we auto-abort if ( !transport ) { done( -1, "No Transport" ); } else { jqXHR.readyState = 1; // Send global event if ( fireGlobals ) { globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); } // Timeout if ( s.async && s.timeout > 0 ) { timeoutTimer = setTimeout( function(){ jqXHR.abort( "timeout" ); }, s.timeout ); } try { state = 1; transport.send( requestHeaders, done ); } catch (e) { // Propagate exception as error if not done if ( state < 2 ) { done( -1, e ); // Simply rethrow otherwise } else { throw e; } } } return jqXHR; }, // Counter for holding the number of active queries active: 0, // Last-Modified header cache for next request lastModified: {}, etag: {} }); /* Handles responses to an ajax request: * - sets all responseXXX fields accordingly * - finds the right dataType (mediates between content-type and expected dataType) * - returns the corresponding response */ function ajaxHandleResponses( s, jqXHR, responses ) { var ct, type, finalDataType, firstDataType, contents = s.contents, dataTypes = s.dataTypes, responseFields = s.responseFields; // Fill responseXXX fields for ( type in responseFields ) { if ( type in responses ) { jqXHR[ responseFields[type] ] = responses[ type ]; } } // Remove auto dataType and get content-type in the process while( dataTypes[ 0 ] === "*" ) { dataTypes.shift(); if ( ct === undefined ) { ct = s.mimeType || jqXHR.getResponseHeader( "content-type" ); } } // Check if we're dealing with a known content-type if ( ct ) { for ( type in contents ) { if ( contents[ type ] && contents[ type ].test( ct ) ) { dataTypes.unshift( type ); break; } } } // Check to see if we have a response for the expected dataType if ( dataTypes[ 0 ] in responses ) { finalDataType = dataTypes[ 0 ]; } else { // Try convertible dataTypes for ( type in responses ) { if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) { finalDataType = type; break; } if ( !firstDataType ) { firstDataType = type; } } // Or just use first one finalDataType = finalDataType || firstDataType; } // If we found a dataType // We add the dataType to the list if needed // and return the corresponding response if ( finalDataType ) { if ( finalDataType !== dataTypes[ 0 ] ) { dataTypes.unshift( finalDataType ); } return responses[ finalDataType ]; } } // Chain conversions given the request and the original response function ajaxConvert( s, response ) { var conv, conv2, current, tmp, // Work with a copy of dataTypes in case we need to modify it for conversion dataTypes = s.dataTypes.slice(), prev = dataTypes[ 0 ], converters = {}, i = 0; // Apply the dataFilter if provided if ( s.dataFilter ) { response = s.dataFilter( response, s.dataType ); } // Create converters map with lowercased keys if ( dataTypes[ 1 ] ) { for ( conv in s.converters ) { converters[ conv.toLowerCase() ] = s.converters[ conv ]; } } // Convert to each sequential dataType, tolerating list modification for ( ; (current = dataTypes[++i]); ) { // There's only work to do if current dataType is non-auto if ( current !== "*" ) { // Convert response if prev dataType is non-auto and differs from current if ( prev !== "*" && prev !== current ) { // Seek a direct converter conv = converters[ prev + " " + current ] || converters[ "* " + current ]; // If none found, seek a pair if ( !conv ) { for ( conv2 in converters ) { // If conv2 outputs current tmp = conv2.split(" "); if ( tmp[ 1 ] === current ) { // If prev can be converted to accepted input conv = converters[ prev + " " + tmp[ 0 ] ] || converters[ "* " + tmp[ 0 ] ]; if ( conv ) { // Condense equivalence converters if ( conv === true ) { conv = converters[ conv2 ]; // Otherwise, insert the intermediate dataType } else if ( converters[ conv2 ] !== true ) { current = tmp[ 0 ]; dataTypes.splice( i--, 0, current ); } break; } } } } // Apply converter (if not an equivalence) if ( conv !== true ) { // Unless errors are allowed to bubble, catch and return them if ( conv && s["throws"] ) { response = conv( response ); } else { try { response = conv( response ); } catch ( e ) { return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current }; } } } } // Update prev for next iteration prev = current; } } return { state: "success", data: response }; } var oldCallbacks = [], rquestion = /\?/, rjsonp = /(=)\?(?=&|$)|\?\?/, nonce = jQuery.now(); // Default jsonp settings jQuery.ajaxSetup({ jsonp: "callback", jsonpCallback: function() { var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) ); this[ callback ] = true; return callback; } }); // Detect, normalize options and install callbacks for jsonp requests jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { var callbackName, overwritten, responseContainer, data = s.data, url = s.url, hasCallback = s.jsonp !== false, replaceInUrl = hasCallback && rjsonp.test( url ), replaceInData = hasCallback && !replaceInUrl && typeof data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( data ); // Handle iff the expected data type is "jsonp" or we have a parameter to set if ( s.dataTypes[ 0 ] === "jsonp" || replaceInUrl || replaceInData ) { // Get callback name, remembering preexisting value associated with it callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback; overwritten = window[ callbackName ]; // Insert callback into url or form data if ( replaceInUrl ) { s.url = url.replace( rjsonp, "$1" + callbackName ); } else if ( replaceInData ) { s.data = data.replace( rjsonp, "$1" + callbackName ); } else if ( hasCallback ) { s.url += ( rquestion.test( url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName; } // Use data converter to retrieve json after script execution s.converters["script json"] = function() { if ( !responseContainer ) { jQuery.error( callbackName + " was not called" ); } return responseContainer[ 0 ]; }; // force json dataType s.dataTypes[ 0 ] = "json"; // Install callback window[ callbackName ] = function() { responseContainer = arguments; }; // Clean-up function (fires after converters) jqXHR.always(function() { // Restore preexisting value window[ callbackName ] = overwritten; // Save back as free if ( s[ callbackName ] ) { // make sure that re-using the options doesn't screw things around s.jsonpCallback = originalSettings.jsonpCallback; // save the callback name for future use oldCallbacks.push( callbackName ); } // Call if it was a function and we have a response if ( responseContainer && jQuery.isFunction( overwritten ) ) { overwritten( responseContainer[ 0 ] ); } responseContainer = overwritten = undefined; }); // Delegate to script return "script"; } }); // Install script dataType jQuery.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" }, contents: { script: /javascript|ecmascript/ }, converters: { "text script": function( text ) { jQuery.globalEval( text ); return text; } } }); // Handle cache's special case and global jQuery.ajaxPrefilter( "script", function( s ) { if ( s.cache === undefined ) { s.cache = false; } if ( s.crossDomain ) { s.type = "GET"; s.global = false; } }); // Bind script tag hack transport jQuery.ajaxTransport( "script", function(s) { // This transport only deals with cross domain requests if ( s.crossDomain ) { var script, head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement; return { send: function( _, callback ) { script = document.createElement( "script" ); script.async = "async"; if ( s.scriptCharset ) { script.charset = s.scriptCharset; } script.src = s.url; // Attach handlers for all browsers script.onload = script.onreadystatechange = function( _, isAbort ) { if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) { // Handle memory leak in IE script.onload = script.onreadystatechange = null; // Remove the script if ( head && script.parentNode ) { head.removeChild( script ); } // Dereference the script script = undefined; // Callback if not abort if ( !isAbort ) { callback( 200, "success" ); } } }; // Use insertBefore instead of appendChild to circumvent an IE6 bug. // This arises when a base node is used (#2709 and #4378). head.insertBefore( script, head.firstChild ); }, abort: function() { if ( script ) { script.onload( 0, 1 ); } } }; } }); var xhrCallbacks, // #5280: Internet Explorer will keep connections alive if we don't abort on unload xhrOnUnloadAbort = window.ActiveXObject ? function() { // Abort all pending requests for ( var key in xhrCallbacks ) { xhrCallbacks[ key ]( 0, 1 ); } } : false, xhrId = 0; // Functions to create xhrs function createStandardXHR() { try { return new window.XMLHttpRequest(); } catch( e ) {} } function createActiveXHR() { try { return new window.ActiveXObject( "Microsoft.XMLHTTP" ); } catch( e ) {} } // Create the request object // (This is still attached to ajaxSettings for backward compatibility) jQuery.ajaxSettings.xhr = window.ActiveXObject ? /* Microsoft failed to properly * implement the XMLHttpRequest in IE7 (can't request local files), * so we use the ActiveXObject when it is available * Additionally XMLHttpRequest can be disabled in IE7/IE8 so * we need a fallback. */ function() { return !this.isLocal && createStandardXHR() || createActiveXHR(); } : // For all other browsers, use the standard XMLHttpRequest object createStandardXHR; // Determine support properties (function( xhr ) { jQuery.extend( jQuery.support, { ajax: !!xhr, cors: !!xhr && ( "withCredentials" in xhr ) }); })( jQuery.ajaxSettings.xhr() ); // Create transport if the browser can provide an xhr if ( jQuery.support.ajax ) { jQuery.ajaxTransport(function( s ) { // Cross domain only allowed if supported through XMLHttpRequest if ( !s.crossDomain || jQuery.support.cors ) { var callback; return { send: function( headers, complete ) { // Get a new xhr var handle, i, xhr = s.xhr(); // Open the socket // Passing null username, generates a login popup on Opera (#2865) if ( s.username ) { xhr.open( s.type, s.url, s.async, s.username, s.password ); } else { xhr.open( s.type, s.url, s.async ); } // Apply custom fields if provided if ( s.xhrFields ) { for ( i in s.xhrFields ) { xhr[ i ] = s.xhrFields[ i ]; } } // Override mime type if needed if ( s.mimeType && xhr.overrideMimeType ) { xhr.overrideMimeType( s.mimeType ); } // X-Requested-With header // For cross-domain requests, seeing as conditions for a preflight are // akin to a jigsaw puzzle, we simply never set it to be sure. // (it can always be set on a per-request basis or even using ajaxSetup) // For same-domain requests, won't change header if already provided. if ( !s.crossDomain && !headers["X-Requested-With"] ) { headers[ "X-Requested-With" ] = "XMLHttpRequest"; } // Need an extra try/catch for cross domain requests in Firefox 3 try { for ( i in headers ) { xhr.setRequestHeader( i, headers[ i ] ); } } catch( _ ) {} // Do send the request // This may raise an exception which is actually // handled in jQuery.ajax (so no try/catch here) xhr.send( ( s.hasContent && s.data ) || null ); // Listener callback = function( _, isAbort ) { var status, statusText, responseHeaders, responses, xml; // Firefox throws exceptions when accessing properties // of an xhr when a network error occurred // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE) try { // Was never called and is aborted or complete if ( callback && ( isAbort || xhr.readyState === 4 ) ) { // Only called once callback = undefined; // Do not keep as active anymore if ( handle ) { xhr.onreadystatechange = jQuery.noop; if ( xhrOnUnloadAbort ) { delete xhrCallbacks[ handle ]; } } // If it's an abort if ( isAbort ) { // Abort it manually if needed if ( xhr.readyState !== 4 ) { xhr.abort(); } } else { status = xhr.status; responseHeaders = xhr.getAllResponseHeaders(); responses = {}; xml = xhr.responseXML; // Construct response list if ( xml && xml.documentElement /* #4958 */ ) { responses.xml = xml; } // When requesting binary data, IE6-9 will throw an exception // on any attempt to access responseText (#11426) try { responses.text = xhr.responseText; } catch( e ) { } // Firefox throws an exception when accessing // statusText for faulty cross-domain requests try { statusText = xhr.statusText; } catch( e ) { // We normalize with Webkit giving an empty statusText statusText = ""; } // Filter status for non standard behaviors // If the request is local and we have data: assume a success // (success with no data won't get notified, that's the best we // can do given current implementations) if ( !status && s.isLocal && !s.crossDomain ) { status = responses.text ? 200 : 404; // IE - #1450: sometimes returns 1223 when it should be 204 } else if ( status === 1223 ) { status = 204; } } } } catch( firefoxAccessException ) { if ( !isAbort ) { complete( -1, firefoxAccessException ); } } // Call complete if needed if ( responses ) { complete( status, statusText, responses, responseHeaders ); } }; if ( !s.async ) { // if we're in sync mode we fire the callback callback(); } else if ( xhr.readyState === 4 ) { // (IE6 & IE7) if it's in cache and has been // retrieved directly we need to fire the callback setTimeout( callback, 0 ); } else { handle = ++xhrId; if ( xhrOnUnloadAbort ) { // Create the active xhrs callbacks list if needed // and attach the unload handler if ( !xhrCallbacks ) { xhrCallbacks = {}; jQuery( window ).unload( xhrOnUnloadAbort ); } // Add to list of active xhrs callbacks xhrCallbacks[ handle ] = callback; } xhr.onreadystatechange = callback; } }, abort: function() { if ( callback ) { callback(0,1); } } }; } }); } var fxNow, timerId, rfxtypes = /^(?:toggle|show|hide)$/, rfxnum = new RegExp( "^(?:([-+])=|)(" + core_pnum + ")([a-z%]*)$", "i" ), rrun = /queueHooks$/, animationPrefilters = [ defaultPrefilter ], tweeners = { "*": [function( prop, value ) { var end, unit, tween = this.createTween( prop, value ), parts = rfxnum.exec( value ), target = tween.cur(), start = +target || 0, scale = 1, maxIterations = 20; if ( parts ) { end = +parts[2]; unit = parts[3] || ( jQuery.cssNumber[ prop ] ? "" : "px" ); // We need to compute starting value if ( unit !== "px" && start ) { // Iteratively approximate from a nonzero starting point // Prefer the current property, because this process will be trivial if it uses the same units // Fallback to end or a simple constant start = jQuery.css( tween.elem, prop, true ) || end || 1; do { // If previous iteration zeroed out, double until we get *something* // Use a string for doubling factor so we don't accidentally see scale as unchanged below scale = scale || ".5"; // Adjust and apply start = start / scale; jQuery.style( tween.elem, prop, start + unit ); // Update scale, tolerating zero or NaN from tween.cur() // And breaking the loop if scale is unchanged or perfect, or if we've just had enough } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations ); } tween.unit = unit; tween.start = start; // If a +=/-= token was provided, we're doing a relative animation tween.end = parts[1] ? start + ( parts[1] + 1 ) * end : end; } return tween; }] }; // Animations created synchronously will run synchronously function createFxNow() { setTimeout(function() { fxNow = undefined; }, 0 ); return ( fxNow = jQuery.now() ); } function createTweens( animation, props ) { jQuery.each( props, function( prop, value ) { var collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ), index = 0, length = collection.length; for ( ; index < length; index++ ) { if ( collection[ index ].call( animation, prop, value ) ) { // we're done with this property return; } } }); } function Animation( elem, properties, options ) { var result, index = 0, tweenerIndex = 0, length = animationPrefilters.length, deferred = jQuery.Deferred().always( function() { // don't match elem in the :animated selector delete tick.elem; }), tick = function() { var currentTime = fxNow || createFxNow(), remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) temp = remaining / animation.duration || 0, percent = 1 - temp, index = 0, length = animation.tweens.length; for ( ; index < length ; index++ ) { animation.tweens[ index ].run( percent ); } deferred.notifyWith( elem, [ animation, percent, remaining ]); if ( percent < 1 && length ) { return remaining; } else { deferred.resolveWith( elem, [ animation ] ); return false; } }, animation = deferred.promise({ elem: elem, props: jQuery.extend( {}, properties ), opts: jQuery.extend( true, { specialEasing: {} }, options ), originalProperties: properties, originalOptions: options, startTime: fxNow || createFxNow(), duration: options.duration, tweens: [], createTween: function( prop, end, easing ) { var tween = jQuery.Tween( elem, animation.opts, prop, end, animation.opts.specialEasing[ prop ] || animation.opts.easing ); animation.tweens.push( tween ); return tween; }, stop: function( gotoEnd ) { var index = 0, // if we are going to the end, we want to run all the tweens // otherwise we skip this part length = gotoEnd ? animation.tweens.length : 0; for ( ; index < length ; index++ ) { animation.tweens[ index ].run( 1 ); } // resolve when we played the last frame // otherwise, reject if ( gotoEnd ) { deferred.resolveWith( elem, [ animation, gotoEnd ] ); } else { deferred.rejectWith( elem, [ animation, gotoEnd ] ); } return this; } }), props = animation.props; propFilter( props, animation.opts.specialEasing ); for ( ; index < length ; index++ ) { result = animationPrefilters[ index ].call( animation, elem, props, animation.opts ); if ( result ) { return result; } } createTweens( animation, props ); if ( jQuery.isFunction( animation.opts.start ) ) { animation.opts.start.call( elem, animation ); } jQuery.fx.timer( jQuery.extend( tick, { anim: animation, queue: animation.opts.queue, elem: elem }) ); // attach callbacks from options return animation.progress( animation.opts.progress ) .done( animation.opts.done, animation.opts.complete ) .fail( animation.opts.fail ) .always( animation.opts.always ); } function propFilter( props, specialEasing ) { var index, name, easing, value, hooks; // camelCase, specialEasing and expand cssHook pass for ( index in props ) { name = jQuery.camelCase( index ); easing = specialEasing[ name ]; value = props[ index ]; if ( jQuery.isArray( value ) ) { easing = value[ 1 ]; value = props[ index ] = value[ 0 ]; } if ( index !== name ) { props[ name ] = value; delete props[ index ]; } hooks = jQuery.cssHooks[ name ]; if ( hooks && "expand" in hooks ) { value = hooks.expand( value ); delete props[ name ]; // not quite $.extend, this wont overwrite keys already present. // also - reusing 'index' from above because we have the correct "name" for ( index in value ) { if ( !( index in props ) ) { props[ index ] = value[ index ]; specialEasing[ index ] = easing; } } } else { specialEasing[ name ] = easing; } } } jQuery.Animation = jQuery.extend( Animation, { tweener: function( props, callback ) { if ( jQuery.isFunction( props ) ) { callback = props; props = [ "*" ]; } else { props = props.split(" "); } var prop, index = 0, length = props.length; for ( ; index < length ; index++ ) { prop = props[ index ]; tweeners[ prop ] = tweeners[ prop ] || []; tweeners[ prop ].unshift( callback ); } }, prefilter: function( callback, prepend ) { if ( prepend ) { animationPrefilters.unshift( callback ); } else { animationPrefilters.push( callback ); } } }); function defaultPrefilter( elem, props, opts ) { var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire, anim = this, style = elem.style, orig = {}, handled = [], hidden = elem.nodeType && isHidden( elem ); // handle queue: false promises if ( !opts.queue ) { hooks = jQuery._queueHooks( elem, "fx" ); if ( hooks.unqueued == null ) { hooks.unqueued = 0; oldfire = hooks.empty.fire; hooks.empty.fire = function() { if ( !hooks.unqueued ) { oldfire(); } }; } hooks.unqueued++; anim.always(function() { // doing this makes sure that the complete handler will be called // before this completes anim.always(function() { hooks.unqueued--; if ( !jQuery.queue( elem, "fx" ).length ) { hooks.empty.fire(); } }); }); } // height/width overflow pass if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) { // Make sure that nothing sneaks out // Record all 3 overflow attributes because IE does not // change the overflow attribute when overflowX and // overflowY are set to the same value opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; // Set display property to inline-block for height/width // animations on inline elements that are having width/height animated if ( jQuery.css( elem, "display" ) === "inline" && jQuery.css( elem, "float" ) === "none" ) { // inline-level elements accept inline-block; // block-level elements need to be inline with layout if ( !jQuery.support.inlineBlockNeedsLayout || css_defaultDisplay( elem.nodeName ) === "inline" ) { style.display = "inline-block"; } else { style.zoom = 1; } } } if ( opts.overflow ) { style.overflow = "hidden"; if ( !jQuery.support.shrinkWrapBlocks ) { anim.done(function() { style.overflow = opts.overflow[ 0 ]; style.overflowX = opts.overflow[ 1 ]; style.overflowY = opts.overflow[ 2 ]; }); } } // show/hide pass for ( index in props ) { value = props[ index ]; if ( rfxtypes.exec( value ) ) { delete props[ index ]; toggle = toggle || value === "toggle"; if ( value === ( hidden ? "hide" : "show" ) ) { continue; } handled.push( index ); } } length = handled.length; if ( length ) { dataShow = jQuery._data( elem, "fxshow" ) || jQuery._data( elem, "fxshow", {} ); if ( "hidden" in dataShow ) { hidden = dataShow.hidden; } // store state if its toggle - enables .stop().toggle() to "reverse" if ( toggle ) { dataShow.hidden = !hidden; } if ( hidden ) { jQuery( elem ).show(); } else { anim.done(function() { jQuery( elem ).hide(); }); } anim.done(function() { var prop; jQuery.removeData( elem, "fxshow", true ); for ( prop in orig ) { jQuery.style( elem, prop, orig[ prop ] ); } }); for ( index = 0 ; index < length ; index++ ) { prop = handled[ index ]; tween = anim.createTween( prop, hidden ? dataShow[ prop ] : 0 ); orig[ prop ] = dataShow[ prop ] || jQuery.style( elem, prop ); if ( !( prop in dataShow ) ) { dataShow[ prop ] = tween.start; if ( hidden ) { tween.end = tween.start; tween.start = prop === "width" || prop === "height" ? 1 : 0; } } } } } function Tween( elem, options, prop, end, easing ) { return new Tween.prototype.init( elem, options, prop, end, easing ); } jQuery.Tween = Tween; Tween.prototype = { constructor: Tween, init: function( elem, options, prop, end, easing, unit ) { this.elem = elem; this.prop = prop; this.easing = easing || "swing"; this.options = options; this.start = this.now = this.cur(); this.end = end; this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); }, cur: function() { var hooks = Tween.propHooks[ this.prop ]; return hooks && hooks.get ? hooks.get( this ) : Tween.propHooks._default.get( this ); }, run: function( percent ) { var eased, hooks = Tween.propHooks[ this.prop ]; if ( this.options.duration ) { this.pos = eased = jQuery.easing[ this.easing ]( percent, this.options.duration * percent, 0, 1, this.options.duration ); } else { this.pos = eased = percent; } this.now = ( this.end - this.start ) * eased + this.start; if ( this.options.step ) { this.options.step.call( this.elem, this.now, this ); } if ( hooks && hooks.set ) { hooks.set( this ); } else { Tween.propHooks._default.set( this ); } return this; } }; Tween.prototype.init.prototype = Tween.prototype; Tween.propHooks = { _default: { get: function( tween ) { var result; if ( tween.elem[ tween.prop ] != null && (!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) { return tween.elem[ tween.prop ]; } // passing any value as a 4th parameter to .css will automatically // attempt a parseFloat and fallback to a string if the parse fails // so, simple values such as "10px" are parsed to Float. // complex values such as "rotate(1rad)" are returned as is. result = jQuery.css( tween.elem, tween.prop, false, "" ); // Empty strings, null, undefined and "auto" are converted to 0. return !result || result === "auto" ? 0 : result; }, set: function( tween ) { // use step hook for back compat - use cssHook if its there - use .style if its // available and use plain properties where available if ( jQuery.fx.step[ tween.prop ] ) { jQuery.fx.step[ tween.prop ]( tween ); } else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) { jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); } else { tween.elem[ tween.prop ] = tween.now; } } } }; // Remove in 2.0 - this supports IE8's panic based approach // to setting things on disconnected nodes Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { set: function( tween ) { if ( tween.elem.nodeType && tween.elem.parentNode ) { tween.elem[ tween.prop ] = tween.now; } } }; jQuery.each([ "toggle", "show", "hide" ], function( i, name ) { var cssFn = jQuery.fn[ name ]; jQuery.fn[ name ] = function( speed, easing, callback ) { return speed == null || typeof speed === "boolean" || // special check for .toggle( handler, handler, ... ) ( !i && jQuery.isFunction( speed ) && jQuery.isFunction( easing ) ) ? cssFn.apply( this, arguments ) : this.animate( genFx( name, true ), speed, easing, callback ); }; }); jQuery.fn.extend({ fadeTo: function( speed, to, easing, callback ) { // show any hidden elements after setting opacity to 0 return this.filter( isHidden ).css( "opacity", 0 ).show() // animate to the value specified .end().animate({ opacity: to }, speed, easing, callback ); }, animate: function( prop, speed, easing, callback ) { var empty = jQuery.isEmptyObject( prop ), optall = jQuery.speed( speed, easing, callback ), doAnimation = function() { // Operate on a copy of prop so per-property easing won't be lost var anim = Animation( this, jQuery.extend( {}, prop ), optall ); // Empty animations resolve immediately if ( empty ) { anim.stop( true ); } }; return empty || optall.queue === false ? this.each( doAnimation ) : this.queue( optall.queue, doAnimation ); }, stop: function( type, clearQueue, gotoEnd ) { var stopQueue = function( hooks ) { var stop = hooks.stop; delete hooks.stop; stop( gotoEnd ); }; if ( typeof type !== "string" ) { gotoEnd = clearQueue; clearQueue = type; type = undefined; } if ( clearQueue && type !== false ) { this.queue( type || "fx", [] ); } return this.each(function() { var dequeue = true, index = type != null && type + "queueHooks", timers = jQuery.timers, data = jQuery._data( this ); if ( index ) { if ( data[ index ] && data[ index ].stop ) { stopQueue( data[ index ] ); } } else { for ( index in data ) { if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { stopQueue( data[ index ] ); } } } for ( index = timers.length; index--; ) { if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) { timers[ index ].anim.stop( gotoEnd ); dequeue = false; timers.splice( index, 1 ); } } // start the next in the queue if the last step wasn't forced // timers currently will call their complete callbacks, which will dequeue // but only if they were gotoEnd if ( dequeue || !gotoEnd ) { jQuery.dequeue( this, type ); } }); } }); // Generate parameters to create a standard animation function genFx( type, includeWidth ) { var which, attrs = { height: type }, i = 0; // if we include width, step value is 1 to do all cssExpand values, // if we don't include width, step value is 2 to skip over Left and Right includeWidth = includeWidth? 1 : 0; for( ; i < 4 ; i += 2 - includeWidth ) { which = cssExpand[ i ]; attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; } if ( includeWidth ) { attrs.opacity = attrs.width = type; } return attrs; } // Generate shortcuts for custom animations jQuery.each({ slideDown: genFx("show"), slideUp: genFx("hide"), slideToggle: genFx("toggle"), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, function( name, props ) { jQuery.fn[ name ] = function( speed, easing, callback ) { return this.animate( props, speed, easing, callback ); }; }); jQuery.speed = function( speed, easing, fn ) { var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { complete: fn || !fn && easing || jQuery.isFunction( speed ) && speed, duration: speed, easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing }; opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default; // normalize opt.queue - true/undefined/null -> "fx" if ( opt.queue == null || opt.queue === true ) { opt.queue = "fx"; } // Queueing opt.old = opt.complete; opt.complete = function() { if ( jQuery.isFunction( opt.old ) ) { opt.old.call( this ); } if ( opt.queue ) { jQuery.dequeue( this, opt.queue ); } }; return opt; }; jQuery.easing = { linear: function( p ) { return p; }, swing: function( p ) { return 0.5 - Math.cos( p*Math.PI ) / 2; } }; jQuery.timers = []; jQuery.fx = Tween.prototype.init; jQuery.fx.tick = function() { var timer, timers = jQuery.timers, i = 0; fxNow = jQuery.now(); for ( ; i < timers.length; i++ ) { timer = timers[ i ]; // Checks the timer has not already been removed if ( !timer() && timers[ i ] === timer ) { timers.splice( i--, 1 ); } } if ( !timers.length ) { jQuery.fx.stop(); } fxNow = undefined; }; jQuery.fx.timer = function( timer ) { if ( timer() && jQuery.timers.push( timer ) && !timerId ) { timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval ); } }; jQuery.fx.interval = 13; jQuery.fx.stop = function() { clearInterval( timerId ); timerId = null; }; jQuery.fx.speeds = { slow: 600, fast: 200, // Default speed _default: 400 }; // Back Compat <1.8 extension point jQuery.fx.step = {}; if ( jQuery.expr && jQuery.expr.filters ) { jQuery.expr.filters.animated = function( elem ) { return jQuery.grep(jQuery.timers, function( fn ) { return elem === fn.elem; }).length; }; } var rroot = /^(?:body|html)$/i; jQuery.fn.offset = function( options ) { if ( arguments.length ) { return options === undefined ? this : this.each(function( i ) { jQuery.offset.setOffset( this, options, i ); }); } var docElem, body, win, clientTop, clientLeft, scrollTop, scrollLeft, box = { top: 0, left: 0 }, elem = this[ 0 ], doc = elem && elem.ownerDocument; if ( !doc ) { return; } if ( (body = doc.body) === elem ) { return jQuery.offset.bodyOffset( elem ); } docElem = doc.documentElement; // Make sure it's not a disconnected DOM node if ( !jQuery.contains( docElem, elem ) ) { return box; } // If we don't have gBCR, just use 0,0 rather than error // BlackBerry 5, iOS 3 (original iPhone) if ( typeof elem.getBoundingClientRect !== "undefined" ) { box = elem.getBoundingClientRect(); } win = getWindow( doc ); clientTop = docElem.clientTop || body.clientTop || 0; clientLeft = docElem.clientLeft || body.clientLeft || 0; scrollTop = win.pageYOffset || docElem.scrollTop; scrollLeft = win.pageXOffset || docElem.scrollLeft; return { top: box.top + scrollTop - clientTop, left: box.left + scrollLeft - clientLeft }; }; jQuery.offset = { bodyOffset: function( body ) { var top = body.offsetTop, left = body.offsetLeft; if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) { top += parseFloat( jQuery.css(body, "marginTop") ) || 0; left += parseFloat( jQuery.css(body, "marginLeft") ) || 0; } return { top: top, left: left }; }, setOffset: function( elem, options, i ) { var position = jQuery.css( elem, "position" ); // set position first, in-case top/left are set even on static elem if ( position === "static" ) { elem.style.position = "relative"; } var curElem = jQuery( elem ), curOffset = curElem.offset(), curCSSTop = jQuery.css( elem, "top" ), curCSSLeft = jQuery.css( elem, "left" ), calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1, props = {}, curPosition = {}, curTop, curLeft; // need to be able to calculate position if either top or left is auto and position is either absolute or fixed if ( calculatePosition ) { curPosition = curElem.position(); curTop = curPosition.top; curLeft = curPosition.left; } else { curTop = parseFloat( curCSSTop ) || 0; curLeft = parseFloat( curCSSLeft ) || 0; } if ( jQuery.isFunction( options ) ) { options = options.call( elem, i, curOffset ); } if ( options.top != null ) { props.top = ( options.top - curOffset.top ) + curTop; } if ( options.left != null ) { props.left = ( options.left - curOffset.left ) + curLeft; } if ( "using" in options ) { options.using.call( elem, props ); } else { curElem.css( props ); } } }; jQuery.fn.extend({ position: function() { if ( !this[0] ) { return; } var elem = this[0], // Get *real* offsetParent offsetParent = this.offsetParent(), // Get correct offsets offset = this.offset(), parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset(); // Subtract element margins // note: when an element has margin: auto the offsetLeft and marginLeft // are the same in Safari causing offset.left to incorrectly be 0 offset.top -= parseFloat( jQuery.css(elem, "marginTop") ) || 0; offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0; // Add offsetParent borders parentOffset.top += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0; parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0; // Subtract the two offsets return { top: offset.top - parentOffset.top, left: offset.left - parentOffset.left }; }, offsetParent: function() { return this.map(function() { var offsetParent = this.offsetParent || document.body; while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) { offsetParent = offsetParent.offsetParent; } return offsetParent || document.body; }); } }); // Create scrollLeft and scrollTop methods jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) { var top = /Y/.test( prop ); jQuery.fn[ method ] = function( val ) { return jQuery.access( this, function( elem, method, val ) { var win = getWindow( elem ); if ( val === undefined ) { return win ? (prop in win) ? win[ prop ] : win.document.documentElement[ method ] : elem[ method ]; } if ( win ) { win.scrollTo( !top ? val : jQuery( win ).scrollLeft(), top ? val : jQuery( win ).scrollTop() ); } else { elem[ method ] = val; } }, method, val, arguments.length, null ); }; }); function getWindow( elem ) { return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 ? elem.defaultView || elem.parentWindow : false; } // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) { // margin is only for outerHeight, outerWidth jQuery.fn[ funcName ] = function( margin, value ) { var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ), extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" ); return jQuery.access( this, function( elem, type, value ) { var doc; if ( jQuery.isWindow( elem ) ) { // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there // isn't a whole lot we can do. See pull request at this URL for discussion: // https://github.com/jquery/jquery/pull/764 return elem.document.documentElement[ "client" + name ]; } // Get document width or height if ( elem.nodeType === 9 ) { doc = elem.documentElement; // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it. return Math.max( elem.body[ "scroll" + name ], doc[ "scroll" + name ], elem.body[ "offset" + name ], doc[ "offset" + name ], doc[ "client" + name ] ); } return value === undefined ? // Get width or height on the element, requesting but not forcing parseFloat jQuery.css( elem, type, value, extra ) : // Set width or height on the element jQuery.style( elem, type, value, extra ); }, type, chainable ? margin : undefined, chainable, null ); }; }); }); // Expose jQuery to the global object window.jQuery = window.$ = jQuery; // Expose jQuery as an AMD module, but only for AMD loaders that // understand the issues with loading multiple versions of jQuery // in a page that all might call define(). The loader will indicate // they have special allowances for multiple jQuery versions by // specifying define.amd.jQuery = true. Register as a named module, // since jQuery can be concatenated with other files that may use define, // but not use a proper concatenation script that understands anonymous // AMD modules. A named AMD is safest and most robust way to register. // Lowercase jquery is used because AMD module names are derived from // file names, and jQuery is normally delivered in a lowercase file name. // Do this after creating the global so that if an AMD module wants to call // noConflict to hide this version of jQuery, it will work. if ( typeof define === "function" && define.amd && define.amd.jQuery ) { define( "jquery", [], function () { return jQuery; } ); } })( window ); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/multi-image-dialog.html ================================================ MultiImageDialog Examples
                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/multi-language.html ================================================ Multi Language Examples

                                                  Multi Language

                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/newline.html ================================================ Newline Examples

                                                  回车换行设置

                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/node.html ================================================ Node Examples
                                                  K('div#id').addClass('cls');
                                                  K('div.class').css('margin', '10px');
                                                  K('#id img').css('border', '1px solid #000').attr('title', 'hello');
                                                  K('#id > div').width(200).height(50).css('border', '1px solid #000');
                                                  K('a[href="\\#"]').attr('href', 'http://www.kindsoft.net/');
                                                  class1
                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/paste-type.html ================================================ Paste Type Examples

                                                  禁止粘贴

                                                  纯文本粘贴

                                                  HTML粘贴

                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/qqstyle.html ================================================ Custom Theme Examples

                                                  QQ风格

                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/readonly.html ================================================ Readonly Examples

                                                  只读模式

                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/simple.html ================================================ Simple Examples

                                                  默认模式

                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/uploadbutton.html ================================================ Upload Button Examples
                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/url-type.html ================================================ URL Type Examples

                                                  相对URL

                                                  绝对URL

                                                  绝对URL(包含域名)

                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/examples/word-count.html ================================================ Word Count Examples

                                                  统计字数

                                                  您当前输入了 0 个文字。(字数统计包含HTML代码。)
                                                  您当前输入了 0 个文字。(字数统计包含纯文本、IMG、EMBED,不包含换行符,IMG和EMBED算一个文字。)

                                                  ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/jsp/README.txt ================================================ KindEditor JSP 本JSP程序是演示程序,建议不要直接在实际项目中使用。 如果您确定直接使用本程序,使用之前请仔细确认相关安全设置。 使用方法: 1. 解压zip文件,将所有文件复制到Tomcat的webapps/kindeditor目录下。 2. 将kindeditor/jsp/lib目录下的3个jar文件复制到Tomcat的lib目录下,并重新启动Tomcat。 * commons-fileupload-1.2.1.jar * commons-io-1.4.jar * json_simple-1.1.jar 3. 打开浏览器,输入http://localhost:[P0RT]/kindeditor/jsp/demo.jsp。 ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/jsp/demo.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("UTF-8"); String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : ""; %> KindEditor JSP <%=htmlData%>

                                                  (提交快捷键: Ctrl + Enter) <%! private String htmlspecialchars(String str) { str = str.replaceAll("&", "&"); str = str.replaceAll("<", "<"); str = str.replaceAll(">", ">"); str = str.replaceAll("\"", """); return str; } %> ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/jsp/file_manager_json.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.util.*,java.io.*" %> <%@ page import="java.text.SimpleDateFormat" %> <%@ page import="org.json.simple.*" %> <% /** * KindEditor JSP * * 本JSP程序是演示程序,建议不要直接在实际项目中使用。 * 如果您确定直接使用本程序,使用之前请仔细确认相关安全设置。 * */ //根目录路径,可以指定绝对路径,比如 /var/www/attached/ String rootPath = pageContext.getServletContext().getRealPath("/") + "attached/"; //根目录URL,可以指定绝对路径,比如 http://www.yoursite.com/attached/ String rootUrl = request.getContextPath() + "/attached/"; //图片扩展名 String[] fileTypes = new String[]{"gif", "jpg", "jpeg", "png", "bmp"}; String dirName = request.getParameter("dir"); if (dirName != null) { if(!Arrays.asList(new String[]{"image", "flash", "media", "file"}).contains(dirName)){ out.println("Invalid Directory name."); return; } rootPath += dirName + "/"; rootUrl += dirName + "/"; File saveDirFile = new File(rootPath); if (!saveDirFile.exists()) { saveDirFile.mkdirs(); } } //根据path参数,设置各路径和URL String path = request.getParameter("path") != null ? request.getParameter("path") : ""; String currentPath = rootPath + path; String currentUrl = rootUrl + path; String currentDirPath = path; String moveupDirPath = ""; if (!"".equals(path)) { String str = currentDirPath.substring(0, currentDirPath.length() - 1); moveupDirPath = str.lastIndexOf("/") >= 0 ? str.substring(0, str.lastIndexOf("/") + 1) : ""; } //排序形式,name or size or type String order = request.getParameter("order") != null ? request.getParameter("order").toLowerCase() : "name"; //不允许使用..移动到上一级目录 if (path.indexOf("..") >= 0) { out.println("Access is not allowed."); return; } //最后一个字符不是/ if (!"".equals(path) && !path.endsWith("/")) { out.println("Parameter is not valid."); return; } //目录不存在或不是目录 File currentPathFile = new File(currentPath); if(!currentPathFile.isDirectory()){ out.println("Directory does not exist."); return; } //遍历目录取的文件信息 List fileList = new ArrayList(); if(currentPathFile.listFiles() != null) { for (File file : currentPathFile.listFiles()) { Hashtable hash = new Hashtable(); String fileName = file.getName(); if(file.isDirectory()) { hash.put("is_dir", true); hash.put("has_file", (file.listFiles() != null)); hash.put("filesize", 0L); hash.put("is_photo", false); hash.put("filetype", ""); } else if(file.isFile()){ String fileExt = fileName.substring(fileName.lastIndexOf(".") + 1).toLowerCase(); hash.put("is_dir", false); hash.put("has_file", false); hash.put("filesize", file.length()); hash.put("is_photo", Arrays.asList(fileTypes).contains(fileExt)); hash.put("filetype", fileExt); } hash.put("filename", fileName); hash.put("datetime", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(file.lastModified())); fileList.add(hash); } } if ("size".equals(order)) { Collections.sort(fileList, new SizeComparator()); } else if ("type".equals(order)) { Collections.sort(fileList, new TypeComparator()); } else { Collections.sort(fileList, new NameComparator()); } JSONObject result = new JSONObject(); result.put("moveup_dir_path", moveupDirPath); result.put("current_dir_path", currentDirPath); result.put("current_url", currentUrl); result.put("total_count", fileList.size()); result.put("file_list", fileList); response.setContentType("application/json; charset=UTF-8"); out.println(result.toJSONString()); %> <%! public class NameComparator implements Comparator { public int compare(Object a, Object b) { Hashtable hashA = (Hashtable)a; Hashtable hashB = (Hashtable)b; if (((Boolean)hashA.get("is_dir")) && !((Boolean)hashB.get("is_dir"))) { return -1; } else if (!((Boolean)hashA.get("is_dir")) && ((Boolean)hashB.get("is_dir"))) { return 1; } else { return ((String)hashA.get("filename")).compareTo((String)hashB.get("filename")); } } } public class SizeComparator implements Comparator { public int compare(Object a, Object b) { Hashtable hashA = (Hashtable)a; Hashtable hashB = (Hashtable)b; if (((Boolean)hashA.get("is_dir")) && !((Boolean)hashB.get("is_dir"))) { return -1; } else if (!((Boolean)hashA.get("is_dir")) && ((Boolean)hashB.get("is_dir"))) { return 1; } else { if (((Long)hashA.get("filesize")) > ((Long)hashB.get("filesize"))) { return 1; } else if (((Long)hashA.get("filesize")) < ((Long)hashB.get("filesize"))) { return -1; } else { return 0; } } } } public class TypeComparator implements Comparator { public int compare(Object a, Object b) { Hashtable hashA = (Hashtable)a; Hashtable hashB = (Hashtable)b; if (((Boolean)hashA.get("is_dir")) && !((Boolean)hashB.get("is_dir"))) { return -1; } else if (!((Boolean)hashA.get("is_dir")) && ((Boolean)hashB.get("is_dir"))) { return 1; } else { return ((String)hashA.get("filetype")).compareTo((String)hashB.get("filetype")); } } } %> ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/jsp/upload_json.jsp ================================================ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.util.*,java.io.*" %> <%@ page import="java.text.SimpleDateFormat" %> <%@ page import="org.apache.commons.fileupload.*" %> <%@ page import="org.apache.commons.fileupload.disk.*" %> <%@ page import="org.apache.commons.fileupload.servlet.*" %> <%@ page import="org.json.simple.*" %> <% /** * KindEditor JSP * * 本JSP程序是演示程序,建议不要直接在实际项目中使用。 * 如果您确定直接使用本程序,使用之前请仔细确认相关安全设置。 * */ //文件保存目录路径 String savePath = pageContext.getServletContext().getRealPath("/") + "attached/"; //文件保存目录URL String saveUrl = request.getContextPath() + "/attached/"; //定义允许上传的文件扩展名 HashMap extMap = new HashMap(); extMap.put("image", "gif,jpg,jpeg,png,bmp"); extMap.put("flash", "swf,flv"); extMap.put("media", "swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb"); extMap.put("file", "doc,docx,xls,xlsx,ppt,htm,html,txt,zip,rar,gz,bz2"); //最大文件大小 long maxSize = 1000000; response.setContentType("text/html; charset=UTF-8"); if(!ServletFileUpload.isMultipartContent(request)){ out.println(getError("请选择文件。")); return; } //检查目录 File uploadDir = new File(savePath); if(!uploadDir.isDirectory()){ out.println(getError("上传目录不存在。")); return; } //检查目录写权限 if(!uploadDir.canWrite()){ out.println(getError("上传目录没有写权限。")); return; } String dirName = request.getParameter("dir"); if (dirName == null) { dirName = "image"; } if(!extMap.containsKey(dirName)){ out.println(getError("目录名不正确。")); return; } //创建文件夹 savePath += dirName + "/"; saveUrl += dirName + "/"; File saveDirFile = new File(savePath); if (!saveDirFile.exists()) { saveDirFile.mkdirs(); } SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); String ymd = sdf.format(new Date()); savePath += ymd + "/"; saveUrl += ymd + "/"; File dirFile = new File(savePath); if (!dirFile.exists()) { dirFile.mkdirs(); } FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); upload.setHeaderEncoding("UTF-8"); List items = upload.parseRequest(request); Iterator itr = items.iterator(); while (itr.hasNext()) { FileItem item = (FileItem) itr.next(); String fileName = item.getName(); long fileSize = item.getSize(); if (!item.isFormField()) { //检查文件大小 if(item.getSize() > maxSize){ out.println(getError("上传文件大小超过限制。")); return; } //检查扩展名 String fileExt = fileName.substring(fileName.lastIndexOf(".") + 1).toLowerCase(); if(!Arrays.asList(extMap.get(dirName).split(",")).contains(fileExt)){ out.println(getError("上传文件扩展名是不允许的扩展名。\n只允许" + extMap.get(dirName) + "格式。")); return; } SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss"); String newFileName = df.format(new Date()) + "_" + new Random().nextInt(1000) + "." + fileExt; try{ File uploadedFile = new File(savePath, newFileName); item.write(uploadedFile); }catch(Exception e){ out.println(getError("上传文件失败。")); return; } JSONObject obj = new JSONObject(); obj.put("error", 0); obj.put("url", saveUrl + newFileName); out.println(obj.toJSONString()); } } %> <%! private String getError(String message) { JSONObject obj = new JSONObject(); obj.put("error", 1); obj.put("message", message); return obj.toJSONString(); } %> ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/kindeditor-all-min.js ================================================ /* KindEditor 4.1.10 (2013-11-23), Copyright (C) kindsoft.net, Licence: http://www.kindsoft.net/license.php */(function(b,d){function f(a){if(!a)return!1;return Object.prototype.toString.call(a)==="[object Array]"}function j(a){if(!a)return!1;return Object.prototype.toString.call(a)==="[object Function]"}function e(a,c){for(var g=0,b=c.length;g=0}function o(a,c){c=c||"px";return a&&/^\d+$/.test(a)?a+c:a}function l(a){var c;return a&&(c=/(\d+)/.exec(a))?parseInt(c[1],10):0}function s(a){return a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function v(a){return a.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")}function p(a){var c=a.split("-"),a="";h(c,function(c,b){a+=c>0?b.charAt(0).toUpperCase()+ b.substr(1):b});return a}function r(a){function c(a){a=parseInt(a,10).toString(16).toUpperCase();return a.length>1?a:"0"+a}return a.replace(/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/ig,function(a,b,d,k){return"#"+c(b)+c(d)+c(k)})}function z(a,c){var c=c===d?",":c,g={},b=f(a)?a:a.split(c),t;h(b,function(a,c){if(t=/^(\d+)\.\.(\d+)$/.exec(c))for(var b=parseInt(t[1],10);b<=parseInt(t[2],10);b++)g[b.toString()]=!0;else g[c]=!0});return g}function D(a,c){return Array.prototype.slice.call(a,c||0)}function q(a, c){return a===d?c:a}function A(a,c,g){g||(g=c,c=null);var b;if(c){var d=function(){};d.prototype=c.prototype;b=new d;h(g,function(a,c){b[a]=c})}else b=g;b.constructor=a;a.prototype=b;a.parent=c?c.prototype:null}function B(a){var c;if(c=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(a))a=c[0];c=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;c.lastIndex=0;c.test(a)&&(a=a.replace(c,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})); if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+a+")");throw"JSON parse error";}function G(a,c,g){a.addEventListener?a.addEventListener(c,g,fb):a.attachEvent&&a.attachEvent("on"+c,g)}function C(a,c,g){a.removeEventListener?a.removeEventListener(c,g,fb):a.detachEvent&&a.detachEvent("on"+c,g)}function u(a,c){this.init(a,c)}function I(a){try{delete a[ma]}catch(c){a.removeAttribute&& a.removeAttribute(ma)}}function E(a,c,g){if(c.indexOf(",")>=0)h(c.split(","),function(){E(a,this,g)});else{var b=a[ma]||null;b||(a[ma]=++gb,b=gb);L[b]===d&&(L[b]={});var t=L[b][c];t&&t.length>0?C(a,c,t[0]):(L[b][c]=[],L[b].el=a);t=L[b][c];t.length===0&&(t[0]=function(c){var g=c?new u(a,c):d;h(t,function(c,b){c>0&&b&&b.call(a,g)})});e(g,t)<0&&t.push(g);G(a,c,t[0])}}function T(a,c,g){if(c&&c.indexOf(",")>=0)h(c.split(","),function(){T(a,this,g)});else{var b=a[ma]||null;if(b)if(c===d)b in L&&(h(L[b], function(c,g){c!="el"&&g.length>0&&C(a,c,g[0])}),delete L[b],I(a));else if(L[b]){var t=L[b][c];if(t&&t.length>0){g===d?(C(a,c,t[0]),delete L[b][c]):(h(t,function(a,c){a>0&&c===g&&t.splice(a,1)}),t.length==1&&(C(a,c,t[0]),delete L[b][c]));var k=0;h(L[b],function(){k++});k<2&&(delete L[b],I(a))}}}}function qa(a,c){if(c.indexOf(",")>=0)h(c.split(","),function(){qa(a,this)});else{var g=a[ma]||null;if(g){var b=L[g][c];if(L[g]&&b&&b.length>0)b[0]()}}}function $(a,c,g){c=/^\d{2,}$/.test(c)?c:c.toUpperCase().charCodeAt(0); E(a,"keydown",function(b){b.ctrlKey&&b.which==c&&!b.shiftKey&&!b.altKey&&(g.call(a),b.stop())})}function M(a){for(var c={},g=/\s*([\w\-]+)\s*:([^;]*)(;|$)/g,b;b=g.exec(a);){var d=m(b[1].toLowerCase());b=m(r(b[2]));c[d]=b}return c}function K(a){for(var c={},g=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([^\s"'<>]+))|(?:([\w\-:"]+)="([^"]*)")|(?:([\w\-:"]+)='([^']*)'))(?=(?:\s|\/|>)+)/g,b;b=g.exec(a);){var d=(b[1]||b[2]||b[4]||b[6]).toLowerCase();c[d]=(b[2]?b[3]:b[4]?b[5]:b[7])||""}return c}function O(a,c){return a= /\s+class\s*=/.test(a)?a.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,function(a,b,d,k){return(" "+d+" ").indexOf(" "+c+" ")<0?d===""?b+c+k:b+d+" "+c+k:a}):a.substr(0,a.length-1)+' class="'+c+'">'}function Q(a){var c="";h(M(a),function(a,b){c+=a+":"+b+";"});return c}function R(a,c,g,b){function t(a){for(var a=a.split("/"),c=[],g=0,b=a.length;g0&&c.pop():d!==""&&d!="."&&c.push(d)}return"/"+c.join("/")}function k(c,g){if(a.substr(0,c.length)===c){for(var d=[],t= 0;t0&&(t+="/"+d.join("/"));b=="/"&&(t+="/");return t+a.substr(c.length)}else if(i=/^(.*)\//.exec(c))return k(i[1],++g)}c=q(c,"").toLowerCase();a.substr(0,5)!="data:"&&(a=a.replace(/([^:])\/\//g,"$1/"));if(e(c,["absolute","relative","domain"])<0)return a;g=g||location.protocol+"//"+location.host;if(b===d)var w=location.pathname.match(/^(\/.*)\//),b=w?w[1]:"";var i;if(i=/^(\w+:\/\/[^\/]*)/.exec(a)){if(i[1]!==g)return a}else if(/^\w+:/.test(a))return a;/^\//.test(a)? a=g+t(a.substr(1)):/^\w+:\/\//.test(a)||(a=g+t(b+"/"+a));c==="relative"?a=k(g+b,0).substr(2):c==="absolute"&&a.substr(0,g.length)===g&&(a=a.substr(g.length));return a}function H(a,c,g,b,d){a==null&&(a="");var g=g||"",b=q(b,!1),d=q(d,"\t"),k="xx-small,x-small,small,medium,large,x-large,xx-large".split(","),a=a.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/ig,function(a,c,g,b){return c+g.replace(/<(?:br|br\s[^>]*)>/ig,"\n")+b}),a=a.replace(/<(?:br|br\s[^>]*)\s*\/?>\s*<\/p>/ig,"

                                                  "),a=a.replace(/(<(?:p|p\s[^>]*)>)\s*(<\/p>)/ig, "$1
                                                  $2"),a=a.replace(/\u200B/g,""),a=a.replace(/\u00A9/g,"©"),a=a.replace(/\u00AE/g,"®"),a=a.replace(/<[^>]+/g,function(a){return a.replace(/\s+/g," ")}),w={};c&&(h(c,function(a,c){for(var g=a.split(","),b=0,d=g.length;b]*)>)([\s\S]*?)(<\/script>)/ig,"")),w.style||(a=a.replace(/(<(?:style|style\s[^>]*)>)([\s\S]*?)(<\/style>)/ig,"")));var i=[],a=a.replace(/(\s*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"'<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+='[^']*'))*)(\/)?>(\s*)/g, function(a,f,n,l,o,j,s){var f=f||"",n=n||"",m=l.toLowerCase(),r=o||"",l=j?" "+j:"",s=s||"";if(c&&!w[m])return"";l===""&&hb[m]&&(l=" /");ib[m]&&(f&&(f=" "),s&&(s=" "));Ma[m]&&(n?s="\n":f="\n");b&&m=="br"&&(s="\n");if(jb[m]&&!Ma[m])if(b){n&&i.length>0&&i[i.length-1]===m?i.pop():i.push(m);s=f="\n";o=0;for(j=n?i.length:i.length-1;o=0&&(p[a]=R(b,g));(c&&a!=="style"&&!w[m]["*"]&&!w[m][a]||m==="body"&&a==="contenteditable"||/^kindeditor_\d+$/.test(a))&&delete p[a];if(a==="style"&&b!==""){var d=M(b);h(d,function(a){c&&!w[m].style&&!w[m]["."+a]&&delete d[a]}); var V="";h(d,function(a,c){V+=a+":"+c+";"});p.style=V}});r="";h(p,function(a,c){a==="style"&&c===""||(c=c.replace(/"/g,"""),r+=" "+a+'="'+c+'"')})}m==="font"&&(m="span");return f+"<"+n+m+r+l+">"+s}),a=a.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/ig,function(a,c,g,b){return c+g.replace(/\n/g,'\n')+b}),a=a.replace(/\n\s*\n/g,"\n"),a=a.replace(/\n/g,"\n");return m(a)}function U(a,c){a=a.replace(//ig, "").replace(//ig,"").replace(/]*>[\s\S]*?<\/style>/ig,"").replace(/]*>[\s\S]*?<\/script>/ig,"").replace(/]+>[\s\S]*?<\/w:[^>]+>/ig,"").replace(/]+>[\s\S]*?<\/o:[^>]+>/ig,"").replace(/[\s\S]*?<\/xml>/ig,"").replace(/<(?:table|td)[^>]*>/ig,function(a){return a.replace(/border-bottom:([#\w\s]+)/ig,"border:$1")});return H(a,c)}function W(a){if(/\.(rm|rmvb)(\?|$)/i.test(a))return"audio/x-pn-realaudio-plugin";if(/\.(swf|flv)(\?|$)/i.test(a))return"application/x-shockwave-flash"; return"video/x-ms-asf-plugin"}function S(a){return K(unescape(a))}function Na(a){var c="0&&(w+="width:"+g+"px;");/\D/.test(b)?w+="height:"+b+";":b>0&&(w+="height:"+b+"px;");g=/realaudio/i.test(d)?"ke-rm":/flash/i.test(d)?"ke-flash":"ke-media";g='';return g}function Da(a,c){if(a.nodeType==9&&c.nodeType!=9)return!0;for(;c=c.parentNode;)if(c==a)return!0;return!1}function Ea(a,c){var c=c.toLowerCase(),g=null;if(!Mb&&a.nodeName.toLowerCase()!="script"){var b=a.ownerDocument.createElement("div");b.appendChild(a.cloneNode(!1));b=K(v(b.innerHTML));c in b&&(g=b[c])}else try{g=a.getAttribute(c,2)}catch(d){g=a.getAttribute(c,1)}c==="style"&&g!==null&&(g=Q(g));return g}function Fa(a,c){function g(a){if(typeof a!="string")return a;return a.replace(/([^\w\-])/g, "\\$1")}function b(a,c){return a==="*"||a.toLowerCase()===g(c.toLowerCase())}function d(a,c,g){var t=[];(a=(g.ownerDocument||g).getElementById(a.replace(/\\/g,"")))&&b(c,a.nodeName)&&Da(g,a)&&t.push(a);return t}function k(a,c,g){var d=g.ownerDocument||g,t=[],k,w,i;if(g.getElementsByClassName){d=g.getElementsByClassName(a.replace(/\\/g,""));k=0;for(w=d.length;k-1&&t.push(i)}return t}function w(a,c,b,d){for(var t=[],b=d.getElementsByTagName(b),V=0,k=b.length;V])+)/.exec(a))?e[1]:"*";if(e=/#((?:[\w\-]|\\.)+)$/.exec(a))g= d(e[1],f,c);else if(e=/\.((?:[\w\-]|\\.)+)$/.exec(a))g=k(e[1],f,c);else if(e=/\[((?:[\w\-]|\\.)+)\]/.exec(a))g=w(e[1].toLowerCase(),null,f,c);else if(e=/\[((?:[\w\-]|\\.)+)\s*=\s*['"]?((?:\\.|[^'"]+)+)['"]?\]/.exec(a)){g=e[1].toLowerCase();e=e[2];if(g==="id")f=d(e,f,c);else if(g==="class")f=k(e,f,c);else if(g==="name"){g=[];e=(c.ownerDocument||c).getElementsByName(e.replace(/\\/g,""));for(var Z,h=0,l=e.length;h1){var n=[];h(f,function(){h(Fa(this,c),function(){e(this,n)<0&&n.push(this)})});return n}for(var c=c||document,f=[],l,o=/((?:\\.|[^\s>])+|[\s>])/g;l=o.exec(a);)l[1]!==" "&&f.push(l[1]);l=[];if(f.length==1)return i(f[0],c);var o=!1,m,s,j,r,p,v,q,B,E,u;v=0;for(lenth=f.length;v")o=!0;else{if(v>0){s=[];q=0;for(E=l.length;q
                                                  ').css("background-color",c)):a.html(d.options.noColor);i(a).attr("unselectable","on");d._cells.push(a)},remove:function(){h(this._cells,function(){this.unbind()});za.parent.remove.call(this);return this}});i.ColorPickerClass=za;i.colorpicker=xb;A(bb,{init:function(a){var c=i(a.button),b=a.fieldName|| "file",d=a.url||"",e=c.val(),f=a.extraParams||{},h=c[0].className||"",l=a.target||"kindeditor_upload_iframe_"+(new Date).getTime();a.afterError=a.afterError||function(a){alert(a)};var n=[],o;for(o in f)n.push('');b=['
                                                  ',a.target?"":'',a.form?'
                                                  ':'
                                                  ','',n.join(""),'',"",'',a.form?"
                                                  ":"","
                                                  "].join("");b=i(b,c.doc);c.hide();c.before(b);this.div=b;this.button=c;this.iframe=a.target?i('iframe[name="'+l+'"]'):i("iframe",b);this.form=a.form?i(a.form):i("form",b);this.fileBox=i(".ke-upload-file",b);c=a.width||i(".ke-button-common",b).width(); i(".ke-upload-area",b).width(c);this.options=a},submit:function(){var a=this,c=a.iframe;c.bind("load",function(){c.unbind();var b=document.createElement("form");a.fileBox.before(b);i(b).append(a.fileBox);b.reset();i(b).remove(!0);var b=i.iframeDoc(c),d=b.getElementsByTagName("pre")[0],e="",f,e=d?d.innerHTML:b.body.innerHTML,e=v(e);c[0].src="javascript:false";try{f=i.json(e)}catch(h){a.options.afterError.call(a,""+b.body.parentNode.innerHTML+"")}f&&a.options.afterUpload.call(a, f)});a.form[0].submit();return a},remove:function(){this.fileBox&&this.fileBox.unbind();this.iframe.remove();this.div.remove();this.button.show();return this}});i.UploadButtonClass=bb;i.uploadbutton=function(a){return new bb(a)};A(Aa,ga,{init:function(a){var c=q(a.shadowMode,!0);a.z=a.z||811213;a.shadowMode=!1;a.autoScroll=q(a.autoScroll,!0);Aa.parent.init.call(this,a);var b=a.title,d=i(a.body,this.doc),e=a.previewBtn,f=a.yesBtn,n=a.noBtn,o=a.closeBtn,m=q(a.showMask,!0);this.div.addClass("ke-dialog").bind("click,mousedown", function(a){a.stopPropagation()});var s=i('
                                                  ').appendTo(this.div);F&&N<7?this.iframeMask=i('').appendTo(this.div):c&&i('
                                                  ').appendTo(this.div);c=i('
                                                  ');s.append(c);c.html(b);this.closeIcon=i('').click(o.click);c.append(this.closeIcon);this.draggable({clickEl:c,beforeDrag:a.beforeDrag}); a=i('
                                                  ');s.append(a);a.append(d);var j=i('');(e||f||n)&&s.append(j);h([{btn:e,name:"preview"},{btn:f,name:"yes"},{btn:n,name:"no"}],function(){if(this.btn){var a=this.btn,a=a||{},c=a.name||"",b=i(''),c=i('');a.click&&c.click(a.click);b.append(c);b.addClass("ke-dialog-"+this.name);j.append(b)}}); this.height&&a.height(l(this.height)-c.height()-j.height());this.div.width(this.div.width());this.div.height(this.div.height());this.mask=null;if(m)d=X(this.doc),this.mask=Za({x:0,y:0,z:this.z-1,cls:"ke-dialog-mask",width:Math.max(d.scrollWidth,d.clientWidth),height:Math.max(d.scrollHeight,d.clientHeight)});this.autoPos(this.div.width(),this.div.height());this.footerDiv=j;this.bodyDiv=a;this.headerDiv=c;this.isLoading=!1},setMaskIndex:function(a){this.mask.div.css("z-index",a)},showLoading:function(a){var a= q(a,""),c=this.bodyDiv;this.loading=i('
                                                  '+a+"
                                                  ").width(c.width()).height(c.height()).css("top",this.headerDiv.height()+"px");c.css("visibility","hidden").after(this.loading);this.isLoading=!0;return this},hideLoading:function(){this.loading&&this.loading.remove();this.bodyDiv.css("visibility","visible");this.isLoading=!1;return this},remove:function(){this.options.beforeRemove&& this.options.beforeRemove.call(this);this.mask&&this.mask.remove();this.iframeMask&&this.iframeMask.remove();this.closeIcon.unbind();i("input",this.div).unbind();i("button",this.div).unbind();this.footerDiv.unbind();this.bodyDiv.unbind();this.headerDiv.unbind();i("iframe",this.div).each(function(){i(this).remove()});Aa.parent.remove.call(this);return this}});i.DialogClass=Aa;i.dialog=yb;i.tabs=function(a){var c=Za(a),b=c.remove,d=a.afterSelect,a=c.div,e=[];a.addClass("ke-tabs").bind("contextmenu,mousedown,mousemove", function(a){a.preventDefault()});var f=i('
                                                    ');a.append(f);c.add=function(a){var c=i('
                                                  • '+a.title+"
                                                  • ");c.data("tab",a);e.push(c);f.append(c)};c.selectedIndex=0;c.select=function(a){c.selectedIndex=a;h(e,function(b,d){d.unbind();b===a?(d.addClass("ke-tabs-li-selected"),i(d.data("tab").panel).show("")):(d.removeClass("ke-tabs-li-selected").removeClass("ke-tabs-li-on").mouseover(function(){i(this).addClass("ke-tabs-li-on")}).mouseout(function(){i(this).removeClass("ke-tabs-li-on")}).click(function(){c.select(b)}), i(d.data("tab").panel).hide())});d&&d.call(c,a)};c.remove=function(){h(e,function(){this.remove()});f.remove();b.call(c)};return c};i.loadScript=cb;i.loadStyle=db;i.ajax=function(a,c,d,e,i){var d=d||"GET",i=i||"json",f=b.XMLHttpRequest?new b.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");f.open(d,a,!0);f.onreadystatechange=function(){if(f.readyState==4&&f.status==200&&c){var a=m(f.responseText);i=="json"&&(a=B(a));c(a)}};if(d=="POST"){var l=[];h(e,function(a,c){l.push(encodeURIComponent(a)+ "="+encodeURIComponent(c))});try{f.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(n){}f.send(l.join("&"))}else f.send(null)};var ba={},ca={};Ba.prototype={lang:function(a){return Cb(a,this.langType)},loadPlugin:function(a,c){var b=this;if(ba[a]){if(!j(ba[a]))return setTimeout(function(){b.loadPlugin(a,c)},100),b;ba[a].call(b,KindEditor);c&&c.call(b);return b}ba[a]="loading";cb(b.pluginsPath+a+"/"+a+".js?ver="+encodeURIComponent(i.DEBUG?Ja:Ka),function(){setTimeout(function(){ba[a]&& b.loadPlugin(a,c)},0)});return b},handler:function(a,c){var b=this;b._handlers[a]||(b._handlers[a]=[]);if(j(c))return b._handlers[a].push(c),b;h(b._handlers[a],function(){c=this.call(b,c)});return c},clickToolbar:function(a,c){var b=this,e="clickToolbar"+a;if(c===d){if(b._handlers[e])return b.handler(e);b.loadPlugin(a,function(){b.handler(e)});return b}return b.handler(e,c)},updateState:function(){var a=this;h("justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,subscript,superscript,bold,italic,underline,strikethrough".split(","), function(c,b){a.cmd.state(b)?a.toolbar.select(b):a.toolbar.unselect(b)});return a},addContextmenu:function(a){this._contextmenus.push(a);return this},afterCreate:function(a){return this.handler("afterCreate",a)},beforeRemove:function(a){return this.handler("beforeRemove",a)},beforeGetHtml:function(a){return this.handler("beforeGetHtml",a)},beforeSetHtml:function(a){return this.handler("beforeSetHtml",a)},afterSetHtml:function(a){return this.handler("afterSetHtml",a)},create:function(){function a(){m.height()=== 0?setTimeout(a,100):c.resize(e,f,!1)}var c=this,d=c.fullscreenMode;if(c.isCreated)return c;if(c.srcElement.data("kindeditor"))return c;c.srcElement.data("kindeditor","true");d?X().style.overflow="hidden":X().style.overflow="";var e=d?X().clientWidth+"px":c.width,f=d?X().clientHeight+"px":c.height;if(F&&N<8||da)f=o(l(f)+2);var k=c.container=i(c.layout);d?i(document.body).append(k):c.srcElement.before(k);var h=i(".toolbar",k),n=i(".edit",k),m=c.statusbar=i(".statusbar",k);k.removeClass("container").addClass("ke-container ke-container-"+ c.themeType).css("width",e);if(d){k.css({position:"absolute",left:0,top:0,"z-index":811211});if(!la)c._scrollPos=na();b.scrollTo(0,0);i(document.body).css({height:"1px",overflow:"hidden"});i(document.body.parentNode).css("overflow","hidden");c._fullscreenExecuted=!0}else c._fullscreenExecuted&&(i(document.body).css({height:"",overflow:""}),i(document.body.parentNode).css("overflow","")),c._scrollPos&&b.scrollTo(c._scrollPos.x,c._scrollPos.y);var s=[];i.each(c.items,function(a,b){b=="|"?s.push(''): b=="/"?s.push('
                                                    '):(s.push(''),s.push(''))});var h=c.toolbar=wb({src:h,html:s.join(""),noDisableItems:c.noDisableItems,click:function(a,b){a.stop();if(c.menu){var d=c.menu.name;c.hideMenu();if(d===b)return}c.clickToolbar(b)}}),j=l(f)-h.div.height(),r=c.edit=ub({height:j>0&&l(f)>c.minHeight?j:c.minHeight, src:n,srcElement:c.srcElement,designMode:c.designMode,themesPath:c.themesPath,bodyClass:c.bodyClass,cssPath:c.cssPath,cssData:c.cssData,beforeGetHtml:function(a){a=c.beforeGetHtml(a);a=ha(Ia(a));return H(a,c.filterMode?c.htmlTags:null,c.urlType,c.wellFormatMode,c.indentChar)},beforeSetHtml:function(a){a=H(a,c.filterMode?c.htmlTags:null,"",!1);return c.beforeSetHtml(a)},afterSetHtml:function(){c.edit=r=this;c.afterSetHtml()},afterCreate:function(){c.edit=r=this;c.cmd=r.cmd;c._docMousedownFn=function(){c.menu&& c.hideMenu()};i(r.doc,document).mousedown(c._docMousedownFn);Sb.call(c);Tb.call(c);Ub.call(c);Vb.call(c);r.afterChange(function(){r.designMode&&(c.updateState(),c.addBookmark(),c.options.afterChange&&c.options.afterChange.call(c))});r.textarea.keyup(function(a){!a.ctrlKey&&!a.altKey&&Ib[a.which]&&c.options.afterChange&&c.options.afterChange.call(c)});c.readonlyMode&&c.readonly();c.isCreated=!0;if(c.initContent==="")c.initContent=c.html();if(c._undoStack.length>0){var a=c._undoStack.pop();a.start&& (c.html(a.html),r.cmd.range.moveToBookmark(a),c.select())}c.afterCreate();c.options.afterCreate&&c.options.afterCreate.call(c)}});m.removeClass("statusbar").addClass("ke-statusbar").append('').append('');if(c._fullscreenResizeHandler)i(b).unbind("resize",c._fullscreenResizeHandler),c._fullscreenResizeHandler=null;a();d?(c._fullscreenResizeHandler=function(){c.isCreated&&c.resize(X().clientWidth, X().clientHeight,!1)},i(b).bind("resize",c._fullscreenResizeHandler),h.select("fullscreen"),m.first().css("visibility","hidden"),m.last().css("visibility","hidden")):(la&&i(b).bind("scroll",function(){c._scrollPos=na()}),c.resizeType>0?Xa({moveEl:k,clickEl:m,moveFn:function(a,b,d,g,e,f){g+=f;c.resize(null,g)}}):m.first().css("visibility","hidden"),c.resizeType===2?Xa({moveEl:k,clickEl:m.last(),moveFn:function(a,b,d,g,e,f){d+=e;g+=f;c.resize(d,g)}}):m.last().css("visibility","hidden"));return c},remove:function(){var a= this;if(!a.isCreated)return a;a.beforeRemove();a.srcElement.data("kindeditor","");a.menu&&a.hideMenu();h(a.dialogs,function(){a.hideDialog()});i(document).unbind("mousedown",a._docMousedownFn);a.toolbar.remove();a.edit.remove();a.statusbar.last().unbind();a.statusbar.unbind();a.container.remove();a.container=a.toolbar=a.edit=a.menu=null;a.dialogs=[];a.isCreated=!1;return a},resize:function(a,c,b){b=q(b,!0);if(a&&(/%/.test(a)||(a=l(a),a=a/ig,"").replace(/ /ig," ")):this.html(s(a))},isEmpty:function(){return m(this.text().replace(/\r\n|\n|\r/,""))===""},isDirty:function(){return m(this.initContent.replace(/\r\n|\n|\r|t/g,""))!==m(this.html().replace(/\r\n|\n|\r|t/g,""))},selectedHtml:function(){var a=this.isCreated?this.cmd.range.html():"";return a=ha(Ia(a))},count:function(a){a=(a||"html").toLowerCase();if(a==="html")return this.html().length; if(a==="text")return this.text().replace(/<(?:img|embed).*?>/ig,"K").replace(/\r\n|\n|\r/g,"").length;return 0},exec:function(a){var a=a.toLowerCase(),c=this.cmd,b=e(a,"selectall,copy,paste,print".split(","))<0;b&&this.addBookmark(!1);c[a].apply(c,D(arguments,1));b&&(this.updateState(),this.addBookmark(!1),this.options.afterChange&&this.options.afterChange.call(this));return this},insertHtml:function(a,c){if(!this.isCreated)return this;a=this.beforeSetHtml(a);this.exec("inserthtml",a,c);return this}, appendHtml:function(a){this.html(this.html()+a);if(this.isCreated)a=this.cmd,a.range.selectNodeContents(a.doc.body).collapse(!1),a.select();return this},sync:function(){wa(this.srcElement,this.html());return this},focus:function(){this.isCreated?this.edit.focus():this.srcElement[0].focus();return this},blur:function(){this.isCreated?this.edit.blur():this.srcElement[0].blur();return this},addBookmark:function(a){var a=q(a,!0),c=this.edit,b=c.doc.body,d=Ia(b.innerHTML);if(a&&this._undoStack.length> 0&&Math.abs(d.length-ha(this._undoStack[this._undoStack.length-1].html).length)0){var d=b.dialogs[b.dialogs.length-1];b.dialogs[0].setMaskIndex(d.z+2);a.z=d.z+3;a.showMask=!1}a=yb(a);b.dialogs.push(a);return a},hideDialog:function(){this.dialogs.length>0&&this.dialogs.pop().remove();this.dialogs.length>0&&this.dialogs[0].setMaskIndex(this.dialogs[this.dialogs.length- 1].z-1);return this},errorDialog:function(a){var b=this.createDialog({width:750,title:this.lang("uploadError"),body:'
                                                    '}),b=i("iframe",b.div),d=i.iframeDoc(b);d.open();d.write(a);d.close();i(d.body).css("background-color","#FFF");b[0].contentWindow.focus();return this}};_instances=[];i.remove=function(a){Ca(a,function(a){this.remove();_instances.splice(a,1)})};i.sync=function(a){Ca(a,function(){this.sync()})}; i.html=function(a,b){Ca(a,function(){this.html(b)})};i.insertHtml=function(a,b){Ca(a,function(){this.insertHtml(b)})};i.appendHtml=function(a,b){Ca(a,function(){this.appendHtml(b)})};F&&N<7&&ea(document,"BackgroundImageCache",!0);i.EditorClass=Ba;i.editor=function(a){return new Ba(a)};i.create=Fb;i.instances=_instances;i.plugin=Ab;i.lang=Cb;Ab("core",function(a){var c=this,g={undo:"Z",redo:"Y",bold:"B",italic:"I",underline:"U",print:"P",selectall:"A"};c.afterSetHtml(function(){c.options.afterChange&& c.options.afterChange.call(c)});c.afterCreate(function(){if(c.syncType=="form"){for(var d=a(c.srcElement),g=!1;d=d.parent();)if(d.name=="form"){g=!0;break}if(g){d.bind("submit",function(){c.sync();a(b).bind("unload",function(){c.edit.textarea.remove()})});var e=a('[type="reset"]',d);e.click(function(){c.html(c.initContent);c.cmd.selection()});c.beforeRemove(function(){d.unbind();e.unbind()})}}});c.clickToolbar("source",function(){c.edit.designMode?(c.toolbar.disableAll(!0),c.edit.design(!1),c.toolbar.select("source")): (c.toolbar.disableAll(!1),c.edit.design(!0),c.toolbar.unselect("source"),la?setTimeout(function(){c.cmd.selection()},0):c.cmd.selection());c.designMode=c.edit.designMode});c.afterCreate(function(){c.designMode||c.toolbar.disableAll(!0).select("source")});c.clickToolbar("fullscreen",function(){c.fullscreen()});if(c.fullscreenShortcut){var f=!1;c.afterCreate(function(){a(c.edit.doc,c.edit.textarea).keyup(function(a){a.which==27&&setTimeout(function(){c.fullscreen()},0)});if(f){if(F&&!c.designMode)return; c.focus()}f||(f=!0)})}h("undo,redo".split(","),function(a,b){g[b]&&c.afterCreate(function(){$(this.edit.doc,g[b],function(){c.clickToolbar(b)})});c.clickToolbar(b,function(){c[b]()})});c.clickToolbar("formatblock",function(){var a=c.lang("formatblock.formatBlock"),b={h1:28,h2:24,h3:18,H4:14,p:12},d=c.cmd.val("formatblock"),g=c.createMenu({name:"formatblock",width:c.langType=="en"?200:150});h(a,function(a,e){var f="font-size:"+b[a]+"px;";a.charAt(0)==="h"&&(f+="font-weight:bold;");g.addItem({title:''+e+"",height:b[a]+12,checked:d===a||d===e,click:function(){c.select().exec("formatblock","<"+a+">").hideMenu()}})})});c.clickToolbar("fontname",function(){var a=c.cmd.val("fontname"),b=c.createMenu({name:"fontname",width:150});h(c.lang("fontname.fontName"),function(d,g){b.addItem({title:''+g+"",checked:a===d.toLowerCase()||a===g.toLowerCase(),click:function(){c.exec("fontname",d).hideMenu()}})})});c.clickToolbar("fontsize", function(){var a=c.cmd.val("fontsize"),b=c.createMenu({name:"fontsize",width:150});h(c.fontSizeTable,function(d,g){b.addItem({title:''+g+"",height:l(g)+12,checked:a===g,click:function(){c.exec("fontsize",g).hideMenu()}})})});h("forecolor,hilitecolor".split(","),function(a,b){c.clickToolbar(b,function(){c.createMenu({name:b,selectedColor:c.cmd.val(b)||"default",colors:c.colorTable,click:function(a){c.exec(b,a).hideMenu()}})})});h("cut,copy,paste".split(","), function(a,b){c.clickToolbar(b,function(){c.focus();try{c.exec(b,null)}catch(a){alert(c.lang(b+"Error"))}})});c.clickToolbar("about",function(){var a='
                                                    KindEditor '+Ka+'
                                                    Copyright © kindsoft.net All rights reserved.
                                                    ';c.createDialog({name:"about",width:350,title:c.lang("about"),body:a})});c.plugin.getSelectedLink=function(){return c.cmd.commonAncestor("a")};c.plugin.getSelectedImage=function(){return Ha(c.edit.cmd.range, function(a){return!/^ke-\w+$/i.test(a[0].className)})};c.plugin.getSelectedFlash=function(){return Ha(c.edit.cmd.range,function(a){return a[0].className=="ke-flash"})};c.plugin.getSelectedMedia=function(){return Ha(c.edit.cmd.range,function(a){return a[0].className=="ke-media"||a[0].className=="ke-rm"})};c.plugin.getSelectedAnchor=function(){return Ha(c.edit.cmd.range,function(a){return a[0].className=="ke-anchor"})};h("link,image,flash,media,anchor".split(","),function(a,b){var g=b.charAt(0).toUpperCase()+ b.substr(1);h("edit,delete".split(","),function(a,e){c.addContextmenu({title:c.lang(e+g),click:function(){c.loadPlugin(b,function(){c.plugin[b][e]();c.hideMenu()})},cond:c.plugin["getSelected"+g],width:150,iconClass:e=="edit"?"ke-icon-"+b:d})});c.addContextmenu({title:"-"})});c.plugin.getSelectedTable=function(){return c.cmd.commonAncestor("table")};c.plugin.getSelectedRow=function(){return c.cmd.commonAncestor("tr")};c.plugin.getSelectedCell=function(){return c.cmd.commonAncestor("td")};h("prop,cellprop,colinsertleft,colinsertright,rowinsertabove,rowinsertbelow,rowmerge,colmerge,rowsplit,colsplit,coldelete,rowdelete,insert,delete".split(","), function(a,b){var d=e(b,["prop","delete"])<0?c.plugin.getSelectedCell:c.plugin.getSelectedTable;c.addContextmenu({title:c.lang("table"+b),click:function(){c.loadPlugin("table",function(){c.plugin.table[b]();c.hideMenu()})},cond:d,width:170,iconClass:"ke-icon-table"+b})});c.addContextmenu({title:"-"});h("selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript,hr,print,bold,italic,underline,strikethrough,removeformat,unlink".split(","), function(a,b){g[b]&&c.afterCreate(function(){$(this.edit.doc,g[b],function(){c.cmd.selection();c.clickToolbar(b)})});c.clickToolbar(b,function(){c.focus().exec(b,null)})});c.afterCreate(function(){function b(){g.range.moveToBookmark(e);g.select();ka&&(a("div."+i,f).each(function(){a(this).after("
                                                    ").remove(!0)}),a("span.Apple-style-span",f).remove(!0),a("span.Apple-tab-span",f).remove(!0),a("span[style]",f).each(function(){a(this).css("white-space")=="nowrap"&&a(this).remove(!0)}),a("meta",f).remove()); var d=f[0].innerHTML;f.remove();d!==""&&(ka&&(d=d.replace(/(
                                                    )\1/ig,"$1")),c.pasteType===2&&(d=d.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/ig,""),/schemas-microsoft-com|worddocument|mso-\w+/i.test(d)?d=U(d,c.filterMode?c.htmlTags:a.options.htmlTags):(d=H(d,c.filterMode?c.htmlTags:null),d=c.beforeSetHtml(d))),c.pasteType===1&&(d=d.replace(/ /ig," "),d=d.replace(/\n\s*\n/g,"\n"),d=d.replace(/]*>/ig,"\n"),d=d.replace(/<\/p>]*>/ig,"\n"),d=d.replace(/<[^>]+>/g,""),d=d.replace(/ {2}/g,"  "), c.newlineTag=="p"?/\n/.test(d)&&(d=d.replace(/^/,"

                                                    ").replace(/$/,"

                                                    ").replace(/\n/g,"

                                                    ")):d=d.replace(/\n/g,"
                                                    $&")),c.insertHtml(d,!0))}var d=c.edit.doc,g,e,f,i="__kindeditor_paste__",h=!1;a(d.body).bind("paste",function(l){if(c.pasteType===0)l.stop();else if(!h){h=!0;a("div."+i,d).remove();g=c.cmd.selection();e=g.range.createBookmark();f=a('

                                                    ',d).css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",left:"-1981px",top:a(e.start).pos().y+ "px","white-space":"nowrap"});a(d.body).append(f);if(F){var n=g.range.get(!0);n.moveToElementText(f[0]);n.select();n.execCommand("paste");l.preventDefault()}else g.range.selectNodeContents(f[0]),g.select();setTimeout(function(){b();h=!1},0)}})});c.beforeGetHtml(function(a){F&&N<=8&&(a=a.replace(/]*data-ke-input-tag="([^"]*)"[^>]*>([\s\S]*?)<\/div>/ig,function(a,b){return unescape(b)}),a=a.replace(/(]*)?>)/ig,function(a,b,c){if(!/\s+type="[^"]+"/i.test(a))return b+' type="text"'+ c;return a}));return a.replace(/(<(?:noscript|noscript\s[^>]*)>)([\s\S]*?)(<\/noscript>)/ig,function(a,b,c,d){return b+v(c).replace(/\s+/g," ")+d}).replace(/]*class="?ke-(flash|rm|media)"?[^>]*>/ig,function(a){var a=K(a),b=M(a.style||""),c=S(a["data-ke-tag"]),d=q(b.width,""),b=q(b.height,"");/px/i.test(d)&&(d=l(d));/px/i.test(b)&&(b=l(b));c.width=q(a.width,d);c.height=q(a.height,b);return Na(c)}).replace(/]*class="?ke-anchor"?[^>]*>/ig,function(a){a=K(a);return''}).replace(/]*data-ke-script-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/ig,function(a,b,c){return""+unescape(c)+"<\/script>"}).replace(/]*data-ke-noscript-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/ig,function(a,b,c){return""+unescape(c)+""}).replace(/(<[^>]*)data-ke-src="([^"]*)"([^>]*>)/ig,function(a,b,c){a=a.replace(/(\s+(?:href|src)=")[^"]*(")/i,function(a,b,d){return b+v(c)+d});return a=a.replace(/\s+data-ke-src="[^"]*"/i, "")}).replace(/(<[^>]+\s)data-ke-(on\w+="[^"]*"[^>]*>)/ig,function(a,b,c){return b+c})});c.beforeSetHtml(function(a){F&&N<=8&&(a=a.replace(/]*>|<(select|button)[^>]*>[\s\S]*?<\/\1>/ig,function(a){var b=K(a);if(M(b.style||"").display=="none")return'
                                                    ';return a}));return a.replace(/]*type="([^"]+)"[^>]*>(?:<\/embed>)?/ig,function(a){a=K(a);a.src=q(a.src,"");a.width=q(a.width,0);a.height=q(a.height,0);return kb(c.themesPath+ "common/blank.gif",a)}).replace(/]*name="([^"]+)"[^>]*>(?:<\/a>)?/ig,function(a){var b=K(a);if(b.href!==d)return a;return''}).replace(/]*)>([\s\S]*?)<\/script>/ig,function(a,b,c){return'
                                                    '+escape(c)+"
                                                    "}).replace(/]*)>([\s\S]*?)<\/noscript>/ig,function(a,b,c){return'
                                                    '+escape(c)+"
                                                    "}).replace(/(<[^>]*)(href|src)="([^"]*)"([^>]*>)/ig,function(a,b,c,d,g){if(a.match(/\sdata-ke-src="[^"]*"/i))return a;return a=b+c+'="'+d+'" data-ke-src="'+s(d)+'"'+g}).replace(/(<[^>]+\s)(on\w+="[^"]*"[^>]*>)/ig,function(a,b,c){return b+"data-ke-"+c}).replace(/]*\s+border="0"[^>]*>/ig,function(a){if(a.indexOf("ke-zeroborder")>=0)return a;return O(a,"ke-zeroborder")})})})}})(window); KindEditor.lang({source:"HTML\u4ee3\u7801",preview:"\u9884\u89c8",undo:"\u540e\u9000(Ctrl+Z)",redo:"\u524d\u8fdb(Ctrl+Y)",cut:"\u526a\u5207(Ctrl+X)",copy:"\u590d\u5236(Ctrl+C)",paste:"\u7c98\u8d34(Ctrl+V)",plainpaste:"\u7c98\u8d34\u4e3a\u65e0\u683c\u5f0f\u6587\u672c",wordpaste:"\u4eceWord\u7c98\u8d34",selectall:"\u5168\u9009(Ctrl+A)",justifyleft:"\u5de6\u5bf9\u9f50",justifycenter:"\u5c45\u4e2d",justifyright:"\u53f3\u5bf9\u9f50",justifyfull:"\u4e24\u7aef\u5bf9\u9f50",insertorderedlist:"\u7f16\u53f7", insertunorderedlist:"\u9879\u76ee\u7b26\u53f7",indent:"\u589e\u52a0\u7f29\u8fdb",outdent:"\u51cf\u5c11\u7f29\u8fdb",subscript:"\u4e0b\u6807",superscript:"\u4e0a\u6807",formatblock:"\u6bb5\u843d",fontname:"\u5b57\u4f53",fontsize:"\u6587\u5b57\u5927\u5c0f",forecolor:"\u6587\u5b57\u989c\u8272",hilitecolor:"\u6587\u5b57\u80cc\u666f",bold:"\u7c97\u4f53(Ctrl+B)",italic:"\u659c\u4f53(Ctrl+I)",underline:"\u4e0b\u5212\u7ebf(Ctrl+U)",strikethrough:"\u5220\u9664\u7ebf",removeformat:"\u5220\u9664\u683c\u5f0f", image:"\u56fe\u7247",multiimage:"\u6279\u91cf\u56fe\u7247\u4e0a\u4f20",flash:"Flash",media:"\u89c6\u97f3\u9891",table:"\u8868\u683c",tablecell:"\u5355\u5143\u683c",hr:"\u63d2\u5165\u6a2a\u7ebf",emoticons:"\u63d2\u5165\u8868\u60c5",link:"\u8d85\u7ea7\u94fe\u63a5",unlink:"\u53d6\u6d88\u8d85\u7ea7\u94fe\u63a5",fullscreen:"\u5168\u5c4f\u663e\u793a",about:"\u5173\u4e8e",print:"\u6253\u5370(Ctrl+P)",filemanager:"\u6587\u4ef6\u7a7a\u95f4",code:"\u63d2\u5165\u7a0b\u5e8f\u4ee3\u7801",map:"Google\u5730\u56fe", baidumap:"\u767e\u5ea6\u5730\u56fe",lineheight:"\u884c\u8ddd",clearhtml:"\u6e05\u7406HTML\u4ee3\u7801",pagebreak:"\u63d2\u5165\u5206\u9875\u7b26",quickformat:"\u4e00\u952e\u6392\u7248",insertfile:"\u63d2\u5165\u6587\u4ef6",template:"\u63d2\u5165\u6a21\u677f",anchor:"\u951a\u70b9",yes:"\u786e\u5b9a",no:"\u53d6\u6d88",close:"\u5173\u95ed",editImage:"\u56fe\u7247\u5c5e\u6027",deleteImage:"\u5220\u9664\u56fe\u7247",editFlash:"Flash\u5c5e\u6027",deleteFlash:"\u5220\u9664Flash",editMedia:"\u89c6\u97f3\u9891\u5c5e\u6027", deleteMedia:"\u5220\u9664\u89c6\u97f3\u9891",editLink:"\u8d85\u7ea7\u94fe\u63a5\u5c5e\u6027",deleteLink:"\u53d6\u6d88\u8d85\u7ea7\u94fe\u63a5",editAnchor:"\u951a\u70b9\u5c5e\u6027",deleteAnchor:"\u5220\u9664\u951a\u70b9",tableprop:"\u8868\u683c\u5c5e\u6027",tablecellprop:"\u5355\u5143\u683c\u5c5e\u6027",tableinsert:"\u63d2\u5165\u8868\u683c",tabledelete:"\u5220\u9664\u8868\u683c",tablecolinsertleft:"\u5de6\u4fa7\u63d2\u5165\u5217",tablecolinsertright:"\u53f3\u4fa7\u63d2\u5165\u5217",tablerowinsertabove:"\u4e0a\u65b9\u63d2\u5165\u884c", tablerowinsertbelow:"\u4e0b\u65b9\u63d2\u5165\u884c",tablerowmerge:"\u5411\u4e0b\u5408\u5e76\u5355\u5143\u683c",tablecolmerge:"\u5411\u53f3\u5408\u5e76\u5355\u5143\u683c",tablerowsplit:"\u62c6\u5206\u884c",tablecolsplit:"\u62c6\u5206\u5217",tablecoldelete:"\u5220\u9664\u5217",tablerowdelete:"\u5220\u9664\u884c",noColor:"\u65e0\u989c\u8272",pleaseSelectFile:"\u8bf7\u9009\u62e9\u6587\u4ef6\u3002",invalidImg:"\u8bf7\u8f93\u5165\u6709\u6548\u7684URL\u5730\u5740\u3002\n\u53ea\u5141\u8bb8jpg,gif,bmp,png\u683c\u5f0f\u3002", invalidMedia:"\u8bf7\u8f93\u5165\u6709\u6548\u7684URL\u5730\u5740\u3002\n\u53ea\u5141\u8bb8swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb\u683c\u5f0f\u3002",invalidWidth:"\u5bbd\u5ea6\u5fc5\u987b\u4e3a\u6570\u5b57\u3002",invalidHeight:"\u9ad8\u5ea6\u5fc5\u987b\u4e3a\u6570\u5b57\u3002",invalidBorder:"\u8fb9\u6846\u5fc5\u987b\u4e3a\u6570\u5b57\u3002",invalidUrl:"\u8bf7\u8f93\u5165\u6709\u6548\u7684URL\u5730\u5740\u3002",invalidRows:"\u884c\u6570\u4e3a\u5fc5\u9009\u9879\uff0c\u53ea\u5141\u8bb8\u8f93\u5165\u5927\u4e8e0\u7684\u6570\u5b57\u3002", invalidCols:"\u5217\u6570\u4e3a\u5fc5\u9009\u9879\uff0c\u53ea\u5141\u8bb8\u8f93\u5165\u5927\u4e8e0\u7684\u6570\u5b57\u3002",invalidPadding:"\u8fb9\u8ddd\u5fc5\u987b\u4e3a\u6570\u5b57\u3002",invalidSpacing:"\u95f4\u8ddd\u5fc5\u987b\u4e3a\u6570\u5b57\u3002",invalidJson:"\u670d\u52a1\u5668\u53d1\u751f\u6545\u969c\u3002",uploadSuccess:"\u4e0a\u4f20\u6210\u529f\u3002",cutError:"\u60a8\u7684\u6d4f\u89c8\u5668\u5b89\u5168\u8bbe\u7f6e\u4e0d\u5141\u8bb8\u4f7f\u7528\u526a\u5207\u64cd\u4f5c\uff0c\u8bf7\u4f7f\u7528\u5feb\u6377\u952e(Ctrl+X)\u6765\u5b8c\u6210\u3002", copyError:"\u60a8\u7684\u6d4f\u89c8\u5668\u5b89\u5168\u8bbe\u7f6e\u4e0d\u5141\u8bb8\u4f7f\u7528\u590d\u5236\u64cd\u4f5c\uff0c\u8bf7\u4f7f\u7528\u5feb\u6377\u952e(Ctrl+C)\u6765\u5b8c\u6210\u3002",pasteError:"\u60a8\u7684\u6d4f\u89c8\u5668\u5b89\u5168\u8bbe\u7f6e\u4e0d\u5141\u8bb8\u4f7f\u7528\u7c98\u8d34\u64cd\u4f5c\uff0c\u8bf7\u4f7f\u7528\u5feb\u6377\u952e(Ctrl+V)\u6765\u5b8c\u6210\u3002",ajaxLoading:"\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u7a0d\u5019 ...",uploadLoading:"\u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u5019 ...", uploadError:"\u4e0a\u4f20\u9519\u8bef","plainpaste.comment":"\u8bf7\u4f7f\u7528\u5feb\u6377\u952e(Ctrl+V)\u628a\u5185\u5bb9\u7c98\u8d34\u5230\u4e0b\u9762\u7684\u65b9\u6846\u91cc\u3002","wordpaste.comment":"\u8bf7\u4f7f\u7528\u5feb\u6377\u952e(Ctrl+V)\u628a\u5185\u5bb9\u7c98\u8d34\u5230\u4e0b\u9762\u7684\u65b9\u6846\u91cc\u3002","code.pleaseInput":"\u8bf7\u8f93\u5165\u7a0b\u5e8f\u4ee3\u7801\u3002","link.url":"URL","link.linkType":"\u6253\u5f00\u7c7b\u578b","link.newWindow":"\u65b0\u7a97\u53e3","link.selfWindow":"\u5f53\u524d\u7a97\u53e3", "flash.url":"URL","flash.width":"\u5bbd\u5ea6","flash.height":"\u9ad8\u5ea6","flash.upload":"\u4e0a\u4f20","flash.viewServer":"\u6587\u4ef6\u7a7a\u95f4","media.url":"URL","media.width":"\u5bbd\u5ea6","media.height":"\u9ad8\u5ea6","media.autostart":"\u81ea\u52a8\u64ad\u653e","media.upload":"\u4e0a\u4f20","media.viewServer":"\u6587\u4ef6\u7a7a\u95f4","image.remoteImage":"\u7f51\u7edc\u56fe\u7247","image.localImage":"\u672c\u5730\u4e0a\u4f20","image.remoteUrl":"\u56fe\u7247\u5730\u5740","image.localUrl":"\u4e0a\u4f20\u6587\u4ef6", "image.size":"\u56fe\u7247\u5927\u5c0f","image.width":"\u5bbd","image.height":"\u9ad8","image.resetSize":"\u91cd\u7f6e\u5927\u5c0f","image.align":"\u5bf9\u9f50\u65b9\u5f0f","image.defaultAlign":"\u9ed8\u8ba4\u65b9\u5f0f","image.leftAlign":"\u5de6\u5bf9\u9f50","image.rightAlign":"\u53f3\u5bf9\u9f50","image.imgTitle":"\u56fe\u7247\u8bf4\u660e","image.upload":"\u6d4f\u89c8...","image.viewServer":"\u56fe\u7247\u7a7a\u95f4","multiimage.uploadDesc":"\u5141\u8bb8\u7528\u6237\u540c\u65f6\u4e0a\u4f20<%=uploadLimit%>\u5f20\u56fe\u7247\uff0c\u5355\u5f20\u56fe\u7247\u5bb9\u91cf\u4e0d\u8d85\u8fc7<%=sizeLimit%>", "multiimage.startUpload":"\u5f00\u59cb\u4e0a\u4f20","multiimage.clearAll":"\u5168\u90e8\u6e05\u7a7a","multiimage.insertAll":"\u5168\u90e8\u63d2\u5165","multiimage.queueLimitExceeded":"\u6587\u4ef6\u6570\u91cf\u8d85\u8fc7\u9650\u5236\u3002","multiimage.fileExceedsSizeLimit":"\u6587\u4ef6\u5927\u5c0f\u8d85\u8fc7\u9650\u5236\u3002","multiimage.zeroByteFile":"\u65e0\u6cd5\u4e0a\u4f20\u7a7a\u6587\u4ef6\u3002","multiimage.invalidFiletype":"\u6587\u4ef6\u7c7b\u578b\u4e0d\u6b63\u786e\u3002","multiimage.unknownError":"\u53d1\u751f\u5f02\u5e38\uff0c\u65e0\u6cd5\u4e0a\u4f20\u3002", "multiimage.pending":"\u7b49\u5f85\u4e0a\u4f20","multiimage.uploadError":"\u4e0a\u4f20\u5931\u8d25","filemanager.emptyFolder":"\u7a7a\u6587\u4ef6\u5939","filemanager.moveup":"\u79fb\u5230\u4e0a\u4e00\u7ea7\u6587\u4ef6\u5939","filemanager.viewType":"\u663e\u793a\u65b9\u5f0f\uff1a","filemanager.viewImage":"\u7f29\u7565\u56fe","filemanager.listImage":"\u8be6\u7ec6\u4fe1\u606f","filemanager.orderType":"\u6392\u5e8f\u65b9\u5f0f\uff1a","filemanager.fileName":"\u540d\u79f0","filemanager.fileSize":"\u5927\u5c0f", "filemanager.fileType":"\u7c7b\u578b","insertfile.url":"URL","insertfile.title":"\u6587\u4ef6\u8bf4\u660e","insertfile.upload":"\u4e0a\u4f20","insertfile.viewServer":"\u6587\u4ef6\u7a7a\u95f4","table.cells":"\u5355\u5143\u683c\u6570","table.rows":"\u884c\u6570","table.cols":"\u5217\u6570","table.size":"\u5927\u5c0f","table.width":"\u5bbd\u5ea6","table.height":"\u9ad8\u5ea6","table.percent":"%","table.px":"px","table.space":"\u8fb9\u8ddd\u95f4\u8ddd","table.padding":"\u8fb9\u8ddd","table.spacing":"\u95f4\u8ddd", "table.align":"\u5bf9\u9f50\u65b9\u5f0f","table.textAlign":"\u6c34\u5e73\u5bf9\u9f50","table.verticalAlign":"\u5782\u76f4\u5bf9\u9f50","table.alignDefault":"\u9ed8\u8ba4","table.alignLeft":"\u5de6\u5bf9\u9f50","table.alignCenter":"\u5c45\u4e2d","table.alignRight":"\u53f3\u5bf9\u9f50","table.alignTop":"\u9876\u90e8","table.alignMiddle":"\u4e2d\u90e8","table.alignBottom":"\u5e95\u90e8","table.alignBaseline":"\u57fa\u7ebf","table.border":"\u8fb9\u6846","table.borderWidth":"\u8fb9\u6846","table.borderColor":"\u989c\u8272", "table.backgroundColor":"\u80cc\u666f\u989c\u8272","map.address":"\u5730\u5740: ","map.search":"\u641c\u7d22","baidumap.address":"\u5730\u5740: ","baidumap.search":"\u641c\u7d22","baidumap.insertDynamicMap":"\u63d2\u5165\u52a8\u6001\u5730\u56fe","anchor.name":"\u951a\u70b9\u540d\u79f0","formatblock.formatBlock":{h1:"\u6807\u9898 1",h2:"\u6807\u9898 2",h3:"\u6807\u9898 3",h4:"\u6807\u9898 4",p:"\u6b63 \u6587"},"fontname.fontName":{SimSun:"\u5b8b\u4f53",NSimSun:"\u65b0\u5b8b\u4f53",FangSong_GB2312:"\u4eff\u5b8b_GB2312", KaiTi_GB2312:"\u6977\u4f53_GB2312",SimHei:"\u9ed1\u4f53","Microsoft YaHei":"\u5fae\u8f6f\u96c5\u9ed1",Arial:"Arial","Arial Black":"Arial Black","Times New Roman":"Times New Roman","Courier New":"Courier New",Tahoma:"Tahoma",Verdana:"Verdana"},"lineheight.lineHeight":[{1:"\u5355\u500d\u884c\u8ddd"},{"1.5":"1.5\u500d\u884c\u8ddd"},{2:"2\u500d\u884c\u8ddd"},{"2.5":"2.5\u500d\u884c\u8ddd"},{3:"3\u500d\u884c\u8ddd"}],"template.selectTemplate":"\u53ef\u9009\u6a21\u677f","template.replaceContent":"\u66ff\u6362\u5f53\u524d\u5185\u5bb9", "template.fileList":{"1.html":"\u56fe\u7247\u548c\u6587\u5b57","2.html":"\u8868\u683c","3.html":"\u9879\u76ee\u7f16\u53f7"}},"zh_CN"); KindEditor.plugin("anchor",function(b){var d=this,f=d.lang("anchor.");d.plugin.anchor={edit:function(){var j=['
                                                    ','",'
                                                    '].join(""),j=d.createDialog({name:"anchor",width:300,title:d.lang("anchor"),body:j,yesBtn:{name:d.lang("yes"),click:function(){d.insertHtml('').hideDialog().focus()}}}).div, e=b('input[name="name"]',j);(j=d.plugin.getSelectedAnchor())&&e.val(unescape(j.attr("data-ke-name")));e[0].focus();e[0].select()},"delete":function(){d.plugin.getSelectedAnchor().remove()}};d.clickToolbar("anchor",d.plugin.anchor.edit)}); KindEditor.plugin("autoheight",function(b){function d(){var d=j.edit,f=d.doc.body;d.iframe.height(e);j.resize(null,Math.max((b.IE?f.scrollHeight:f.offsetHeight)+76,e))}function f(){e=b.removeUnit(j.height);j.edit.afterChange(d);var f=j.edit,m=f.doc.body;f.iframe[0].scroll="no";m.style.overflowY="hidden";d()}var j=this;if(j.autoHeightMode){var e;j.isCreated?f():j.afterCreate(f)}}); KindEditor.plugin("baidumap",function(b){var d=this,f=d.lang("baidumap."),j=b.undef(d.mapWidth,558),e=b.undef(d.mapHeight,360);d.clickToolbar("baidumap",function(){function h(){v=r[0].contentWindow;p=b.iframeDoc(r)}var m=['
                                                    ',f.address+' ','','','
                                                    ',' ",'
                                                    ','
                                                    ',"
                                                    "].join(""),m=d.createDialog({name:"baidumap",width:j+42,title:d.lang("baidumap"),body:m,yesBtn:{name:d.lang("yes"),click:function(){var b=v.map,f=b.getCenter(),f=f.lng+","+f.lat, b=b.getZoom(),b=[s[0].checked?d.pluginsPath+"baidumap/index.html":"http://api.map.baidu.com/staticimage","?center="+encodeURIComponent(f),"&zoom="+encodeURIComponent(b),"&width="+j,"&height="+e,"&markers="+encodeURIComponent(f),"&markerStyles="+encodeURIComponent("l,A")].join("");s[0].checked?d.insertHtml(''):d.exec("insertimage",b);d.hideDialog().focus()}},beforeRemove:function(){l.remove();p&&p.write(""); r.remove()}}),n=m.div,o=b('[name="address"]',n),l=b('[name="searchBtn"]',n),s=b('[name="insertDynamicMap"]',m.div),v,p,r=b('');r.bind("load",function(){r.unbind("load");b.IE?h():setTimeout(h,0)});b(".ke-map",n).replaceWith(r);l.click(function(){v.search(o.val())})})}); KindEditor.plugin("clearhtml",function(b){var d=this;d.clickToolbar("clearhtml",function(){d.focus();var f=d.html(),f=f.replace(/(]*>)([\s\S]*?)(<\/script>)/ig,""),f=f.replace(/(]*>)([\s\S]*?)(<\/style>)/ig,""),f=b.formatHtml(f,{a:["href","target"],embed:["src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess"],img:["src","width","height","border","alt","title",".width",".height"],table:["border"],"td,th":["rowspan","colspan"],"div,hr,br,tbody,tr,p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":[]}); d.html(f);d.cmd.selection(!0);d.addBookmark()})}); KindEditor.plugin("code",function(b){var d=this;d.clickToolbar("code",function(){var f=d.lang("code."),j=d.createDialog({name:"code",width:450,title:d.lang("code"),body:'
                                                    ',yesBtn:{name:d.lang("yes"), click:function(){var h=b(".ke-code-type",j.div).val(),m=e.val(),h='
                                                    \n'+b.escape(m)+"
                                                    ";b.trim(m)===""?(alert(f.pleaseInput),e[0].focus()):d.insertHtml(h).hideDialog().focus()}}}),e=b("textarea",j.div);e[0].focus()})}); KindEditor.plugin("emoticons",function(b){var d=this,f=d.emoticonsPath||d.pluginsPath+"emoticons/images/",j=d.allowPreviewEmoticons===void 0?!0:d.allowPreviewEmoticons,e=1;d.clickToolbar("emoticons",function(){function h(e,h,l){B?e.mouseover(function(){h>D?(B.css("left",0),B.css("right","")):(B.css("left",""),B.css("right",0));G.attr("src",f+l+".gif");b(this).addClass("ke-on")}):e.mouseover(function(){b(this).addClass("ke-on")});e.mouseout(function(){b(this).removeClass("ke-on")});e.click(function(b){d.insertHtml('').hideMenu().focus();b.stop()})}function m(d,e){var l=document.createElement("table");e.append(l);B&&(b(l).mouseover(function(){B.show("block")}),b(l).mouseout(function(){B.hide()}),A.push(b(l)));l.className="ke-table";l.cellPadding=0;l.cellSpacing=0;l.border=0;for(var n=(d-1)*r+p,o=0;o').css("background-position","-"+24*n+"px 0px").css("background-image", "url("+f+"static.gif)");q.append(u);A.push(q);n++}return l}function n(){b.each(A,function(){this.unbind()})}function o(b,d){b.click(function(b){n();C.parentNode.removeChild(C);u.remove();C=m(d,q);l(d);e=d;b.stop()})}function l(d){u=b('
                                                    ');q.append(u);for(var e=1;e<=z;e++){if(d!==e){var f=b('
                                                    ['+e+"]");o(f,e);u.append(f);A.push(f)}else u.append(b("@["+e+"]"));u.append(b("@ "))}}var s=5,v=9,p=0,r=s*v,z=Math.ceil(135/r),D=Math.floor(v/2),q=b('
                                                    '), A=[];d.createMenu({name:"emoticons",beforeRemove:function(){n()}}).div.append(q);var B,G;j&&(B=b('
                                                    ').css("right",0),G=b(''),q.append(B),B.append(G));var C=m(e,q),u;l(e)})}); KindEditor.plugin("filemanager",function(b){function d(b,d){d.is_dir?b.attr("title",d.filename):b.attr("title",d.filename+" ("+Math.ceil(d.filesize/1024)+"KB, "+d.datetime+")")}var f=this,j=b.undef(f.fileManagerJson,f.basePath+"php/file_manager_json.php"),e=f.pluginsPath+"filemanager/images/",h=f.lang("filemanager.");f.plugin.filemanagerDialog=function(m){function n(d,e,h){d="path="+d+"&order="+e+"&dir="+z;A.showLoading(f.lang("ajaxLoading"));b.ajax(b.addParam(j,d+"&"+(new Date).getTime()),function(b){A.hideLoading(); h(b)})}function o(d,e,f,h){var l=b.formatUrl(e.current_url+f.filename,"absolute"),o=encodeURIComponent(e.current_dir_path+f.filename+"/");f.is_dir?d.click(function(){n(o,u.val(),h)}):f.is_photo?d.click(function(){q.call(this,l,f.filename)}):d.click(function(){q.call(this,l,f.filename)});I.push(d)}function l(d,e){function f(){C.val()=="VIEW"?n(d.current_dir_path,u.val(),v):n(d.current_dir_path,u.val(),s)}b.each(I,function(){this.unbind()});G.unbind();C.unbind();u.unbind();d.current_dir_path&&G.click(function(){n(d.moveup_dir_path, u.val(),e)});C.change(f);u.change(f);B.html("")}function s(d){l(d,s);var f=document.createElement("table");f.className="ke-table";f.cellPadding=0;f.cellSpacing=0;f.border=0;B.append(f);for(var n=d.file_list,m=0,j=n.length;m'),q= b(p[0].insertCell(0)).addClass("ke-cell ke-name").append(q).append(document.createTextNode(" "+r.filename));!r.is_dir||r.has_file?(p.css("cursor","pointer"),q.attr("title",r.filename),o(q,d,r,s)):q.attr("title",h.emptyFolder);b(p[0].insertCell(1)).addClass("ke-cell ke-size").html(r.is_dir?"-":Math.ceil(r.filesize/1024)+"KB");b(p[0].insertCell(2)).addClass("ke-cell ke-datetime").html(r.datetime)}}function v(f){l(f,v);for(var n=f.file_list,m=0,s=n.length;m'); B.append(r);var p=b('
                                                    ').mouseover(function(){b(this).addClass("ke-on")}).mouseout(function(){b(this).removeClass("ke-on")});r.append(p);var q=f.current_url+j.filename,q=b(''+j.filename+'');!j.is_dir||j.has_file?(p.css("cursor","pointer"),d(p,j),o(p,f,j,v)):p.attr("title",h.emptyFolder);p.append(q);r.append('
                                                    '+ j.filename+"
                                                    ")}}var p=b.undef(m.width,650),r=b.undef(m.height,510),z=b.undef(m.dirName,""),D=b.undef(m.viewType,"VIEW").toUpperCase(),q=m.clickFn,m=['
                                                    ',' ',''+h.moveup+"",'
                                                    ',h.viewType+' ",h.orderType+'
                                                    '].join(""),A=f.createDialog({name:"filemanager",width:p,height:r,title:f.lang("filemanager"), body:m}),p=A.div,B=b(".ke-plugin-filemanager-body",p);b('[name="moveupImg"]',p);var G=b('[name="moveupLink"]',p);b('[name="viewServer"]',p);var C=b('[name="viewType"]',p),u=b('[name="orderType"]',p),I=[];C.val(D);n("",u.val(),D=="VIEW"?v:s);return A}}); KindEditor.plugin("flash",function(b){var d=this,f=d.lang("flash."),j=b.undef(d.allowFlashUpload,!0),e=b.undef(d.allowFileManager,!1),h=b.undef(d.formatUploadUrl,!0),m=b.undef(d.extraFileUploadParams,{}),n=b.undef(d.filePostName,"imgFile"),o=b.undef(d.uploadJson,d.basePath+"php/upload_json.php");d.plugin.flash={edit:function(){var l=['
                                                    ','",'  ', '  ','','','
                                                    ','",'
                                                    ','",'
                                                    '].join(""),s=d.createDialog({name:"flash",width:450,title:d.lang("flash"),body:l,yesBtn:{name:d.lang("yes"),click:function(){var e=b.trim(p.val()),f=r.val(),h=z.val();e=="http://"||b.invalidUrl(e)?(alert(d.lang("invalidUrl")),p[0].focus()):/^\d*$/.test(f)?/^\d*$/.test(h)?(e=b.mediaImg(d.themesPath+"common/blank.gif",{src:e,type:b.mediaType(".swf"),width:f, height:h,quality:"high"}),d.insertHtml(e).hideDialog().focus()):(alert(d.lang("invalidHeight")),z[0].focus()):(alert(d.lang("invalidWidth")),r[0].focus())}}}),v=s.div,p=b('[name="url"]',v),l=b('[name="viewServer"]',v),r=b('[name="width"]',v),z=b('[name="height"]',v);p.val("http://");if(j){var D=b.uploadbutton({button:b(".ke-upload-button",v)[0],fieldName:n,extraParams:m,url:b.addParam(o,"dir=flash"),afterUpload:function(e){s.hideLoading();if(e.error===0){var f=e.url;h&&(f=b.formatUrl(f,"absolute")); p.val(f);d.afterUpload&&d.afterUpload.call(d,f,e,"flash");alert(d.lang("uploadSuccess"))}else alert(e.message)},afterError:function(b){s.hideLoading();d.errorDialog(b)}});D.fileBox.change(function(){s.showLoading(d.lang("uploadLoading"));D.submit()})}else b(".ke-upload-button",v).hide();e?l.click(function(){d.loadPlugin("filemanager",function(){d.plugin.filemanagerDialog({viewType:"LIST",dirName:"flash",clickFn:function(e){d.dialogs.length>1&&(b('[name="url"]',v).val(e),d.afterSelectFile&&d.afterSelectFile.call(d, e),d.hideDialog())}})})}):l.hide();if(l=d.plugin.getSelectedFlash()){var q=b.mediaAttrs(l.attr("data-ke-tag"));p.val(q.src);r.val(b.removeUnit(l.css("width"))||q.width||0);z.val(b.removeUnit(l.css("height"))||q.height||0)}p[0].focus();p[0].select()},"delete":function(){d.plugin.getSelectedFlash().remove();d.addBookmark()}};d.clickToolbar("flash",d.plugin.flash.edit)}); KindEditor.plugin("image",function(b){var d=this,f=b.undef(d.allowImageUpload,!0),j=b.undef(d.allowImageRemote,!0),e=b.undef(d.formatUploadUrl,!0),h=b.undef(d.allowFileManager,!1),m=b.undef(d.uploadJson,d.basePath+"php/upload_json.php"),n=b.undef(d.imageTabIndex,0),o=d.pluginsPath+"image/images/",l=b.undef(d.extraFileUploadParams,{}),s=b.undef(d.filePostName,"imgFile"),v=b.undef(d.fillDescAfterUploadImage,!1),p=d.lang("image.");d.plugin.imageDialog=function(f){function n(b,d){M.val(b);K.val(d);W= b;S=d}b.undef(f.imageWidth,"");b.undef(f.imageHeight,"");b.undef(f.imageTitle,"");b.undef(f.imageAlign,"");var j=b.undef(f.showRemote,!0),q=b.undef(f.showLocal,!0),A=b.undef(f.tabIndex,0),B=f.clickFn,G="kindeditor_upload_iframe_"+(new Date).getTime(),C=[],u;for(u in l)C.push('');var C=['
                                                    "].join(""),I=d.createDialog({name:"image",width:q|| h?450:400,height:q&&j?300:250,title:d.lang("image"),body:C,yesBtn:{name:d.lang("yes"),click:function(){if(!I.isLoading)if(q&&j&&H&&H.selectedIndex===1||!j)U.fileBox.val()==""?alert(d.lang("pleaseSelectFile")):(I.showLoading(d.lang("uploadLoading")),U.submit(),qa.val(""));else{var e=b.trim(T.val()),f=M.val(),h=K.val(),l=Q.val(),n="";R.each(function(){if(this.checked)return n=this.value,!1});e=="http://"||b.invalidUrl(e)?(alert(d.lang("invalidUrl")),T[0].focus()):/^\d*$/.test(f)?/^\d*$/.test(h)?B.call(d, e,l,f,h,0,n):(alert(d.lang("invalidHeight")),K[0].focus()):(alert(d.lang("invalidWidth")),M[0].focus())}}},beforeRemove:function(){$.unbind();M.unbind();K.unbind();O.unbind()}}),E=I.div,T=b('[name="url"]',E),qa=b('[name="localUrl"]',E),$=b('[name="viewServer"]',E),M=b('.tab1 [name="width"]',E),K=b('.tab1 [name="height"]',E),O=b(".ke-refresh-btn",E),Q=b('.tab1 [name="title"]',E),R=b('.tab1 [name="align"]',E),H;j&&q?(H=b.tabs({src:b(".tabs",E),afterSelect:function(){}}),H.add({title:p.remoteImage,panel:b(".tab1", E)}),H.add({title:p.localImage,panel:b(".tab2",E)}),H.select(A)):j?b(".tab1",E).show():q&&b(".tab2",E).show();var U=b.uploadbutton({button:b(".ke-upload-button",E)[0],fieldName:s,form:b(".ke-form",E),target:G,width:60,afterUpload:function(f){I.hideLoading();if(f.error===0){var h=f.url;e&&(h=b.formatUrl(h,"absolute"));d.afterUpload&&d.afterUpload.call(d,h,f,"image");v?(b(".ke-dialog-row #remoteUrl",E).val(h),b(".ke-tabs-li",E)[0].click(),b(".ke-refresh-btn",E).click()):B.call(d,h,f.title,f.width,f.height, f.border,f.align)}else alert(f.message)},afterError:function(b){I.hideLoading();d.errorDialog(b)}});U.fileBox.change(function(){qa.val(U.fileBox.val())});h?$.click(function(){d.loadPlugin("filemanager",function(){d.plugin.filemanagerDialog({viewType:"VIEW",dirName:"image",clickFn:function(e){d.dialogs.length>1&&(b('[name="url"]',E).val(e),d.afterSelectFile&&d.afterSelectFile.call(d,e),d.hideDialog())}})})}):$.hide();var W=0,S=0;O.click(function(){var d=b('',document).css({position:"absolute", visibility:"hidden",top:0,left:"-1000px"});d.bind("load",function(){n(d.width(),d.height());d.remove()});b(document.body).append(d)});M.change(function(){W>0&&K.val(Math.round(S/W*parseInt(this.value,10)))});K.change(function(){S>0&&M.val(Math.round(W/S*parseInt(this.value,10)))});T.val(f.imageUrl);n(f.imageWidth,f.imageHeight);Q.val(f.imageTitle);R.each(function(){if(this.value===f.imageAlign)return this.checked=!0,!1});j&&A===0&&(T[0].focus(),T[0].select());return I};d.plugin.image={edit:function(){var b= d.plugin.getSelectedImage();d.plugin.imageDialog({imageUrl:b?b.attr("data-ke-src"):"http://",imageWidth:b?b.width():"",imageHeight:b?b.height():"",imageTitle:b?b.attr("title"):"",imageAlign:b?b.attr("align"):"",showRemote:j,showLocal:f,tabIndex:b?0:n,clickFn:function(e,f,h,l,n,o){b?(b.attr("src",e),b.attr("data-ke-src",e),b.attr("width",h),b.attr("height",l),b.attr("title",f),b.attr("align",o),b.attr("alt",f)):d.exec("insertimage",e,f,h,l,n,o);setTimeout(function(){d.hideDialog().focus()},0)}})}, "delete":function(){var b=d.plugin.getSelectedImage();b.parent().name=="a"&&(b=b.parent());b.remove();d.addBookmark()}};d.clickToolbar("image",d.plugin.image.edit)}); KindEditor.plugin("insertfile",function(b){var d=this,f=b.undef(d.allowFileUpload,!0),j=b.undef(d.allowFileManager,!1),e=b.undef(d.formatUploadUrl,!0),h=b.undef(d.uploadJson,d.basePath+"php/upload_json.php"),m=b.undef(d.extraFileUploadParams,{}),n=b.undef(d.filePostName,"imgFile"),o=d.lang("insertfile.");d.plugin.fileDialog=function(l){var s=b.undef(l.fileUrl,"http://"),v=b.undef(l.fileTitle,""),p=l.clickFn,l=['
                                                    ','",'  ','  ','','','
                                                    ','",'
                                                    '].join(""), r=d.createDialog({name:"insertfile",width:450,title:d.lang("insertfile"),body:l,yesBtn:{name:d.lang("yes"),click:function(){var e=b.trim(D.val()),f=q.val();e=="http://"||b.invalidUrl(e)?(alert(d.lang("invalidUrl")),D[0].focus()):(b.trim(f)===""&&(f=e),p.call(d,e,f))}}}),z=r.div,D=b('[name="url"]',z),l=b('[name="viewServer"]',z),q=b('[name="title"]',z);if(f){var A=b.uploadbutton({button:b(".ke-upload-button",z)[0],fieldName:n,url:b.addParam(h,"dir=file"),extraParams:m,afterUpload:function(f){r.hideLoading(); if(f.error===0){var h=f.url;e&&(h=b.formatUrl(h,"absolute"));D.val(h);d.afterUpload&&d.afterUpload.call(d,h,f,"insertfile");alert(d.lang("uploadSuccess"))}else alert(f.message)},afterError:function(b){r.hideLoading();d.errorDialog(b)}});A.fileBox.change(function(){r.showLoading(d.lang("uploadLoading"));A.submit()})}else b(".ke-upload-button",z).hide();j?l.click(function(){d.loadPlugin("filemanager",function(){d.plugin.filemanagerDialog({viewType:"LIST",dirName:"file",clickFn:function(e){d.dialogs.length> 1&&(b('[name="url"]',z).val(e),d.afterSelectFile&&d.afterSelectFile.call(d,e),d.hideDialog())}})})}):l.hide();D.val(s);q.val(v);D[0].focus();D[0].select()};d.clickToolbar("insertfile",function(){d.plugin.fileDialog({clickFn:function(b,e){d.insertHtml(''+e+"").hideDialog().focus()}})})}); KindEditor.plugin("lineheight",function(b){var d=this,f=d.lang("lineheight.");d.clickToolbar("lineheight",function(){var j="",e=d.cmd.commonNode({"*":".line-height"});e&&(j=e.css("line-height"));var h=d.createMenu({name:"lineheight",width:150});b.each(f.lineHeight,function(e,f){b.each(f,function(b,e){h.addItem({title:e,checked:j===b,click:function(){d.cmd.toggle('',{span:".line-height="+b});d.updateState();d.addBookmark();d.hideMenu()}})})})})}); KindEditor.plugin("link",function(b){var d=this;d.plugin.link={edit:function(){var f=d.lang("link."),j='
                                                    ',j=d.createDialog({name:"link",width:450,title:d.lang("link"), body:j,yesBtn:{name:d.lang("yes"),click:function(){var f=b.trim(e.val());f=="http://"||b.invalidUrl(f)?(alert(d.lang("invalidUrl")),e[0].focus()):d.exec("createlink",f,h.val()).hideDialog().focus()}}}).div,e=b('input[name="url"]',j),h=b('select[name="type"]',j);e.val("http://");h[0].options[0]=new Option(f.newWindow,"_blank");h[0].options[1]=new Option(f.selfWindow,"");d.cmd.selection();if(f=d.plugin.getSelectedLink())d.cmd.range.selectNode(f[0]),d.cmd.select(),e.val(f.attr("data-ke-src")),h.val(f.attr("target")); e[0].focus();e[0].select()},"delete":function(){d.exec("unlink",null)}};d.clickToolbar("link",d.plugin.link.edit)}); KindEditor.plugin("map",function(b){var d=this,f=d.lang("map.");d.clickToolbar("map",function(){function j(){n=l[0].contentWindow;o=b.iframeDoc(l)}var e=['
                                                    ',f.address+' ','','','
                                                    '].join(""), e=d.createDialog({name:"map",width:600,title:d.lang("map"),body:e,yesBtn:{name:d.lang("yes"),click:function(){var b=n.map,e=b.getCenter().lat()+","+b.getCenter().lng(),f=b.getZoom(),b=b.getMapTypeId(),h="http://maps.googleapis.com/maps/api/staticmap";h+="?center="+encodeURIComponent(e);h+="&zoom="+encodeURIComponent(f);h+="&size=558x360";h+="&maptype="+encodeURIComponent(b);h+="&markers="+encodeURIComponent(e);h+="&language="+d.langType;h+="&sensor=false";d.exec("insertimage",h).hideDialog().focus()}}, beforeRemove:function(){m.remove();o&&o.write("");l.remove()}}).div,h=b('[name="address"]',e),m=b('[name="searchBtn"]',e),n,o;['\n\n',''; }) .replace(/]*data-ke-noscript-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/ig, function(full, attr, code) { return '' + unescape(code) + ''; }) .replace(/(<[^>]*)data-ke-src="([^"]*)"([^>]*>)/ig, function(full, start, src, end) { full = full.replace(/(\s+(?:href|src)=")[^"]*(")/i, function($0, $1, $2) { return $1 + _unescape(src) + $2; }); full = full.replace(/\s+data-ke-src="[^"]*"/i, ''); return full; }) .replace(/(<[^>]+\s)data-ke-(on\w+="[^"]*"[^>]*>)/ig, function(full, start, end) { return start + end; }); }); self.beforeSetHtml(function(html) { if (_IE && _V <= 8) { html = html.replace(/]*>|<(select|button)[^>]*>[\s\S]*?<\/\1>/ig, function(full) { var attrs = _getAttrList(full); var styles = _getCssList(attrs.style || ''); if (styles.display == 'none') { return '
                                                    '; } return full; }); } return html.replace(/]*type="([^"]+)"[^>]*>(?:<\/embed>)?/ig, function(full) { var attrs = _getAttrList(full); attrs.src = _undef(attrs.src, ''); attrs.width = _undef(attrs.width, 0); attrs.height = _undef(attrs.height, 0); return _mediaImg(self.themesPath + 'common/blank.gif', attrs); }) .replace(/]*name="([^"]+)"[^>]*>(?:<\/a>)?/ig, function(full) { var attrs = _getAttrList(full); if (attrs.href !== undefined) { return full; } return ''; }) .replace(/]*)>([\s\S]*?)<\/script>/ig, function(full, attr, code) { return '
                                                    ' + escape(code) + '
                                                    '; }) .replace(/]*)>([\s\S]*?)<\/noscript>/ig, function(full, attr, code) { return '
                                                    ' + escape(code) + '
                                                    '; }) .replace(/(<[^>]*)(href|src)="([^"]*)"([^>]*>)/ig, function(full, start, key, src, end) { if (full.match(/\sdata-ke-src="[^"]*"/i)) { return full; } full = start + key + '="' + src + '"' + ' data-ke-src="' + _escape(src) + '"' + end; return full; }) .replace(/(<[^>]+\s)(on\w+="[^"]*"[^>]*>)/ig, function(full, start, end) { return start + 'data-ke-' + end; }) .replace(/]*\s+border="0"[^>]*>/ig, function(full) { if (full.indexOf('ke-zeroborder') >= 0) { return full; } return _addClassToTag(full, 'ke-zeroborder'); }); }); }); })(window); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.lang({ source : 'HTML代码', preview : '预览', undo : '后退(Ctrl+Z)', redo : '前进(Ctrl+Y)', cut : '剪切(Ctrl+X)', copy : '复制(Ctrl+C)', paste : '粘贴(Ctrl+V)', plainpaste : '粘贴为无格式文本', wordpaste : '从Word粘贴', selectall : '全选(Ctrl+A)', justifyleft : '左对齐', justifycenter : '居中', justifyright : '右对齐', justifyfull : '两端对齐', insertorderedlist : '编号', insertunorderedlist : '项目符号', indent : '增加缩进', outdent : '减少缩进', subscript : '下标', superscript : '上标', formatblock : '段落', fontname : '字体', fontsize : '文字大小', forecolor : '文字颜色', hilitecolor : '文字背景', bold : '粗体(Ctrl+B)', italic : '斜体(Ctrl+I)', underline : '下划线(Ctrl+U)', strikethrough : '删除线', removeformat : '删除格式', image : '图片', multiimage : '批量图片上传', flash : 'Flash', media : '视音频', table : '表格', tablecell : '单元格', hr : '插入横线', emoticons : '插入表情', link : '超级链接', unlink : '取消超级链接', fullscreen : '全屏显示', about : '关于', print : '打印(Ctrl+P)', filemanager : '文件空间', code : '插入程序代码', map : 'Google地图', baidumap : '百度地图', lineheight : '行距', clearhtml : '清理HTML代码', pagebreak : '插入分页符', quickformat : '一键排版', insertfile : '插入文件', template : '插入模板', anchor : '锚点', yes : '确定', no : '取消', close : '关闭', editImage : '图片属性', deleteImage : '删除图片', editFlash : 'Flash属性', deleteFlash : '删除Flash', editMedia : '视音频属性', deleteMedia : '删除视音频', editLink : '超级链接属性', deleteLink : '取消超级链接', editAnchor : '锚点属性', deleteAnchor : '删除锚点', tableprop : '表格属性', tablecellprop : '单元格属性', tableinsert : '插入表格', tabledelete : '删除表格', tablecolinsertleft : '左侧插入列', tablecolinsertright : '右侧插入列', tablerowinsertabove : '上方插入行', tablerowinsertbelow : '下方插入行', tablerowmerge : '向下合并单元格', tablecolmerge : '向右合并单元格', tablerowsplit : '拆分行', tablecolsplit : '拆分列', tablecoldelete : '删除列', tablerowdelete : '删除行', noColor : '无颜色', pleaseSelectFile : '请选择文件。', invalidImg : "请输入有效的URL地址。\n只允许jpg,gif,bmp,png格式。", invalidMedia : "请输入有效的URL地址。\n只允许swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。", invalidWidth : "宽度必须为数字。", invalidHeight : "高度必须为数字。", invalidBorder : "边框必须为数字。", invalidUrl : "请输入有效的URL地址。", invalidRows : '行数为必选项,只允许输入大于0的数字。', invalidCols : '列数为必选项,只允许输入大于0的数字。', invalidPadding : '边距必须为数字。', invalidSpacing : '间距必须为数字。', invalidJson : '服务器发生故障。', uploadSuccess : '上传成功。', cutError : '您的浏览器安全设置不允许使用剪切操作,请使用快捷键(Ctrl+X)来完成。', copyError : '您的浏览器安全设置不允许使用复制操作,请使用快捷键(Ctrl+C)来完成。', pasteError : '您的浏览器安全设置不允许使用粘贴操作,请使用快捷键(Ctrl+V)来完成。', ajaxLoading : '加载中,请稍候 ...', uploadLoading : '上传中,请稍候 ...', uploadError : '上传错误', 'plainpaste.comment' : '请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。', 'wordpaste.comment' : '请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。', 'code.pleaseInput' : '请输入程序代码。', 'link.url' : 'URL', 'link.linkType' : '打开类型', 'link.newWindow' : '新窗口', 'link.selfWindow' : '当前窗口', 'flash.url' : 'URL', 'flash.width' : '宽度', 'flash.height' : '高度', 'flash.upload' : '上传', 'flash.viewServer' : '文件空间', 'media.url' : 'URL', 'media.width' : '宽度', 'media.height' : '高度', 'media.autostart' : '自动播放', 'media.upload' : '上传', 'media.viewServer' : '文件空间', 'image.remoteImage' : '网络图片', 'image.localImage' : '本地上传', 'image.remoteUrl' : '图片地址', 'image.localUrl' : '上传文件', 'image.size' : '图片大小', 'image.width' : '宽', 'image.height' : '高', 'image.resetSize' : '重置大小', 'image.align' : '对齐方式', 'image.defaultAlign' : '默认方式', 'image.leftAlign' : '左对齐', 'image.rightAlign' : '右对齐', 'image.imgTitle' : '图片说明', 'image.upload' : '浏览...', 'image.viewServer' : '图片空间', 'multiimage.uploadDesc' : '允许用户同时上传<%=uploadLimit%>张图片,单张图片容量不超过<%=sizeLimit%>', 'multiimage.startUpload' : '开始上传', 'multiimage.clearAll' : '全部清空', 'multiimage.insertAll' : '全部插入', 'multiimage.queueLimitExceeded' : '文件数量超过限制。', 'multiimage.fileExceedsSizeLimit' : '文件大小超过限制。', 'multiimage.zeroByteFile' : '无法上传空文件。', 'multiimage.invalidFiletype' : '文件类型不正确。', 'multiimage.unknownError' : '发生异常,无法上传。', 'multiimage.pending' : '等待上传', 'multiimage.uploadError' : '上传失败', 'filemanager.emptyFolder' : '空文件夹', 'filemanager.moveup' : '移到上一级文件夹', 'filemanager.viewType' : '显示方式:', 'filemanager.viewImage' : '缩略图', 'filemanager.listImage' : '详细信息', 'filemanager.orderType' : '排序方式:', 'filemanager.fileName' : '名称', 'filemanager.fileSize' : '大小', 'filemanager.fileType' : '类型', 'insertfile.url' : 'URL', 'insertfile.title' : '文件说明', 'insertfile.upload' : '上传', 'insertfile.viewServer' : '文件空间', 'table.cells' : '单元格数', 'table.rows' : '行数', 'table.cols' : '列数', 'table.size' : '大小', 'table.width' : '宽度', 'table.height' : '高度', 'table.percent' : '%', 'table.px' : 'px', 'table.space' : '边距间距', 'table.padding' : '边距', 'table.spacing' : '间距', 'table.align' : '对齐方式', 'table.textAlign' : '水平对齐', 'table.verticalAlign' : '垂直对齐', 'table.alignDefault' : '默认', 'table.alignLeft' : '左对齐', 'table.alignCenter' : '居中', 'table.alignRight' : '右对齐', 'table.alignTop' : '顶部', 'table.alignMiddle' : '中部', 'table.alignBottom' : '底部', 'table.alignBaseline' : '基线', 'table.border' : '边框', 'table.borderWidth' : '边框', 'table.borderColor' : '颜色', 'table.backgroundColor' : '背景颜色', 'map.address' : '地址: ', 'map.search' : '搜索', 'baidumap.address' : '地址: ', 'baidumap.search' : '搜索', 'baidumap.insertDynamicMap' : '插入动态地图', 'anchor.name' : '锚点名称', 'formatblock.formatBlock' : { h1 : '标题 1', h2 : '标题 2', h3 : '标题 3', h4 : '标题 4', p : '正 文' }, 'fontname.fontName' : { 'SimSun' : '宋体', 'NSimSun' : '新宋体', 'FangSong_GB2312' : '仿宋_GB2312', 'KaiTi_GB2312' : '楷体_GB2312', 'SimHei' : '黑体', 'Microsoft YaHei' : '微软雅黑', 'Arial' : 'Arial', 'Arial Black' : 'Arial Black', 'Times New Roman' : 'Times New Roman', 'Courier New' : 'Courier New', 'Tahoma' : 'Tahoma', 'Verdana' : 'Verdana' }, 'lineheight.lineHeight' : [ {'1' : '单倍行距'}, {'1.5' : '1.5倍行距'}, {'2' : '2倍行距'}, {'2.5' : '2.5倍行距'}, {'3' : '3倍行距'} ], 'template.selectTemplate' : '可选模板', 'template.replaceContent' : '替换当前内容', 'template.fileList' : { '1.html' : '图片和文字', '2.html' : '表格', '3.html' : '项目编号' } }, 'zh_CN'); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('anchor', function(K) { var self = this, name = 'anchor', lang = self.lang(name + '.'); self.plugin.anchor = { edit : function() { var html = ['
                                                    ', '
                                                    ', '', '', '
                                                    ', '
                                                    '].join(''); var dialog = self.createDialog({ name : name, width : 300, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { self.insertHtml('').hideDialog().focus(); } } }); var div = dialog.div, nameBox = K('input[name="name"]', div); var img = self.plugin.getSelectedAnchor(); if (img) { nameBox.val(unescape(img.attr('data-ke-name'))); } nameBox[0].focus(); nameBox[0].select(); }, 'delete' : function() { self.plugin.getSelectedAnchor().remove(); } }; self.clickToolbar(name, self.plugin.anchor.edit); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('autoheight', function(K) { var self = this; if (!self.autoHeightMode) { return; } var minHeight; function hideScroll() { var edit = self.edit; var body = edit.doc.body; edit.iframe[0].scroll = 'no'; body.style.overflowY = 'hidden'; } function resetHeight() { var edit = self.edit; var body = edit.doc.body; edit.iframe.height(minHeight); self.resize(null, Math.max((K.IE ? body.scrollHeight : body.offsetHeight) + 76, minHeight)); } function init() { minHeight = K.removeUnit(self.height); self.edit.afterChange(resetHeight); hideScroll(); resetHeight(); } if (self.isCreated) { init(); } else { self.afterCreate(init); } }); /* * 如何实现真正的自动高度? * 修改编辑器高度之后,再次获取body内容高度时,最小值只会是当前iframe的设置高度,这样就导致高度只增不减。 * 所以每次获取body内容高度之前,先将iframe的高度重置为最小高度,这样就能获取body的实际高度。 * 由此就实现了真正的自动高度 * 测试:chrome、firefox、IE9、IE8 * */ /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ // Baidu Maps: http://dev.baidu.com/wiki/map/index.php?title=%E9%A6%96%E9%A1%B5 KindEditor.plugin('baidumap', function(K) { var self = this, name = 'baidumap', lang = self.lang(name + '.'); var mapWidth = K.undef(self.mapWidth, 558); var mapHeight = K.undef(self.mapHeight, 360); self.clickToolbar(name, function() { var html = ['
                                                    ', '
                                                    ', // left start '
                                                    ', lang.address + ' ', '', '', '', '
                                                    ', // right start '
                                                    ', ' ', '
                                                    ', '
                                                    ', '
                                                    ', '
                                                    ', '
                                                    '].join(''); var dialog = self.createDialog({ name : name, width : mapWidth + 42, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { var map = win.map; var centerObj = map.getCenter(); var center = centerObj.lng + ',' + centerObj.lat; var zoom = map.getZoom(); var url = [checkbox[0].checked ? self.pluginsPath + 'baidumap/index.html' : 'http://api.map.baidu.com/staticimage', '?center=' + encodeURIComponent(center), '&zoom=' + encodeURIComponent(zoom), '&width=' + mapWidth, '&height=' + mapHeight, '&markers=' + encodeURIComponent(center), '&markerStyles=' + encodeURIComponent('l,A')].join(''); if (checkbox[0].checked) { self.insertHtml(''); } else { self.exec('insertimage', url); } self.hideDialog().focus(); } }, beforeRemove : function() { searchBtn.remove(); if (doc) { doc.write(''); } iframe.remove(); } }); var div = dialog.div, addressBox = K('[name="address"]', div), searchBtn = K('[name="searchBtn"]', div), checkbox = K('[name="insertDynamicMap"]', dialog.div), win, doc; var iframe = K(''); function ready() { win = iframe[0].contentWindow; doc = K.iframeDoc(iframe); } iframe.bind('load', function() { iframe.unbind('load'); if (K.IE) { ready(); } else { setTimeout(ready, 0); } }); K('.ke-map', div).replaceWith(iframe); // search map searchBtn.click(function() { win.search(addressBox.val()); }); }); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('clearhtml', function(K) { var self = this, name = 'clearhtml'; self.clickToolbar(name, function() { self.focus(); var html = self.html(); html = html.replace(/(]*>)([\s\S]*?)(<\/script>)/ig, ''); html = html.replace(/(]*>)([\s\S]*?)(<\/style>)/ig, ''); html = K.formatHtml(html, { a : ['href', 'target'], embed : ['src', 'width', 'height', 'type', 'loop', 'autostart', 'quality', '.width', '.height', 'align', 'allowscriptaccess'], img : ['src', 'width', 'height', 'border', 'alt', 'title', '.width', '.height'], table : ['border'], 'td,th' : ['rowspan', 'colspan'], 'div,hr,br,tbody,tr,p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : [] }); self.html(html); self.cmd.selection(true); self.addBookmark(); }); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ // google code prettify: http://google-code-prettify.googlecode.com/ // http://google-code-prettify.googlecode.com/ KindEditor.plugin('code', function(K) { var self = this, name = 'code'; self.clickToolbar(name, function() { var lang = self.lang(name + '.'), html = ['
                                                    ', '
                                                    ', '', '
                                                    ', '', '
                                                    '].join(''), dialog = self.createDialog({ name : name, width : 450, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { var type = K('.ke-code-type', dialog.div).val(), code = textarea.val(), cls = type === '' ? '' : ' lang-' + type, html = '
                                                    \n' + K.escape(code) + '
                                                    '; if (K.trim(code) === '') { alert(lang.pleaseInput); textarea[0].focus(); return; } self.insertHtml(html).hideDialog().focus(); } } }), textarea = K('textarea', dialog.div); textarea[0].focus(); }); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('emoticons', function(K) { var self = this, name = 'emoticons', path = (self.emoticonsPath || self.pluginsPath + 'emoticons/images/'), allowPreview = self.allowPreviewEmoticons === undefined ? true : self.allowPreviewEmoticons, currentPageNum = 1; self.clickToolbar(name, function() { var rows = 5, cols = 9, total = 135, startNum = 0, cells = rows * cols, pages = Math.ceil(total / cells), colsHalf = Math.floor(cols / 2), wrapperDiv = K('
                                                    '), elements = [], menu = self.createMenu({ name : name, beforeRemove : function() { removeEvent(); } }); menu.div.append(wrapperDiv); var previewDiv, previewImg; if (allowPreview) { previewDiv = K('
                                                    ').css('right', 0); previewImg = K(''); wrapperDiv.append(previewDiv); previewDiv.append(previewImg); } function bindCellEvent(cell, j, num) { if (previewDiv) { cell.mouseover(function() { if (j > colsHalf) { previewDiv.css('left', 0); previewDiv.css('right', ''); } else { previewDiv.css('left', ''); previewDiv.css('right', 0); } previewImg.attr('src', path + num + '.gif'); K(this).addClass('ke-on'); }); } else { cell.mouseover(function() { K(this).addClass('ke-on'); }); } cell.mouseout(function() { K(this).removeClass('ke-on'); }); cell.click(function(e) { self.insertHtml('').hideMenu().focus(); e.stop(); }); } function createEmoticonsTable(pageNum, parentDiv) { var table = document.createElement('table'); parentDiv.append(table); if (previewDiv) { K(table).mouseover(function() { previewDiv.show('block'); }); K(table).mouseout(function() { previewDiv.hide(); }); elements.push(K(table)); } table.className = 'ke-table'; table.cellPadding = 0; table.cellSpacing = 0; table.border = 0; var num = (pageNum - 1) * cells + startNum; for (var i = 0; i < rows; i++) { var row = table.insertRow(i); for (var j = 0; j < cols; j++) { var cell = K(row.insertCell(j)); cell.addClass('ke-cell'); bindCellEvent(cell, j, num); var span = K('') .css('background-position', '-' + (24 * num) + 'px 0px') .css('background-image', 'url(' + path + 'static.gif)'); cell.append(span); elements.push(cell); num++; } } return table; } var table = createEmoticonsTable(currentPageNum, wrapperDiv); function removeEvent() { K.each(elements, function() { this.unbind(); }); } var pageDiv; function bindPageEvent(el, pageNum) { el.click(function(e) { removeEvent(); table.parentNode.removeChild(table); pageDiv.remove(); table = createEmoticonsTable(pageNum, wrapperDiv); createPageTable(pageNum); currentPageNum = pageNum; e.stop(); }); } function createPageTable(currentPageNum) { pageDiv = K('
                                                    '); wrapperDiv.append(pageDiv); for (var pageNum = 1; pageNum <= pages; pageNum++) { if (currentPageNum !== pageNum) { var a = K('
                                                    [' + pageNum + ']'); bindPageEvent(a, pageNum); pageDiv.append(a); elements.push(a); } else { pageDiv.append(K('@[' + pageNum + ']')); } pageDiv.append(K('@ ')); } } createPageTable(currentPageNum); }); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('filemanager', function(K) { var self = this, name = 'filemanager', fileManagerJson = K.undef(self.fileManagerJson, self.basePath + 'php/file_manager_json.php'), imgPath = self.pluginsPath + name + '/images/', lang = self.lang(name + '.'); function makeFileTitle(filename, filesize, datetime) { return filename + ' (' + Math.ceil(filesize / 1024) + 'KB, ' + datetime + ')'; } function bindTitle(el, data) { if (data.is_dir) { el.attr('title', data.filename); } else { el.attr('title', makeFileTitle(data.filename, data.filesize, data.datetime)); } } self.plugin.filemanagerDialog = function(options) { var width = K.undef(options.width, 650), height = K.undef(options.height, 510), dirName = K.undef(options.dirName, ''), viewType = K.undef(options.viewType, 'VIEW').toUpperCase(), // "LIST" or "VIEW" clickFn = options.clickFn; var html = [ '
                                                    ', // header start '
                                                    ', // left start '
                                                    ', ' ', '' + lang.moveup + '', '
                                                    ', // right start '
                                                    ', lang.viewType + ' ', lang.orderType + ' ', '
                                                    ', '
                                                    ', '
                                                    ', // body start '
                                                    ', '
                                                    ' ].join(''); var dialog = self.createDialog({ name : name, width : width, height : height, title : self.lang(name), body : html }), div = dialog.div, bodyDiv = K('.ke-plugin-filemanager-body', div), moveupImg = K('[name="moveupImg"]', div), moveupLink = K('[name="moveupLink"]', div), viewServerBtn = K('[name="viewServer"]', div), viewTypeBox = K('[name="viewType"]', div), orderTypeBox = K('[name="orderType"]', div); function reloadPage(path, order, func) { var param = 'path=' + path + '&order=' + order + '&dir=' + dirName; dialog.showLoading(self.lang('ajaxLoading')); K.ajax(K.addParam(fileManagerJson, param + '&' + new Date().getTime()), function(data) { dialog.hideLoading(); func(data); }); } var elList = []; function bindEvent(el, result, data, createFunc) { var fileUrl = K.formatUrl(result.current_url + data.filename, 'absolute'), dirPath = encodeURIComponent(result.current_dir_path + data.filename + '/'); if (data.is_dir) { el.click(function(e) { reloadPage(dirPath, orderTypeBox.val(), createFunc); }); } else if (data.is_photo) { el.click(function(e) { clickFn.call(this, fileUrl, data.filename); }); } else { el.click(function(e) { clickFn.call(this, fileUrl, data.filename); }); } elList.push(el); } function createCommon(result, createFunc) { // remove events K.each(elList, function() { this.unbind(); }); moveupLink.unbind(); viewTypeBox.unbind(); orderTypeBox.unbind(); // add events if (result.current_dir_path) { moveupLink.click(function(e) { reloadPage(result.moveup_dir_path, orderTypeBox.val(), createFunc); }); } function changeFunc() { if (viewTypeBox.val() == 'VIEW') { reloadPage(result.current_dir_path, orderTypeBox.val(), createView); } else { reloadPage(result.current_dir_path, orderTypeBox.val(), createList); } } viewTypeBox.change(changeFunc); orderTypeBox.change(changeFunc); bodyDiv.html(''); } function createList(result) { createCommon(result, createList); var table = document.createElement('table'); table.className = 'ke-table'; table.cellPadding = 0; table.cellSpacing = 0; table.border = 0; bodyDiv.append(table); var fileList = result.file_list; for (var i = 0, len = fileList.length; i < len; i++) { var data = fileList[i], row = K(table.insertRow(i)); row.mouseover(function(e) { K(this).addClass('ke-on'); }) .mouseout(function(e) { K(this).removeClass('ke-on'); }); var iconUrl = imgPath + (data.is_dir ? 'folder-16.gif' : 'file-16.gif'), img = K('' + data.filename + ''), cell0 = K(row[0].insertCell(0)).addClass('ke-cell ke-name').append(img).append(document.createTextNode(' ' + data.filename)); if (!data.is_dir || data.has_file) { row.css('cursor', 'pointer'); cell0.attr('title', data.filename); bindEvent(cell0, result, data, createList); } else { cell0.attr('title', lang.emptyFolder); } K(row[0].insertCell(1)).addClass('ke-cell ke-size').html(data.is_dir ? '-' : Math.ceil(data.filesize / 1024) + 'KB'); K(row[0].insertCell(2)).addClass('ke-cell ke-datetime').html(data.datetime); } } function createView(result) { createCommon(result, createView); var fileList = result.file_list; for (var i = 0, len = fileList.length; i < len; i++) { var data = fileList[i], div = K('
                                                    '); bodyDiv.append(div); var photoDiv = K('
                                                    ') .mouseover(function(e) { K(this).addClass('ke-on'); }) .mouseout(function(e) { K(this).removeClass('ke-on'); }); div.append(photoDiv); var fileUrl = result.current_url + data.filename, iconUrl = data.is_dir ? imgPath + 'folder-64.gif' : (data.is_photo ? fileUrl : imgPath + 'file-64.gif'); var img = K('' + data.filename + ''); if (!data.is_dir || data.has_file) { photoDiv.css('cursor', 'pointer'); bindTitle(photoDiv, data); bindEvent(photoDiv, result, data, createView); } else { photoDiv.attr('title', lang.emptyFolder); } photoDiv.append(img); div.append('
                                                    ' + data.filename + '
                                                    '); } } viewTypeBox.val(viewType); reloadPage('', orderTypeBox.val(), viewType == 'VIEW' ? createView : createList); return dialog; } }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('flash', function(K) { var self = this, name = 'flash', lang = self.lang(name + '.'), allowFlashUpload = K.undef(self.allowFlashUpload, true), allowFileManager = K.undef(self.allowFileManager, false), formatUploadUrl = K.undef(self.formatUploadUrl, true), extraParams = K.undef(self.extraFileUploadParams, {}), filePostName = K.undef(self.filePostName, 'imgFile'), uploadJson = K.undef(self.uploadJson, self.basePath + 'php/upload_json.php'); self.plugin.flash = { edit : function() { var html = [ '
                                                    ', //url '
                                                    ', '', '  ', '  ', '', '', '', '
                                                    ', //width '
                                                    ', '', ' ', '
                                                    ', //height '
                                                    ', '', ' ', '
                                                    ', '
                                                    ' ].join(''); var dialog = self.createDialog({ name : name, width : 450, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { var url = K.trim(urlBox.val()), width = widthBox.val(), height = heightBox.val(); if (url == 'http://' || K.invalidUrl(url)) { alert(self.lang('invalidUrl')); urlBox[0].focus(); return; } if (!/^\d*$/.test(width)) { alert(self.lang('invalidWidth')); widthBox[0].focus(); return; } if (!/^\d*$/.test(height)) { alert(self.lang('invalidHeight')); heightBox[0].focus(); return; } var html = K.mediaImg(self.themesPath + 'common/blank.gif', { src : url, type : K.mediaType('.swf'), width : width, height : height, quality : 'high' }); self.insertHtml(html).hideDialog().focus(); } } }), div = dialog.div, urlBox = K('[name="url"]', div), viewServerBtn = K('[name="viewServer"]', div), widthBox = K('[name="width"]', div), heightBox = K('[name="height"]', div); urlBox.val('http://'); if (allowFlashUpload) { var uploadbutton = K.uploadbutton({ button : K('.ke-upload-button', div)[0], fieldName : filePostName, extraParams : extraParams, url : K.addParam(uploadJson, 'dir=flash'), afterUpload : function(data) { dialog.hideLoading(); if (data.error === 0) { var url = data.url; if (formatUploadUrl) { url = K.formatUrl(url, 'absolute'); } urlBox.val(url); if (self.afterUpload) { self.afterUpload.call(self, url, data, name); } alert(self.lang('uploadSuccess')); } else { alert(data.message); } }, afterError : function(html) { dialog.hideLoading(); self.errorDialog(html); } }); uploadbutton.fileBox.change(function(e) { dialog.showLoading(self.lang('uploadLoading')); uploadbutton.submit(); }); } else { K('.ke-upload-button', div).hide(); } if (allowFileManager) { viewServerBtn.click(function(e) { self.loadPlugin('filemanager', function() { self.plugin.filemanagerDialog({ viewType : 'LIST', dirName : 'flash', clickFn : function(url, title) { if (self.dialogs.length > 1) { K('[name="url"]', div).val(url); if (self.afterSelectFile) { self.afterSelectFile.call(self, url); } self.hideDialog(); } } }); }); }); } else { viewServerBtn.hide(); } var img = self.plugin.getSelectedFlash(); if (img) { var attrs = K.mediaAttrs(img.attr('data-ke-tag')); urlBox.val(attrs.src); widthBox.val(K.removeUnit(img.css('width')) || attrs.width || 0); heightBox.val(K.removeUnit(img.css('height')) || attrs.height || 0); } urlBox[0].focus(); urlBox[0].select(); }, 'delete' : function() { self.plugin.getSelectedFlash().remove(); // [IE] 删除图片后立即点击图片按钮出错 self.addBookmark(); } }; self.clickToolbar(name, self.plugin.flash.edit); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('image', function(K) { var self = this, name = 'image', allowImageUpload = K.undef(self.allowImageUpload, true), allowImageRemote = K.undef(self.allowImageRemote, true), formatUploadUrl = K.undef(self.formatUploadUrl, true), allowFileManager = K.undef(self.allowFileManager, false), uploadJson = K.undef(self.uploadJson, self.basePath + 'php/upload_json.php'), imageTabIndex = K.undef(self.imageTabIndex, 0), imgPath = self.pluginsPath + 'image/images/', extraParams = K.undef(self.extraFileUploadParams, {}), filePostName = K.undef(self.filePostName, 'imgFile'), fillDescAfterUploadImage = K.undef(self.fillDescAfterUploadImage, false), lang = self.lang(name + '.'); self.plugin.imageDialog = function(options) { var imageUrl = options.imageUrl, imageWidth = K.undef(options.imageWidth, ''), imageHeight = K.undef(options.imageHeight, ''), imageTitle = K.undef(options.imageTitle, ''), imageAlign = K.undef(options.imageAlign, ''), showRemote = K.undef(options.showRemote, true), showLocal = K.undef(options.showLocal, true), tabIndex = K.undef(options.tabIndex, 0), clickFn = options.clickFn; var target = 'kindeditor_upload_iframe_' + new Date().getTime(); var hiddenElements = []; for(var k in extraParams){ hiddenElements.push(''); } var html = [ '
                                                    ', //tabs '
                                                    ', //remote image - start '', //remote image - end //local upload - start '', //local upload - end '
                                                    ' ].join(''); var dialogWidth = showLocal || allowFileManager ? 450 : 400, dialogHeight = showLocal && showRemote ? 300 : 250; var dialog = self.createDialog({ name : name, width : dialogWidth, height : dialogHeight, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { // Bugfix: http://code.google.com/p/kindeditor/issues/detail?id=319 if (dialog.isLoading) { return; } // insert local image if (showLocal && showRemote && tabs && tabs.selectedIndex === 1 || !showRemote) { if (uploadbutton.fileBox.val() == '') { alert(self.lang('pleaseSelectFile')); return; } dialog.showLoading(self.lang('uploadLoading')); uploadbutton.submit(); localUrlBox.val(''); return; } // insert remote image var url = K.trim(urlBox.val()), width = widthBox.val(), height = heightBox.val(), title = titleBox.val(), align = ''; alignBox.each(function() { if (this.checked) { align = this.value; return false; } }); if (url == 'http://' || K.invalidUrl(url)) { alert(self.lang('invalidUrl')); urlBox[0].focus(); return; } if (!/^\d*$/.test(width)) { alert(self.lang('invalidWidth')); widthBox[0].focus(); return; } if (!/^\d*$/.test(height)) { alert(self.lang('invalidHeight')); heightBox[0].focus(); return; } clickFn.call(self, url, title, width, height, 0, align); } }, beforeRemove : function() { viewServerBtn.unbind(); widthBox.unbind(); heightBox.unbind(); refreshBtn.unbind(); } }), div = dialog.div; var urlBox = K('[name="url"]', div), localUrlBox = K('[name="localUrl"]', div), viewServerBtn = K('[name="viewServer"]', div), widthBox = K('.tab1 [name="width"]', div), heightBox = K('.tab1 [name="height"]', div), refreshBtn = K('.ke-refresh-btn', div), titleBox = K('.tab1 [name="title"]', div), alignBox = K('.tab1 [name="align"]', div); var tabs; if (showRemote && showLocal) { tabs = K.tabs({ src : K('.tabs', div), afterSelect : function(i) {} }); tabs.add({ title : lang.remoteImage, panel : K('.tab1', div) }); tabs.add({ title : lang.localImage, panel : K('.tab2', div) }); tabs.select(tabIndex); } else if (showRemote) { K('.tab1', div).show(); } else if (showLocal) { K('.tab2', div).show(); } var uploadbutton = K.uploadbutton({ button : K('.ke-upload-button', div)[0], fieldName : filePostName, form : K('.ke-form', div), target : target, width: 60, afterUpload : function(data) { dialog.hideLoading(); if (data.error === 0) { var url = data.url; if (formatUploadUrl) { url = K.formatUrl(url, 'absolute'); } if (self.afterUpload) { self.afterUpload.call(self, url, data, name); } if (!fillDescAfterUploadImage) { clickFn.call(self, url, data.title, data.width, data.height, data.border, data.align); } else { K(".ke-dialog-row #remoteUrl", div).val(url); K(".ke-tabs-li", div)[0].click(); K(".ke-refresh-btn", div).click(); } } else { alert(data.message); } }, afterError : function(html) { dialog.hideLoading(); self.errorDialog(html); } }); uploadbutton.fileBox.change(function(e) { localUrlBox.val(uploadbutton.fileBox.val()); }); if (allowFileManager) { viewServerBtn.click(function(e) { self.loadPlugin('filemanager', function() { self.plugin.filemanagerDialog({ viewType : 'VIEW', dirName : 'image', clickFn : function(url, title) { if (self.dialogs.length > 1) { K('[name="url"]', div).val(url); if (self.afterSelectFile) { self.afterSelectFile.call(self, url); } self.hideDialog(); } } }); }); }); } else { viewServerBtn.hide(); } var originalWidth = 0, originalHeight = 0; function setSize(width, height) { widthBox.val(width); heightBox.val(height); originalWidth = width; originalHeight = height; } refreshBtn.click(function(e) { var tempImg = K('', document).css({ position : 'absolute', visibility : 'hidden', top : 0, left : '-1000px' }); tempImg.bind('load', function() { setSize(tempImg.width(), tempImg.height()); tempImg.remove(); }); K(document.body).append(tempImg); }); widthBox.change(function(e) { if (originalWidth > 0) { heightBox.val(Math.round(originalHeight / originalWidth * parseInt(this.value, 10))); } }); heightBox.change(function(e) { if (originalHeight > 0) { widthBox.val(Math.round(originalWidth / originalHeight * parseInt(this.value, 10))); } }); urlBox.val(options.imageUrl); setSize(options.imageWidth, options.imageHeight); titleBox.val(options.imageTitle); alignBox.each(function() { if (this.value === options.imageAlign) { this.checked = true; return false; } }); if (showRemote && tabIndex === 0) { urlBox[0].focus(); urlBox[0].select(); } return dialog; }; self.plugin.image = { edit : function() { var img = self.plugin.getSelectedImage(); self.plugin.imageDialog({ imageUrl : img ? img.attr('data-ke-src') : 'http://', imageWidth : img ? img.width() : '', imageHeight : img ? img.height() : '', imageTitle : img ? img.attr('title') : '', imageAlign : img ? img.attr('align') : '', showRemote : allowImageRemote, showLocal : allowImageUpload, tabIndex: img ? 0 : imageTabIndex, clickFn : function(url, title, width, height, border, align) { if (img) { img.attr('src', url); img.attr('data-ke-src', url); img.attr('width', width); img.attr('height', height); img.attr('title', title); img.attr('align', align); img.attr('alt', title); } else { self.exec('insertimage', url, title, width, height, border, align); } // Bugfix: [Firefox] 上传图片后,总是出现正在加载的样式,需要延迟执行hideDialog setTimeout(function() { self.hideDialog().focus(); }, 0); } }); }, 'delete' : function() { var target = self.plugin.getSelectedImage(); if (target.parent().name == 'a') { target = target.parent(); } target.remove(); // [IE] 删除图片后立即点击图片按钮出错 self.addBookmark(); } }; self.clickToolbar(name, self.plugin.image.edit); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('insertfile', function(K) { var self = this, name = 'insertfile', allowFileUpload = K.undef(self.allowFileUpload, true), allowFileManager = K.undef(self.allowFileManager, false), formatUploadUrl = K.undef(self.formatUploadUrl, true), uploadJson = K.undef(self.uploadJson, self.basePath + 'php/upload_json.php'), extraParams = K.undef(self.extraFileUploadParams, {}), filePostName = K.undef(self.filePostName, 'imgFile'), lang = self.lang(name + '.'); self.plugin.fileDialog = function(options) { var fileUrl = K.undef(options.fileUrl, 'http://'), fileTitle = K.undef(options.fileTitle, ''), clickFn = options.clickFn; var html = [ '
                                                    ', '
                                                    ', '', '  ', '  ', '', '', '', '
                                                    ', //title '
                                                    ', '', '
                                                    ', '
                                                    ', //form end '', '' ].join(''); var dialog = self.createDialog({ name : name, width : 450, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { var url = K.trim(urlBox.val()), title = titleBox.val(); if (url == 'http://' || K.invalidUrl(url)) { alert(self.lang('invalidUrl')); urlBox[0].focus(); return; } if (K.trim(title) === '') { title = url; } clickFn.call(self, url, title); } } }), div = dialog.div; var urlBox = K('[name="url"]', div), viewServerBtn = K('[name="viewServer"]', div), titleBox = K('[name="title"]', div); if (allowFileUpload) { var uploadbutton = K.uploadbutton({ button : K('.ke-upload-button', div)[0], fieldName : filePostName, url : K.addParam(uploadJson, 'dir=file'), extraParams : extraParams, afterUpload : function(data) { dialog.hideLoading(); if (data.error === 0) { var url = data.url; if (formatUploadUrl) { url = K.formatUrl(url, 'absolute'); } urlBox.val(url); if (self.afterUpload) { self.afterUpload.call(self, url, data, name); } alert(self.lang('uploadSuccess')); } else { alert(data.message); } }, afterError : function(html) { dialog.hideLoading(); self.errorDialog(html); } }); uploadbutton.fileBox.change(function(e) { dialog.showLoading(self.lang('uploadLoading')); uploadbutton.submit(); }); } else { K('.ke-upload-button', div).hide(); } if (allowFileManager) { viewServerBtn.click(function(e) { self.loadPlugin('filemanager', function() { self.plugin.filemanagerDialog({ viewType : 'LIST', dirName : 'file', clickFn : function(url, title) { if (self.dialogs.length > 1) { K('[name="url"]', div).val(url); if (self.afterSelectFile) { self.afterSelectFile.call(self, url); } self.hideDialog(); } } }); }); }); } else { viewServerBtn.hide(); } urlBox.val(fileUrl); titleBox.val(fileTitle); urlBox[0].focus(); urlBox[0].select(); }; self.clickToolbar(name, function() { self.plugin.fileDialog({ clickFn : function(url, title) { var html = '' + title + ''; self.insertHtml(html).hideDialog().focus(); } }); }); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('lineheight', function(K) { var self = this, name = 'lineheight', lang = self.lang(name + '.'); self.clickToolbar(name, function() { var curVal = '', commonNode = self.cmd.commonNode({'*' : '.line-height'}); if (commonNode) { curVal = commonNode.css('line-height'); } var menu = self.createMenu({ name : name, width : 150 }); K.each(lang.lineHeight, function(i, row) { K.each(row, function(key, val) { menu.addItem({ title : val, checked : curVal === key, click : function() { self.cmd.toggle('', { span : '.line-height=' + key }); self.updateState(); self.addBookmark(); self.hideMenu(); } }); }); }); }); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('link', function(K) { var self = this, name = 'link'; self.plugin.link = { edit : function() { var lang = self.lang(name + '.'), html = '
                                                    ' + //url '
                                                    ' + '' + '
                                                    ' + //type '
                                                    ' + '' + '' + '
                                                    ' + '
                                                    ', dialog = self.createDialog({ name : name, width : 450, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { var url = K.trim(urlBox.val()); if (url == 'http://' || K.invalidUrl(url)) { alert(self.lang('invalidUrl')); urlBox[0].focus(); return; } self.exec('createlink', url, typeBox.val()).hideDialog().focus(); } } }), div = dialog.div, urlBox = K('input[name="url"]', div), typeBox = K('select[name="type"]', div); urlBox.val('http://'); typeBox[0].options[0] = new Option(lang.newWindow, '_blank'); typeBox[0].options[1] = new Option(lang.selfWindow, ''); self.cmd.selection(); var a = self.plugin.getSelectedLink(); if (a) { self.cmd.range.selectNode(a[0]); self.cmd.select(); urlBox.val(a.attr('data-ke-src')); typeBox.val(a.attr('target')); } urlBox[0].focus(); urlBox[0].select(); }, 'delete' : function() { self.exec('unlink', null); } }; self.clickToolbar(name, self.plugin.link.edit); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ // Google Maps: http://code.google.com/apis/maps/index.html KindEditor.plugin('map', function(K) { var self = this, name = 'map', lang = self.lang(name + '.'); self.clickToolbar(name, function() { var html = ['
                                                    ', '
                                                    ', lang.address + ' ', '', '', '', '
                                                    ', '
                                                    ', '
                                                    '].join(''); var dialog = self.createDialog({ name : name, width : 600, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { var geocoder = win.geocoder, map = win.map, center = map.getCenter().lat() + ',' + map.getCenter().lng(), zoom = map.getZoom(), maptype = map.getMapTypeId(), url = 'http://maps.googleapis.com/maps/api/staticmap'; url += '?center=' + encodeURIComponent(center); url += '&zoom=' + encodeURIComponent(zoom); url += '&size=558x360'; url += '&maptype=' + encodeURIComponent(maptype); url += '&markers=' + encodeURIComponent(center); url += '&language=' + self.langType; url += '&sensor=false'; self.exec('insertimage', url).hideDialog().focus(); } }, beforeRemove : function() { searchBtn.remove(); if (doc) { doc.write(''); } iframe.remove(); } }); var div = dialog.div, addressBox = K('[name="address"]', div), searchBtn = K('[name="searchBtn"]', div), win, doc; var iframeHtml = ['', '', '', '', '', '', '', '
                                                    ', ''].join('\n'); // TODO:用doc.write(iframeHtml)方式加载时,在IE6上第一次加载报错,暂时使用src方式 var iframe = K(''); function ready() { win = iframe[0].contentWindow; doc = K.iframeDoc(iframe); //doc.open(); //doc.write(iframeHtml); //doc.close(); } iframe.bind('load', function() { iframe.unbind('load'); if (K.IE) { ready(); } else { setTimeout(ready, 0); } }); K('.ke-map', div).replaceWith(iframe); // search map searchBtn.click(function() { win.search(addressBox.val()); }); }); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('media', function(K) { var self = this, name = 'media', lang = self.lang(name + '.'), allowMediaUpload = K.undef(self.allowMediaUpload, true), allowFileManager = K.undef(self.allowFileManager, false), formatUploadUrl = K.undef(self.formatUploadUrl, true), extraParams = K.undef(self.extraFileUploadParams, {}), filePostName = K.undef(self.filePostName, 'imgFile'), uploadJson = K.undef(self.uploadJson, self.basePath + 'php/upload_json.php'); self.plugin.media = { edit : function() { var html = [ '
                                                    ', //url '
                                                    ', '', '  ', '  ', '', '', '', '
                                                    ', //width '
                                                    ', '', '', '
                                                    ', //height '
                                                    ', '', '', '
                                                    ', //autostart '
                                                    ', '', ' ', '
                                                    ', '
                                                    ' ].join(''); var dialog = self.createDialog({ name : name, width : 450, height : 230, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { var url = K.trim(urlBox.val()), width = widthBox.val(), height = heightBox.val(); if (url == 'http://' || K.invalidUrl(url)) { alert(self.lang('invalidUrl')); urlBox[0].focus(); return; } if (!/^\d*$/.test(width)) { alert(self.lang('invalidWidth')); widthBox[0].focus(); return; } if (!/^\d*$/.test(height)) { alert(self.lang('invalidHeight')); heightBox[0].focus(); return; } var html = K.mediaImg(self.themesPath + 'common/blank.gif', { src : url, type : K.mediaType(url), width : width, height : height, autostart : autostartBox[0].checked ? 'true' : 'false', loop : 'true' }); self.insertHtml(html).hideDialog().focus(); } } }), div = dialog.div, urlBox = K('[name="url"]', div), viewServerBtn = K('[name="viewServer"]', div), widthBox = K('[name="width"]', div), heightBox = K('[name="height"]', div), autostartBox = K('[name="autostart"]', div); urlBox.val('http://'); if (allowMediaUpload) { var uploadbutton = K.uploadbutton({ button : K('.ke-upload-button', div)[0], fieldName : filePostName, extraParams : extraParams, url : K.addParam(uploadJson, 'dir=media'), afterUpload : function(data) { dialog.hideLoading(); if (data.error === 0) { var url = data.url; if (formatUploadUrl) { url = K.formatUrl(url, 'absolute'); } urlBox.val(url); if (self.afterUpload) { self.afterUpload.call(self, url, data, name); } alert(self.lang('uploadSuccess')); } else { alert(data.message); } }, afterError : function(html) { dialog.hideLoading(); self.errorDialog(html); } }); uploadbutton.fileBox.change(function(e) { dialog.showLoading(self.lang('uploadLoading')); uploadbutton.submit(); }); } else { K('.ke-upload-button', div).hide(); } if (allowFileManager) { viewServerBtn.click(function(e) { self.loadPlugin('filemanager', function() { self.plugin.filemanagerDialog({ viewType : 'LIST', dirName : 'media', clickFn : function(url, title) { if (self.dialogs.length > 1) { K('[name="url"]', div).val(url); if (self.afterSelectFile) { self.afterSelectFile.call(self, url); } self.hideDialog(); } } }); }); }); } else { viewServerBtn.hide(); } var img = self.plugin.getSelectedMedia(); if (img) { var attrs = K.mediaAttrs(img.attr('data-ke-tag')); urlBox.val(attrs.src); widthBox.val(K.removeUnit(img.css('width')) || attrs.width || 0); heightBox.val(K.removeUnit(img.css('height')) || attrs.height || 0); autostartBox[0].checked = (attrs.autostart === 'true'); } urlBox[0].focus(); urlBox[0].select(); }, 'delete' : function() { self.plugin.getSelectedMedia().remove(); // [IE] 删除图片后立即点击图片按钮出错 self.addBookmark(); } }; self.clickToolbar(name, self.plugin.media.edit); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ (function(K) { function KSWFUpload(options) { this.init(options); } K.extend(KSWFUpload, { init : function(options) { var self = this; options.afterError = options.afterError || function(str) { alert(str); }; self.options = options; self.progressbars = {}; // template self.div = K(options.container).html([ '
                                                    ', '
                                                    ', '
                                                    ', '', '
                                                    ', '
                                                    ' + options.uploadDesc + '
                                                    ', '', '', '', '
                                                    ', '
                                                    ', '
                                                    ' ].join('')); self.bodyDiv = K('.ke-swfupload-body', self.div); function showError(itemDiv, msg) { K('.ke-status > div', itemDiv).hide(); K('.ke-message', itemDiv).addClass('ke-error').show().html(K.escape(msg)); } var settings = { debug : false, upload_url : options.uploadUrl, flash_url : options.flashUrl, file_post_name : options.filePostName, button_placeholder : K('.ke-swfupload-button > input', self.div)[0], button_image_url: options.buttonImageUrl, button_width: options.buttonWidth, button_height: options.buttonHeight, button_cursor : SWFUpload.CURSOR.HAND, file_types : options.fileTypes, file_types_description : options.fileTypesDesc, file_upload_limit : options.fileUploadLimit, file_size_limit : options.fileSizeLimit, post_params : options.postParams, file_queued_handler : function(file) { file.url = self.options.fileIconUrl; self.appendFile(file); }, file_queue_error_handler : function(file, errorCode, message) { var errorName = ''; switch (errorCode) { case SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED: errorName = options.queueLimitExceeded; break; case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT: errorName = options.fileExceedsSizeLimit; break; case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE: errorName = options.zeroByteFile; break; case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE: errorName = options.invalidFiletype; break; default: errorName = options.unknownError; break; } K.DEBUG && alert(errorName); }, upload_start_handler : function(file) { var self = this; var itemDiv = K('div[data-id="' + file.id + '"]', self.bodyDiv); K('.ke-status > div', itemDiv).hide(); K('.ke-progressbar', itemDiv).show(); }, upload_progress_handler : function(file, bytesLoaded, bytesTotal) { var percent = Math.round(bytesLoaded * 100 / bytesTotal); var progressbar = self.progressbars[file.id]; progressbar.bar.css('width', Math.round(percent * 80 / 100) + 'px'); progressbar.percent.html(percent + '%'); }, upload_error_handler : function(file, errorCode, message) { if (file && file.filestatus == SWFUpload.FILE_STATUS.ERROR) { var itemDiv = K('div[data-id="' + file.id + '"]', self.bodyDiv).eq(0); showError(itemDiv, self.options.errorMessage); } }, upload_success_handler : function(file, serverData) { var itemDiv = K('div[data-id="' + file.id + '"]', self.bodyDiv).eq(0); var data = {}; try { data = K.json(serverData); } catch (e) { self.options.afterError.call(this, '' + serverData + ''); } if (data.error !== 0) { showError(itemDiv, K.DEBUG ? data.message : self.options.errorMessage); return; } file.url = data.url; K('.ke-img', itemDiv).attr('src', file.url).attr('data-status', file.filestatus).data('data', data); K('.ke-status > div', itemDiv).hide(); } }; self.swfu = new SWFUpload(settings); K('.ke-swfupload-startupload input', self.div).click(function() { self.swfu.startUpload(); }); }, getUrlList : function() { var list = []; K('.ke-img', self.bodyDiv).each(function() { var img = K(this); var status = img.attr('data-status'); if (status == SWFUpload.FILE_STATUS.COMPLETE) { list.push(img.data('data')); } }); return list; }, removeFile : function(fileId) { var self = this; self.swfu.cancelUpload(fileId); var itemDiv = K('div[data-id="' + fileId + '"]', self.bodyDiv); K('.ke-photo', itemDiv).unbind(); K('.ke-delete', itemDiv).unbind(); itemDiv.remove(); }, removeFiles : function() { var self = this; K('.ke-item', self.bodyDiv).each(function() { self.removeFile(K(this).attr('data-id')); }); }, appendFile : function(file) { var self = this; var itemDiv = K('
                                                    '); self.bodyDiv.append(itemDiv); var photoDiv = K('
                                                    ') .mouseover(function(e) { K(this).addClass('ke-on'); }) .mouseout(function(e) { K(this).removeClass('ke-on'); }); itemDiv.append(photoDiv); var img = K('' + file.name + ''); photoDiv.append(img); K('').appendTo(photoDiv).click(function() { self.removeFile(file.id); }); var statusDiv = K('
                                                    ').appendTo(photoDiv); // progressbar K(['
                                                    ', '
                                                    ', '
                                                    0%
                                                    '].join('')).hide().appendTo(statusDiv); // message K('
                                                    ' + self.options.pendingMessage + '
                                                    ').appendTo(statusDiv); itemDiv.append('
                                                    ' + file.name + '
                                                    '); self.progressbars[file.id] = { bar : K('.ke-progressbar-bar-inner', photoDiv), percent : K('.ke-progressbar-percent', photoDiv) }; }, remove : function() { this.removeFiles(); this.swfu.destroy(); this.div.html(''); } }); K.swfupload = function(element, options) { return new KSWFUpload(element, options); }; })(KindEditor); KindEditor.plugin('multiimage', function(K) { var self = this, name = 'multiimage', formatUploadUrl = K.undef(self.formatUploadUrl, true), uploadJson = K.undef(self.uploadJson, self.basePath + 'php/upload_json.php'), imgPath = self.pluginsPath + 'multiimage/images/', imageSizeLimit = K.undef(self.imageSizeLimit, '1MB'), imageFileTypes = K.undef(self.imageFileTypes, '*.jpg;*.gif;*.png'), imageUploadLimit = K.undef(self.imageUploadLimit, 20), filePostName = K.undef(self.filePostName, 'imgFile'), lang = self.lang(name + '.'); self.plugin.multiImageDialog = function(options) { var clickFn = options.clickFn, uploadDesc = K.tmpl(lang.uploadDesc, {uploadLimit : imageUploadLimit, sizeLimit : imageSizeLimit}); var html = [ '
                                                    ', '
                                                    ', '
                                                    ', '
                                                    ' ].join(''); var dialog = self.createDialog({ name : name, width : 650, height : 510, title : self.lang(name), body : html, previewBtn : { name : lang.insertAll, click : function(e) { clickFn.call(self, swfupload.getUrlList()); } }, yesBtn : { name : lang.clearAll, click : function(e) { swfupload.removeFiles(); } }, beforeRemove : function() { // IE9 bugfix: https://github.com/kindsoft/kindeditor/issues/72 if (!K.IE || K.V <= 8) { swfupload.remove(); } } }), div = dialog.div; var swfupload = K.swfupload({ container : K('.swfupload', div), buttonImageUrl : imgPath + (self.langType == 'zh_CN' ? 'select-files-zh_CN.png' : 'select-files-en.png'), buttonWidth : self.langType == 'zh_CN' ? 72 : 88, buttonHeight : 23, fileIconUrl : imgPath + 'image.png', uploadDesc : uploadDesc, startButtonValue : lang.startUpload, uploadUrl : K.addParam(uploadJson, 'dir=image'), flashUrl : imgPath + 'swfupload.swf', filePostName : filePostName, fileTypes : '*.jpg;*.jpeg;*.gif;*.png;*.bmp', fileTypesDesc : 'Image Files', fileUploadLimit : imageUploadLimit, fileSizeLimit : imageSizeLimit, postParams : K.undef(self.extraFileUploadParams, {}), queueLimitExceeded : lang.queueLimitExceeded, fileExceedsSizeLimit : lang.fileExceedsSizeLimit, zeroByteFile : lang.zeroByteFile, invalidFiletype : lang.invalidFiletype, unknownError : lang.unknownError, pendingMessage : lang.pending, errorMessage : lang.uploadError, afterError : function(html) { self.errorDialog(html); } }); return dialog; }; self.clickToolbar(name, function() { self.plugin.multiImageDialog({ clickFn : function (urlList) { if (urlList.length === 0) { return; } K.each(urlList, function(i, data) { if (self.afterUpload) { self.afterUpload.call(self, data.url, data, 'multiimage'); } self.exec('insertimage', data.url, data.title, data.width, data.height, data.border, data.align); }); // Bugfix: [Firefox] 上传图片后,总是出现正在加载的样式,需要延迟执行hideDialog setTimeout(function() { self.hideDialog().focus(); }, 0); } }); }); }); /** * SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com * * mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/ * * SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilz閚 and Mammon Media and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * SWFUpload 2 is (c) 2007-2008 Jake Roberts and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * */ /* ******************* */ /* Constructor & Init */ /* ******************* */ (function() { window.SWFUpload = function (settings) { this.initSWFUpload(settings); }; SWFUpload.prototype.initSWFUpload = function (settings) { try { this.customSettings = {}; // A container where developers can place their own settings associated with this instance. this.settings = settings; this.eventQueue = []; this.movieName = "KindEditor_SWFUpload_" + SWFUpload.movieCount++; this.movieElement = null; // Setup global control tracking SWFUpload.instances[this.movieName] = this; // Load the settings. Load the Flash movie. this.initSettings(); this.loadFlash(); this.displayDebugInfo(); } catch (ex) { delete SWFUpload.instances[this.movieName]; throw ex; } }; /* *************** */ /* Static Members */ /* *************** */ SWFUpload.instances = {}; SWFUpload.movieCount = 0; SWFUpload.version = "2.2.0 2009-03-25"; SWFUpload.QUEUE_ERROR = { QUEUE_LIMIT_EXCEEDED : -100, FILE_EXCEEDS_SIZE_LIMIT : -110, ZERO_BYTE_FILE : -120, INVALID_FILETYPE : -130 }; SWFUpload.UPLOAD_ERROR = { HTTP_ERROR : -200, MISSING_UPLOAD_URL : -210, IO_ERROR : -220, SECURITY_ERROR : -230, UPLOAD_LIMIT_EXCEEDED : -240, UPLOAD_FAILED : -250, SPECIFIED_FILE_ID_NOT_FOUND : -260, FILE_VALIDATION_FAILED : -270, FILE_CANCELLED : -280, UPLOAD_STOPPED : -290 }; SWFUpload.FILE_STATUS = { QUEUED : -1, IN_PROGRESS : -2, ERROR : -3, COMPLETE : -4, CANCELLED : -5 }; SWFUpload.BUTTON_ACTION = { SELECT_FILE : -100, SELECT_FILES : -110, START_UPLOAD : -120 }; SWFUpload.CURSOR = { ARROW : -1, HAND : -2 }; SWFUpload.WINDOW_MODE = { WINDOW : "window", TRANSPARENT : "transparent", OPAQUE : "opaque" }; // Private: takes a URL, determines if it is relative and converts to an absolute URL // using the current site. Only processes the URL if it can, otherwise returns the URL untouched SWFUpload.completeURL = function(url) { if (typeof(url) !== "string" || url.match(/^https?:\/\//i) || url.match(/^\//)) { return url; } var currentURL = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : ""); var indexSlash = window.location.pathname.lastIndexOf("/"); if (indexSlash <= 0) { path = "/"; } else { path = window.location.pathname.substr(0, indexSlash) + "/"; } return /*currentURL +*/ path + url; }; /* ******************** */ /* Instance Members */ /* ******************** */ // Private: initSettings ensures that all the // settings are set, getting a default value if one was not assigned. SWFUpload.prototype.initSettings = function () { this.ensureDefault = function (settingName, defaultValue) { this.settings[settingName] = (this.settings[settingName] == undefined) ? defaultValue : this.settings[settingName]; }; // Upload backend settings this.ensureDefault("upload_url", ""); this.ensureDefault("preserve_relative_urls", false); this.ensureDefault("file_post_name", "Filedata"); this.ensureDefault("post_params", {}); this.ensureDefault("use_query_string", false); this.ensureDefault("requeue_on_error", false); this.ensureDefault("http_success", []); this.ensureDefault("assume_success_timeout", 0); // File Settings this.ensureDefault("file_types", "*.*"); this.ensureDefault("file_types_description", "All Files"); this.ensureDefault("file_size_limit", 0); // Default zero means "unlimited" this.ensureDefault("file_upload_limit", 0); this.ensureDefault("file_queue_limit", 0); // Flash Settings this.ensureDefault("flash_url", "swfupload.swf"); this.ensureDefault("prevent_swf_caching", true); // Button Settings this.ensureDefault("button_image_url", ""); this.ensureDefault("button_width", 1); this.ensureDefault("button_height", 1); this.ensureDefault("button_text", ""); this.ensureDefault("button_text_style", "color: #000000; font-size: 16pt;"); this.ensureDefault("button_text_top_padding", 0); this.ensureDefault("button_text_left_padding", 0); this.ensureDefault("button_action", SWFUpload.BUTTON_ACTION.SELECT_FILES); this.ensureDefault("button_disabled", false); this.ensureDefault("button_placeholder_id", ""); this.ensureDefault("button_placeholder", null); this.ensureDefault("button_cursor", SWFUpload.CURSOR.ARROW); this.ensureDefault("button_window_mode", SWFUpload.WINDOW_MODE.WINDOW); // Debug Settings this.ensureDefault("debug", false); this.settings.debug_enabled = this.settings.debug; // Here to maintain v2 API // Event Handlers this.settings.return_upload_start_handler = this.returnUploadStart; this.ensureDefault("swfupload_loaded_handler", null); this.ensureDefault("file_dialog_start_handler", null); this.ensureDefault("file_queued_handler", null); this.ensureDefault("file_queue_error_handler", null); this.ensureDefault("file_dialog_complete_handler", null); this.ensureDefault("upload_start_handler", null); this.ensureDefault("upload_progress_handler", null); this.ensureDefault("upload_error_handler", null); this.ensureDefault("upload_success_handler", null); this.ensureDefault("upload_complete_handler", null); this.ensureDefault("debug_handler", this.debugMessage); this.ensureDefault("custom_settings", {}); // Other settings this.customSettings = this.settings.custom_settings; // Update the flash url if needed if (!!this.settings.prevent_swf_caching) { this.settings.flash_url = this.settings.flash_url + (this.settings.flash_url.indexOf("?") < 0 ? "?" : "&") + "preventswfcaching=" + new Date().getTime(); } if (!this.settings.preserve_relative_urls) { //this.settings.flash_url = SWFUpload.completeURL(this.settings.flash_url); // Don't need to do this one since flash doesn't look at it this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url); this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url); } delete this.ensureDefault; }; // Private: loadFlash replaces the button_placeholder element with the flash movie. SWFUpload.prototype.loadFlash = function () { var targetElement, tempParent; // Make sure an element with the ID we are going to use doesn't already exist if (document.getElementById(this.movieName) !== null) { throw "ID " + this.movieName + " is already in use. The Flash Object could not be added"; } // Get the element where we will be placing the flash movie targetElement = document.getElementById(this.settings.button_placeholder_id) || this.settings.button_placeholder; if (targetElement == undefined) { throw "Could not find the placeholder element: " + this.settings.button_placeholder_id; } // Append the container and load the flash tempParent = document.createElement("div"); tempParent.innerHTML = this.getFlashHTML(); // Using innerHTML is non-standard but the only sensible way to dynamically add Flash in IE (and maybe other browsers) targetElement.parentNode.replaceChild(tempParent.firstChild, targetElement); // Fix IE Flash/Form bug if (window[this.movieName] == undefined) { window[this.movieName] = this.getMovieElement(); } }; // Private: getFlashHTML generates the object tag needed to embed the flash in to the document SWFUpload.prototype.getFlashHTML = function () { // Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay // Fix bug for IE9 // http://www.kindsoft.net/view.php?bbsid=7&postid=5825&pagenum=1 var classid = ''; if (KindEditor.IE && KindEditor.V > 8) { classid = ' classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'; } return ['', '', '', '', '', '', '', ''].join(""); }; // Private: getFlashVars builds the parameter string that will be passed // to flash in the flashvars param. SWFUpload.prototype.getFlashVars = function () { // Build a string from the post param object var paramString = this.buildParamString(); var httpSuccessString = this.settings.http_success.join(","); // Build the parameter string return ["movieName=", encodeURIComponent(this.movieName), "&uploadURL=", encodeURIComponent(this.settings.upload_url), "&useQueryString=", encodeURIComponent(this.settings.use_query_string), "&requeueOnError=", encodeURIComponent(this.settings.requeue_on_error), "&httpSuccess=", encodeURIComponent(httpSuccessString), "&assumeSuccessTimeout=", encodeURIComponent(this.settings.assume_success_timeout), "&params=", encodeURIComponent(paramString), "&filePostName=", encodeURIComponent(this.settings.file_post_name), "&fileTypes=", encodeURIComponent(this.settings.file_types), "&fileTypesDescription=", encodeURIComponent(this.settings.file_types_description), "&fileSizeLimit=", encodeURIComponent(this.settings.file_size_limit), "&fileUploadLimit=", encodeURIComponent(this.settings.file_upload_limit), "&fileQueueLimit=", encodeURIComponent(this.settings.file_queue_limit), "&debugEnabled=", encodeURIComponent(this.settings.debug_enabled), "&buttonImageURL=", encodeURIComponent(this.settings.button_image_url), "&buttonWidth=", encodeURIComponent(this.settings.button_width), "&buttonHeight=", encodeURIComponent(this.settings.button_height), "&buttonText=", encodeURIComponent(this.settings.button_text), "&buttonTextTopPadding=", encodeURIComponent(this.settings.button_text_top_padding), "&buttonTextLeftPadding=", encodeURIComponent(this.settings.button_text_left_padding), "&buttonTextStyle=", encodeURIComponent(this.settings.button_text_style), "&buttonAction=", encodeURIComponent(this.settings.button_action), "&buttonDisabled=", encodeURIComponent(this.settings.button_disabled), "&buttonCursor=", encodeURIComponent(this.settings.button_cursor) ].join(""); }; // Public: getMovieElement retrieves the DOM reference to the Flash element added by SWFUpload // The element is cached after the first lookup SWFUpload.prototype.getMovieElement = function () { if (this.movieElement == undefined) { this.movieElement = document.getElementById(this.movieName); } if (this.movieElement === null) { throw "Could not find Flash element"; } return this.movieElement; }; // Private: buildParamString takes the name/value pairs in the post_params setting object // and joins them up in to a string formatted "name=value&name=value" SWFUpload.prototype.buildParamString = function () { var postParams = this.settings.post_params; var paramStringPairs = []; if (typeof(postParams) === "object") { for (var name in postParams) { if (postParams.hasOwnProperty(name)) { paramStringPairs.push(encodeURIComponent(name.toString()) + "=" + encodeURIComponent(postParams[name].toString())); } } } return paramStringPairs.join("&"); }; // Public: Used to remove a SWFUpload instance from the page. This method strives to remove // all references to the SWF, and other objects so memory is properly freed. // Returns true if everything was destroyed. Returns a false if a failure occurs leaving SWFUpload in an inconsistant state. // Credits: Major improvements provided by steffen SWFUpload.prototype.destroy = function () { try { // Make sure Flash is done before we try to remove it this.cancelUpload(null, false); // Remove the SWFUpload DOM nodes var movieElement = null; movieElement = this.getMovieElement(); if (movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE // Loop through all the movie's properties and remove all function references (DOM/JS IE 6/7 memory leak workaround) for (var i in movieElement) { try { if (typeof(movieElement[i]) === "function") { movieElement[i] = null; } } catch (ex1) {} } // Remove the Movie Element from the page try { movieElement.parentNode.removeChild(movieElement); } catch (ex) {} } // Remove IE form fix reference window[this.movieName] = null; // Destroy other references SWFUpload.instances[this.movieName] = null; delete SWFUpload.instances[this.movieName]; this.movieElement = null; this.settings = null; this.customSettings = null; this.eventQueue = null; this.movieName = null; return true; } catch (ex2) { return false; } }; // Public: displayDebugInfo prints out settings and configuration // information about this SWFUpload instance. // This function (and any references to it) can be deleted when placing // SWFUpload in production. SWFUpload.prototype.displayDebugInfo = function () { this.debug( [ "---SWFUpload Instance Info---\n", "Version: ", SWFUpload.version, "\n", "Movie Name: ", this.movieName, "\n", "Settings:\n", "\t", "upload_url: ", this.settings.upload_url, "\n", "\t", "flash_url: ", this.settings.flash_url, "\n", "\t", "use_query_string: ", this.settings.use_query_string.toString(), "\n", "\t", "requeue_on_error: ", this.settings.requeue_on_error.toString(), "\n", "\t", "http_success: ", this.settings.http_success.join(", "), "\n", "\t", "assume_success_timeout: ", this.settings.assume_success_timeout, "\n", "\t", "file_post_name: ", this.settings.file_post_name, "\n", "\t", "post_params: ", this.settings.post_params.toString(), "\n", "\t", "file_types: ", this.settings.file_types, "\n", "\t", "file_types_description: ", this.settings.file_types_description, "\n", "\t", "file_size_limit: ", this.settings.file_size_limit, "\n", "\t", "file_upload_limit: ", this.settings.file_upload_limit, "\n", "\t", "file_queue_limit: ", this.settings.file_queue_limit, "\n", "\t", "debug: ", this.settings.debug.toString(), "\n", "\t", "prevent_swf_caching: ", this.settings.prevent_swf_caching.toString(), "\n", "\t", "button_placeholder_id: ", this.settings.button_placeholder_id.toString(), "\n", "\t", "button_placeholder: ", (this.settings.button_placeholder ? "Set" : "Not Set"), "\n", "\t", "button_image_url: ", this.settings.button_image_url.toString(), "\n", "\t", "button_width: ", this.settings.button_width.toString(), "\n", "\t", "button_height: ", this.settings.button_height.toString(), "\n", "\t", "button_text: ", this.settings.button_text.toString(), "\n", "\t", "button_text_style: ", this.settings.button_text_style.toString(), "\n", "\t", "button_text_top_padding: ", this.settings.button_text_top_padding.toString(), "\n", "\t", "button_text_left_padding: ", this.settings.button_text_left_padding.toString(), "\n", "\t", "button_action: ", this.settings.button_action.toString(), "\n", "\t", "button_disabled: ", this.settings.button_disabled.toString(), "\n", "\t", "custom_settings: ", this.settings.custom_settings.toString(), "\n", "Event Handlers:\n", "\t", "swfupload_loaded_handler assigned: ", (typeof this.settings.swfupload_loaded_handler === "function").toString(), "\n", "\t", "file_dialog_start_handler assigned: ", (typeof this.settings.file_dialog_start_handler === "function").toString(), "\n", "\t", "file_queued_handler assigned: ", (typeof this.settings.file_queued_handler === "function").toString(), "\n", "\t", "file_queue_error_handler assigned: ", (typeof this.settings.file_queue_error_handler === "function").toString(), "\n", "\t", "upload_start_handler assigned: ", (typeof this.settings.upload_start_handler === "function").toString(), "\n", "\t", "upload_progress_handler assigned: ", (typeof this.settings.upload_progress_handler === "function").toString(), "\n", "\t", "upload_error_handler assigned: ", (typeof this.settings.upload_error_handler === "function").toString(), "\n", "\t", "upload_success_handler assigned: ", (typeof this.settings.upload_success_handler === "function").toString(), "\n", "\t", "upload_complete_handler assigned: ", (typeof this.settings.upload_complete_handler === "function").toString(), "\n", "\t", "debug_handler assigned: ", (typeof this.settings.debug_handler === "function").toString(), "\n" ].join("") ); }; /* Note: addSetting and getSetting are no longer used by SWFUpload but are included the maintain v2 API compatibility */ // Public: (Deprecated) addSetting adds a setting value. If the value given is undefined or null then the default_value is used. SWFUpload.prototype.addSetting = function (name, value, default_value) { if (value == undefined) { return (this.settings[name] = default_value); } else { return (this.settings[name] = value); } }; // Public: (Deprecated) getSetting gets a setting. Returns an empty string if the setting was not found. SWFUpload.prototype.getSetting = function (name) { if (this.settings[name] != undefined) { return this.settings[name]; } return ""; }; // Private: callFlash handles function calls made to the Flash element. // Calls are made with a setTimeout for some functions to work around // bugs in the ExternalInterface library. SWFUpload.prototype.callFlash = function (functionName, argumentArray) { argumentArray = argumentArray || []; var movieElement = this.getMovieElement(); var returnValue, returnString; // Flash's method if calling ExternalInterface methods (code adapted from MooTools). try { returnString = movieElement.CallFunction('' + __flash__argumentsToXML(argumentArray, 0) + ''); returnValue = eval(returnString); } catch (ex) { throw "Call to " + functionName + " failed"; } // Unescape file post param values if (returnValue != undefined && typeof returnValue.post === "object") { returnValue = this.unescapeFilePostParams(returnValue); } return returnValue; }; /* ***************************** -- Flash control methods -- Your UI should use these to operate SWFUpload ***************************** */ // WARNING: this function does not work in Flash Player 10 // Public: selectFile causes a File Selection Dialog window to appear. This // dialog only allows 1 file to be selected. SWFUpload.prototype.selectFile = function () { this.callFlash("SelectFile"); }; // WARNING: this function does not work in Flash Player 10 // Public: selectFiles causes a File Selection Dialog window to appear/ This // dialog allows the user to select any number of files // Flash Bug Warning: Flash limits the number of selectable files based on the combined length of the file names. // If the selection name length is too long the dialog will fail in an unpredictable manner. There is no work-around // for this bug. SWFUpload.prototype.selectFiles = function () { this.callFlash("SelectFiles"); }; // Public: startUpload starts uploading the first file in the queue unless // the optional parameter 'fileID' specifies the ID SWFUpload.prototype.startUpload = function (fileID) { this.callFlash("StartUpload", [fileID]); }; // Public: cancelUpload cancels any queued file. The fileID parameter may be the file ID or index. // If you do not specify a fileID the current uploading file or first file in the queue is cancelled. // If you do not want the uploadError event to trigger you can specify false for the triggerErrorEvent parameter. SWFUpload.prototype.cancelUpload = function (fileID, triggerErrorEvent) { if (triggerErrorEvent !== false) { triggerErrorEvent = true; } this.callFlash("CancelUpload", [fileID, triggerErrorEvent]); }; // Public: stopUpload stops the current upload and requeues the file at the beginning of the queue. // If nothing is currently uploading then nothing happens. SWFUpload.prototype.stopUpload = function () { this.callFlash("StopUpload"); }; /* ************************ * Settings methods * These methods change the SWFUpload settings. * SWFUpload settings should not be changed directly on the settings object * since many of the settings need to be passed to Flash in order to take * effect. * *********************** */ // Public: getStats gets the file statistics object. SWFUpload.prototype.getStats = function () { return this.callFlash("GetStats"); }; // Public: setStats changes the SWFUpload statistics. You shouldn't need to // change the statistics but you can. Changing the statistics does not // affect SWFUpload accept for the successful_uploads count which is used // by the upload_limit setting to determine how many files the user may upload. SWFUpload.prototype.setStats = function (statsObject) { this.callFlash("SetStats", [statsObject]); }; // Public: getFile retrieves a File object by ID or Index. If the file is // not found then 'null' is returned. SWFUpload.prototype.getFile = function (fileID) { if (typeof(fileID) === "number") { return this.callFlash("GetFileByIndex", [fileID]); } else { return this.callFlash("GetFile", [fileID]); } }; // Public: addFileParam sets a name/value pair that will be posted with the // file specified by the Files ID. If the name already exists then the // exiting value will be overwritten. SWFUpload.prototype.addFileParam = function (fileID, name, value) { return this.callFlash("AddFileParam", [fileID, name, value]); }; // Public: removeFileParam removes a previously set (by addFileParam) name/value // pair from the specified file. SWFUpload.prototype.removeFileParam = function (fileID, name) { this.callFlash("RemoveFileParam", [fileID, name]); }; // Public: setUploadUrl changes the upload_url setting. SWFUpload.prototype.setUploadURL = function (url) { this.settings.upload_url = url.toString(); this.callFlash("SetUploadURL", [url]); }; // Public: setPostParams changes the post_params setting SWFUpload.prototype.setPostParams = function (paramsObject) { this.settings.post_params = paramsObject; this.callFlash("SetPostParams", [paramsObject]); }; // Public: addPostParam adds post name/value pair. Each name can have only one value. SWFUpload.prototype.addPostParam = function (name, value) { this.settings.post_params[name] = value; this.callFlash("SetPostParams", [this.settings.post_params]); }; // Public: removePostParam deletes post name/value pair. SWFUpload.prototype.removePostParam = function (name) { delete this.settings.post_params[name]; this.callFlash("SetPostParams", [this.settings.post_params]); }; // Public: setFileTypes changes the file_types setting and the file_types_description setting SWFUpload.prototype.setFileTypes = function (types, description) { this.settings.file_types = types; this.settings.file_types_description = description; this.callFlash("SetFileTypes", [types, description]); }; // Public: setFileSizeLimit changes the file_size_limit setting SWFUpload.prototype.setFileSizeLimit = function (fileSizeLimit) { this.settings.file_size_limit = fileSizeLimit; this.callFlash("SetFileSizeLimit", [fileSizeLimit]); }; // Public: setFileUploadLimit changes the file_upload_limit setting SWFUpload.prototype.setFileUploadLimit = function (fileUploadLimit) { this.settings.file_upload_limit = fileUploadLimit; this.callFlash("SetFileUploadLimit", [fileUploadLimit]); }; // Public: setFileQueueLimit changes the file_queue_limit setting SWFUpload.prototype.setFileQueueLimit = function (fileQueueLimit) { this.settings.file_queue_limit = fileQueueLimit; this.callFlash("SetFileQueueLimit", [fileQueueLimit]); }; // Public: setFilePostName changes the file_post_name setting SWFUpload.prototype.setFilePostName = function (filePostName) { this.settings.file_post_name = filePostName; this.callFlash("SetFilePostName", [filePostName]); }; // Public: setUseQueryString changes the use_query_string setting SWFUpload.prototype.setUseQueryString = function (useQueryString) { this.settings.use_query_string = useQueryString; this.callFlash("SetUseQueryString", [useQueryString]); }; // Public: setRequeueOnError changes the requeue_on_error setting SWFUpload.prototype.setRequeueOnError = function (requeueOnError) { this.settings.requeue_on_error = requeueOnError; this.callFlash("SetRequeueOnError", [requeueOnError]); }; // Public: setHTTPSuccess changes the http_success setting SWFUpload.prototype.setHTTPSuccess = function (http_status_codes) { if (typeof http_status_codes === "string") { http_status_codes = http_status_codes.replace(" ", "").split(","); } this.settings.http_success = http_status_codes; this.callFlash("SetHTTPSuccess", [http_status_codes]); }; // Public: setHTTPSuccess changes the http_success setting SWFUpload.prototype.setAssumeSuccessTimeout = function (timeout_seconds) { this.settings.assume_success_timeout = timeout_seconds; this.callFlash("SetAssumeSuccessTimeout", [timeout_seconds]); }; // Public: setDebugEnabled changes the debug_enabled setting SWFUpload.prototype.setDebugEnabled = function (debugEnabled) { this.settings.debug_enabled = debugEnabled; this.callFlash("SetDebugEnabled", [debugEnabled]); }; // Public: setButtonImageURL loads a button image sprite SWFUpload.prototype.setButtonImageURL = function (buttonImageURL) { if (buttonImageURL == undefined) { buttonImageURL = ""; } this.settings.button_image_url = buttonImageURL; this.callFlash("SetButtonImageURL", [buttonImageURL]); }; // Public: setButtonDimensions resizes the Flash Movie and button SWFUpload.prototype.setButtonDimensions = function (width, height) { this.settings.button_width = width; this.settings.button_height = height; var movie = this.getMovieElement(); if (movie != undefined) { movie.style.width = width + "px"; movie.style.height = height + "px"; } this.callFlash("SetButtonDimensions", [width, height]); }; // Public: setButtonText Changes the text overlaid on the button SWFUpload.prototype.setButtonText = function (html) { this.settings.button_text = html; this.callFlash("SetButtonText", [html]); }; // Public: setButtonTextPadding changes the top and left padding of the text overlay SWFUpload.prototype.setButtonTextPadding = function (left, top) { this.settings.button_text_top_padding = top; this.settings.button_text_left_padding = left; this.callFlash("SetButtonTextPadding", [left, top]); }; // Public: setButtonTextStyle changes the CSS used to style the HTML/Text overlaid on the button SWFUpload.prototype.setButtonTextStyle = function (css) { this.settings.button_text_style = css; this.callFlash("SetButtonTextStyle", [css]); }; // Public: setButtonDisabled disables/enables the button SWFUpload.prototype.setButtonDisabled = function (isDisabled) { this.settings.button_disabled = isDisabled; this.callFlash("SetButtonDisabled", [isDisabled]); }; // Public: setButtonAction sets the action that occurs when the button is clicked SWFUpload.prototype.setButtonAction = function (buttonAction) { this.settings.button_action = buttonAction; this.callFlash("SetButtonAction", [buttonAction]); }; // Public: setButtonCursor changes the mouse cursor displayed when hovering over the button SWFUpload.prototype.setButtonCursor = function (cursor) { this.settings.button_cursor = cursor; this.callFlash("SetButtonCursor", [cursor]); }; /* ******************************* Flash Event Interfaces These functions are used by Flash to trigger the various events. All these functions a Private. Because the ExternalInterface library is buggy the event calls are added to a queue and the queue then executed by a setTimeout. This ensures that events are executed in a determinate order and that the ExternalInterface bugs are avoided. ******************************* */ SWFUpload.prototype.queueEvent = function (handlerName, argumentArray) { // Warning: Don't call this.debug inside here or you'll create an infinite loop if (argumentArray == undefined) { argumentArray = []; } else if (!(argumentArray instanceof Array)) { argumentArray = [argumentArray]; } var self = this; if (typeof this.settings[handlerName] === "function") { // Queue the event this.eventQueue.push(function () { this.settings[handlerName].apply(this, argumentArray); }); // Execute the next queued event setTimeout(function () { self.executeNextEvent(); }, 0); } else if (this.settings[handlerName] !== null) { throw "Event handler " + handlerName + " is unknown or is not a function"; } }; // Private: Causes the next event in the queue to be executed. Since events are queued using a setTimeout // we must queue them in order to garentee that they are executed in order. SWFUpload.prototype.executeNextEvent = function () { // Warning: Don't call this.debug inside here or you'll create an infinite loop var f = this.eventQueue ? this.eventQueue.shift() : null; if (typeof(f) === "function") { f.apply(this); } }; // Private: unescapeFileParams is part of a workaround for a flash bug where objects passed through ExternalInterface cannot have // properties that contain characters that are not valid for JavaScript identifiers. To work around this // the Flash Component escapes the parameter names and we must unescape again before passing them along. SWFUpload.prototype.unescapeFilePostParams = function (file) { var reg = /[$]([0-9a-f]{4})/i; var unescapedPost = {}; var uk; if (file != undefined) { for (var k in file.post) { if (file.post.hasOwnProperty(k)) { uk = k; var match; while ((match = reg.exec(uk)) !== null) { uk = uk.replace(match[0], String.fromCharCode(parseInt("0x" + match[1], 16))); } unescapedPost[uk] = file.post[k]; } } file.post = unescapedPost; } return file; }; // Private: Called by Flash to see if JS can call in to Flash (test if External Interface is working) SWFUpload.prototype.testExternalInterface = function () { try { return this.callFlash("TestExternalInterface"); } catch (ex) { return false; } }; // Private: This event is called by Flash when it has finished loading. Don't modify this. // Use the swfupload_loaded_handler event setting to execute custom code when SWFUpload has loaded. SWFUpload.prototype.flashReady = function () { // Check that the movie element is loaded correctly with its ExternalInterface methods defined var movieElement = this.getMovieElement(); if (!movieElement) { this.debug("Flash called back ready but the flash movie can't be found."); return; } this.cleanUp(movieElement); this.queueEvent("swfupload_loaded_handler"); }; // Private: removes Flash added fuctions to the DOM node to prevent memory leaks in IE. // This function is called by Flash each time the ExternalInterface functions are created. SWFUpload.prototype.cleanUp = function (movieElement) { // Pro-actively unhook all the Flash functions try { if (this.movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)"); for (var key in movieElement) { try { if (typeof(movieElement[key]) === "function") { movieElement[key] = null; } } catch (ex) { } } } } catch (ex1) { } // Fix Flashes own cleanup code so if the SWFMovie was removed from the page // it doesn't display errors. window["__flash__removeCallback"] = function (instance, name) { try { if (instance) { instance[name] = null; } } catch (flashEx) { } }; }; /* This is a chance to do something before the browse window opens */ SWFUpload.prototype.fileDialogStart = function () { this.queueEvent("file_dialog_start_handler"); }; /* Called when a file is successfully added to the queue. */ SWFUpload.prototype.fileQueued = function (file) { file = this.unescapeFilePostParams(file); this.queueEvent("file_queued_handler", file); }; /* Handle errors that occur when an attempt to queue a file fails. */ SWFUpload.prototype.fileQueueError = function (file, errorCode, message) { file = this.unescapeFilePostParams(file); this.queueEvent("file_queue_error_handler", [file, errorCode, message]); }; /* Called after the file dialog has closed and the selected files have been queued. You could call startUpload here if you want the queued files to begin uploading immediately. */ SWFUpload.prototype.fileDialogComplete = function (numFilesSelected, numFilesQueued, numFilesInQueue) { this.queueEvent("file_dialog_complete_handler", [numFilesSelected, numFilesQueued, numFilesInQueue]); }; SWFUpload.prototype.uploadStart = function (file) { file = this.unescapeFilePostParams(file); this.queueEvent("return_upload_start_handler", file); }; SWFUpload.prototype.returnUploadStart = function (file) { var returnValue; if (typeof this.settings.upload_start_handler === "function") { file = this.unescapeFilePostParams(file); returnValue = this.settings.upload_start_handler.call(this, file); } else if (this.settings.upload_start_handler != undefined) { throw "upload_start_handler must be a function"; } // Convert undefined to true so if nothing is returned from the upload_start_handler it is // interpretted as 'true'. if (returnValue === undefined) { returnValue = true; } returnValue = !!returnValue; this.callFlash("ReturnUploadStart", [returnValue]); }; SWFUpload.prototype.uploadProgress = function (file, bytesComplete, bytesTotal) { file = this.unescapeFilePostParams(file); this.queueEvent("upload_progress_handler", [file, bytesComplete, bytesTotal]); }; SWFUpload.prototype.uploadError = function (file, errorCode, message) { file = this.unescapeFilePostParams(file); this.queueEvent("upload_error_handler", [file, errorCode, message]); }; SWFUpload.prototype.uploadSuccess = function (file, serverData, responseReceived) { file = this.unescapeFilePostParams(file); this.queueEvent("upload_success_handler", [file, serverData, responseReceived]); }; SWFUpload.prototype.uploadComplete = function (file) { file = this.unescapeFilePostParams(file); this.queueEvent("upload_complete_handler", file); }; /* Called by SWFUpload JavaScript and Flash functions when debug is enabled. By default it writes messages to the internal debug console. You can override this event and have messages written where you want. */ SWFUpload.prototype.debug = function (message) { this.queueEvent("debug_handler", message); }; /* ********************************** Debug Console The debug console is a self contained, in page location for debug message to be sent. The Debug Console adds itself to the body if necessary. The console is automatically scrolled as messages appear. If you are using your own debug handler or when you deploy to production and have debug disabled you can remove these functions to reduce the file size and complexity. ********************************** */ // Private: debugMessage is the default debug_handler. If you want to print debug messages // call the debug() function. When overriding the function your own function should // check to see if the debug setting is true before outputting debug information. SWFUpload.prototype.debugMessage = function (message) { if (this.settings.debug) { var exceptionMessage, exceptionValues = []; // Check for an exception object and print it nicely if (typeof message === "object" && typeof message.name === "string" && typeof message.message === "string") { for (var key in message) { if (message.hasOwnProperty(key)) { exceptionValues.push(key + ": " + message[key]); } } exceptionMessage = exceptionValues.join("\n") || ""; exceptionValues = exceptionMessage.split("\n"); exceptionMessage = "EXCEPTION: " + exceptionValues.join("\nEXCEPTION: "); SWFUpload.Console.writeLine(exceptionMessage); } else { SWFUpload.Console.writeLine(message); } } }; SWFUpload.Console = {}; SWFUpload.Console.writeLine = function (message) { var console, documentForm; try { console = document.getElementById("SWFUpload_Console"); if (!console) { documentForm = document.createElement("form"); document.getElementsByTagName("body")[0].appendChild(documentForm); console = document.createElement("textarea"); console.id = "SWFUpload_Console"; console.style.fontFamily = "monospace"; console.setAttribute("wrap", "off"); console.wrap = "off"; console.style.overflow = "auto"; console.style.width = "700px"; console.style.height = "350px"; console.style.margin = "5px"; documentForm.appendChild(console); } console.value += message + "\n"; console.scrollTop = console.scrollHeight - console.clientHeight; } catch (ex) { alert("Exception: " + ex.name + " Message: " + ex.message); } }; })(); (function() { /* Queue Plug-in Features: *Adds a cancelQueue() method for cancelling the entire queue. *All queued files are uploaded when startUpload() is called. *If false is returned from uploadComplete then the queue upload is stopped. If false is not returned (strict comparison) then the queue upload is continued. *Adds a QueueComplete event that is fired when all the queued files have finished uploading. Set the event handler with the queue_complete_handler setting. */ if (typeof(SWFUpload) === "function") { SWFUpload.queue = {}; SWFUpload.prototype.initSettings = (function (oldInitSettings) { return function () { if (typeof(oldInitSettings) === "function") { oldInitSettings.call(this); } this.queueSettings = {}; this.queueSettings.queue_cancelled_flag = false; this.queueSettings.queue_upload_count = 0; this.queueSettings.user_upload_complete_handler = this.settings.upload_complete_handler; this.queueSettings.user_upload_start_handler = this.settings.upload_start_handler; this.settings.upload_complete_handler = SWFUpload.queue.uploadCompleteHandler; this.settings.upload_start_handler = SWFUpload.queue.uploadStartHandler; this.settings.queue_complete_handler = this.settings.queue_complete_handler || null; }; })(SWFUpload.prototype.initSettings); SWFUpload.prototype.startUpload = function (fileID) { this.queueSettings.queue_cancelled_flag = false; this.callFlash("StartUpload", [fileID]); }; SWFUpload.prototype.cancelQueue = function () { this.queueSettings.queue_cancelled_flag = true; this.stopUpload(); var stats = this.getStats(); while (stats.files_queued > 0) { this.cancelUpload(); stats = this.getStats(); } }; SWFUpload.queue.uploadStartHandler = function (file) { var returnValue; if (typeof(this.queueSettings.user_upload_start_handler) === "function") { returnValue = this.queueSettings.user_upload_start_handler.call(this, file); } // To prevent upload a real "FALSE" value must be returned, otherwise default to a real "TRUE" value. returnValue = (returnValue === false) ? false : true; this.queueSettings.queue_cancelled_flag = !returnValue; return returnValue; }; SWFUpload.queue.uploadCompleteHandler = function (file) { var user_upload_complete_handler = this.queueSettings.user_upload_complete_handler; var continueUpload; if (file.filestatus === SWFUpload.FILE_STATUS.COMPLETE) { this.queueSettings.queue_upload_count++; } if (typeof(user_upload_complete_handler) === "function") { continueUpload = (user_upload_complete_handler.call(this, file) === false) ? false : true; } else if (file.filestatus === SWFUpload.FILE_STATUS.QUEUED) { // If the file was stopped and re-queued don't restart the upload continueUpload = false; } else { continueUpload = true; } if (continueUpload) { var stats = this.getStats(); if (stats.files_queued > 0 && this.queueSettings.queue_cancelled_flag === false) { this.startUpload(); } else if (this.queueSettings.queue_cancelled_flag === false) { this.queueEvent("queue_complete_handler", [this.queueSettings.queue_upload_count]); this.queueSettings.queue_upload_count = 0; } else { this.queueSettings.queue_cancelled_flag = false; this.queueSettings.queue_upload_count = 0; } } }; } })(); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('pagebreak', function(K) { var self = this; var name = 'pagebreak'; var pagebreakHtml = K.undef(self.pagebreakHtml, '
                                                    '); self.clickToolbar(name, function() { var cmd = self.cmd, range = cmd.range; self.focus(); var tail = self.newlineTag == 'br' || K.WEBKIT ? '' : ''; self.insertHtml(pagebreakHtml + tail); if (tail !== '') { var p = K('#__kindeditor_tail_tag__', self.edit.doc); range.selectNodeContents(p[0]); p.removeAttr('id'); cmd.select(); } }); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('plainpaste', function(K) { var self = this, name = 'plainpaste'; self.clickToolbar(name, function() { var lang = self.lang(name + '.'), html = '
                                                    ' + '
                                                    ' + lang.comment + '
                                                    ' + '' + '
                                                    ', dialog = self.createDialog({ name : name, width : 450, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { var html = textarea.val(); html = K.escape(html); html = html.replace(/ {2}/g, '  '); if (self.newlineTag == 'p') { html = html.replace(/^/, '

                                                    ').replace(/$/, '

                                                    ').replace(/\n/g, '

                                                    '); } else { html = html.replace(/\n/g, '
                                                    $&'); } self.insertHtml(html).hideDialog().focus(); } } }), textarea = K('textarea', dialog.div); textarea[0].focus(); }); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('preview', function(K) { var self = this, name = 'preview', undefined; self.clickToolbar(name, function() { var lang = self.lang(name + '.'), html = '

                                                    ' + '' + '
                                                    ', dialog = self.createDialog({ name : name, width : 750, title : self.lang(name), body : html }), iframe = K('iframe', dialog.div), doc = K.iframeDoc(iframe); doc.open(); doc.write(self.fullHtml()); doc.close(); K(doc.body).css('background-color', '#FFF'); iframe[0].contentWindow.focus(); }); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('quickformat', function(K) { var self = this, name = 'quickformat', blockMap = K.toMap('blockquote,center,div,h1,h2,h3,h4,h5,h6,p'); function getFirstChild(knode) { var child = knode.first(); while (child && child.first()) { child = child.first(); } return child; } self.clickToolbar(name, function() { self.focus(); var doc = self.edit.doc, range = self.cmd.range, child = K(doc.body).first(), next, nodeList = [], subList = [], bookmark = range.createBookmark(true); while(child) { next = child.next(); var firstChild = getFirstChild(child); if (!firstChild || firstChild.name != 'img') { if (blockMap[child.name]) { child.html(child.html().replace(/^(\s| | )+/ig, '')); child.css('text-indent', '2em'); } else { subList.push(child); } if (!next || (blockMap[next.name] || blockMap[child.name] && !blockMap[next.name])) { if (subList.length > 0) { nodeList.push(subList); } subList = []; } } child = next; } K.each(nodeList, function(i, subList) { var wrapper = K('

                                                    ', doc); subList[0].before(wrapper); K.each(subList, function(i, knode) { wrapper.append(knode); }); }); range.moveToBookmark(bookmark); self.addBookmark(); }); }); /** -------------------------- abcd
                                                    1234
                                                    to

                                                    abcd
                                                    1234

                                                    --------------------------   abcd1233

                                                    1234

                                                    to

                                                    abcd1233

                                                    1234

                                                    -------------------------- *//******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('table', function(K) { var self = this, name = 'table', lang = self.lang(name + '.'), zeroborder = 'ke-zeroborder'; // 设置颜色 function _setColor(box, color) { color = color.toUpperCase(); box.css('background-color', color); box.css('color', color === '#000000' ? '#FFFFFF' : '#000000'); box.html(color); } // 初始化取色器 var pickerList = []; function _initColorPicker(dialogDiv, colorBox) { colorBox.bind('click,mousedown', function(e){ e.stopPropagation(); }); function removePicker() { K.each(pickerList, function() { this.remove(); }); pickerList = []; K(document).unbind('click,mousedown', removePicker); dialogDiv.unbind('click,mousedown', removePicker); } colorBox.click(function(e) { removePicker(); var box = K(this), pos = box.pos(); var picker = K.colorpicker({ x : pos.x, y : pos.y + box.height(), z : 811214, selectedColor : K(this).html(), colors : self.colorTable, noColor : self.lang('noColor'), shadowMode : self.shadowMode, click : function(color) { _setColor(box, color); removePicker(); } }); pickerList.push(picker); K(document).bind('click,mousedown', removePicker); dialogDiv.bind('click,mousedown', removePicker); }); } // 取得下一行cell的index function _getCellIndex(table, row, cell) { var rowSpanCount = 0; for (var i = 0, len = row.cells.length; i < len; i++) { if (row.cells[i] == cell) { break; } rowSpanCount += row.cells[i].rowSpan - 1; } return cell.cellIndex - rowSpanCount; } self.plugin.table = { //insert or modify table prop : function(isInsert) { var html = [ '
                                                    ', //rows, cols '
                                                    ', '', lang.rows + '   ', lang.cols + ' ', '
                                                    ', //width, height '
                                                    ', '', lang.width + '   ', '   ', lang.height + '   ', '', '
                                                    ', //space, padding '
                                                    ', '', lang.padding + '   ', lang.spacing + ' ', '
                                                    ', //align '
                                                    ', '', '', '
                                                    ', //border '
                                                    ', '', lang.borderWidth + '   ', lang.borderColor + ' ', '
                                                    ', //background color '
                                                    ', '', '', '
                                                    ', '
                                                    ' ].join(''); var bookmark = self.cmd.range.createBookmark(); var dialog = self.createDialog({ name : name, width : 500, title : self.lang(name), body : html, beforeRemove : function() { colorBox.unbind(); }, yesBtn : { name : self.lang('yes'), click : function(e) { var rows = rowsBox.val(), cols = colsBox.val(), width = widthBox.val(), height = heightBox.val(), widthType = widthTypeBox.val(), heightType = heightTypeBox.val(), padding = paddingBox.val(), spacing = spacingBox.val(), align = alignBox.val(), border = borderBox.val(), borderColor = K(colorBox[0]).html() || '', bgColor = K(colorBox[1]).html() || ''; if (rows == 0 || !/^\d+$/.test(rows)) { alert(self.lang('invalidRows')); rowsBox[0].focus(); return; } if (cols == 0 || !/^\d+$/.test(cols)) { alert(self.lang('invalidRows')); colsBox[0].focus(); return; } if (!/^\d*$/.test(width)) { alert(self.lang('invalidWidth')); widthBox[0].focus(); return; } if (!/^\d*$/.test(height)) { alert(self.lang('invalidHeight')); heightBox[0].focus(); return; } if (!/^\d*$/.test(padding)) { alert(self.lang('invalidPadding')); paddingBox[0].focus(); return; } if (!/^\d*$/.test(spacing)) { alert(self.lang('invalidSpacing')); spacingBox[0].focus(); return; } if (!/^\d*$/.test(border)) { alert(self.lang('invalidBorder')); borderBox[0].focus(); return; } //modify table if (table) { if (width !== '') { table.width(width + widthType); } else { table.css('width', ''); } if (table[0].width !== undefined) { table.removeAttr('width'); } if (height !== '') { table.height(height + heightType); } else { table.css('height', ''); } if (table[0].height !== undefined) { table.removeAttr('height'); } table.css('background-color', bgColor); if (table[0].bgColor !== undefined) { table.removeAttr('bgColor'); } if (padding !== '') { table[0].cellPadding = padding; } else { table.removeAttr('cellPadding'); } if (spacing !== '') { table[0].cellSpacing = spacing; } else { table.removeAttr('cellSpacing'); } if (align !== '') { table[0].align = align; } else { table.removeAttr('align'); } if (border !== '') { table.attr('border', border); } else { table.removeAttr('border'); } if (border === '' || border === '0') { table.addClass(zeroborder); } else { table.removeClass(zeroborder); } if (borderColor !== '') { table.attr('borderColor', borderColor); } else { table.removeAttr('borderColor'); } self.hideDialog().focus(); self.cmd.range.moveToBookmark(bookmark); self.cmd.select(); self.addBookmark(); return; } //insert new table var style = ''; if (width !== '') { style += 'width:' + width + widthType + ';'; } if (height !== '') { style += 'height:' + height + heightType + ';'; } if (bgColor !== '') { style += 'background-color:' + bgColor + ';'; } var html = '') + ''; } html += ''; } html += '
                                                    '; if (!K.IE) { html += '
                                                    '; } self.insertHtml(html); self.select().hideDialog().focus(); self.addBookmark(); } } }), div = dialog.div, rowsBox = K('[name="rows"]', div).val(3), colsBox = K('[name="cols"]', div).val(2), widthBox = K('[name="width"]', div).val(100), heightBox = K('[name="height"]', div), widthTypeBox = K('[name="widthType"]', div), heightTypeBox = K('[name="heightType"]', div), paddingBox = K('[name="padding"]', div).val(2), spacingBox = K('[name="spacing"]', div).val(0), alignBox = K('[name="align"]', div), borderBox = K('[name="border"]', div).val(1), colorBox = K('.ke-input-color', div); _initColorPicker(div, colorBox.eq(0)); _initColorPicker(div, colorBox.eq(1)); _setColor(colorBox.eq(0), '#000000'); _setColor(colorBox.eq(1), ''); // foucs and select rowsBox[0].focus(); rowsBox[0].select(); var table; if (isInsert) { return; } //get selected table node table = self.plugin.getSelectedTable(); if (table) { rowsBox.val(table[0].rows.length); colsBox.val(table[0].rows.length > 0 ? table[0].rows[0].cells.length : 0); rowsBox.attr('disabled', true); colsBox.attr('disabled', true); var match, tableWidth = table[0].style.width || table[0].width, tableHeight = table[0].style.height || table[0].height; if (tableWidth !== undefined && (match = /^(\d+)((?:px|%)*)$/.exec(tableWidth))) { widthBox.val(match[1]); widthTypeBox.val(match[2]); } else { widthBox.val(''); } if (tableHeight !== undefined && (match = /^(\d+)((?:px|%)*)$/.exec(tableHeight))) { heightBox.val(match[1]); heightTypeBox.val(match[2]); } paddingBox.val(table[0].cellPadding || ''); spacingBox.val(table[0].cellSpacing || ''); alignBox.val(table[0].align || ''); borderBox.val(table[0].border === undefined ? '' : table[0].border); _setColor(colorBox.eq(0), K.toHex(table.attr('borderColor') || '')); _setColor(colorBox.eq(1), K.toHex(table[0].style.backgroundColor || table[0].bgColor || '')); widthBox[0].focus(); widthBox[0].select(); } }, //modify cell cellprop : function() { var html = [ '
                                                    ', //width, height '
                                                    ', '', lang.width + '   ', '   ', lang.height + '   ', '', '
                                                    ', //align '
                                                    ', '', lang.textAlign + ' ', lang.verticalAlign + ' ', '
                                                    ', //border '
                                                    ', '', lang.borderWidth + '   ', lang.borderColor + ' ', '
                                                    ', //background color '
                                                    ', '', '', '
                                                    ', '
                                                    ' ].join(''); var bookmark = self.cmd.range.createBookmark(); var dialog = self.createDialog({ name : name, width : 500, title : self.lang('tablecell'), body : html, beforeRemove : function() { colorBox.unbind(); }, yesBtn : { name : self.lang('yes'), click : function(e) { var width = widthBox.val(), height = heightBox.val(), widthType = widthTypeBox.val(), heightType = heightTypeBox.val(), padding = paddingBox.val(), spacing = spacingBox.val(), textAlign = textAlignBox.val(), verticalAlign = verticalAlignBox.val(), border = borderBox.val(), borderColor = K(colorBox[0]).html() || '', bgColor = K(colorBox[1]).html() || ''; if (!/^\d*$/.test(width)) { alert(self.lang('invalidWidth')); widthBox[0].focus(); return; } if (!/^\d*$/.test(height)) { alert(self.lang('invalidHeight')); heightBox[0].focus(); return; } if (!/^\d*$/.test(border)) { alert(self.lang('invalidBorder')); borderBox[0].focus(); return; } cell.css({ width : width !== '' ? (width + widthType) : '', height : height !== '' ? (height + heightType) : '', 'background-color' : bgColor, 'text-align' : textAlign, 'vertical-align' : verticalAlign, 'border-width' : border, 'border-style' : border !== '' ? 'solid' : '', 'border-color' : borderColor }); self.hideDialog().focus(); self.cmd.range.moveToBookmark(bookmark); self.cmd.select(); self.addBookmark(); } } }), div = dialog.div, widthBox = K('[name="width"]', div).val(100), heightBox = K('[name="height"]', div), widthTypeBox = K('[name="widthType"]', div), heightTypeBox = K('[name="heightType"]', div), paddingBox = K('[name="padding"]', div).val(2), spacingBox = K('[name="spacing"]', div).val(0), textAlignBox = K('[name="textAlign"]', div), verticalAlignBox = K('[name="verticalAlign"]', div), borderBox = K('[name="border"]', div).val(1), colorBox = K('.ke-input-color', div); _initColorPicker(div, colorBox.eq(0)); _initColorPicker(div, colorBox.eq(1)); _setColor(colorBox.eq(0), '#000000'); _setColor(colorBox.eq(1), ''); // foucs and select widthBox[0].focus(); widthBox[0].select(); // get selected cell var cell = self.plugin.getSelectedCell(); var match, cellWidth = cell[0].style.width || cell[0].width || '', cellHeight = cell[0].style.height || cell[0].height || ''; if ((match = /^(\d+)((?:px|%)*)$/.exec(cellWidth))) { widthBox.val(match[1]); widthTypeBox.val(match[2]); } else { widthBox.val(''); } if ((match = /^(\d+)((?:px|%)*)$/.exec(cellHeight))) { heightBox.val(match[1]); heightTypeBox.val(match[2]); } textAlignBox.val(cell[0].style.textAlign || ''); verticalAlignBox.val(cell[0].style.verticalAlign || ''); var border = cell[0].style.borderWidth || ''; if (border) { border = parseInt(border); } borderBox.val(border); _setColor(colorBox.eq(0), K.toHex(cell[0].style.borderColor || '')); _setColor(colorBox.eq(1), K.toHex(cell[0].style.backgroundColor || '')); widthBox[0].focus(); widthBox[0].select(); }, insert : function() { this.prop(true); }, 'delete' : function() { var table = self.plugin.getSelectedTable(); self.cmd.range.setStartBefore(table[0]).collapse(true); self.cmd.select(); table.remove(); self.addBookmark(); }, colinsert : function(offset) { var table = self.plugin.getSelectedTable()[0], row = self.plugin.getSelectedRow()[0], cell = self.plugin.getSelectedCell()[0], index = cell.cellIndex + offset; // 取得第一行的index index += table.rows[0].cells.length - row.cells.length; for (var i = 0, len = table.rows.length; i < len; i++) { var newRow = table.rows[i], newCell = newRow.insertCell(index); newCell.innerHTML = K.IE ? '' : '
                                                    '; // 调整下一行的单元格index index = _getCellIndex(table, newRow, newCell); } self.cmd.range.selectNodeContents(cell).collapse(true); self.cmd.select(); self.addBookmark(); }, colinsertleft : function() { this.colinsert(0); }, colinsertright : function() { this.colinsert(1); }, rowinsert : function(offset) { var table = self.plugin.getSelectedTable()[0], row = self.plugin.getSelectedRow()[0], cell = self.plugin.getSelectedCell()[0]; var rowIndex = row.rowIndex; if (offset === 1) { rowIndex = row.rowIndex + (cell.rowSpan - 1) + offset; } var newRow = table.insertRow(rowIndex); for (var i = 0, len = row.cells.length; i < len; i++) { // 调整cell个数 if (row.cells[i].rowSpan > 1) { len -= row.cells[i].rowSpan - 1; } var newCell = newRow.insertCell(i); // copy colspan if (offset === 1 && row.cells[i].colSpan > 1) { newCell.colSpan = row.cells[i].colSpan; } newCell.innerHTML = K.IE ? '' : '
                                                    '; } // 调整rowspan for (var j = rowIndex; j >= 0; j--) { var cells = table.rows[j].cells; if (cells.length > i) { for (var k = cell.cellIndex; k >= 0; k--) { if (cells[k].rowSpan > 1) { cells[k].rowSpan += 1; } } break; } } self.cmd.range.selectNodeContents(cell).collapse(true); self.cmd.select(); self.addBookmark(); }, rowinsertabove : function() { this.rowinsert(0); }, rowinsertbelow : function() { this.rowinsert(1); }, rowmerge : function() { var table = self.plugin.getSelectedTable()[0], row = self.plugin.getSelectedRow()[0], cell = self.plugin.getSelectedCell()[0], rowIndex = row.rowIndex, // 当前行的index nextRowIndex = rowIndex + cell.rowSpan, // 下一行的index nextRow = table.rows[nextRowIndex]; // 下一行 // 最后一行不能合并 if (table.rows.length <= nextRowIndex) { return; } var cellIndex = cell.cellIndex; // 下一行单元格的index if (nextRow.cells.length <= cellIndex) { return; } var nextCell = nextRow.cells[cellIndex]; // 下一行单元格 // 上下行的colspan不一致时不能合并 if (cell.colSpan !== nextCell.colSpan) { return; } cell.rowSpan += nextCell.rowSpan; nextRow.deleteCell(cellIndex); self.cmd.range.selectNodeContents(cell).collapse(true); self.cmd.select(); self.addBookmark(); }, colmerge : function() { var table = self.plugin.getSelectedTable()[0], row = self.plugin.getSelectedRow()[0], cell = self.plugin.getSelectedCell()[0], rowIndex = row.rowIndex, // 当前行的index cellIndex = cell.cellIndex, nextCellIndex = cellIndex + 1; // 最后一列不能合并 if (row.cells.length <= nextCellIndex) { return; } var nextCell = row.cells[nextCellIndex]; // 左右列的rowspan不一致时不能合并 if (cell.rowSpan !== nextCell.rowSpan) { return; } cell.colSpan += nextCell.colSpan; row.deleteCell(nextCellIndex); self.cmd.range.selectNodeContents(cell).collapse(true); self.cmd.select(); self.addBookmark(); }, rowsplit : function() { var table = self.plugin.getSelectedTable()[0], row = self.plugin.getSelectedRow()[0], cell = self.plugin.getSelectedCell()[0], rowIndex = row.rowIndex; // 不是可分割单元格 if (cell.rowSpan === 1) { return; } var cellIndex = _getCellIndex(table, row, cell); for (var i = 1, len = cell.rowSpan; i < len; i++) { var newRow = table.rows[rowIndex + i], newCell = newRow.insertCell(cellIndex); if (cell.colSpan > 1) { newCell.colSpan = cell.colSpan; } newCell.innerHTML = K.IE ? '' : '
                                                    '; // 调整下一行的单元格index cellIndex = _getCellIndex(table, newRow, newCell); } K(cell).removeAttr('rowSpan'); self.cmd.range.selectNodeContents(cell).collapse(true); self.cmd.select(); self.addBookmark(); }, colsplit : function() { var table = self.plugin.getSelectedTable()[0], row = self.plugin.getSelectedRow()[0], cell = self.plugin.getSelectedCell()[0], cellIndex = cell.cellIndex; // 不是可分割单元格 if (cell.colSpan === 1) { return; } for (var i = 1, len = cell.colSpan; i < len; i++) { var newCell = row.insertCell(cellIndex + i); if (cell.rowSpan > 1) { newCell.rowSpan = cell.rowSpan; } newCell.innerHTML = K.IE ? '' : '
                                                    '; } K(cell).removeAttr('colSpan'); self.cmd.range.selectNodeContents(cell).collapse(true); self.cmd.select(); self.addBookmark(); }, coldelete : function() { var table = self.plugin.getSelectedTable()[0], row = self.plugin.getSelectedRow()[0], cell = self.plugin.getSelectedCell()[0], index = cell.cellIndex; for (var i = 0, len = table.rows.length; i < len; i++) { var newRow = table.rows[i], newCell = newRow.cells[index]; if (newCell.colSpan > 1) { newCell.colSpan -= 1; if (newCell.colSpan === 1) { K(newCell).removeAttr('colSpan'); } } else { newRow.deleteCell(index); } // 跳过不需要删除的行 if (newCell.rowSpan > 1) { i += newCell.rowSpan - 1; } } if (row.cells.length === 0) { self.cmd.range.setStartBefore(table).collapse(true); self.cmd.select(); K(table).remove(); } else { self.cmd.selection(true); } self.addBookmark(); }, rowdelete : function() { var table = self.plugin.getSelectedTable()[0], row = self.plugin.getSelectedRow()[0], cell = self.plugin.getSelectedCell()[0], rowIndex = row.rowIndex; // 从下到上删除 for (var i = cell.rowSpan - 1; i >= 0; i--) { table.deleteRow(rowIndex + i); } if (table.rows.length === 0) { self.cmd.range.setStartBefore(table).collapse(true); self.cmd.select(); K(table).remove(); } else { self.cmd.selection(true); } self.addBookmark(); } }; self.clickToolbar(name, self.plugin.table.prop); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('template', function(K) { var self = this, name = 'template', lang = self.lang(name + '.'), htmlPath = self.pluginsPath + name + '/html/'; function getFilePath(fileName) { return htmlPath + fileName + '?ver=' + encodeURIComponent(K.DEBUG ? K.TIME : K.VERSION); } self.clickToolbar(name, function() { var lang = self.lang(name + '.'), arr = ['
                                                    ', '
                                                    ', // left start '
                                                    ', lang. selectTemplate + '
                                                    ', // right start '
                                                    ', ' ', '
                                                    ', '
                                                    ', '
                                                    ', '', '
                                                    '].join(''); var dialog = self.createDialog({ name : name, width : 500, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { var doc = K.iframeDoc(iframe); self[checkbox[0].checked ? 'html' : 'insertHtml'](doc.body.innerHTML).hideDialog().focus(); } } }); var selectBox = K('select', dialog.div), checkbox = K('[name="replaceFlag"]', dialog.div), iframe = K('iframe', dialog.div); checkbox[0].checked = true; iframe.attr('src', getFilePath(selectBox.val())); selectBox.change(function() { iframe.attr('src', getFilePath(this.value)); }); }); }); /******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************************************************************/ KindEditor.plugin('wordpaste', function(K) { var self = this, name = 'wordpaste'; self.clickToolbar(name, function() { var lang = self.lang(name + '.'), html = '
                                                    ' + '
                                                    ' + lang.comment + '
                                                    ' + '' + '
                                                    ', dialog = self.createDialog({ name : name, width : 450, title : self.lang(name), body : html, yesBtn : { name : self.lang('yes'), click : function(e) { var str = doc.body.innerHTML; str = K.clearMsWord(str, self.filterMode ? self.htmlTags : K.options.htmlTags); self.insertHtml(str).hideDialog().focus(); } } }), div = dialog.div, iframe = K('iframe', div), doc = K.iframeDoc(iframe); if (!K.IE) { doc.designMode = 'on'; } doc.open(); doc.write('WordPaste'); doc.write(''); if (!K.IE) { doc.write('
                                                    '); } doc.write(''); doc.close(); if (K.IE) { doc.body.contentEditable = 'true'; } iframe[0].contentWindow.focus(); }); }); ================================================ FILE: migo-manage/manage-web/src/main/webapp/js/kindeditor-4.1.10/kindeditor-min.js ================================================ /* KindEditor 4.1.10 (2013-11-23), Copyright (C) kindsoft.net, Licence: http://www.kindsoft.net/license.php */(function(w,i){function Z(a){if(!a)return!1;return Object.prototype.toString.call(a)==="[object Array]"}function wa(a){if(!a)return!1;return Object.prototype.toString.call(a)==="[object Function]"}function J(a,b){for(var c=0,d=b.length;c=0}function s(a,b){b=b||"px";return a&&/^\d+$/.test(a)?a+b:a}function t(a){var b;return a&&(b=/(\d+)/.exec(a))?parseInt(b[1],10):0}function C(a){return a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function fa(a){return a.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")}function ga(a){var b=a.split("-"),a="";m(b,function(b,d){a+=b>0?d.charAt(0).toUpperCase()+ d.substr(1):d});return a}function ya(a){function b(a){a=parseInt(a,10).toString(16).toUpperCase();return a.length>1?a:"0"+a}return a.replace(/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/ig,function(a,d,e,g){return"#"+b(d)+b(e)+b(g)})}function u(a,b){var b=b===i?",":b,c={},d=Z(a)?a:a.split(b),e;m(d,function(a,b){if(e=/^(\d+)\.\.(\d+)$/.exec(b))for(var d=parseInt(e[1],10);d<=parseInt(e[2],10);d++)c[d.toString()]=!0;else c[b]=!0});return c}function Ja(a,b){return Array.prototype.slice.call(a,b||0)} function l(a,b){return a===i?b:a}function E(a,b,c){c||(c=b,b=null);var d;if(b){var e=function(){};e.prototype=b.prototype;d=new e;m(c,function(a,b){d[a]=b})}else d=c;d.constructor=a;a.prototype=d;a.parent=b?b.prototype:null}function eb(a){var b;if(b=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(a))a=b[0];b=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;b.lastIndex=0;b.test(a)&&(a=a.replace(b,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})); if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+a+")");throw"JSON parse error";}function Rb(a,b,c){a.addEventListener?a.addEventListener(b,c,fb):a.attachEvent&&a.attachEvent("on"+b,c)}function za(a,b,c){a.removeEventListener?a.removeEventListener(b,c,fb):a.detachEvent&&a.detachEvent("on"+b,c)}function gb(a,b){this.init(a,b)}function hb(a){try{delete a[$]}catch(b){a.removeAttribute&& a.removeAttribute($)}}function aa(a,b,c){if(b.indexOf(",")>=0)m(b.split(","),function(){aa(a,this,c)});else{var d=a[$]||null;d||(a[$]=++ib,d=ib);v[d]===i&&(v[d]={});var e=v[d][b];e&&e.length>0?za(a,b,e[0]):(v[d][b]=[],v[d].el=a);e=v[d][b];e.length===0&&(e[0]=function(b){var c=b?new gb(a,b):i;m(e,function(b,d){b>0&&d&&d.call(a,c)})});J(c,e)<0&&e.push(c);Rb(a,b,e[0])}}function ha(a,b,c){if(b&&b.indexOf(",")>=0)m(b.split(","),function(){ha(a,this,c)});else{var d=a[$]||null;if(d)if(b===i)d in v&&(m(v[d], function(b,c){b!="el"&&c.length>0&&za(a,b,c[0])}),delete v[d],hb(a));else if(v[d]){var e=v[d][b];if(e&&e.length>0){c===i?(za(a,b,e[0]),delete v[d][b]):(m(e,function(a,b){a>0&&b===c&&e.splice(a,1)}),e.length==1&&(za(a,b,e[0]),delete v[d][b]));var g=0;m(v[d],function(){g++});g<2&&(delete v[d],hb(a))}}}}function jb(a,b){if(b.indexOf(",")>=0)m(b.split(","),function(){jb(a,this)});else{var c=a[$]||null;if(c){var d=v[c][b];if(v[c]&&d&&d.length>0)d[0]()}}}function Ka(a,b,c){b=/^\d{2,}$/.test(b)?b:b.toUpperCase().charCodeAt(0); aa(a,"keydown",function(d){d.ctrlKey&&d.which==b&&!d.shiftKey&&!d.altKey&&(c.call(a),d.stop())})}function ba(a){for(var b={},c=/\s*([\w\-]+)\s*:([^;]*)(;|$)/g,d;d=c.exec(a);){var e=B(d[1].toLowerCase());d=B(ya(d[2]));b[e]=d}return b}function I(a){for(var b={},c=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([^\s"'<>]+))|(?:([\w\-:"]+)="([^"]*)")|(?:([\w\-:"]+)='([^']*)'))(?=(?:\s|\/|>)+)/g,d;d=c.exec(a);){var e=(d[1]||d[2]||d[4]||d[6]).toLowerCase();b[e]=(d[2]?d[3]:d[4]?d[5]:d[7])||""}return b}function Sb(a,b){return a= /\s+class\s*=/.test(a)?a.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,function(a,d,e,g){return(" "+e+" ").indexOf(" "+b+" ")<0?e===""?d+b+g:d+e+" "+b+g:a}):a.substr(0,a.length-1)+' class="'+b+'">'}function Tb(a){var b="";m(ba(a),function(a,d){b+=a+":"+d+";"});return b}function ia(a,b,c,d){function e(a){for(var a=a.split("/"),b=[],c=0,d=a.length;c0&&b.pop():e!==""&&e!="."&&b.push(e)}return"/"+b.join("/")}function g(b,c){if(a.substr(0,b.length)===b){for(var e=[], h=0;h0&&(h+="/"+e.join("/"));d=="/"&&(h+="/");return h+a.substr(b.length)}else if(f=/^(.*)\//.exec(b))return g(f[1],++c)}b=l(b,"").toLowerCase();a.substr(0,5)!="data:"&&(a=a.replace(/([^:])\/\//g,"$1/"));if(J(b,["absolute","relative","domain"])<0)return a;c=c||location.protocol+"//"+location.host;if(d===i)var h=location.pathname.match(/^(\/.*)\//),d=h?h[1]:"";var f;if(f=/^(\w+:\/\/[^\/]*)/.exec(a)){if(f[1]!==c)return a}else if(/^\w+:/.test(a))return a;/^\//.test(a)? a=c+e(a.substr(1)):/^\w+:\/\//.test(a)||(a=c+e(d+"/"+a));b==="relative"?a=g(c+d,0).substr(2):b==="absolute"&&a.substr(0,c.length)===c&&(a=a.substr(c.length));return a}function U(a,b,c,d,e){a==null&&(a="");var c=c||"",d=l(d,!1),e=l(e,"\t"),g="xx-small,x-small,small,medium,large,x-large,xx-large".split(","),a=a.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/ig,function(a,b,c,d){return b+c.replace(/<(?:br|br\s[^>]*)>/ig,"\n")+d}),a=a.replace(/<(?:br|br\s[^>]*)\s*\/?>\s*<\/p>/ig,"

                                                    "),a=a.replace(/(<(?:p|p\s[^>]*)>)\s*(<\/p>)/ig, "$1
                                                    $2"),a=a.replace(/\u200B/g,""),a=a.replace(/\u00A9/g,"©"),a=a.replace(/\u00AE/g,"®"),a=a.replace(/<[^>]+/g,function(a){return a.replace(/\s+/g," ")}),h={};b&&(m(b,function(a,b){for(var c=a.split(","),d=0,e=c.length;d]*)>)([\s\S]*?)(<\/script>)/ig,"")),h.style||(a=a.replace(/(<(?:style|style\s[^>]*)>)([\s\S]*?)(<\/style>)/ig,"")));var f=[],a=a.replace(/(\s*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"'<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+='[^']*'))*)(\/)?>(\s*)/g, function(a,n,q,r,K,ja,i){var n=n||"",q=q||"",l=r.toLowerCase(),o=K||"",r=ja?" "+ja:"",i=i||"";if(b&&!h[l])return"";r===""&&kb[l]&&(r=" /");lb[l]&&(n&&(n=" "),i&&(i=" "));La[l]&&(q?i="\n":n="\n");d&&l=="br"&&(i="\n");if(mb[l]&&!La[l])if(d){q&&f.length>0&&f[f.length-1]===l?f.pop():f.push(l);i=n="\n";K=0;for(ja=q?f.length:f.length-1;K=0&&(z[a]=ia(d,c));(b&&a!=="style"&&!h[l]["*"]&&!h[l][a]||l==="body"&&a==="contenteditable"||/^kindeditor_\d+$/.test(a))&&delete z[a];if(a==="style"&&d!==""){var e=ba(d);m(e,function(a){b&&!h[l].style&&!h[l]["."+a]&&delete e[a]}); var g="";m(e,function(a,b){g+=a+":"+b+";"});z.style=g}});o="";m(z,function(a,b){a==="style"&&b===""||(b=b.replace(/"/g,"""),o+=" "+a+'="'+b+'"')})}l==="font"&&(l="span");return n+"<"+q+l+o+r+">"+i}),a=a.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/ig,function(a,b,c,d){return b+c.replace(/\n/g,'\n')+d}),a=a.replace(/\n\s*\n/g,"\n"),a=a.replace(/\n/g,"\n");return B(a)}function nb(a,b){a=a.replace(//ig, "").replace(//ig,"").replace(/]*>[\s\S]*?<\/style>/ig,"").replace(/]*>[\s\S]*?<\/script>/ig,"").replace(/]+>[\s\S]*?<\/w:[^>]+>/ig,"").replace(/]+>[\s\S]*?<\/o:[^>]+>/ig,"").replace(/[\s\S]*?<\/xml>/ig,"").replace(/<(?:table|td)[^>]*>/ig,function(a){return a.replace(/border-bottom:([#\w\s]+)/ig,"border:$1")});return U(a,b)}function ob(a){if(/\.(rm|rmvb)(\?|$)/i.test(a))return"audio/x-pn-realaudio-plugin";if(/\.(swf|flv)(\?|$)/i.test(a))return"application/x-shockwave-flash"; return"video/x-ms-asf-plugin"}function pb(a){return I(unescape(a))}function Ma(a){var b="0&&(h+="width:"+c+"px;");/\D/.test(d)?h+="height:"+d+";":d>0&&(h+="height:"+d+"px;");c=/realaudio/i.test(e)?"ke-rm":/flash/i.test(e)?"ke-flash":"ke-media";c='';return c}function Aa(a,b){if(a.nodeType==9&&b.nodeType!=9)return!0;for(;b=b.parentNode;)if(b==a)return!0;return!1}function Ba(a,b){var b=b.toLowerCase(),c=null;if(!Vb&&a.nodeName.toLowerCase()!="script"){var d=a.ownerDocument.createElement("div");d.appendChild(a.cloneNode(!1));d=I(fa(d.innerHTML));b in d&&(c=d[b])}else try{c=a.getAttribute(b,2)}catch(e){c=a.getAttribute(b,1)}b==="style"&&c!==null&&(c=Tb(c));return c}function Ca(a,b){function c(a){if(typeof a!="string")return a;return a.replace(/([^\w\-])/g, "\\$1")}function d(a,b){return a==="*"||a.toLowerCase()===c(b.toLowerCase())}function e(a,b,c){var e=[];(a=(c.ownerDocument||c).getElementById(a.replace(/\\/g,"")))&&d(b,a.nodeName)&&Aa(c,a)&&e.push(a);return e}function g(a,b,c){var e=c.ownerDocument||c,g=[],h,f,j;if(c.getElementsByClassName){e=c.getElementsByClassName(a.replace(/\\/g,""));h=0;for(f=e.length;h-1&&g.push(j)}return g}function h(a,b,d,e){for(var g=[],d=e.getElementsByTagName(d),h=0,f=d.length;h])+)/.exec(a))?j[1]:"*";if(j=/#((?:[\w\-]|\\.)+)$/.exec(a))c= e(j[1],k,b);else if(j=/\.((?:[\w\-]|\\.)+)$/.exec(a))c=g(j[1],k,b);else if(j=/\[((?:[\w\-]|\\.)+)\]/.exec(a))c=h(j[1].toLowerCase(),null,k,b);else if(j=/\[((?:[\w\-]|\\.)+)\s*=\s*['"]?((?:\\.|[^'"]+)+)['"]?\]/.exec(a)){c=j[1].toLowerCase();j=j[2];if(c==="id")k=e(j,k,b);else if(c==="class")k=g(j,k,b);else if(c==="name"){c=[];j=(b.ownerDocument||b).getElementsByName(j.replace(/\\/g,""));for(var n,r=0,q=j.length;r1){var n=[];m(k,function(){m(Ca(this,b),function(){J(this,n)<0&&n.push(this)})});return n}for(var b=b||document,k=[],q,r=/((?:\\.|[^\s>])+|[\s>])/g;q=r.exec(a);)q[1]!==" "&&k.push(q[1]);q=[];if(k.length==1)return f(k[0],b);var r=!1,K,l,i,o,p,z,L,F,s,t;z=0;for(lenth=k.length;z")r=!0;else{if(z>0){l=[];L=0;for(s=q.length;L